]>
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 VZ |
76 | ac_help="$ac_help |
77 | --with-mgl use 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 |
8168de4c | 101 | --enable-burnt_name create set name in shared library " |
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" |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --enable-debug_info create code with debugging information" |
698dcdb6 | 110 | ac_help="$ac_help |
8168de4c | 111 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 114 | ac_help="$ac_help |
8168de4c | 115 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 116 | ac_help="$ac_help |
8168de4c | 117 | --enable-profile create code with profiling information" |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 120 | ac_help="$ac_help |
8168de4c | 121 | --enable-no_exceptions create code without exceptions information" |
698dcdb6 | 122 | ac_help="$ac_help |
8168de4c | 123 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 124 | ac_help="$ac_help |
8168de4c | 125 | --enable-no_deps create code without dependency information" |
54276ccf VZ |
126 | ac_help="$ac_help |
127 | --enable-compat20 enable wxWin 2.0 compatibility" | |
128 | ac_help="$ac_help | |
129 | --enable-compat22 enable wxWin 2.2 compatibility" | |
698dcdb6 | 130 | ac_help="$ac_help |
8168de4c | 131 | --enable-intl use internationalization system" |
698dcdb6 | 132 | ac_help="$ac_help |
8168de4c | 133 | --enable-config use wxConfig (and derived) classes" |
698dcdb6 | 134 | ac_help="$ac_help |
8168de4c | 135 | --enable-sockets use socket/network classes" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 138 | ac_help="$ac_help |
8168de4c | 139 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 140 | ac_help="$ac_help |
8168de4c | 141 | --enable-datetime use wxDateTime class" |
1e6feb95 | 142 | ac_help="$ac_help |
8168de4c | 143 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 146 | ac_help="$ac_help |
8168de4c | 147 | --enable-dialupman use dialup network classes" |
698dcdb6 | 148 | ac_help="$ac_help |
8168de4c | 149 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 150 | ac_help="$ac_help |
8168de4c | 151 | --enable-timer use wxTimer class" |
698dcdb6 | 152 | ac_help="$ac_help |
8168de4c | 153 | --enable-wave use wxWave class" |
698dcdb6 | 154 | ac_help="$ac_help |
8168de4c | 155 | --enable-fraction use wxFraction class" |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-dynlib use wxLibrary class for DLL loading" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-longlong use wxLongLong class" |
698dcdb6 | 160 | ac_help="$ac_help |
8168de4c | 161 | --enable-geometry use geometry class" |
698dcdb6 | 162 | ac_help="$ac_help |
8168de4c | 163 | --enable-log use logging system" |
698dcdb6 | 164 | ac_help="$ac_help |
8168de4c | 165 | --enable-streams use wxStream etc classes" |
698dcdb6 | 166 | ac_help="$ac_help |
8168de4c | 167 | --enable-file use wxFile classes" |
698dcdb6 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-ffile use wxFFile classes" |
1e6feb95 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-textfile use wxTextFile classes" |
698dcdb6 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-unicode compile wxString with Unicode support" |
698dcdb6 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" |
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 VZ |
196 | ac_help="$ac_help |
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 |
8168de4c | 317 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" |
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" |
1e6feb95 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-tipdlg use startup tips" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
340 | ac_help="$ac_help |
341 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-splines use spline drawing code" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 354 | ac_help="$ac_help |
8168de4c | 355 | --enable-joystick compile in joystick support (Linux only)" |
698dcdb6 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
358 | ac_help="$ac_help |
359 | --enable-dragimage use wxDragImage" | |
1e6feb95 | 360 | ac_help="$ac_help |
8168de4c | 361 | --enable-image use wxImage class" |
698dcdb6 | 362 | ac_help="$ac_help |
8168de4c | 363 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 364 | ac_help="$ac_help |
8168de4c | 365 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 366 | ac_help="$ac_help |
8168de4c | 367 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 368 | ac_help="$ac_help |
8168de4c | 369 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
370 | ac_help="$ac_help |
371 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
372 | ac_help="$ac_help | |
373 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
374 | ac_help="$ac_help | |
375 | --disable-gtktest Do not try to compile and run a test GTK program" | |
376 | ac_help="$ac_help | |
377 | --with-x use the X Window System" | |
10f2d63a VZ |
378 | |
379 | # Initialize some variables set by options. | |
380 | # The variables have the same names as the options, with | |
381 | # dashes changed to underlines. | |
698dcdb6 VZ |
382 | build=NONE |
383 | cache_file=./config.cache | |
10f2d63a | 384 | exec_prefix=NONE |
698dcdb6 | 385 | host=NONE |
10f2d63a | 386 | no_create= |
698dcdb6 | 387 | nonopt=NONE |
10f2d63a VZ |
388 | no_recursion= |
389 | prefix=NONE | |
390 | program_prefix=NONE | |
391 | program_suffix=NONE | |
392 | program_transform_name=s,x,x, | |
393 | silent= | |
394 | site= | |
395 | srcdir= | |
698dcdb6 | 396 | target=NONE |
10f2d63a VZ |
397 | verbose= |
398 | x_includes=NONE | |
399 | x_libraries=NONE | |
400 | bindir='${exec_prefix}/bin' | |
401 | sbindir='${exec_prefix}/sbin' | |
402 | libexecdir='${exec_prefix}/libexec' | |
403 | datadir='${prefix}/share' | |
404 | sysconfdir='${prefix}/etc' | |
405 | sharedstatedir='${prefix}/com' | |
406 | localstatedir='${prefix}/var' | |
407 | libdir='${exec_prefix}/lib' | |
408 | includedir='${prefix}/include' | |
409 | oldincludedir='/usr/include' | |
410 | infodir='${prefix}/info' | |
411 | mandir='${prefix}/man' | |
412 | ||
698dcdb6 VZ |
413 | # Initialize some other variables. |
414 | subdirs= | |
415 | MFLAGS= MAKEFLAGS= | |
416 | SHELL=${CONFIG_SHELL-/bin/sh} | |
417 | # Maximum number of lines to put in a shell here document. | |
418 | ac_max_here_lines=12 | |
10f2d63a VZ |
419 | |
420 | ac_prev= | |
421 | for ac_option | |
422 | do | |
698dcdb6 | 423 | |
10f2d63a VZ |
424 | # If the previous option needs an argument, assign it. |
425 | if test -n "$ac_prev"; then | |
426 | eval "$ac_prev=\$ac_option" | |
427 | ac_prev= | |
428 | continue | |
429 | fi | |
430 | ||
698dcdb6 VZ |
431 | case "$ac_option" in |
432 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
433 | *) ac_optarg= ;; | |
434 | esac | |
10f2d63a VZ |
435 | |
436 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
437 | ||
698dcdb6 | 438 | case "$ac_option" in |
10f2d63a VZ |
439 | |
440 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
441 | ac_prev=bindir ;; | |
442 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 443 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
444 | |
445 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 446 | ac_prev=build ;; |
10f2d63a | 447 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 448 | build="$ac_optarg" ;; |
10f2d63a VZ |
449 | |
450 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
451 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
452 | ac_prev=cache_file ;; | |
453 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
454 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 455 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
456 | |
457 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
458 | ac_prev=datadir ;; | |
459 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
460 | | --da=*) | |
698dcdb6 | 461 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
462 | |
463 | -disable-* | --disable-*) | |
698dcdb6 | 464 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 465 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
466 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
467 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
468 | fi | |
469 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
470 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
471 | |
472 | -enable-* | --enable-*) | |
698dcdb6 | 473 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 474 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
475 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
476 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
477 | fi | |
478 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
479 | case "$ac_option" in | |
480 | *=*) ;; | |
10f2d63a VZ |
481 | *) ac_optarg=yes ;; |
482 | esac | |
698dcdb6 | 483 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
484 | |
485 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
486 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
487 | | --exec | --exe | --ex) | |
488 | ac_prev=exec_prefix ;; | |
489 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
490 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
491 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 492 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
493 | |
494 | -gas | --gas | --ga | --g) | |
495 | # Obsolete; use --with-gas. | |
496 | with_gas=yes ;; | |
497 | ||
698dcdb6 VZ |
498 | -help | --help | --hel | --he) |
499 | # Omit some internal or obsolete options to make the list less imposing. | |
500 | # This message is too long to be a string in the A/UX 3.1 sh. | |
501 | cat << EOF | |
502 | Usage: configure [options] [host] | |
503 | Options: [defaults in brackets after descriptions] | |
504 | Configuration: | |
505 | --cache-file=FILE cache test results in FILE | |
506 | --help print this message | |
507 | --no-create do not create output files | |
508 | --quiet, --silent do not print \`checking...' messages | |
509 | --version print the version of autoconf that created configure | |
510 | Directory and file names: | |
511 | --prefix=PREFIX install architecture-independent files in PREFIX | |
512 | [$ac_default_prefix] | |
513 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
514 | [same as prefix] | |
515 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
516 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
517 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
518 | --datadir=DIR read-only architecture-independent data in DIR | |
519 | [PREFIX/share] | |
520 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
521 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
522 | [PREFIX/com] | |
523 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
524 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
525 | --includedir=DIR C header files in DIR [PREFIX/include] | |
526 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
527 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
528 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
529 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
530 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
531 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
532 | --program-transform-name=PROGRAM | |
533 | run sed PROGRAM on installed program names | |
534 | EOF | |
535 | cat << EOF | |
536 | Host type: | |
537 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
538 | --host=HOST configure for HOST [guessed] | |
539 | --target=TARGET configure for TARGET [TARGET=HOST] | |
540 | Features and packages: | |
541 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
542 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
543 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
544 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
545 | --x-includes=DIR X include files are in DIR | |
546 | --x-libraries=DIR X library files are in DIR | |
547 | EOF | |
548 | if test -n "$ac_help"; then | |
549 | echo "--enable and --with options recognized:$ac_help" | |
550 | fi | |
551 | exit 0 ;; | |
10f2d63a VZ |
552 | |
553 | -host | --host | --hos | --ho) | |
698dcdb6 | 554 | ac_prev=host ;; |
10f2d63a | 555 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 556 | host="$ac_optarg" ;; |
10f2d63a VZ |
557 | |
558 | -includedir | --includedir | --includedi | --included | --include \ | |
559 | | --includ | --inclu | --incl | --inc) | |
560 | ac_prev=includedir ;; | |
561 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
562 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 563 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
564 | |
565 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
566 | ac_prev=infodir ;; | |
567 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 568 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
569 | |
570 | -libdir | --libdir | --libdi | --libd) | |
571 | ac_prev=libdir ;; | |
572 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 573 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
574 | |
575 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
576 | | --libexe | --libex | --libe) | |
577 | ac_prev=libexecdir ;; | |
578 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
579 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 580 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
581 | |
582 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
583 | | --localstate | --localstat | --localsta | --localst \ | |
584 | | --locals | --local | --loca | --loc | --lo) | |
585 | ac_prev=localstatedir ;; | |
586 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
587 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
588 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 589 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
590 | |
591 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
592 | ac_prev=mandir ;; | |
593 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 594 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
595 | |
596 | -nfp | --nfp | --nf) | |
597 | # Obsolete; use --without-fp. | |
598 | with_fp=no ;; | |
599 | ||
600 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
601 | | --no-cr | --no-c) | |
602 | no_create=yes ;; | |
603 | ||
604 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
605 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
606 | no_recursion=yes ;; | |
607 | ||
608 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
609 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
610 | | --oldin | --oldi | --old | --ol | --o) | |
611 | ac_prev=oldincludedir ;; | |
612 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
613 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
614 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 615 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
616 | |
617 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
618 | ac_prev=prefix ;; | |
619 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 620 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
621 | |
622 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
623 | | --program-pre | --program-pr | --program-p) | |
624 | ac_prev=program_prefix ;; | |
625 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
626 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 627 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
628 | |
629 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
630 | | --program-suf | --program-su | --program-s) | |
631 | ac_prev=program_suffix ;; | |
632 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
633 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 634 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
635 | |
636 | -program-transform-name | --program-transform-name \ | |
637 | | --program-transform-nam | --program-transform-na \ | |
638 | | --program-transform-n | --program-transform- \ | |
639 | | --program-transform | --program-transfor \ | |
640 | | --program-transfo | --program-transf \ | |
641 | | --program-trans | --program-tran \ | |
642 | | --progr-tra | --program-tr | --program-t) | |
643 | ac_prev=program_transform_name ;; | |
644 | -program-transform-name=* | --program-transform-name=* \ | |
645 | | --program-transform-nam=* | --program-transform-na=* \ | |
646 | | --program-transform-n=* | --program-transform-=* \ | |
647 | | --program-transform=* | --program-transfor=* \ | |
648 | | --program-transfo=* | --program-transf=* \ | |
649 | | --program-trans=* | --program-tran=* \ | |
650 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 651 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
652 | |
653 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
654 | | -silent | --silent | --silen | --sile | --sil) | |
655 | silent=yes ;; | |
656 | ||
657 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
658 | ac_prev=sbindir ;; | |
659 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
660 | | --sbi=* | --sb=*) | |
698dcdb6 | 661 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
662 | |
663 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
664 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
665 | | --sharedst | --shareds | --shared | --share | --shar \ | |
666 | | --sha | --sh) | |
667 | ac_prev=sharedstatedir ;; | |
668 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
669 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
670 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
671 | | --sha=* | --sh=*) | |
698dcdb6 | 672 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
673 | |
674 | -site | --site | --sit) | |
675 | ac_prev=site ;; | |
676 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 677 | site="$ac_optarg" ;; |
10f2d63a VZ |
678 | |
679 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
680 | ac_prev=srcdir ;; | |
681 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 682 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
683 | |
684 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
685 | | --syscon | --sysco | --sysc | --sys | --sy) | |
686 | ac_prev=sysconfdir ;; | |
687 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
688 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 689 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
690 | |
691 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 692 | ac_prev=target ;; |
10f2d63a | 693 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 694 | target="$ac_optarg" ;; |
10f2d63a VZ |
695 | |
696 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
697 | verbose=yes ;; | |
698 | ||
698dcdb6 VZ |
699 | -version | --version | --versio | --versi | --vers) |
700 | echo "configure generated by autoconf version 2.13" | |
701 | exit 0 ;; | |
10f2d63a VZ |
702 | |
703 | -with-* | --with-*) | |
698dcdb6 | 704 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 705 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
706 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
707 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
708 | fi | |
10f2d63a | 709 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
710 | case "$ac_option" in |
711 | *=*) ;; | |
10f2d63a VZ |
712 | *) ac_optarg=yes ;; |
713 | esac | |
698dcdb6 | 714 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
715 | |
716 | -without-* | --without-*) | |
698dcdb6 | 717 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 718 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
719 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
720 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
721 | fi | |
722 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
723 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
724 | |
725 | --x) | |
726 | # Obsolete; use --with-x. | |
727 | with_x=yes ;; | |
728 | ||
729 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
730 | | --x-incl | --x-inc | --x-in | --x-i) | |
731 | ac_prev=x_includes ;; | |
732 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
733 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 734 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
735 | |
736 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
737 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
738 | ac_prev=x_libraries ;; | |
739 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
740 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 741 | x_libraries="$ac_optarg" ;; |
10f2d63a | 742 | |
698dcdb6 | 743 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
744 | ;; |
745 | ||
746 | *) | |
698dcdb6 VZ |
747 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
748 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
749 | fi | |
750 | if test "x$nonopt" != xNONE; then | |
751 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
752 | fi | |
753 | nonopt="$ac_option" | |
10f2d63a VZ |
754 | ;; |
755 | ||
756 | esac | |
757 | done | |
758 | ||
759 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
760 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
761 | fi | |
762 | ||
763 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
764 | ||
765 | # File descriptor usage: | |
766 | # 0 standard input | |
767 | # 1 file creation | |
768 | # 2 errors and warnings | |
769 | # 3 some systems may open it to /dev/tty | |
770 | # 4 used on the Kubota Titan | |
771 | # 6 checking for... messages and results | |
772 | # 5 compiler messages saved in config.log | |
773 | if test "$silent" = yes; then | |
774 | exec 6>/dev/null | |
775 | else | |
776 | exec 6>&1 | |
10f2d63a | 777 | fi |
698dcdb6 VZ |
778 | exec 5>./config.log |
779 | ||
780 | echo "\ | |
781 | This file contains any messages produced by compilers while | |
782 | running configure, to aid debugging if configure makes a mistake. | |
783 | " 1>&5 | |
10f2d63a | 784 | |
698dcdb6 VZ |
785 | # Strip out --no-create and --no-recursion so they do not pile up. |
786 | # Also quote any args containing shell metacharacters. | |
787 | ac_configure_args= | |
788 | for ac_arg | |
10f2d63a | 789 | do |
698dcdb6 VZ |
790 | case "$ac_arg" in |
791 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
792 | | --no-cr | --no-c) ;; | |
793 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
794 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
795 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
796 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
797 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
798 | esac |
799 | done | |
800 | ||
698dcdb6 VZ |
801 | # NLS nuisances. |
802 | # Only set these to C if already set. These must not be set unconditionally | |
803 | # because not all systems understand e.g. LANG=C (notably SCO). | |
804 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
805 | # Non-C LC_CTYPE values break the ctype check. | |
806 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
807 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
808 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
809 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 810 | |
698dcdb6 VZ |
811 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
812 | rm -rf conftest* confdefs.h | |
813 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
814 | echo > confdefs.h | |
10f2d63a | 815 | |
698dcdb6 VZ |
816 | # A filename unique to this package, relative to the directory that |
817 | # configure is in, which we can look for to find out if srcdir is correct. | |
818 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
819 | |
820 | # Find the source files, if location was not specified. | |
821 | if test -z "$srcdir"; then | |
822 | ac_srcdir_defaulted=yes | |
823 | # Try the directory containing this script, then its parent. | |
824 | ac_prog=$0 | |
698dcdb6 | 825 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
826 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
827 | srcdir=$ac_confdir | |
828 | if test ! -r $srcdir/$ac_unique_file; then | |
829 | srcdir=.. | |
830 | fi | |
831 | else | |
832 | ac_srcdir_defaulted=no | |
833 | fi | |
834 | if test ! -r $srcdir/$ac_unique_file; then | |
835 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 836 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 837 | else |
698dcdb6 | 838 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
839 | fi |
840 | fi | |
698dcdb6 | 841 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
842 | |
843 | # Prefer explicitly selected file to automatically selected ones. | |
844 | if test -z "$CONFIG_SITE"; then | |
845 | if test "x$prefix" != xNONE; then | |
846 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
847 | else | |
848 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
849 | fi | |
850 | fi | |
851 | for ac_site_file in $CONFIG_SITE; do | |
852 | if test -r "$ac_site_file"; then | |
698dcdb6 | 853 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
854 | . "$ac_site_file" |
855 | fi | |
856 | done | |
857 | ||
858 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
859 | echo "loading cache $cache_file" |
860 | . $cache_file | |
10f2d63a | 861 | else |
698dcdb6 VZ |
862 | echo "creating cache $cache_file" |
863 | > $cache_file | |
10f2d63a VZ |
864 | fi |
865 | ||
866 | ac_ext=c | |
698dcdb6 | 867 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 868 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
869 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
870 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
871 | cross_compiling=$ac_cv_prog_cc_cross | |
872 | ||
873 | ac_exeext= | |
874 | ac_objext=o | |
875 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
876 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
877 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
878 | ac_n= ac_c=' | |
879 | ' ac_t=' ' | |
880 | else | |
881 | ac_n=-n ac_c= ac_t= | |
882 | fi | |
10f2d63a | 883 | else |
698dcdb6 | 884 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 885 | fi |
698dcdb6 VZ |
886 | |
887 | ||
10f2d63a | 888 | |
7c66a493 VZ |
889 | ac_aux_dir= |
890 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
891 | if test -f $ac_dir/install-sh; then | |
892 | ac_aux_dir=$ac_dir | |
893 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
894 | break | |
895 | elif 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 | fi | |
900 | done | |
901 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 902 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 903 | fi |
698dcdb6 VZ |
904 | ac_config_guess=$ac_aux_dir/config.guess |
905 | ac_config_sub=$ac_aux_dir/config.sub | |
906 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 907 | |
698dcdb6 VZ |
908 | |
909 | # Do some error checking and defaulting for the host and target type. | |
910 | # The inputs are: | |
911 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
912 | # | |
913 | # The rules are: | |
914 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
915 | # same time. | |
916 | # 2. Host defaults to nonopt. | |
917 | # 3. If nonopt is not specified, then host defaults to the current host, | |
918 | # as determined by config.guess. | |
919 | # 4. Target and build default to nonopt. | |
920 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
921 | |
922 | # The aliases save the names the user supplied, while $host etc. | |
923 | # will get canonicalized. | |
698dcdb6 VZ |
924 | case $host---$target---$nonopt in |
925 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
926 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
927 | esac | |
928 | ||
929 | ||
930 | # Make sure we can run config.sub. | |
931 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
932 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
933 | fi | |
934 | ||
935 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
8db37e06 | 936 | echo "configure:937: checking host system type" >&5 |
698dcdb6 VZ |
937 | |
938 | host_alias=$host | |
939 | case "$host_alias" in | |
940 | NONE) | |
941 | case $nonopt in | |
942 | NONE) | |
943 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
944 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
945 | fi ;; | |
946 | *) host_alias=$nonopt ;; | |
947 | esac ;; | |
948 | esac | |
949 | ||
950 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
951 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
952 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
953 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
954 | echo "$ac_t""$host" 1>&6 | |
955 | ||
956 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
8db37e06 | 957 | echo "configure:958: checking target system type" >&5 |
698dcdb6 VZ |
958 | |
959 | target_alias=$target | |
960 | case "$target_alias" in | |
961 | NONE) | |
962 | case $nonopt in | |
963 | NONE) target_alias=$host_alias ;; | |
964 | *) target_alias=$nonopt ;; | |
965 | esac ;; | |
966 | esac | |
967 | ||
968 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
969 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
970 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
971 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
972 | echo "$ac_t""$target" 1>&6 | |
973 | ||
974 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
8db37e06 | 975 | echo "configure:976: checking build system type" >&5 |
698dcdb6 VZ |
976 | |
977 | build_alias=$build | |
978 | case "$build_alias" in | |
979 | NONE) | |
980 | case $nonopt in | |
981 | NONE) build_alias=$host_alias ;; | |
982 | *) build_alias=$nonopt ;; | |
983 | esac ;; | |
984 | esac | |
985 | ||
986 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
987 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
988 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
989 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
990 | echo "$ac_t""$build" 1>&6 | |
991 | ||
992 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
993 | test "$program_prefix$program_suffix$program_transform_name" = \ |
994 | NONENONEs,x,x, && | |
995 | program_prefix=${target_alias}- | |
996 | ||
698dcdb6 VZ |
997 | |
998 | ||
10f2d63a | 999 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1000 | WX_MINOR_VERSION_NUMBER=3 |
6c01ec02 | 1001 | WX_RELEASE_NUMBER=2 |
10f2d63a | 1002 | |
10f2d63a | 1003 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1004 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1005 | |
6c01ec02 | 1006 | WX_CURRENT=1 |
6426998c RL |
1007 | WX_REVISION=0 |
1008 | WX_AGE=0 | |
1009 | ||
698dcdb6 VZ |
1010 | |
1011 | ||
10f2d63a VZ |
1012 | USE_UNIX=1 |
1013 | USE_WIN32=0 | |
b12915c1 | 1014 | USE_BEOS=0 |
1216f52d | 1015 | USE_MAC=0 |
b12915c1 | 1016 | |
10f2d63a VZ |
1017 | USE_LINUX= |
1018 | USE_SGI= | |
1019 | USE_HPUX= | |
1020 | USE_SYSV= | |
1021 | USE_SVR4= | |
1022 | USE_AIX= | |
1023 | USE_SUN= | |
1024 | USE_SOLARIS= | |
1025 | USE_SUNOS= | |
1026 | USE_ALPHA= | |
1027 | USE_OSF= | |
1028 | USE_BSD= | |
f11bdd03 | 1029 | USE_DARWIN= |
10f2d63a | 1030 | USE_FREEBSD= |
95c8801c | 1031 | USE_OPENBSD= |
f6bcfd97 | 1032 | USE_NETBSD= |
10f2d63a VZ |
1033 | USE_VMS= |
1034 | USE_ULTRIX= | |
1035 | USE_CYGWIN= | |
1036 | USE_MINGW= | |
1037 | USE_DATA_GENERAL= | |
1038 | ||
ab9b9eab VZ |
1039 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1040 | ||
1e6feb95 | 1041 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" |
10f2d63a VZ |
1042 | |
1043 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1044 | DEFAULT_wxUSE_MAC=0 |
1045 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1046 | DEFAULT_wxUSE_MOTIF=0 |
1047 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1048 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1049 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1050 | |
1051 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1052 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1053 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1054 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1055 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1056 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1057 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1058 | |
d6a55c4b VZ |
1059 | PROGRAM_EXT= |
1060 | ||
10f2d63a VZ |
1061 | case "${host}" in |
1062 | *-hp-hpux* ) | |
1063 | USE_HPUX=1 | |
1064 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1065 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
698dcdb6 | 1066 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1067 | #define __HPUX__ 1 |
1068 | EOF | |
1069 | ||
1070 | ;; | |
1071 | *-*-linux* ) | |
1072 | USE_LINUX=1 | |
698dcdb6 | 1073 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1074 | #define __LINUX__ 1 |
1075 | EOF | |
1076 | ||
1077 | TMP=`uname -m` | |
1078 | if test "x$TMP" = "xalpha"; then | |
1079 | USE_ALPHA=1 | |
698dcdb6 | 1080 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1081 | #define __ALPHA__ 1 |
1082 | EOF | |
1083 | ||
1084 | fi | |
1085 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1086 | ;; | |
1087 | *-*-irix5* | *-*-irix6* ) | |
1088 | USE_SGI=1 | |
1089 | USE_SVR4=1 | |
698dcdb6 | 1090 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1091 | #define __SGI__ 1 |
1092 | EOF | |
1093 | ||
698dcdb6 | 1094 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1095 | #define __SVR4__ 1 |
1096 | EOF | |
1097 | ||
1098 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1099 | ;; | |
1100 | *-*-solaris2* ) | |
1101 | USE_SUN=1 | |
1102 | USE_SOLARIS=1 | |
1103 | USE_SVR4=1 | |
698dcdb6 | 1104 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1105 | #define __SUN__ 1 |
1106 | EOF | |
1107 | ||
698dcdb6 | 1108 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1109 | #define __SOLARIS__ 1 |
1110 | EOF | |
1111 | ||
698dcdb6 | 1112 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1113 | #define __SVR4__ 1 |
1114 | EOF | |
1115 | ||
1116 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1117 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1118 | ;; |
1119 | *-*-sunos4* ) | |
1120 | USE_SUN=1 | |
1121 | USE_SUNOS=1 | |
1122 | USE_BSD=1 | |
698dcdb6 | 1123 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1124 | #define __SUN__ 1 |
1125 | EOF | |
1126 | ||
698dcdb6 | 1127 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1128 | #define __SUNOS__ 1 |
1129 | EOF | |
1130 | ||
698dcdb6 | 1131 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1132 | #define __BSD__ 1 |
1133 | EOF | |
1134 | ||
1135 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1136 | ;; | |
f6bcfd97 | 1137 | *-*-freebsd*) |
10f2d63a VZ |
1138 | USE_BSD=1 |
1139 | USE_FREEBSD=1 | |
698dcdb6 | 1140 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1141 | #define __FREEBSD__ 1 |
1142 | EOF | |
1143 | ||
698dcdb6 | 1144 | cat >> confdefs.h <<\EOF |
10f2d63a | 1145 | #define __BSD__ 1 |
95c8801c VS |
1146 | EOF |
1147 | ||
1148 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1149 | ;; | |
1150 | *-*-openbsd*) | |
1151 | USE_BSD=1 | |
1152 | USE_OPENBSD=1 | |
698dcdb6 | 1153 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1154 | #define __FREEBSD__ 1 |
1155 | EOF | |
1156 | ||
698dcdb6 | 1157 | cat >> confdefs.h <<\EOF |
95c8801c | 1158 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1159 | EOF |
1160 | ||
1161 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1162 | ;; | |
1163 | *-*-netbsd*) | |
1164 | USE_BSD=1 | |
1165 | USE_NETBSD=1 | |
698dcdb6 | 1166 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1167 | #define __FREEBSD__ 1 |
1168 | EOF | |
1169 | ||
698dcdb6 | 1170 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1171 | #define __NETBSD__ 1 |
10f2d63a VZ |
1172 | EOF |
1173 | ||
1174 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1175 | ;; | |
1176 | *-*-osf* ) | |
1177 | USE_ALPHA=1 | |
1178 | USE_OSF=1 | |
698dcdb6 | 1179 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1180 | #define __ALPHA__ 1 |
1181 | EOF | |
1182 | ||
698dcdb6 | 1183 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1184 | #define __OSF__ 1 |
1185 | EOF | |
1186 | ||
1187 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1188 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1189 | ;; |
1190 | *-*-dgux5* ) | |
1191 | USE_ALPHA=1 | |
1192 | USE_SVR4=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 __SVR4__ 1 |
1199 | EOF | |
1200 | ||
1201 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1202 | ;; | |
1203 | *-*-sysv5* ) | |
1204 | USE_SYSV=1 | |
1205 | USE_SVR4=1 | |
698dcdb6 | 1206 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1207 | #define __SYSV__ 1 |
1208 | EOF | |
1209 | ||
698dcdb6 | 1210 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1211 | #define __SVR4__ 1 |
1212 | EOF | |
1213 | ||
1214 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1215 | ;; | |
1216 | *-*-aix* ) | |
1217 | USE_AIX=1 | |
1218 | USE_SYSV=1 | |
1219 | USE_SVR4=1 | |
698dcdb6 | 1220 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1221 | #define __AIX__ 1 |
1222 | EOF | |
1223 | ||
698dcdb6 | 1224 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1225 | #define __SYSV__ 1 |
1226 | EOF | |
1227 | ||
698dcdb6 | 1228 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1229 | #define __SVR4__ 1 |
1230 | EOF | |
1231 | ||
1232 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1233 | ;; | |
1234 | ||
1c8183e2 | 1235 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1236 | USE_UNIX=0 |
1237 | USE_WIN32=1 | |
698dcdb6 | 1238 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1239 | #define __WIN32__ 1 |
1240 | EOF | |
1241 | ||
698dcdb6 | 1242 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1243 | #define __WIN95__ 1 |
1244 | EOF | |
1245 | ||
698dcdb6 | 1246 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1247 | #define __WINDOWS__ 1 |
1248 | EOF | |
1249 | ||
698dcdb6 | 1250 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1251 | #define __GNUWIN32__ 1 |
1252 | EOF | |
1253 | ||
698dcdb6 | 1254 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1255 | #define STRICT 1 |
1256 | EOF | |
1257 | ||
698dcdb6 | 1258 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1259 | #define WINVER 0x0400 |
1260 | EOF | |
1261 | ||
cf27ef00 | 1262 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1263 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1264 | ;; | |
1265 | ||
1266 | *-pc-os2_emx ) | |
698dcdb6 | 1267 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1268 | #define __EMX__ 1 |
1269 | EOF | |
1270 | ||
cf27ef00 | 1271 | PROGRAM_EXT=".exe" |
e07802fc | 1272 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1273 | ;; |
1274 | ||
b4085ce6 GD |
1275 | *-*-darwin* ) |
1276 | USE_BSD=1 | |
f11bdd03 | 1277 | USE_DARWIN=1 |
698dcdb6 | 1278 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1279 | #define __BSD__ 1 |
b4085ce6 GD |
1280 | EOF |
1281 | ||
698dcdb6 | 1282 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1283 | #define __DARWIN__ 1 |
b4085ce6 GD |
1284 | EOF |
1285 | ||
698dcdb6 | 1286 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1287 | #define __UNIX__ 1 |
1288 | EOF | |
1289 | ||
1290 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1291 | ;; | |
1292 | ||
b12915c1 VZ |
1293 | *-*-beos* ) |
1294 | USE_BEOS=1 | |
698dcdb6 | 1295 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1296 | #define __BEOS__ 1 |
1297 | EOF | |
1298 | ||
1299 | ;; | |
1300 | ||
10f2d63a | 1301 | *) |
698dcdb6 | 1302 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1303 | esac |
1304 | ||
1305 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1306 | wxUSE_UNIX=yes |
698dcdb6 | 1307 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1308 | #define __UNIX__ 1 |
1309 | EOF | |
1310 | ||
698dcdb6 | 1311 | |
b12915c1 VZ |
1312 | SRC_SUBDIRS="$SRC_SUBDIRS unix" |
1313 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1314 | fi | |
1315 | ||
1316 | if test "$USE_BEOS" = 1; then | |
1317 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1318 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1319 | fi |
1320 | ||
1321 | if test "$USE_LINUX" = 1; then | |
698dcdb6 | 1322 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 |
8db37e06 | 1323 | echo "configure:1324: checking for gettext in -lc" >&5 |
698dcdb6 VZ |
1324 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1325 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1326 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 1327 | else |
698dcdb6 VZ |
1328 | ac_save_LIBS="$LIBS" |
1329 | LIBS="-lc $LIBS" | |
1330 | cat > conftest.$ac_ext <<EOF | |
8db37e06 | 1331 | #line 1332 "configure" |
698dcdb6 VZ |
1332 | #include "confdefs.h" |
1333 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1334 | /* We use char because int might match the return type of a gcc2 | |
1335 | builtin and then its argument prototype would still apply. */ | |
1336 | char gettext(); | |
10f2d63a | 1337 | |
698dcdb6 VZ |
1338 | int main() { |
1339 | gettext() | |
1340 | ; return 0; } | |
1341 | EOF | |
8db37e06 | 1342 | if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
1343 | rm -rf conftest* |
1344 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 1345 | else |
698dcdb6 VZ |
1346 | echo "configure: failed program was:" >&5 |
1347 | cat conftest.$ac_ext >&5 | |
1348 | rm -rf conftest* | |
1349 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 1350 | fi |
698dcdb6 VZ |
1351 | rm -f conftest* |
1352 | LIBS="$ac_save_LIBS" | |
10f2d63a VZ |
1353 | |
1354 | fi | |
698dcdb6 VZ |
1355 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1356 | echo "$ac_t""yes" 1>&6 | |
1357 | cat >> confdefs.h <<\EOF | |
1358 | #define wxHAVE_GLIBC2 1 | |
1359 | EOF | |
10f2d63a VZ |
1360 | |
1361 | else | |
698dcdb6 | 1362 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
1363 | fi |
1364 | ||
1365 | fi | |
1366 | ||
1e487827 | 1367 | |
1e487827 | 1368 | |
6232543b | 1369 | |
10f2d63a VZ |
1370 | wx_arg_cache_file="configarg.cache" |
1371 | echo "loading argument cache $wx_arg_cache_file" | |
1372 | rm -f ${wx_arg_cache_file}.tmp | |
1373 | touch ${wx_arg_cache_file}.tmp | |
1374 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1375 | |
10f2d63a VZ |
1376 | |
1377 | DEBUG_CONFIGURE=0 | |
1378 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1379 | DEFAULT_wxUSE_UNIVERSAL=no |
1380 | ||
10f2d63a VZ |
1381 | DEFAULT_wxUSE_THREADS=yes |
1382 | ||
1383 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1384 | DEFAULT_wxUSE_BURNT_NAME=no |
1e6feb95 | 1385 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1386 | DEFAULT_wxUSE_PROFILE=no |
1387 | DEFAULT_wxUSE_NO_DEPS=no | |
1388 | DEFAULT_wxUSE_NO_RTTI=no | |
1389 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1390 | DEFAULT_wxUSE_PERMISSIVE=no | |
1391 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1392 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1393 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1394 | DEFAULT_wxUSE_MEM_TRACING=no | |
1395 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1396 | DEFAULT_wxUSE_DMALLOC=no | |
1397 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1398 | ||
1399 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1400 | DEFAULT_wxUSE_LOGWINDOW=no |
1401 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1402 | |
1403 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1404 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1405 | |
3e44f09d | 1406 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1407 | DEFAULT_wxUSE_ZLIB=no |
1408 | DEFAULT_wxUSE_LIBPNG=no | |
1409 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1410 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1411 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1412 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1413 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1414 | |
eb4efbdc | 1415 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1416 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1417 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1418 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1419 | DEFAULT_wxUSE_DATETIME=no | |
1420 | DEFAULT_wxUSE_TIMEDATE=no | |
1421 | DEFAULT_wxUSE_TIMER=no | |
1422 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1423 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1424 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1425 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1426 | DEFAULT_wxUSE_WAVE=no |
1427 | DEFAULT_wxUSE_INTL=no | |
1428 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1429 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1430 | DEFAULT_wxUSE_STREAMS=no |
1431 | DEFAULT_wxUSE_SOCKETS=no | |
1432 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1433 | DEFAULT_wxUSE_SERIAL=no | |
1434 | DEFAULT_wxUSE_JOYSTICK=no | |
1435 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1436 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1437 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1438 | |
1439 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1440 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1441 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1442 | ||
1443 | DEFAULT_wxUSE_X_RESOURCES=no | |
1444 | DEFAULT_wxUSE_CLIPBOARD=no | |
1445 | DEFAULT_wxUSE_TOOLTIPS=no | |
1446 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1447 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1448 | DEFAULT_wxUSE_SPLINES=no |
1449 | ||
1450 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1451 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1452 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1453 | ||
1454 | DEFAULT_wxUSE_PROLOGIO=no | |
1455 | DEFAULT_wxUSE_RESOURCES=no | |
1456 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1457 | DEFAULT_wxUSE_IPC=no | |
1458 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1459 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1460 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1461 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1462 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1463 | DEFAULT_wxUSE_MIMETYPE=no |
3e44f09d | 1464 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1465 | |
1466 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1467 | DEFAULT_wxUSE_CHOICEDLG=no |
1468 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1469 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1470 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1471 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1472 | DEFAULT_wxUSE_FONTDLG=no |
1473 | DEFAULT_wxUSE_MSGDLG=no | |
1474 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a VZ |
1475 | DEFAULT_wxUSE_TEXTDLG=no |
1476 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1477 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1478 | DEFAULT_wxUSE_WIZARDDLG=no |
1479 | ||
1e6feb95 | 1480 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1481 | DEFAULT_wxUSE_MINIFRAME=no |
1482 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1483 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1484 | DEFAULT_wxUSE_FS_INET=no |
1485 | DEFAULT_wxUSE_FS_ZIP=no | |
1486 | DEFAULT_wxUSE_BUSYINFO=no | |
1487 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1488 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1489 | |
1490 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1491 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1492 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1493 | DEFAULT_wxUSE_CALCTRL=no |
1494 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1495 | DEFAULT_wxUSE_CHECKBOX=no |
1496 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1497 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1498 | DEFAULT_wxUSE_COMBOBOX=no |
1499 | DEFAULT_wxUSE_GAUGE=no | |
1500 | DEFAULT_wxUSE_GRID=no | |
1501 | DEFAULT_wxUSE_NEW_GRID=no | |
1502 | DEFAULT_wxUSE_IMAGLIST=no | |
1503 | DEFAULT_wxUSE_LISTBOX=no | |
1504 | DEFAULT_wxUSE_LISTCTRL=no | |
1505 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1506 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1507 | DEFAULT_wxUSE_RADIOBOX=no |
1508 | DEFAULT_wxUSE_RADIOBTN=no | |
1509 | DEFAULT_wxUSE_SASH=no | |
1510 | DEFAULT_wxUSE_SCROLLBAR=no | |
1511 | DEFAULT_wxUSE_SLIDER=no | |
1512 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1513 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1514 | DEFAULT_wxUSE_SPLITTER=no |
1515 | DEFAULT_wxUSE_STATBMP=no | |
1516 | DEFAULT_wxUSE_STATBOX=no | |
1517 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1518 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1519 | DEFAULT_wxUSE_STATUSBAR=yes |
1520 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1521 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1522 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1523 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1524 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1525 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1526 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1527 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
1528 | |
1529 | DEFAULT_wxUSE_UNICODE=no | |
1530 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1531 | ||
0046ff7c | 1532 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1533 | DEFAULT_wxUSE_GIF=no |
1534 | DEFAULT_wxUSE_PCX=no | |
1535 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1536 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1537 | else |
1e6feb95 VZ |
1538 | DEFAULT_wxUSE_UNIVERSAL=no |
1539 | ||
10f2d63a VZ |
1540 | DEFAULT_wxUSE_THREADS=yes |
1541 | ||
1542 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1543 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1544 | DEFAULT_wxUSE_OPTIMISE=yes |
1545 | DEFAULT_wxUSE_PROFILE=no | |
1546 | DEFAULT_wxUSE_NO_DEPS=no | |
1547 | DEFAULT_wxUSE_NO_RTTI=no | |
1548 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1549 | DEFAULT_wxUSE_PERMISSIVE=no | |
1550 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1551 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1552 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1553 | DEFAULT_wxUSE_MEM_TRACING=no | |
1554 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1555 | DEFAULT_wxUSE_DMALLOC=no | |
1556 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1557 | ||
1558 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1559 | DEFAULT_wxUSE_LOGWINDOW=yes |
1560 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1561 | |
1562 | DEFAULT_wxUSE_GUI=yes | |
1563 | ||
831b3152 | 1564 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1565 | DEFAULT_wxUSE_ZLIB=yes |
1566 | DEFAULT_wxUSE_LIBPNG=yes | |
1567 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1568 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1569 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1570 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1571 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1572 | |
eb4efbdc | 1573 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1574 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1575 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1576 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1577 | DEFAULT_wxUSE_DATETIME=yes | |
1578 | DEFAULT_wxUSE_TIMEDATE=no | |
1579 | DEFAULT_wxUSE_TIMER=yes | |
1580 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1581 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1582 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1583 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1584 | DEFAULT_wxUSE_WAVE=no |
1585 | DEFAULT_wxUSE_INTL=yes | |
1586 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1587 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1588 | DEFAULT_wxUSE_STREAMS=yes |
1589 | DEFAULT_wxUSE_SOCKETS=yes | |
1590 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1591 | DEFAULT_wxUSE_SERIAL=yes | |
1592 | DEFAULT_wxUSE_JOYSTICK=yes | |
1593 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1594 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1595 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1596 | |
1597 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1598 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1599 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1600 | ||
1601 | DEFAULT_wxUSE_X_RESOURCES=no | |
1602 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1603 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1604 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1605 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1606 | DEFAULT_wxUSE_SPLINES=yes |
1607 | ||
1608 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1609 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1610 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1611 | ||
1612 | DEFAULT_wxUSE_PROLOGIO=yes | |
1613 | DEFAULT_wxUSE_RESOURCES=yes | |
1614 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1615 | DEFAULT_wxUSE_IPC=yes | |
1616 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1617 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1618 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1619 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1620 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1621 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1622 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
10f2d63a VZ |
1623 | |
1624 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1625 | DEFAULT_wxUSE_CHOICEDLG=yes |
1626 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1627 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1628 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1629 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1630 | DEFAULT_wxUSE_FONTDLG=yes |
1631 | DEFAULT_wxUSE_MSGDLG=yes | |
1632 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a VZ |
1633 | DEFAULT_wxUSE_TEXTDLG=yes |
1634 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1635 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1636 | DEFAULT_wxUSE_WIZARDDLG=yes |
1637 | ||
1e6feb95 | 1638 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1639 | DEFAULT_wxUSE_MINIFRAME=yes |
1640 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1641 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1642 | DEFAULT_wxUSE_FS_INET=yes |
1643 | DEFAULT_wxUSE_FS_ZIP=yes | |
1644 | DEFAULT_wxUSE_BUSYINFO=yes | |
1645 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1646 | DEFAULT_wxUSE_VALIDATORS=yes | |
1647 | ||
1648 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1649 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1650 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1651 | DEFAULT_wxUSE_CALCTRL=yes |
1652 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1653 | DEFAULT_wxUSE_CHECKBOX=yes |
1654 | DEFAULT_wxUSE_CHECKLST=yes | |
1655 | DEFAULT_wxUSE_CHOICE=yes | |
1656 | DEFAULT_wxUSE_COMBOBOX=yes | |
1657 | DEFAULT_wxUSE_GAUGE=yes | |
1658 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1659 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1660 | DEFAULT_wxUSE_IMAGLIST=yes |
1661 | DEFAULT_wxUSE_LISTBOX=yes | |
1662 | DEFAULT_wxUSE_LISTCTRL=yes | |
1663 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1664 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1665 | DEFAULT_wxUSE_RADIOBOX=yes |
1666 | DEFAULT_wxUSE_RADIOBTN=yes | |
1667 | DEFAULT_wxUSE_SASH=yes | |
1668 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1669 | DEFAULT_wxUSE_SLIDER=yes | |
1670 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1671 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1672 | DEFAULT_wxUSE_SPLITTER=yes |
1673 | DEFAULT_wxUSE_STATBMP=yes | |
1674 | DEFAULT_wxUSE_STATBOX=yes | |
1675 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1676 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1677 | DEFAULT_wxUSE_STATUSBAR=yes |
1678 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1679 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1680 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1681 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1682 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1683 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1684 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1685 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
1686 | |
1687 | DEFAULT_wxUSE_UNICODE=no | |
1688 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1689 | ||
0046ff7c | 1690 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1691 | DEFAULT_wxUSE_GIF=yes |
1692 | DEFAULT_wxUSE_PCX=yes | |
1693 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1694 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1695 | fi |
1696 | ||
698dcdb6 VZ |
1697 | |
1698 | ||
10f2d63a VZ |
1699 | for toolkit in `echo $ALL_TOOLKITS`; do |
1700 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1701 | if test "x$LINE" != x ; then | |
1702 | has_toolkit_in_cache=1 | |
1703 | eval "DEFAULT_$LINE" | |
1704 | eval "CACHE_$toolkit=1" | |
1705 | fi | |
1706 | done | |
1707 | ||
698dcdb6 VZ |
1708 | |
1709 | ||
1710 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
8db37e06 | 1711 | echo "configure:1712: checking for --enable-gui" >&5 |
10f2d63a VZ |
1712 | no_cache=0 |
1713 | # Check whether --enable-gui or --disable-gui was given. | |
1714 | if test "${enable_gui+set}" = set; then | |
1715 | enableval="$enable_gui" | |
698dcdb6 | 1716 | |
10f2d63a VZ |
1717 | if test "$enableval" = yes; then |
1718 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1719 | else | |
1720 | ac_cv_use_gui='wxUSE_GUI=no' | |
1721 | fi | |
698dcdb6 | 1722 | |
10f2d63a | 1723 | else |
698dcdb6 | 1724 | |
10f2d63a VZ |
1725 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1726 | if test "x$LINE" != x ; then | |
1727 | eval "DEFAULT_$LINE" | |
1728 | else | |
1729 | no_cache=1 | |
1730 | fi | |
1731 | ||
1732 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1733 | |
1734 | fi | |
10f2d63a VZ |
1735 | |
1736 | ||
1737 | eval "$ac_cv_use_gui" | |
1738 | if test "$no_cache" != 1; then | |
1739 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1740 | fi | |
1741 | ||
1742 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1743 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1744 | else |
698dcdb6 | 1745 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1746 | fi |
698dcdb6 | 1747 | |
10f2d63a | 1748 | |
b12915c1 | 1749 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1750 | |
1e6feb95 VZ |
1751 | |
1752 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
8db37e06 | 1753 | echo "configure:1754: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1754 | no_cache=0 |
1755 | # Check whether --enable-universal or --disable-universal was given. | |
1756 | if test "${enable_universal+set}" = set; then | |
1757 | enableval="$enable_universal" | |
1758 | ||
1759 | if test "$enableval" = yes; then | |
1760 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1761 | else | |
1762 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1763 | fi | |
1764 | ||
1765 | else | |
1766 | ||
1767 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1768 | if test "x$LINE" != x ; then | |
1769 | eval "DEFAULT_$LINE" | |
1770 | else | |
1771 | no_cache=1 | |
1772 | fi | |
1773 | ||
1774 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1775 | ||
1776 | fi | |
1777 | ||
1778 | ||
1779 | eval "$ac_cv_use_universal" | |
1780 | if test "$no_cache" != 1; then | |
1781 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1782 | fi | |
1783 | ||
1784 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1785 | echo "$ac_t""yes" 1>&6 | |
1786 | else | |
1787 | echo "$ac_t""no" 1>&6 | |
1788 | fi | |
1789 | ||
10f2d63a VZ |
1790 | # Check whether --with-gtk or --without-gtk was given. |
1791 | if test "${with_gtk+set}" = set; then | |
1792 | withval="$with_gtk" | |
1793 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1794 | fi |
10f2d63a VZ |
1795 | |
1796 | # Check whether --with-motif or --without-motif was given. | |
1797 | if test "${with_motif+set}" = set; then | |
1798 | withval="$with_motif" | |
1799 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1800 | fi |
10f2d63a | 1801 | |
b4085ce6 GD |
1802 | # Check whether --with-mac or --without-mac was given. |
1803 | if test "${with_mac+set}" = set; then | |
1804 | withval="$with_mac" | |
1805 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1806 | fi |
b4085ce6 | 1807 | |
10f2d63a VZ |
1808 | # Check whether --with-wine or --without-wine was given. |
1809 | if test "${with_wine+set}" = set; then | |
1810 | withval="$with_wine" | |
1811 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1812 | fi |
10f2d63a VZ |
1813 | |
1814 | # Check whether --with-cygwin or --without-cygwin was given. | |
1815 | if test "${with_cygwin+set}" = set; then | |
1816 | withval="$with_cygwin" | |
1817 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1818 | fi |
10f2d63a VZ |
1819 | |
1820 | # Check whether --with-mingw or --without-mingw was given. | |
1821 | if test "${with_mingw+set}" = set; then | |
1822 | withval="$with_mingw" | |
1823 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1824 | fi |
10f2d63a | 1825 | |
e07802fc VZ |
1826 | # Check whether --with-pm or --without-pm was given. |
1827 | if test "${with_pm+set}" = set; then | |
1828 | withval="$with_pm" | |
1829 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1830 | fi |
1831 | ||
1e6feb95 VZ |
1832 | # Check whether --with-mgl or --without-mgl was given. |
1833 | if test "${with_mgl+set}" = set; then | |
1834 | withval="$with_mgl" | |
1835 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1836 | fi | |
1837 | ||
10f2d63a | 1838 | |
8168de4c VZ |
1839 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1840 | if test "${enable_gtk2+set}" = set; then | |
1841 | enableval="$enable_gtk2" | |
1842 | wxUSE_GTK2=1 | |
10f2d63a | 1843 | else |
8168de4c | 1844 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1845 | fi |
1846 | ||
703e0a69 | 1847 | |
1e487827 | 1848 | |
698dcdb6 | 1849 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
8db37e06 | 1850 | echo "configure:1851: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1851 | no_cache=0 |
1852 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1853 | if test "${with_libpng+set}" = set; then |
1854 | withval="$with_libpng" | |
698dcdb6 | 1855 | |
10f2d63a | 1856 | if test "$withval" = yes; then |
b12915c1 | 1857 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1858 | elif test "$withval" = no; then |
b12915c1 | 1859 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1860 | elif test "$withval" = sys; then |
1861 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1862 | else | |
698dcdb6 | 1863 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1864 | fi |
698dcdb6 | 1865 | |
10f2d63a | 1866 | else |
698dcdb6 | 1867 | |
b12915c1 | 1868 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1869 | if test "x$LINE" != x ; then |
1870 | eval "DEFAULT_$LINE" | |
1871 | else | |
1872 | no_cache=1 | |
1873 | fi | |
1874 | ||
b12915c1 | 1875 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1876 | |
1877 | fi | |
10f2d63a VZ |
1878 | |
1879 | ||
b12915c1 | 1880 | eval "$ac_cv_use_libpng" |
10f2d63a | 1881 | if test "$no_cache" != 1; then |
b12915c1 | 1882 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1883 | fi |
1884 | ||
b12915c1 | 1885 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1886 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1887 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1888 | echo "$ac_t""no" 1>&6 |
422107f9 | 1889 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1890 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1891 | else |
698dcdb6 | 1892 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1893 | fi |
698dcdb6 | 1894 | |
10f2d63a | 1895 | |
698dcdb6 | 1896 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
8db37e06 | 1897 | echo "configure:1898: checking for --with-libjpeg" >&5 |
10f2d63a | 1898 | no_cache=0 |
698dcdb6 | 1899 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1900 | if test "${with_libjpeg+set}" = set; then |
1901 | withval="$with_libjpeg" | |
698dcdb6 | 1902 | |
10f2d63a | 1903 | if test "$withval" = yes; then |
b12915c1 | 1904 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1905 | elif test "$withval" = no; then |
b12915c1 | 1906 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1907 | elif test "$withval" = sys; then |
1908 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1909 | else | |
698dcdb6 | 1910 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1911 | fi |
698dcdb6 | 1912 | |
10f2d63a | 1913 | else |
698dcdb6 | 1914 | |
b12915c1 | 1915 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1916 | if test "x$LINE" != x ; then |
1917 | eval "DEFAULT_$LINE" | |
1918 | else | |
1919 | no_cache=1 | |
1920 | fi | |
1921 | ||
b12915c1 | 1922 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1923 | |
1924 | fi | |
10f2d63a VZ |
1925 | |
1926 | ||
b12915c1 | 1927 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1928 | if test "$no_cache" != 1; then |
b12915c1 | 1929 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1930 | fi |
1931 | ||
b12915c1 | 1932 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1933 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1934 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1935 | echo "$ac_t""no" 1>&6 |
422107f9 | 1936 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1937 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1938 | else |
698dcdb6 | 1939 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1940 | fi |
698dcdb6 | 1941 | |
10f2d63a | 1942 | |
698dcdb6 | 1943 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
8db37e06 | 1944 | echo "configure:1945: checking for --with-libtiff" >&5 |
10f2d63a | 1945 | no_cache=0 |
698dcdb6 | 1946 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1947 | if test "${with_libtiff+set}" = set; then |
1948 | withval="$with_libtiff" | |
698dcdb6 | 1949 | |
10f2d63a | 1950 | if test "$withval" = yes; then |
b12915c1 | 1951 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1952 | elif test "$withval" = no; then |
b12915c1 | 1953 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1954 | elif test "$withval" = sys; then |
1955 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1956 | else | |
698dcdb6 | 1957 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1958 | fi |
698dcdb6 | 1959 | |
10f2d63a | 1960 | else |
698dcdb6 | 1961 | |
b12915c1 | 1962 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1963 | if test "x$LINE" != x ; then |
1964 | eval "DEFAULT_$LINE" | |
1965 | else | |
1966 | no_cache=1 | |
1967 | fi | |
1968 | ||
b12915c1 | 1969 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1970 | |
1971 | fi | |
10f2d63a VZ |
1972 | |
1973 | ||
b12915c1 | 1974 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1975 | if test "$no_cache" != 1; then |
b12915c1 | 1976 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1977 | fi |
1978 | ||
b12915c1 | 1979 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1980 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1981 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1982 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1983 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1984 | echo "$ac_t""system version" 1>&6 |
0dcf9893 | 1985 | else |
698dcdb6 | 1986 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1987 | fi |
698dcdb6 | 1988 | |
10f2d63a | 1989 | |
698dcdb6 | 1990 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
8db37e06 | 1991 | echo "configure:1992: checking for --with-freetype" >&5 |
3fed1840 | 1992 | no_cache=0 |
698dcdb6 | 1993 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
1994 | if test "${with_freetype+set}" = set; then |
1995 | withval="$with_freetype" | |
698dcdb6 | 1996 | |
3fed1840 RR |
1997 | if test "$withval" = yes; then |
1998 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1999 | elif test "$withval" = no; then | |
2000 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
2001 | elif test "$withval" = sys; then | |
2002 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
2003 | else | |
698dcdb6 | 2004 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 2005 | fi |
698dcdb6 | 2006 | |
3fed1840 | 2007 | else |
698dcdb6 | 2008 | |
3fed1840 RR |
2009 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
2010 | if test "x$LINE" != x ; then | |
2011 | eval "DEFAULT_$LINE" | |
2012 | else | |
2013 | no_cache=1 | |
2014 | fi | |
2015 | ||
2016 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
2017 | |
2018 | fi | |
3fed1840 RR |
2019 | |
2020 | ||
2021 | eval "$ac_cv_use_freetype" | |
2022 | if test "$no_cache" != 1; then | |
2023 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2024 | fi | |
2025 | ||
2026 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2027 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2028 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2029 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2030 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2031 | echo "$ac_t""system version" 1>&6 |
3fed1840 | 2032 | else |
698dcdb6 | 2033 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 2034 | fi |
698dcdb6 | 2035 | |
3fed1840 | 2036 | |
698dcdb6 | 2037 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
8db37e06 | 2038 | echo "configure:2039: checking for --with-opengl" >&5 |
10f2d63a | 2039 | no_cache=0 |
698dcdb6 | 2040 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2041 | if test "${with_opengl+set}" = set; then |
2042 | withval="$with_opengl" | |
698dcdb6 | 2043 | |
10f2d63a | 2044 | if test "$withval" = yes; then |
b12915c1 | 2045 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2046 | else |
b12915c1 | 2047 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2048 | fi |
698dcdb6 | 2049 | |
10f2d63a | 2050 | else |
698dcdb6 | 2051 | |
b12915c1 | 2052 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2053 | if test "x$LINE" != x ; then |
2054 | eval "DEFAULT_$LINE" | |
2055 | else | |
2056 | no_cache=1 | |
2057 | fi | |
2058 | ||
b12915c1 | 2059 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2060 | |
2061 | fi | |
10f2d63a VZ |
2062 | |
2063 | ||
b12915c1 | 2064 | eval "$ac_cv_use_opengl" |
10f2d63a | 2065 | if test "$no_cache" != 1; then |
b12915c1 | 2066 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2067 | fi |
2068 | ||
b12915c1 | 2069 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2070 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2071 | else |
698dcdb6 | 2072 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2073 | fi |
698dcdb6 | 2074 | |
10f2d63a | 2075 | |
b12915c1 VZ |
2076 | fi |
2077 | ||
1e487827 | 2078 | |
698dcdb6 | 2079 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
8db37e06 | 2080 | echo "configure:2081: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2081 | no_cache=0 |
2082 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2083 | if test "${with_dmalloc+set}" = set; then |
2084 | withval="$with_dmalloc" | |
698dcdb6 | 2085 | |
c7a2bf27 | 2086 | if test "$withval" = yes; then |
b12915c1 | 2087 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2088 | else |
b12915c1 | 2089 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2090 | fi |
698dcdb6 | 2091 | |
c7a2bf27 | 2092 | else |
698dcdb6 | 2093 | |
b12915c1 | 2094 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2095 | if test "x$LINE" != x ; then |
2096 | eval "DEFAULT_$LINE" | |
2097 | else | |
2098 | no_cache=1 | |
2099 | fi | |
2100 | ||
b12915c1 | 2101 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2102 | |
2103 | fi | |
c7a2bf27 RR |
2104 | |
2105 | ||
b12915c1 | 2106 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2107 | if test "$no_cache" != 1; then |
b12915c1 | 2108 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2109 | fi |
2110 | ||
b12915c1 | 2111 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2112 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2113 | else |
698dcdb6 | 2114 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2115 | fi |
698dcdb6 | 2116 | |
c7a2bf27 | 2117 | |
3e44f09d | 2118 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
8db37e06 | 2119 | echo "configure:2120: checking for --with-regex" >&5 |
3e44f09d VZ |
2120 | no_cache=0 |
2121 | # Check whether --with-regex or --without-regex was given. | |
2122 | if test "${with_regex+set}" = set; then | |
2123 | withval="$with_regex" | |
2124 | ||
2125 | if test "$withval" = yes; then | |
2126 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2127 | elif test "$withval" = no; then | |
2128 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2129 | elif test "$withval" = sys; then | |
2130 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
2131 | else | |
2132 | { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; } | |
2133 | fi | |
2134 | ||
2135 | else | |
2136 | ||
2137 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2138 | if test "x$LINE" != x ; then | |
2139 | eval "DEFAULT_$LINE" | |
2140 | else | |
2141 | no_cache=1 | |
2142 | fi | |
2143 | ||
2144 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2145 | ||
2146 | fi | |
2147 | ||
2148 | ||
2149 | eval "$ac_cv_use_regex" | |
2150 | if test "$no_cache" != 1; then | |
2151 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2152 | fi | |
2153 | ||
2154 | if test "$wxUSE_REGEX" = yes; then | |
2155 | echo "$ac_t""yes" 1>&6 | |
2156 | elif test "$wxUSE_REGEX" = no; then | |
2157 | echo "$ac_t""no" 1>&6 | |
2158 | elif test "$wxUSE_REGEX" = sys; then | |
2159 | echo "$ac_t""system version" 1>&6 | |
2160 | else | |
2161 | { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; } | |
2162 | fi | |
2163 | ||
2164 | ||
698dcdb6 | 2165 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
8db37e06 | 2166 | echo "configure:2167: checking for --with-zlib" >&5 |
10f2d63a | 2167 | no_cache=0 |
698dcdb6 | 2168 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2169 | if test "${with_zlib+set}" = set; then |
2170 | withval="$with_zlib" | |
698dcdb6 | 2171 | |
10f2d63a | 2172 | if test "$withval" = yes; then |
b12915c1 | 2173 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2174 | elif test "$withval" = no; then |
b12915c1 | 2175 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2176 | elif test "$withval" = sys; then |
2177 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2178 | else | |
698dcdb6 | 2179 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2180 | fi |
698dcdb6 | 2181 | |
10f2d63a | 2182 | else |
698dcdb6 | 2183 | |
b12915c1 | 2184 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2185 | if test "x$LINE" != x ; then |
2186 | eval "DEFAULT_$LINE" | |
2187 | else | |
2188 | no_cache=1 | |
2189 | fi | |
2190 | ||
b12915c1 | 2191 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2192 | |
2193 | fi | |
10f2d63a VZ |
2194 | |
2195 | ||
b12915c1 | 2196 | eval "$ac_cv_use_zlib" |
10f2d63a | 2197 | if test "$no_cache" != 1; then |
b12915c1 | 2198 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2199 | fi |
2200 | ||
b12915c1 | 2201 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2202 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2203 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2204 | echo "$ac_t""no" 1>&6 |
422107f9 | 2205 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2206 | echo "$ac_t""system version" 1>&6 |
422107f9 | 2207 | else |
698dcdb6 | 2208 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2209 | fi |
698dcdb6 | 2210 | |
10f2d63a | 2211 | |
698dcdb6 | 2212 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
8db37e06 | 2213 | echo "configure:2214: checking for --with-odbc" >&5 |
10f2d63a | 2214 | no_cache=0 |
698dcdb6 | 2215 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2216 | if test "${with_odbc+set}" = set; then |
2217 | withval="$with_odbc" | |
698dcdb6 | 2218 | |
10f2d63a VZ |
2219 | if test "$withval" = yes; then |
2220 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2221 | else | |
2222 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2223 | fi | |
698dcdb6 | 2224 | |
10f2d63a | 2225 | else |
698dcdb6 | 2226 | |
10f2d63a VZ |
2227 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2228 | if test "x$LINE" != x ; then | |
2229 | eval "DEFAULT_$LINE" | |
2230 | else | |
2231 | no_cache=1 | |
2232 | fi | |
2233 | ||
2234 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2235 | |
2236 | fi | |
10f2d63a VZ |
2237 | |
2238 | ||
2239 | eval "$ac_cv_use_odbc" | |
2240 | if test "$no_cache" != 1; then | |
2241 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2242 | fi | |
2243 | ||
2244 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2245 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2246 | else |
698dcdb6 | 2247 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2248 | fi |
698dcdb6 VZ |
2249 | |
2250 | ||
10f2d63a | 2251 | |
698dcdb6 VZ |
2252 | |
2253 | ||
2254 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
8db37e06 | 2255 | echo "configure:2256: checking for --enable-shared" >&5 |
10f2d63a VZ |
2256 | no_cache=0 |
2257 | # Check whether --enable-shared or --disable-shared was given. | |
2258 | if test "${enable_shared+set}" = set; then | |
2259 | enableval="$enable_shared" | |
698dcdb6 | 2260 | |
10f2d63a VZ |
2261 | if test "$enableval" = yes; then |
2262 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2263 | else | |
2264 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2265 | fi | |
698dcdb6 | 2266 | |
10f2d63a | 2267 | else |
698dcdb6 | 2268 | |
10f2d63a VZ |
2269 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2270 | if test "x$LINE" != x ; then | |
2271 | eval "DEFAULT_$LINE" | |
2272 | else | |
2273 | no_cache=1 | |
2274 | fi | |
2275 | ||
2276 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2277 | |
2278 | fi | |
10f2d63a VZ |
2279 | |
2280 | ||
2281 | eval "$ac_cv_use_shared" | |
2282 | if test "$no_cache" != 1; then | |
2283 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2284 | fi | |
2285 | ||
2286 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2287 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2288 | else |
698dcdb6 | 2289 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2290 | fi |
698dcdb6 | 2291 | |
10f2d63a | 2292 | |
698dcdb6 | 2293 | echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6 |
8db37e06 | 2294 | echo "configure:2295: checking for --enable-burnt_name" >&5 |
00cf1208 RR |
2295 | no_cache=0 |
2296 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2297 | if test "${enable_burnt_name+set}" = set; then | |
2298 | enableval="$enable_burnt_name" | |
698dcdb6 | 2299 | |
00cf1208 RR |
2300 | if test "$enableval" = yes; then |
2301 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2302 | else | |
2303 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2304 | fi | |
698dcdb6 | 2305 | |
00cf1208 | 2306 | else |
698dcdb6 | 2307 | |
00cf1208 RR |
2308 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` |
2309 | if test "x$LINE" != x ; then | |
2310 | eval "DEFAULT_$LINE" | |
2311 | else | |
2312 | no_cache=1 | |
2313 | fi | |
2314 | ||
2315 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
698dcdb6 VZ |
2316 | |
2317 | fi | |
00cf1208 RR |
2318 | |
2319 | ||
2320 | eval "$ac_cv_use_burnt_name" | |
2321 | if test "$no_cache" != 1; then | |
2322 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2323 | fi | |
2324 | ||
2325 | if test "$wxUSE_BURNT_NAME" = yes; then | |
698dcdb6 | 2326 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2327 | else |
698dcdb6 | 2328 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2329 | fi |
698dcdb6 | 2330 | |
00cf1208 | 2331 | |
698dcdb6 | 2332 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
8db37e06 | 2333 | echo "configure:2334: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2334 | no_cache=0 |
2335 | # Check whether --enable-optimise or --disable-optimise was given. | |
2336 | if test "${enable_optimise+set}" = set; then | |
2337 | enableval="$enable_optimise" | |
698dcdb6 | 2338 | |
10f2d63a VZ |
2339 | if test "$enableval" = yes; then |
2340 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2341 | else | |
2342 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2343 | fi | |
698dcdb6 | 2344 | |
10f2d63a | 2345 | else |
698dcdb6 | 2346 | |
10f2d63a VZ |
2347 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2348 | if test "x$LINE" != x ; then | |
2349 | eval "DEFAULT_$LINE" | |
2350 | else | |
2351 | no_cache=1 | |
2352 | fi | |
2353 | ||
2354 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2355 | |
2356 | fi | |
10f2d63a VZ |
2357 | |
2358 | ||
2359 | eval "$ac_cv_use_optimise" | |
2360 | if test "$no_cache" != 1; then | |
2361 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2362 | fi | |
2363 | ||
2364 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2365 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2366 | else |
698dcdb6 | 2367 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2368 | fi |
698dcdb6 | 2369 | |
10f2d63a | 2370 | |
698dcdb6 | 2371 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
8db37e06 | 2372 | echo "configure:2373: checking for --enable-debug" >&5 |
10f2d63a VZ |
2373 | no_cache=0 |
2374 | # Check whether --enable-debug or --disable-debug was given. | |
2375 | if test "${enable_debug+set}" = set; then | |
2376 | enableval="$enable_debug" | |
698dcdb6 | 2377 | |
10f2d63a VZ |
2378 | if test "$enableval" = yes; then |
2379 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2380 | else | |
2381 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2382 | fi | |
698dcdb6 | 2383 | |
10f2d63a | 2384 | else |
698dcdb6 | 2385 | |
10f2d63a VZ |
2386 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2387 | if test "x$LINE" != x ; then | |
2388 | eval "DEFAULT_$LINE" | |
2389 | else | |
2390 | no_cache=1 | |
2391 | fi | |
2392 | ||
2393 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2394 | |
2395 | fi | |
10f2d63a VZ |
2396 | |
2397 | ||
2398 | eval "$ac_cv_use_debug" | |
2399 | if test "$no_cache" != 1; then | |
2400 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2401 | fi | |
2402 | ||
2403 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2404 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2405 | else |
698dcdb6 | 2406 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2407 | fi |
698dcdb6 | 2408 | |
10f2d63a VZ |
2409 | |
2410 | if test "$wxUSE_DEBUG" = "yes"; then | |
2411 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2412 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2413 | elif test "$wxUSE_DEBUG" = "no"; then | |
2414 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2415 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2416 | fi | |
2417 | ||
698dcdb6 VZ |
2418 | |
2419 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
8db37e06 | 2420 | echo "configure:2421: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2421 | no_cache=0 |
2422 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2423 | if test "${enable_debug_flag+set}" = set; then | |
2424 | enableval="$enable_debug_flag" | |
698dcdb6 | 2425 | |
10f2d63a VZ |
2426 | if test "$enableval" = yes; then |
2427 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2428 | else | |
2429 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2430 | fi | |
698dcdb6 | 2431 | |
10f2d63a | 2432 | else |
698dcdb6 | 2433 | |
10f2d63a VZ |
2434 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2435 | if test "x$LINE" != x ; then | |
2436 | eval "DEFAULT_$LINE" | |
2437 | else | |
2438 | no_cache=1 | |
2439 | fi | |
2440 | ||
2441 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2442 | |
2443 | fi | |
10f2d63a VZ |
2444 | |
2445 | ||
2446 | eval "$ac_cv_use_debug_flag" | |
2447 | if test "$no_cache" != 1; then | |
2448 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2449 | fi | |
2450 | ||
2451 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2452 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2453 | else |
698dcdb6 | 2454 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2455 | fi |
698dcdb6 | 2456 | |
10f2d63a | 2457 | |
698dcdb6 | 2458 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
8db37e06 | 2459 | echo "configure:2460: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2460 | no_cache=0 |
2461 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2462 | if test "${enable_debug_info+set}" = set; then | |
2463 | enableval="$enable_debug_info" | |
698dcdb6 | 2464 | |
10f2d63a VZ |
2465 | if test "$enableval" = yes; then |
2466 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2467 | else | |
2468 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2469 | fi | |
698dcdb6 | 2470 | |
10f2d63a | 2471 | else |
698dcdb6 | 2472 | |
10f2d63a VZ |
2473 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2474 | if test "x$LINE" != x ; then | |
2475 | eval "DEFAULT_$LINE" | |
2476 | else | |
2477 | no_cache=1 | |
2478 | fi | |
2479 | ||
2480 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2481 | |
2482 | fi | |
10f2d63a VZ |
2483 | |
2484 | ||
2485 | eval "$ac_cv_use_debug_info" | |
2486 | if test "$no_cache" != 1; then | |
2487 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2488 | fi | |
2489 | ||
2490 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2491 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2492 | else |
698dcdb6 | 2493 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2494 | fi |
698dcdb6 | 2495 | |
10f2d63a | 2496 | |
698dcdb6 | 2497 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
8db37e06 | 2498 | echo "configure:2499: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2499 | no_cache=0 |
2500 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2501 | if test "${enable_debug_gdb+set}" = set; then | |
2502 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2503 | |
10f2d63a VZ |
2504 | if test "$enableval" = yes; then |
2505 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2506 | else | |
2507 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2508 | fi | |
698dcdb6 | 2509 | |
10f2d63a | 2510 | else |
698dcdb6 | 2511 | |
10f2d63a VZ |
2512 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2513 | if test "x$LINE" != x ; then | |
2514 | eval "DEFAULT_$LINE" | |
2515 | else | |
2516 | no_cache=1 | |
2517 | fi | |
2518 | ||
2519 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2520 | |
2521 | fi | |
10f2d63a VZ |
2522 | |
2523 | ||
2524 | eval "$ac_cv_use_debug_gdb" | |
2525 | if test "$no_cache" != 1; then | |
2526 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2527 | fi | |
2528 | ||
2529 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2530 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2531 | else |
698dcdb6 | 2532 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2533 | fi |
698dcdb6 | 2534 | |
10f2d63a | 2535 | |
698dcdb6 | 2536 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
8db37e06 | 2537 | echo "configure:2538: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2538 | no_cache=0 |
2539 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2540 | if test "${enable_debug_cntxt+set}" = set; then | |
2541 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2542 | |
10f2d63a VZ |
2543 | if test "$enableval" = yes; then |
2544 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2545 | else | |
2546 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2547 | fi | |
698dcdb6 | 2548 | |
10f2d63a | 2549 | else |
698dcdb6 | 2550 | |
10f2d63a VZ |
2551 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2552 | if test "x$LINE" != x ; then | |
2553 | eval "DEFAULT_$LINE" | |
2554 | else | |
2555 | no_cache=1 | |
2556 | fi | |
2557 | ||
2558 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2559 | |
2560 | fi | |
10f2d63a VZ |
2561 | |
2562 | ||
2563 | eval "$ac_cv_use_debug_cntxt" | |
2564 | if test "$no_cache" != 1; then | |
2565 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2566 | fi | |
2567 | ||
2568 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2569 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2570 | else |
698dcdb6 | 2571 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2572 | fi |
698dcdb6 | 2573 | |
10f2d63a | 2574 | |
698dcdb6 | 2575 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
8db37e06 | 2576 | echo "configure:2577: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2577 | no_cache=0 |
2578 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2579 | if test "${enable_mem_tracing+set}" = set; then | |
2580 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2581 | |
10f2d63a VZ |
2582 | if test "$enableval" = yes; then |
2583 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2584 | else | |
2585 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2586 | fi | |
698dcdb6 | 2587 | |
10f2d63a | 2588 | else |
698dcdb6 | 2589 | |
10f2d63a VZ |
2590 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2591 | if test "x$LINE" != x ; then | |
2592 | eval "DEFAULT_$LINE" | |
2593 | else | |
2594 | no_cache=1 | |
2595 | fi | |
2596 | ||
2597 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2598 | |
2599 | fi | |
10f2d63a VZ |
2600 | |
2601 | ||
2602 | eval "$ac_cv_use_mem_tracing" | |
2603 | if test "$no_cache" != 1; then | |
2604 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2605 | fi | |
2606 | ||
2607 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2608 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2609 | else |
698dcdb6 | 2610 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2611 | fi |
698dcdb6 | 2612 | |
10f2d63a | 2613 | |
698dcdb6 | 2614 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
8db37e06 | 2615 | echo "configure:2616: checking for --enable-profile" >&5 |
10f2d63a VZ |
2616 | no_cache=0 |
2617 | # Check whether --enable-profile or --disable-profile was given. | |
2618 | if test "${enable_profile+set}" = set; then | |
2619 | enableval="$enable_profile" | |
698dcdb6 | 2620 | |
10f2d63a VZ |
2621 | if test "$enableval" = yes; then |
2622 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2623 | else | |
2624 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2625 | fi | |
698dcdb6 | 2626 | |
10f2d63a | 2627 | else |
698dcdb6 | 2628 | |
10f2d63a VZ |
2629 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2630 | if test "x$LINE" != x ; then | |
2631 | eval "DEFAULT_$LINE" | |
2632 | else | |
2633 | no_cache=1 | |
2634 | fi | |
2635 | ||
2636 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2637 | |
2638 | fi | |
10f2d63a VZ |
2639 | |
2640 | ||
2641 | eval "$ac_cv_use_profile" | |
2642 | if test "$no_cache" != 1; then | |
2643 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2644 | fi | |
2645 | ||
2646 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2647 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2648 | else |
698dcdb6 | 2649 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2650 | fi |
698dcdb6 | 2651 | |
10f2d63a | 2652 | |
698dcdb6 | 2653 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
8db37e06 | 2654 | echo "configure:2655: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2655 | no_cache=0 |
2656 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2657 | if test "${enable_no_rtti+set}" = set; then | |
2658 | enableval="$enable_no_rtti" | |
698dcdb6 | 2659 | |
10f2d63a VZ |
2660 | if test "$enableval" = yes; then |
2661 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2662 | else | |
2663 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2664 | fi | |
698dcdb6 | 2665 | |
10f2d63a | 2666 | else |
698dcdb6 | 2667 | |
10f2d63a VZ |
2668 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2669 | if test "x$LINE" != x ; then | |
2670 | eval "DEFAULT_$LINE" | |
2671 | else | |
2672 | no_cache=1 | |
2673 | fi | |
2674 | ||
2675 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2676 | |
2677 | fi | |
10f2d63a VZ |
2678 | |
2679 | ||
2680 | eval "$ac_cv_use_no_rtti" | |
2681 | if test "$no_cache" != 1; then | |
2682 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2683 | fi | |
2684 | ||
2685 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2686 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2687 | else |
698dcdb6 | 2688 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2689 | fi |
698dcdb6 | 2690 | |
10f2d63a | 2691 | |
698dcdb6 | 2692 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
8db37e06 | 2693 | echo "configure:2694: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2694 | no_cache=0 |
2695 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2696 | if test "${enable_no_exceptions+set}" = set; then | |
2697 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2698 | |
10f2d63a VZ |
2699 | if test "$enableval" = yes; then |
2700 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2701 | else | |
2702 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2703 | fi | |
698dcdb6 | 2704 | |
10f2d63a | 2705 | else |
698dcdb6 | 2706 | |
10f2d63a VZ |
2707 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2708 | if test "x$LINE" != x ; then | |
2709 | eval "DEFAULT_$LINE" | |
2710 | else | |
2711 | no_cache=1 | |
2712 | fi | |
2713 | ||
2714 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2715 | |
2716 | fi | |
10f2d63a VZ |
2717 | |
2718 | ||
2719 | eval "$ac_cv_use_no_exceptions" | |
2720 | if test "$no_cache" != 1; then | |
2721 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2722 | fi | |
2723 | ||
2724 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2725 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2726 | else |
698dcdb6 | 2727 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2728 | fi |
698dcdb6 | 2729 | |
10f2d63a | 2730 | |
698dcdb6 | 2731 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
8db37e06 | 2732 | echo "configure:2733: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2733 | no_cache=0 |
2734 | # Check whether --enable-permissive or --disable-permissive was given. | |
2735 | if test "${enable_permissive+set}" = set; then | |
2736 | enableval="$enable_permissive" | |
698dcdb6 | 2737 | |
10f2d63a VZ |
2738 | if test "$enableval" = yes; then |
2739 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2740 | else | |
2741 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2742 | fi | |
698dcdb6 | 2743 | |
10f2d63a | 2744 | else |
698dcdb6 | 2745 | |
10f2d63a VZ |
2746 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2747 | if test "x$LINE" != x ; then | |
2748 | eval "DEFAULT_$LINE" | |
2749 | else | |
2750 | no_cache=1 | |
2751 | fi | |
2752 | ||
2753 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2754 | |
2755 | fi | |
10f2d63a VZ |
2756 | |
2757 | ||
2758 | eval "$ac_cv_use_permissive" | |
2759 | if test "$no_cache" != 1; then | |
2760 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2761 | fi | |
2762 | ||
2763 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2764 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2765 | else |
698dcdb6 | 2766 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2767 | fi |
698dcdb6 | 2768 | |
10f2d63a | 2769 | |
698dcdb6 | 2770 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
8db37e06 | 2771 | echo "configure:2772: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2772 | no_cache=0 |
2773 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2774 | if test "${enable_no_deps+set}" = set; then | |
2775 | enableval="$enable_no_deps" | |
698dcdb6 | 2776 | |
10f2d63a VZ |
2777 | if test "$enableval" = yes; then |
2778 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2779 | else | |
2780 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2781 | fi | |
698dcdb6 | 2782 | |
10f2d63a | 2783 | else |
698dcdb6 | 2784 | |
10f2d63a VZ |
2785 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2786 | if test "x$LINE" != x ; then | |
2787 | eval "DEFAULT_$LINE" | |
2788 | else | |
2789 | no_cache=1 | |
2790 | fi | |
2791 | ||
2792 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2793 | |
2794 | fi | |
10f2d63a VZ |
2795 | |
2796 | ||
2797 | eval "$ac_cv_use_no_deps" | |
2798 | if test "$no_cache" != 1; then | |
2799 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2800 | fi | |
2801 | ||
2802 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2803 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2804 | else |
698dcdb6 | 2805 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2806 | fi |
698dcdb6 VZ |
2807 | |
2808 | ||
10f2d63a | 2809 | |
54276ccf | 2810 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
8db37e06 | 2811 | echo "configure:2812: checking for --enable-compat20" >&5 |
54276ccf VZ |
2812 | no_cache=0 |
2813 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2814 | if test "${enable_compat20+set}" = set; then | |
2815 | enableval="$enable_compat20" | |
2816 | ||
2817 | if test "$enableval" = yes; then | |
2818 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2819 | else | |
2820 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2821 | fi | |
2822 | ||
2823 | else | |
2824 | ||
2825 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2826 | if test "x$LINE" != x ; then | |
2827 | eval "DEFAULT_$LINE" | |
2828 | else | |
2829 | no_cache=1 | |
2830 | fi | |
2831 | ||
2832 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2833 | ||
2834 | fi | |
2835 | ||
2836 | ||
2837 | eval "$ac_cv_use_compat20" | |
2838 | if test "$no_cache" != 1; then | |
2839 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2840 | fi | |
2841 | ||
2842 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2843 | echo "$ac_t""yes" 1>&6 | |
2844 | else | |
2845 | echo "$ac_t""no" 1>&6 | |
2846 | fi | |
2847 | ||
2848 | ||
2849 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
8db37e06 | 2850 | echo "configure:2851: checking for --enable-compat22" >&5 |
54276ccf VZ |
2851 | no_cache=0 |
2852 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2853 | if test "${enable_compat22+set}" = set; then | |
2854 | enableval="$enable_compat22" | |
2855 | ||
2856 | if test "$enableval" = yes; then | |
2857 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2858 | else | |
2859 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2860 | fi | |
2861 | ||
2862 | else | |
2863 | ||
2864 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2865 | if test "x$LINE" != x ; then | |
2866 | eval "DEFAULT_$LINE" | |
2867 | else | |
2868 | no_cache=1 | |
2869 | fi | |
2870 | ||
2871 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2872 | ||
2873 | fi | |
2874 | ||
2875 | ||
2876 | eval "$ac_cv_use_compat22" | |
2877 | if test "$no_cache" != 1; then | |
2878 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2879 | fi | |
2880 | ||
2881 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2882 | echo "$ac_t""yes" 1>&6 | |
2883 | else | |
2884 | echo "$ac_t""no" 1>&6 | |
2885 | fi | |
2886 | ||
2887 | ||
2888 | ||
698dcdb6 VZ |
2889 | |
2890 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
8db37e06 | 2891 | echo "configure:2892: checking for --enable-intl" >&5 |
10f2d63a VZ |
2892 | no_cache=0 |
2893 | # Check whether --enable-intl or --disable-intl was given. | |
2894 | if test "${enable_intl+set}" = set; then | |
2895 | enableval="$enable_intl" | |
698dcdb6 | 2896 | |
10f2d63a VZ |
2897 | if test "$enableval" = yes; then |
2898 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2899 | else | |
2900 | ac_cv_use_intl='wxUSE_INTL=no' | |
2901 | fi | |
698dcdb6 | 2902 | |
10f2d63a | 2903 | else |
698dcdb6 | 2904 | |
10f2d63a VZ |
2905 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2906 | if test "x$LINE" != x ; then | |
2907 | eval "DEFAULT_$LINE" | |
2908 | else | |
2909 | no_cache=1 | |
2910 | fi | |
2911 | ||
2912 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2913 | |
2914 | fi | |
10f2d63a VZ |
2915 | |
2916 | ||
2917 | eval "$ac_cv_use_intl" | |
2918 | if test "$no_cache" != 1; then | |
2919 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2920 | fi | |
2921 | ||
2922 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2923 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2924 | else |
698dcdb6 | 2925 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2926 | fi |
698dcdb6 | 2927 | |
10f2d63a | 2928 | |
698dcdb6 | 2929 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
8db37e06 | 2930 | echo "configure:2931: checking for --enable-config" >&5 |
10f2d63a VZ |
2931 | no_cache=0 |
2932 | # Check whether --enable-config or --disable-config was given. | |
2933 | if test "${enable_config+set}" = set; then | |
2934 | enableval="$enable_config" | |
698dcdb6 | 2935 | |
10f2d63a VZ |
2936 | if test "$enableval" = yes; then |
2937 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2938 | else | |
2939 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2940 | fi | |
698dcdb6 | 2941 | |
10f2d63a | 2942 | else |
698dcdb6 | 2943 | |
10f2d63a VZ |
2944 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
2945 | if test "x$LINE" != x ; then | |
2946 | eval "DEFAULT_$LINE" | |
2947 | else | |
2948 | no_cache=1 | |
2949 | fi | |
2950 | ||
2951 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
2952 | |
2953 | fi | |
10f2d63a VZ |
2954 | |
2955 | ||
2956 | eval "$ac_cv_use_config" | |
2957 | if test "$no_cache" != 1; then | |
2958 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2959 | fi | |
2960 | ||
2961 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 2962 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2963 | else |
698dcdb6 | 2964 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2965 | fi |
698dcdb6 VZ |
2966 | |
2967 | ||
b12915c1 | 2968 | |
698dcdb6 | 2969 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
8db37e06 | 2970 | echo "configure:2971: checking for --enable-sockets" >&5 |
10f2d63a VZ |
2971 | no_cache=0 |
2972 | # Check whether --enable-sockets or --disable-sockets was given. | |
2973 | if test "${enable_sockets+set}" = set; then | |
2974 | enableval="$enable_sockets" | |
698dcdb6 | 2975 | |
10f2d63a VZ |
2976 | if test "$enableval" = yes; then |
2977 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2978 | else | |
2979 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2980 | fi | |
698dcdb6 | 2981 | |
10f2d63a | 2982 | else |
698dcdb6 | 2983 | |
10f2d63a VZ |
2984 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
2985 | if test "x$LINE" != x ; then | |
2986 | eval "DEFAULT_$LINE" | |
2987 | else | |
2988 | no_cache=1 | |
2989 | fi | |
2990 | ||
2991 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
2992 | |
2993 | fi | |
10f2d63a VZ |
2994 | |
2995 | ||
2996 | eval "$ac_cv_use_sockets" | |
2997 | if test "$no_cache" != 1; then | |
2998 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2999 | fi | |
3000 | ||
3001 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 3002 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3003 | else |
698dcdb6 | 3004 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3005 | fi |
698dcdb6 | 3006 | |
b12915c1 | 3007 | |
698dcdb6 VZ |
3008 | |
3009 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
8db37e06 | 3010 | echo "configure:3011: checking for --enable-ipc" >&5 |
10f2d63a | 3011 | no_cache=0 |
eb4efbdc VZ |
3012 | # Check whether --enable-ipc or --disable-ipc was given. |
3013 | if test "${enable_ipc+set}" = set; then | |
3014 | enableval="$enable_ipc" | |
698dcdb6 | 3015 | |
10f2d63a | 3016 | if test "$enableval" = yes; then |
eb4efbdc | 3017 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3018 | else |
eb4efbdc | 3019 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3020 | fi |
698dcdb6 | 3021 | |
10f2d63a | 3022 | else |
698dcdb6 | 3023 | |
eb4efbdc | 3024 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3025 | if test "x$LINE" != x ; then |
3026 | eval "DEFAULT_$LINE" | |
3027 | else | |
3028 | no_cache=1 | |
3029 | fi | |
3030 | ||
eb4efbdc | 3031 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
3032 | |
3033 | fi | |
10f2d63a VZ |
3034 | |
3035 | ||
eb4efbdc | 3036 | eval "$ac_cv_use_ipc" |
10f2d63a | 3037 | if test "$no_cache" != 1; then |
eb4efbdc | 3038 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3039 | fi |
3040 | ||
eb4efbdc | 3041 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 3042 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3043 | else |
698dcdb6 | 3044 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3045 | fi |
698dcdb6 VZ |
3046 | |
3047 | ||
eb4efbdc | 3048 | |
1e6feb95 | 3049 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
8db37e06 | 3050 | echo "configure:3051: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3051 | no_cache=0 |
3052 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3053 | if test "${enable_cmdline+set}" = set; then | |
3054 | enableval="$enable_cmdline" | |
3055 | ||
3056 | if test "$enableval" = yes; then | |
3057 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3058 | else | |
3059 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3060 | fi | |
3061 | ||
3062 | else | |
3063 | ||
3064 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3065 | if test "x$LINE" != x ; then | |
3066 | eval "DEFAULT_$LINE" | |
3067 | else | |
3068 | no_cache=1 | |
3069 | fi | |
3070 | ||
3071 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3072 | ||
3073 | fi | |
3074 | ||
3075 | ||
3076 | eval "$ac_cv_use_cmdline" | |
3077 | if test "$no_cache" != 1; then | |
3078 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3079 | fi | |
3080 | ||
3081 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3082 | echo "$ac_t""yes" 1>&6 | |
3083 | else | |
3084 | echo "$ac_t""no" 1>&6 | |
3085 | fi | |
3086 | ||
3087 | ||
3088 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
8db37e06 | 3089 | echo "configure:3090: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3090 | no_cache=0 |
3091 | # Check whether --enable-datetime or --disable-datetime was given. | |
3092 | if test "${enable_datetime+set}" = set; then | |
3093 | enableval="$enable_datetime" | |
3094 | ||
3095 | if test "$enableval" = yes; then | |
3096 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3097 | else | |
3098 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3099 | fi | |
3100 | ||
3101 | else | |
3102 | ||
3103 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3104 | if test "x$LINE" != x ; then | |
3105 | eval "DEFAULT_$LINE" | |
3106 | else | |
3107 | no_cache=1 | |
3108 | fi | |
3109 | ||
3110 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3111 | ||
3112 | fi | |
3113 | ||
3114 | ||
3115 | eval "$ac_cv_use_datetime" | |
3116 | if test "$no_cache" != 1; then | |
3117 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3118 | fi | |
3119 | ||
3120 | if test "$wxUSE_DATETIME" = yes; then | |
3121 | echo "$ac_t""yes" 1>&6 | |
3122 | else | |
3123 | echo "$ac_t""no" 1>&6 | |
3124 | fi | |
3125 | ||
3126 | ||
3127 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
8db37e06 | 3128 | echo "configure:3129: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3129 | no_cache=0 |
3130 | # Check whether --enable-timedate or --disable-timedate was given. | |
3131 | if test "${enable_timedate+set}" = set; then | |
3132 | enableval="$enable_timedate" | |
3133 | ||
3134 | if test "$enableval" = yes; then | |
3135 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3136 | else | |
3137 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3138 | fi | |
3139 | ||
3140 | else | |
3141 | ||
3142 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3143 | if test "x$LINE" != x ; then | |
3144 | eval "DEFAULT_$LINE" | |
3145 | else | |
3146 | no_cache=1 | |
3147 | fi | |
3148 | ||
3149 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3150 | ||
3151 | fi | |
3152 | ||
3153 | ||
3154 | eval "$ac_cv_use_timedate" | |
3155 | if test "$no_cache" != 1; then | |
3156 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3157 | fi | |
3158 | ||
3159 | if test "$wxUSE_TIMEDATE" = yes; then | |
3160 | echo "$ac_t""yes" 1>&6 | |
3161 | else | |
3162 | echo "$ac_t""no" 1>&6 | |
3163 | fi | |
3164 | ||
3165 | ||
3166 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
8db37e06 | 3167 | echo "configure:3168: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3168 | no_cache=0 |
3169 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3170 | if test "${enable_stopwatch+set}" = set; then | |
3171 | enableval="$enable_stopwatch" | |
3172 | ||
3173 | if test "$enableval" = yes; then | |
3174 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3175 | else | |
3176 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3177 | fi | |
3178 | ||
3179 | else | |
3180 | ||
3181 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3182 | if test "x$LINE" != x ; then | |
3183 | eval "DEFAULT_$LINE" | |
3184 | else | |
3185 | no_cache=1 | |
3186 | fi | |
3187 | ||
3188 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3189 | ||
3190 | fi | |
3191 | ||
3192 | ||
3193 | eval "$ac_cv_use_stopwatch" | |
3194 | if test "$no_cache" != 1; then | |
3195 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3196 | fi | |
3197 | ||
3198 | if test "$wxUSE_STOPWATCH" = yes; then | |
3199 | echo "$ac_t""yes" 1>&6 | |
3200 | else | |
3201 | echo "$ac_t""no" 1>&6 | |
3202 | fi | |
3203 | ||
3204 | ||
698dcdb6 | 3205 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
8db37e06 | 3206 | echo "configure:3207: checking for --enable-dialupman" >&5 |
10f2d63a | 3207 | no_cache=0 |
eb4efbdc VZ |
3208 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3209 | if test "${enable_dialupman+set}" = set; then | |
3210 | enableval="$enable_dialupman" | |
698dcdb6 | 3211 | |
10f2d63a | 3212 | if test "$enableval" = yes; then |
eb4efbdc | 3213 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3214 | else |
eb4efbdc | 3215 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3216 | fi |
698dcdb6 | 3217 | |
10f2d63a | 3218 | else |
698dcdb6 | 3219 | |
eb4efbdc | 3220 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3221 | if test "x$LINE" != x ; then |
3222 | eval "DEFAULT_$LINE" | |
3223 | else | |
3224 | no_cache=1 | |
3225 | fi | |
3226 | ||
eb4efbdc | 3227 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3228 | |
3229 | fi | |
10f2d63a VZ |
3230 | |
3231 | ||
eb4efbdc | 3232 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3233 | if test "$no_cache" != 1; then |
eb4efbdc | 3234 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3235 | fi |
3236 | ||
eb4efbdc | 3237 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3238 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3239 | else |
698dcdb6 | 3240 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3241 | fi |
698dcdb6 | 3242 | |
10f2d63a | 3243 | |
698dcdb6 | 3244 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
8db37e06 | 3245 | echo "configure:3246: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3246 | no_cache=0 |
3247 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3248 | if test "${enable_apple_ieee+set}" = set; then | |
3249 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3250 | |
10f2d63a VZ |
3251 | if test "$enableval" = yes; then |
3252 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3253 | else | |
3254 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3255 | fi | |
698dcdb6 | 3256 | |
10f2d63a | 3257 | else |
698dcdb6 | 3258 | |
10f2d63a VZ |
3259 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3260 | if test "x$LINE" != x ; then | |
3261 | eval "DEFAULT_$LINE" | |
3262 | else | |
3263 | no_cache=1 | |
3264 | fi | |
3265 | ||
3266 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3267 | |
3268 | fi | |
10f2d63a VZ |
3269 | |
3270 | ||
3271 | eval "$ac_cv_use_apple_ieee" | |
3272 | if test "$no_cache" != 1; then | |
3273 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3274 | fi | |
3275 | ||
3276 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3277 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3278 | else |
698dcdb6 | 3279 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3280 | fi |
698dcdb6 | 3281 | |
10f2d63a | 3282 | |
1e6feb95 | 3283 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
8db37e06 | 3284 | echo "configure:3285: checking for --enable-timer" >&5 |
10f2d63a | 3285 | no_cache=0 |
1e6feb95 VZ |
3286 | # Check whether --enable-timer or --disable-timer was given. |
3287 | if test "${enable_timer+set}" = set; then | |
3288 | enableval="$enable_timer" | |
698dcdb6 | 3289 | |
10f2d63a | 3290 | if test "$enableval" = yes; then |
1e6feb95 | 3291 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3292 | else |
1e6feb95 | 3293 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3294 | fi |
698dcdb6 | 3295 | |
10f2d63a | 3296 | else |
698dcdb6 | 3297 | |
1e6feb95 | 3298 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3299 | if test "x$LINE" != x ; then |
3300 | eval "DEFAULT_$LINE" | |
3301 | else | |
3302 | no_cache=1 | |
3303 | fi | |
3304 | ||
1e6feb95 | 3305 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3306 | |
3307 | fi | |
10f2d63a VZ |
3308 | |
3309 | ||
1e6feb95 | 3310 | eval "$ac_cv_use_timer" |
10f2d63a | 3311 | if test "$no_cache" != 1; then |
1e6feb95 | 3312 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3313 | fi |
3314 | ||
1e6feb95 | 3315 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3316 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3317 | else |
698dcdb6 | 3318 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3319 | fi |
698dcdb6 | 3320 | |
10f2d63a | 3321 | |
698dcdb6 | 3322 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
8db37e06 | 3323 | echo "configure:3324: checking for --enable-wave" >&5 |
10f2d63a VZ |
3324 | no_cache=0 |
3325 | # Check whether --enable-wave or --disable-wave was given. | |
3326 | if test "${enable_wave+set}" = set; then | |
3327 | enableval="$enable_wave" | |
698dcdb6 | 3328 | |
10f2d63a VZ |
3329 | if test "$enableval" = yes; then |
3330 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3331 | else | |
3332 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3333 | fi | |
698dcdb6 | 3334 | |
10f2d63a | 3335 | else |
698dcdb6 | 3336 | |
10f2d63a VZ |
3337 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3338 | if test "x$LINE" != x ; then | |
3339 | eval "DEFAULT_$LINE" | |
3340 | else | |
3341 | no_cache=1 | |
3342 | fi | |
3343 | ||
3344 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3345 | |
3346 | fi | |
10f2d63a VZ |
3347 | |
3348 | ||
3349 | eval "$ac_cv_use_wave" | |
3350 | if test "$no_cache" != 1; then | |
3351 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3352 | fi | |
3353 | ||
3354 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3355 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3356 | else |
698dcdb6 | 3357 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3358 | fi |
698dcdb6 | 3359 | |
10f2d63a | 3360 | |
698dcdb6 | 3361 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
8db37e06 | 3362 | echo "configure:3363: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3363 | no_cache=0 |
3364 | # Check whether --enable-fraction or --disable-fraction was given. | |
3365 | if test "${enable_fraction+set}" = set; then | |
3366 | enableval="$enable_fraction" | |
698dcdb6 | 3367 | |
10f2d63a VZ |
3368 | if test "$enableval" = yes; then |
3369 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3370 | else | |
3371 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3372 | fi | |
698dcdb6 | 3373 | |
10f2d63a | 3374 | else |
698dcdb6 | 3375 | |
10f2d63a VZ |
3376 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3377 | if test "x$LINE" != x ; then | |
3378 | eval "DEFAULT_$LINE" | |
3379 | else | |
3380 | no_cache=1 | |
3381 | fi | |
3382 | ||
3383 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3384 | |
3385 | fi | |
10f2d63a VZ |
3386 | |
3387 | ||
3388 | eval "$ac_cv_use_fraction" | |
3389 | if test "$no_cache" != 1; then | |
3390 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3391 | fi | |
3392 | ||
3393 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3394 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3395 | else |
698dcdb6 | 3396 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3397 | fi |
698dcdb6 | 3398 | |
10f2d63a | 3399 | |
698dcdb6 | 3400 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
8db37e06 | 3401 | echo "configure:3402: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3402 | no_cache=0 |
3403 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3404 | if test "${enable_dynlib+set}" = set; then | |
3405 | enableval="$enable_dynlib" | |
698dcdb6 | 3406 | |
10f2d63a VZ |
3407 | if test "$enableval" = yes; then |
3408 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3409 | else | |
3410 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3411 | fi | |
698dcdb6 | 3412 | |
10f2d63a | 3413 | else |
698dcdb6 | 3414 | |
10f2d63a VZ |
3415 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3416 | if test "x$LINE" != x ; then | |
3417 | eval "DEFAULT_$LINE" | |
3418 | else | |
3419 | no_cache=1 | |
3420 | fi | |
3421 | ||
3422 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3423 | |
3424 | fi | |
10f2d63a VZ |
3425 | |
3426 | ||
3427 | eval "$ac_cv_use_dynlib" | |
3428 | if test "$no_cache" != 1; then | |
3429 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3430 | fi | |
3431 | ||
3432 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3433 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3434 | else |
698dcdb6 | 3435 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3436 | fi |
698dcdb6 | 3437 | |
10f2d63a | 3438 | |
698dcdb6 | 3439 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
8db37e06 | 3440 | echo "configure:3441: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3441 | no_cache=0 |
3442 | # Check whether --enable-longlong or --disable-longlong was given. | |
3443 | if test "${enable_longlong+set}" = set; then | |
3444 | enableval="$enable_longlong" | |
698dcdb6 | 3445 | |
10f2d63a VZ |
3446 | if test "$enableval" = yes; then |
3447 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3448 | else | |
3449 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3450 | fi | |
698dcdb6 | 3451 | |
10f2d63a | 3452 | else |
698dcdb6 | 3453 | |
10f2d63a VZ |
3454 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3455 | if test "x$LINE" != x ; then | |
3456 | eval "DEFAULT_$LINE" | |
3457 | else | |
3458 | no_cache=1 | |
3459 | fi | |
3460 | ||
3461 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3462 | |
3463 | fi | |
10f2d63a VZ |
3464 | |
3465 | ||
3466 | eval "$ac_cv_use_longlong" | |
3467 | if test "$no_cache" != 1; then | |
3468 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3469 | fi | |
3470 | ||
3471 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3472 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3473 | else |
698dcdb6 | 3474 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3475 | fi |
698dcdb6 | 3476 | |
10f2d63a | 3477 | |
698dcdb6 | 3478 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
8db37e06 | 3479 | echo "configure:3480: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3480 | no_cache=0 |
3481 | # Check whether --enable-geometry or --disable-geometry was given. | |
3482 | if test "${enable_geometry+set}" = set; then | |
3483 | enableval="$enable_geometry" | |
698dcdb6 | 3484 | |
e8f65ba6 RR |
3485 | if test "$enableval" = yes; then |
3486 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3487 | else | |
3488 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3489 | fi | |
698dcdb6 | 3490 | |
e8f65ba6 | 3491 | else |
698dcdb6 | 3492 | |
e8f65ba6 RR |
3493 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3494 | if test "x$LINE" != x ; then | |
3495 | eval "DEFAULT_$LINE" | |
3496 | else | |
3497 | no_cache=1 | |
3498 | fi | |
3499 | ||
3500 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3501 | |
3502 | fi | |
e8f65ba6 RR |
3503 | |
3504 | ||
3505 | eval "$ac_cv_use_geometry" | |
3506 | if test "$no_cache" != 1; then | |
3507 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3508 | fi | |
3509 | ||
3510 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3511 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3512 | else |
698dcdb6 | 3513 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3514 | fi |
698dcdb6 | 3515 | |
e8f65ba6 | 3516 | |
698dcdb6 | 3517 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
8db37e06 | 3518 | echo "configure:3519: checking for --enable-log" >&5 |
10f2d63a VZ |
3519 | no_cache=0 |
3520 | # Check whether --enable-log or --disable-log was given. | |
3521 | if test "${enable_log+set}" = set; then | |
3522 | enableval="$enable_log" | |
698dcdb6 | 3523 | |
10f2d63a VZ |
3524 | if test "$enableval" = yes; then |
3525 | ac_cv_use_log='wxUSE_LOG=yes' | |
3526 | else | |
3527 | ac_cv_use_log='wxUSE_LOG=no' | |
3528 | fi | |
698dcdb6 | 3529 | |
10f2d63a | 3530 | else |
698dcdb6 | 3531 | |
10f2d63a VZ |
3532 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3533 | if test "x$LINE" != x ; then | |
3534 | eval "DEFAULT_$LINE" | |
3535 | else | |
3536 | no_cache=1 | |
3537 | fi | |
3538 | ||
3539 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3540 | |
3541 | fi | |
10f2d63a VZ |
3542 | |
3543 | ||
3544 | eval "$ac_cv_use_log" | |
3545 | if test "$no_cache" != 1; then | |
3546 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3547 | fi | |
3548 | ||
3549 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3550 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3551 | else |
698dcdb6 | 3552 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3553 | fi |
698dcdb6 | 3554 | |
10f2d63a | 3555 | |
698dcdb6 | 3556 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
8db37e06 | 3557 | echo "configure:3558: checking for --enable-streams" >&5 |
10f2d63a VZ |
3558 | no_cache=0 |
3559 | # Check whether --enable-streams or --disable-streams was given. | |
3560 | if test "${enable_streams+set}" = set; then | |
3561 | enableval="$enable_streams" | |
698dcdb6 | 3562 | |
10f2d63a VZ |
3563 | if test "$enableval" = yes; then |
3564 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3565 | else | |
3566 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3567 | fi | |
698dcdb6 | 3568 | |
10f2d63a | 3569 | else |
698dcdb6 | 3570 | |
10f2d63a VZ |
3571 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3572 | if test "x$LINE" != x ; then | |
3573 | eval "DEFAULT_$LINE" | |
3574 | else | |
3575 | no_cache=1 | |
3576 | fi | |
3577 | ||
3578 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3579 | |
3580 | fi | |
10f2d63a VZ |
3581 | |
3582 | ||
3583 | eval "$ac_cv_use_streams" | |
3584 | if test "$no_cache" != 1; then | |
3585 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3586 | fi | |
3587 | ||
3588 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3589 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3590 | else |
698dcdb6 | 3591 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3592 | fi |
698dcdb6 | 3593 | |
10f2d63a | 3594 | |
698dcdb6 | 3595 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
8db37e06 | 3596 | echo "configure:3597: checking for --enable-file" >&5 |
10f2d63a VZ |
3597 | no_cache=0 |
3598 | # Check whether --enable-file or --disable-file was given. | |
3599 | if test "${enable_file+set}" = set; then | |
3600 | enableval="$enable_file" | |
698dcdb6 | 3601 | |
10f2d63a VZ |
3602 | if test "$enableval" = yes; then |
3603 | ac_cv_use_file='wxUSE_FILE=yes' | |
3604 | else | |
3605 | ac_cv_use_file='wxUSE_FILE=no' | |
3606 | fi | |
698dcdb6 | 3607 | |
10f2d63a | 3608 | else |
698dcdb6 | 3609 | |
10f2d63a VZ |
3610 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3611 | if test "x$LINE" != x ; then | |
3612 | eval "DEFAULT_$LINE" | |
3613 | else | |
3614 | no_cache=1 | |
3615 | fi | |
3616 | ||
3617 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3618 | |
3619 | fi | |
10f2d63a VZ |
3620 | |
3621 | ||
3622 | eval "$ac_cv_use_file" | |
3623 | if test "$no_cache" != 1; then | |
3624 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3625 | fi | |
3626 | ||
3627 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3628 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3629 | else |
698dcdb6 | 3630 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3631 | fi |
698dcdb6 | 3632 | |
10f2d63a | 3633 | |
1e6feb95 | 3634 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
8db37e06 | 3635 | echo "configure:3636: checking for --enable-ffile" >&5 |
10f2d63a | 3636 | no_cache=0 |
1e6feb95 VZ |
3637 | # Check whether --enable-ffile or --disable-ffile was given. |
3638 | if test "${enable_ffile+set}" = set; then | |
3639 | enableval="$enable_ffile" | |
698dcdb6 | 3640 | |
10f2d63a | 3641 | if test "$enableval" = yes; then |
1e6feb95 | 3642 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3643 | else |
1e6feb95 | 3644 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3645 | fi |
698dcdb6 | 3646 | |
10f2d63a | 3647 | else |
698dcdb6 | 3648 | |
1e6feb95 | 3649 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3650 | if test "x$LINE" != x ; then |
3651 | eval "DEFAULT_$LINE" | |
3652 | else | |
3653 | no_cache=1 | |
3654 | fi | |
3655 | ||
1e6feb95 | 3656 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3657 | |
3658 | fi | |
10f2d63a VZ |
3659 | |
3660 | ||
1e6feb95 | 3661 | eval "$ac_cv_use_ffile" |
10f2d63a | 3662 | if test "$no_cache" != 1; then |
1e6feb95 | 3663 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3664 | fi |
3665 | ||
1e6feb95 | 3666 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3667 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3668 | else |
698dcdb6 | 3669 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3670 | fi |
698dcdb6 | 3671 | |
10f2d63a | 3672 | |
1e6feb95 | 3673 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
8db37e06 | 3674 | echo "configure:3675: checking for --enable-textfile" >&5 |
10f2d63a | 3675 | no_cache=0 |
1e6feb95 VZ |
3676 | # Check whether --enable-textfile or --disable-textfile was given. |
3677 | if test "${enable_textfile+set}" = set; then | |
3678 | enableval="$enable_textfile" | |
698dcdb6 | 3679 | |
10f2d63a | 3680 | if test "$enableval" = yes; then |
1e6feb95 | 3681 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3682 | else |
1e6feb95 | 3683 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3684 | fi |
698dcdb6 | 3685 | |
10f2d63a | 3686 | else |
698dcdb6 | 3687 | |
1e6feb95 | 3688 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3689 | if test "x$LINE" != x ; then |
3690 | eval "DEFAULT_$LINE" | |
3691 | else | |
3692 | no_cache=1 | |
3693 | fi | |
3694 | ||
1e6feb95 | 3695 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3696 | |
3697 | fi | |
10f2d63a VZ |
3698 | |
3699 | ||
1e6feb95 | 3700 | eval "$ac_cv_use_textfile" |
10f2d63a | 3701 | if test "$no_cache" != 1; then |
1e6feb95 | 3702 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3703 | fi |
3704 | ||
1e6feb95 | 3705 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3706 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3707 | else |
698dcdb6 | 3708 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3709 | fi |
698dcdb6 | 3710 | |
10f2d63a | 3711 | |
1e6feb95 | 3712 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
8db37e06 | 3713 | echo "configure:3714: checking for --enable-fontmap" >&5 |
10f2d63a | 3714 | no_cache=0 |
1e6feb95 VZ |
3715 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3716 | if test "${enable_fontmap+set}" = set; then | |
3717 | enableval="$enable_fontmap" | |
698dcdb6 | 3718 | |
10f2d63a | 3719 | if test "$enableval" = yes; then |
1e6feb95 | 3720 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3721 | else |
1e6feb95 | 3722 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3723 | fi |
698dcdb6 | 3724 | |
10f2d63a | 3725 | else |
698dcdb6 | 3726 | |
1e6feb95 | 3727 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3728 | if test "x$LINE" != x ; then |
3729 | eval "DEFAULT_$LINE" | |
3730 | else | |
3731 | no_cache=1 | |
3732 | fi | |
3733 | ||
1e6feb95 | 3734 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3735 | |
3736 | fi | |
10f2d63a VZ |
3737 | |
3738 | ||
1e6feb95 | 3739 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3740 | if test "$no_cache" != 1; then |
1e6feb95 | 3741 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3742 | fi |
3743 | ||
1e6feb95 | 3744 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3745 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3746 | else |
698dcdb6 | 3747 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3748 | fi |
698dcdb6 | 3749 | |
10f2d63a | 3750 | |
1e6feb95 | 3751 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
8db37e06 | 3752 | echo "configure:3753: checking for --enable-unicode" >&5 |
10f2d63a | 3753 | no_cache=0 |
1e6feb95 VZ |
3754 | # Check whether --enable-unicode or --disable-unicode was given. |
3755 | if test "${enable_unicode+set}" = set; then | |
3756 | enableval="$enable_unicode" | |
3757 | ||
3758 | if test "$enableval" = yes; then | |
3759 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3760 | else | |
3761 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3762 | fi | |
3763 | ||
3764 | else | |
3765 | ||
3766 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3767 | if test "x$LINE" != x ; then | |
3768 | eval "DEFAULT_$LINE" | |
3769 | else | |
3770 | no_cache=1 | |
3771 | fi | |
3772 | ||
3773 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3774 | ||
3775 | fi | |
3776 | ||
3777 | ||
3778 | eval "$ac_cv_use_unicode" | |
3779 | if test "$no_cache" != 1; then | |
3780 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3781 | fi | |
3782 | ||
3783 | if test "$wxUSE_UNICODE" = yes; then | |
3784 | echo "$ac_t""yes" 1>&6 | |
3785 | else | |
3786 | echo "$ac_t""no" 1>&6 | |
3787 | fi | |
3788 | ||
3789 | ||
3790 | echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6 | |
8db37e06 | 3791 | echo "configure:3792: checking for --enable-wcsrtombs" >&5 |
1e6feb95 VZ |
3792 | no_cache=0 |
3793 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3794 | if test "${enable_wcsrtombs+set}" = set; then | |
3795 | enableval="$enable_wcsrtombs" | |
3796 | ||
3797 | if test "$enableval" = yes; then | |
3798 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3799 | else | |
3800 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3801 | fi | |
3802 | ||
3803 | else | |
3804 | ||
3805 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3806 | if test "x$LINE" != x ; then | |
3807 | eval "DEFAULT_$LINE" | |
3808 | else | |
3809 | no_cache=1 | |
3810 | fi | |
3811 | ||
3812 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3813 | ||
3814 | fi | |
3815 | ||
3816 | ||
3817 | eval "$ac_cv_use_wcsrtombs" | |
3818 | if test "$no_cache" != 1; then | |
3819 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3820 | fi | |
3821 | ||
3822 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3823 | echo "$ac_t""yes" 1>&6 | |
3824 | else | |
3825 | echo "$ac_t""no" 1>&6 | |
3826 | fi | |
3827 | ||
3828 | ||
3829 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 | |
8db37e06 | 3830 | echo "configure:3831: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3831 | no_cache=0 |
3832 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3833 | if test "${enable_wxprintfv+set}" = set; then | |
3834 | enableval="$enable_wxprintfv" | |
3835 | ||
3836 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3837 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3838 | else | |
3839 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3840 | fi | |
698dcdb6 | 3841 | |
10f2d63a | 3842 | else |
698dcdb6 | 3843 | |
10f2d63a VZ |
3844 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3845 | if test "x$LINE" != x ; then | |
3846 | eval "DEFAULT_$LINE" | |
3847 | else | |
3848 | no_cache=1 | |
3849 | fi | |
3850 | ||
3851 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3852 | |
3853 | fi | |
10f2d63a VZ |
3854 | |
3855 | ||
3856 | eval "$ac_cv_use_wxprintfv" | |
3857 | if test "$no_cache" != 1; then | |
3858 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3859 | fi | |
3860 | ||
3861 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3862 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3863 | else |
698dcdb6 | 3864 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3865 | fi |
698dcdb6 | 3866 | |
10f2d63a | 3867 | |
698dcdb6 | 3868 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
8db37e06 | 3869 | echo "configure:3870: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3870 | no_cache=0 |
3871 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3872 | if test "${enable_std_iostreams+set}" = set; then | |
3873 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3874 | |
10f2d63a VZ |
3875 | if test "$enableval" = yes; then |
3876 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3877 | else | |
3878 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3879 | fi | |
698dcdb6 | 3880 | |
10f2d63a | 3881 | else |
698dcdb6 | 3882 | |
10f2d63a VZ |
3883 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3884 | if test "x$LINE" != x ; then | |
3885 | eval "DEFAULT_$LINE" | |
3886 | else | |
3887 | no_cache=1 | |
3888 | fi | |
3889 | ||
3890 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3891 | |
3892 | fi | |
10f2d63a VZ |
3893 | |
3894 | ||
3895 | eval "$ac_cv_use_std_iostreams" | |
3896 | if test "$no_cache" != 1; then | |
3897 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3898 | fi | |
3899 | ||
3900 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3901 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3902 | else |
698dcdb6 | 3903 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3904 | fi |
698dcdb6 | 3905 | |
10f2d63a | 3906 | |
698dcdb6 | 3907 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
8db37e06 | 3908 | echo "configure:3909: checking for --enable-filesystem" >&5 |
24528b0c VS |
3909 | no_cache=0 |
3910 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3911 | if test "${enable_filesystem+set}" = set; then | |
3912 | enableval="$enable_filesystem" | |
698dcdb6 | 3913 | |
24528b0c VS |
3914 | if test "$enableval" = yes; then |
3915 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3916 | else | |
3917 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3918 | fi | |
698dcdb6 | 3919 | |
24528b0c | 3920 | else |
698dcdb6 | 3921 | |
24528b0c VS |
3922 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3923 | if test "x$LINE" != x ; then | |
3924 | eval "DEFAULT_$LINE" | |
3925 | else | |
3926 | no_cache=1 | |
3927 | fi | |
3928 | ||
3929 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3930 | |
3931 | fi | |
24528b0c VS |
3932 | |
3933 | ||
3934 | eval "$ac_cv_use_filesystem" | |
3935 | if test "$no_cache" != 1; then | |
3936 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3937 | fi | |
3938 | ||
3939 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3940 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3941 | else |
698dcdb6 | 3942 | echo "$ac_t""no" 1>&6 |
24528b0c | 3943 | fi |
698dcdb6 | 3944 | |
24528b0c | 3945 | |
698dcdb6 | 3946 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
8db37e06 | 3947 | echo "configure:3948: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3948 | no_cache=0 |
3949 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3950 | if test "${enable_fs_inet+set}" = set; then | |
3951 | enableval="$enable_fs_inet" | |
698dcdb6 | 3952 | |
10f2d63a VZ |
3953 | if test "$enableval" = yes; then |
3954 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3955 | else | |
3956 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3957 | fi | |
698dcdb6 | 3958 | |
10f2d63a | 3959 | else |
698dcdb6 | 3960 | |
10f2d63a VZ |
3961 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3962 | if test "x$LINE" != x ; then | |
3963 | eval "DEFAULT_$LINE" | |
3964 | else | |
3965 | no_cache=1 | |
3966 | fi | |
3967 | ||
3968 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3969 | |
3970 | fi | |
10f2d63a VZ |
3971 | |
3972 | ||
3973 | eval "$ac_cv_use_fs_inet" | |
3974 | if test "$no_cache" != 1; then | |
3975 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3976 | fi | |
3977 | ||
3978 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 3979 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3980 | else |
698dcdb6 | 3981 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3982 | fi |
698dcdb6 | 3983 | |
10f2d63a | 3984 | |
698dcdb6 | 3985 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
8db37e06 | 3986 | echo "configure:3987: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
3987 | no_cache=0 |
3988 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3989 | if test "${enable_fs_zip+set}" = set; then | |
3990 | enableval="$enable_fs_zip" | |
698dcdb6 | 3991 | |
10f2d63a VZ |
3992 | if test "$enableval" = yes; then |
3993 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3994 | else | |
3995 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3996 | fi | |
698dcdb6 | 3997 | |
10f2d63a | 3998 | else |
698dcdb6 | 3999 | |
10f2d63a VZ |
4000 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4001 | if test "x$LINE" != x ; then | |
4002 | eval "DEFAULT_$LINE" | |
4003 | else | |
4004 | no_cache=1 | |
4005 | fi | |
4006 | ||
4007 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
4008 | |
4009 | fi | |
10f2d63a VZ |
4010 | |
4011 | ||
4012 | eval "$ac_cv_use_fs_zip" | |
4013 | if test "$no_cache" != 1; then | |
4014 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4015 | fi | |
4016 | ||
4017 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 4018 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4019 | else |
698dcdb6 | 4020 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4021 | fi |
698dcdb6 | 4022 | |
10f2d63a | 4023 | |
698dcdb6 | 4024 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
8db37e06 | 4025 | echo "configure:4026: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4026 | no_cache=0 |
4027 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4028 | if test "${enable_zipstream+set}" = set; then | |
4029 | enableval="$enable_zipstream" | |
698dcdb6 | 4030 | |
10f2d63a VZ |
4031 | if test "$enableval" = yes; then |
4032 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4033 | else | |
4034 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4035 | fi | |
698dcdb6 | 4036 | |
10f2d63a | 4037 | else |
698dcdb6 | 4038 | |
10f2d63a VZ |
4039 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4040 | if test "x$LINE" != x ; then | |
4041 | eval "DEFAULT_$LINE" | |
4042 | else | |
4043 | no_cache=1 | |
4044 | fi | |
4045 | ||
4046 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
4047 | |
4048 | fi | |
10f2d63a VZ |
4049 | |
4050 | ||
4051 | eval "$ac_cv_use_zipstream" | |
4052 | if test "$no_cache" != 1; then | |
4053 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4054 | fi | |
4055 | ||
4056 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 4057 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4058 | else |
698dcdb6 | 4059 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4060 | fi |
698dcdb6 | 4061 | |
10f2d63a | 4062 | |
698dcdb6 VZ |
4063 | |
4064 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
8db37e06 | 4065 | echo "configure:4066: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4066 | no_cache=0 |
4067 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4068 | if test "${enable_catch_segvs+set}" = set; then | |
4069 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4070 | |
eb4efbdc VZ |
4071 | if test "$enableval" = yes; then |
4072 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4073 | else | |
4074 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4075 | fi | |
698dcdb6 | 4076 | |
eb4efbdc | 4077 | else |
698dcdb6 | 4078 | |
eb4efbdc VZ |
4079 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4080 | if test "x$LINE" != x ; then | |
4081 | eval "DEFAULT_$LINE" | |
4082 | else | |
4083 | no_cache=1 | |
4084 | fi | |
4085 | ||
4086 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4087 | |
4088 | fi | |
eb4efbdc VZ |
4089 | |
4090 | ||
4091 | eval "$ac_cv_use_catch_segvs" | |
4092 | if test "$no_cache" != 1; then | |
4093 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4094 | fi | |
4095 | ||
4096 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4097 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4098 | else |
698dcdb6 | 4099 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4100 | fi |
698dcdb6 | 4101 | |
eb4efbdc | 4102 | |
698dcdb6 | 4103 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
8db37e06 | 4104 | echo "configure:4105: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4105 | no_cache=0 |
4106 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4107 | if test "${enable_snglinst+set}" = set; then | |
4108 | enableval="$enable_snglinst" | |
698dcdb6 | 4109 | |
4f3c5f06 VZ |
4110 | if test "$enableval" = yes; then |
4111 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4112 | else | |
4113 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4114 | fi | |
698dcdb6 | 4115 | |
4f3c5f06 | 4116 | else |
698dcdb6 | 4117 | |
4f3c5f06 VZ |
4118 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4119 | if test "x$LINE" != x ; then | |
4120 | eval "DEFAULT_$LINE" | |
4121 | else | |
4122 | no_cache=1 | |
4123 | fi | |
4124 | ||
4125 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4126 | |
4127 | fi | |
4f3c5f06 VZ |
4128 | |
4129 | ||
4130 | eval "$ac_cv_use_snglinst" | |
4131 | if test "$no_cache" != 1; then | |
4132 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4133 | fi | |
4134 | ||
4135 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4136 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4137 | else |
698dcdb6 | 4138 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4139 | fi |
698dcdb6 VZ |
4140 | |
4141 | ||
eb4efbdc | 4142 | |
1e6feb95 | 4143 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
8db37e06 | 4144 | echo "configure:4145: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4145 | no_cache=0 |
4146 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4147 | if test "${enable_mimetype+set}" = set; then | |
4148 | enableval="$enable_mimetype" | |
4149 | ||
4150 | if test "$enableval" = yes; then | |
4151 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4152 | else | |
4153 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4154 | fi | |
4155 | ||
4156 | else | |
4157 | ||
4158 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4159 | if test "x$LINE" != x ; then | |
4160 | eval "DEFAULT_$LINE" | |
4161 | else | |
4162 | no_cache=1 | |
4163 | fi | |
4164 | ||
4165 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4166 | ||
4167 | fi | |
4168 | ||
4169 | ||
4170 | eval "$ac_cv_use_mimetype" | |
4171 | if test "$no_cache" != 1; then | |
4172 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4173 | fi | |
4174 | ||
4175 | if test "$wxUSE_MIMETYPE" = yes; then | |
4176 | echo "$ac_t""yes" 1>&6 | |
4177 | else | |
4178 | echo "$ac_t""no" 1>&6 | |
4179 | fi | |
4180 | ||
4181 | ||
3e44f09d | 4182 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
8db37e06 | 4183 | echo "configure:4184: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4184 | no_cache=0 |
4185 | # Check whether --enable-system_options or --disable-system_options was given. | |
4186 | if test "${enable_system_options+set}" = set; then | |
4187 | enableval="$enable_system_options" | |
4188 | ||
4189 | if test "$enableval" = yes; then | |
4190 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4191 | else | |
4192 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4193 | fi | |
4194 | ||
4195 | else | |
4196 | ||
4197 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4198 | if test "x$LINE" != x ; then | |
4199 | eval "DEFAULT_$LINE" | |
4200 | else | |
4201 | no_cache=1 | |
4202 | fi | |
4203 | ||
4204 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4205 | ||
4206 | fi | |
4207 | ||
4208 | ||
4209 | eval "$ac_cv_use_system_options" | |
4210 | if test "$no_cache" != 1; then | |
4211 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4212 | fi | |
4213 | ||
4214 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4215 | echo "$ac_t""yes" 1>&6 | |
4216 | else | |
4217 | echo "$ac_t""no" 1>&6 | |
4218 | fi | |
4219 | ||
4220 | ||
1e6feb95 | 4221 | |
698dcdb6 VZ |
4222 | |
4223 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
8db37e06 | 4224 | echo "configure:4225: checking for --enable-threads" >&5 |
10f2d63a VZ |
4225 | no_cache=0 |
4226 | # Check whether --enable-threads or --disable-threads was given. | |
4227 | if test "${enable_threads+set}" = set; then | |
4228 | enableval="$enable_threads" | |
698dcdb6 | 4229 | |
10f2d63a VZ |
4230 | if test "$enableval" = yes; then |
4231 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4232 | else | |
4233 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4234 | fi | |
698dcdb6 | 4235 | |
10f2d63a | 4236 | else |
698dcdb6 | 4237 | |
10f2d63a VZ |
4238 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4239 | if test "x$LINE" != x ; then | |
4240 | eval "DEFAULT_$LINE" | |
4241 | else | |
4242 | no_cache=1 | |
4243 | fi | |
4244 | ||
4245 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4246 | |
4247 | fi | |
10f2d63a VZ |
4248 | |
4249 | ||
4250 | eval "$ac_cv_use_threads" | |
4251 | if test "$no_cache" != 1; then | |
4252 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4253 | fi | |
4254 | ||
4255 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4256 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4257 | else |
698dcdb6 | 4258 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4259 | fi |
698dcdb6 | 4260 | |
10f2d63a | 4261 | |
698dcdb6 | 4262 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
8db37e06 | 4263 | echo "configure:4264: checking for --enable-serial" >&5 |
10f2d63a VZ |
4264 | no_cache=0 |
4265 | # Check whether --enable-serial or --disable-serial was given. | |
4266 | if test "${enable_serial+set}" = set; then | |
4267 | enableval="$enable_serial" | |
698dcdb6 | 4268 | |
10f2d63a VZ |
4269 | if test "$enableval" = yes; then |
4270 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4271 | else | |
4272 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4273 | fi | |
698dcdb6 | 4274 | |
10f2d63a | 4275 | else |
698dcdb6 | 4276 | |
10f2d63a VZ |
4277 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4278 | if test "x$LINE" != x ; then | |
4279 | eval "DEFAULT_$LINE" | |
4280 | else | |
4281 | no_cache=1 | |
4282 | fi | |
4283 | ||
4284 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4285 | |
4286 | fi | |
10f2d63a VZ |
4287 | |
4288 | ||
4289 | eval "$ac_cv_use_serial" | |
4290 | if test "$no_cache" != 1; then | |
4291 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4292 | fi | |
4293 | ||
4294 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4295 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4296 | else |
698dcdb6 | 4297 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4298 | fi |
698dcdb6 | 4299 | |
10f2d63a | 4300 | |
b12915c1 VZ |
4301 | if test "$wxUSE_GUI" = "yes"; then |
4302 | ||
698dcdb6 VZ |
4303 | |
4304 | ||
4305 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
8db37e06 | 4306 | echo "configure:4307: checking for --enable-docview" >&5 |
10f2d63a VZ |
4307 | no_cache=0 |
4308 | # Check whether --enable-docview or --disable-docview was given. | |
4309 | if test "${enable_docview+set}" = set; then | |
4310 | enableval="$enable_docview" | |
698dcdb6 | 4311 | |
10f2d63a VZ |
4312 | if test "$enableval" = yes; then |
4313 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4314 | else | |
4315 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4316 | fi | |
698dcdb6 | 4317 | |
10f2d63a | 4318 | else |
698dcdb6 | 4319 | |
10f2d63a VZ |
4320 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4321 | if test "x$LINE" != x ; then | |
4322 | eval "DEFAULT_$LINE" | |
4323 | else | |
4324 | no_cache=1 | |
4325 | fi | |
4326 | ||
4327 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4328 | |
4329 | fi | |
10f2d63a VZ |
4330 | |
4331 | ||
4332 | eval "$ac_cv_use_docview" | |
4333 | if test "$no_cache" != 1; then | |
4334 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4335 | fi | |
4336 | ||
4337 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4338 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4339 | else |
698dcdb6 | 4340 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4341 | fi |
698dcdb6 | 4342 | |
10f2d63a | 4343 | |
698dcdb6 | 4344 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
8db37e06 | 4345 | echo "configure:4346: checking for --enable-help" >&5 |
10f2d63a VZ |
4346 | no_cache=0 |
4347 | # Check whether --enable-help or --disable-help was given. | |
4348 | if test "${enable_help+set}" = set; then | |
4349 | enableval="$enable_help" | |
698dcdb6 | 4350 | |
10f2d63a VZ |
4351 | if test "$enableval" = yes; then |
4352 | ac_cv_use_help='wxUSE_HELP=yes' | |
4353 | else | |
4354 | ac_cv_use_help='wxUSE_HELP=no' | |
4355 | fi | |
698dcdb6 | 4356 | |
10f2d63a | 4357 | else |
698dcdb6 | 4358 | |
10f2d63a VZ |
4359 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4360 | if test "x$LINE" != x ; then | |
4361 | eval "DEFAULT_$LINE" | |
4362 | else | |
4363 | no_cache=1 | |
4364 | fi | |
4365 | ||
4366 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4367 | |
4368 | fi | |
10f2d63a VZ |
4369 | |
4370 | ||
4371 | eval "$ac_cv_use_help" | |
4372 | if test "$no_cache" != 1; then | |
4373 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4374 | fi | |
4375 | ||
4376 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4377 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4378 | else |
698dcdb6 | 4379 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4380 | fi |
698dcdb6 | 4381 | |
10f2d63a | 4382 | |
29fd3c0c | 4383 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
8db37e06 | 4384 | echo "configure:4385: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4385 | no_cache=0 |
4386 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4387 | if test "${enable_mshtmlhelp+set}" = set; then | |
4388 | enableval="$enable_mshtmlhelp" | |
4389 | ||
4390 | if test "$enableval" = yes; then | |
4391 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4392 | else | |
4393 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4394 | fi | |
4395 | ||
4396 | else | |
4397 | ||
4398 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4399 | if test "x$LINE" != x ; then | |
4400 | eval "DEFAULT_$LINE" | |
4401 | else | |
4402 | no_cache=1 | |
4403 | fi | |
4404 | ||
4405 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4406 | ||
4407 | fi | |
4408 | ||
4409 | ||
4410 | eval "$ac_cv_use_mshtmlhelp" | |
4411 | if test "$no_cache" != 1; then | |
4412 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4413 | fi | |
4414 | ||
4415 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4416 | echo "$ac_t""yes" 1>&6 | |
4417 | else | |
4418 | echo "$ac_t""no" 1>&6 | |
4419 | fi | |
4420 | ||
4421 | ||
3379ed37 | 4422 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
8db37e06 | 4423 | echo "configure:4424: checking for --enable-html" >&5 |
3379ed37 VZ |
4424 | no_cache=0 |
4425 | # Check whether --enable-html or --disable-html was given. | |
4426 | if test "${enable_html+set}" = set; then | |
4427 | enableval="$enable_html" | |
4428 | ||
4429 | if test "$enableval" = yes; then | |
4430 | ac_cv_use_html='wxUSE_HTML=yes' | |
4431 | else | |
4432 | ac_cv_use_html='wxUSE_HTML=no' | |
4433 | fi | |
4434 | ||
4435 | else | |
4436 | ||
4437 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4438 | if test "x$LINE" != x ; then | |
4439 | eval "DEFAULT_$LINE" | |
4440 | else | |
4441 | no_cache=1 | |
4442 | fi | |
4443 | ||
4444 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4445 | ||
4446 | fi | |
4447 | ||
4448 | ||
4449 | eval "$ac_cv_use_html" | |
4450 | if test "$no_cache" != 1; then | |
4451 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4452 | fi | |
4453 | ||
4454 | if test "$wxUSE_HTML" = yes; then | |
4455 | echo "$ac_t""yes" 1>&6 | |
4456 | else | |
4457 | echo "$ac_t""no" 1>&6 | |
4458 | fi | |
4459 | ||
4460 | ||
4461 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
8db37e06 | 4462 | echo "configure:4463: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4463 | no_cache=0 |
4464 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4465 | if test "${enable_htmlhelp+set}" = set; then | |
4466 | enableval="$enable_htmlhelp" | |
4467 | ||
4468 | if test "$enableval" = yes; then | |
4469 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4470 | else | |
4471 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4472 | fi | |
4473 | ||
4474 | else | |
4475 | ||
4476 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4477 | if test "x$LINE" != x ; then | |
4478 | eval "DEFAULT_$LINE" | |
4479 | else | |
4480 | no_cache=1 | |
4481 | fi | |
4482 | ||
4483 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4484 | ||
4485 | fi | |
4486 | ||
4487 | ||
4488 | eval "$ac_cv_use_htmlhelp" | |
4489 | if test "$no_cache" != 1; then | |
4490 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4491 | fi | |
4492 | ||
4493 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4494 | echo "$ac_t""yes" 1>&6 | |
4495 | else | |
4496 | echo "$ac_t""no" 1>&6 | |
4497 | fi | |
4498 | ||
4499 | ||
698dcdb6 | 4500 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
8db37e06 | 4501 | echo "configure:4502: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4502 | no_cache=0 |
4503 | # Check whether --enable-constraints or --disable-constraints was given. | |
4504 | if test "${enable_constraints+set}" = set; then | |
4505 | enableval="$enable_constraints" | |
698dcdb6 | 4506 | |
10f2d63a VZ |
4507 | if test "$enableval" = yes; then |
4508 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4509 | else | |
4510 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4511 | fi | |
698dcdb6 | 4512 | |
10f2d63a | 4513 | else |
698dcdb6 | 4514 | |
10f2d63a VZ |
4515 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4516 | if test "x$LINE" != x ; then | |
4517 | eval "DEFAULT_$LINE" | |
4518 | else | |
4519 | no_cache=1 | |
4520 | fi | |
4521 | ||
4522 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4523 | |
4524 | fi | |
10f2d63a VZ |
4525 | |
4526 | ||
4527 | eval "$ac_cv_use_constraints" | |
4528 | if test "$no_cache" != 1; then | |
4529 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4530 | fi | |
4531 | ||
4532 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4533 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4534 | else |
698dcdb6 | 4535 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4536 | fi |
698dcdb6 | 4537 | |
10f2d63a | 4538 | |
698dcdb6 | 4539 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
8db37e06 | 4540 | echo "configure:4541: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4541 | no_cache=0 |
4542 | # Check whether --enable-printarch or --disable-printarch was given. | |
4543 | if test "${enable_printarch+set}" = set; then | |
4544 | enableval="$enable_printarch" | |
698dcdb6 | 4545 | |
10f2d63a VZ |
4546 | if test "$enableval" = yes; then |
4547 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4548 | else | |
4549 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4550 | fi | |
698dcdb6 | 4551 | |
10f2d63a | 4552 | else |
698dcdb6 | 4553 | |
10f2d63a VZ |
4554 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4555 | if test "x$LINE" != x ; then | |
4556 | eval "DEFAULT_$LINE" | |
4557 | else | |
4558 | no_cache=1 | |
4559 | fi | |
4560 | ||
4561 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4562 | |
4563 | fi | |
10f2d63a VZ |
4564 | |
4565 | ||
4566 | eval "$ac_cv_use_printarch" | |
4567 | if test "$no_cache" != 1; then | |
4568 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4569 | fi | |
4570 | ||
4571 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4572 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4573 | else |
698dcdb6 | 4574 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4575 | fi |
698dcdb6 | 4576 | |
10f2d63a | 4577 | |
698dcdb6 | 4578 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
8db37e06 | 4579 | echo "configure:4580: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4580 | no_cache=0 |
4581 | # Check whether --enable-mdi or --disable-mdi was given. | |
4582 | if test "${enable_mdi+set}" = set; then | |
4583 | enableval="$enable_mdi" | |
698dcdb6 | 4584 | |
10f2d63a VZ |
4585 | if test "$enableval" = yes; then |
4586 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4587 | else | |
4588 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4589 | fi | |
698dcdb6 | 4590 | |
10f2d63a | 4591 | else |
698dcdb6 | 4592 | |
10f2d63a VZ |
4593 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4594 | if test "x$LINE" != x ; then | |
4595 | eval "DEFAULT_$LINE" | |
4596 | else | |
4597 | no_cache=1 | |
4598 | fi | |
4599 | ||
4600 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4601 | |
4602 | fi | |
10f2d63a VZ |
4603 | |
4604 | ||
4605 | eval "$ac_cv_use_mdi" | |
4606 | if test "$no_cache" != 1; then | |
4607 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4608 | fi | |
4609 | ||
4610 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4611 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4612 | else |
698dcdb6 | 4613 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4614 | fi |
698dcdb6 VZ |
4615 | |
4616 | ||
1e6feb95 | 4617 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
8db37e06 | 4618 | echo "configure:4619: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4619 | no_cache=0 |
4620 | # Check whether --enable-loggui or --disable-loggui was given. | |
4621 | if test "${enable_loggui+set}" = set; then | |
4622 | enableval="$enable_loggui" | |
4623 | ||
4624 | if test "$enableval" = yes; then | |
4625 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4626 | else | |
4627 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4628 | fi | |
4629 | ||
4630 | else | |
4631 | ||
4632 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4633 | if test "x$LINE" != x ; then | |
4634 | eval "DEFAULT_$LINE" | |
4635 | else | |
4636 | no_cache=1 | |
4637 | fi | |
4638 | ||
4639 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4640 | ||
4641 | fi | |
4642 | ||
4643 | ||
4644 | eval "$ac_cv_use_loggui" | |
4645 | if test "$no_cache" != 1; then | |
4646 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4647 | fi | |
4648 | ||
4649 | if test "$wxUSE_LOGGUI" = yes; then | |
4650 | echo "$ac_t""yes" 1>&6 | |
4651 | else | |
4652 | echo "$ac_t""no" 1>&6 | |
4653 | fi | |
4654 | ||
4655 | ||
4656 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
8db37e06 | 4657 | echo "configure:4658: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4658 | no_cache=0 |
4659 | # Check whether --enable-logwin or --disable-logwin was given. | |
4660 | if test "${enable_logwin+set}" = set; then | |
4661 | enableval="$enable_logwin" | |
4662 | ||
4663 | if test "$enableval" = yes; then | |
4664 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4665 | else | |
4666 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4667 | fi | |
4668 | ||
4669 | else | |
4670 | ||
4671 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4672 | if test "x$LINE" != x ; then | |
4673 | eval "DEFAULT_$LINE" | |
4674 | else | |
4675 | no_cache=1 | |
4676 | fi | |
4677 | ||
4678 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4679 | ||
4680 | fi | |
4681 | ||
4682 | ||
4683 | eval "$ac_cv_use_logwin" | |
4684 | if test "$no_cache" != 1; then | |
4685 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4686 | fi | |
4687 | ||
4688 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4689 | echo "$ac_t""yes" 1>&6 | |
4690 | else | |
4691 | echo "$ac_t""no" 1>&6 | |
4692 | fi | |
4693 | ||
4694 | ||
10f2d63a | 4695 | |
698dcdb6 | 4696 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
8db37e06 | 4697 | echo "configure:4698: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4698 | no_cache=0 |
4699 | # Check whether --enable-postscript or --disable-postscript was given. | |
4700 | if test "${enable_postscript+set}" = set; then | |
4701 | enableval="$enable_postscript" | |
698dcdb6 | 4702 | |
10f2d63a VZ |
4703 | if test "$enableval" = yes; then |
4704 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4705 | else | |
4706 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4707 | fi | |
698dcdb6 | 4708 | |
10f2d63a | 4709 | else |
698dcdb6 | 4710 | |
10f2d63a VZ |
4711 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4712 | if test "x$LINE" != x ; then | |
4713 | eval "DEFAULT_$LINE" | |
4714 | else | |
4715 | no_cache=1 | |
4716 | fi | |
4717 | ||
4718 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4719 | |
4720 | fi | |
10f2d63a VZ |
4721 | |
4722 | ||
4723 | eval "$ac_cv_use_postscript" | |
4724 | if test "$no_cache" != 1; then | |
4725 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4726 | fi | |
4727 | ||
4728 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4729 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4730 | else |
698dcdb6 | 4731 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4732 | fi |
698dcdb6 VZ |
4733 | |
4734 | ||
4735 | ||
10f2d63a | 4736 | |
1e6feb95 | 4737 | |
698dcdb6 | 4738 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
8db37e06 | 4739 | echo "configure:4740: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4740 | no_cache=0 |
4741 | # Check whether --enable-prologio or --disable-prologio was given. | |
4742 | if test "${enable_prologio+set}" = set; then | |
4743 | enableval="$enable_prologio" | |
698dcdb6 | 4744 | |
10f2d63a VZ |
4745 | if test "$enableval" = yes; then |
4746 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4747 | else | |
4748 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4749 | fi | |
698dcdb6 | 4750 | |
10f2d63a | 4751 | else |
698dcdb6 | 4752 | |
10f2d63a VZ |
4753 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4754 | if test "x$LINE" != x ; then | |
4755 | eval "DEFAULT_$LINE" | |
4756 | else | |
4757 | no_cache=1 | |
4758 | fi | |
4759 | ||
4760 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4761 | |
4762 | fi | |
10f2d63a VZ |
4763 | |
4764 | ||
4765 | eval "$ac_cv_use_prologio" | |
4766 | if test "$no_cache" != 1; then | |
4767 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4768 | fi | |
4769 | ||
4770 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4771 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4772 | else |
698dcdb6 | 4773 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4774 | fi |
698dcdb6 | 4775 | |
10f2d63a | 4776 | |
698dcdb6 | 4777 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
8db37e06 | 4778 | echo "configure:4779: checking for --enable-resources" >&5 |
10f2d63a VZ |
4779 | no_cache=0 |
4780 | # Check whether --enable-resources or --disable-resources was given. | |
4781 | if test "${enable_resources+set}" = set; then | |
4782 | enableval="$enable_resources" | |
698dcdb6 | 4783 | |
10f2d63a VZ |
4784 | if test "$enableval" = yes; then |
4785 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4786 | else | |
4787 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4788 | fi | |
698dcdb6 | 4789 | |
10f2d63a | 4790 | else |
698dcdb6 | 4791 | |
10f2d63a VZ |
4792 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4793 | if test "x$LINE" != x ; then | |
4794 | eval "DEFAULT_$LINE" | |
4795 | else | |
4796 | no_cache=1 | |
4797 | fi | |
4798 | ||
4799 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4800 | |
4801 | fi | |
10f2d63a VZ |
4802 | |
4803 | ||
4804 | eval "$ac_cv_use_resources" | |
4805 | if test "$no_cache" != 1; then | |
4806 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4807 | fi | |
4808 | ||
4809 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4810 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4811 | else |
698dcdb6 | 4812 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4813 | fi |
698dcdb6 | 4814 | |
10f2d63a | 4815 | |
698dcdb6 VZ |
4816 | |
4817 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
8db37e06 | 4818 | echo "configure:4819: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4819 | no_cache=0 |
4820 | # Check whether --enable-xresources or --disable-xresources was given. | |
4821 | if test "${enable_xresources+set}" = set; then | |
4822 | enableval="$enable_xresources" | |
698dcdb6 | 4823 | |
10f2d63a VZ |
4824 | if test "$enableval" = yes; then |
4825 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4826 | else | |
4827 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4828 | fi | |
698dcdb6 | 4829 | |
10f2d63a | 4830 | else |
698dcdb6 | 4831 | |
10f2d63a VZ |
4832 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4833 | if test "x$LINE" != x ; then | |
4834 | eval "DEFAULT_$LINE" | |
4835 | else | |
4836 | no_cache=1 | |
4837 | fi | |
4838 | ||
4839 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4840 | |
4841 | fi | |
10f2d63a VZ |
4842 | |
4843 | ||
4844 | eval "$ac_cv_use_xresources" | |
4845 | if test "$no_cache" != 1; then | |
4846 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4847 | fi | |
4848 | ||
4849 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4850 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4851 | else |
698dcdb6 | 4852 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4853 | fi |
698dcdb6 VZ |
4854 | |
4855 | ||
10f2d63a | 4856 | |
698dcdb6 VZ |
4857 | |
4858 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
8db37e06 | 4859 | echo "configure:4860: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4860 | no_cache=0 |
4861 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4862 | if test "${enable_clipboard+set}" = set; then | |
4863 | enableval="$enable_clipboard" | |
698dcdb6 | 4864 | |
10f2d63a VZ |
4865 | if test "$enableval" = yes; then |
4866 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4867 | else | |
4868 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4869 | fi | |
698dcdb6 | 4870 | |
10f2d63a | 4871 | else |
698dcdb6 | 4872 | |
10f2d63a VZ |
4873 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4874 | if test "x$LINE" != x ; then | |
4875 | eval "DEFAULT_$LINE" | |
4876 | else | |
4877 | no_cache=1 | |
4878 | fi | |
4879 | ||
4880 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4881 | |
4882 | fi | |
10f2d63a VZ |
4883 | |
4884 | ||
4885 | eval "$ac_cv_use_clipboard" | |
4886 | if test "$no_cache" != 1; then | |
4887 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4888 | fi | |
4889 | ||
4890 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4891 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4892 | else |
698dcdb6 | 4893 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4894 | fi |
698dcdb6 | 4895 | |
10f2d63a | 4896 | |
698dcdb6 | 4897 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
8db37e06 | 4898 | echo "configure:4899: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4899 | no_cache=0 |
4900 | # Check whether --enable-dnd or --disable-dnd was given. | |
4901 | if test "${enable_dnd+set}" = set; then | |
4902 | enableval="$enable_dnd" | |
698dcdb6 | 4903 | |
10f2d63a VZ |
4904 | if test "$enableval" = yes; then |
4905 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4906 | else | |
4907 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4908 | fi | |
698dcdb6 | 4909 | |
10f2d63a | 4910 | else |
698dcdb6 | 4911 | |
10f2d63a VZ |
4912 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4913 | if test "x$LINE" != x ; then | |
4914 | eval "DEFAULT_$LINE" | |
4915 | else | |
4916 | no_cache=1 | |
4917 | fi | |
4918 | ||
4919 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4920 | |
4921 | fi | |
10f2d63a VZ |
4922 | |
4923 | ||
4924 | eval "$ac_cv_use_dnd" | |
4925 | if test "$no_cache" != 1; then | |
4926 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4927 | fi | |
4928 | ||
4929 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4930 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4931 | else |
698dcdb6 | 4932 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4933 | fi |
698dcdb6 | 4934 | |
10f2d63a | 4935 | |
698dcdb6 | 4936 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
8db37e06 | 4937 | echo "configure:4938: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4938 | no_cache=0 |
4939 | # Check whether --enable-metafile or --disable-metafile was given. | |
4940 | if test "${enable_metafile+set}" = set; then | |
4941 | enableval="$enable_metafile" | |
698dcdb6 | 4942 | |
b64f0a5f RL |
4943 | if test "$enableval" = yes; then |
4944 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4945 | else | |
4946 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4947 | fi | |
698dcdb6 | 4948 | |
b64f0a5f | 4949 | else |
698dcdb6 | 4950 | |
b64f0a5f RL |
4951 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4952 | if test "x$LINE" != x ; then | |
4953 | eval "DEFAULT_$LINE" | |
4954 | else | |
4955 | no_cache=1 | |
4956 | fi | |
4957 | ||
4958 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4959 | |
4960 | fi | |
b64f0a5f RL |
4961 | |
4962 | ||
4963 | eval "$ac_cv_use_metafile" | |
4964 | if test "$no_cache" != 1; then | |
4965 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4966 | fi | |
4967 | ||
4968 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4969 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4970 | else |
698dcdb6 | 4971 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 4972 | fi |
698dcdb6 VZ |
4973 | |
4974 | ||
10f2d63a | 4975 | |
24176f2c | 4976 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
8db37e06 | 4977 | echo "configure:4978: checking for --enable-treelayout" >&5 |
10f2d63a | 4978 | no_cache=0 |
24176f2c GD |
4979 | # Check whether --enable-treelayout or --disable-treelayout was given. |
4980 | if test "${enable_treelayout+set}" = set; then | |
4981 | enableval="$enable_treelayout" | |
698dcdb6 | 4982 | |
10f2d63a | 4983 | if test "$enableval" = yes; then |
24176f2c | 4984 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 4985 | else |
24176f2c | 4986 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 4987 | fi |
698dcdb6 | 4988 | |
10f2d63a | 4989 | else |
698dcdb6 | 4990 | |
24176f2c | 4991 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
4992 | if test "x$LINE" != x ; then |
4993 | eval "DEFAULT_$LINE" | |
4994 | else | |
4995 | no_cache=1 | |
4996 | fi | |
4997 | ||
24176f2c | 4998 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
698dcdb6 VZ |
4999 | |
5000 | fi | |
10f2d63a VZ |
5001 | |
5002 | ||
24176f2c | 5003 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5004 | if test "$no_cache" != 1; then |
24176f2c | 5005 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5006 | fi |
5007 | ||
24176f2c | 5008 | if test "$wxUSE_TREELAYOUT" = yes; then |
698dcdb6 | 5009 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5010 | else |
698dcdb6 | 5011 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5012 | fi |
698dcdb6 | 5013 | |
10f2d63a | 5014 | |
698dcdb6 VZ |
5015 | |
5016 | ||
5017 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
8db37e06 | 5018 | echo "configure:5019: checking for --enable-controls" >&5 |
10f2d63a VZ |
5019 | no_cache=0 |
5020 | # Check whether --enable-controls or --disable-controls was given. | |
5021 | if test "${enable_controls+set}" = set; then | |
5022 | enableval="$enable_controls" | |
698dcdb6 | 5023 | |
10f2d63a VZ |
5024 | if test "$enableval" = yes; then |
5025 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5026 | else | |
5027 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5028 | fi | |
698dcdb6 | 5029 | |
10f2d63a | 5030 | else |
698dcdb6 | 5031 | |
10f2d63a VZ |
5032 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5033 | if test "x$LINE" != x ; then | |
5034 | eval "DEFAULT_$LINE" | |
5035 | else | |
5036 | no_cache=1 | |
5037 | fi | |
5038 | ||
5039 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
5040 | |
5041 | fi | |
10f2d63a VZ |
5042 | |
5043 | ||
5044 | eval "$ac_cv_use_controls" | |
5045 | if test "$no_cache" != 1; then | |
5046 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5047 | fi | |
5048 | ||
5049 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 5050 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5051 | else |
698dcdb6 | 5052 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5053 | fi |
698dcdb6 | 5054 | |
10f2d63a VZ |
5055 | |
5056 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5057 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5058 | DEFAULT_wxUSE_BMPBUTTON=yes |
5059 | DEFAULT_wxUSE_BUTTON=yes | |
5060 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5061 | DEFAULT_wxUSE_CARET=yes |
5062 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5063 | DEFAULT_wxUSE_CHECKBOX=yes |
5064 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5065 | DEFAULT_wxUSE_CHOICE=yes | |
5066 | DEFAULT_wxUSE_GAUGE=yes | |
5067 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5068 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5069 | DEFAULT_wxUSE_IMAGLIST=yes |
5070 | DEFAULT_wxUSE_LISTBOX=yes | |
5071 | DEFAULT_wxUSE_LISTCTRL=yes | |
5072 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5073 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5074 | DEFAULT_wxUSE_RADIOBOX=yes |
5075 | DEFAULT_wxUSE_RADIOBTN=yes | |
5076 | DEFAULT_wxUSE_SASH=yes | |
5077 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5078 | DEFAULT_wxUSE_SLIDER=yes | |
5079 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5080 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5081 | DEFAULT_wxUSE_SPLITTER=yes |
5082 | DEFAULT_wxUSE_STATBMP=yes | |
5083 | DEFAULT_wxUSE_STATBOX=yes | |
5084 | DEFAULT_wxUSE_STATLINE=yes | |
5085 | DEFAULT_wxUSE_STATUSBAR=yes | |
5086 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5087 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5088 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5089 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5090 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5091 | DEFAULT_wxUSE_TOOLTIPS=yes |
5092 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5093 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
5094 | elif test "$wxUSE_CONTROLS" = "no"; then |
5095 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5096 | DEFAULT_wxUSE_BMPBUTTON=no |
5097 | DEFAULT_wxUSE_BUTTON=no | |
5098 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5099 | DEFAULT_wxUSE_CARET=no |
5100 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5101 | DEFAULT_wxUSE_CHECKBOX=no |
5102 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5103 | DEFAULT_wxUSE_CHOICE=no | |
5104 | DEFAULT_wxUSE_GAUGE=no | |
5105 | DEFAULT_wxUSE_GRID=no | |
5106 | DEFAULT_wxUSE_NEW_GRID=no | |
5107 | DEFAULT_wxUSE_IMAGLIST=no | |
5108 | DEFAULT_wxUSE_LISTBOX=no | |
5109 | DEFAULT_wxUSE_LISTCTRL=no | |
5110 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5111 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5112 | DEFAULT_wxUSE_RADIOBOX=no |
5113 | DEFAULT_wxUSE_RADIOBTN=no | |
5114 | DEFAULT_wxUSE_SASH=no | |
5115 | DEFAULT_wxUSE_SCROLLBAR=no | |
5116 | DEFAULT_wxUSE_SLIDER=no | |
5117 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5118 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5119 | DEFAULT_wxUSE_SPLITTER=no |
5120 | DEFAULT_wxUSE_STATBMP=no | |
5121 | DEFAULT_wxUSE_STATBOX=no | |
5122 | DEFAULT_wxUSE_STATLINE=no | |
5123 | DEFAULT_wxUSE_STATUSBAR=no | |
5124 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5125 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5126 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5127 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5128 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5129 | DEFAULT_wxUSE_TOOLTIPS=no |
5130 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5131 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
5132 | fi |
5133 | ||
698dcdb6 VZ |
5134 | |
5135 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
8db37e06 | 5136 | echo "configure:5137: checking for --enable-accel" >&5 |
10f2d63a VZ |
5137 | no_cache=0 |
5138 | # Check whether --enable-accel or --disable-accel was given. | |
5139 | if test "${enable_accel+set}" = set; then | |
5140 | enableval="$enable_accel" | |
698dcdb6 | 5141 | |
10f2d63a VZ |
5142 | if test "$enableval" = yes; then |
5143 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5144 | else | |
5145 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5146 | fi | |
698dcdb6 | 5147 | |
10f2d63a | 5148 | else |
698dcdb6 | 5149 | |
10f2d63a VZ |
5150 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5151 | if test "x$LINE" != x ; then | |
5152 | eval "DEFAULT_$LINE" | |
5153 | else | |
5154 | no_cache=1 | |
5155 | fi | |
5156 | ||
5157 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5158 | |
5159 | fi | |
10f2d63a VZ |
5160 | |
5161 | ||
5162 | eval "$ac_cv_use_accel" | |
5163 | if test "$no_cache" != 1; then | |
5164 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5165 | fi | |
5166 | ||
5167 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5168 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5169 | else |
698dcdb6 | 5170 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5171 | fi |
698dcdb6 | 5172 | |
10f2d63a | 5173 | |
1e6feb95 | 5174 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
8db37e06 | 5175 | echo "configure:5176: checking for --enable-button" >&5 |
10f2d63a | 5176 | no_cache=0 |
1e6feb95 VZ |
5177 | # Check whether --enable-button or --disable-button was given. |
5178 | if test "${enable_button+set}" = set; then | |
5179 | enableval="$enable_button" | |
698dcdb6 | 5180 | |
10f2d63a | 5181 | if test "$enableval" = yes; then |
1e6feb95 | 5182 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5183 | else |
1e6feb95 | 5184 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5185 | fi |
698dcdb6 | 5186 | |
10f2d63a | 5187 | else |
698dcdb6 | 5188 | |
1e6feb95 | 5189 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5190 | if test "x$LINE" != x ; then |
5191 | eval "DEFAULT_$LINE" | |
5192 | else | |
5193 | no_cache=1 | |
5194 | fi | |
5195 | ||
1e6feb95 | 5196 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5197 | |
5198 | fi | |
10f2d63a VZ |
5199 | |
5200 | ||
1e6feb95 | 5201 | eval "$ac_cv_use_button" |
10f2d63a | 5202 | if test "$no_cache" != 1; then |
1e6feb95 | 5203 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5204 | fi |
5205 | ||
1e6feb95 | 5206 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5207 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5208 | else |
698dcdb6 | 5209 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5210 | fi |
698dcdb6 | 5211 | |
10f2d63a | 5212 | |
698dcdb6 | 5213 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
8db37e06 | 5214 | echo "configure:5215: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5215 | no_cache=0 |
5216 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5217 | if test "${enable_bmpbutton+set}" = set; then | |
5218 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5219 | |
10f2d63a VZ |
5220 | if test "$enableval" = yes; then |
5221 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5222 | else | |
5223 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5224 | fi | |
698dcdb6 | 5225 | |
10f2d63a | 5226 | else |
698dcdb6 | 5227 | |
10f2d63a VZ |
5228 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5229 | if test "x$LINE" != x ; then | |
5230 | eval "DEFAULT_$LINE" | |
5231 | else | |
5232 | no_cache=1 | |
5233 | fi | |
5234 | ||
5235 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5236 | |
5237 | fi | |
10f2d63a VZ |
5238 | |
5239 | ||
5240 | eval "$ac_cv_use_bmpbutton" | |
5241 | if test "$no_cache" != 1; then | |
5242 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5243 | fi | |
5244 | ||
5245 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5246 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5247 | else |
698dcdb6 | 5248 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5249 | fi |
698dcdb6 | 5250 | |
10f2d63a | 5251 | |
1e6feb95 | 5252 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
8db37e06 | 5253 | echo "configure:5254: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5254 | no_cache=0 |
5255 | # Check whether --enable-calendar or --disable-calendar was given. | |
5256 | if test "${enable_calendar+set}" = set; then | |
5257 | enableval="$enable_calendar" | |
5258 | ||
5259 | if test "$enableval" = yes; then | |
5260 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5261 | else | |
5262 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5263 | fi | |
5264 | ||
5265 | else | |
5266 | ||
5267 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5268 | if test "x$LINE" != x ; then | |
5269 | eval "DEFAULT_$LINE" | |
5270 | else | |
5271 | no_cache=1 | |
5272 | fi | |
5273 | ||
5274 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5275 | ||
5276 | fi | |
5277 | ||
5278 | ||
5279 | eval "$ac_cv_use_calendar" | |
5280 | if test "$no_cache" != 1; then | |
5281 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5282 | fi | |
5283 | ||
5284 | if test "$wxUSE_CALCTRL" = yes; then | |
5285 | echo "$ac_t""yes" 1>&6 | |
5286 | else | |
5287 | echo "$ac_t""no" 1>&6 | |
5288 | fi | |
5289 | ||
5290 | ||
5291 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
8db37e06 | 5292 | echo "configure:5293: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5293 | no_cache=0 |
5294 | # Check whether --enable-caret or --disable-caret was given. | |
5295 | if test "${enable_caret+set}" = set; then | |
5296 | enableval="$enable_caret" | |
5297 | ||
5298 | if test "$enableval" = yes; then | |
5299 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5300 | else | |
5301 | ac_cv_use_caret='wxUSE_CARET=no' | |
5302 | fi | |
5303 | ||
5304 | else | |
5305 | ||
5306 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5307 | if test "x$LINE" != x ; then | |
5308 | eval "DEFAULT_$LINE" | |
5309 | else | |
5310 | no_cache=1 | |
5311 | fi | |
5312 | ||
5313 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5314 | ||
5315 | fi | |
5316 | ||
5317 | ||
5318 | eval "$ac_cv_use_caret" | |
5319 | if test "$no_cache" != 1; then | |
5320 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5321 | fi | |
5322 | ||
5323 | if test "$wxUSE_CARET" = yes; then | |
5324 | echo "$ac_t""yes" 1>&6 | |
5325 | else | |
5326 | echo "$ac_t""no" 1>&6 | |
5327 | fi | |
5328 | ||
5329 | ||
698dcdb6 | 5330 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
8db37e06 | 5331 | echo "configure:5332: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5332 | no_cache=0 |
5333 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5334 | if test "${enable_checkbox+set}" = set; then | |
5335 | enableval="$enable_checkbox" | |
698dcdb6 | 5336 | |
10f2d63a VZ |
5337 | if test "$enableval" = yes; then |
5338 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5339 | else | |
5340 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5341 | fi | |
698dcdb6 | 5342 | |
10f2d63a | 5343 | else |
698dcdb6 | 5344 | |
10f2d63a VZ |
5345 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5346 | if test "x$LINE" != x ; then | |
5347 | eval "DEFAULT_$LINE" | |
5348 | else | |
5349 | no_cache=1 | |
5350 | fi | |
5351 | ||
5352 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5353 | |
5354 | fi | |
10f2d63a VZ |
5355 | |
5356 | ||
5357 | eval "$ac_cv_use_checkbox" | |
5358 | if test "$no_cache" != 1; then | |
5359 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5360 | fi | |
5361 | ||
5362 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5363 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5364 | else |
698dcdb6 | 5365 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5366 | fi |
698dcdb6 | 5367 | |
10f2d63a | 5368 | |
698dcdb6 | 5369 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
8db37e06 | 5370 | echo "configure:5371: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5371 | no_cache=0 |
5372 | # Check whether --enable-checklst or --disable-checklst was given. | |
5373 | if test "${enable_checklst+set}" = set; then | |
5374 | enableval="$enable_checklst" | |
698dcdb6 | 5375 | |
10f2d63a VZ |
5376 | if test "$enableval" = yes; then |
5377 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5378 | else | |
5379 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5380 | fi | |
698dcdb6 | 5381 | |
10f2d63a | 5382 | else |
698dcdb6 | 5383 | |
10f2d63a VZ |
5384 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5385 | if test "x$LINE" != x ; then | |
5386 | eval "DEFAULT_$LINE" | |
5387 | else | |
5388 | no_cache=1 | |
5389 | fi | |
5390 | ||
5391 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5392 | |
5393 | fi | |
10f2d63a VZ |
5394 | |
5395 | ||
5396 | eval "$ac_cv_use_checklst" | |
5397 | if test "$no_cache" != 1; then | |
5398 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5399 | fi | |
5400 | ||
5401 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5402 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5403 | else |
698dcdb6 | 5404 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5405 | fi |
698dcdb6 | 5406 | |
10f2d63a | 5407 | |
698dcdb6 | 5408 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
8db37e06 | 5409 | echo "configure:5410: checking for --enable-choice" >&5 |
10f2d63a VZ |
5410 | no_cache=0 |
5411 | # Check whether --enable-choice or --disable-choice was given. | |
5412 | if test "${enable_choice+set}" = set; then | |
5413 | enableval="$enable_choice" | |
698dcdb6 | 5414 | |
10f2d63a VZ |
5415 | if test "$enableval" = yes; then |
5416 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5417 | else | |
5418 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5419 | fi | |
698dcdb6 | 5420 | |
10f2d63a | 5421 | else |
698dcdb6 | 5422 | |
10f2d63a VZ |
5423 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5424 | if test "x$LINE" != x ; then | |
5425 | eval "DEFAULT_$LINE" | |
5426 | else | |
5427 | no_cache=1 | |
5428 | fi | |
5429 | ||
5430 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5431 | |
5432 | fi | |
10f2d63a VZ |
5433 | |
5434 | ||
5435 | eval "$ac_cv_use_choice" | |
5436 | if test "$no_cache" != 1; then | |
5437 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5438 | fi | |
5439 | ||
5440 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5441 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5442 | else |
698dcdb6 | 5443 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5444 | fi |
698dcdb6 | 5445 | |
10f2d63a | 5446 | |
698dcdb6 | 5447 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
8db37e06 | 5448 | echo "configure:5449: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5449 | no_cache=0 |
5450 | # Check whether --enable-combobox or --disable-combobox was given. | |
5451 | if test "${enable_combobox+set}" = set; then | |
5452 | enableval="$enable_combobox" | |
698dcdb6 | 5453 | |
10f2d63a VZ |
5454 | if test "$enableval" = yes; then |
5455 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5456 | else | |
5457 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5458 | fi | |
698dcdb6 | 5459 | |
10f2d63a | 5460 | else |
698dcdb6 | 5461 | |
10f2d63a VZ |
5462 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5463 | if test "x$LINE" != x ; then | |
5464 | eval "DEFAULT_$LINE" | |
5465 | else | |
5466 | no_cache=1 | |
5467 | fi | |
5468 | ||
5469 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5470 | |
5471 | fi | |
10f2d63a VZ |
5472 | |
5473 | ||
5474 | eval "$ac_cv_use_combobox" | |
5475 | if test "$no_cache" != 1; then | |
5476 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5477 | fi | |
5478 | ||
5479 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5480 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5481 | else |
698dcdb6 | 5482 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5483 | fi |
698dcdb6 | 5484 | |
10f2d63a | 5485 | |
698dcdb6 | 5486 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
8db37e06 | 5487 | echo "configure:5488: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5488 | no_cache=0 |
5489 | # Check whether --enable-gauge or --disable-gauge was given. | |
5490 | if test "${enable_gauge+set}" = set; then | |
5491 | enableval="$enable_gauge" | |
698dcdb6 | 5492 | |
10f2d63a VZ |
5493 | if test "$enableval" = yes; then |
5494 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5495 | else | |
5496 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5497 | fi | |
698dcdb6 | 5498 | |
10f2d63a | 5499 | else |
698dcdb6 | 5500 | |
10f2d63a VZ |
5501 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5502 | if test "x$LINE" != x ; then | |
5503 | eval "DEFAULT_$LINE" | |
5504 | else | |
5505 | no_cache=1 | |
5506 | fi | |
5507 | ||
5508 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5509 | |
5510 | fi | |
10f2d63a VZ |
5511 | |
5512 | ||
5513 | eval "$ac_cv_use_gauge" | |
5514 | if test "$no_cache" != 1; then | |
5515 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5516 | fi | |
5517 | ||
5518 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5519 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5520 | else |
698dcdb6 | 5521 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5522 | fi |
698dcdb6 | 5523 | |
10f2d63a | 5524 | |
698dcdb6 | 5525 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
8db37e06 | 5526 | echo "configure:5527: checking for --enable-grid" >&5 |
10f2d63a VZ |
5527 | no_cache=0 |
5528 | # Check whether --enable-grid or --disable-grid was given. | |
5529 | if test "${enable_grid+set}" = set; then | |
5530 | enableval="$enable_grid" | |
698dcdb6 | 5531 | |
10f2d63a VZ |
5532 | if test "$enableval" = yes; then |
5533 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5534 | else | |
5535 | ac_cv_use_grid='wxUSE_GRID=no' | |
5536 | fi | |
698dcdb6 | 5537 | |
10f2d63a | 5538 | else |
698dcdb6 | 5539 | |
10f2d63a VZ |
5540 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5541 | if test "x$LINE" != x ; then | |
5542 | eval "DEFAULT_$LINE" | |
5543 | else | |
5544 | no_cache=1 | |
5545 | fi | |
5546 | ||
5547 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5548 | |
5549 | fi | |
10f2d63a VZ |
5550 | |
5551 | ||
5552 | eval "$ac_cv_use_grid" | |
5553 | if test "$no_cache" != 1; then | |
5554 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5555 | fi | |
5556 | ||
5557 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5558 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5559 | else |
698dcdb6 | 5560 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5561 | fi |
698dcdb6 | 5562 | |
10f2d63a | 5563 | |
698dcdb6 | 5564 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
8db37e06 | 5565 | echo "configure:5566: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5566 | no_cache=0 |
5567 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5568 | if test "${enable_newgrid+set}" = set; then | |
5569 | enableval="$enable_newgrid" | |
698dcdb6 | 5570 | |
10f2d63a VZ |
5571 | if test "$enableval" = yes; then |
5572 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5573 | else | |
5574 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5575 | fi | |
698dcdb6 | 5576 | |
10f2d63a | 5577 | else |
698dcdb6 | 5578 | |
10f2d63a VZ |
5579 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5580 | if test "x$LINE" != x ; then | |
5581 | eval "DEFAULT_$LINE" | |
5582 | else | |
5583 | no_cache=1 | |
5584 | fi | |
5585 | ||
5586 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5587 | |
5588 | fi | |
10f2d63a VZ |
5589 | |
5590 | ||
5591 | eval "$ac_cv_use_newgrid" | |
5592 | if test "$no_cache" != 1; then | |
5593 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5594 | fi | |
5595 | ||
5596 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5597 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5598 | else |
698dcdb6 | 5599 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5600 | fi |
698dcdb6 | 5601 | |
10f2d63a | 5602 | |
698dcdb6 | 5603 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
8db37e06 | 5604 | echo "configure:5605: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5605 | no_cache=0 |
5606 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5607 | if test "${enable_imaglist+set}" = set; then | |
5608 | enableval="$enable_imaglist" | |
698dcdb6 | 5609 | |
10f2d63a VZ |
5610 | if test "$enableval" = yes; then |
5611 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5612 | else | |
5613 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5614 | fi | |
698dcdb6 | 5615 | |
10f2d63a | 5616 | else |
698dcdb6 | 5617 | |
10f2d63a VZ |
5618 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5619 | if test "x$LINE" != x ; then | |
5620 | eval "DEFAULT_$LINE" | |
5621 | else | |
5622 | no_cache=1 | |
5623 | fi | |
5624 | ||
5625 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5626 | |
5627 | fi | |
10f2d63a VZ |
5628 | |
5629 | ||
5630 | eval "$ac_cv_use_imaglist" | |
5631 | if test "$no_cache" != 1; then | |
5632 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5633 | fi | |
5634 | ||
5635 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5636 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5637 | else |
698dcdb6 | 5638 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5639 | fi |
698dcdb6 | 5640 | |
10f2d63a | 5641 | |
698dcdb6 | 5642 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
8db37e06 | 5643 | echo "configure:5644: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5644 | no_cache=0 |
5645 | # Check whether --enable-listbox or --disable-listbox was given. | |
5646 | if test "${enable_listbox+set}" = set; then | |
5647 | enableval="$enable_listbox" | |
698dcdb6 | 5648 | |
10f2d63a VZ |
5649 | if test "$enableval" = yes; then |
5650 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5651 | else | |
5652 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5653 | fi | |
698dcdb6 | 5654 | |
10f2d63a | 5655 | else |
698dcdb6 | 5656 | |
10f2d63a VZ |
5657 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5658 | if test "x$LINE" != x ; then | |
5659 | eval "DEFAULT_$LINE" | |
5660 | else | |
5661 | no_cache=1 | |
5662 | fi | |
5663 | ||
5664 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5665 | |
5666 | fi | |
10f2d63a VZ |
5667 | |
5668 | ||
5669 | eval "$ac_cv_use_listbox" | |
5670 | if test "$no_cache" != 1; then | |
5671 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5672 | fi | |
5673 | ||
5674 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5675 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5676 | else |
698dcdb6 | 5677 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5678 | fi |
698dcdb6 | 5679 | |
10f2d63a | 5680 | |
698dcdb6 | 5681 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
8db37e06 | 5682 | echo "configure:5683: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5683 | no_cache=0 |
5684 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5685 | if test "${enable_listctrl+set}" = set; then | |
5686 | enableval="$enable_listctrl" | |
698dcdb6 | 5687 | |
10f2d63a VZ |
5688 | if test "$enableval" = yes; then |
5689 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5690 | else | |
5691 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5692 | fi | |
698dcdb6 | 5693 | |
10f2d63a | 5694 | else |
698dcdb6 | 5695 | |
10f2d63a VZ |
5696 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5697 | if test "x$LINE" != x ; then | |
5698 | eval "DEFAULT_$LINE" | |
5699 | else | |
5700 | no_cache=1 | |
5701 | fi | |
5702 | ||
5703 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5704 | |
5705 | fi | |
10f2d63a VZ |
5706 | |
5707 | ||
5708 | eval "$ac_cv_use_listctrl" | |
5709 | if test "$no_cache" != 1; then | |
5710 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5711 | fi | |
5712 | ||
5713 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5714 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5715 | else |
698dcdb6 | 5716 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5717 | fi |
698dcdb6 | 5718 | |
10f2d63a | 5719 | |
698dcdb6 | 5720 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
8db37e06 | 5721 | echo "configure:5722: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5722 | no_cache=0 |
5723 | # Check whether --enable-notebook or --disable-notebook was given. | |
5724 | if test "${enable_notebook+set}" = set; then | |
5725 | enableval="$enable_notebook" | |
698dcdb6 | 5726 | |
10f2d63a VZ |
5727 | if test "$enableval" = yes; then |
5728 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5729 | else | |
5730 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5731 | fi | |
698dcdb6 | 5732 | |
10f2d63a | 5733 | else |
698dcdb6 | 5734 | |
10f2d63a VZ |
5735 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5736 | if test "x$LINE" != x ; then | |
5737 | eval "DEFAULT_$LINE" | |
5738 | else | |
5739 | no_cache=1 | |
5740 | fi | |
5741 | ||
5742 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5743 | |
5744 | fi | |
10f2d63a VZ |
5745 | |
5746 | ||
5747 | eval "$ac_cv_use_notebook" | |
5748 | if test "$no_cache" != 1; then | |
5749 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5750 | fi | |
5751 | ||
5752 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5753 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5754 | else |
698dcdb6 | 5755 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5756 | fi |
698dcdb6 | 5757 | |
10f2d63a | 5758 | |
24176f2c | 5759 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
8db37e06 | 5760 | echo "configure:5761: checking for --enable-propsheet" >&5 |
24176f2c GD |
5761 | no_cache=0 |
5762 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
5763 | if test "${enable_propsheet+set}" = set; then | |
5764 | enableval="$enable_propsheet" | |
5765 | ||
5766 | if test "$enableval" = yes; then | |
5767 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
5768 | else | |
5769 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
5770 | fi | |
5771 | ||
5772 | else | |
5773 | ||
5774 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
5775 | if test "x$LINE" != x ; then | |
5776 | eval "DEFAULT_$LINE" | |
5777 | else | |
5778 | no_cache=1 | |
5779 | fi | |
5780 | ||
5781 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
5782 | ||
5783 | fi | |
5784 | ||
5785 | ||
5786 | eval "$ac_cv_use_propsheet" | |
5787 | if test "$no_cache" != 1; then | |
5788 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
5789 | fi | |
5790 | ||
5791 | if test "$wxUSE_PROPSHEET" = yes; then | |
5792 | echo "$ac_t""yes" 1>&6 | |
5793 | else | |
5794 | echo "$ac_t""no" 1>&6 | |
5795 | fi | |
5796 | ||
5797 | ||
698dcdb6 | 5798 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
8db37e06 | 5799 | echo "configure:5800: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5800 | no_cache=0 |
5801 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5802 | if test "${enable_radiobox+set}" = set; then | |
5803 | enableval="$enable_radiobox" | |
698dcdb6 | 5804 | |
10f2d63a VZ |
5805 | if test "$enableval" = yes; then |
5806 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5807 | else | |
5808 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5809 | fi | |
698dcdb6 | 5810 | |
10f2d63a | 5811 | else |
698dcdb6 | 5812 | |
10f2d63a VZ |
5813 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5814 | if test "x$LINE" != x ; then | |
5815 | eval "DEFAULT_$LINE" | |
5816 | else | |
5817 | no_cache=1 | |
5818 | fi | |
5819 | ||
5820 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5821 | |
5822 | fi | |
10f2d63a VZ |
5823 | |
5824 | ||
5825 | eval "$ac_cv_use_radiobox" | |
5826 | if test "$no_cache" != 1; then | |
5827 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5828 | fi | |
5829 | ||
5830 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5831 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5832 | else |
698dcdb6 | 5833 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5834 | fi |
698dcdb6 | 5835 | |
10f2d63a | 5836 | |
698dcdb6 | 5837 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
8db37e06 | 5838 | echo "configure:5839: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5839 | no_cache=0 |
5840 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5841 | if test "${enable_radiobtn+set}" = set; then | |
5842 | enableval="$enable_radiobtn" | |
698dcdb6 | 5843 | |
10f2d63a VZ |
5844 | if test "$enableval" = yes; then |
5845 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5846 | else | |
5847 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5848 | fi | |
698dcdb6 | 5849 | |
10f2d63a | 5850 | else |
698dcdb6 | 5851 | |
10f2d63a VZ |
5852 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5853 | if test "x$LINE" != x ; then | |
5854 | eval "DEFAULT_$LINE" | |
5855 | else | |
5856 | no_cache=1 | |
5857 | fi | |
5858 | ||
5859 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5860 | |
5861 | fi | |
10f2d63a VZ |
5862 | |
5863 | ||
5864 | eval "$ac_cv_use_radiobtn" | |
5865 | if test "$no_cache" != 1; then | |
5866 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5867 | fi | |
5868 | ||
5869 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5870 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5871 | else |
698dcdb6 | 5872 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5873 | fi |
698dcdb6 | 5874 | |
10f2d63a | 5875 | |
698dcdb6 | 5876 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
8db37e06 | 5877 | echo "configure:5878: checking for --enable-sash" >&5 |
10f2d63a VZ |
5878 | no_cache=0 |
5879 | # Check whether --enable-sash or --disable-sash was given. | |
5880 | if test "${enable_sash+set}" = set; then | |
5881 | enableval="$enable_sash" | |
698dcdb6 | 5882 | |
10f2d63a VZ |
5883 | if test "$enableval" = yes; then |
5884 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5885 | else | |
5886 | ac_cv_use_sash='wxUSE_SASH=no' | |
5887 | fi | |
698dcdb6 | 5888 | |
10f2d63a | 5889 | else |
698dcdb6 | 5890 | |
10f2d63a VZ |
5891 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5892 | if test "x$LINE" != x ; then | |
5893 | eval "DEFAULT_$LINE" | |
5894 | else | |
5895 | no_cache=1 | |
5896 | fi | |
5897 | ||
5898 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5899 | |
5900 | fi | |
10f2d63a VZ |
5901 | |
5902 | ||
5903 | eval "$ac_cv_use_sash" | |
5904 | if test "$no_cache" != 1; then | |
5905 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5906 | fi | |
5907 | ||
5908 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5909 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5910 | else |
698dcdb6 | 5911 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5912 | fi |
698dcdb6 | 5913 | |
10f2d63a | 5914 | |
698dcdb6 | 5915 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
8db37e06 | 5916 | echo "configure:5917: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5917 | no_cache=0 |
5918 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5919 | if test "${enable_scrollbar+set}" = set; then | |
5920 | enableval="$enable_scrollbar" | |
698dcdb6 | 5921 | |
10f2d63a VZ |
5922 | if test "$enableval" = yes; then |
5923 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5924 | else | |
5925 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5926 | fi | |
698dcdb6 | 5927 | |
10f2d63a | 5928 | else |
698dcdb6 | 5929 | |
10f2d63a VZ |
5930 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5931 | if test "x$LINE" != x ; then | |
5932 | eval "DEFAULT_$LINE" | |
5933 | else | |
5934 | no_cache=1 | |
5935 | fi | |
5936 | ||
5937 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5938 | |
5939 | fi | |
10f2d63a VZ |
5940 | |
5941 | ||
5942 | eval "$ac_cv_use_scrollbar" | |
5943 | if test "$no_cache" != 1; then | |
5944 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5945 | fi | |
5946 | ||
5947 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5948 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5949 | else |
698dcdb6 | 5950 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5951 | fi |
698dcdb6 | 5952 | |
10f2d63a | 5953 | |
698dcdb6 | 5954 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
8db37e06 | 5955 | echo "configure:5956: checking for --enable-slider" >&5 |
10f2d63a VZ |
5956 | no_cache=0 |
5957 | # Check whether --enable-slider or --disable-slider was given. | |
5958 | if test "${enable_slider+set}" = set; then | |
5959 | enableval="$enable_slider" | |
698dcdb6 | 5960 | |
10f2d63a VZ |
5961 | if test "$enableval" = yes; then |
5962 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5963 | else | |
5964 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5965 | fi | |
698dcdb6 | 5966 | |
10f2d63a | 5967 | else |
698dcdb6 | 5968 | |
10f2d63a VZ |
5969 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5970 | if test "x$LINE" != x ; then | |
5971 | eval "DEFAULT_$LINE" | |
5972 | else | |
5973 | no_cache=1 | |
5974 | fi | |
5975 | ||
5976 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
5977 | |
5978 | fi | |
10f2d63a VZ |
5979 | |
5980 | ||
5981 | eval "$ac_cv_use_slider" | |
5982 | if test "$no_cache" != 1; then | |
5983 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5984 | fi | |
5985 | ||
5986 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 5987 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5988 | else |
698dcdb6 | 5989 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5990 | fi |
698dcdb6 | 5991 | |
10f2d63a | 5992 | |
698dcdb6 | 5993 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
8db37e06 | 5994 | echo "configure:5995: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
5995 | no_cache=0 |
5996 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5997 | if test "${enable_spinbtn+set}" = set; then | |
5998 | enableval="$enable_spinbtn" | |
698dcdb6 | 5999 | |
10f2d63a VZ |
6000 | if test "$enableval" = yes; then |
6001 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6002 | else | |
6003 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6004 | fi | |
698dcdb6 | 6005 | |
10f2d63a | 6006 | else |
698dcdb6 | 6007 | |
10f2d63a VZ |
6008 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6009 | if test "x$LINE" != x ; then | |
6010 | eval "DEFAULT_$LINE" | |
6011 | else | |
6012 | no_cache=1 | |
6013 | fi | |
6014 | ||
6015 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
6016 | |
6017 | fi | |
10f2d63a VZ |
6018 | |
6019 | ||
6020 | eval "$ac_cv_use_spinbtn" | |
6021 | if test "$no_cache" != 1; then | |
6022 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6023 | fi | |
6024 | ||
6025 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 6026 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6027 | else |
698dcdb6 | 6028 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6029 | fi |
698dcdb6 | 6030 | |
10f2d63a | 6031 | |
698dcdb6 | 6032 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
8db37e06 | 6033 | echo "configure:6034: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6034 | no_cache=0 |
6035 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6036 | if test "${enable_spinctrl+set}" = set; then | |
6037 | enableval="$enable_spinctrl" | |
698dcdb6 | 6038 | |
56cfaa52 RR |
6039 | if test "$enableval" = yes; then |
6040 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6041 | else | |
6042 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6043 | fi | |
698dcdb6 | 6044 | |
56cfaa52 | 6045 | else |
698dcdb6 | 6046 | |
56cfaa52 RR |
6047 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6048 | if test "x$LINE" != x ; then | |
6049 | eval "DEFAULT_$LINE" | |
6050 | else | |
6051 | no_cache=1 | |
6052 | fi | |
6053 | ||
6054 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
6055 | |
6056 | fi | |
56cfaa52 RR |
6057 | |
6058 | ||
6059 | eval "$ac_cv_use_spinctrl" | |
6060 | if test "$no_cache" != 1; then | |
6061 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6062 | fi | |
6063 | ||
6064 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 6065 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6066 | else |
698dcdb6 | 6067 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6068 | fi |
698dcdb6 | 6069 | |
56cfaa52 | 6070 | |
698dcdb6 | 6071 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
8db37e06 | 6072 | echo "configure:6073: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6073 | no_cache=0 |
6074 | # Check whether --enable-splitter or --disable-splitter was given. | |
6075 | if test "${enable_splitter+set}" = set; then | |
6076 | enableval="$enable_splitter" | |
698dcdb6 | 6077 | |
10f2d63a VZ |
6078 | if test "$enableval" = yes; then |
6079 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6080 | else | |
6081 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6082 | fi | |
698dcdb6 | 6083 | |
10f2d63a | 6084 | else |
698dcdb6 | 6085 | |
10f2d63a VZ |
6086 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6087 | if test "x$LINE" != x ; then | |
6088 | eval "DEFAULT_$LINE" | |
6089 | else | |
6090 | no_cache=1 | |
6091 | fi | |
6092 | ||
6093 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
6094 | |
6095 | fi | |
10f2d63a VZ |
6096 | |
6097 | ||
6098 | eval "$ac_cv_use_splitter" | |
6099 | if test "$no_cache" != 1; then | |
6100 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6101 | fi | |
6102 | ||
6103 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 6104 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6105 | else |
698dcdb6 | 6106 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6107 | fi |
698dcdb6 | 6108 | |
10f2d63a | 6109 | |
698dcdb6 | 6110 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
8db37e06 | 6111 | echo "configure:6112: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6112 | no_cache=0 |
6113 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6114 | if test "${enable_statbmp+set}" = set; then | |
6115 | enableval="$enable_statbmp" | |
698dcdb6 | 6116 | |
10f2d63a VZ |
6117 | if test "$enableval" = yes; then |
6118 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6119 | else | |
6120 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6121 | fi | |
698dcdb6 | 6122 | |
10f2d63a | 6123 | else |
698dcdb6 | 6124 | |
10f2d63a VZ |
6125 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6126 | if test "x$LINE" != x ; then | |
6127 | eval "DEFAULT_$LINE" | |
6128 | else | |
6129 | no_cache=1 | |
6130 | fi | |
6131 | ||
6132 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
6133 | |
6134 | fi | |
10f2d63a VZ |
6135 | |
6136 | ||
6137 | eval "$ac_cv_use_statbmp" | |
6138 | if test "$no_cache" != 1; then | |
6139 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6140 | fi | |
6141 | ||
6142 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 6143 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6144 | else |
698dcdb6 | 6145 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6146 | fi |
698dcdb6 | 6147 | |
10f2d63a | 6148 | |
698dcdb6 | 6149 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
8db37e06 | 6150 | echo "configure:6151: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6151 | no_cache=0 |
6152 | # Check whether --enable-statbox or --disable-statbox was given. | |
6153 | if test "${enable_statbox+set}" = set; then | |
6154 | enableval="$enable_statbox" | |
698dcdb6 | 6155 | |
10f2d63a VZ |
6156 | if test "$enableval" = yes; then |
6157 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6158 | else | |
6159 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6160 | fi | |
698dcdb6 | 6161 | |
10f2d63a | 6162 | else |
698dcdb6 | 6163 | |
10f2d63a VZ |
6164 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6165 | if test "x$LINE" != x ; then | |
6166 | eval "DEFAULT_$LINE" | |
6167 | else | |
6168 | no_cache=1 | |
6169 | fi | |
6170 | ||
6171 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
6172 | |
6173 | fi | |
10f2d63a VZ |
6174 | |
6175 | ||
6176 | eval "$ac_cv_use_statbox" | |
6177 | if test "$no_cache" != 1; then | |
6178 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6179 | fi | |
6180 | ||
6181 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 6182 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6183 | else |
698dcdb6 | 6184 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6185 | fi |
698dcdb6 | 6186 | |
10f2d63a | 6187 | |
698dcdb6 | 6188 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
8db37e06 | 6189 | echo "configure:6190: checking for --enable-statline" >&5 |
10f2d63a VZ |
6190 | no_cache=0 |
6191 | # Check whether --enable-statline or --disable-statline was given. | |
6192 | if test "${enable_statline+set}" = set; then | |
6193 | enableval="$enable_statline" | |
698dcdb6 | 6194 | |
10f2d63a VZ |
6195 | if test "$enableval" = yes; then |
6196 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6197 | else | |
6198 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6199 | fi | |
698dcdb6 | 6200 | |
10f2d63a | 6201 | else |
698dcdb6 | 6202 | |
10f2d63a VZ |
6203 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6204 | if test "x$LINE" != x ; then | |
6205 | eval "DEFAULT_$LINE" | |
6206 | else | |
6207 | no_cache=1 | |
6208 | fi | |
6209 | ||
6210 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6211 | |
6212 | fi | |
10f2d63a VZ |
6213 | |
6214 | ||
6215 | eval "$ac_cv_use_statline" | |
6216 | if test "$no_cache" != 1; then | |
6217 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6218 | fi | |
6219 | ||
6220 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6221 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6222 | else |
698dcdb6 | 6223 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6224 | fi |
698dcdb6 | 6225 | |
10f2d63a | 6226 | |
1e6feb95 | 6227 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
8db37e06 | 6228 | echo "configure:6229: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6229 | no_cache=0 |
6230 | # Check whether --enable-stattext or --disable-stattext was given. | |
6231 | if test "${enable_stattext+set}" = set; then | |
6232 | enableval="$enable_stattext" | |
6233 | ||
6234 | if test "$enableval" = yes; then | |
6235 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6236 | else | |
6237 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6238 | fi | |
6239 | ||
6240 | else | |
6241 | ||
6242 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6243 | if test "x$LINE" != x ; then | |
6244 | eval "DEFAULT_$LINE" | |
6245 | else | |
6246 | no_cache=1 | |
6247 | fi | |
6248 | ||
6249 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6250 | ||
6251 | fi | |
6252 | ||
6253 | ||
6254 | eval "$ac_cv_use_stattext" | |
6255 | if test "$no_cache" != 1; then | |
6256 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6257 | fi | |
6258 | ||
6259 | if test "$wxUSE_STATTEXT" = yes; then | |
6260 | echo "$ac_t""yes" 1>&6 | |
6261 | else | |
6262 | echo "$ac_t""no" 1>&6 | |
6263 | fi | |
6264 | ||
6265 | ||
698dcdb6 | 6266 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
8db37e06 | 6267 | echo "configure:6268: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6268 | no_cache=0 |
6269 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6270 | if test "${enable_statusbar+set}" = set; then | |
6271 | enableval="$enable_statusbar" | |
698dcdb6 | 6272 | |
10f2d63a VZ |
6273 | if test "$enableval" = yes; then |
6274 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6275 | else | |
6276 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6277 | fi | |
698dcdb6 | 6278 | |
10f2d63a | 6279 | else |
698dcdb6 | 6280 | |
10f2d63a VZ |
6281 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6282 | if test "x$LINE" != x ; then | |
6283 | eval "DEFAULT_$LINE" | |
6284 | else | |
6285 | no_cache=1 | |
6286 | fi | |
6287 | ||
6288 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6289 | |
6290 | fi | |
10f2d63a VZ |
6291 | |
6292 | ||
6293 | eval "$ac_cv_use_statusbar" | |
6294 | if test "$no_cache" != 1; then | |
6295 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6296 | fi | |
6297 | ||
6298 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6299 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6300 | else |
698dcdb6 | 6301 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6302 | fi |
698dcdb6 | 6303 | |
10f2d63a | 6304 | |
698dcdb6 | 6305 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
8db37e06 | 6306 | echo "configure:6307: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6307 | no_cache=0 |
6308 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6309 | if test "${enable_tabdialog+set}" = set; then | |
6310 | enableval="$enable_tabdialog" | |
698dcdb6 | 6311 | |
10f2d63a VZ |
6312 | if test "$enableval" = yes; then |
6313 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6314 | else | |
6315 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6316 | fi | |
698dcdb6 | 6317 | |
10f2d63a | 6318 | else |
698dcdb6 | 6319 | |
10f2d63a VZ |
6320 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6321 | if test "x$LINE" != x ; then | |
6322 | eval "DEFAULT_$LINE" | |
6323 | else | |
6324 | no_cache=1 | |
6325 | fi | |
6326 | ||
6327 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6328 | |
6329 | fi | |
10f2d63a VZ |
6330 | |
6331 | ||
6332 | eval "$ac_cv_use_tabdialog" | |
6333 | if test "$no_cache" != 1; then | |
6334 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6335 | fi | |
6336 | ||
6337 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6338 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6339 | else |
698dcdb6 | 6340 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6341 | fi |
698dcdb6 | 6342 | |
10f2d63a | 6343 | |
1e6feb95 | 6344 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
8db37e06 | 6345 | echo "configure:6346: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6346 | no_cache=0 |
6347 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6348 | if test "${enable_textctrl+set}" = set; then | |
6349 | enableval="$enable_textctrl" | |
6350 | ||
6351 | if test "$enableval" = yes; then | |
6352 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6353 | else | |
6354 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6355 | fi | |
6356 | ||
6357 | else | |
6358 | ||
6359 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6360 | if test "x$LINE" != x ; then | |
6361 | eval "DEFAULT_$LINE" | |
6362 | else | |
6363 | no_cache=1 | |
6364 | fi | |
6365 | ||
6366 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6367 | ||
6368 | fi | |
6369 | ||
6370 | ||
6371 | eval "$ac_cv_use_textctrl" | |
6372 | if test "$no_cache" != 1; then | |
6373 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6374 | fi | |
6375 | ||
6376 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6377 | echo "$ac_t""yes" 1>&6 | |
6378 | else | |
6379 | echo "$ac_t""no" 1>&6 | |
6380 | fi | |
6381 | ||
6382 | ||
698dcdb6 | 6383 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
8db37e06 | 6384 | echo "configure:6385: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6385 | no_cache=0 |
6386 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6387 | if test "${enable_togglebtn+set}" = set; then | |
6388 | enableval="$enable_togglebtn" | |
698dcdb6 | 6389 | |
1db8dc4a VZ |
6390 | if test "$enableval" = yes; then |
6391 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6392 | else | |
6393 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6394 | fi | |
698dcdb6 | 6395 | |
1db8dc4a | 6396 | else |
698dcdb6 | 6397 | |
1db8dc4a VZ |
6398 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6399 | if test "x$LINE" != x ; then | |
6400 | eval "DEFAULT_$LINE" | |
6401 | else | |
6402 | no_cache=1 | |
6403 | fi | |
6404 | ||
6405 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6406 | |
6407 | fi | |
1db8dc4a VZ |
6408 | |
6409 | ||
6410 | eval "$ac_cv_use_togglebtn" | |
6411 | if test "$no_cache" != 1; then | |
6412 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6413 | fi | |
6414 | ||
6415 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6416 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6417 | else |
698dcdb6 | 6418 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6419 | fi |
698dcdb6 | 6420 | |
1db8dc4a | 6421 | |
698dcdb6 | 6422 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
8db37e06 | 6423 | echo "configure:6424: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6424 | no_cache=0 |
6425 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6426 | if test "${enable_toolbar+set}" = set; then | |
6427 | enableval="$enable_toolbar" | |
698dcdb6 | 6428 | |
10f2d63a VZ |
6429 | if test "$enableval" = yes; then |
6430 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6431 | else | |
6432 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6433 | fi | |
698dcdb6 | 6434 | |
10f2d63a | 6435 | else |
698dcdb6 | 6436 | |
10f2d63a VZ |
6437 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6438 | if test "x$LINE" != x ; then | |
6439 | eval "DEFAULT_$LINE" | |
6440 | else | |
6441 | no_cache=1 | |
6442 | fi | |
6443 | ||
6444 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6445 | |
6446 | fi | |
10f2d63a VZ |
6447 | |
6448 | ||
6449 | eval "$ac_cv_use_toolbar" | |
6450 | if test "$no_cache" != 1; then | |
6451 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6452 | fi | |
6453 | ||
6454 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6455 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6456 | else |
698dcdb6 | 6457 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6458 | fi |
698dcdb6 | 6459 | |
10f2d63a | 6460 | |
698dcdb6 | 6461 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
8db37e06 | 6462 | echo "configure:6463: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6463 | no_cache=0 |
6464 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6465 | if test "${enable_tbarnative+set}" = set; then | |
6466 | enableval="$enable_tbarnative" | |
698dcdb6 | 6467 | |
360d6699 VZ |
6468 | if test "$enableval" = yes; then |
6469 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6470 | else | |
6471 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6472 | fi | |
698dcdb6 | 6473 | |
360d6699 | 6474 | else |
698dcdb6 | 6475 | |
360d6699 VZ |
6476 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6477 | if test "x$LINE" != x ; then | |
6478 | eval "DEFAULT_$LINE" | |
6479 | else | |
6480 | no_cache=1 | |
6481 | fi | |
6482 | ||
6483 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6484 | |
6485 | fi | |
360d6699 VZ |
6486 | |
6487 | ||
6488 | eval "$ac_cv_use_tbarnative" | |
6489 | if test "$no_cache" != 1; then | |
6490 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6491 | fi | |
6492 | ||
6493 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6494 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6495 | else |
698dcdb6 | 6496 | echo "$ac_t""no" 1>&6 |
360d6699 | 6497 | fi |
698dcdb6 | 6498 | |
360d6699 | 6499 | |
698dcdb6 | 6500 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
8db37e06 | 6501 | echo "configure:6502: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6502 | no_cache=0 |
6503 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6504 | if test "${enable_tbarsmpl+set}" = set; then | |
6505 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6506 | |
360d6699 VZ |
6507 | if test "$enableval" = yes; then |
6508 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6509 | else | |
6510 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6511 | fi | |
698dcdb6 | 6512 | |
360d6699 | 6513 | else |
698dcdb6 | 6514 | |
360d6699 VZ |
6515 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6516 | if test "x$LINE" != x ; then | |
6517 | eval "DEFAULT_$LINE" | |
6518 | else | |
6519 | no_cache=1 | |
6520 | fi | |
6521 | ||
6522 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6523 | |
6524 | fi | |
360d6699 VZ |
6525 | |
6526 | ||
6527 | eval "$ac_cv_use_tbarsmpl" | |
6528 | if test "$no_cache" != 1; then | |
6529 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6530 | fi | |
6531 | ||
6532 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6533 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6534 | else |
698dcdb6 | 6535 | echo "$ac_t""no" 1>&6 |
360d6699 | 6536 | fi |
698dcdb6 | 6537 | |
360d6699 | 6538 | |
698dcdb6 | 6539 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
8db37e06 | 6540 | echo "configure:6541: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6541 | no_cache=0 |
6542 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6543 | if test "${enable_treectrl+set}" = set; then | |
6544 | enableval="$enable_treectrl" | |
698dcdb6 | 6545 | |
10f2d63a VZ |
6546 | if test "$enableval" = yes; then |
6547 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6548 | else | |
6549 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6550 | fi | |
698dcdb6 | 6551 | |
10f2d63a | 6552 | else |
698dcdb6 | 6553 | |
10f2d63a VZ |
6554 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6555 | if test "x$LINE" != x ; then | |
6556 | eval "DEFAULT_$LINE" | |
6557 | else | |
6558 | no_cache=1 | |
6559 | fi | |
6560 | ||
6561 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6562 | |
6563 | fi | |
10f2d63a VZ |
6564 | |
6565 | ||
1e6feb95 VZ |
6566 | eval "$ac_cv_use_treectrl" |
6567 | if test "$no_cache" != 1; then | |
6568 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6569 | fi | |
6570 | ||
6571 | if test "$wxUSE_TREECTRL" = yes; then | |
6572 | echo "$ac_t""yes" 1>&6 | |
6573 | else | |
6574 | echo "$ac_t""no" 1>&6 | |
6575 | fi | |
6576 | ||
6577 | ||
9f41d601 | 6578 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
8db37e06 | 6579 | echo "configure:6580: checking for --enable-popupwin" >&5 |
9f41d601 RR |
6580 | no_cache=0 |
6581 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6582 | if test "${enable_popupwin+set}" = set; then | |
6583 | enableval="$enable_popupwin" | |
6584 | ||
6585 | if test "$enableval" = yes; then | |
6586 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6587 | else | |
6588 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6589 | fi | |
6590 | ||
6591 | else | |
6592 | ||
6593 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6594 | if test "x$LINE" != x ; then | |
6595 | eval "DEFAULT_$LINE" | |
6596 | else | |
6597 | no_cache=1 | |
6598 | fi | |
6599 | ||
6600 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6601 | ||
6602 | fi | |
6603 | ||
6604 | ||
6605 | eval "$ac_cv_use_popupwin" | |
6606 | if test "$no_cache" != 1; then | |
6607 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
6608 | fi | |
6609 | ||
6610 | if test "$wxUSE_POPUPWIN" = yes; then | |
6611 | echo "$ac_t""yes" 1>&6 | |
6612 | else | |
6613 | echo "$ac_t""no" 1>&6 | |
6614 | fi | |
6615 | ||
6616 | ||
1e6feb95 VZ |
6617 | |
6618 | ||
6619 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
8db37e06 | 6620 | echo "configure:6621: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6621 | no_cache=0 |
6622 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6623 | if test "${enable_commondlg+set}" = set; then | |
6624 | enableval="$enable_commondlg" | |
6625 | ||
6626 | if test "$enableval" = yes; then | |
6627 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6628 | else | |
6629 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6630 | fi | |
6631 | ||
6632 | else | |
6633 | ||
6634 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6635 | if test "x$LINE" != x ; then | |
6636 | eval "DEFAULT_$LINE" | |
6637 | else | |
6638 | no_cache=1 | |
6639 | fi | |
6640 | ||
6641 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6642 | ||
6643 | fi | |
6644 | ||
6645 | ||
6646 | eval "$ac_cv_use_commondlg" | |
6647 | if test "$no_cache" != 1; then | |
6648 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6649 | fi | |
6650 | ||
6651 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6652 | echo "$ac_t""yes" 1>&6 | |
6653 | else | |
6654 | echo "$ac_t""no" 1>&6 | |
6655 | fi | |
6656 | ||
6657 | ||
6658 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
8db37e06 | 6659 | echo "configure:6660: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6660 | no_cache=0 |
6661 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6662 | if test "${enable_choicedlg+set}" = set; then | |
6663 | enableval="$enable_choicedlg" | |
6664 | ||
6665 | if test "$enableval" = yes; then | |
6666 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6667 | else | |
6668 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6669 | fi | |
6670 | ||
6671 | else | |
6672 | ||
6673 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6674 | if test "x$LINE" != x ; then | |
6675 | eval "DEFAULT_$LINE" | |
6676 | else | |
6677 | no_cache=1 | |
6678 | fi | |
6679 | ||
6680 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6681 | ||
6682 | fi | |
6683 | ||
6684 | ||
6685 | eval "$ac_cv_use_choicedlg" | |
6686 | if test "$no_cache" != 1; then | |
6687 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6688 | fi | |
6689 | ||
6690 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6691 | echo "$ac_t""yes" 1>&6 | |
6692 | else | |
6693 | echo "$ac_t""no" 1>&6 | |
6694 | fi | |
6695 | ||
6696 | ||
6697 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
8db37e06 | 6698 | echo "configure:6699: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6699 | no_cache=0 |
6700 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6701 | if test "${enable_coldlg+set}" = set; then | |
6702 | enableval="$enable_coldlg" | |
6703 | ||
6704 | if test "$enableval" = yes; then | |
6705 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6706 | else | |
6707 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6708 | fi | |
6709 | ||
6710 | else | |
6711 | ||
6712 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6713 | if test "x$LINE" != x ; then | |
6714 | eval "DEFAULT_$LINE" | |
6715 | else | |
6716 | no_cache=1 | |
6717 | fi | |
6718 | ||
6719 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6720 | ||
6721 | fi | |
6722 | ||
6723 | ||
6724 | eval "$ac_cv_use_coldlg" | |
6725 | if test "$no_cache" != 1; then | |
6726 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6727 | fi | |
6728 | ||
6729 | if test "$wxUSE_COLOURDLG" = yes; then | |
6730 | echo "$ac_t""yes" 1>&6 | |
6731 | else | |
6732 | echo "$ac_t""no" 1>&6 | |
6733 | fi | |
6734 | ||
6735 | ||
6736 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
8db37e06 | 6737 | echo "configure:6738: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6738 | no_cache=0 |
6739 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6740 | if test "${enable_filedlg+set}" = set; then | |
6741 | enableval="$enable_filedlg" | |
6742 | ||
6743 | if test "$enableval" = yes; then | |
6744 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6745 | else | |
6746 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6747 | fi | |
6748 | ||
6749 | else | |
6750 | ||
6751 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6752 | if test "x$LINE" != x ; then | |
6753 | eval "DEFAULT_$LINE" | |
6754 | else | |
6755 | no_cache=1 | |
6756 | fi | |
6757 | ||
6758 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6759 | ||
6760 | fi | |
6761 | ||
6762 | ||
6763 | eval "$ac_cv_use_filedlg" | |
6764 | if test "$no_cache" != 1; then | |
6765 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6766 | fi | |
6767 | ||
6768 | if test "$wxUSE_FILEDLG" = yes; then | |
6769 | echo "$ac_t""yes" 1>&6 | |
6770 | else | |
6771 | echo "$ac_t""no" 1>&6 | |
6772 | fi | |
6773 | ||
6774 | ||
8db37e06 VZ |
6775 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 |
6776 | echo "configure:6777: checking for --enable-filedlg" >&5 | |
6777 | no_cache=0 | |
6778 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6779 | if test "${enable_filedlg+set}" = set; then | |
6780 | enableval="$enable_filedlg" | |
6781 | ||
6782 | if test "$enableval" = yes; then | |
6783 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes' | |
6784 | else | |
6785 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no' | |
6786 | fi | |
6787 | ||
6788 | else | |
6789 | ||
6790 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
6791 | if test "x$LINE" != x ; then | |
6792 | eval "DEFAULT_$LINE" | |
6793 | else | |
6794 | no_cache=1 | |
6795 | fi | |
6796 | ||
6797 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
6798 | ||
6799 | fi | |
6800 | ||
6801 | ||
6802 | eval "$ac_cv_use_filedlg" | |
6803 | if test "$no_cache" != 1; then | |
6804 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6805 | fi | |
6806 | ||
6807 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
6808 | echo "$ac_t""yes" 1>&6 | |
6809 | else | |
6810 | echo "$ac_t""no" 1>&6 | |
6811 | fi | |
6812 | ||
6813 | ||
1e6feb95 | 6814 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
8db37e06 | 6815 | echo "configure:6816: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6816 | no_cache=0 |
6817 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6818 | if test "${enable_fontdlg+set}" = set; then | |
6819 | enableval="$enable_fontdlg" | |
6820 | ||
6821 | if test "$enableval" = yes; then | |
6822 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6823 | else | |
6824 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6825 | fi | |
6826 | ||
6827 | else | |
6828 | ||
6829 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6830 | if test "x$LINE" != x ; then | |
6831 | eval "DEFAULT_$LINE" | |
6832 | else | |
6833 | no_cache=1 | |
6834 | fi | |
6835 | ||
6836 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6837 | ||
6838 | fi | |
6839 | ||
6840 | ||
6841 | eval "$ac_cv_use_fontdlg" | |
6842 | if test "$no_cache" != 1; then | |
6843 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6844 | fi | |
6845 | ||
6846 | if test "$wxUSE_FONTDLG" = yes; then | |
6847 | echo "$ac_t""yes" 1>&6 | |
6848 | else | |
6849 | echo "$ac_t""no" 1>&6 | |
6850 | fi | |
6851 | ||
6852 | ||
6853 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
8db37e06 | 6854 | echo "configure:6855: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6855 | no_cache=0 |
6856 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6857 | if test "${enable_dirdlg+set}" = set; then | |
6858 | enableval="$enable_dirdlg" | |
6859 | ||
6860 | if test "$enableval" = yes; then | |
6861 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6862 | else | |
6863 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6864 | fi | |
6865 | ||
6866 | else | |
6867 | ||
6868 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6869 | if test "x$LINE" != x ; then | |
6870 | eval "DEFAULT_$LINE" | |
6871 | else | |
6872 | no_cache=1 | |
6873 | fi | |
6874 | ||
6875 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6876 | ||
6877 | fi | |
6878 | ||
6879 | ||
6880 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6881 | if test "$no_cache" != 1; then |
1e6feb95 | 6882 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6883 | fi |
6884 | ||
1e6feb95 | 6885 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6886 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6887 | else |
698dcdb6 | 6888 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6889 | fi |
698dcdb6 VZ |
6890 | |
6891 | ||
1e6feb95 | 6892 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
8db37e06 | 6893 | echo "configure:6894: checking for --enable-msgdlg" >&5 |
10f2d63a | 6894 | no_cache=0 |
1e6feb95 VZ |
6895 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6896 | if test "${enable_msgdlg+set}" = set; then | |
6897 | enableval="$enable_msgdlg" | |
698dcdb6 | 6898 | |
10f2d63a | 6899 | if test "$enableval" = yes; then |
1e6feb95 | 6900 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6901 | else |
1e6feb95 | 6902 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6903 | fi |
698dcdb6 | 6904 | |
10f2d63a | 6905 | else |
698dcdb6 | 6906 | |
1e6feb95 | 6907 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6908 | if test "x$LINE" != x ; then |
6909 | eval "DEFAULT_$LINE" | |
6910 | else | |
6911 | no_cache=1 | |
6912 | fi | |
6913 | ||
1e6feb95 | 6914 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6915 | |
6916 | fi | |
10f2d63a VZ |
6917 | |
6918 | ||
1e6feb95 | 6919 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6920 | if test "$no_cache" != 1; then |
1e6feb95 | 6921 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6922 | fi |
6923 | ||
1e6feb95 | 6924 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6925 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6926 | else |
698dcdb6 | 6927 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6928 | fi |
698dcdb6 | 6929 | |
10f2d63a | 6930 | |
1e6feb95 | 6931 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
8db37e06 | 6932 | echo "configure:6933: checking for --enable-numberdlg" >&5 |
10f2d63a | 6933 | no_cache=0 |
1e6feb95 VZ |
6934 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6935 | if test "${enable_numberdlg+set}" = set; then | |
6936 | enableval="$enable_numberdlg" | |
698dcdb6 | 6937 | |
10f2d63a | 6938 | if test "$enableval" = yes; then |
1e6feb95 | 6939 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6940 | else |
1e6feb95 | 6941 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6942 | fi |
698dcdb6 | 6943 | |
10f2d63a | 6944 | else |
698dcdb6 | 6945 | |
1e6feb95 | 6946 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6947 | if test "x$LINE" != x ; then |
6948 | eval "DEFAULT_$LINE" | |
6949 | else | |
6950 | no_cache=1 | |
6951 | fi | |
6952 | ||
1e6feb95 | 6953 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6954 | |
6955 | fi | |
10f2d63a VZ |
6956 | |
6957 | ||
1e6feb95 | 6958 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6959 | if test "$no_cache" != 1; then |
1e6feb95 | 6960 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6961 | fi |
6962 | ||
1e6feb95 | 6963 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6964 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6965 | else |
698dcdb6 | 6966 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6967 | fi |
698dcdb6 | 6968 | |
10f2d63a | 6969 | |
698dcdb6 | 6970 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
8db37e06 | 6971 | echo "configure:6972: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
6972 | no_cache=0 |
6973 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
6974 | if test "${enable_textdlg+set}" = set; then | |
6975 | enableval="$enable_textdlg" | |
698dcdb6 | 6976 | |
10f2d63a VZ |
6977 | if test "$enableval" = yes; then |
6978 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
6979 | else | |
6980 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
6981 | fi | |
698dcdb6 | 6982 | |
10f2d63a | 6983 | else |
698dcdb6 | 6984 | |
10f2d63a VZ |
6985 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
6986 | if test "x$LINE" != x ; then | |
6987 | eval "DEFAULT_$LINE" | |
6988 | else | |
6989 | no_cache=1 | |
6990 | fi | |
6991 | ||
6992 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
6993 | |
6994 | fi | |
10f2d63a VZ |
6995 | |
6996 | ||
6997 | eval "$ac_cv_use_textdlg" | |
6998 | if test "$no_cache" != 1; then | |
6999 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7000 | fi | |
7001 | ||
7002 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 7003 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7004 | else |
698dcdb6 | 7005 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7006 | fi |
698dcdb6 | 7007 | |
10f2d63a | 7008 | |
698dcdb6 | 7009 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
8db37e06 | 7010 | echo "configure:7011: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7011 | no_cache=0 |
7012 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7013 | if test "${enable_tipdlg+set}" = set; then | |
7014 | enableval="$enable_tipdlg" | |
698dcdb6 | 7015 | |
10f2d63a VZ |
7016 | if test "$enableval" = yes; then |
7017 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7018 | else | |
7019 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7020 | fi | |
698dcdb6 | 7021 | |
10f2d63a | 7022 | else |
698dcdb6 | 7023 | |
10f2d63a VZ |
7024 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7025 | if test "x$LINE" != x ; then | |
7026 | eval "DEFAULT_$LINE" | |
7027 | else | |
7028 | no_cache=1 | |
7029 | fi | |
7030 | ||
7031 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
7032 | |
7033 | fi | |
10f2d63a VZ |
7034 | |
7035 | ||
7036 | eval "$ac_cv_use_tipdlg" | |
7037 | if test "$no_cache" != 1; then | |
7038 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7039 | fi | |
7040 | ||
7041 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 7042 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7043 | else |
698dcdb6 | 7044 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7045 | fi |
698dcdb6 | 7046 | |
10f2d63a | 7047 | |
698dcdb6 | 7048 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
8db37e06 | 7049 | echo "configure:7050: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7050 | no_cache=0 |
7051 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7052 | if test "${enable_progressdlg+set}" = set; then | |
7053 | enableval="$enable_progressdlg" | |
698dcdb6 | 7054 | |
10f2d63a VZ |
7055 | if test "$enableval" = yes; then |
7056 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7057 | else | |
7058 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7059 | fi | |
698dcdb6 | 7060 | |
10f2d63a | 7061 | else |
698dcdb6 | 7062 | |
10f2d63a VZ |
7063 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7064 | if test "x$LINE" != x ; then | |
7065 | eval "DEFAULT_$LINE" | |
7066 | else | |
7067 | no_cache=1 | |
7068 | fi | |
7069 | ||
7070 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
7071 | |
7072 | fi | |
10f2d63a VZ |
7073 | |
7074 | ||
7075 | eval "$ac_cv_use_progressdlg" | |
7076 | if test "$no_cache" != 1; then | |
7077 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7078 | fi | |
7079 | ||
7080 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 7081 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7082 | else |
698dcdb6 | 7083 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7084 | fi |
698dcdb6 | 7085 | |
10f2d63a | 7086 | |
b1f5d087 | 7087 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
8db37e06 | 7088 | echo "configure:7089: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7089 | no_cache=0 |
7090 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7091 | if test "${enable_wizarddlg+set}" = set; then | |
7092 | enableval="$enable_wizarddlg" | |
7093 | ||
7094 | if test "$enableval" = yes; then | |
7095 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7096 | else | |
7097 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7098 | fi | |
7099 | ||
7100 | else | |
7101 | ||
7102 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7103 | if test "x$LINE" != x ; then | |
7104 | eval "DEFAULT_$LINE" | |
7105 | else | |
7106 | no_cache=1 | |
7107 | fi | |
7108 | ||
7109 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7110 | ||
7111 | fi | |
7112 | ||
7113 | ||
7114 | eval "$ac_cv_use_wizarddlg" | |
7115 | if test "$no_cache" != 1; then | |
7116 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7117 | fi | |
7118 | ||
7119 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7120 | echo "$ac_t""yes" 1>&6 | |
7121 | else | |
7122 | echo "$ac_t""no" 1>&6 | |
7123 | fi | |
7124 | ||
7125 | ||
7126 | ||
7127 | ||
1e6feb95 | 7128 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
8db37e06 | 7129 | echo "configure:7130: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7130 | no_cache=0 |
7131 | # Check whether --enable-menus or --disable-menus was given. | |
7132 | if test "${enable_menus+set}" = set; then | |
7133 | enableval="$enable_menus" | |
7134 | ||
7135 | if test "$enableval" = yes; then | |
7136 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7137 | else | |
7138 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7139 | fi | |
7140 | ||
7141 | else | |
7142 | ||
7143 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7144 | if test "x$LINE" != x ; then | |
7145 | eval "DEFAULT_$LINE" | |
7146 | else | |
7147 | no_cache=1 | |
7148 | fi | |
7149 | ||
7150 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7151 | ||
7152 | fi | |
7153 | ||
7154 | ||
7155 | eval "$ac_cv_use_menus" | |
7156 | if test "$no_cache" != 1; then | |
7157 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7158 | fi | |
7159 | ||
7160 | if test "$wxUSE_MENUS" = yes; then | |
7161 | echo "$ac_t""yes" 1>&6 | |
7162 | else | |
7163 | echo "$ac_t""no" 1>&6 | |
7164 | fi | |
7165 | ||
7166 | ||
698dcdb6 | 7167 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
8db37e06 | 7168 | echo "configure:7169: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7169 | no_cache=0 |
7170 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7171 | if test "${enable_miniframe+set}" = set; then | |
7172 | enableval="$enable_miniframe" | |
698dcdb6 | 7173 | |
10f2d63a VZ |
7174 | if test "$enableval" = yes; then |
7175 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7176 | else | |
7177 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7178 | fi | |
698dcdb6 | 7179 | |
10f2d63a | 7180 | else |
698dcdb6 | 7181 | |
10f2d63a VZ |
7182 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7183 | if test "x$LINE" != x ; then | |
7184 | eval "DEFAULT_$LINE" | |
7185 | else | |
7186 | no_cache=1 | |
7187 | fi | |
7188 | ||
7189 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
7190 | |
7191 | fi | |
10f2d63a VZ |
7192 | |
7193 | ||
7194 | eval "$ac_cv_use_miniframe" | |
7195 | if test "$no_cache" != 1; then | |
7196 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7197 | fi | |
7198 | ||
7199 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 7200 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7201 | else |
698dcdb6 | 7202 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7203 | fi |
698dcdb6 | 7204 | |
10f2d63a | 7205 | |
698dcdb6 | 7206 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
8db37e06 | 7207 | echo "configure:7208: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7208 | no_cache=0 |
7209 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7210 | if test "${enable_tooltips+set}" = set; then | |
7211 | enableval="$enable_tooltips" | |
698dcdb6 | 7212 | |
10f2d63a VZ |
7213 | if test "$enableval" = yes; then |
7214 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7215 | else | |
7216 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7217 | fi | |
698dcdb6 | 7218 | |
10f2d63a | 7219 | else |
698dcdb6 | 7220 | |
10f2d63a VZ |
7221 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7222 | if test "x$LINE" != x ; then | |
7223 | eval "DEFAULT_$LINE" | |
7224 | else | |
7225 | no_cache=1 | |
7226 | fi | |
7227 | ||
7228 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7229 | |
7230 | fi | |
10f2d63a VZ |
7231 | |
7232 | ||
7233 | eval "$ac_cv_use_tooltips" | |
7234 | if test "$no_cache" != 1; then | |
7235 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7236 | fi | |
7237 | ||
7238 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7239 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7240 | else |
698dcdb6 | 7241 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7242 | fi |
698dcdb6 | 7243 | |
10f2d63a | 7244 | |
698dcdb6 | 7245 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
8db37e06 | 7246 | echo "configure:7247: checking for --enable-splines" >&5 |
10f2d63a VZ |
7247 | no_cache=0 |
7248 | # Check whether --enable-splines or --disable-splines was given. | |
7249 | if test "${enable_splines+set}" = set; then | |
7250 | enableval="$enable_splines" | |
698dcdb6 | 7251 | |
10f2d63a VZ |
7252 | if test "$enableval" = yes; then |
7253 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7254 | else | |
7255 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7256 | fi | |
698dcdb6 | 7257 | |
10f2d63a | 7258 | else |
698dcdb6 | 7259 | |
10f2d63a VZ |
7260 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7261 | if test "x$LINE" != x ; then | |
7262 | eval "DEFAULT_$LINE" | |
7263 | else | |
7264 | no_cache=1 | |
7265 | fi | |
7266 | ||
7267 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7268 | |
7269 | fi | |
10f2d63a VZ |
7270 | |
7271 | ||
7272 | eval "$ac_cv_use_splines" | |
7273 | if test "$no_cache" != 1; then | |
7274 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7275 | fi | |
7276 | ||
7277 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7278 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7279 | else |
698dcdb6 | 7280 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7281 | fi |
698dcdb6 | 7282 | |
10f2d63a | 7283 | |
698dcdb6 | 7284 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
8db37e06 | 7285 | echo "configure:7286: checking for --enable-validators" >&5 |
10f2d63a VZ |
7286 | no_cache=0 |
7287 | # Check whether --enable-validators or --disable-validators was given. | |
7288 | if test "${enable_validators+set}" = set; then | |
7289 | enableval="$enable_validators" | |
698dcdb6 | 7290 | |
10f2d63a VZ |
7291 | if test "$enableval" = yes; then |
7292 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7293 | else | |
7294 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7295 | fi | |
698dcdb6 | 7296 | |
10f2d63a | 7297 | else |
698dcdb6 | 7298 | |
10f2d63a VZ |
7299 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7300 | if test "x$LINE" != x ; then | |
7301 | eval "DEFAULT_$LINE" | |
7302 | else | |
7303 | no_cache=1 | |
7304 | fi | |
7305 | ||
7306 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7307 | |
7308 | fi | |
10f2d63a VZ |
7309 | |
7310 | ||
7311 | eval "$ac_cv_use_validators" | |
7312 | if test "$no_cache" != 1; then | |
7313 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7314 | fi | |
7315 | ||
7316 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7317 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7318 | else |
698dcdb6 | 7319 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7320 | fi |
698dcdb6 | 7321 | |
10f2d63a | 7322 | |
698dcdb6 | 7323 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
8db37e06 | 7324 | echo "configure:7325: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7325 | no_cache=0 |
7326 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7327 | if test "${enable_busyinfo+set}" = set; then | |
7328 | enableval="$enable_busyinfo" | |
698dcdb6 | 7329 | |
10f2d63a VZ |
7330 | if test "$enableval" = yes; then |
7331 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7332 | else | |
7333 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7334 | fi | |
698dcdb6 | 7335 | |
10f2d63a | 7336 | else |
698dcdb6 | 7337 | |
10f2d63a VZ |
7338 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7339 | if test "x$LINE" != x ; then | |
7340 | eval "DEFAULT_$LINE" | |
7341 | else | |
7342 | no_cache=1 | |
7343 | fi | |
7344 | ||
7345 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7346 | |
7347 | fi | |
10f2d63a VZ |
7348 | |
7349 | ||
7350 | eval "$ac_cv_use_busyinfo" | |
7351 | if test "$no_cache" != 1; then | |
7352 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7353 | fi | |
7354 | ||
7355 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7356 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7357 | else |
698dcdb6 | 7358 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7359 | fi |
698dcdb6 | 7360 | |
10f2d63a | 7361 | |
698dcdb6 | 7362 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
8db37e06 | 7363 | echo "configure:7364: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7364 | no_cache=0 |
7365 | # Check whether --enable-joystick or --disable-joystick was given. | |
7366 | if test "${enable_joystick+set}" = set; then | |
7367 | enableval="$enable_joystick" | |
698dcdb6 | 7368 | |
f6bcfd97 BP |
7369 | if test "$enableval" = yes; then |
7370 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7371 | else | |
7372 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7373 | fi | |
698dcdb6 | 7374 | |
f6bcfd97 | 7375 | else |
698dcdb6 | 7376 | |
f6bcfd97 BP |
7377 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7378 | if test "x$LINE" != x ; then | |
7379 | eval "DEFAULT_$LINE" | |
7380 | else | |
7381 | no_cache=1 | |
7382 | fi | |
7383 | ||
7384 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7385 | |
7386 | fi | |
f6bcfd97 BP |
7387 | |
7388 | ||
7389 | eval "$ac_cv_use_joystick" | |
7390 | if test "$no_cache" != 1; then | |
7391 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7392 | fi | |
7393 | ||
7394 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7395 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7396 | else |
698dcdb6 | 7397 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7398 | fi |
698dcdb6 VZ |
7399 | |
7400 | ||
1e6feb95 | 7401 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
8db37e06 | 7402 | echo "configure:7403: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7403 | no_cache=0 |
7404 | # Check whether --enable-metafile or --disable-metafile was given. | |
7405 | if test "${enable_metafile+set}" = set; then | |
7406 | enableval="$enable_metafile" | |
7407 | ||
7408 | if test "$enableval" = yes; then | |
7409 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7410 | else | |
7411 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7412 | fi | |
7413 | ||
7414 | else | |
7415 | ||
7416 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7417 | if test "x$LINE" != x ; then | |
7418 | eval "DEFAULT_$LINE" | |
7419 | else | |
7420 | no_cache=1 | |
7421 | fi | |
7422 | ||
7423 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7424 | ||
7425 | fi | |
7426 | ||
7427 | ||
7428 | eval "$ac_cv_use_metafile" | |
7429 | if test "$no_cache" != 1; then | |
7430 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7431 | fi | |
7432 | ||
7433 | if test "$wxUSE_METAFILE" = yes; then | |
7434 | echo "$ac_t""yes" 1>&6 | |
7435 | else | |
7436 | echo "$ac_t""no" 1>&6 | |
7437 | fi | |
7438 | ||
7439 | ||
24fd6d87 | 7440 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
8db37e06 | 7441 | echo "configure:7442: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7442 | no_cache=0 |
7443 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7444 | if test "${enable_dragimage+set}" = set; then | |
7445 | enableval="$enable_dragimage" | |
7446 | ||
7447 | if test "$enableval" = yes; then | |
7448 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7449 | else | |
7450 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7451 | fi | |
7452 | ||
7453 | else | |
7454 | ||
7455 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7456 | if test "x$LINE" != x ; then | |
7457 | eval "DEFAULT_$LINE" | |
7458 | else | |
7459 | no_cache=1 | |
7460 | fi | |
7461 | ||
7462 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7463 | ||
7464 | fi | |
7465 | ||
7466 | ||
7467 | eval "$ac_cv_use_dragimage" | |
7468 | if test "$no_cache" != 1; then | |
7469 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7470 | fi | |
7471 | ||
7472 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7473 | echo "$ac_t""yes" 1>&6 | |
7474 | else | |
7475 | echo "$ac_t""no" 1>&6 | |
7476 | fi | |
7477 | ||
7478 | ||
10f2d63a | 7479 | |
698dcdb6 VZ |
7480 | |
7481 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
8db37e06 | 7482 | echo "configure:7483: checking for --enable-image" >&5 |
0046ff7c VS |
7483 | no_cache=0 |
7484 | # Check whether --enable-image or --disable-image was given. | |
7485 | if test "${enable_image+set}" = set; then | |
7486 | enableval="$enable_image" | |
698dcdb6 | 7487 | |
0046ff7c VS |
7488 | if test "$enableval" = yes; then |
7489 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7490 | else | |
7491 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7492 | fi | |
698dcdb6 | 7493 | |
0046ff7c | 7494 | else |
698dcdb6 | 7495 | |
0046ff7c VS |
7496 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7497 | if test "x$LINE" != x ; then | |
7498 | eval "DEFAULT_$LINE" | |
7499 | else | |
7500 | no_cache=1 | |
7501 | fi | |
7502 | ||
7503 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7504 | |
7505 | fi | |
0046ff7c VS |
7506 | |
7507 | ||
7508 | eval "$ac_cv_use_image" | |
7509 | if test "$no_cache" != 1; then | |
7510 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7511 | fi | |
7512 | ||
7513 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7514 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7515 | else |
698dcdb6 | 7516 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7517 | fi |
698dcdb6 | 7518 | |
0046ff7c | 7519 | |
698dcdb6 | 7520 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
8db37e06 | 7521 | echo "configure:7522: checking for --enable-gif" >&5 |
10f2d63a VZ |
7522 | no_cache=0 |
7523 | # Check whether --enable-gif or --disable-gif was given. | |
7524 | if test "${enable_gif+set}" = set; then | |
7525 | enableval="$enable_gif" | |
698dcdb6 | 7526 | |
10f2d63a VZ |
7527 | if test "$enableval" = yes; then |
7528 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7529 | else | |
7530 | ac_cv_use_gif='wxUSE_GIF=no' | |
7531 | fi | |
698dcdb6 | 7532 | |
10f2d63a | 7533 | else |
698dcdb6 | 7534 | |
10f2d63a VZ |
7535 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7536 | if test "x$LINE" != x ; then | |
7537 | eval "DEFAULT_$LINE" | |
7538 | else | |
7539 | no_cache=1 | |
7540 | fi | |
7541 | ||
7542 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7543 | |
7544 | fi | |
10f2d63a VZ |
7545 | |
7546 | ||
7547 | eval "$ac_cv_use_gif" | |
7548 | if test "$no_cache" != 1; then | |
7549 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7550 | fi | |
7551 | ||
7552 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7553 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7554 | else |
698dcdb6 | 7555 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7556 | fi |
698dcdb6 | 7557 | |
10f2d63a | 7558 | |
698dcdb6 | 7559 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
8db37e06 | 7560 | echo "configure:7561: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7561 | no_cache=0 |
7562 | # Check whether --enable-pcx or --disable-pcx was given. | |
7563 | if test "${enable_pcx+set}" = set; then | |
7564 | enableval="$enable_pcx" | |
698dcdb6 | 7565 | |
10f2d63a VZ |
7566 | if test "$enableval" = yes; then |
7567 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7568 | else | |
7569 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7570 | fi | |
698dcdb6 | 7571 | |
10f2d63a | 7572 | else |
698dcdb6 | 7573 | |
10f2d63a VZ |
7574 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7575 | if test "x$LINE" != x ; then | |
7576 | eval "DEFAULT_$LINE" | |
7577 | else | |
7578 | no_cache=1 | |
7579 | fi | |
7580 | ||
7581 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7582 | |
7583 | fi | |
10f2d63a VZ |
7584 | |
7585 | ||
7586 | eval "$ac_cv_use_pcx" | |
7587 | if test "$no_cache" != 1; then | |
7588 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7589 | fi | |
7590 | ||
7591 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7592 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7593 | else |
698dcdb6 | 7594 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7595 | fi |
698dcdb6 | 7596 | |
10f2d63a | 7597 | |
698dcdb6 | 7598 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
8db37e06 | 7599 | echo "configure:7600: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7600 | no_cache=0 |
7601 | # Check whether --enable-pnm or --disable-pnm was given. | |
7602 | if test "${enable_pnm+set}" = set; then | |
7603 | enableval="$enable_pnm" | |
698dcdb6 | 7604 | |
10f2d63a VZ |
7605 | if test "$enableval" = yes; then |
7606 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7607 | else | |
7608 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7609 | fi | |
698dcdb6 | 7610 | |
10f2d63a | 7611 | else |
698dcdb6 | 7612 | |
10f2d63a VZ |
7613 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7614 | if test "x$LINE" != x ; then | |
7615 | eval "DEFAULT_$LINE" | |
7616 | else | |
7617 | no_cache=1 | |
7618 | fi | |
7619 | ||
7620 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7621 | |
7622 | fi | |
10f2d63a VZ |
7623 | |
7624 | ||
7625 | eval "$ac_cv_use_pnm" | |
7626 | if test "$no_cache" != 1; then | |
7627 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7628 | fi | |
7629 | ||
7630 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7631 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7632 | else |
698dcdb6 | 7633 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7634 | fi |
698dcdb6 | 7635 | |
10f2d63a | 7636 | |
698dcdb6 | 7637 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
8db37e06 | 7638 | echo "configure:7639: checking for --enable-pnm" >&5 |
0046ff7c VS |
7639 | no_cache=0 |
7640 | # Check whether --enable-pnm or --disable-pnm was given. | |
7641 | if test "${enable_pnm+set}" = set; then | |
7642 | enableval="$enable_pnm" | |
698dcdb6 | 7643 | |
0046ff7c VS |
7644 | if test "$enableval" = yes; then |
7645 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7646 | else | |
7647 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7648 | fi | |
698dcdb6 | 7649 | |
0046ff7c | 7650 | else |
698dcdb6 | 7651 | |
0046ff7c VS |
7652 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7653 | if test "x$LINE" != x ; then | |
7654 | eval "DEFAULT_$LINE" | |
7655 | else | |
7656 | no_cache=1 | |
7657 | fi | |
7658 | ||
7659 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7660 | |
7661 | fi | |
0046ff7c VS |
7662 | |
7663 | ||
7664 | eval "$ac_cv_use_pnm" | |
7665 | if test "$no_cache" != 1; then | |
7666 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7667 | fi | |
7668 | ||
7669 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7670 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7671 | else |
698dcdb6 | 7672 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7673 | fi |
698dcdb6 | 7674 | |
0046ff7c | 7675 | |
b12915c1 VZ |
7676 | fi |
7677 | ||
698dcdb6 | 7678 | |
10f2d63a VZ |
7679 | echo "saving argument cache $wx_arg_cache_file" |
7680 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7681 | |
10f2d63a | 7682 | |
698dcdb6 VZ |
7683 | |
7684 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
8db37e06 | 7685 | echo "configure:7686: checking for toolkit" >&5 |
10f2d63a VZ |
7686 | |
7687 | if test "$wxUSE_GUI" = "yes"; then | |
7688 | ||
b12915c1 | 7689 | if test "$USE_BEOS" = 1; then |
698dcdb6 | 7690 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
b12915c1 VZ |
7691 | fi |
7692 | ||
10f2d63a VZ |
7693 | if test "$TOOLKIT_GIVEN" = 1; then |
7694 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7695 | var=wxUSE_$toolkit | |
7696 | eval "value=\$${var}" | |
7697 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7698 | done | |
7699 | else | |
7700 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7701 | if test "$has_toolkit_in_cache" != 1; then | |
7702 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7703 | else | |
7704 | var=DEFAULT_wxUSE_$toolkit | |
7705 | fi | |
7706 | eval "wxUSE_$toolkit=\$${var}" | |
7707 | done | |
7708 | fi | |
7709 | ||
1e6feb95 | 7710 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}` |
cf27ef00 | 7711 | |
ec14dd32 VZ |
7712 | case "${host}" in |
7713 | *-pc-os2_emx ) | |
7714 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7715 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7716 | LEX_STEM="lexyy" | |
7717 | ;; | |
7718 | *) | |
7719 | PATH_IFS=':' | |
7720 | LEX_STEM="lex.yy" | |
7721 | ;; | |
7722 | esac | |
10f2d63a VZ |
7723 | |
7724 | case "$NUM_TOOLKITS" in | |
7725 | 1) | |
7726 | ;; | |
7727 | 0) | |
698dcdb6 | 7728 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } |
10f2d63a VZ |
7729 | ;; |
7730 | *) | |
698dcdb6 | 7731 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } |
10f2d63a VZ |
7732 | esac |
7733 | ||
7734 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7735 | var=wxUSE_$toolkit | |
7736 | eval "value=\$${var}" | |
7737 | if test "x$value" != x; then | |
7738 | cache_var=CACHE_$toolkit | |
7739 | eval "cache=\$${cache_var}" | |
7740 | if test "$cache" = 1; then | |
7741 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7742 | fi | |
7743 | if test "$value" = 1; then | |
8168de4c VZ |
7744 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` |
7745 | echo "$ac_t""$toolkit_echo" 1>&6 | |
10f2d63a VZ |
7746 | fi |
7747 | fi | |
7748 | done | |
7749 | ||
7750 | else | |
cf27ef00 | 7751 | PATH_IFS=':' |
698dcdb6 | 7752 | echo "$ac_t""base only" 1>&6 |
10f2d63a VZ |
7753 | fi |
7754 | ||
698dcdb6 VZ |
7755 | |
7756 | cat > confcache <<\EOF | |
10f2d63a VZ |
7757 | # This file is a shell script that caches the results of configure |
7758 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7759 | # scripts and configure runs. It is not useful on other systems. |
7760 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7761 | # |
698dcdb6 VZ |
7762 | # By default, configure uses ./config.cache as the cache file, |
7763 | # creating it if it does not exist already. You can give configure | |
7764 | # the --cache-file=FILE option to use a different cache file; that is | |
7765 | # what configure does when it calls configure scripts in | |
7766 | # subdirectories, so they share the cache. | |
7767 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7768 | # config.status only pays attention to the cache file if you give it the | |
7769 | # --recheck option to rerun configure. | |
10f2d63a | 7770 | # |
698dcdb6 | 7771 | EOF |
10f2d63a VZ |
7772 | # The following way of writing the cache mishandles newlines in values, |
7773 | # but we know of no workaround that is simple, portable, and efficient. | |
7774 | # So, don't put newlines in cache variables' values. | |
7775 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7776 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7777 | (set) 2>&1 | |
7778 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7779 | *ac_space=\ *) | |
7780 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7781 | # turns \\\\ into \\, and sed turns \\ into \). | |
7782 | sed -n \ | |
7783 | -e "s/'/'\\\\''/g" \ | |
7784 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7785 | ;; | |
7786 | *) | |
7787 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7788 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7789 | ;; | |
7790 | esac >> confcache | |
7791 | if cmp -s $cache_file confcache; then | |
7792 | : | |
7793 | else | |
10f2d63a | 7794 | if test -w $cache_file; then |
698dcdb6 VZ |
7795 | echo "updating cache $cache_file" |
7796 | cat confcache > $cache_file | |
10f2d63a VZ |
7797 | else |
7798 | echo "not updating unwritable cache $cache_file" | |
7799 | fi | |
7800 | fi | |
7801 | rm -f confcache | |
7802 | ||
698dcdb6 | 7803 | |
e59890c3 | 7804 | if test "$build" != "$host" ; then |
10f2d63a VZ |
7805 | CC=$host_alias-gcc |
7806 | CXX=$host_alias-c++ | |
7807 | AR=$host_alias-ar | |
7808 | RANLIB=$host_alias-ranlib | |
7809 | DLLTOOL=$host_alias-dlltool | |
32832908 | 7810 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
7811 | LD=$host_alias-ld |
7812 | NM=$host_alias-nm | |
7813 | STRIP=$host_alias-strip | |
10f2d63a VZ |
7814 | fi |
7815 | ||
698dcdb6 | 7816 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7817 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7818 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8db37e06 | 7819 | echo "configure:7820: checking for $ac_word" >&5 |
698dcdb6 VZ |
7820 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7821 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7822 | else |
7823 | if test -n "$CC"; then | |
7824 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7825 | else |
698dcdb6 VZ |
7826 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7827 | ac_dummy="$PATH" | |
7828 | for ac_dir in $ac_dummy; do | |
7829 | test -z "$ac_dir" && ac_dir=. | |
7830 | if test -f $ac_dir/$ac_word; then | |
7831 | ac_cv_prog_CC="gcc" | |
7832 | break | |
7833 | fi | |
7834 | done | |
7835 | IFS="$ac_save_ifs" | |
10f2d63a | 7836 | fi |
6232543b | 7837 | fi |
698dcdb6 | 7838 | CC="$ac_cv_prog_CC" |
6232543b | 7839 | if test -n "$CC"; then |
698dcdb6 | 7840 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7841 | else |
698dcdb6 | 7842 | echo "$ac_t""no" 1>&6 |
1e487827 | 7843 | fi |
6232543b | 7844 | |
1e487827 VS |
7845 | if test -z "$CC"; then |
7846 | # Extract the first word of "cc", so it can be a program name with args. | |
7847 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7848 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8db37e06 | 7849 | echo "configure:7850: checking for $ac_word" >&5 |
698dcdb6 VZ |
7850 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7852 | else |
7853 | if test -n "$CC"; then | |
7854 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7855 | else | |
698dcdb6 | 7856 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7857 | ac_prog_rejected=no |
698dcdb6 VZ |
7858 | ac_dummy="$PATH" |
7859 | for ac_dir in $ac_dummy; do | |
7860 | test -z "$ac_dir" && ac_dir=. | |
7861 | if test -f $ac_dir/$ac_word; then | |
7862 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7863 | ac_prog_rejected=yes | |
7864 | continue | |
7865 | fi | |
7866 | ac_cv_prog_CC="cc" | |
7867 | break | |
7868 | fi | |
7869 | done | |
7870 | IFS="$ac_save_ifs" | |
1e487827 VS |
7871 | if test $ac_prog_rejected = yes; then |
7872 | # We found a bogon in the path, so make sure we never use it. | |
7873 | set dummy $ac_cv_prog_CC | |
7874 | shift | |
698dcdb6 | 7875 | if test $# -gt 0; then |
1e487827 VS |
7876 | # We chose a different compiler from the bogus one. |
7877 | # However, it has the same basename, so the bogon will be chosen | |
7878 | # first if we set CC to just the basename; use the full file name. | |
7879 | shift | |
698dcdb6 | 7880 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7881 | shift |
7882 | ac_cv_prog_CC="$@" | |
703e0a69 | 7883 | fi |
1e487827 VS |
7884 | fi |
7885 | fi | |
7886 | fi | |
698dcdb6 | 7887 | CC="$ac_cv_prog_CC" |
1e487827 | 7888 | if test -n "$CC"; then |
698dcdb6 | 7889 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 7890 | else |
698dcdb6 | 7891 | echo "$ac_t""no" 1>&6 |
703e0a69 | 7892 | fi |
1e487827 | 7893 | |
698dcdb6 VZ |
7894 | if test -z "$CC"; then |
7895 | case "`uname -s`" in | |
7896 | *win32* | *WIN32*) | |
7897 | # Extract the first word of "cl", so it can be a program name with args. | |
7898 | set dummy cl; ac_word=$2 | |
7899 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8db37e06 | 7900 | echo "configure:7901: checking for $ac_word" >&5 |
698dcdb6 VZ |
7901 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7902 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7903 | else |
7904 | if test -n "$CC"; then | |
7905 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 7906 | else |
698dcdb6 VZ |
7907 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7908 | ac_dummy="$PATH" | |
7909 | for ac_dir in $ac_dummy; do | |
7910 | test -z "$ac_dir" && ac_dir=. | |
7911 | if test -f $ac_dir/$ac_word; then | |
7912 | ac_cv_prog_CC="cl" | |
7913 | break | |
7914 | fi | |
7915 | done | |
7916 | IFS="$ac_save_ifs" | |
703e0a69 | 7917 | fi |
1e487827 | 7918 | fi |
698dcdb6 | 7919 | CC="$ac_cv_prog_CC" |
1e487827 | 7920 | if test -n "$CC"; then |
698dcdb6 | 7921 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7922 | else |
698dcdb6 | 7923 | echo "$ac_t""no" 1>&6 |
1e487827 | 7924 | fi |
698dcdb6 VZ |
7925 | ;; |
7926 | esac | |
7927 | fi | |
7928 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
7929 | fi |
7930 | ||
698dcdb6 | 7931 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
8db37e06 | 7932 | echo "configure:7933: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 7933 | |
698dcdb6 VZ |
7934 | ac_ext=c |
7935 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7936 | ac_cpp='$CPP $CPPFLAGS' | |
7937 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7938 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7939 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 7940 | |
698dcdb6 | 7941 | cat > conftest.$ac_ext << EOF |
1e487827 | 7942 | |
8db37e06 | 7943 | #line 7944 "configure" |
1e487827 VS |
7944 | #include "confdefs.h" |
7945 | ||
698dcdb6 VZ |
7946 | main(){return(0);} |
7947 | EOF | |
8db37e06 | 7948 | if { (eval echo configure:7949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7949 | ac_cv_prog_cc_works=yes |
7950 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7951 | if (./conftest; exit) 2>/dev/null; then | |
7952 | ac_cv_prog_cc_cross=no | |
7953 | else | |
7954 | ac_cv_prog_cc_cross=yes | |
7955 | fi | |
7956 | else | |
7957 | echo "configure: failed program was:" >&5 | |
7958 | cat conftest.$ac_ext >&5 | |
7959 | ac_cv_prog_cc_works=no | |
7960 | fi | |
7961 | rm -fr conftest* | |
7962 | ac_ext=c | |
7963 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7964 | ac_cpp='$CPP $CPPFLAGS' | |
7965 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7966 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7967 | cross_compiling=$ac_cv_prog_cc_cross | |
7968 | ||
7969 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
7970 | if test $ac_cv_prog_cc_works = no; then | |
7971 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
7972 | fi | |
7973 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
8db37e06 | 7974 | echo "configure:7975: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7975 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
7976 | cross_compiling=$ac_cv_prog_cc_cross | |
7977 | ||
7978 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
8db37e06 | 7979 | echo "configure:7980: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
7980 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
7981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7982 | else | |
7983 | cat > conftest.c <<EOF | |
7984 | #ifdef __GNUC__ | |
7985 | yes; | |
1e487827 | 7986 | #endif |
698dcdb6 | 7987 | EOF |
8db37e06 | 7988 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7989 | ac_cv_prog_gcc=yes |
7990 | else | |
7991 | ac_cv_prog_gcc=no | |
7992 | fi | |
7993 | fi | |
1e487827 | 7994 | |
698dcdb6 | 7995 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 7996 | |
698dcdb6 VZ |
7997 | if test $ac_cv_prog_gcc = yes; then |
7998 | GCC=yes | |
7999 | else | |
8000 | GCC= | |
8001 | fi | |
1e487827 | 8002 | |
698dcdb6 VZ |
8003 | ac_test_CFLAGS="${CFLAGS+set}" |
8004 | ac_save_CFLAGS="$CFLAGS" | |
8005 | CFLAGS= | |
8006 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
8db37e06 | 8007 | echo "configure:8008: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
8008 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8010 | else | |
8011 | echo 'void f(){}' > conftest.c | |
8012 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8013 | ac_cv_prog_cc_g=yes |
8014 | else | |
698dcdb6 | 8015 | ac_cv_prog_cc_g=no |
10f2d63a | 8016 | fi |
698dcdb6 VZ |
8017 | rm -f conftest* |
8018 | ||
10f2d63a | 8019 | fi |
698dcdb6 VZ |
8020 | |
8021 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 8022 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 8023 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
8024 | elif test $ac_cv_prog_cc_g = yes; then |
8025 | if test "$GCC" = yes; then | |
8026 | CFLAGS="-g -O2" | |
8027 | else | |
8028 | CFLAGS="-g" | |
8029 | fi | |
8030 | else | |
8031 | if test "$GCC" = yes; then | |
8032 | CFLAGS="-O2" | |
8033 | else | |
8034 | CFLAGS= | |
8035 | fi | |
8036 | fi | |
8037 | ||
8038 | ||
8039 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8040 | ||
698dcdb6 | 8041 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
8db37e06 | 8042 | echo "configure:8043: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8043 | # On Suns, sometimes $CPP names a directory. |
8044 | if test -n "$CPP" && test -d "$CPP"; then | |
8045 | CPP= | |
8046 | fi | |
8047 | if test -z "$CPP"; then | |
698dcdb6 VZ |
8048 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8050 | else | |
8051 | # This must be in double quotes, not single quotes, because CPP may get | |
8052 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8053 | CPP="${CC-cc} -E" | |
10f2d63a | 8054 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
8055 | # not just through cpp. |
8056 | cat > conftest.$ac_ext <<EOF | |
8db37e06 | 8057 | #line 8058 "configure" |
10f2d63a VZ |
8058 | #include "confdefs.h" |
8059 | #include <assert.h> | |
698dcdb6 VZ |
8060 | Syntax Error |
8061 | EOF | |
8062 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8db37e06 | 8063 | { (eval echo configure:8064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8064 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8065 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8066 | : |
8067 | else | |
698dcdb6 VZ |
8068 | echo "$ac_err" >&5 |
8069 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8070 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8071 | rm -rf conftest* |
8072 | CPP="${CC-cc} -E -traditional-cpp" | |
8073 | cat > conftest.$ac_ext <<EOF | |
8db37e06 | 8074 | #line 8075 "configure" |
10f2d63a | 8075 | #include "confdefs.h" |
698dcdb6 VZ |
8076 | #include <assert.h> |
8077 | Syntax Error | |
8078 | EOF | |
8079 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8db37e06 | 8080 | { (eval echo configure:8081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8081 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8082 | if test -z "$ac_err"; then | |
8083 | : | |
10f2d63a | 8084 | else |
698dcdb6 VZ |
8085 | echo "$ac_err" >&5 |
8086 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8087 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8088 | rm -rf conftest* |
8089 | CPP="${CC-cc} -nologo -E" | |
8090 | cat > conftest.$ac_ext <<EOF | |
8db37e06 | 8091 | #line 8092 "configure" |
10f2d63a VZ |
8092 | #include "confdefs.h" |
8093 | #include <assert.h> | |
698dcdb6 VZ |
8094 | Syntax Error |
8095 | EOF | |
8096 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8db37e06 | 8097 | { (eval echo configure:8098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8098 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8099 | if test -z "$ac_err"; then | |
10f2d63a VZ |
8100 | : |
8101 | else | |
698dcdb6 VZ |
8102 | echo "$ac_err" >&5 |
8103 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8104 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8105 | rm -rf conftest* |
8106 | CPP=/lib/cpp | |
10f2d63a | 8107 | fi |
698dcdb6 | 8108 | rm -f conftest* |
10f2d63a | 8109 | fi |
698dcdb6 | 8110 | rm -f conftest* |
703e0a69 | 8111 | fi |
698dcdb6 VZ |
8112 | rm -f conftest* |
8113 | ac_cv_prog_CPP="$CPP" | |
8114 | fi | |
8115 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8116 | else |
698dcdb6 | 8117 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8118 | fi |
698dcdb6 | 8119 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a VZ |
8120 | |
8121 | ||
698dcdb6 VZ |
8122 | if test $ac_cv_prog_gcc = yes; then |
8123 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
8db37e06 | 8124 | echo "configure:8125: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
8125 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8126 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8127 | else |
8128 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 8129 | cat > conftest.$ac_ext <<EOF |
8db37e06 | 8130 | #line 8131 "configure" |
10f2d63a VZ |
8131 | #include "confdefs.h" |
8132 | #include <sgtty.h> | |
8133 | Autoconf TIOCGETP | |
698dcdb6 | 8134 | EOF |
10f2d63a VZ |
8135 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8136 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8137 | rm -rf conftest* |
10f2d63a VZ |
8138 | ac_cv_prog_gcc_traditional=yes |
8139 | else | |
698dcdb6 | 8140 | rm -rf conftest* |
10f2d63a VZ |
8141 | ac_cv_prog_gcc_traditional=no |
8142 | fi | |
8143 | rm -f conftest* | |
8144 | ||
698dcdb6 | 8145 | |
10f2d63a | 8146 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 8147 | cat > conftest.$ac_ext <<EOF |
8db37e06 | 8148 | #line 8149 "configure" |
10f2d63a VZ |
8149 | #include "confdefs.h" |
8150 | #include <termio.h> | |
8151 | Autoconf TCGETA | |
698dcdb6 | 8152 | EOF |
10f2d63a VZ |
8153 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8154 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 8155 | rm -rf conftest* |
10f2d63a VZ |
8156 | ac_cv_prog_gcc_traditional=yes |
8157 | fi | |
8158 | rm -f conftest* | |
8159 | ||
8160 | fi | |
8161 | fi | |
698dcdb6 VZ |
8162 | |
8163 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8164 | if test $ac_cv_prog_gcc_traditional = yes; then |
8165 | CC="$CC -traditional" | |
8166 | fi | |
8167 | fi | |
8168 | ||
703e0a69 | 8169 | |
698dcdb6 VZ |
8170 | |
8171 | ac_ext=C | |
8172 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8173 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
8174 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8175 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8176 | cross_compiling=$ac_cv_prog_cxx_cross | |
8177 | ||
8178 | ||
8179 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8180 | do | |
8181 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8182 | set dummy $ac_prog; ac_word=$2 | |
8183 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8db37e06 | 8184 | echo "configure:8185: checking for $ac_word" >&5 |
698dcdb6 VZ |
8185 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8186 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8187 | else |
8188 | if test -n "$CXX"; then | |
8189 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8190 | else | |
698dcdb6 VZ |
8191 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8192 | ac_dummy="$PATH" | |
8193 | for ac_dir in $ac_dummy; do | |
8194 | test -z "$ac_dir" && ac_dir=. | |
8195 | if test -f $ac_dir/$ac_word; then | |
8196 | ac_cv_prog_CXX="$ac_prog" | |
8197 | break | |
8198 | fi | |
8199 | done | |
8200 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8201 | fi |
8202 | fi | |
698dcdb6 | 8203 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8204 | if test -n "$CXX"; then |
698dcdb6 | 8205 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8206 | else |
698dcdb6 | 8207 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8208 | fi |
8209 | ||
698dcdb6 | 8210 | test -n "$CXX" && break |
10f2d63a | 8211 | done |
698dcdb6 | 8212 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
8213 | |
8214 | ||
698dcdb6 | 8215 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
8db37e06 | 8216 | echo "configure:8217: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 8217 | |
698dcdb6 VZ |
8218 | ac_ext=C |
8219 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8220 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8221 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8222 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8223 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 8224 | |
698dcdb6 VZ |
8225 | cat > conftest.$ac_ext << EOF |
8226 | ||
8db37e06 | 8227 | #line 8228 "configure" |
10f2d63a VZ |
8228 | #include "confdefs.h" |
8229 | ||
698dcdb6 VZ |
8230 | int main(){return(0);} |
8231 | EOF | |
8db37e06 | 8232 | if { (eval echo configure:8233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8233 | ac_cv_prog_cxx_works=yes |
8234 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8235 | if (./conftest; exit) 2>/dev/null; then | |
8236 | ac_cv_prog_cxx_cross=no | |
8237 | else | |
8238 | ac_cv_prog_cxx_cross=yes | |
8239 | fi | |
8240 | else | |
8241 | echo "configure: failed program was:" >&5 | |
8242 | cat conftest.$ac_ext >&5 | |
8243 | ac_cv_prog_cxx_works=no | |
8244 | fi | |
8245 | rm -fr conftest* | |
8246 | ac_ext=C | |
8247 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8248 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8249 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8250 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8251 | cross_compiling=$ac_cv_prog_cxx_cross | |
8252 | ||
8253 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8254 | if test $ac_cv_prog_cxx_works = no; then | |
8255 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8256 | fi | |
8257 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
8db37e06 | 8258 | echo "configure:8259: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8259 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8260 | cross_compiling=$ac_cv_prog_cxx_cross | |
8261 | ||
8262 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
8db37e06 | 8263 | echo "configure:8264: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
8264 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8266 | else | |
8267 | cat > conftest.C <<EOF | |
8268 | #ifdef __GNUC__ | |
8269 | yes; | |
10f2d63a | 8270 | #endif |
698dcdb6 | 8271 | EOF |
8db37e06 | 8272 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8273 | ac_cv_prog_gxx=yes |
8274 | else | |
8275 | ac_cv_prog_gxx=no | |
8276 | fi | |
8277 | fi | |
10f2d63a | 8278 | |
698dcdb6 | 8279 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8280 | |
698dcdb6 VZ |
8281 | if test $ac_cv_prog_gxx = yes; then |
8282 | GXX=yes | |
8283 | else | |
8284 | GXX= | |
8285 | fi | |
10f2d63a | 8286 | |
698dcdb6 VZ |
8287 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8288 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8289 | CXXFLAGS= | |
8290 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
8db37e06 | 8291 | echo "configure:8292: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8292 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8294 | else | |
8295 | echo 'void f(){}' > conftest.cc | |
8296 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8297 | ac_cv_prog_cxx_g=yes |
8298 | else | |
698dcdb6 | 8299 | ac_cv_prog_cxx_g=no |
10f2d63a | 8300 | fi |
698dcdb6 VZ |
8301 | rm -f conftest* |
8302 | ||
10f2d63a | 8303 | fi |
698dcdb6 VZ |
8304 | |
8305 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8306 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8307 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8308 | elif test $ac_cv_prog_cxx_g = yes; then |
8309 | if test "$GXX" = yes; then | |
8310 | CXXFLAGS="-g -O2" | |
8311 | else | |
8312 | CXXFLAGS="-g" | |
8313 | fi | |
8314 | else | |
8315 | if test "$GXX" = yes; then | |
8316 | CXXFLAGS="-O2" | |
8317 | else | |
8318 | CXXFLAGS= | |
8319 | fi | |
8320 | fi | |
8321 | ||
8322 | ||
698dcdb6 | 8323 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
8db37e06 | 8324 | echo "configure:8325: checking how to run the C++ preprocessor" >&5 |
1e487827 | 8325 | if test -z "$CXXCPP"; then |
698dcdb6 VZ |
8326 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
8327 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 8328 | else |
698dcdb6 VZ |
8329 | ac_ext=C |
8330 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8331 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8332 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8333 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8334 | cross_compiling=$ac_cv_prog_cxx_cross | |
8335 | CXXCPP="${CXX-g++} -E" | |
8336 | cat > conftest.$ac_ext <<EOF | |
8db37e06 | 8337 | #line 8338 "configure" |
1e487827 | 8338 | #include "confdefs.h" |
698dcdb6 VZ |
8339 | #include <stdlib.h> |
8340 | EOF | |
8341 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8db37e06 | 8342 | { (eval echo configure:8343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8343 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8344 | if test -z "$ac_err"; then | |
1e487827 VS |
8345 | : |
8346 | else | |
698dcdb6 VZ |
8347 | echo "$ac_err" >&5 |
8348 | echo "configure: failed program was:" >&5 | |
1e487827 | 8349 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8350 | rm -rf conftest* |
8351 | CXXCPP=/lib/cpp | |
1e487827 | 8352 | fi |
698dcdb6 VZ |
8353 | rm -f conftest* |
8354 | ac_cv_prog_CXXCPP="$CXXCPP" | |
8355 | ac_ext=C | |
8356 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8357 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8358 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8359 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8360 | cross_compiling=$ac_cv_prog_cxx_cross | |
1e487827 | 8361 | fi |
1e487827 | 8362 | fi |
698dcdb6 VZ |
8363 | CXXCPP="$ac_cv_prog_CXXCPP" |
8364 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e487827 | 8365 | |
10f2d63a VZ |
8366 | |
8367 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
8368 | ||
8369 | ac_ext=c | |
698dcdb6 | 8370 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8371 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8372 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8373 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8374 | cross_compiling=$ac_cv_prog_cc_cross | |
8375 | ||
8376 | ||
8377 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8378 | set dummy ranlib; ac_word=$2 | |
8379 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8db37e06 | 8380 | echo "configure:8381: checking for $ac_word" >&5 |
698dcdb6 VZ |
8381 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8382 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8383 | else |
8384 | if test -n "$RANLIB"; then | |
8385 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8386 | else | |
698dcdb6 VZ |
8387 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8388 | ac_dummy="$PATH" | |
8389 | for ac_dir in $ac_dummy; do | |
8390 | test -z "$ac_dir" && ac_dir=. | |
8391 | if test -f $ac_dir/$ac_word; then | |
8392 | ac_cv_prog_RANLIB="ranlib" | |
8393 | break | |
8394 | fi | |
8395 | done | |
8396 | IFS="$ac_save_ifs" | |
8397 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8398 | fi |
8399 | fi | |
698dcdb6 | 8400 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8401 | if test -n "$RANLIB"; then |
698dcdb6 | 8402 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8403 | else |
698dcdb6 | 8404 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8405 | fi |
8406 | ||
8407 | ||
8408 | # Extract the first word of "ar", so it can be a program name with args. | |
8409 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8410 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8db37e06 | 8411 | echo "configure:8412: checking for $ac_word" >&5 |
698dcdb6 VZ |
8412 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8414 | else |
8415 | if test -n "$AR"; then | |
8416 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8417 | else | |
698dcdb6 VZ |
8418 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8419 | ac_dummy="$PATH" | |
8420 | for ac_dir in $ac_dummy; do | |
8421 | test -z "$ac_dir" && ac_dir=. | |
8422 | if test -f $ac_dir/$ac_word; then | |
8423 | ac_cv_prog_AR="ar" | |
8424 | break | |
8425 | fi | |
8426 | done | |
8427 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8428 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8429 | fi | |
8430 | fi | |
698dcdb6 | 8431 | AR="$ac_cv_prog_AR" |
10f2d63a | 8432 | if test -n "$AR"; then |
698dcdb6 | 8433 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8434 | else |
698dcdb6 | 8435 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8436 | fi |
8437 | ||
698dcdb6 | 8438 | |
10f2d63a VZ |
8439 | # Find a good install program. We prefer a C program (faster), |
8440 | # so one script is as good as another. But avoid the broken or | |
8441 | # incompatible versions: | |
8442 | # SysV /etc/install, /usr/sbin/install | |
8443 | # SunOS /usr/etc/install | |
8444 | # IRIX /sbin/install | |
8445 | # AIX /bin/install | |
8446 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8447 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8448 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8449 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8450 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
8db37e06 | 8451 | echo "configure:8452: checking for a BSD compatible install" >&5 |
10f2d63a | 8452 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8453 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8454 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8455 | else |
698dcdb6 | 8456 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8457 | for ac_dir in $PATH; do |
8458 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8459 | case "$ac_dir/" in |
8460 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8461 | *) |
8462 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8463 | # Don't use installbsd from OSF since it installs stuff as root | |
8464 | # by default. | |
8465 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8466 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8467 | if test $ac_prog = install && |
698dcdb6 | 8468 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8469 | # AIX install. It has an incompatible calling convention. |
8470 | : | |
8471 | else | |
8472 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8473 | break 2 | |
8474 | fi | |
8475 | fi | |
8476 | done | |
8477 | ;; | |
8478 | esac | |
8479 | done | |
698dcdb6 | 8480 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8481 | |
8482 | fi | |
8483 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8484 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8485 | else |
8486 | # As a last resort, use the slow shell script. We don't cache a | |
8487 | # path for INSTALL within a source directory, because that will | |
8488 | # break other packages using the cache if that directory is | |
8489 | # removed, or if the path is relative. | |
698dcdb6 | 8490 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8491 | fi |
8492 | fi | |
698dcdb6 | 8493 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8494 | |
8495 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8496 | # It thinks the first close brace ends the variable substitution. | |
8497 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8498 | ||
698dcdb6 | 8499 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8500 | |
8501 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8502 | ||
698dcdb6 | 8503 | |
10f2d63a VZ |
8504 | # Extract the first word of "strip", so it can be a program name with args. |
8505 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8506 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8db37e06 | 8507 | echo "configure:8508: checking for $ac_word" >&5 |
698dcdb6 VZ |
8508 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8509 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8510 | else |
8511 | if test -n "$STRIP"; then | |
8512 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8513 | else | |
698dcdb6 VZ |
8514 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8515 | ac_dummy="$PATH" | |
8516 | for ac_dir in $ac_dummy; do | |
8517 | test -z "$ac_dir" && ac_dir=. | |
8518 | if test -f $ac_dir/$ac_word; then | |
8519 | ac_cv_prog_STRIP="strip" | |
8520 | break | |
8521 | fi | |
8522 | done | |
8523 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8524 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8525 | fi | |
8526 | fi | |
698dcdb6 | 8527 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8528 | if test -n "$STRIP"; then |
698dcdb6 | 8529 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8530 | else |
698dcdb6 | 8531 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8532 | fi |
8533 | ||
698dcdb6 VZ |
8534 | |
8535 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
8db37e06 | 8536 | echo "configure:8537: checking make for VPATH support" >&5 |
10f2d63a VZ |
8537 | cat - << EOF > confMake |
8538 | check : file | |
8539 | cp \$? \$@ | |
8540 | cp \$? final_file | |
8541 | EOF | |
8542 | ||
8543 | if test ! -d sub ; then | |
8544 | mkdir sub | |
8545 | fi | |
8546 | echo dummy > sub/file | |
f6bcfd97 | 8547 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8548 | RESULT=$? |
8549 | rm -f sub/file check final_file confMake | |
8550 | rmdir sub | |
8551 | if test "$RESULT" = 0; then | |
698dcdb6 | 8552 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8553 | else |
698dcdb6 VZ |
8554 | echo "$ac_t""no" 1>&6 |
8555 | { echo "configure: error: | |
1e487827 VS |
8556 | You need a make-utility that is able to use the variable |
8557 | VPATH correctly. | |
8558 | If your version of make does not support VPATH correctly, | |
8559 | please install GNU-make (possibly as gmake), and start | |
8560 | configure with the following command: | |
8561 | export MAKE=gmake; ./configure for sh-type shells | |
8562 | setenv MAKE gmake; ./configure for csh-type shells | |
8563 | Also please do remember to use gmake in this case every time | |
8564 | you are trying to compile. | |
698dcdb6 | 8565 | " 1>&2; exit 1; } |
10f2d63a VZ |
8566 | fi |
8567 | ||
8568 | for ac_prog in 'bison -y' byacc | |
8569 | do | |
698dcdb6 | 8570 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8571 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8572 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8db37e06 | 8573 | echo "configure:8574: checking for $ac_word" >&5 |
698dcdb6 VZ |
8574 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8575 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8576 | else |
8577 | if test -n "$YACC"; then | |
8578 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8579 | else | |
698dcdb6 VZ |
8580 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8581 | ac_dummy="$PATH" | |
8582 | for ac_dir in $ac_dummy; do | |
8583 | test -z "$ac_dir" && ac_dir=. | |
8584 | if test -f $ac_dir/$ac_word; then | |
8585 | ac_cv_prog_YACC="$ac_prog" | |
8586 | break | |
8587 | fi | |
8588 | done | |
8589 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8590 | fi |
8591 | fi | |
698dcdb6 | 8592 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8593 | if test -n "$YACC"; then |
698dcdb6 | 8594 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8595 | else |
698dcdb6 | 8596 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8597 | fi |
8598 | ||
698dcdb6 | 8599 | test -n "$YACC" && break |
10f2d63a VZ |
8600 | done |
8601 | test -n "$YACC" || YACC="yacc" | |
8602 | ||
698dcdb6 VZ |
8603 | |
8604 | # Extract the first word of "flex", so it can be a program name with args. | |
8605 | set dummy flex; ac_word=$2 | |
8606 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8db37e06 | 8607 | echo "configure:8608: checking for $ac_word" >&5 |
698dcdb6 VZ |
8608 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8609 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8610 | else |
8611 | if test -n "$LEX"; then | |
8612 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8613 | else | |
698dcdb6 VZ |
8614 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8615 | ac_dummy="$PATH" | |
8616 | for ac_dir in $ac_dummy; do | |
8617 | test -z "$ac_dir" && ac_dir=. | |
8618 | if test -f $ac_dir/$ac_word; then | |
8619 | ac_cv_prog_LEX="flex" | |
8620 | break | |
8621 | fi | |
8622 | done | |
8623 | IFS="$ac_save_ifs" | |
8624 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8625 | fi |
8626 | fi | |
698dcdb6 | 8627 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8628 | if test -n "$LEX"; then |
698dcdb6 | 8629 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8630 | else |
698dcdb6 | 8631 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8632 | fi |
8633 | ||
8634 | if test -z "$LEXLIB" | |
8635 | then | |
698dcdb6 VZ |
8636 | case "$LEX" in |
8637 | flex*) ac_lib=fl ;; | |
8638 | *) ac_lib=l ;; | |
8639 | esac | |
8640 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
8db37e06 | 8641 | echo "configure:8642: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8642 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8643 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8644 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8645 | else | |
8646 | ac_save_LIBS="$LIBS" | |
8647 | LIBS="-l$ac_lib $LIBS" | |
8648 | cat > conftest.$ac_ext <<EOF | |
8db37e06 | 8649 | #line 8650 "configure" |
10f2d63a VZ |
8650 | #include "confdefs.h" |
8651 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8652 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8653 | builtin and then its argument prototype would still apply. */ |
8654 | char yywrap(); | |
10f2d63a | 8655 | |
698dcdb6 VZ |
8656 | int main() { |
8657 | yywrap() | |
8658 | ; return 0; } | |
8659 | EOF | |
8db37e06 | 8660 | if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8661 | rm -rf conftest* |
8662 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8663 | else |
698dcdb6 VZ |
8664 | echo "configure: failed program was:" >&5 |
8665 | cat conftest.$ac_ext >&5 | |
8666 | rm -rf conftest* | |
8667 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8668 | fi |
698dcdb6 VZ |
8669 | rm -f conftest* |
8670 | LIBS="$ac_save_LIBS" | |
8671 | ||
10f2d63a | 8672 | fi |
698dcdb6 VZ |
8673 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8674 | echo "$ac_t""yes" 1>&6 | |
8675 | LEXLIB="-l$ac_lib" | |
8676 | else | |
8677 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8678 | fi |
8679 | ||
8680 | fi | |
8681 | ||
8682 | ||
698dcdb6 | 8683 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
8db37e06 | 8684 | echo "configure:8685: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8685 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8686 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8687 | else |
698dcdb6 VZ |
8688 | rm -f conftestdata |
8689 | if ln -s X conftestdata 2>/dev/null | |
8690 | then | |
8691 | rm -f conftestdata | |
8692 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8693 | else |
698dcdb6 | 8694 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8695 | fi |
8696 | fi | |
698dcdb6 VZ |
8697 | LN_S="$ac_cv_prog_LN_S" |
8698 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8699 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8700 | else |
698dcdb6 | 8701 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8702 | fi |
8703 | ||
8704 | ||
8705 | ||
8706 | SEARCH_INCLUDE="\ | |
8707 | /usr/local/include \ | |
8708 | \ | |
8709 | /usr/Motif-1.2/include \ | |
8710 | /usr/Motif-2.1/include \ | |
8711 | \ | |
8712 | /usr/include/Motif1.2 \ | |
8713 | /opt/xpm/include/X11 \ | |
8714 | /opt/GBxpm/include/ \ | |
8715 | /opt/GBxpm/X11/include/ \ | |
8716 | \ | |
8717 | /usr/Motif1.2/include \ | |
8718 | /usr/dt/include \ | |
afc31813 VZ |
8719 | /usr/openwin/include \ |
8720 | \ | |
10f2d63a VZ |
8721 | /usr/include/Xm \ |
8722 | \ | |
8723 | /usr/X11R6/include \ | |
afc31813 | 8724 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8725 | /usr/X11R5/include \ |
8726 | /usr/X11R4/include \ | |
8727 | \ | |
10f2d63a VZ |
8728 | /usr/include/X11R6 \ |
8729 | /usr/include/X11R5 \ | |
8730 | /usr/include/X11R4 \ | |
8731 | \ | |
8732 | /usr/local/X11R6/include \ | |
8733 | /usr/local/X11R5/include \ | |
8734 | /usr/local/X11R4/include \ | |
8735 | \ | |
8736 | /usr/local/include/X11R6 \ | |
8737 | /usr/local/include/X11R5 \ | |
8738 | /usr/local/include/X11R4 \ | |
8739 | \ | |
8740 | /usr/X11/include \ | |
8741 | /usr/include/X11 \ | |
8742 | /usr/local/X11/include \ | |
8743 | /usr/local/include/X11 \ | |
8744 | \ | |
8745 | /usr/X386/include \ | |
8746 | /usr/x386/include \ | |
8747 | /usr/XFree86/include/X11 \ | |
8748 | \ | |
cf27ef00 | 8749 | X:/XFree86/include \ |
ec14dd32 VZ |
8750 | X:/XFree86/include/X11 \ |
8751 | \ | |
10f2d63a VZ |
8752 | /usr/include/gtk \ |
8753 | /usr/local/include/gtk \ | |
8754 | /usr/include/glib \ | |
8755 | /usr/local/include/glib \ | |
8756 | \ | |
8757 | /usr/include/qt \ | |
8758 | /usr/local/include/qt \ | |
8759 | \ | |
8760 | /usr/include/windows \ | |
8761 | /usr/include/wine \ | |
8762 | /usr/local/include/wine \ | |
8763 | \ | |
8764 | /usr/unsupported/include \ | |
8765 | /usr/athena/include \ | |
8766 | /usr/local/x11r5/include \ | |
8767 | /usr/lpp/Xamples/include \ | |
8768 | \ | |
10f2d63a | 8769 | /usr/openwin/share/include \ |
928b5c08 VZ |
8770 | \ |
8771 | /usr/include" | |
10f2d63a VZ |
8772 | |
8773 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8774 | ||
698dcdb6 VZ |
8775 | |
8776 | cat > confcache <<\EOF | |
10f2d63a VZ |
8777 | # This file is a shell script that caches the results of configure |
8778 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8779 | # scripts and configure runs. It is not useful on other systems. |
8780 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8781 | # |
698dcdb6 VZ |
8782 | # By default, configure uses ./config.cache as the cache file, |
8783 | # creating it if it does not exist already. You can give configure | |
8784 | # the --cache-file=FILE option to use a different cache file; that is | |
8785 | # what configure does when it calls configure scripts in | |
8786 | # subdirectories, so they share the cache. | |
8787 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8788 | # config.status only pays attention to the cache file if you give it the | |
8789 | # --recheck option to rerun configure. | |
10f2d63a | 8790 | # |
698dcdb6 | 8791 | EOF |
10f2d63a VZ |
8792 | # The following way of writing the cache mishandles newlines in values, |
8793 | # but we know of no workaround that is simple, portable, and efficient. | |
8794 | # So, don't put newlines in cache variables' values. | |
8795 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8796 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8797 | (set) 2>&1 | |
8798 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8799 | *ac_space=\ *) | |
8800 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8801 | # turns \\\\ into \\, and sed turns \\ into \). | |
8802 | sed -n \ | |
8803 | -e "s/'/'\\\\''/g" \ | |
8804 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8805 | ;; | |
8806 | *) | |
8807 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8808 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8809 | ;; | |
8810 | esac >> confcache | |
8811 | if cmp -s $cache_file confcache; then | |
8812 | : | |
8813 | else | |
10f2d63a | 8814 | if test -w $cache_file; then |
698dcdb6 VZ |
8815 | echo "updating cache $cache_file" |
8816 | cat confcache > $cache_file | |
10f2d63a VZ |
8817 | else |
8818 | echo "not updating unwritable cache $cache_file" | |
8819 | fi | |
8820 | fi | |
8821 | rm -f confcache | |
8822 | ||
698dcdb6 VZ |
8823 | |
8824 | ||
18dbb1f6 VZ |
8825 | REGEX_INCLUDE= |
8826 | if test "$wxUSE_REGEX" != "no"; then | |
8827 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
8828 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
8829 | echo "configure:8830: checking for regex.h" >&5 | |
8830 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8831 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8832 | else | |
8833 | cat > conftest.$ac_ext <<EOF | |
8834 | #line 8835 "configure" | |
8835 | #include "confdefs.h" | |
8836 | #include <regex.h> | |
8837 | EOF | |
8838 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8839 | { (eval echo configure:8840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8840 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8841 | if test -z "$ac_err"; then | |
8842 | rm -rf conftest* | |
8843 | eval "ac_cv_header_$ac_safe=yes" | |
8844 | else | |
8845 | echo "$ac_err" >&5 | |
8846 | echo "configure: failed program was:" >&5 | |
8847 | cat conftest.$ac_ext >&5 | |
8848 | rm -rf conftest* | |
8849 | eval "ac_cv_header_$ac_safe=no" | |
8850 | fi | |
8851 | rm -f conftest* | |
8852 | fi | |
8853 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8854 | echo "$ac_t""yes" 1>&6 | |
8855 | for ac_func in regcomp | |
8856 | do | |
8857 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
8858 | echo "configure:8859: checking for $ac_func" >&5 | |
8859 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
8860 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8861 | else | |
8862 | cat > conftest.$ac_ext <<EOF | |
8863 | #line 8864 "configure" | |
8864 | #include "confdefs.h" | |
8865 | /* System header to define __stub macros and hopefully few prototypes, | |
8866 | which can conflict with char $ac_func(); below. */ | |
8867 | #include <assert.h> | |
8868 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8869 | /* We use char because int might match the return type of a gcc2 | |
8870 | builtin and then its argument prototype would still apply. */ | |
8871 | char $ac_func(); | |
8872 | ||
8873 | int main() { | |
8874 | ||
8875 | /* The GNU C library defines this for functions which it implements | |
8876 | to always fail with ENOSYS. Some functions are actually named | |
8877 | something starting with __ and the normal name is an alias. */ | |
8878 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8879 | choke me | |
8880 | #else | |
8881 | $ac_func(); | |
8882 | #endif | |
8883 | ||
8884 | ; return 0; } | |
8885 | EOF | |
8886 | if { (eval echo configure:8887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8887 | rm -rf conftest* | |
8888 | eval "ac_cv_func_$ac_func=yes" | |
8889 | else | |
8890 | echo "configure: failed program was:" >&5 | |
8891 | cat conftest.$ac_ext >&5 | |
8892 | rm -rf conftest* | |
8893 | eval "ac_cv_func_$ac_func=no" | |
8894 | fi | |
8895 | rm -f conftest* | |
8896 | fi | |
8897 | ||
8898 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8899 | echo "$ac_t""yes" 1>&6 | |
8900 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8901 | cat >> confdefs.h <<EOF | |
8902 | #define $ac_tr_func 1 | |
8903 | EOF | |
8904 | ||
8905 | else | |
8906 | echo "$ac_t""no" 1>&6 | |
8907 | fi | |
8908 | done | |
8909 | ||
8910 | else | |
8911 | echo "$ac_t""no" 1>&6 | |
8912 | fi | |
8913 | ||
8914 | ||
8915 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
8916 | if test "$wxUSE_REGEX" = "sys"; then | |
8917 | { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; } | |
8918 | fi | |
8919 | ||
8920 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
8921 | fi | |
8922 | ||
8923 | cat >> confdefs.h <<\EOF | |
8924 | #define wxUSE_REGEX 1 | |
8925 | EOF | |
8926 | ||
8927 | fi | |
8928 | ||
8929 | ||
dad6c0ea VZ |
8930 | AFMINSTALL= |
8931 | ||
10f2d63a | 8932 | if test "$wxUSE_GUI" = "yes"; then |
1e6feb95 | 8933 | USE_GUI=1 |
10f2d63a | 8934 | |
1e6feb95 VZ |
8935 | TOOLKIT= |
8936 | TOOLKIT_INCLUDE= | |
10f2d63a | 8937 | |
1e6feb95 VZ |
8938 | GUI_TK_LIBRARY= |
8939 | GUI_TK_LINK= | |
10f2d63a | 8940 | |
1e6feb95 VZ |
8941 | WXGTK12= |
8942 | WXGTK127= | |
8943 | WXGTK20= | |
10f2d63a | 8944 | |
1e6feb95 | 8945 | WXWINE= |
10f2d63a | 8946 | |
1e6feb95 | 8947 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
29fd3c0c VS |
8948 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
8949 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
18dbb1f6 | 8950 | echo "configure:8951: checking for windows.h" >&5 |
d4158b5d VS |
8951 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8953 | else | |
8954 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 8955 | #line 8956 "configure" |
d4158b5d | 8956 | #include "confdefs.h" |
29fd3c0c | 8957 | #include <windows.h> |
d4158b5d VS |
8958 | EOF |
8959 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 8960 | { (eval echo configure:8961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
d4158b5d VS |
8961 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8962 | if test -z "$ac_err"; then | |
8963 | rm -rf conftest* | |
8964 | eval "ac_cv_header_$ac_safe=yes" | |
8965 | else | |
8966 | echo "$ac_err" >&5 | |
8967 | echo "configure: failed program was:" >&5 | |
8968 | cat conftest.$ac_ext >&5 | |
8969 | rm -rf conftest* | |
8970 | eval "ac_cv_header_$ac_safe=no" | |
8971 | fi | |
8972 | rm -f conftest* | |
8973 | fi | |
8974 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8975 | echo "$ac_t""yes" 1>&6 | |
29fd3c0c | 8976 | : |
d4158b5d VS |
8977 | else |
8978 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 8979 | |
3f0f0161 VZ |
8980 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
8981 | ||
29fd3c0c | 8982 | fi |
10f2d63a | 8983 | |
3f0f0161 | 8984 | |
1e6feb95 | 8985 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" |
3f0f0161 | 8986 | |
031d8228 | 8987 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
f6bcfd97 | 8988 | |
1e6feb95 VZ |
8989 | if test "$wxUSE_ODBC" = "yes" ; then |
8990 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
8991 | fi | |
10f2d63a | 8992 | |
1e6feb95 VZ |
8993 | if test "$wxUSE_MINGW" = 1; then |
8994 | LDFLAGS="$LDFLAGS -mwindows" | |
8995 | fi | |
32832908 | 8996 | |
1e6feb95 VZ |
8997 | TOOLKIT=MSW |
8998 | GUIDIST=MSW_DIST | |
32832908 | 8999 | |
1e6feb95 VZ |
9000 | RCINCSWITCH="--include-dir" |
9001 | RCDEFSWITCH="--define" | |
9002 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
9003 | RCINPUTSWITCH="-i" | |
9004 | RCOUTPUTSWITCH="-o" | |
9005 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
32832908 | 9006 | |
1e6feb95 VZ |
9007 | RESPROGRAM="\$(RES_PROGRAM)" |
9008 | fi | |
10f2d63a | 9009 | |
1e6feb95 | 9010 | if test "$wxUSE_GTK" = 1; then |
8168de4c | 9011 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
18dbb1f6 | 9012 | echo "configure:9013: checking for GTK+ version" >&5 |
8168de4c VZ |
9013 | |
9014 | gtk_version_cached=1 | |
9015 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
9016 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9017 | else | |
9018 | ||
9019 | gtk_version_cached=0 | |
9020 | echo "$ac_t""""" 1>&6 | |
9021 | ||
9022 | wx_cv_lib_gtk= | |
9023 | if test "x$wxUSE_GTK2" = "xyes"; then | |
9024 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
6f72b082 OK |
9025 | if test "${with_gtk_prefix+set}" = set; then |
9026 | withval="$with_gtk_prefix" | |
9027 | gtk_config_prefix="$withval" | |
9028 | else | |
9029 | gtk_config_prefix="" | |
698dcdb6 | 9030 | fi |
6f72b082 OK |
9031 | |
9032 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
9033 | if test "${with_gtk_exec_prefix+set}" = set; then | |
9034 | withval="$with_gtk_exec_prefix" | |
9035 | gtk_config_exec_prefix="$withval" | |
9036 | else | |
9037 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
9038 | fi |
9039 | ||
6f72b082 OK |
9040 | # Check whether --enable-gtktest or --disable-gtktest was given. |
9041 | if test "${enable_gtktest+set}" = set; then | |
9042 | enableval="$enable_gtktest" | |
698dcdb6 | 9043 | : |
6f72b082 OK |
9044 | else |
9045 | enable_gtktest=yes | |
698dcdb6 VZ |
9046 | fi |
9047 | ||
6f72b082 | 9048 | |
8168de4c | 9049 | for module in . |
6f72b082 OK |
9050 | do |
9051 | case "$module" in | |
8168de4c | 9052 | gthread) |
6f72b082 OK |
9053 | gtk_config_args="$gtk_config_args gthread" |
9054 | ;; | |
9055 | esac | |
9056 | done | |
9057 | ||
9058 | if test x$gtk_config_exec_prefix != x ; then | |
9059 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9060 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9061 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
9062 | fi | |
9063 | fi | |
9064 | if test x$gtk_config_prefix != x ; then | |
9065 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9066 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9067 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
9068 | fi | |
9069 | fi | |
9070 | ||
9071 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
9072 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 9073 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
18dbb1f6 | 9074 | echo "configure:9075: checking for $ac_word" >&5 |
698dcdb6 VZ |
9075 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
9076 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9077 | else |
698dcdb6 VZ |
9078 | case "$GTK_CONFIG_2_0" in |
9079 | /*) | |
6f72b082 OK |
9080 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
9081 | ;; | |
698dcdb6 VZ |
9082 | ?:/*) |
9083 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
9084 | ;; | |
6f72b082 | 9085 | *) |
698dcdb6 VZ |
9086 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9087 | ac_dummy="$PATH" | |
9088 | for ac_dir in $ac_dummy; do | |
9089 | test -z "$ac_dir" && ac_dir=. | |
9090 | if test -f $ac_dir/$ac_word; then | |
9091 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
9092 | break | |
9093 | fi | |
9094 | done | |
9095 | IFS="$ac_save_ifs" | |
6f72b082 OK |
9096 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
9097 | ;; | |
9098 | esac | |
9099 | fi | |
698dcdb6 | 9100 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 9101 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 9102 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 9103 | else |
698dcdb6 | 9104 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9105 | fi |
9106 | ||
9107 | min_gtk_version=1.3.1 | |
698dcdb6 | 9108 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
18dbb1f6 | 9109 | echo "configure:9110: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
9110 | no_gtk="" |
9111 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
9112 | no_gtk=yes | |
9113 | else | |
9114 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
9115 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
9116 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9117 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
9118 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9119 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
9120 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9121 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
9122 | if test "x$enable_gtktest" = "xyes" ; then | |
9123 | ac_save_CFLAGS="$CFLAGS" | |
9124 | ac_save_LIBS="$LIBS" | |
9125 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9126 | LIBS="$GTK_LIBS $LIBS" | |
9127 | rm -f conf.gtktest | |
9128 | if test "$cross_compiling" = yes; then | |
9129 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9130 | else | |
698dcdb6 | 9131 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 9132 | #line 9133 "configure" |
6f72b082 OK |
9133 | #include "confdefs.h" |
9134 | ||
9135 | #include <gtk/gtk.h> | |
9136 | #include <stdio.h> | |
9137 | #include <stdlib.h> | |
9138 | ||
8168de4c | 9139 | int |
6f72b082 OK |
9140 | main () |
9141 | { | |
9142 | int major, minor, micro; | |
9143 | char *tmp_version; | |
9144 | ||
9145 | system ("touch conf.gtktest"); | |
9146 | ||
9147 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
9148 | tmp_version = g_strdup("$min_gtk_version"); | |
9149 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
9150 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9151 | exit(1); | |
9152 | } | |
9153 | ||
9154 | if ((gtk_major_version != $gtk_config_major_version) || | |
9155 | (gtk_minor_version != $gtk_config_minor_version) || | |
9156 | (gtk_micro_version != $gtk_config_micro_version)) | |
9157 | { | |
8168de4c | 9158 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
9159 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
9160 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9161 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
9162 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
9163 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
9164 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
9165 | printf("*** required on your system.\n"); | |
9166 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
9167 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
9168 | printf("*** before re-running configure\n"); | |
8168de4c | 9169 | } |
6f72b082 OK |
9170 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
9171 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 9172 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
9173 | (gtk_micro_version != GTK_MICRO_VERSION)) |
9174 | { | |
9175 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 9176 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 9177 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 9178 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
9179 | } |
9180 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
9181 | else | |
9182 | { | |
9183 | if ((gtk_major_version > major) || | |
9184 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9185 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
9186 | { | |
9187 | return 0; | |
9188 | } | |
9189 | else | |
9190 | { | |
9191 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
9192 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9193 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 9194 | major, minor, micro); |
6f72b082 OK |
9195 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
9196 | printf("***\n"); | |
9197 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
9198 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
9199 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
9200 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
9201 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
9202 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
9203 | printf("*** so that the correct libraries are found at run-time))\n"); | |
9204 | } | |
9205 | } | |
9206 | return 1; | |
9207 | } | |
9208 | ||
698dcdb6 | 9209 | EOF |
18dbb1f6 | 9210 | if { (eval echo configure:9211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9211 | then |
6f72b082 OK |
9212 | : |
9213 | else | |
698dcdb6 VZ |
9214 | echo "configure: failed program was:" >&5 |
9215 | cat conftest.$ac_ext >&5 | |
9216 | rm -fr conftest* | |
9217 | no_gtk=yes | |
6f72b082 | 9218 | fi |
698dcdb6 | 9219 | rm -fr conftest* |
6f72b082 | 9220 | fi |
698dcdb6 | 9221 | |
6f72b082 OK |
9222 | CFLAGS="$ac_save_CFLAGS" |
9223 | LIBS="$ac_save_LIBS" | |
9224 | fi | |
9225 | fi | |
9226 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9227 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 9228 | wx_cv_lib_gtk=2.0 |
6f72b082 | 9229 | else |
698dcdb6 | 9230 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
9231 | if test "$GTK_CONFIG_2_0" = "no" ; then |
9232 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
9233 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
9234 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
9235 | echo "*** full path to gtk-config-2.0." | |
9236 | else | |
9237 | if test -f conf.gtktest ; then | |
9238 | : | |
9239 | else | |
9240 | echo "*** Could not run GTK test program, checking why..." | |
9241 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9242 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 9243 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 9244 | #line 9245 "configure" |
6f72b082 OK |
9245 | #include "confdefs.h" |
9246 | ||
9247 | #include <gtk/gtk.h> | |
9248 | #include <stdio.h> | |
9249 | ||
698dcdb6 VZ |
9250 | int main() { |
9251 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
9252 | ; return 0; } | |
9253 | EOF | |
18dbb1f6 | 9254 | if { (eval echo configure:9255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9255 | rm -rf conftest* |
6f72b082 OK |
9256 | echo "*** The test program compiled, but did not run. This usually means" |
9257 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
9258 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
9259 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
9260 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
9261 | echo "*** is required on your system" | |
8168de4c | 9262 | echo "***" |
6f72b082 OK |
9263 | echo "*** If you have an old version installed, it is best to remove it, although" |
9264 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
9265 | echo "***" | |
9266 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
9267 | echo "*** came with the system with the command" | |
9268 | echo "***" | |
698dcdb6 | 9269 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 9270 | else |
698dcdb6 VZ |
9271 | echo "configure: failed program was:" >&5 |
9272 | cat conftest.$ac_ext >&5 | |
9273 | rm -rf conftest* | |
9274 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
9275 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
9276 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 9277 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 9278 | fi |
698dcdb6 | 9279 | rm -f conftest* |
6f72b082 OK |
9280 | CFLAGS="$ac_save_CFLAGS" |
9281 | LIBS="$ac_save_LIBS" | |
9282 | fi | |
9283 | fi | |
9284 | GTK_CFLAGS="" | |
9285 | GTK_LIBS="" | |
8168de4c VZ |
9286 | gthread |
9287 | fi | |
9288 | ||
9289 | ||
9290 | rm -f conf.gtktest | |
9291 | ||
9292 | fi | |
9293 | ||
9294 | if test -z "$wx_cv_lib_gtk"; then | |
9295 | ||
10f2d63a VZ |
9296 | if test x$gtk_config_exec_prefix != x ; then |
9297 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9298 | if test x${GTK_CONFIG+set} != xset ; then | |
9299 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9300 | fi | |
9301 | fi | |
9302 | if test x$gtk_config_prefix != x ; then | |
9303 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9304 | if test x${GTK_CONFIG+set} != xset ; then | |
9305 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9306 | fi | |
9307 | fi | |
9308 | ||
9309 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9310 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9311 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
18dbb1f6 | 9312 | echo "configure:9313: checking for $ac_word" >&5 |
698dcdb6 VZ |
9313 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9314 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 9315 | else |
698dcdb6 VZ |
9316 | case "$GTK_CONFIG" in |
9317 | /*) | |
f6bcfd97 BP |
9318 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9319 | ;; | |
698dcdb6 VZ |
9320 | ?:/*) |
9321 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9322 | ;; | |
f6bcfd97 | 9323 | *) |
698dcdb6 VZ |
9324 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9325 | ac_dummy="$PATH" | |
9326 | for ac_dir in $ac_dummy; do | |
9327 | test -z "$ac_dir" && ac_dir=. | |
9328 | if test -f $ac_dir/$ac_word; then | |
9329 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9330 | break | |
9331 | fi | |
9332 | done | |
9333 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
9334 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9335 | ;; | |
9336 | esac | |
9337 | fi | |
698dcdb6 | 9338 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 9339 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9340 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 9341 | else |
698dcdb6 | 9342 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9343 | fi |
9344 | ||
9345 | min_gtk_version=1.2.7 | |
698dcdb6 | 9346 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
18dbb1f6 | 9347 | echo "configure:9348: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
9348 | no_gtk="" |
9349 | if test "$GTK_CONFIG" != "no" ; then | |
9350 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
9351 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
9352 | ac_save_CFLAGS="$CFLAGS" | |
9353 | ac_save_LIBS="$LIBS" | |
9354 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9355 | LIBS="$LIBS $GTK_LIBS" | |
9356 | if test "$cross_compiling" = yes; then | |
9357 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9358 | else | |
698dcdb6 | 9359 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 9360 | #line 9361 "configure" |
f6bcfd97 BP |
9361 | #include "confdefs.h" |
9362 | ||
9363 | #include <gtk/gtk.h> | |
9364 | #include <gtk/gtkfeatures.h> | |
9365 | #include <stdio.h> | |
9366 | #include <stdlib.h> | |
9367 | ||
9368 | int | |
9369 | main () | |
9370 | { | |
9371 | int major, minor, micro; | |
9372 | ||
9373 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9374 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9375 | exit(1); | |
9376 | } | |
9377 | ||
9378 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
9379 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9380 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9381 | printf("Headers vs. library version mismatch!\n"); | |
9382 | exit(1); | |
9383 | } | |
9384 | ||
9385 | if (gtk_minor_version == 1) return FALSE; | |
9386 | ||
9387 | return !((gtk_major_version > major) || | |
9388 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9389 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9390 | } | |
9391 | ||
698dcdb6 | 9392 | EOF |
18dbb1f6 | 9393 | if { (eval echo configure:9394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9394 | then |
f6bcfd97 BP |
9395 | : |
9396 | else | |
698dcdb6 VZ |
9397 | echo "configure: failed program was:" >&5 |
9398 | cat conftest.$ac_ext >&5 | |
9399 | rm -fr conftest* | |
9400 | no_gtk=yes | |
f6bcfd97 | 9401 | fi |
698dcdb6 | 9402 | rm -fr conftest* |
f6bcfd97 | 9403 | fi |
698dcdb6 | 9404 | |
f6bcfd97 BP |
9405 | CFLAGS="$ac_save_CFLAGS" |
9406 | LIBS="$ac_save_LIBS" | |
9407 | else | |
9408 | no_gtk=yes | |
9409 | fi | |
9410 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9411 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9412 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 9413 | else |
698dcdb6 | 9414 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9415 | GTK_CFLAGS="" |
9416 | GTK_LIBS="" | |
9417 | : | |
9418 | fi | |
698dcdb6 VZ |
9419 | |
9420 | ||
f6bcfd97 | 9421 | |
8168de4c VZ |
9422 | fi |
9423 | ||
9424 | if test -z "$wx_cv_lib_gtk"; then | |
9425 | ||
f6bcfd97 BP |
9426 | if test x$gtk_config_exec_prefix != x ; then |
9427 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9428 | if test x${GTK_CONFIG+set} != xset ; then | |
9429 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9430 | fi | |
9431 | fi | |
9432 | if test x$gtk_config_prefix != x ; then | |
9433 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9434 | if test x${GTK_CONFIG+set} != xset ; then | |
9435 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9436 | fi | |
9437 | fi | |
9438 | ||
9439 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9440 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9441 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
18dbb1f6 | 9442 | echo "configure:9443: checking for $ac_word" >&5 |
698dcdb6 VZ |
9443 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9445 | else |
698dcdb6 VZ |
9446 | case "$GTK_CONFIG" in |
9447 | /*) | |
10f2d63a VZ |
9448 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9449 | ;; | |
698dcdb6 VZ |
9450 | ?:/*) |
9451 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9452 | ;; | |
10f2d63a | 9453 | *) |
698dcdb6 VZ |
9454 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9455 | ac_dummy="$PATH" | |
9456 | for ac_dir in $ac_dummy; do | |
9457 | test -z "$ac_dir" && ac_dir=. | |
9458 | if test -f $ac_dir/$ac_word; then | |
9459 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9460 | break | |
9461 | fi | |
9462 | done | |
9463 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9464 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9465 | ;; | |
9466 | esac | |
9467 | fi | |
698dcdb6 | 9468 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 9469 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9470 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 9471 | else |
698dcdb6 | 9472 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9473 | fi |
9474 | ||
04165bec | 9475 | min_gtk_version=1.2.3 |
698dcdb6 | 9476 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
18dbb1f6 | 9477 | echo "configure:9478: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
9478 | no_gtk="" |
9479 | if test "$GTK_CONFIG" != "no" ; then | |
9480 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 9481 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
9482 | ac_save_CFLAGS="$CFLAGS" |
9483 | ac_save_LIBS="$LIBS" | |
9484 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9485 | LIBS="$LIBS $GTK_LIBS" | |
9486 | if test "$cross_compiling" = yes; then | |
9487 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9488 | else | |
698dcdb6 | 9489 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 9490 | #line 9491 "configure" |
10f2d63a VZ |
9491 | #include "confdefs.h" |
9492 | ||
9493 | #include <gtk/gtk.h> | |
f49f2b0c | 9494 | #include <gtk/gtkfeatures.h> |
10f2d63a | 9495 | #include <stdio.h> |
32832908 | 9496 | #include <stdlib.h> |
10f2d63a VZ |
9497 | |
9498 | int | |
9499 | main () | |
9500 | { | |
9501 | int major, minor, micro; | |
9502 | ||
9503 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9504 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9505 | exit(1); | |
9506 | } | |
9507 | ||
f49f2b0c RR |
9508 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
9509 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9510 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9511 | printf("Headers vs. library version mismatch!\n"); | |
9512 | exit(1); | |
9513 | } | |
9514 | ||
10f2d63a VZ |
9515 | if (gtk_minor_version == 1) return FALSE; |
9516 | ||
9517 | return !((gtk_major_version > major) || | |
9518 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9519 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9520 | } | |
9521 | ||
698dcdb6 | 9522 | EOF |
18dbb1f6 | 9523 | if { (eval echo configure:9524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9524 | then |
10f2d63a VZ |
9525 | : |
9526 | else | |
698dcdb6 VZ |
9527 | echo "configure: failed program was:" >&5 |
9528 | cat conftest.$ac_ext >&5 | |
9529 | rm -fr conftest* | |
9530 | no_gtk=yes | |
10f2d63a | 9531 | fi |
698dcdb6 | 9532 | rm -fr conftest* |
10f2d63a | 9533 | fi |
698dcdb6 | 9534 | |
10f2d63a VZ |
9535 | CFLAGS="$ac_save_CFLAGS" |
9536 | LIBS="$ac_save_LIBS" | |
9537 | else | |
9538 | no_gtk=yes | |
9539 | fi | |
9540 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9541 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9542 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 9543 | else |
698dcdb6 | 9544 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9545 | GTK_CFLAGS="" |
9546 | GTK_LIBS="" | |
7e99ad86 | 9547 | : |
10f2d63a | 9548 | fi |
698dcdb6 VZ |
9549 | |
9550 | ||
10f2d63a | 9551 | |
8168de4c VZ |
9552 | fi |
9553 | ||
9554 | if test -z "$wx_cv_lib_gtk"; then | |
9555 | wx_cv_lib_gtk=none | |
138be253 VZ |
9556 | else |
9557 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
9558 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
9559 | fi |
9560 | ||
1e6feb95 | 9561 | |
8168de4c | 9562 | fi |
703e0a69 | 9563 | |
698dcdb6 | 9564 | |
8168de4c VZ |
9565 | if test "$gtk_version_cached" = 1; then |
9566 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 9567 | fi |
698dcdb6 | 9568 | |
8168de4c VZ |
9569 | case "$wx_cv_lib_gtk" in |
9570 | 2.0) WXGTK20=1 | |
9571 | ;; | |
9572 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 9573 | WXGTK12=1 |
8168de4c VZ |
9574 | ;; |
9575 | 1.2.3) WXGTK12=1 | |
9576 | ;; | |
9577 | *) { echo "configure: error: | |
9578 | Please check that gtk-config is in path, the directory | |
9579 | where GTK+ libraries are installed (returned by | |
9580 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9581 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9582 | " 1>&2; exit 1; } | |
9583 | ;; | |
9584 | esac | |
2224580a | 9585 | |
138be253 | 9586 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 9587 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 9588 | |
1e6feb95 VZ |
9589 | AFMINSTALL=afminstall |
9590 | TOOLKIT=GTK | |
9591 | GUIDIST=GTK_DIST | |
7ec2881a | 9592 | |
1e6feb95 | 9593 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
18dbb1f6 | 9594 | echo "configure:9595: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
9595 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
9596 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9597 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 9598 | else |
698dcdb6 | 9599 | ac_save_LIBS="$LIBS" |
7ec2881a | 9600 | LIBS="-lgdk $LIBS" |
698dcdb6 | 9601 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 9602 | #line 9603 "configure" |
7ec2881a RR |
9603 | #include "confdefs.h" |
9604 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9605 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9606 | builtin and then its argument prototype would still apply. */ |
9607 | char gdk_im_open(); | |
9608 | ||
9609 | int main() { | |
9610 | gdk_im_open() | |
9611 | ; return 0; } | |
9612 | EOF | |
18dbb1f6 | 9613 | if { (eval echo configure:9614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9614 | rm -rf conftest* |
9615 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9616 | else | |
9617 | echo "configure: failed program was:" >&5 | |
9618 | cat conftest.$ac_ext >&5 | |
9619 | rm -rf conftest* | |
9620 | eval "ac_cv_lib_$ac_lib_var=no" | |
9621 | fi | |
9622 | rm -f conftest* | |
9623 | LIBS="$ac_save_LIBS" | |
9624 | ||
9625 | fi | |
9626 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9627 | echo "$ac_t""yes" 1>&6 | |
9628 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
9629 | #define HAVE_XIM 1 |
9630 | EOF | |
9631 | ||
698dcdb6 VZ |
9632 | else |
9633 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
9634 | fi |
9635 | ||
1e6feb95 | 9636 | fi |
10f2d63a | 9637 | |
1e6feb95 VZ |
9638 | if test "$wxUSE_MGL" = 1; then |
9639 | ||
9640 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
18dbb1f6 | 9641 | echo "configure:9642: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
9642 | if test "x$MGL_ROOT" = x ; then |
9643 | echo "$ac_t""not found" 1>&6 | |
9644 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
9645 | else | |
9646 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
9647 | fi | |
9648 | ||
9649 | MGL_OS=linux/gcc/glibc | |
9650 | MGL_LIB_TYPE="" | |
9651 | ||
9652 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
9653 | if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then | |
9654 | MGL_LIB_TYPE=debug | |
9655 | fi | |
9656 | fi | |
9657 | if test "x$MGL_LIB_TYPE" = x ; then | |
9658 | if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then | |
9659 | MGL_LIB_TYPE=release | |
9660 | else | |
9661 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
9662 | fi | |
9663 | fi | |
9664 | ||
9665 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
9666 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm" | |
9667 | ||
9668 | AFMINSTALL=afminstall | |
9669 | TOOLKIT=MGL | |
9670 | GUIDIST=MGL_DIST | |
9671 | fi | |
9672 | ||
9673 | if test "$wxUSE_WINE" = 1; then | |
9674 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
18dbb1f6 | 9675 | echo "configure:9676: checking for WINE includes" >&5 |
1e6feb95 | 9676 | |
10f2d63a VZ |
9677 | ac_find_includes= |
9678 | for ac_dir in $SEARCH_INCLUDE; | |
9679 | do | |
9680 | if test -f "$ac_dir/windows.h"; then | |
9681 | ac_find_includes=$ac_dir | |
9682 | break | |
9683 | fi | |
9684 | done | |
9685 | ||
1e6feb95 VZ |
9686 | if test "$ac_find_includes" != "" ; then |
9687 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
9688 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
9689 | else | |
9690 | echo "$ac_t""no" 1>&6 | |
9691 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9692 | fi | |
10f2d63a | 9693 | |
1e6feb95 VZ |
9694 | XPM_LINK="" |
9695 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
18dbb1f6 | 9696 | echo "configure:9697: checking for Xpm library" >&5 |
1e6feb95 | 9697 | |
10f2d63a VZ |
9698 | ac_find_libraries= |
9699 | for ac_dir in $SEARCH_LIB; | |
9700 | do | |
f11bdd03 | 9701 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
9702 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
9703 | ac_find_libraries=$ac_dir | |
9704 | break 2 | |
9705 | fi | |
9706 | done | |
9707 | done | |
9708 | ||
1e6feb95 VZ |
9709 | if test "$ac_find_libraries" != "" ; then |
9710 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
9711 | XPM_LINK="-lXpm" | |
9712 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
9713 | #define wxHAVE_LIB_XPM 1 |
9714 | EOF | |
9715 | ||
1e6feb95 VZ |
9716 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9717 | else | |
9718 | echo "$ac_t""no" 1>&6 | |
9719 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9720 | fi | |
10f2d63a | 9721 | |
1e6feb95 VZ |
9722 | MESA_LINK="" |
9723 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
18dbb1f6 | 9724 | echo "configure:9725: checking for Mesa library" >&5 |
1e6feb95 | 9725 | |
10f2d63a VZ |
9726 | ac_find_libraries= |
9727 | for ac_dir in $SEARCH_LIB; | |
9728 | do | |
f11bdd03 | 9729 | for ac_extension in a so sl dylib; do |
10f2d63a VZ |
9730 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
9731 | ac_find_libraries=$ac_dir | |
9732 | break 2 | |
9733 | fi | |
9734 | done | |
9735 | done | |
9736 | ||
1e6feb95 VZ |
9737 | if test "$ac_find_libraries" != "" ; then |
9738 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
9739 | MESA_LINK="-lMesaGL" | |
9740 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
9741 | else | |
9742 | { echo "configure: error: no" 1>&2; exit 1; } | |
9743 | fi | |
10f2d63a | 9744 | |
1e6feb95 VZ |
9745 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
9746 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
9747 | WXWINE=1 | |
9748 | TOOLKIT=MSW | |
9749 | GUIDIST=MSW_DIST | |
9750 | fi | |
698dcdb6 | 9751 | |
1e6feb95 VZ |
9752 | |
9753 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
9754 | # paths, otherwise set no_x=yes. |
9755 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
9756 | # --without-x overrides everything else, but does not touch the cache. | |
9757 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
18dbb1f6 | 9758 | echo "configure:9759: checking for X" >&5 |
ab9b9eab VZ |
9759 | |
9760 | # Check whether --with-x or --without-x was given. | |
9761 | if test "${with_x+set}" = set; then | |
9762 | withval="$with_x" | |
698dcdb6 VZ |
9763 | : |
9764 | fi | |
ba337fe7 | 9765 | |
ab9b9eab VZ |
9766 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9767 | if test "x$with_x" = xno; then | |
9768 | # The user explicitly disabled X. | |
9769 | have_x=disabled | |
9770 | else | |
9771 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
9772 | # Both variables are already set. | |
9773 | have_x=yes | |
9774 | else | |
698dcdb6 VZ |
9775 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
9776 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
9777 | else |
9778 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
9779 | ac_x_includes=NO ac_x_libraries=NO |
9780 | rm -fr conftestdir | |
9781 | if mkdir conftestdir; then | |
9782 | cd conftestdir | |
ab9b9eab | 9783 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 9784 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
9785 | acfindx: |
9786 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
9787 | EOF | |
9788 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
9789 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9790 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
9791 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 9792 | for ac_extension in a so sl; do |
ab9b9eab | 9793 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 9794 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 9795 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
9796 | fi |
9797 | done | |
ab9b9eab VZ |
9798 | # Screen out bogus values from the imake configuration. They are |
9799 | # bogus both because they are the default anyway, and because | |
9800 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 9801 | case "$ac_im_incroot" in |
ab9b9eab | 9802 | /usr/include) ;; |
698dcdb6 | 9803 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 9804 | esac |
698dcdb6 | 9805 | case "$ac_im_usrlibdir" in |
ab9b9eab | 9806 | /usr/lib | /lib) ;; |
698dcdb6 | 9807 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 9808 | esac |
ba337fe7 | 9809 | fi |
ab9b9eab | 9810 | cd .. |
698dcdb6 | 9811 | rm -fr conftestdir |
ab9b9eab | 9812 | fi |
10f2d63a | 9813 | |
698dcdb6 VZ |
9814 | if test "$ac_x_includes" = NO; then |
9815 | # Guess where to find include files, by looking for this one X11 .h file. | |
9816 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
9817 | ||
ab9b9eab | 9818 | # First, try using that file with no special directory specified. |
698dcdb6 | 9819 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 9820 | #line 9821 "configure" |
ab9b9eab | 9821 | #include "confdefs.h" |
698dcdb6 VZ |
9822 | #include <$x_direct_test_include> |
9823 | EOF | |
9824 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 9825 | { (eval echo configure:9826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
9826 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9827 | if test -z "$ac_err"; then | |
9828 | rm -rf conftest* | |
ab9b9eab VZ |
9829 | # We can compile using X headers with no special include directory. |
9830 | ac_x_includes= | |
9831 | else | |
698dcdb6 VZ |
9832 | echo "$ac_err" >&5 |
9833 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 9834 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9835 | rm -rf conftest* |
9836 | # Look for the header file in a standard set of common directories. | |
9837 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9838 | for ac_dir in \ | |
9839 | /usr/X11/include \ | |
9840 | /usr/X11R6/include \ | |
9841 | /usr/X11R5/include \ | |
9842 | /usr/X11R4/include \ | |
9843 | \ | |
9844 | /usr/include/X11 \ | |
9845 | /usr/include/X11R6 \ | |
9846 | /usr/include/X11R5 \ | |
9847 | /usr/include/X11R4 \ | |
9848 | \ | |
9849 | /usr/local/X11/include \ | |
9850 | /usr/local/X11R6/include \ | |
9851 | /usr/local/X11R5/include \ | |
9852 | /usr/local/X11R4/include \ | |
9853 | \ | |
9854 | /usr/local/include/X11 \ | |
9855 | /usr/local/include/X11R6 \ | |
9856 | /usr/local/include/X11R5 \ | |
9857 | /usr/local/include/X11R4 \ | |
9858 | \ | |
9859 | /usr/X386/include \ | |
9860 | /usr/x386/include \ | |
9861 | /usr/XFree86/include/X11 \ | |
9862 | \ | |
9863 | /usr/include \ | |
9864 | /usr/local/include \ | |
9865 | /usr/unsupported/include \ | |
9866 | /usr/athena/include \ | |
9867 | /usr/local/x11r5/include \ | |
9868 | /usr/lpp/Xamples/include \ | |
9869 | \ | |
9870 | /usr/openwin/include \ | |
9871 | /usr/openwin/share/include \ | |
9872 | ; \ | |
9873 | do | |
9874 | if test -r "$ac_dir/$x_direct_test_include"; then | |
9875 | ac_x_includes=$ac_dir | |
9876 | break | |
9877 | fi | |
9878 | done | |
ab9b9eab | 9879 | fi |
698dcdb6 VZ |
9880 | rm -f conftest* |
9881 | fi # $ac_x_includes = NO | |
10f2d63a | 9882 | |
698dcdb6 | 9883 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 9884 | # Check for the libraries. |
698dcdb6 VZ |
9885 | |
9886 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
9887 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
9888 | ||
ab9b9eab VZ |
9889 | # See if we find them without any special options. |
9890 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
9891 | ac_save_LIBS="$LIBS" |
9892 | LIBS="-l$x_direct_test_library $LIBS" | |
9893 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 9894 | #line 9895 "configure" |
ab9b9eab | 9895 | #include "confdefs.h" |
698dcdb6 VZ |
9896 | |
9897 | int main() { | |
9898 | ${x_direct_test_function}() | |
9899 | ; return 0; } | |
9900 | EOF | |
18dbb1f6 | 9901 | if { (eval echo configure:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9902 | rm -rf conftest* |
9903 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
9904 | # We can link X programs with no special library path. |
9905 | ac_x_libraries= | |
9906 | else | |
698dcdb6 VZ |
9907 | echo "configure: failed program was:" >&5 |
9908 | cat conftest.$ac_ext >&5 | |
9909 | rm -rf conftest* | |
9910 | LIBS="$ac_save_LIBS" | |
9911 | # First see if replacing the include by lib works. | |
9912 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9913 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
9914 | /usr/X11/lib \ | |
9915 | /usr/X11R6/lib \ | |
9916 | /usr/X11R5/lib \ | |
9917 | /usr/X11R4/lib \ | |
9918 | \ | |
9919 | /usr/lib/X11 \ | |
9920 | /usr/lib/X11R6 \ | |
9921 | /usr/lib/X11R5 \ | |
9922 | /usr/lib/X11R4 \ | |
9923 | \ | |
9924 | /usr/local/X11/lib \ | |
9925 | /usr/local/X11R6/lib \ | |
9926 | /usr/local/X11R5/lib \ | |
9927 | /usr/local/X11R4/lib \ | |
9928 | \ | |
9929 | /usr/local/lib/X11 \ | |
9930 | /usr/local/lib/X11R6 \ | |
9931 | /usr/local/lib/X11R5 \ | |
9932 | /usr/local/lib/X11R4 \ | |
9933 | \ | |
9934 | /usr/X386/lib \ | |
9935 | /usr/x386/lib \ | |
9936 | /usr/XFree86/lib/X11 \ | |
9937 | \ | |
9938 | /usr/lib \ | |
9939 | /usr/local/lib \ | |
9940 | /usr/unsupported/lib \ | |
9941 | /usr/athena/lib \ | |
9942 | /usr/local/x11r5/lib \ | |
9943 | /usr/lpp/Xamples/lib \ | |
9944 | /lib/usr/lib/X11 \ | |
9945 | \ | |
9946 | /usr/openwin/lib \ | |
9947 | /usr/openwin/share/lib \ | |
9948 | ; \ | |
ab9b9eab VZ |
9949 | do |
9950 | for ac_extension in a so sl; do | |
698dcdb6 | 9951 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
9952 | ac_x_libraries=$ac_dir |
9953 | break 2 | |
10f2d63a | 9954 | fi |
10f2d63a | 9955 | done |
ab9b9eab VZ |
9956 | done |
9957 | fi | |
698dcdb6 VZ |
9958 | rm -f conftest* |
9959 | fi # $ac_x_libraries = NO | |
10f2d63a | 9960 | |
698dcdb6 | 9961 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
9962 | # Didn't find X anywhere. Cache the known absence of X. |
9963 | ac_cv_have_x="have_x=no" | |
9964 | else | |
9965 | # Record where we found X for the cache. | |
9966 | ac_cv_have_x="have_x=yes \ | |
9967 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
9968 | fi | |
9969 | fi | |
10f2d63a | 9970 | fi |
ab9b9eab VZ |
9971 | eval "$ac_cv_have_x" |
9972 | fi # $with_x != no | |
10f2d63a | 9973 | |
ab9b9eab | 9974 | if test "$have_x" != yes; then |
698dcdb6 | 9975 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
9976 | no_x=yes |
9977 | else | |
9978 | # If each of the values was on the command line, it overrides each guess. | |
9979 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9980 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9981 | # Update the cache value to reflect the command line values. | |
9982 | ac_cv_have_x="have_x=yes \ | |
9983 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 9984 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 9985 | fi |
10f2d63a | 9986 | |
ab9b9eab VZ |
9987 | if test "$no_x" = yes; then |
9988 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 9989 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
9990 | #define X_DISPLAY_MISSING 1 |
9991 | EOF | |
10f2d63a | 9992 | |
ab9b9eab VZ |
9993 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
9994 | else | |
9995 | if test -n "$x_includes"; then | |
9996 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
9997 | fi |
9998 | ||
ab9b9eab VZ |
9999 | # It would also be nice to do this for all -L options, not just this one. |
10000 | if test -n "$x_libraries"; then | |
10001 | X_LIBS="$X_LIBS -L$x_libraries" | |
10002 | # For Solaris; some versions of Sun CC require a space after -R and | |
10003 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 10004 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 10005 | "SunOS 5"*) |
698dcdb6 | 10006 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
18dbb1f6 | 10007 | echo "configure:10008: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
10008 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
10009 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 10010 | #line 10011 "configure" |
ab9b9eab | 10011 | #include "confdefs.h" |
10f2d63a | 10012 | |
698dcdb6 | 10013 | int main() { |
788deba1 | 10014 | |
698dcdb6 VZ |
10015 | ; return 0; } |
10016 | EOF | |
18dbb1f6 | 10017 | if { (eval echo configure:10018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10018 | rm -rf conftest* |
ab9b9eab VZ |
10019 | ac_R_nospace=yes |
10020 | else | |
698dcdb6 VZ |
10021 | echo "configure: failed program was:" >&5 |
10022 | cat conftest.$ac_ext >&5 | |
10023 | rm -rf conftest* | |
10024 | ac_R_nospace=no | |
ab9b9eab | 10025 | fi |
698dcdb6 | 10026 | rm -f conftest* |
ab9b9eab | 10027 | if test $ac_R_nospace = yes; then |
698dcdb6 | 10028 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
10029 | X_LIBS="$X_LIBS -R$x_libraries" |
10030 | else | |
10031 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 10032 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 10033 | #line 10034 "configure" |
ab9b9eab | 10034 | #include "confdefs.h" |
788deba1 | 10035 | |
698dcdb6 | 10036 | int main() { |
ab9b9eab | 10037 | |
698dcdb6 VZ |
10038 | ; return 0; } |
10039 | EOF | |
18dbb1f6 | 10040 | if { (eval echo configure:10041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 10041 | rm -rf conftest* |
ab9b9eab VZ |
10042 | ac_R_space=yes |
10043 | else | |
698dcdb6 VZ |
10044 | echo "configure: failed program was:" >&5 |
10045 | cat conftest.$ac_ext >&5 | |
10046 | rm -rf conftest* | |
10047 | ac_R_space=no | |
ab9b9eab | 10048 | fi |
698dcdb6 | 10049 | rm -f conftest* |
ab9b9eab | 10050 | if test $ac_R_space = yes; then |
698dcdb6 | 10051 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
10052 | X_LIBS="$X_LIBS -R $x_libraries" |
10053 | else | |
698dcdb6 | 10054 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
10055 | fi |
10056 | fi | |
698dcdb6 | 10057 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
10058 | esac |
10059 | fi | |
10060 | ||
10061 | # Check for system-dependent libraries X programs must link with. | |
10062 | # Do this before checking for the system-independent R6 libraries | |
10063 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
10064 | ||
10065 | if test "$ISC" = yes; then | |
10066 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
10067 | else | |
698dcdb6 VZ |
10068 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
10069 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 10070 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 10071 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
18dbb1f6 | 10072 | echo "configure:10073: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
10073 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10074 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10075 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10076 | else |
698dcdb6 | 10077 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10078 | LIBS="-ldnet $LIBS" |
698dcdb6 | 10079 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 10080 | #line 10081 "configure" |
ab9b9eab VZ |
10081 | #include "confdefs.h" |
10082 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10083 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10084 | builtin and then its argument prototype would still apply. */ |
10085 | char dnet_ntoa(); | |
10086 | ||
10087 | int main() { | |
10088 | dnet_ntoa() | |
10089 | ; return 0; } | |
10090 | EOF | |
18dbb1f6 | 10091 | if { (eval echo configure:10092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10092 | rm -rf conftest* |
10093 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10094 | else | |
10095 | echo "configure: failed program was:" >&5 | |
10096 | cat conftest.$ac_ext >&5 | |
10097 | rm -rf conftest* | |
10098 | eval "ac_cv_lib_$ac_lib_var=no" | |
10099 | fi | |
10100 | rm -f conftest* | |
10101 | LIBS="$ac_save_LIBS" | |
10102 | ||
10103 | fi | |
10104 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10105 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10106 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
10107 | else |
10108 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10109 | fi |
10110 | ||
10111 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 10112 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
18dbb1f6 | 10113 | echo "configure:10114: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
10114 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
10115 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10116 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10117 | else |
698dcdb6 | 10118 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10119 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 10120 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 10121 | #line 10122 "configure" |
ab9b9eab VZ |
10122 | #include "confdefs.h" |
10123 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10124 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10125 | builtin and then its argument prototype would still apply. */ |
10126 | char dnet_ntoa(); | |
10127 | ||
10128 | int main() { | |
10129 | dnet_ntoa() | |
10130 | ; return 0; } | |
10131 | EOF | |
18dbb1f6 | 10132 | if { (eval echo configure:10133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10133 | rm -rf conftest* |
10134 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10135 | else | |
10136 | echo "configure: failed program was:" >&5 | |
10137 | cat conftest.$ac_ext >&5 | |
10138 | rm -rf conftest* | |
10139 | eval "ac_cv_lib_$ac_lib_var=no" | |
10140 | fi | |
10141 | rm -f conftest* | |
10142 | LIBS="$ac_save_LIBS" | |
10143 | ||
10144 | fi | |
10145 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10146 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10147 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
10148 | else |
10149 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10150 | fi |
10151 | ||
10152 | fi | |
10153 | ||
10154 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
10155 | # to get the SysV transport functions. | |
698dcdb6 | 10156 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
10157 | # needs -lnsl. |
10158 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
10159 | # on Irix 5.2, according to dickey@clark.net. |
10160 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
18dbb1f6 | 10161 | echo "configure:10162: checking for gethostbyname" >&5 |
698dcdb6 VZ |
10162 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
10163 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10164 | else | |
10165 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 10166 | #line 10167 "configure" |
ab9b9eab VZ |
10167 | #include "confdefs.h" |
10168 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10169 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
10170 | #include <assert.h> |
10171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10172 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10173 | builtin and then its argument prototype would still apply. */ |
10174 | char gethostbyname(); | |
10175 | ||
10176 | int main() { | |
ab9b9eab VZ |
10177 | |
10178 | /* The GNU C library defines this for functions which it implements | |
10179 | to always fail with ENOSYS. Some functions are actually named | |
10180 | something starting with __ and the normal name is an alias. */ | |
10181 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
10182 | choke me | |
10183 | #else | |
698dcdb6 | 10184 | gethostbyname(); |
ab9b9eab VZ |
10185 | #endif |
10186 | ||
698dcdb6 VZ |
10187 | ; return 0; } |
10188 | EOF | |
18dbb1f6 | 10189 | if { (eval echo configure:10190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10190 | rm -rf conftest* |
10191 | eval "ac_cv_func_gethostbyname=yes" | |
10192 | else | |
10193 | echo "configure: failed program was:" >&5 | |
10194 | cat conftest.$ac_ext >&5 | |
10195 | rm -rf conftest* | |
10196 | eval "ac_cv_func_gethostbyname=no" | |
10197 | fi | |
10198 | rm -f conftest* | |
10199 | fi | |
10200 | ||
10201 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
10202 | echo "$ac_t""yes" 1>&6 | |
10203 | : | |
10204 | else | |
10205 | echo "$ac_t""no" 1>&6 | |
10206 | fi | |
ab9b9eab VZ |
10207 | |
10208 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 10209 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
18dbb1f6 | 10210 | echo "configure:10211: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
10211 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
10212 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10213 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10214 | else |
698dcdb6 | 10215 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10216 | LIBS="-lnsl $LIBS" |
698dcdb6 | 10217 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 10218 | #line 10219 "configure" |
ab9b9eab VZ |
10219 | #include "confdefs.h" |
10220 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10221 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10222 | builtin and then its argument prototype would still apply. */ |
10223 | char gethostbyname(); | |
6232543b | 10224 | |
698dcdb6 VZ |
10225 | int main() { |
10226 | gethostbyname() | |
10227 | ; return 0; } | |
10228 | EOF | |
18dbb1f6 | 10229 | if { (eval echo configure:10230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10230 | rm -rf conftest* |
10231 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 10232 | else |
698dcdb6 VZ |
10233 | echo "configure: failed program was:" >&5 |
10234 | cat conftest.$ac_ext >&5 | |
10235 | rm -rf conftest* | |
10236 | eval "ac_cv_lib_$ac_lib_var=no" | |
10237 | fi | |
10238 | rm -f conftest* | |
10239 | LIBS="$ac_save_LIBS" | |
1e487827 | 10240 | |
698dcdb6 VZ |
10241 | fi |
10242 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10243 | echo "$ac_t""yes" 1>&6 | |
10244 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
10245 | else | |
10246 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10247 | fi |
10248 | ||
10249 | fi | |
10250 | ||
10251 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
10252 | # socket/setsockopt and other routines are undefined under SCO ODT | |
10253 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
10254 | # on later versions), says simon@lia.di.epfl.ch: it contains |
10255 | # gethostby* variants that don't use the nameserver (or something). | |
10256 | # -lsocket must be given before -lnsl if both are needed. | |
10257 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
10258 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
18dbb1f6 | 10259 | echo "configure:10260: checking for connect" >&5 |
698dcdb6 VZ |
10260 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
10261 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10262 | else | |
10263 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 10264 | #line 10265 "configure" |
ab9b9eab VZ |
10265 | #include "confdefs.h" |
10266 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10267 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
10268 | #include <assert.h> |
10269 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10270 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10271 | builtin and then its argument prototype would still apply. */ |
10272 | char connect(); | |
10273 | ||
10274 | int main() { | |
ab9b9eab VZ |
10275 | |
10276 | /* The GNU C library defines this for functions which it implements | |
10277 | to always fail with ENOSYS. Some functions are actually named | |
10278 | something starting with __ and the normal name is an alias. */ | |
10279 | #if defined (__stub_connect) || defined (__stub___connect) | |
10280 | choke me | |
10281 | #else | |
698dcdb6 | 10282 | connect(); |
ab9b9eab VZ |
10283 | #endif |
10284 | ||
698dcdb6 VZ |
10285 | ; return 0; } |
10286 | EOF | |
18dbb1f6 | 10287 | if { (eval echo configure:10288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10288 | rm -rf conftest* |
10289 | eval "ac_cv_func_connect=yes" | |
10290 | else | |
10291 | echo "configure: failed program was:" >&5 | |
10292 | cat conftest.$ac_ext >&5 | |
10293 | rm -rf conftest* | |
10294 | eval "ac_cv_func_connect=no" | |
10295 | fi | |
10296 | rm -f conftest* | |
10297 | fi | |
10298 | ||
10299 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
10300 | echo "$ac_t""yes" 1>&6 | |
10301 | : | |
10302 | else | |
10303 | echo "$ac_t""no" 1>&6 | |
10304 | fi | |
ab9b9eab VZ |
10305 | |
10306 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 10307 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
18dbb1f6 | 10308 | echo "configure:10309: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
10309 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
10310 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10311 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10312 | else |
698dcdb6 | 10313 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10314 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10315 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 10316 | #line 10317 "configure" |
ab9b9eab VZ |
10317 | #include "confdefs.h" |
10318 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10319 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10320 | builtin and then its argument prototype would still apply. */ |
10321 | char connect(); | |
10322 | ||
10323 | int main() { | |
10324 | connect() | |
10325 | ; return 0; } | |
10326 | EOF | |
18dbb1f6 | 10327 | if { (eval echo configure:10328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10328 | rm -rf conftest* |
10329 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10330 | else | |
10331 | echo "configure: failed program was:" >&5 | |
10332 | cat conftest.$ac_ext >&5 | |
10333 | rm -rf conftest* | |
10334 | eval "ac_cv_lib_$ac_lib_var=no" | |
10335 | fi | |
10336 | rm -f conftest* | |
10337 | LIBS="$ac_save_LIBS" | |
10338 | ||
10339 | fi | |
10340 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10341 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10342 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
10343 | else |
10344 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10345 | fi |
10346 | ||
10347 | fi | |
10348 | ||
698dcdb6 VZ |
10349 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
10350 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
18dbb1f6 | 10351 | echo "configure:10352: checking for remove" >&5 |
698dcdb6 VZ |
10352 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
10353 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10354 | else |
698dcdb6 | 10355 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 10356 | #line 10357 "configure" |
ab9b9eab VZ |
10357 | #include "confdefs.h" |
10358 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10359 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
10360 | #include <assert.h> |
10361 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10362 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10363 | builtin and then its argument prototype would still apply. */ |
10364 | char remove(); | |
10365 | ||
10366 | int main() { | |
ab9b9eab VZ |
10367 | |
10368 | /* The GNU C library defines this for functions which it implements | |
10369 | to always fail with ENOSYS. Some functions are actually named | |
10370 | something starting with __ and the normal name is an alias. */ | |
10371 | #if defined (__stub_remove) || defined (__stub___remove) | |
10372 | choke me | |
10373 | #else | |
698dcdb6 | 10374 | remove(); |
ab9b9eab VZ |
10375 | #endif |
10376 | ||
698dcdb6 VZ |
10377 | ; return 0; } |
10378 | EOF | |
18dbb1f6 | 10379 | if { (eval echo configure:10380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10380 | rm -rf conftest* |
10381 | eval "ac_cv_func_remove=yes" | |
10382 | else | |
10383 | echo "configure: failed program was:" >&5 | |
10384 | cat conftest.$ac_ext >&5 | |
10385 | rm -rf conftest* | |
10386 | eval "ac_cv_func_remove=no" | |
10387 | fi | |
10388 | rm -f conftest* | |
10389 | fi | |
10390 | ||
10391 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
10392 | echo "$ac_t""yes" 1>&6 | |
10393 | : | |
10394 | else | |
10395 | echo "$ac_t""no" 1>&6 | |
10396 | fi | |
ab9b9eab VZ |
10397 | |
10398 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 10399 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
18dbb1f6 | 10400 | echo "configure:10401: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
10401 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
10402 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10404 | else |
698dcdb6 | 10405 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10406 | LIBS="-lposix $LIBS" |
698dcdb6 | 10407 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 10408 | #line 10409 "configure" |
ab9b9eab VZ |
10409 | #include "confdefs.h" |
10410 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10411 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10412 | builtin and then its argument prototype would still apply. */ |
10413 | char remove(); | |
10414 | ||
10415 | int main() { | |
10416 | remove() | |
10417 | ; return 0; } | |
10418 | EOF | |
18dbb1f6 | 10419 | if { (eval echo configure:10420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10420 | rm -rf conftest* |
10421 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10422 | else | |
10423 | echo "configure: failed program was:" >&5 | |
10424 | cat conftest.$ac_ext >&5 | |
10425 | rm -rf conftest* | |
10426 | eval "ac_cv_lib_$ac_lib_var=no" | |
10427 | fi | |
10428 | rm -f conftest* | |
10429 | LIBS="$ac_save_LIBS" | |
10430 | ||
10431 | fi | |
10432 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10433 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10434 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
10435 | else |
10436 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10437 | fi |
10438 | ||
10439 | fi | |
10440 | ||
10441 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 10442 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
18dbb1f6 | 10443 | echo "configure:10444: checking for shmat" >&5 |
698dcdb6 VZ |
10444 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
10445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10446 | else |
698dcdb6 | 10447 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 10448 | #line 10449 "configure" |
ab9b9eab VZ |
10449 | #include "confdefs.h" |
10450 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10451 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
10452 | #include <assert.h> |
10453 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10454 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10455 | builtin and then its argument prototype would still apply. */ |
10456 | char shmat(); | |
10457 | ||
10458 | int main() { | |
ab9b9eab VZ |
10459 | |
10460 | /* The GNU C library defines this for functions which it implements | |
10461 | to always fail with ENOSYS. Some functions are actually named | |
10462 | something starting with __ and the normal name is an alias. */ | |
10463 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
10464 | choke me | |
10465 | #else | |
698dcdb6 | 10466 | shmat(); |
ab9b9eab VZ |
10467 | #endif |
10468 | ||
698dcdb6 VZ |
10469 | ; return 0; } |
10470 | EOF | |
18dbb1f6 | 10471 | if { (eval echo configure:10472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10472 | rm -rf conftest* |
10473 | eval "ac_cv_func_shmat=yes" | |
10474 | else | |
10475 | echo "configure: failed program was:" >&5 | |
10476 | cat conftest.$ac_ext >&5 | |
10477 | rm -rf conftest* | |
10478 | eval "ac_cv_func_shmat=no" | |
10479 | fi | |
10480 | rm -f conftest* | |
10481 | fi | |
10482 | ||
10483 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
10484 | echo "$ac_t""yes" 1>&6 | |
10485 | : | |
10486 | else | |
10487 | echo "$ac_t""no" 1>&6 | |
10488 | fi | |
ab9b9eab VZ |
10489 | |
10490 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 10491 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
18dbb1f6 | 10492 | echo "configure:10493: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
10493 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
10494 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10495 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10496 | else |
698dcdb6 | 10497 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10498 | LIBS="-lipc $LIBS" |
698dcdb6 | 10499 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 10500 | #line 10501 "configure" |
ab9b9eab VZ |
10501 | #include "confdefs.h" |
10502 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10503 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10504 | builtin and then its argument prototype would still apply. */ |
10505 | char shmat(); | |
10506 | ||
10507 | int main() { | |
10508 | shmat() | |
10509 | ; return 0; } | |
10510 | EOF | |
18dbb1f6 | 10511 | if { (eval echo configure:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10512 | rm -rf conftest* |
10513 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10514 | else | |
10515 | echo "configure: failed program was:" >&5 | |
10516 | cat conftest.$ac_ext >&5 | |
10517 | rm -rf conftest* | |
10518 | eval "ac_cv_lib_$ac_lib_var=no" | |
10519 | fi | |
10520 | rm -f conftest* | |
10521 | LIBS="$ac_save_LIBS" | |
10522 | ||
10523 | fi | |
10524 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10525 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10526 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
10527 | else |
10528 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10529 | fi |
10530 | ||
10531 | fi | |
10532 | fi | |
10533 | ||
10534 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 10535 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
10536 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
10537 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10538 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10539 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10540 | # These have to be linked with before -lX11, unlike the other | |
10541 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
10542 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
10543 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
18dbb1f6 | 10544 | echo "configure:10545: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
10545 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
10546 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10547 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10548 | else | |
10549 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 10550 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10551 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 10552 | #line 10553 "configure" |
ab9b9eab VZ |
10553 | #include "confdefs.h" |
10554 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10555 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10556 | builtin and then its argument prototype would still apply. */ |
10557 | char IceConnectionNumber(); | |
10558 | ||
10559 | int main() { | |
10560 | IceConnectionNumber() | |
10561 | ; return 0; } | |
10562 | EOF | |
18dbb1f6 | 10563 | if { (eval echo configure:10564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10564 | rm -rf conftest* |
10565 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10566 | else | |
10567 | echo "configure: failed program was:" >&5 | |
10568 | cat conftest.$ac_ext >&5 | |
10569 | rm -rf conftest* | |
10570 | eval "ac_cv_lib_$ac_lib_var=no" | |
10571 | fi | |
10572 | rm -f conftest* | |
10573 | LIBS="$ac_save_LIBS" | |
10574 | ||
10575 | fi | |
10576 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10577 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10578 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
10579 | else |
10580 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10581 | fi |
10582 | ||
698dcdb6 | 10583 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
10584 | |
10585 | fi | |
10586 | ||
1e6feb95 VZ |
10587 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
10588 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 10589 | |
1e6feb95 VZ |
10590 | if test "$wxUSE_MOTIF" = 1; then |
10591 | if test "$no_x" = "yes"; then | |
10592 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
10593 | fi | |
ab9b9eab | 10594 | |
1e6feb95 VZ |
10595 | GUI_TK_LIBRARY="$X_LIBS" |
10596 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
ab9b9eab | 10597 | |
1e6feb95 | 10598 | AFMINSTALL=afminstall |
dad6c0ea | 10599 | |
1e6feb95 VZ |
10600 | |
10601 | COMPILED_X_PROGRAM=0 | |
cd6d6d5b | 10602 | |
1e6feb95 | 10603 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
18dbb1f6 | 10604 | echo "configure:10605: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 10605 | |
ab9b9eab VZ |
10606 | ac_find_includes= |
10607 | for ac_dir in $SEARCH_INCLUDE; | |
10608 | do | |
10609 | if test -f "$ac_dir/Xm/Xm.h"; then | |
10610 | ac_find_includes=$ac_dir | |
10611 | break | |
10612 | fi | |
10613 | done | |
10614 | ||
1e6feb95 VZ |
10615 | if test "$ac_find_includes" != "" ; then |
10616 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
10617 | else | |
10618 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 10619 | #line 10620 "configure" |
cd6d6d5b VZ |
10620 | #include "confdefs.h" |
10621 | ||
1e6feb95 VZ |
10622 | #include <Xm/Xm.h> |
10623 | ||
698dcdb6 | 10624 | int main() { |
cd6d6d5b | 10625 | |
1e6feb95 | 10626 | int version; |
cd6d6d5b | 10627 | |
1e6feb95 VZ |
10628 | version = xmUseVersion; |
10629 | ||
698dcdb6 VZ |
10630 | ; return 0; } |
10631 | EOF | |
18dbb1f6 | 10632 | if { (eval echo configure:10633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10633 | rm -rf conftest* |
10634 | ||
1e6feb95 VZ |
10635 | echo "$ac_t""found in default search path" 1>&6 |
10636 | COMPILED_X_PROGRAM=1 | |
10637 | ||
cd6d6d5b | 10638 | else |
698dcdb6 VZ |
10639 | echo "configure: failed program was:" >&5 |
10640 | cat conftest.$ac_ext >&5 | |
10641 | rm -rf conftest* | |
10642 | ||
1e6feb95 VZ |
10643 | echo "$ac_t""no" 1>&6 |
10644 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
10645 | ||
698dcdb6 | 10646 | |
cd6d6d5b | 10647 | fi |
698dcdb6 | 10648 | rm -f conftest* |
1e6feb95 | 10649 | fi |
ab9b9eab | 10650 | |
1e6feb95 VZ |
10651 | if test "$COMPILED_X_PROGRAM" = 0; then |
10652 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
18dbb1f6 | 10653 | echo "configure:10654: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 10654 | |
ab9b9eab VZ |
10655 | ac_find_libraries= |
10656 | for ac_dir in $SEARCH_LIB; | |
10657 | do | |
f11bdd03 | 10658 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
10659 | if test -f "$ac_dir/libXm.$ac_extension"; then |
10660 | ac_find_libraries=$ac_dir | |
10661 | break 2 | |
10662 | fi | |
10663 | done | |
10664 | done | |
10665 | ||
1e6feb95 VZ |
10666 | if test "$ac_find_libraries" != "" ; then |
10667 | ||
ab9b9eab VZ |
10668 | ac_path_to_include=$ac_find_includes |
10669 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
10670 | result=$? | |
10671 | if test $result = 0; then | |
10672 | ac_path_to_include="" | |
10673 | else | |
10674 | ac_path_to_include="-I$ac_find_includes" | |
10675 | fi | |
10676 | ||
1e6feb95 | 10677 | |
ab9b9eab VZ |
10678 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10679 | result=$? | |
10680 | if test $result = 0; then | |
10681 | ac_path_to_link="" | |
10682 | else | |
10683 | ac_path_to_link="-L$ac_find_libraries" | |
10684 | fi | |
10685 | ||
698dcdb6 | 10686 | |
1e6feb95 VZ |
10687 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10688 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
10689 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10690 | else | |
10691 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 10692 | #line 10693 "configure" |
cd6d6d5b | 10693 | #include "confdefs.h" |
ab9b9eab | 10694 | |
1e6feb95 VZ |
10695 | #include <Xm/Xm.h> |
10696 | ||
698dcdb6 | 10697 | int main() { |
ab9b9eab | 10698 | |
1e6feb95 | 10699 | int version; |
ab9b9eab | 10700 | |
1e6feb95 VZ |
10701 | version = xmUseVersion; |
10702 | ||
698dcdb6 VZ |
10703 | ; return 0; } |
10704 | EOF | |
18dbb1f6 | 10705 | if { (eval echo configure:10706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10706 | rm -rf conftest* |
10707 | ||
1e6feb95 VZ |
10708 | echo "$ac_t""found in default search path" 1>&6 |
10709 | COMPILED_X_PROGRAM=1 | |
10710 | ||
cd6d6d5b | 10711 | else |
698dcdb6 VZ |
10712 | echo "configure: failed program was:" >&5 |
10713 | cat conftest.$ac_ext >&5 | |
10714 | rm -rf conftest* | |
10715 | ||
1e6feb95 VZ |
10716 | echo "$ac_t""no" 1>&6 |
10717 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
10718 | ||
698dcdb6 | 10719 | |
cd6d6d5b | 10720 | fi |
698dcdb6 | 10721 | rm -f conftest* |
1e6feb95 | 10722 | fi |
cd6d6d5b | 10723 | fi |
ab9b9eab | 10724 | |
1e6feb95 VZ |
10725 | |
10726 | XPM_LINK="" | |
10727 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
18dbb1f6 | 10728 | echo "configure:10729: checking for Xpm library" >&5 |
1e6feb95 | 10729 | |
ab9b9eab VZ |
10730 | ac_find_libraries= |
10731 | for ac_dir in $SEARCH_LIB; | |
10732 | do | |
f11bdd03 | 10733 | for ac_extension in a so sl dylib; do |
ab9b9eab VZ |
10734 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
10735 | ac_find_libraries=$ac_dir | |
10736 | break 2 | |
10737 | fi | |
10738 | done | |
10739 | done | |
10740 | ||
1e6feb95 VZ |
10741 | if test "$ac_find_libraries" != "" ; then |
10742 | ||
ab9b9eab VZ |
10743 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10744 | result=$? | |
10745 | if test $result = 0; then | |
10746 | ac_path_to_link="" | |
10747 | else | |
10748 | ac_path_to_link="-L$ac_find_libraries" | |
10749 | fi | |
10750 | ||
1e6feb95 VZ |
10751 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10752 | XPM_LINK="-lXpm " | |
10753 | cat >> confdefs.h <<\EOF | |
ab9b9eab VZ |
10754 | #define wxHAVE_LIB_XPM 1 |
10755 | EOF | |
10756 | ||
1e6feb95 VZ |
10757 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10758 | else | |
10759 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 10760 | #line 10761 "configure" |
cd6d6d5b VZ |
10761 | #include "confdefs.h" |
10762 | ||
1e6feb95 VZ |
10763 | #include <X11/xpm.h> |
10764 | ||
698dcdb6 | 10765 | int main() { |
cd6d6d5b | 10766 | |
1e6feb95 | 10767 | int version; |
cd6d6d5b | 10768 | |
1e6feb95 VZ |
10769 | version = XpmLibraryVersion(); |
10770 | ||
698dcdb6 VZ |
10771 | ; return 0; } |
10772 | EOF | |
18dbb1f6 | 10773 | if { (eval echo configure:10774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10774 | rm -rf conftest* |
10775 | ||
1e6feb95 VZ |
10776 | XPM_LINK="-lXpm " |
10777 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
10778 | #define wxHAVE_LIB_XPM 1 |
10779 | EOF | |
10780 | ||
1e6feb95 VZ |
10781 | echo "$ac_t""found in default search path" 1>&6 |
10782 | COMPILED_X_PROGRAM=0 | |
10783 | ||
cd6d6d5b | 10784 | else |
698dcdb6 VZ |
10785 | echo "configure: failed program was:" >&5 |
10786 | cat conftest.$ac_ext >&5 | |
10787 | rm -rf conftest* | |
10788 | ||
1e6feb95 VZ |
10789 | echo "$ac_t""no" 1>&6 |
10790 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10791 | ||
698dcdb6 | 10792 | |
cd6d6d5b | 10793 | fi |
698dcdb6 | 10794 | rm -f conftest* |
1e6feb95 VZ |
10795 | fi |
10796 | ||
10797 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" | |
10798 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
10799 | TOOLKIT=MOTIF | |
10800 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
10801 | fi |
10802 | ||
1e6feb95 VZ |
10803 | if test "$wxUSE_MAC" = 1; then |
10804 | TOOLKIT=MAC | |
10805 | GUIDIST=MACX_DIST | |
10806 | fi | |
10f2d63a | 10807 | |
1e6feb95 VZ |
10808 | if test "$wxUSE_PM" = 1; then |
10809 | TOOLKIT=PM | |
10810 | GUIDIST=GTK_DIST | |
10811 | fi | |
b4085ce6 | 10812 | |
1e6feb95 VZ |
10813 | if test "$TOOLKIT" != "PM" ; then |
10814 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
10815 | else | |
10816 | TOOLKIT_DIR="os2" | |
10817 | fi | |
e07802fc | 10818 | |
1e6feb95 | 10819 | TOOLKIT_NAME="${TOOLKIT_DIR}" |
10f2d63a | 10820 | |
1e6feb95 VZ |
10821 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" |
10822 | ||
10823 | if test "$TOOLKIT_NAME" = "motif"; then | |
10824 | TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
10825 | fi | |
10826 | ||
10827 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10828 | TOOLKIT_NAME="${TOOLKIT_NAME}univ" | |
10829 | UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
10830 | TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}" | |
10831 | SETUPH_DIR="univ" | |
f6bcfd97 | 10832 | else |
1e6feb95 VZ |
10833 | SETUPH_DIR="${TOOLKIT_DIR}" |
10834 | fi | |
10835 | ||
10836 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10837 | TOOLKIT_NAME="${TOOLKIT_NAME}d" | |
f6bcfd97 BP |
10838 | fi |
10839 | ||
2224580a | 10840 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
1e6feb95 VZ |
10841 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10842 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__" | |
10843 | fi | |
10f2d63a | 10844 | |
f6bcfd97 | 10845 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 10846 | |
1e6feb95 VZ |
10847 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10848 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
10849 | else | |
10850 | ALL_OBJECTS="\$(GUIOBJS)" | |
10851 | fi | |
10852 | ||
10853 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
10854 | ||
10855 | if test "$TOOLKIT" != "MSW"; then | |
10856 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
10857 | fi | |
10858 | ||
10859 | if test "$wxUSE_HTML" = "yes"; then | |
10860 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
10861 | fi | |
3fcdd07b | 10862 | |
1e6feb95 VZ |
10863 | if test "$TOOLKIT" != "MSW"; then |
10864 | if test "$wxUSE_ODBC" = "yes" ; then | |
10865 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
10866 | fi | |
3fcdd07b VZ |
10867 | fi |
10868 | ||
831b3152 VZ |
10869 | if test "x$REGEX_INCLUDE" != "x" ; then |
10870 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
10871 | fi | |
10872 | ||
d9d8273d | 10873 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 10874 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
10875 | fi |
10876 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
10877 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
10878 | fi | |
10879 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10880 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
10881 | fi | |
10882 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10883 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10884 | fi | |
3fed1840 RR |
10885 | if test "$wxUSE_FREETYPE" = "yes" ; then |
10886 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
10887 | fi | |
2224580a | 10888 | |
1e6feb95 VZ |
10889 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10890 | ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)" | |
10891 | else | |
10892 | ALL_DEPFILES="\$(GUIDEPS)" | |
10893 | fi | |
10894 | ||
10895 | ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)" | |
10896 | ||
10897 | if test "$TOOLKIT" != "MSW"; then | |
10898 | ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)" | |
10899 | fi | |
10900 | ||
10901 | if test "$wxUSE_HTML" = "yes"; then | |
10902 | ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)" | |
10903 | fi | |
10904 | ||
879df073 | 10905 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 10906 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
879df073 | 10907 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" |
1e6feb95 | 10908 | fi |
2224580a VZ |
10909 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
10910 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
10911 | ||
10912 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
10913 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 10914 | else |
dad6c0ea VZ |
10915 | USE_GUI=0 |
10916 | ||
f6bcfd97 BP |
10917 | TOOLKIT_DIR="base" |
10918 | ||
0b2effe9 VZ |
10919 | TOOLKIT_VPATH="." |
10920 | ||
f6bcfd97 BP |
10921 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
10922 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
10923 | else | |
10924 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
10925 | fi | |
10926 | ||
07eb77a6 RL |
10927 | TOOLKIT_DEF="-D__WXBASE__" |
10928 | ||
b4085ce6 GD |
10929 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
10930 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 10931 | |
0b2effe9 VZ |
10932 | if test "x$REGEX_INCLUDE" != "x" ; then |
10933 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
10934 | fi | |
10935 | ||
a20b6d3a VZ |
10936 | if test "$wxUSE_ZLIB" = "yes" ; then |
10937 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10938 | fi | |
10939 | ||
f6bcfd97 | 10940 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a | 10941 | |
831b3152 | 10942 | PORT_FILES="\${top_srcdir}/src/files.lst" |
2224580a VZ |
10943 | RPM_FILES="src/rpmfiles.lst" |
10944 | RPM_SPEC="wxBase.spec" | |
10945 | ||
10946 | GUIDIST="BASE_DIST" | |
10947 | DISTDIR="wxBase" | |
10f2d63a VZ |
10948 | fi |
10949 | ||
10950 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 10951 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
10952 | |
10953 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 10954 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a | 10955 | |
18dbb1f6 VZ |
10956 | case "${host}" in |
10957 | *-*-mingw32* ) | |
10958 | WX_LIBRARY_NAME_SHARED="wx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.dll" | |
10959 | ;; | |
10960 | * ) | |
10961 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10962 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10963 | ;; | |
10964 | esac | |
10f2d63a VZ |
10965 | |
10966 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
10967 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
10968 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
10969 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
10970 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
10971 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
10972 | |
10973 | SHARED_LD= | |
10974 | PIC_FLAG= | |
10975 | WX_ALL= | |
10976 | WX_ALL_INSTALLED= | |
1d62a8b4 | 10977 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 10978 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 10979 | |
698dcdb6 | 10980 | |
10f2d63a VZ |
10981 | if test "$wxUSE_SHARED" = "yes"; then |
10982 | case "${host}" in | |
10983 | *-hp-hpux* ) | |
10984 | if test "$GCC" = yes ; then | |
6b076b40 | 10985 | SHARED_LD="${CXX} -shared -fPIC -o" |
10f2d63a VZ |
10986 | PIC_FLAG="-fPIC" |
10987 | else | |
f6bcfd97 BP |
10988 | LDFLAGS="-L/usr/lib" |
10989 | ||
10f2d63a VZ |
10990 | SHARED_LD="${CXX} -b -o" |
10991 | PIC_FLAG="+Z" | |
10992 | fi | |
f6bcfd97 BP |
10993 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
10994 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 10995 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 10996 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
10997 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
10998 | else | |
10999 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
11000 | fi | |
10f2d63a | 11001 | ;; |
b12915c1 VZ |
11002 | |
11003 | *-*-linux* ) | |
6b076b40 | 11004 | SHARED_LD="${CXX} -shared -o" |
10f2d63a | 11005 | PIC_FLAG="-fPIC" |
00cf1208 | 11006 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 11007 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 11008 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 11009 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 11010 | fi |
c661ecca RR |
11011 | if test "$wxUSE_OPENGL" = "yes"; then |
11012 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11013 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
11014 | else | |
11015 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11016 | WX_ALL="CREATE_LINKS" | |
422107f9 | 11017 | fi |
00cf1208 | 11018 | ;; |
10f2d63a VZ |
11019 | *-*-irix5* | *-*-irix6* ) |
11020 | if test "$GCC" = yes ; then | |
6b076b40 | 11021 | SHARED_LD="${CXX} -shared -o" |
10f2d63a VZ |
11022 | PIC_FLAG="-fPIC" |
11023 | else | |
11024 | SHARED_LD="${CXX} -shared -o" | |
11025 | fi | |
c661ecca RR |
11026 | if test "$wxUSE_OPENGL" = "yes"; then |
11027 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11028 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
11029 | else | |
11030 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11031 | WX_ALL="CREATE_LINKS" | |
422107f9 | 11032 | fi |
10f2d63a VZ |
11033 | ;; |
11034 | *-*-solaris2* ) | |
11035 | if test "$GCC" = yes ; then | |
6b076b40 | 11036 | SHARED_LD="${CXX} -shared -o" |
10f2d63a | 11037 | PIC_FLAG="-fPIC" |
f6bcfd97 BP |
11038 | |
11039 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
11040 | else |
11041 | SHARED_LD="${CXX} -G -o" | |
11042 | PIC_FLAG="-KPIC" | |
11043 | fi | |
c661ecca RR |
11044 | if test "$wxUSE_OPENGL" = "yes"; then |
11045 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11046 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
11047 | else | |
11048 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11049 | WX_ALL="CREATE_LINKS" | |
11050 | fi | |
10f2d63a VZ |
11051 | ;; |
11052 | *-*-sunos4* ) | |
6b076b40 | 11053 | SHARED_LD="${CXX} -shared -o" |
10f2d63a VZ |
11054 | PIC_FLAG="-fPIC" |
11055 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11056 | WX_ALL="CREATE_LINKS" | |
11057 | ;; | |
95c8801c | 11058 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* ) |
6b076b40 | 11059 | SHARED_LD="${CXX} -shared -o" |
10f2d63a | 11060 | PIC_FLAG="-fPIC" |
37d403aa JS |
11061 | if test "$wxUSE_OPENGL" = "yes"; then |
11062 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11063 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
11064 | else | |
11065 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11066 | WX_ALL="CREATE_LINKS" | |
11067 | fi | |
10f2d63a | 11068 | ;; |
b4085ce6 | 11069 | *-*-darwin* ) |
f11bdd03 GD |
11070 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__" |
11071 | CFLAGS="${CFLAGS} -fno-common" | |
11072 | CPPFLAGS="${CPPFLAGS} -fno-common" | |
ea5999b9 GD |
11073 | SHARED_LD="${CXX} -dynamiclib -o" |
11074 | PIC_FLAG="-dynamic -fPIC" | |
b4085ce6 GD |
11075 | if test "$wxUSE_OPENGL" = "yes"; then |
11076 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11077 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
11078 | else | |
11079 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11080 | WX_ALL="CREATE_LINKS" | |
11081 | fi | |
f11bdd03 GD |
11082 | if test "$wxUSE_MAC" = 1 ; then |
11083 | WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r" | |
11084 | fi | |
1e6feb95 VZ |
11085 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
11086 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11087 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
11088 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" | |
11089 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
11090 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
11091 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" | |
11092 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
b4085ce6 | 11093 | ;; |
10f2d63a VZ |
11094 | *-*-osf* ) |
11095 | SHARED_LD="${CXX} -shared -o" | |
11096 | PIC_FLAG="-fPIC" | |
11097 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11098 | WX_ALL="CREATE_LINKS" | |
11099 | ;; | |
11100 | *-*-dgux5* ) | |
11101 | SHARED_LD="${CXX} -shared -o" | |
11102 | PIC_FLAG="-fPIC" | |
11103 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11104 | WX_ALL="CREATE_LINKS" | |
11105 | ;; | |
11106 | *-*-sysv5* ) | |
6b076b40 | 11107 | SHARED_LD="${CXX} -shared -o" |
10f2d63a VZ |
11108 | PIC_FLAG="-fPIC" |
11109 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11110 | WX_ALL="CREATE_LINKS" | |
11111 | ;; | |
11112 | *-*-aix* ) | |
11113 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
11114 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
11115 | ;; | |
1c8183e2 | 11116 | *-*-cygwin* ) |
10f2d63a | 11117 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 11118 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
11119 | if test "$wxUSE_OPENGL" = "yes"; then |
11120 | WX_ALL_INSTALLED="preinstall_gl" | |
11121 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
11122 | else | |
11123 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
11124 | fi | |
10f2d63a | 11125 | ;; |
b12915c1 | 11126 | *-*-mingw32* ) |
18dbb1f6 VZ |
11127 | WX_LIBRARY_NAME_STATIC="lib/libwx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.a" |
11128 | SHARED_LD="${CC} -shared -Wl,--out-implib,${WX_LIBRARY_NAME_STATIC} -o" | |
11129 | TOOLKIT_DEF="${TOOLKIT_DEF} -DWXUSINGDLL=1" | |
11130 | WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
11131 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
11132 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
f6bcfd97 BP |
11133 | if test "$wxUSE_OPENGL" = "yes"; then |
11134 | WX_ALL_INSTALLED="preinstall_gl" | |
18dbb1f6 | 11135 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
f6bcfd97 | 11136 | else |
18dbb1f6 | 11137 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" |
f6bcfd97 | 11138 | fi |
10f2d63a VZ |
11139 | ;; |
11140 | *-pc-os2_emx ) | |
e07802fc VZ |
11141 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
11142 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 11143 | ;; |
b12915c1 | 11144 | *-*-beos* ) |
e2b8b066 | 11145 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
11146 | PIC_FLAG="-fPIC" |
11147 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11148 | WX_ALL="CREATE_LINKS" | |
11149 | ;; | |
10f2d63a | 11150 | *) |
698dcdb6 | 11151 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
11152 | esac |
11153 | ||
11154 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
11155 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 11156 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 11157 | fi |
3711412e | 11158 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
11159 | else |
11160 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 11161 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
11162 | |
11163 | if test "$wxUSE_OPENGL" = "yes"; then | |
11164 | WX_ALL_INSTALLED="preinstall_gl" | |
11165 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
11166 | else | |
11167 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
11168 | fi | |
11169 | ||
11170 | if test "$wxUSE_GUI" = "no"; then | |
11171 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
11172 | fi | |
11173 | ||
3711412e | 11174 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
11175 | fi |
11176 | ||
698dcdb6 VZ |
11177 | |
11178 | for ac_hdr in strings.h | |
10f2d63a | 11179 | do |
698dcdb6 VZ |
11180 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11181 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18dbb1f6 | 11182 | echo "configure:11183: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11183 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11184 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11185 | else | |
11186 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 11187 | #line 11188 "configure" |
10f2d63a | 11188 | #include "confdefs.h" |
698dcdb6 VZ |
11189 | #include <$ac_hdr> |
11190 | EOF | |
11191 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 11192 | { (eval echo configure:11193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11193 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11194 | if test -z "$ac_err"; then | |
11195 | rm -rf conftest* | |
11196 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11197 | else |
698dcdb6 VZ |
11198 | echo "$ac_err" >&5 |
11199 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11200 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11201 | rm -rf conftest* |
11202 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11203 | fi |
698dcdb6 | 11204 | rm -f conftest* |
10f2d63a | 11205 | fi |
698dcdb6 VZ |
11206 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11207 | echo "$ac_t""yes" 1>&6 | |
11208 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11209 | cat >> confdefs.h <<EOF | |
11210 | #define $ac_tr_hdr 1 | |
10f2d63a | 11211 | EOF |
698dcdb6 VZ |
11212 | |
11213 | else | |
11214 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11215 | fi |
11216 | done | |
11217 | ||
698dcdb6 | 11218 | for ac_hdr in stdlib.h |
9cfadba2 | 11219 | do |
698dcdb6 VZ |
11220 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11221 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18dbb1f6 | 11222 | echo "configure:11223: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11223 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11224 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11225 | else | |
11226 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 11227 | #line 11228 "configure" |
9cfadba2 | 11228 | #include "confdefs.h" |
698dcdb6 VZ |
11229 | #include <$ac_hdr> |
11230 | EOF | |
11231 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 11232 | { (eval echo configure:11233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11233 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11234 | if test -z "$ac_err"; then | |
11235 | rm -rf conftest* | |
11236 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 11237 | else |
698dcdb6 VZ |
11238 | echo "$ac_err" >&5 |
11239 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 11240 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11241 | rm -rf conftest* |
11242 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 11243 | fi |
698dcdb6 | 11244 | rm -f conftest* |
9cfadba2 | 11245 | fi |
698dcdb6 VZ |
11246 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11247 | echo "$ac_t""yes" 1>&6 | |
11248 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11249 | cat >> confdefs.h <<EOF | |
11250 | #define $ac_tr_hdr 1 | |
9cfadba2 | 11251 | EOF |
698dcdb6 VZ |
11252 | |
11253 | else | |
11254 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
11255 | fi |
11256 | done | |
10f2d63a | 11257 | |
698dcdb6 | 11258 | for ac_hdr in unistd.h |
10f2d63a | 11259 | do |
698dcdb6 VZ |
11260 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11261 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18dbb1f6 | 11262 | echo "configure:11263: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11263 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11265 | else | |
11266 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 11267 | #line 11268 "configure" |
10f2d63a | 11268 | #include "confdefs.h" |
698dcdb6 VZ |
11269 | #include <$ac_hdr> |
11270 | EOF | |
11271 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 11272 | { (eval echo configure:11273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11273 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11274 | if test -z "$ac_err"; then | |
11275 | rm -rf conftest* | |
11276 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 11277 | else |
698dcdb6 VZ |
11278 | echo "$ac_err" >&5 |
11279 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11280 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11281 | rm -rf conftest* |
11282 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11283 | fi |
698dcdb6 | 11284 | rm -f conftest* |
10f2d63a | 11285 | fi |
698dcdb6 VZ |
11286 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11287 | echo "$ac_t""yes" 1>&6 | |
11288 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11289 | cat >> confdefs.h <<EOF | |
11290 | #define $ac_tr_hdr 1 | |
10f2d63a | 11291 | EOF |
698dcdb6 VZ |
11292 | |
11293 | else | |
11294 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11295 | fi |
11296 | done | |
11297 | ||
698dcdb6 | 11298 | for ac_hdr in wchar.h |
10f2d63a | 11299 | do |
698dcdb6 VZ |
11300 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11301 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18dbb1f6 | 11302 | echo "configure:11303: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11303 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11305 | else | |
11306 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 11307 | #line 11308 "configure" |
10f2d63a | 11308 | #include "confdefs.h" |
698dcdb6 VZ |
11309 | #include <$ac_hdr> |
11310 | EOF | |
11311 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 11312 | { (eval echo configure:11313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11313 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11314 | if test -z "$ac_err"; then | |
11315 | rm -rf conftest* | |
11316 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 11317 | else |
698dcdb6 VZ |
11318 | echo "$ac_err" >&5 |
11319 | echo "configure: failed program was:" >&5 | |
6f72b082 | 11320 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11321 | rm -rf conftest* |
11322 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 11323 | fi |
698dcdb6 | 11324 | rm -f conftest* |
6f72b082 | 11325 | fi |
698dcdb6 VZ |
11326 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11327 | echo "$ac_t""yes" 1>&6 | |
11328 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11329 | cat >> confdefs.h <<EOF | |
11330 | #define $ac_tr_hdr 1 | |
6f72b082 | 11331 | EOF |
698dcdb6 VZ |
11332 | |
11333 | else | |
11334 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11335 | fi |
11336 | done | |
11337 | ||
698dcdb6 | 11338 | for ac_hdr in wcstr.h |
6f72b082 | 11339 | do |
698dcdb6 VZ |
11340 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11341 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18dbb1f6 | 11342 | echo "configure:11343: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11343 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11344 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11345 | else | |
11346 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 11347 | #line 11348 "configure" |
6f72b082 | 11348 | #include "confdefs.h" |
698dcdb6 VZ |
11349 | #include <$ac_hdr> |
11350 | EOF | |
11351 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 11352 | { (eval echo configure:11353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11353 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11354 | if test -z "$ac_err"; then | |
11355 | rm -rf conftest* | |
11356 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 11357 | else |
698dcdb6 VZ |
11358 | echo "$ac_err" >&5 |
11359 | echo "configure: failed program was:" >&5 | |
6f72b082 | 11360 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11361 | rm -rf conftest* |
11362 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 11363 | fi |
698dcdb6 | 11364 | rm -f conftest* |
6f72b082 | 11365 | fi |
698dcdb6 VZ |
11366 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11367 | echo "$ac_t""yes" 1>&6 | |
11368 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11369 | cat >> confdefs.h <<EOF | |
11370 | #define $ac_tr_hdr 1 | |
6f72b082 | 11371 | EOF |
698dcdb6 VZ |
11372 | |
11373 | else | |
11374 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11375 | fi |
11376 | done | |
11377 | ||
698dcdb6 | 11378 | for ac_hdr in fnmatch.h |
6f72b082 | 11379 | do |
698dcdb6 VZ |
11380 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11381 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18dbb1f6 | 11382 | echo "configure:11383: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11383 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11385 | else | |
11386 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 11387 | #line 11388 "configure" |
6f72b082 | 11388 | #include "confdefs.h" |
698dcdb6 VZ |
11389 | #include <$ac_hdr> |
11390 | EOF | |
11391 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 11392 | { (eval echo configure:11393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11393 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11394 | if test -z "$ac_err"; then | |
11395 | rm -rf conftest* | |
11396 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11397 | else |
698dcdb6 VZ |
11398 | echo "$ac_err" >&5 |
11399 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11400 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11401 | rm -rf conftest* |
11402 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11403 | fi |
698dcdb6 | 11404 | rm -f conftest* |
10f2d63a | 11405 | fi |
698dcdb6 VZ |
11406 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11407 | echo "$ac_t""yes" 1>&6 | |
11408 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11409 | cat >> confdefs.h <<EOF | |
11410 | #define $ac_tr_hdr 1 | |
10f2d63a | 11411 | EOF |
698dcdb6 VZ |
11412 | |
11413 | else | |
11414 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11415 | fi |
11416 | done | |
11417 | ||
698dcdb6 | 11418 | for ac_hdr in iconv.h |
0fb0dd83 | 11419 | do |
698dcdb6 VZ |
11420 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11421 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18dbb1f6 | 11422 | echo "configure:11423: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11423 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11424 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11425 | else | |
11426 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 11427 | #line 11428 "configure" |
0fb0dd83 | 11428 | #include "confdefs.h" |
698dcdb6 VZ |
11429 | #include <$ac_hdr> |
11430 | EOF | |
11431 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 11432 | { (eval echo configure:11433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11433 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11434 | if test -z "$ac_err"; then | |
11435 | rm -rf conftest* | |
11436 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 11437 | else |
698dcdb6 VZ |
11438 | echo "$ac_err" >&5 |
11439 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 11440 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11441 | rm -rf conftest* |
11442 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 11443 | fi |
698dcdb6 | 11444 | rm -f conftest* |
0fb0dd83 | 11445 | fi |
698dcdb6 VZ |
11446 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11447 | echo "$ac_t""yes" 1>&6 | |
11448 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11449 | cat >> confdefs.h <<EOF | |
11450 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 11451 | EOF |
698dcdb6 VZ |
11452 | |
11453 | else | |
11454 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
11455 | fi |
11456 | done | |
11457 | ||
698dcdb6 | 11458 | for ac_hdr in langinfo.h |
1f8ae82f | 11459 | do |
698dcdb6 VZ |
11460 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11461 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18dbb1f6 | 11462 | echo "configure:11463: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11463 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11464 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11465 | else | |
11466 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 11467 | #line 11468 "configure" |
1f8ae82f | 11468 | #include "confdefs.h" |
698dcdb6 VZ |
11469 | #include <$ac_hdr> |
11470 | EOF | |
11471 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 11472 | { (eval echo configure:11473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11473 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11474 | if test -z "$ac_err"; then | |
11475 | rm -rf conftest* | |
11476 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 11477 | else |
698dcdb6 VZ |
11478 | echo "$ac_err" >&5 |
11479 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 11480 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11481 | rm -rf conftest* |
11482 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 11483 | fi |
698dcdb6 | 11484 | rm -f conftest* |
1f8ae82f | 11485 | fi |
698dcdb6 VZ |
11486 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11487 | echo "$ac_t""yes" 1>&6 | |
11488 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11489 | cat >> confdefs.h <<EOF | |
11490 | #define $ac_tr_hdr 1 | |
1f8ae82f | 11491 | EOF |
698dcdb6 VZ |
11492 | |
11493 | else | |
11494 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
11495 | fi |
11496 | done | |
11497 | ||
698dcdb6 | 11498 | |
73fd4a60 VZ |
11499 | if test "$wxUSE_GUI" = "yes"; then |
11500 | if test "$wxUSE_UNIX" = "yes"; then | |
698dcdb6 | 11501 | for ac_hdr in X11/XKBlib.h |
10f2d63a | 11502 | do |
698dcdb6 VZ |
11503 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11504 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18dbb1f6 | 11505 | echo "configure:11506: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11506 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11507 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11508 | else | |
11509 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 11510 | #line 11511 "configure" |
10f2d63a | 11511 | #include "confdefs.h" |
698dcdb6 VZ |
11512 | #include <$ac_hdr> |
11513 | EOF | |
11514 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 11515 | { (eval echo configure:11516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11516 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11517 | if test -z "$ac_err"; then | |
11518 | rm -rf conftest* | |
11519 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11520 | else |
698dcdb6 VZ |
11521 | echo "$ac_err" >&5 |
11522 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11523 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11524 | rm -rf conftest* |
11525 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11526 | fi |
698dcdb6 | 11527 | rm -f conftest* |
10f2d63a | 11528 | fi |
698dcdb6 VZ |
11529 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11530 | echo "$ac_t""yes" 1>&6 | |
11531 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11532 | cat >> confdefs.h <<EOF | |
11533 | #define $ac_tr_hdr 1 | |
10f2d63a | 11534 | EOF |
698dcdb6 VZ |
11535 | |
11536 | else | |
11537 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11538 | fi |
11539 | done | |
11540 | ||
73fd4a60 | 11541 | fi |
10f2d63a VZ |
11542 | fi |
11543 | ||
3e44f09d | 11544 | if test "$USE_WIN32" = 1; then |
29fd3c0c VS |
11545 | for ac_hdr in w32api.h |
11546 | do | |
11547 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11548 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18dbb1f6 | 11549 | echo "configure:11550: checking for $ac_hdr" >&5 |
29fd3c0c VS |
11550 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11551 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11552 | else | |
11553 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 11554 | #line 11555 "configure" |
29fd3c0c VS |
11555 | #include "confdefs.h" |
11556 | #include <$ac_hdr> | |
11557 | EOF | |
11558 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 11559 | { (eval echo configure:11560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
11560 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11561 | if test -z "$ac_err"; then | |
11562 | rm -rf conftest* | |
11563 | eval "ac_cv_header_$ac_safe=yes" | |
11564 | else | |
11565 | echo "$ac_err" >&5 | |
11566 | echo "configure: failed program was:" >&5 | |
11567 | cat conftest.$ac_ext >&5 | |
11568 | rm -rf conftest* | |
11569 | eval "ac_cv_header_$ac_safe=no" | |
11570 | fi | |
11571 | rm -f conftest* | |
11572 | fi | |
11573 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11574 | echo "$ac_t""yes" 1>&6 | |
11575 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11576 | cat >> confdefs.h <<EOF | |
11577 | #define $ac_tr_hdr 1 | |
11578 | EOF | |
11579 | ||
11580 | else | |
11581 | echo "$ac_t""no" 1>&6 | |
11582 | fi | |
11583 | done | |
11584 | ||
11585 | fi | |
11586 | ||
698dcdb6 VZ |
11587 | |
11588 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
18dbb1f6 | 11589 | echo "configure:11590: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
11590 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
11591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11592 | else |
698dcdb6 | 11593 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 11594 | #line 11595 "configure" |
10f2d63a VZ |
11595 | #include "confdefs.h" |
11596 | #include <stdlib.h> | |
11597 | #include <stdarg.h> | |
11598 | #include <string.h> | |
11599 | #include <float.h> | |
698dcdb6 VZ |
11600 | EOF |
11601 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 11602 | { (eval echo configure:11603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11603 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11604 | if test -z "$ac_err"; then | |
11605 | rm -rf conftest* | |
10f2d63a VZ |
11606 | ac_cv_header_stdc=yes |
11607 | else | |
698dcdb6 VZ |
11608 | echo "$ac_err" >&5 |
11609 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11610 | cat conftest.$ac_ext >&5 |
698dcdb6 | 11611 | rm -rf conftest* |
10f2d63a VZ |
11612 | ac_cv_header_stdc=no |
11613 | fi | |
698dcdb6 | 11614 | rm -f conftest* |
10f2d63a VZ |
11615 | |
11616 | if test $ac_cv_header_stdc = yes; then | |
11617 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 11618 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 11619 | #line 11620 "configure" |
10f2d63a VZ |
11620 | #include "confdefs.h" |
11621 | #include <string.h> | |
698dcdb6 | 11622 | EOF |
10f2d63a VZ |
11623 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11624 | egrep "memchr" >/dev/null 2>&1; then | |
11625 | : | |
11626 | else | |
698dcdb6 | 11627 | rm -rf conftest* |
10f2d63a VZ |
11628 | ac_cv_header_stdc=no |
11629 | fi | |
11630 | rm -f conftest* | |
11631 | ||
11632 | fi | |
11633 | ||
11634 | if test $ac_cv_header_stdc = yes; then | |
11635 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 11636 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 11637 | #line 11638 "configure" |
10f2d63a VZ |
11638 | #include "confdefs.h" |
11639 | #include <stdlib.h> | |
698dcdb6 | 11640 | EOF |
10f2d63a VZ |
11641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11642 | egrep "free" >/dev/null 2>&1; then | |
11643 | : | |
11644 | else | |
698dcdb6 | 11645 | rm -rf conftest* |
10f2d63a VZ |
11646 | ac_cv_header_stdc=no |
11647 | fi | |
11648 | rm -f conftest* | |
11649 | ||
11650 | fi | |
11651 | ||
11652 | if test $ac_cv_header_stdc = yes; then | |
11653 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 11654 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
11655 | : |
11656 | else | |
698dcdb6 | 11657 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 11658 | #line 11659 "configure" |
10f2d63a VZ |
11659 | #include "confdefs.h" |
11660 | #include <ctype.h> | |
698dcdb6 VZ |
11661 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
11662 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 11663 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
11664 | int main () { int i; for (i = 0; i < 256; i++) |
11665 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
11666 | exit (0); } | |
11667 | ||
11668 | EOF | |
18dbb1f6 | 11669 | if { (eval echo configure:11670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11670 | then |
10f2d63a VZ |
11671 | : |
11672 | else | |
698dcdb6 VZ |
11673 | echo "configure: failed program was:" >&5 |
11674 | cat conftest.$ac_ext >&5 | |
11675 | rm -fr conftest* | |
11676 | ac_cv_header_stdc=no | |
10f2d63a | 11677 | fi |
698dcdb6 | 11678 | rm -fr conftest* |
10f2d63a | 11679 | fi |
698dcdb6 | 11680 | |
10f2d63a VZ |
11681 | fi |
11682 | fi | |
1e487827 | 11683 | |
698dcdb6 VZ |
11684 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
11685 | if test $ac_cv_header_stdc = yes; then | |
11686 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11687 | #define STDC_HEADERS 1 |
11688 | EOF | |
11689 | ||
11690 | fi | |
11691 | ||
698dcdb6 | 11692 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
18dbb1f6 | 11693 | echo "configure:11694: checking for mode_t" >&5 |
698dcdb6 VZ |
11694 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
11695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11696 | else |
698dcdb6 | 11697 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 11698 | #line 11699 "configure" |
1e487827 | 11699 | #include "confdefs.h" |
698dcdb6 VZ |
11700 | #include <sys/types.h> |
11701 | #if STDC_HEADERS | |
11702 | #include <stdlib.h> | |
11703 | #include <stddef.h> | |
11704 | #endif | |
11705 | EOF | |
11706 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11707 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11708 | rm -rf conftest* | |
10f2d63a VZ |
11709 | ac_cv_type_mode_t=yes |
11710 | else | |
698dcdb6 VZ |
11711 | rm -rf conftest* |
11712 | ac_cv_type_mode_t=no | |
703e0a69 | 11713 | fi |
698dcdb6 | 11714 | rm -f conftest* |
1e487827 | 11715 | |
698dcdb6 VZ |
11716 | fi |
11717 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
11718 | if test $ac_cv_type_mode_t = no; then | |
11719 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11720 | #define mode_t int |
11721 | EOF | |
11722 | ||
11723 | fi | |
11724 | ||
698dcdb6 | 11725 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
18dbb1f6 | 11726 | echo "configure:11727: checking for off_t" >&5 |
698dcdb6 VZ |
11727 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
11728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11729 | else |
698dcdb6 | 11730 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 11731 | #line 11732 "configure" |
10f2d63a | 11732 | #include "confdefs.h" |
698dcdb6 VZ |
11733 | #include <sys/types.h> |
11734 | #if STDC_HEADERS | |
11735 | #include <stdlib.h> | |
11736 | #include <stddef.h> | |
11737 | #endif | |
11738 | EOF | |
11739 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11740 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11741 | rm -rf conftest* | |
10f2d63a VZ |
11742 | ac_cv_type_off_t=yes |
11743 | else | |
698dcdb6 VZ |
11744 | rm -rf conftest* |
11745 | ac_cv_type_off_t=no | |
703e0a69 | 11746 | fi |
698dcdb6 | 11747 | rm -f conftest* |
1e487827 | 11748 | |
698dcdb6 VZ |
11749 | fi |
11750 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
11751 | if test $ac_cv_type_off_t = no; then | |
11752 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11753 | #define off_t long |
11754 | EOF | |
11755 | ||
11756 | fi | |
11757 | ||
698dcdb6 | 11758 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
18dbb1f6 | 11759 | echo "configure:11760: checking for pid_t" >&5 |
698dcdb6 VZ |
11760 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
11761 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11762 | else |
698dcdb6 | 11763 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 11764 | #line 11765 "configure" |
10f2d63a | 11765 | #include "confdefs.h" |
698dcdb6 VZ |
11766 | #include <sys/types.h> |
11767 | #if STDC_HEADERS | |
11768 | #include <stdlib.h> | |
11769 | #include <stddef.h> | |
11770 | #endif | |
11771 | EOF | |
11772 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11773 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11774 | rm -rf conftest* | |
10f2d63a VZ |
11775 | ac_cv_type_pid_t=yes |
11776 | else | |
698dcdb6 VZ |
11777 | rm -rf conftest* |
11778 | ac_cv_type_pid_t=no | |
703e0a69 | 11779 | fi |
698dcdb6 | 11780 | rm -f conftest* |
1e487827 | 11781 | |
698dcdb6 VZ |
11782 | fi |
11783 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
11784 | if test $ac_cv_type_pid_t = no; then | |
11785 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11786 | #define pid_t int |
11787 | EOF | |
11788 | ||
11789 | fi | |
11790 | ||
698dcdb6 | 11791 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
18dbb1f6 | 11792 | echo "configure:11793: checking for size_t" >&5 |
698dcdb6 VZ |
11793 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
11794 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11795 | else |
698dcdb6 | 11796 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 11797 | #line 11798 "configure" |
10f2d63a | 11798 | #include "confdefs.h" |
698dcdb6 VZ |
11799 | #include <sys/types.h> |
11800 | #if STDC_HEADERS | |
11801 | #include <stdlib.h> | |
11802 | #include <stddef.h> | |
11803 | #endif | |
11804 | EOF | |
11805 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11806 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11807 | rm -rf conftest* | |
10f2d63a VZ |
11808 | ac_cv_type_size_t=yes |
11809 | else | |
698dcdb6 VZ |
11810 | rm -rf conftest* |
11811 | ac_cv_type_size_t=no | |
703e0a69 | 11812 | fi |
698dcdb6 | 11813 | rm -f conftest* |
1e487827 | 11814 | |
698dcdb6 VZ |
11815 | fi |
11816 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
11817 | if test $ac_cv_type_size_t = no; then | |
11818 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11819 | #define size_t unsigned |
11820 | EOF | |
11821 | ||
11822 | fi | |
11823 | ||
698dcdb6 | 11824 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
18dbb1f6 | 11825 | echo "configure:11826: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
11826 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
11827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11828 | else |
698dcdb6 | 11829 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 11830 | #line 11831 "configure" |
10f2d63a VZ |
11831 | #include "confdefs.h" |
11832 | #include <sys/types.h> | |
698dcdb6 | 11833 | EOF |
10f2d63a VZ |
11834 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11835 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 11836 | rm -rf conftest* |
10f2d63a VZ |
11837 | ac_cv_type_uid_t=yes |
11838 | else | |
698dcdb6 | 11839 | rm -rf conftest* |
10f2d63a VZ |
11840 | ac_cv_type_uid_t=no |
11841 | fi | |
11842 | rm -f conftest* | |
11843 | ||
11844 | fi | |
1e487827 | 11845 | |
698dcdb6 VZ |
11846 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
11847 | if test $ac_cv_type_uid_t = no; then | |
11848 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11849 | #define uid_t int |
11850 | EOF | |
11851 | ||
698dcdb6 | 11852 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11853 | #define gid_t int |
11854 | EOF | |
11855 | ||
11856 | fi | |
11857 | ||
1e487827 | 11858 | |
698dcdb6 | 11859 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
18dbb1f6 | 11860 | echo "configure:11861: checking for wchar_t" >&5 |
698dcdb6 VZ |
11861 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
11862 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11863 | else | |
11864 | ||
11865 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 11866 | #line 11867 "configure" |
0046ff7c VS |
11867 | #include "confdefs.h" |
11868 | #include <wchar.h> | |
698dcdb6 | 11869 | int main() { |
0046ff7c | 11870 | |
d836ee96 VZ |
11871 | wchar_t wc, *ws; |
11872 | wc = L'a'; | |
11873 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11874 | |
11875 | ; return 0; } | |
11876 | EOF | |
18dbb1f6 | 11877 | if { (eval echo configure:11878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11878 | rm -rf conftest* |
1f8ae82f GD |
11879 | wx_cv_type_wchar_t=yes |
11880 | else | |
698dcdb6 VZ |
11881 | echo "configure: failed program was:" >&5 |
11882 | cat conftest.$ac_ext >&5 | |
11883 | rm -rf conftest* | |
11884 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 11885 | #line 11886 "configure" |
1f8ae82f GD |
11886 | #include "confdefs.h" |
11887 | #include <stdlib.h> | |
698dcdb6 | 11888 | int main() { |
1f8ae82f | 11889 | |
d836ee96 VZ |
11890 | wchar_t wc, *ws; |
11891 | wc = L'a'; | |
11892 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11893 | |
11894 | ; return 0; } | |
11895 | EOF | |
18dbb1f6 | 11896 | if { (eval echo configure:11897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11897 | rm -rf conftest* |
0046ff7c VS |
11898 | wx_cv_type_wchar_t=yes |
11899 | else | |
698dcdb6 VZ |
11900 | echo "configure: failed program was:" >&5 |
11901 | cat conftest.$ac_ext >&5 | |
11902 | rm -rf conftest* | |
11903 | wx_cv_type_wchar_t=no | |
0046ff7c | 11904 | fi |
698dcdb6 | 11905 | rm -f conftest* |
d836ee96 | 11906 | |
6232543b | 11907 | fi |
698dcdb6 | 11908 | rm -f conftest* |
703e0a69 | 11909 | |
1e487827 | 11910 | fi |
698dcdb6 VZ |
11911 | |
11912 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
11913 | |
11914 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 11915 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
11916 | #define wxUSE_WCHAR_T 1 |
11917 | EOF | |
11918 | ||
11919 | fi | |
11920 | ||
19af3b06 VZ |
11921 | |
11922 | ac_ext=C | |
11923 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11924 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11925 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11926 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11927 | cross_compiling=$ac_cv_prog_cxx_cross | |
11928 | ||
d836ee96 | 11929 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
18dbb1f6 | 11930 | echo "configure:11931: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
11931 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
11932 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11933 | else | |
dd2c8b7c | 11934 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 11935 | #line 11936 "configure" |
d836ee96 VZ |
11936 | #include "confdefs.h" |
11937 | #include <stddef.h> | |
11938 | int main() { | |
11939 | ||
dd2c8b7c VZ |
11940 | return 0; } |
11941 | ||
d836ee96 | 11942 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
11943 | |
11944 | int bar() { | |
d836ee96 VZ |
11945 | |
11946 | ; return 0; } | |
11947 | EOF | |
18dbb1f6 | 11948 | if { (eval echo configure:11949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11949 | rm -rf conftest* |
11950 | wx_cv_size_t_is_uint=no | |
11951 | else | |
11952 | echo "configure: failed program was:" >&5 | |
11953 | cat conftest.$ac_ext >&5 | |
11954 | rm -rf conftest* | |
11955 | wx_cv_size_t_is_uint=yes | |
11956 | ||
11957 | fi | |
11958 | rm -f conftest* | |
11959 | ||
11960 | fi | |
11961 | ||
11962 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
11963 | ||
11964 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
11965 | cat >> confdefs.h <<\EOF | |
11966 | #define wxSIZE_T_IS_UINT 1 | |
11967 | EOF | |
11968 | ||
11969 | else | |
11970 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
18dbb1f6 | 11971 | echo "configure:11972: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
11972 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
11973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11974 | else | |
11975 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 11976 | #line 11977 "configure" |
d836ee96 VZ |
11977 | #include "confdefs.h" |
11978 | #include <stddef.h> | |
11979 | int main() { | |
11980 | ||
dd2c8b7c VZ |
11981 | return 0; } |
11982 | ||
d836ee96 | 11983 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
11984 | |
11985 | int bar() { | |
d836ee96 VZ |
11986 | |
11987 | ; return 0; } | |
11988 | EOF | |
18dbb1f6 | 11989 | if { (eval echo configure:11990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11990 | rm -rf conftest* |
11991 | wx_cv_size_t_is_ulong=no | |
11992 | else | |
11993 | echo "configure: failed program was:" >&5 | |
11994 | cat conftest.$ac_ext >&5 | |
11995 | rm -rf conftest* | |
11996 | wx_cv_size_t_is_ulong=yes | |
11997 | ||
11998 | fi | |
11999 | rm -f conftest* | |
12000 | ||
12001 | fi | |
12002 | ||
12003 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
12004 | ||
12005 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
12006 | cat >> confdefs.h <<\EOF | |
12007 | #define wxSIZE_T_IS_ULONG 1 | |
12008 | EOF | |
12009 | ||
12010 | fi | |
12011 | fi | |
12012 | ||
19af3b06 VZ |
12013 | ac_ext=c |
12014 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12015 | ac_cpp='$CPP $CPPFLAGS' | |
12016 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12017 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12018 | cross_compiling=$ac_cv_prog_cc_cross | |
12019 | ||
12020 | ||
1e487827 | 12021 | |
698dcdb6 | 12022 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
18dbb1f6 | 12023 | echo "configure:12024: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
12024 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
12025 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12026 | else | |
12027 | ||
12028 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 12029 | #line 12030 "configure" |
b12915c1 VZ |
12030 | #include "confdefs.h" |
12031 | #include <pwd.h> | |
698dcdb6 | 12032 | int main() { |
b12915c1 VZ |
12033 | |
12034 | char *p; | |
12035 | struct passwd *pw; | |
12036 | p = pw->pw_gecos; | |
698dcdb6 VZ |
12037 | |
12038 | ; return 0; } | |
12039 | EOF | |
18dbb1f6 | 12040 | if { (eval echo configure:12041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12041 | rm -rf conftest* |
12042 | ||
b12915c1 | 12043 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 12044 | |
b12915c1 | 12045 | else |
698dcdb6 VZ |
12046 | echo "configure: failed program was:" >&5 |
12047 | cat conftest.$ac_ext >&5 | |
12048 | rm -rf conftest* | |
12049 | ||
b12915c1 | 12050 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
12051 | |
12052 | ||
6232543b | 12053 | fi |
698dcdb6 VZ |
12054 | rm -f conftest* |
12055 | ||
703e0a69 | 12056 | |
1e487827 | 12057 | fi |
698dcdb6 VZ |
12058 | |
12059 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 12060 | |
bd3277fe | 12061 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 12062 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
12063 | #define HAVE_PW_GECOS 1 |
12064 | EOF | |
12065 | ||
12066 | fi | |
12067 | ||
698dcdb6 VZ |
12068 | |
12069 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
18dbb1f6 | 12070 | echo "configure:12071: checking for working const" >&5 |
698dcdb6 VZ |
12071 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
12072 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12073 | else |
698dcdb6 | 12074 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 12075 | #line 12076 "configure" |
10f2d63a | 12076 | #include "confdefs.h" |
698dcdb6 VZ |
12077 | |
12078 | int main() { | |
12079 | ||
12080 | /* Ultrix mips cc rejects this. */ | |
12081 | typedef int charset[2]; const charset x; | |
12082 | /* SunOS 4.1.1 cc rejects this. */ | |
12083 | char const *const *ccp; | |
12084 | char **p; | |
12085 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12086 | struct point {int x, y;}; | |
12087 | static struct point const zero = {0,0}; | |
12088 | /* AIX XL C 1.02.0.0 rejects this. | |
12089 | It does not let you subtract one const X* pointer from another in an arm | |
12090 | of an if-expression whose if-part is not a constant expression */ | |
12091 | const char *g = "string"; | |
12092 | ccp = &g + (g ? g-g : 0); | |
12093 | /* HPUX 7.0 cc rejects these. */ | |
12094 | ++ccp; | |
12095 | p = (char**) ccp; | |
12096 | ccp = (char const *const *) p; | |
12097 | { /* SCO 3.2v4 cc rejects this. */ | |
12098 | char *t; | |
12099 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
12100 | ||
12101 | *t++ = 0; | |
10f2d63a | 12102 | } |
698dcdb6 VZ |
12103 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
12104 | int x[] = {25, 17}; | |
12105 | const int *foo = &x[0]; | |
12106 | ++foo; | |
703e0a69 | 12107 | } |
698dcdb6 VZ |
12108 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
12109 | typedef const int *iptr; | |
12110 | iptr p = 0; | |
12111 | ++p; | |
6232543b | 12112 | } |
698dcdb6 VZ |
12113 | { /* AIX XL C 1.02.0.0 rejects this saying |
12114 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12115 | struct s { int j; const int *ap[3]; }; | |
12116 | struct s *b; b->j = 5; | |
1e487827 | 12117 | } |
698dcdb6 VZ |
12118 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
12119 | const int foo = 10; | |
12120 | } | |
12121 | ||
12122 | ; return 0; } | |
12123 | EOF | |
18dbb1f6 | 12124 | if { (eval echo configure:12125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12125 | rm -rf conftest* |
10f2d63a VZ |
12126 | ac_cv_c_const=yes |
12127 | else | |
698dcdb6 VZ |
12128 | echo "configure: failed program was:" >&5 |
12129 | cat conftest.$ac_ext >&5 | |
12130 | rm -rf conftest* | |
12131 | ac_cv_c_const=no | |
10f2d63a | 12132 | fi |
698dcdb6 | 12133 | rm -f conftest* |
10f2d63a | 12134 | fi |
1e487827 | 12135 | |
698dcdb6 VZ |
12136 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
12137 | if test $ac_cv_c_const = no; then | |
12138 | cat >> confdefs.h <<\EOF | |
12139 | #define const | |
10f2d63a VZ |
12140 | EOF |
12141 | ||
12142 | fi | |
12143 | ||
698dcdb6 | 12144 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
18dbb1f6 | 12145 | echo "configure:12146: checking for inline" >&5 |
698dcdb6 VZ |
12146 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
12147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12148 | else |
12149 | ac_cv_c_inline=no | |
12150 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 12151 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 12152 | #line 12153 "configure" |
10f2d63a VZ |
12153 | #include "confdefs.h" |
12154 | ||
698dcdb6 VZ |
12155 | int main() { |
12156 | } $ac_kw foo() { | |
12157 | ; return 0; } | |
12158 | EOF | |
18dbb1f6 | 12159 | if { (eval echo configure:12160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12160 | rm -rf conftest* |
10f2d63a VZ |
12161 | ac_cv_c_inline=$ac_kw; break |
12162 | else | |
698dcdb6 VZ |
12163 | echo "configure: failed program was:" >&5 |
12164 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12165 | fi |
698dcdb6 | 12166 | rm -f conftest* |
10f2d63a VZ |
12167 | done |
12168 | ||
12169 | fi | |
698dcdb6 VZ |
12170 | |
12171 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
12172 | case "$ac_cv_c_inline" in | |
10f2d63a | 12173 | inline | yes) ;; |
698dcdb6 VZ |
12174 | no) cat >> confdefs.h <<\EOF |
12175 | #define inline | |
10f2d63a VZ |
12176 | EOF |
12177 | ;; | |
698dcdb6 | 12178 | *) cat >> confdefs.h <<EOF |
10f2d63a VZ |
12179 | #define inline $ac_cv_c_inline |
12180 | EOF | |
12181 | ;; | |
12182 | esac | |
12183 | ||
698dcdb6 VZ |
12184 | |
12185 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
18dbb1f6 | 12186 | echo "configure:12187: checking size of char" >&5 |
698dcdb6 VZ |
12187 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
12188 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b | 12189 | else |
1e487827 | 12190 | if test "$cross_compiling" = yes; then |
698dcdb6 | 12191 | ac_cv_sizeof_char=1 |
1e487827 | 12192 | else |
698dcdb6 | 12193 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 12194 | #line 12195 "configure" |
1e487827 | 12195 | #include "confdefs.h" |
698dcdb6 VZ |
12196 | #include <stdio.h> |
12197 | main() | |
1e487827 | 12198 | { |
698dcdb6 VZ |
12199 | FILE *f=fopen("conftestval", "w"); |
12200 | if (!f) exit(1); | |
12201 | fprintf(f, "%d\n", sizeof(char)); | |
12202 | exit(0); | |
1e487827 | 12203 | } |
698dcdb6 | 12204 | EOF |
18dbb1f6 | 12205 | if { (eval echo configure:12206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12206 | then |
12207 | ac_cv_sizeof_char=`cat conftestval` | |
1e487827 | 12208 | else |
698dcdb6 VZ |
12209 | echo "configure: failed program was:" >&5 |
12210 | cat conftest.$ac_ext >&5 | |
12211 | rm -fr conftest* | |
1e487827 VS |
12212 | ac_cv_sizeof_char=0 |
12213 | fi | |
698dcdb6 | 12214 | rm -fr conftest* |
1e487827 | 12215 | fi |
10f2d63a | 12216 | |
1e487827 | 12217 | fi |
698dcdb6 VZ |
12218 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
12219 | cat >> confdefs.h <<EOF | |
12220 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
1e487827 | 12221 | EOF |
6232543b | 12222 | |
703e0a69 | 12223 | |
698dcdb6 | 12224 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
18dbb1f6 | 12225 | echo "configure:12226: checking size of short" >&5 |
698dcdb6 VZ |
12226 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
12227 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 12228 | else |
1e487827 | 12229 | if test "$cross_compiling" = yes; then |
698dcdb6 | 12230 | ac_cv_sizeof_short=2 |
1e487827 | 12231 | else |
698dcdb6 | 12232 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 12233 | #line 12234 "configure" |
1e487827 | 12234 | #include "confdefs.h" |
698dcdb6 VZ |
12235 | #include <stdio.h> |
12236 | main() | |
1e487827 | 12237 | { |
698dcdb6 VZ |
12238 | FILE *f=fopen("conftestval", "w"); |
12239 | if (!f) exit(1); | |
12240 | fprintf(f, "%d\n", sizeof(short)); | |
12241 | exit(0); | |
1e487827 | 12242 | } |
698dcdb6 | 12243 | EOF |
18dbb1f6 | 12244 | if { (eval echo configure:12245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12245 | then |
12246 | ac_cv_sizeof_short=`cat conftestval` | |
1e487827 | 12247 | else |
698dcdb6 VZ |
12248 | echo "configure: failed program was:" >&5 |
12249 | cat conftest.$ac_ext >&5 | |
12250 | rm -fr conftest* | |
12251 | ac_cv_sizeof_short=0 | |
1e487827 | 12252 | fi |
698dcdb6 | 12253 | rm -fr conftest* |
1e487827 | 12254 | fi |
698dcdb6 | 12255 | |
1e487827 | 12256 | fi |
698dcdb6 VZ |
12257 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
12258 | cat >> confdefs.h <<EOF | |
12259 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
12260 | EOF | |
12261 | ||
12262 | ||
12263 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
18dbb1f6 | 12264 | echo "configure:12265: checking size of int *" >&5 |
698dcdb6 VZ |
12265 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
12266 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12267 | else |
12268 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12269 | ac_cv_sizeof_int_p=4 |
10f2d63a | 12270 | else |
698dcdb6 | 12271 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 12272 | #line 12273 "configure" |
10f2d63a | 12273 | #include "confdefs.h" |
698dcdb6 VZ |
12274 | #include <stdio.h> |
12275 | main() | |
10f2d63a | 12276 | { |
698dcdb6 VZ |
12277 | FILE *f=fopen("conftestval", "w"); |
12278 | if (!f) exit(1); | |
12279 | fprintf(f, "%d\n", sizeof(int *)); | |
12280 | exit(0); | |
10f2d63a | 12281 | } |
698dcdb6 | 12282 | EOF |
18dbb1f6 | 12283 | if { (eval echo configure:12284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12284 | then |
12285 | ac_cv_sizeof_int_p=`cat conftestval` | |
10f2d63a | 12286 | else |
698dcdb6 VZ |
12287 | echo "configure: failed program was:" >&5 |
12288 | cat conftest.$ac_ext >&5 | |
12289 | rm -fr conftest* | |
12290 | ac_cv_sizeof_int_p=0 | |
6232543b | 12291 | fi |
698dcdb6 | 12292 | rm -fr conftest* |
1e487827 | 12293 | fi |
698dcdb6 | 12294 | |
1e487827 | 12295 | fi |
698dcdb6 VZ |
12296 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 |
12297 | cat >> confdefs.h <<EOF | |
12298 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
12299 | EOF |
12300 | ||
698dcdb6 VZ |
12301 | |
12302 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
18dbb1f6 | 12303 | echo "configure:12304: checking size of int" >&5 |
698dcdb6 VZ |
12304 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
12305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12306 | else |
12307 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12308 | ac_cv_sizeof_int=4 |
703e0a69 | 12309 | else |
698dcdb6 | 12310 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 12311 | #line 12312 "configure" |
1e487827 | 12312 | #include "confdefs.h" |
698dcdb6 VZ |
12313 | #include <stdio.h> |
12314 | main() | |
1e487827 | 12315 | { |
698dcdb6 VZ |
12316 | FILE *f=fopen("conftestval", "w"); |
12317 | if (!f) exit(1); | |
12318 | fprintf(f, "%d\n", sizeof(int)); | |
12319 | exit(0); | |
1e487827 | 12320 | } |
698dcdb6 | 12321 | EOF |
18dbb1f6 | 12322 | if { (eval echo configure:12323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12323 | then |
12324 | ac_cv_sizeof_int=`cat conftestval` | |
12325 | else | |
12326 | echo "configure: failed program was:" >&5 | |
12327 | cat conftest.$ac_ext >&5 | |
12328 | rm -fr conftest* | |
12329 | ac_cv_sizeof_int=0 | |
703e0a69 | 12330 | fi |
698dcdb6 VZ |
12331 | rm -fr conftest* |
12332 | fi | |
12333 | ||
12334 | fi | |
12335 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
12336 | cat >> confdefs.h <<EOF | |
12337 | #define SIZEOF_INT $ac_cv_sizeof_int | |
12338 | EOF | |
12339 | ||
12340 | ||
12341 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
18dbb1f6 | 12342 | echo "configure:12343: checking size of long" >&5 |
698dcdb6 VZ |
12343 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
12344 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12345 | else |
12346 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 12347 | ac_cv_sizeof_long=4 |
10f2d63a | 12348 | else |
698dcdb6 | 12349 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 12350 | #line 12351 "configure" |
10f2d63a | 12351 | #include "confdefs.h" |
698dcdb6 VZ |
12352 | #include <stdio.h> |
12353 | main() | |
10f2d63a | 12354 | { |
698dcdb6 VZ |
12355 | FILE *f=fopen("conftestval", "w"); |
12356 | if (!f) exit(1); | |
12357 | fprintf(f, "%d\n", sizeof(long)); | |
12358 | exit(0); | |
10f2d63a | 12359 | } |
698dcdb6 | 12360 | EOF |
18dbb1f6 | 12361 | if { (eval echo configure:12362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12362 | then |
12363 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 12364 | else |
698dcdb6 VZ |
12365 | echo "configure: failed program was:" >&5 |
12366 | cat conftest.$ac_ext >&5 | |
12367 | rm -fr conftest* | |
12368 | ac_cv_sizeof_long=0 | |
10f2d63a | 12369 | fi |
698dcdb6 | 12370 | rm -fr conftest* |
10f2d63a | 12371 | fi |
698dcdb6 | 12372 | |
10f2d63a | 12373 | fi |
698dcdb6 VZ |
12374 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
12375 | cat >> confdefs.h <<EOF | |
12376 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12377 | EOF | |
12378 | ||
12379 | ||
12380 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
18dbb1f6 | 12381 | echo "configure:12382: checking size of long long" >&5 |
698dcdb6 VZ |
12382 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
12383 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12384 | else | |
12385 | if test "$cross_compiling" = yes; then | |
12386 | ac_cv_sizeof_long_long=0 | |
12387 | else | |
12388 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 12389 | #line 12390 "configure" |
698dcdb6 VZ |
12390 | #include "confdefs.h" |
12391 | #include <stdio.h> | |
12392 | main() | |
12393 | { | |
12394 | FILE *f=fopen("conftestval", "w"); | |
12395 | if (!f) exit(1); | |
12396 | fprintf(f, "%d\n", sizeof(long long)); | |
12397 | exit(0); | |
12398 | } | |
12399 | EOF | |
18dbb1f6 | 12400 | if { (eval echo configure:12401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12401 | then |
12402 | ac_cv_sizeof_long_long=`cat conftestval` | |
6232543b | 12403 | else |
698dcdb6 VZ |
12404 | echo "configure: failed program was:" >&5 |
12405 | cat conftest.$ac_ext >&5 | |
12406 | rm -fr conftest* | |
6232543b VS |
12407 | ac_cv_sizeof_long_long=0 |
12408 | fi | |
698dcdb6 VZ |
12409 | rm -fr conftest* |
12410 | fi | |
12411 | ||
703e0a69 | 12412 | fi |
698dcdb6 VZ |
12413 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
12414 | cat >> confdefs.h <<EOF | |
10f2d63a VZ |
12415 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
12416 | EOF | |
12417 | ||
1e487827 | 12418 | |
698dcdb6 VZ |
12419 | |
12420 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
18dbb1f6 | 12421 | echo "configure:12422: checking size of wchar_t" >&5 |
698dcdb6 VZ |
12422 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
12423 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12424 | else | |
12425 | ||
b93d0d08 VS |
12426 | if test "$cross_compiling" = yes; then |
12427 | wx_cv_sizeof_wchar_t=4 | |
1e6feb95 | 12428 | |
b93d0d08 | 12429 | else |
698dcdb6 | 12430 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 12431 | #line 12432 "configure" |
b93d0d08 VS |
12432 | #include "confdefs.h" |
12433 | ||
1e6feb95 VZ |
12434 | #ifdef HAVE_WCHAR_H |
12435 | # include <wchar.h> | |
12436 | #endif | |
12437 | #ifdef HAVE_STDLIB_H | |
12438 | # include <stdlib.h> | |
12439 | #endif | |
12440 | #include <stdio.h> | |
12441 | int main() | |
12442 | { | |
12443 | FILE *f=fopen("conftestval", "w"); | |
12444 | if (!f) exit(1); | |
12445 | fprintf(f, "%i", sizeof(wchar_t)); | |
12446 | exit(0); | |
12447 | } | |
698dcdb6 VZ |
12448 | |
12449 | EOF | |
18dbb1f6 | 12450 | if { (eval echo configure:12451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12451 | then |
b93d0d08 VS |
12452 | wx_cv_sizeof_wchar_t=`cat conftestval` |
12453 | else | |
698dcdb6 VZ |
12454 | echo "configure: failed program was:" >&5 |
12455 | cat conftest.$ac_ext >&5 | |
12456 | rm -fr conftest* | |
12457 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 12458 | fi |
698dcdb6 | 12459 | rm -fr conftest* |
b93d0d08 VS |
12460 | fi |
12461 | ||
698dcdb6 | 12462 | |
b93d0d08 VS |
12463 | fi |
12464 | ||
698dcdb6 VZ |
12465 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
12466 | ||
12467 | cat >> confdefs.h <<EOF | |
28c6addc | 12468 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
12469 | EOF |
12470 | ||
698dcdb6 | 12471 | |
698dcdb6 | 12472 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
18dbb1f6 | 12473 | echo "configure:12474: checking whether byte ordering is bigendian" >&5 |
698dcdb6 VZ |
12474 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
12475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12476 | else |
12477 | ac_cv_c_bigendian=unknown | |
12478 | # See if sys/param.h defines the BYTE_ORDER macro. | |
698dcdb6 | 12479 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 12480 | #line 12481 "configure" |
10f2d63a VZ |
12481 | #include "confdefs.h" |
12482 | #include <sys/types.h> | |
12483 | #include <sys/param.h> | |
698dcdb6 | 12484 | int main() { |
10f2d63a VZ |
12485 | |
12486 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
12487 | bogus endian macros | |
12488 | #endif | |
698dcdb6 VZ |
12489 | ; return 0; } |
12490 | EOF | |
18dbb1f6 | 12491 | if { (eval echo configure:12492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12492 | rm -rf conftest* |
10f2d63a | 12493 | # It does; now see whether it defined to BIG_ENDIAN or not. |
698dcdb6 | 12494 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 12495 | #line 12496 "configure" |
10f2d63a VZ |
12496 | #include "confdefs.h" |
12497 | #include <sys/types.h> | |
12498 | #include <sys/param.h> | |
698dcdb6 | 12499 | int main() { |
10f2d63a VZ |
12500 | |
12501 | #if BYTE_ORDER != BIG_ENDIAN | |
12502 | not big endian | |
12503 | #endif | |
698dcdb6 VZ |
12504 | ; return 0; } |
12505 | EOF | |
18dbb1f6 | 12506 | if { (eval echo configure:12507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12507 | rm -rf conftest* |
10f2d63a VZ |
12508 | ac_cv_c_bigendian=yes |
12509 | else | |
698dcdb6 VZ |
12510 | echo "configure: failed program was:" >&5 |
12511 | cat conftest.$ac_ext >&5 | |
12512 | rm -rf conftest* | |
12513 | ac_cv_c_bigendian=no | |
10f2d63a | 12514 | fi |
698dcdb6 | 12515 | rm -f conftest* |
10f2d63a | 12516 | else |
698dcdb6 VZ |
12517 | echo "configure: failed program was:" >&5 |
12518 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12519 | fi |
698dcdb6 | 12520 | rm -f conftest* |
10f2d63a VZ |
12521 | if test $ac_cv_c_bigendian = unknown; then |
12522 | if test "$cross_compiling" = yes; then | |
12523 | ac_cv_c_bigendian=unknown | |
12524 | else | |
698dcdb6 | 12525 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 12526 | #line 12527 "configure" |
10f2d63a VZ |
12527 | #include "confdefs.h" |
12528 | main () { | |
12529 | /* Are we little or big endian? From Harbison&Steele. */ | |
12530 | union | |
12531 | { | |
12532 | long l; | |
12533 | char c[sizeof (long)]; | |
12534 | } u; | |
12535 | u.l = 1; | |
12536 | exit (u.c[sizeof (long) - 1] == 1); | |
12537 | } | |
698dcdb6 | 12538 | EOF |
18dbb1f6 | 12539 | if { (eval echo configure:12540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12540 | then |
10f2d63a VZ |
12541 | ac_cv_c_bigendian=no |
12542 | else | |
698dcdb6 VZ |
12543 | echo "configure: failed program was:" >&5 |
12544 | cat conftest.$ac_ext >&5 | |
12545 | rm -fr conftest* | |
12546 | ac_cv_c_bigendian=yes | |
10f2d63a | 12547 | fi |
698dcdb6 | 12548 | rm -fr conftest* |
10f2d63a | 12549 | fi |
698dcdb6 | 12550 | |
10f2d63a VZ |
12551 | fi |
12552 | fi | |
698dcdb6 VZ |
12553 | |
12554 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10f2d63a | 12555 | if test $ac_cv_c_bigendian = unknown; then |
698dcdb6 | 12556 | 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 |
10f2d63a VZ |
12557 | fi |
12558 | if test $ac_cv_c_bigendian = yes; then | |
698dcdb6 | 12559 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12560 | #define WORDS_BIGENDIAN 1 |
12561 | EOF | |
12562 | ||
12563 | fi | |
12564 | ||
698dcdb6 VZ |
12565 | |
12566 | ||
10f2d63a | 12567 | if test "$cross_compiling" = "yes"; then |
698dcdb6 | 12568 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12569 | #define wxUSE_IOSTREAMH 1 |
12570 | EOF | |
12571 | ||
12572 | else | |
698dcdb6 VZ |
12573 | |
12574 | ac_ext=C | |
12575 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12576 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12577 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12578 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12579 | cross_compiling=$ac_cv_prog_cxx_cross | |
12580 | ||
703e0a69 | 12581 | |
698dcdb6 | 12582 | for ac_hdr in iostream |
10f2d63a | 12583 | do |
698dcdb6 VZ |
12584 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12585 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18dbb1f6 | 12586 | echo "configure:12587: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12587 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12589 | else | |
12590 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 12591 | #line 12592 "configure" |
10f2d63a | 12592 | #include "confdefs.h" |
698dcdb6 VZ |
12593 | #include <$ac_hdr> |
12594 | EOF | |
12595 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 12596 | { (eval echo configure:12597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12597 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12598 | if test -z "$ac_err"; then | |
12599 | rm -rf conftest* | |
12600 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12601 | else |
698dcdb6 VZ |
12602 | echo "$ac_err" >&5 |
12603 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12604 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12605 | rm -rf conftest* |
12606 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12607 | fi |
698dcdb6 | 12608 | rm -f conftest* |
10f2d63a | 12609 | fi |
698dcdb6 VZ |
12610 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12611 | echo "$ac_t""yes" 1>&6 | |
12612 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12613 | cat >> confdefs.h <<EOF | |
12614 | #define $ac_tr_hdr 1 | |
10f2d63a | 12615 | EOF |
698dcdb6 VZ |
12616 | |
12617 | else | |
12618 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12619 | fi |
12620 | done | |
12621 | ||
698dcdb6 | 12622 | |
57fe5ed0 VZ |
12623 | if test "$ac_cv_header_iostream" = "yes" ; then |
12624 | : | |
12625 | else | |
698dcdb6 | 12626 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12627 | #define wxUSE_IOSTREAMH 1 |
12628 | EOF | |
12629 | ||
10f2d63a VZ |
12630 | fi |
12631 | ||
12632 | ac_ext=c | |
698dcdb6 | 12633 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12634 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12635 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12636 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12637 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a VZ |
12638 | |
12639 | fi | |
12640 | ||
703e0a69 | 12641 | |
698dcdb6 VZ |
12642 | |
12643 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
18dbb1f6 | 12644 | echo "configure:12645: checking if C++ compiler supports bool" >&5 |
698dcdb6 VZ |
12645 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
12646 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12647 | else | |
12648 | ||
12649 | ||
12650 | ac_ext=C | |
12651 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12652 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12653 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12654 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12655 | cross_compiling=$ac_cv_prog_cxx_cross | |
10f2d63a | 12656 | |
698dcdb6 VZ |
12657 | |
12658 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 12659 | #line 12660 "configure" |
10f2d63a VZ |
12660 | #include "confdefs.h" |
12661 | ||
698dcdb6 VZ |
12662 | |
12663 | int main() { | |
10f2d63a VZ |
12664 | |
12665 | bool b = true; | |
12666 | ||
12667 | return 0; | |
698dcdb6 VZ |
12668 | |
12669 | ; return 0; } | |
12670 | EOF | |
18dbb1f6 | 12671 | if { (eval echo configure:12672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12672 | rm -rf conftest* |
12673 | ||
10f2d63a | 12674 | wx_cv_cpp_bool=yes |
698dcdb6 | 12675 | |
10f2d63a | 12676 | else |
698dcdb6 VZ |
12677 | echo "configure: failed program was:" >&5 |
12678 | cat conftest.$ac_ext >&5 | |
12679 | rm -rf conftest* | |
12680 | ||
10f2d63a | 12681 | wx_cv_cpp_bool=no |
698dcdb6 VZ |
12682 | |
12683 | ||
10f2d63a | 12684 | fi |
698dcdb6 | 12685 | rm -f conftest* |
10f2d63a VZ |
12686 | |
12687 | ac_ext=c | |
698dcdb6 | 12688 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12689 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12690 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12691 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12692 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12693 | |
698dcdb6 | 12694 | |
10f2d63a | 12695 | fi |
698dcdb6 VZ |
12696 | |
12697 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10f2d63a VZ |
12698 | |
12699 | if test "$wx_cv_cpp_bool" = "yes"; then | |
698dcdb6 | 12700 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12701 | #define HAVE_BOOL 1 |
12702 | EOF | |
12703 | ||
12704 | fi | |
12705 | ||
1e487827 | 12706 | |
698dcdb6 | 12707 | |
698dcdb6 | 12708 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 |
18dbb1f6 | 12709 | echo "configure:12710: checking for wcslen in -lc" >&5 |
698dcdb6 VZ |
12710 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
12711 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12712 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12713 | else |
698dcdb6 | 12714 | ac_save_LIBS="$LIBS" |
10f2d63a | 12715 | LIBS="-lc $LIBS" |
698dcdb6 | 12716 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 12717 | #line 12718 "configure" |
10f2d63a VZ |
12718 | #include "confdefs.h" |
12719 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12720 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12721 | builtin and then its argument prototype would still apply. */ |
12722 | char wcslen(); | |
12723 | ||
12724 | int main() { | |
12725 | wcslen() | |
12726 | ; return 0; } | |
12727 | EOF | |
18dbb1f6 | 12728 | if { (eval echo configure:12729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12729 | rm -rf conftest* |
12730 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12731 | else | |
12732 | echo "configure: failed program was:" >&5 | |
12733 | cat conftest.$ac_ext >&5 | |
12734 | rm -rf conftest* | |
12735 | eval "ac_cv_lib_$ac_lib_var=no" | |
12736 | fi | |
12737 | rm -f conftest* | |
12738 | LIBS="$ac_save_LIBS" | |
12739 | ||
12740 | fi | |
12741 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12742 | echo "$ac_t""yes" 1>&6 | |
12743 | ||
12744 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12745 | #define HAVE_WCSLEN 1 |
12746 | EOF | |
12747 | ||
12748 | WCHAR_LINK="" | |
698dcdb6 | 12749 | |
10f2d63a | 12750 | else |
698dcdb6 | 12751 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12752 | |
698dcdb6 | 12753 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
18dbb1f6 | 12754 | echo "configure:12755: checking for wcslen in -lw" >&5 |
698dcdb6 VZ |
12755 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
12756 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12757 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12758 | else |
698dcdb6 | 12759 | ac_save_LIBS="$LIBS" |
10f2d63a | 12760 | LIBS="-lw $LIBS" |
698dcdb6 | 12761 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 12762 | #line 12763 "configure" |
10f2d63a VZ |
12763 | #include "confdefs.h" |
12764 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12765 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12766 | builtin and then its argument prototype would still apply. */ |
12767 | char wcslen(); | |
12768 | ||
12769 | int main() { | |
12770 | wcslen() | |
12771 | ; return 0; } | |
12772 | EOF | |
18dbb1f6 | 12773 | if { (eval echo configure:12774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12774 | rm -rf conftest* |
12775 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12776 | else | |
12777 | echo "configure: failed program was:" >&5 | |
12778 | cat conftest.$ac_ext >&5 | |
12779 | rm -rf conftest* | |
12780 | eval "ac_cv_lib_$ac_lib_var=no" | |
12781 | fi | |
12782 | rm -f conftest* | |
12783 | LIBS="$ac_save_LIBS" | |
12784 | ||
12785 | fi | |
12786 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12787 | echo "$ac_t""yes" 1>&6 | |
12788 | ||
12789 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12790 | #define HAVE_WCSLEN 1 |
12791 | EOF | |
12792 | ||
12793 | WCHAR_LINK="-lw" | |
698dcdb6 | 12794 | |
18dbb1f6 VZ |
12795 | else |
12796 | echo "$ac_t""no" 1>&6 | |
12797 | ||
12798 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 | |
12799 | echo "configure:12800: checking for wcslen in -lmsvcrt" >&5 | |
12800 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` | |
12801 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12802 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12803 | else | |
12804 | ac_save_LIBS="$LIBS" | |
12805 | LIBS="-lmsvcrt $LIBS" | |
12806 | cat > conftest.$ac_ext <<EOF | |
12807 | #line 12808 "configure" | |
12808 | #include "confdefs.h" | |
12809 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12810 | /* We use char because int might match the return type of a gcc2 | |
12811 | builtin and then its argument prototype would still apply. */ | |
12812 | char wcslen(); | |
12813 | ||
12814 | int main() { | |
12815 | wcslen() | |
12816 | ; return 0; } | |
12817 | EOF | |
12818 | if { (eval echo configure:12819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12819 | rm -rf conftest* | |
12820 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12821 | else | |
12822 | echo "configure: failed program was:" >&5 | |
12823 | cat conftest.$ac_ext >&5 | |
12824 | rm -rf conftest* | |
12825 | eval "ac_cv_lib_$ac_lib_var=no" | |
12826 | fi | |
12827 | rm -f conftest* | |
12828 | LIBS="$ac_save_LIBS" | |
12829 | ||
12830 | fi | |
12831 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12832 | echo "$ac_t""yes" 1>&6 | |
12833 | ||
12834 | cat >> confdefs.h <<\EOF | |
12835 | #define HAVE_WCSLEN 1 | |
12836 | EOF | |
12837 | ||
12838 | WCHAR_LINK="" | |
12839 | ||
698dcdb6 VZ |
12840 | else |
12841 | echo "$ac_t""no" 1>&6 | |
6232543b | 12842 | fi |
10f2d63a | 12843 | |
18dbb1f6 VZ |
12844 | |
12845 | fi | |
12846 | ||
698dcdb6 | 12847 | |
1e487827 | 12848 | fi |
703e0a69 | 12849 | |
698dcdb6 VZ |
12850 | |
12851 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
18dbb1f6 | 12852 | echo "configure:12853: checking for vprintf" >&5 |
698dcdb6 VZ |
12853 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
12854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12855 | else | |
12856 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 12857 | #line 12858 "configure" |
10f2d63a VZ |
12858 | #include "confdefs.h" |
12859 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12860 | which can conflict with char vprintf(); below. */ |
10f2d63a VZ |
12861 | #include <assert.h> |
12862 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12863 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12864 | builtin and then its argument prototype would still apply. */ |
12865 | char vprintf(); | |
12866 | ||
12867 | int main() { | |
10f2d63a VZ |
12868 | |
12869 | /* The GNU C library defines this for functions which it implements | |
12870 | to always fail with ENOSYS. Some functions are actually named | |
12871 | something starting with __ and the normal name is an alias. */ | |
698dcdb6 | 12872 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
10f2d63a VZ |
12873 | choke me |
12874 | #else | |
698dcdb6 | 12875 | vprintf(); |
10f2d63a VZ |
12876 | #endif |
12877 | ||
698dcdb6 VZ |
12878 | ; return 0; } |
12879 | EOF | |
18dbb1f6 | 12880 | if { (eval echo configure:12881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12881 | rm -rf conftest* |
12882 | eval "ac_cv_func_vprintf=yes" | |
12883 | else | |
12884 | echo "configure: failed program was:" >&5 | |
12885 | cat conftest.$ac_ext >&5 | |
12886 | rm -rf conftest* | |
12887 | eval "ac_cv_func_vprintf=no" | |
12888 | fi | |
12889 | rm -f conftest* | |
12890 | fi | |
12891 | ||
12892 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
12893 | echo "$ac_t""yes" 1>&6 | |
12894 | cat >> confdefs.h <<\EOF | |
12895 | #define HAVE_VPRINTF 1 | |
12896 | EOF | |
12897 | ||
12898 | else | |
12899 | echo "$ac_t""no" 1>&6 | |
12900 | fi | |
12901 | ||
12902 | if test "$ac_cv_func_vprintf" != yes; then | |
12903 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
18dbb1f6 | 12904 | echo "configure:12905: checking for _doprnt" >&5 |
698dcdb6 VZ |
12905 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
12906 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12907 | else | |
12908 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 12909 | #line 12910 "configure" |
10f2d63a VZ |
12910 | #include "confdefs.h" |
12911 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12912 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
12913 | #include <assert.h> |
12914 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12915 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12916 | builtin and then its argument prototype would still apply. */ |
12917 | char _doprnt(); | |
12918 | ||
12919 | int main() { | |
10f2d63a VZ |
12920 | |
12921 | /* The GNU C library defines this for functions which it implements | |
12922 | to always fail with ENOSYS. Some functions are actually named | |
12923 | something starting with __ and the normal name is an alias. */ | |
12924 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
12925 | choke me | |
12926 | #else | |
698dcdb6 | 12927 | _doprnt(); |
10f2d63a VZ |
12928 | #endif |
12929 | ||
698dcdb6 VZ |
12930 | ; return 0; } |
12931 | EOF | |
18dbb1f6 | 12932 | if { (eval echo configure:12933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12933 | rm -rf conftest* |
12934 | eval "ac_cv_func__doprnt=yes" | |
12935 | else | |
12936 | echo "configure: failed program was:" >&5 | |
12937 | cat conftest.$ac_ext >&5 | |
12938 | rm -rf conftest* | |
12939 | eval "ac_cv_func__doprnt=no" | |
12940 | fi | |
12941 | rm -f conftest* | |
12942 | fi | |
12943 | ||
12944 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
12945 | echo "$ac_t""yes" 1>&6 | |
12946 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12947 | #define HAVE_DOPRNT 1 |
12948 | EOF | |
12949 | ||
698dcdb6 VZ |
12950 | else |
12951 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12952 | fi |
12953 | ||
12954 | fi | |
12955 | ||
1e487827 | 12956 | |
698dcdb6 VZ |
12957 | |
12958 | ||
12959 | ||
12960 | ||
12961 | ||
12962 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
18dbb1f6 | 12963 | echo "configure:12964: checking for vsnprintf" >&5 |
698dcdb6 VZ |
12964 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
12965 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12966 | else | |
12967 | ||
12968 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 12969 | #line 12970 "configure" |
f6bcfd97 BP |
12970 | #include "confdefs.h" |
12971 | ||
12972 | #include <stdio.h> | |
698dcdb6 VZ |
12973 | #include <stdarg.h> |
12974 | ||
12975 | int main() { | |
10f2d63a | 12976 | |
f6bcfd97 | 12977 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 12978 | |
f6bcfd97 BP |
12979 | wx_test_vsnprintf("%s"); |
12980 | return 0; | |
12981 | } | |
12982 | ||
12983 | int wx_test_vsnprintf(const char *fmt, ...) | |
12984 | { | |
12985 | char *s; | |
12986 | ||
12987 | va_list argp; | |
12988 | va_start(argp, fmt); | |
12989 | vsnprintf(s, 42, fmt, argp); | |
12990 | va_end(argp); | |
698dcdb6 VZ |
12991 | |
12992 | ; return 0; } | |
12993 | EOF | |
18dbb1f6 | 12994 | if { (eval echo configure:12995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12995 | rm -rf conftest* |
12996 | ||
f6bcfd97 | 12997 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12998 | |
10f2d63a | 12999 | else |
698dcdb6 VZ |
13000 | echo "configure: failed program was:" >&5 |
13001 | cat conftest.$ac_ext >&5 | |
13002 | rm -rf conftest* | |
13003 | ||
13004 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 13005 | #line 13006 "configure" |
c521c494 RL |
13006 | #include "confdefs.h" |
13007 | ||
13008 | #include <stdio.h> | |
13009 | #include <stdarg.h> | |
698dcdb6 VZ |
13010 | |
13011 | int main() { | |
c521c494 RL |
13012 | |
13013 | int wx_test_vsnprintf(const char *, ...); | |
13014 | ||
13015 | wx_test_vsnprintf("%s"); | |
13016 | return 0; | |
13017 | } | |
13018 | ||
13019 | int wx_test_vsnprintf(const char *fmt, ...) | |
13020 | { | |
13021 | char *s; | |
13022 | ||
13023 | va_list argp; | |
13024 | va_start(argp, fmt); | |
13025 | _vsnprintf(s, 42, fmt, argp); | |
13026 | va_end(argp); | |
698dcdb6 VZ |
13027 | |
13028 | ; return 0; } | |
13029 | EOF | |
18dbb1f6 | 13030 | if { (eval echo configure:13031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13031 | rm -rf conftest* |
13032 | ||
c521c494 | 13033 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 13034 | |
c521c494 | 13035 | else |
698dcdb6 VZ |
13036 | echo "configure: failed program was:" >&5 |
13037 | cat conftest.$ac_ext >&5 | |
13038 | rm -rf conftest* | |
13039 | ||
c521c494 | 13040 | wx_cv_func_vsnprintf=no |
698dcdb6 | 13041 | |
10f2d63a | 13042 | fi |
698dcdb6 VZ |
13043 | rm -f conftest* |
13044 | ||
6232543b | 13045 | fi |
698dcdb6 | 13046 | rm -f conftest* |
703e0a69 | 13047 | |
1e487827 | 13048 | fi |
698dcdb6 VZ |
13049 | |
13050 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
10f2d63a | 13051 | |
9d8deca0 | 13052 | if test "$wx_cv_func_vsnprintf" = yes; then |
698dcdb6 | 13053 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
13054 | #define HAVE_VSNPRINTF 1 |
13055 | EOF | |
13056 | ||
13057 | else | |
698dcdb6 | 13058 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 |
9d8deca0 VZ |
13059 | fi |
13060 | ||
698dcdb6 | 13061 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
18dbb1f6 | 13062 | echo "configure:13063: checking for vsscanf" >&5 |
698dcdb6 VZ |
13063 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
13064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13065 | else |
698dcdb6 VZ |
13066 | |
13067 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 13068 | #line 13069 "configure" |
10f2d63a | 13069 | #include "confdefs.h" |
10f2d63a | 13070 | |
f6bcfd97 BP |
13071 | #include <stdio.h> |
13072 | #include <stdarg.h> | |
698dcdb6 VZ |
13073 | |
13074 | int main() { | |
10f2d63a | 13075 | |
f6bcfd97 | 13076 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 13077 | |
f6bcfd97 BP |
13078 | wx_test_vsscanf("%d"); |
13079 | return 0; | |
10f2d63a VZ |
13080 | } |
13081 | ||
f6bcfd97 | 13082 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 13083 | { |
f6bcfd97 BP |
13084 | va_list argp; |
13085 | va_start(argp, fmt); | |
13086 | vsscanf("42", fmt, argp); | |
13087 | va_end(argp); | |
698dcdb6 VZ |
13088 | |
13089 | ; return 0; } | |
13090 | EOF | |
18dbb1f6 | 13091 | if { (eval echo configure:13092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13092 | rm -rf conftest* |
13093 | ||
f6bcfd97 | 13094 | wx_cv_func_vsscanf=yes |
698dcdb6 | 13095 | |
10f2d63a | 13096 | else |
698dcdb6 VZ |
13097 | echo "configure: failed program was:" >&5 |
13098 | cat conftest.$ac_ext >&5 | |
13099 | rm -rf conftest* | |
13100 | ||
f6bcfd97 | 13101 | wx_cv_func_vsscanf=no |
698dcdb6 | 13102 | |
6232543b | 13103 | fi |
698dcdb6 | 13104 | rm -f conftest* |
703e0a69 | 13105 | |
1e487827 | 13106 | fi |
698dcdb6 VZ |
13107 | |
13108 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10f2d63a | 13109 | |
9d8deca0 | 13110 | if test "$wx_cv_func_vsscanf" = yes; then |
698dcdb6 | 13111 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
13112 | #define HAVE_VSSCANF 1 |
13113 | EOF | |
13114 | ||
13115 | fi | |
13116 | ||
95c8801c VS |
13117 | if test "$TOOLKIT" != "MSW"; then |
13118 | ||
13119 | ||
13120 | ||
698dcdb6 VZ |
13121 | ac_ext=C |
13122 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13123 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13124 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13125 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13126 | cross_compiling=$ac_cv_prog_cxx_cross | |
13127 | ||
13128 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
18dbb1f6 | 13129 | echo "configure:13130: checking if iconv() takes char**" >&5 |
698dcdb6 VZ |
13130 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
13131 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13132 | else | |
13133 | ||
13134 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 13135 | #line 13136 "configure" |
95c8801c VS |
13136 | #include "confdefs.h" |
13137 | #include <iconv.h> | |
698dcdb6 | 13138 | int main() { |
95c8801c VS |
13139 | |
13140 | char **inbuf, **outbuf; | |
19af3b06 VZ |
13141 | iconv_t cd; |
13142 | size_t insz, outsz; | |
13143 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
698dcdb6 VZ |
13144 | |
13145 | ; return 0; } | |
13146 | EOF | |
18dbb1f6 | 13147 | if { (eval echo configure:13148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 13148 | rm -rf conftest* |
95c8801c VS |
13149 | wx_cv_iconv_takes_char=yes |
13150 | else | |
698dcdb6 VZ |
13151 | echo "configure: failed program was:" >&5 |
13152 | cat conftest.$ac_ext >&5 | |
13153 | rm -rf conftest* | |
13154 | wx_cv_iconv_takes_char=no | |
95c8801c | 13155 | fi |
698dcdb6 | 13156 | rm -f conftest* |
95c8801c VS |
13157 | |
13158 | fi | |
698dcdb6 VZ |
13159 | |
13160 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a | 13161 | ac_ext=c |
698dcdb6 | 13162 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 13163 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13164 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13165 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13166 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 13167 | |
95c8801c | 13168 | if test "$wx_cv_iconv_takes_char" = yes ; then |
698dcdb6 | 13169 | cat >> confdefs.h <<\EOF |
95c8801c VS |
13170 | #define WX_ICONV_TAKES_CHAR 1 |
13171 | EOF | |
13172 | ||
13173 | fi | |
10f2d63a | 13174 | |
1e487827 | 13175 | |
698dcdb6 VZ |
13176 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
13177 | for ac_func in sigaction | |
eb4efbdc | 13178 | do |
698dcdb6 | 13179 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 13180 | echo "configure:13181: checking for $ac_func" >&5 |
698dcdb6 VZ |
13181 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13182 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13183 | else | |
13184 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 13185 | #line 13186 "configure" |
eb4efbdc VZ |
13186 | #include "confdefs.h" |
13187 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13188 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
13189 | #include <assert.h> |
13190 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13191 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13192 | builtin and then its argument prototype would still apply. */ |
13193 | char $ac_func(); | |
13194 | ||
13195 | int main() { | |
eb4efbdc VZ |
13196 | |
13197 | /* The GNU C library defines this for functions which it implements | |
13198 | to always fail with ENOSYS. Some functions are actually named | |
13199 | something starting with __ and the normal name is an alias. */ | |
13200 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13201 | choke me | |
13202 | #else | |
698dcdb6 | 13203 | $ac_func(); |
eb4efbdc VZ |
13204 | #endif |
13205 | ||
698dcdb6 | 13206 | ; return 0; } |
eb4efbdc | 13207 | EOF |
18dbb1f6 | 13208 | if { (eval echo configure:13209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13209 | rm -rf conftest* |
13210 | eval "ac_cv_func_$ac_func=yes" | |
13211 | else | |
13212 | echo "configure: failed program was:" >&5 | |
13213 | cat conftest.$ac_ext >&5 | |
13214 | rm -rf conftest* | |
13215 | eval "ac_cv_func_$ac_func=no" | |
13216 | fi | |
13217 | rm -f conftest* | |
13218 | fi | |
eb4efbdc | 13219 | |
698dcdb6 VZ |
13220 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13221 | echo "$ac_t""yes" 1>&6 | |
13222 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13223 | cat >> confdefs.h <<EOF | |
13224 | #define $ac_tr_func 1 | |
13225 | EOF | |
13226 | ||
13227 | else | |
13228 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
13229 | fi |
13230 | done | |
13231 | ||
698dcdb6 | 13232 | |
eb4efbdc | 13233 | if test "$ac_cv_func_sigaction" = "no"; then |
698dcdb6 | 13234 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
eb4efbdc VZ |
13235 | wxUSE_ON_FATAL_EXCEPTION=no |
13236 | fi | |
f6bcfd97 BP |
13237 | |
13238 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
698dcdb6 VZ |
13239 | |
13240 | ac_ext=C | |
13241 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 13242 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13243 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13244 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13245 | cross_compiling=$ac_cv_prog_cxx_cross | |
6232543b | 13246 | |
1e487827 | 13247 | |
698dcdb6 | 13248 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
18dbb1f6 | 13249 | echo "configure:13250: checking for sa_handler type" >&5 |
698dcdb6 VZ |
13250 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
13251 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13252 | else | |
13253 | ||
13254 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 13255 | #line 13256 "configure" |
f6bcfd97 BP |
13256 | #include "confdefs.h" |
13257 | #include <signal.h> | |
698dcdb6 | 13258 | int main() { |
f6bcfd97 BP |
13259 | |
13260 | extern void testSigHandler(int); | |
13261 | ||
13262 | struct sigaction sa; | |
13263 | sa.sa_handler = testSigHandler; | |
698dcdb6 VZ |
13264 | |
13265 | ; return 0; } | |
13266 | EOF | |
18dbb1f6 | 13267 | if { (eval echo configure:13268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13268 | rm -rf conftest* |
13269 | ||
f6bcfd97 | 13270 | wx_cv_type_sa_handler=int |
698dcdb6 | 13271 | |
f6bcfd97 | 13272 | else |
698dcdb6 VZ |
13273 | echo "configure: failed program was:" >&5 |
13274 | cat conftest.$ac_ext >&5 | |
13275 | rm -rf conftest* | |
13276 | ||
f6bcfd97 | 13277 | wx_cv_type_sa_handler=void |
698dcdb6 | 13278 | |
6232543b | 13279 | fi |
698dcdb6 VZ |
13280 | rm -f conftest* |
13281 | ||
1e487827 | 13282 | fi |
698dcdb6 VZ |
13283 | |
13284 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
f6bcfd97 BP |
13285 | |
13286 | ac_ext=c | |
698dcdb6 | 13287 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
f6bcfd97 | 13288 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13289 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13290 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13291 | cross_compiling=$ac_cv_prog_cc_cross | |
13292 | ||
703e0a69 | 13293 | |
698dcdb6 | 13294 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
13295 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
13296 | EOF | |
13297 | ||
13298 | fi | |
eb4efbdc VZ |
13299 | fi |
13300 | ||
10f2d63a VZ |
13301 | for ac_func in vfork |
13302 | do | |
698dcdb6 | 13303 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 13304 | echo "configure:13305: checking for $ac_func" >&5 |
698dcdb6 VZ |
13305 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13306 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13307 | else | |
13308 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 13309 | #line 13310 "configure" |
10f2d63a VZ |
13310 | #include "confdefs.h" |
13311 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13312 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13313 | #include <assert.h> |
13314 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13315 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13316 | builtin and then its argument prototype would still apply. */ |
13317 | char $ac_func(); | |
13318 | ||
13319 | int main() { | |
10f2d63a VZ |
13320 | |
13321 | /* The GNU C library defines this for functions which it implements | |
13322 | to always fail with ENOSYS. Some functions are actually named | |
13323 | something starting with __ and the normal name is an alias. */ | |
13324 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13325 | choke me | |
13326 | #else | |
698dcdb6 | 13327 | $ac_func(); |
10f2d63a VZ |
13328 | #endif |
13329 | ||
698dcdb6 | 13330 | ; return 0; } |
10f2d63a | 13331 | EOF |
18dbb1f6 | 13332 | if { (eval echo configure:13333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13333 | rm -rf conftest* |
13334 | eval "ac_cv_func_$ac_func=yes" | |
13335 | else | |
13336 | echo "configure: failed program was:" >&5 | |
13337 | cat conftest.$ac_ext >&5 | |
13338 | rm -rf conftest* | |
13339 | eval "ac_cv_func_$ac_func=no" | |
13340 | fi | |
13341 | rm -f conftest* | |
13342 | fi | |
270a909e | 13343 | |
698dcdb6 VZ |
13344 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13345 | echo "$ac_t""yes" 1>&6 | |
13346 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13347 | cat >> confdefs.h <<EOF | |
13348 | #define $ac_tr_func 1 | |
13349 | EOF | |
13350 | ||
13351 | else | |
13352 | echo "$ac_t""no" 1>&6 | |
270a909e VZ |
13353 | fi |
13354 | done | |
13355 | ||
1e487827 | 13356 | |
698dcdb6 VZ |
13357 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
13358 | for ac_func in fcntl flock | |
4f3c5f06 | 13359 | do |
698dcdb6 | 13360 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 13361 | echo "configure:13362: checking for $ac_func" >&5 |
698dcdb6 VZ |
13362 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13364 | else | |
13365 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 13366 | #line 13367 "configure" |
4f3c5f06 VZ |
13367 | #include "confdefs.h" |
13368 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13369 | which can conflict with char $ac_func(); below. */ |
4f3c5f06 VZ |
13370 | #include <assert.h> |
13371 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13372 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13373 | builtin and then its argument prototype would still apply. */ |
13374 | char $ac_func(); | |
13375 | ||
13376 | int main() { | |
4f3c5f06 VZ |
13377 | |
13378 | /* The GNU C library defines this for functions which it implements | |
13379 | to always fail with ENOSYS. Some functions are actually named | |
13380 | something starting with __ and the normal name is an alias. */ | |
13381 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13382 | choke me | |
13383 | #else | |
698dcdb6 | 13384 | $ac_func(); |
4f3c5f06 VZ |
13385 | #endif |
13386 | ||
698dcdb6 VZ |
13387 | ; return 0; } |
13388 | EOF | |
18dbb1f6 | 13389 | if { (eval echo configure:13390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13390 | rm -rf conftest* |
13391 | eval "ac_cv_func_$ac_func=yes" | |
13392 | else | |
13393 | echo "configure: failed program was:" >&5 | |
13394 | cat conftest.$ac_ext >&5 | |
13395 | rm -rf conftest* | |
13396 | eval "ac_cv_func_$ac_func=no" | |
13397 | fi | |
13398 | rm -f conftest* | |
13399 | fi | |
13400 | ||
13401 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13402 | echo "$ac_t""yes" 1>&6 | |
13403 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13404 | cat >> confdefs.h <<EOF | |
13405 | #define $ac_tr_func 1 | |
4f3c5f06 VZ |
13406 | EOF |
13407 | break | |
698dcdb6 VZ |
13408 | else |
13409 | echo "$ac_t""no" 1>&6 | |
4f3c5f06 VZ |
13410 | fi |
13411 | done | |
13412 | ||
698dcdb6 | 13413 | |
4f3c5f06 | 13414 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
698dcdb6 | 13415 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f3c5f06 VZ |
13416 | wxUSE_SNGLINST_CHECKER=no |
13417 | fi | |
13418 | fi | |
13419 | ||
270a909e VZ |
13420 | for ac_func in timegm |
13421 | do | |
698dcdb6 | 13422 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 13423 | echo "configure:13424: checking for $ac_func" >&5 |
698dcdb6 VZ |
13424 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13425 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13426 | else | |
13427 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 13428 | #line 13429 "configure" |
270a909e VZ |
13429 | #include "confdefs.h" |
13430 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13431 | which can conflict with char $ac_func(); below. */ |
270a909e VZ |
13432 | #include <assert.h> |
13433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13434 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13435 | builtin and then its argument prototype would still apply. */ |
13436 | char $ac_func(); | |
13437 | ||
13438 | int main() { | |
270a909e VZ |
13439 | |
13440 | /* The GNU C library defines this for functions which it implements | |
13441 | to always fail with ENOSYS. Some functions are actually named | |
13442 | something starting with __ and the normal name is an alias. */ | |
13443 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13444 | choke me | |
13445 | #else | |
698dcdb6 | 13446 | $ac_func(); |
270a909e VZ |
13447 | #endif |
13448 | ||
698dcdb6 | 13449 | ; return 0; } |
270a909e | 13450 | EOF |
18dbb1f6 | 13451 | if { (eval echo configure:13452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13452 | rm -rf conftest* |
13453 | eval "ac_cv_func_$ac_func=yes" | |
13454 | else | |
13455 | echo "configure: failed program was:" >&5 | |
13456 | cat conftest.$ac_ext >&5 | |
13457 | rm -rf conftest* | |
13458 | eval "ac_cv_func_$ac_func=no" | |
13459 | fi | |
13460 | rm -f conftest* | |
13461 | fi | |
10f2d63a | 13462 | |
698dcdb6 VZ |
13463 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13464 | echo "$ac_t""yes" 1>&6 | |
13465 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13466 | cat >> confdefs.h <<EOF | |
13467 | #define $ac_tr_func 1 | |
13468 | EOF | |
13469 | ||
13470 | else | |
13471 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13472 | fi |
13473 | done | |
13474 | ||
698dcdb6 | 13475 | |
8fd0d89b VZ |
13476 | for ac_func in putenv setenv |
13477 | do | |
698dcdb6 | 13478 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 13479 | echo "configure:13480: checking for $ac_func" >&5 |
698dcdb6 VZ |
13480 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13481 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13482 | else | |
13483 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 13484 | #line 13485 "configure" |
8fd0d89b VZ |
13485 | #include "confdefs.h" |
13486 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13487 | which can conflict with char $ac_func(); below. */ |
8fd0d89b VZ |
13488 | #include <assert.h> |
13489 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13490 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13491 | builtin and then its argument prototype would still apply. */ |
13492 | char $ac_func(); | |
13493 | ||
13494 | int main() { | |
8fd0d89b VZ |
13495 | |
13496 | /* The GNU C library defines this for functions which it implements | |
13497 | to always fail with ENOSYS. Some functions are actually named | |
13498 | something starting with __ and the normal name is an alias. */ | |
13499 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13500 | choke me | |
13501 | #else | |
698dcdb6 | 13502 | $ac_func(); |
8fd0d89b VZ |
13503 | #endif |
13504 | ||
698dcdb6 VZ |
13505 | ; return 0; } |
13506 | EOF | |
18dbb1f6 | 13507 | if { (eval echo configure:13508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13508 | rm -rf conftest* |
13509 | eval "ac_cv_func_$ac_func=yes" | |
13510 | else | |
13511 | echo "configure: failed program was:" >&5 | |
13512 | cat conftest.$ac_ext >&5 | |
13513 | rm -rf conftest* | |
13514 | eval "ac_cv_func_$ac_func=no" | |
13515 | fi | |
13516 | rm -f conftest* | |
13517 | fi | |
13518 | ||
13519 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13520 | echo "$ac_t""yes" 1>&6 | |
13521 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13522 | cat >> confdefs.h <<EOF | |
13523 | #define $ac_tr_func 1 | |
8fd0d89b VZ |
13524 | EOF |
13525 | break | |
698dcdb6 VZ |
13526 | else |
13527 | echo "$ac_t""no" 1>&6 | |
8fd0d89b VZ |
13528 | fi |
13529 | done | |
13530 | ||
698dcdb6 | 13531 | |
b12915c1 VZ |
13532 | HAVE_SOME_SLEEP_FUNC=0 |
13533 | if test "$USE_BEOS" = 1; then | |
698dcdb6 | 13534 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
13535 | #define HAVE_SLEEP 1 |
13536 | EOF | |
13537 | ||
13538 | HAVE_SOME_SLEEP_FUNC=1 | |
13539 | fi | |
13540 | ||
f11bdd03 | 13541 | if test "$USE_DARWIN" = 1; then |
698dcdb6 | 13542 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
13543 | #define HAVE_USLEEP 1 |
13544 | EOF | |
13545 | ||
13546 | HAVE_SOME_SLEEP_FUNC=1 | |
13547 | fi | |
13548 | ||
b12915c1 VZ |
13549 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
13550 | POSIX4_LINK= | |
698dcdb6 | 13551 | for ac_func in nanosleep |
10f2d63a | 13552 | do |
698dcdb6 | 13553 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 13554 | echo "configure:13555: checking for $ac_func" >&5 |
698dcdb6 VZ |
13555 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13557 | else | |
13558 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 13559 | #line 13560 "configure" |
10f2d63a VZ |
13560 | #include "confdefs.h" |
13561 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13562 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13563 | #include <assert.h> |
13564 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13565 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13566 | builtin and then its argument prototype would still apply. */ |
13567 | char $ac_func(); | |
13568 | ||
13569 | int main() { | |
10f2d63a VZ |
13570 | |
13571 | /* The GNU C library defines this for functions which it implements | |
13572 | to always fail with ENOSYS. Some functions are actually named | |
13573 | something starting with __ and the normal name is an alias. */ | |
13574 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13575 | choke me | |
13576 | #else | |
698dcdb6 | 13577 | $ac_func(); |
10f2d63a VZ |
13578 | #endif |
13579 | ||
698dcdb6 VZ |
13580 | ; return 0; } |
13581 | EOF | |
18dbb1f6 | 13582 | if { (eval echo configure:13583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13583 | rm -rf conftest* |
13584 | eval "ac_cv_func_$ac_func=yes" | |
13585 | else | |
13586 | echo "configure: failed program was:" >&5 | |
13587 | cat conftest.$ac_ext >&5 | |
13588 | rm -rf conftest* | |
13589 | eval "ac_cv_func_$ac_func=no" | |
13590 | fi | |
13591 | rm -f conftest* | |
13592 | fi | |
13593 | ||
13594 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13595 | echo "$ac_t""yes" 1>&6 | |
13596 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13597 | cat >> confdefs.h <<EOF | |
13598 | #define $ac_tr_func 1 | |
13599 | EOF | |
13600 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13601 | #define HAVE_NANOSLEEP 1 |
13602 | EOF | |
13603 | ||
13604 | else | |
698dcdb6 VZ |
13605 | echo "$ac_t""no" 1>&6 |
13606 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
18dbb1f6 | 13607 | echo "configure:13608: checking for nanosleep in -lposix4" >&5 |
698dcdb6 VZ |
13608 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
13609 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13610 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13611 | else |
698dcdb6 | 13612 | ac_save_LIBS="$LIBS" |
10f2d63a | 13613 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13614 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 13615 | #line 13616 "configure" |
10f2d63a VZ |
13616 | #include "confdefs.h" |
13617 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13618 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13619 | builtin and then its argument prototype would still apply. */ |
13620 | char nanosleep(); | |
13621 | ||
13622 | int main() { | |
13623 | nanosleep() | |
13624 | ; return 0; } | |
13625 | EOF | |
18dbb1f6 | 13626 | if { (eval echo configure:13627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13627 | rm -rf conftest* |
13628 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13629 | else | |
13630 | echo "configure: failed program was:" >&5 | |
13631 | cat conftest.$ac_ext >&5 | |
13632 | rm -rf conftest* | |
13633 | eval "ac_cv_lib_$ac_lib_var=no" | |
13634 | fi | |
13635 | rm -f conftest* | |
13636 | LIBS="$ac_save_LIBS" | |
13637 | ||
13638 | fi | |
13639 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13640 | echo "$ac_t""yes" 1>&6 | |
13641 | ||
13642 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13643 | #define HAVE_NANOSLEEP 1 |
13644 | EOF | |
13645 | ||
b12915c1 | 13646 | POSIX4_LINK="-lposix4" |
698dcdb6 | 13647 | |
10f2d63a | 13648 | else |
698dcdb6 | 13649 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13650 | |
698dcdb6 | 13651 | for ac_func in usleep |
10f2d63a | 13652 | do |
698dcdb6 | 13653 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 13654 | echo "configure:13655: checking for $ac_func" >&5 |
698dcdb6 VZ |
13655 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13657 | else | |
13658 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 13659 | #line 13660 "configure" |
10f2d63a VZ |
13660 | #include "confdefs.h" |
13661 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13662 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13663 | #include <assert.h> |
13664 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13665 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13666 | builtin and then its argument prototype would still apply. */ |
13667 | char $ac_func(); | |
13668 | ||
13669 | int main() { | |
10f2d63a VZ |
13670 | |
13671 | /* The GNU C library defines this for functions which it implements | |
13672 | to always fail with ENOSYS. Some functions are actually named | |
13673 | something starting with __ and the normal name is an alias. */ | |
13674 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13675 | choke me | |
13676 | #else | |
698dcdb6 | 13677 | $ac_func(); |
10f2d63a VZ |
13678 | #endif |
13679 | ||
698dcdb6 VZ |
13680 | ; return 0; } |
13681 | EOF | |
18dbb1f6 | 13682 | if { (eval echo configure:13683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13683 | rm -rf conftest* |
13684 | eval "ac_cv_func_$ac_func=yes" | |
13685 | else | |
13686 | echo "configure: failed program was:" >&5 | |
13687 | cat conftest.$ac_ext >&5 | |
13688 | rm -rf conftest* | |
13689 | eval "ac_cv_func_$ac_func=no" | |
13690 | fi | |
13691 | rm -f conftest* | |
13692 | fi | |
13693 | ||
13694 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13695 | echo "$ac_t""yes" 1>&6 | |
13696 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13697 | cat >> confdefs.h <<EOF | |
13698 | #define $ac_tr_func 1 | |
13699 | EOF | |
13700 | cat >> confdefs.h <<\EOF | |
b4085ce6 GD |
13701 | #define HAVE_USLEEP 1 |
13702 | EOF | |
13703 | ||
10f2d63a | 13704 | else |
698dcdb6 VZ |
13705 | echo "$ac_t""no" 1>&6 |
13706 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
13707 | ||
10f2d63a VZ |
13708 | fi |
13709 | done | |
13710 | ||
698dcdb6 VZ |
13711 | |
13712 | ||
10f2d63a VZ |
13713 | fi |
13714 | ||
698dcdb6 VZ |
13715 | |
13716 | ||
10f2d63a VZ |
13717 | fi |
13718 | done | |
13719 | ||
b12915c1 | 13720 | fi |
10f2d63a VZ |
13721 | |
13722 | for ac_func in uname gethostname | |
13723 | do | |
698dcdb6 | 13724 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 13725 | echo "configure:13726: checking for $ac_func" >&5 |
698dcdb6 VZ |
13726 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13727 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13728 | else | |
13729 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 13730 | #line 13731 "configure" |
10f2d63a VZ |
13731 | #include "confdefs.h" |
13732 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13733 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13734 | #include <assert.h> |
13735 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13736 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13737 | builtin and then its argument prototype would still apply. */ |
13738 | char $ac_func(); | |
13739 | ||
13740 | int main() { | |
10f2d63a VZ |
13741 | |
13742 | /* The GNU C library defines this for functions which it implements | |
13743 | to always fail with ENOSYS. Some functions are actually named | |
13744 | something starting with __ and the normal name is an alias. */ | |
13745 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13746 | choke me | |
13747 | #else | |
698dcdb6 | 13748 | $ac_func(); |
10f2d63a VZ |
13749 | #endif |
13750 | ||
698dcdb6 VZ |
13751 | ; return 0; } |
13752 | EOF | |
18dbb1f6 | 13753 | if { (eval echo configure:13754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13754 | rm -rf conftest* |
13755 | eval "ac_cv_func_$ac_func=yes" | |
13756 | else | |
13757 | echo "configure: failed program was:" >&5 | |
13758 | cat conftest.$ac_ext >&5 | |
13759 | rm -rf conftest* | |
13760 | eval "ac_cv_func_$ac_func=no" | |
13761 | fi | |
13762 | rm -f conftest* | |
13763 | fi | |
13764 | ||
13765 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13766 | echo "$ac_t""yes" 1>&6 | |
13767 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13768 | cat >> confdefs.h <<EOF | |
13769 | #define $ac_tr_func 1 | |
10f2d63a VZ |
13770 | EOF |
13771 | break | |
698dcdb6 VZ |
13772 | else |
13773 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13774 | fi |
13775 | done | |
13776 | ||
698dcdb6 VZ |
13777 | |
13778 | ||
13779 | ac_ext=C | |
13780 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098c7f9 | 13781 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13782 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13783 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13784 | cross_compiling=$ac_cv_prog_cxx_cross | |
13785 | ||
6098c7f9 | 13786 | |
10f2d63a VZ |
13787 | for ac_func in strtok_r |
13788 | do | |
698dcdb6 | 13789 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 13790 | echo "configure:13791: checking for $ac_func" >&5 |
698dcdb6 VZ |
13791 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13792 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13793 | else | |
13794 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 13795 | #line 13796 "configure" |
10f2d63a VZ |
13796 | #include "confdefs.h" |
13797 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13798 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13799 | #include <assert.h> |
13800 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
13801 | #ifdef __cplusplus |
13802 | extern "C" | |
13803 | #endif | |
10f2d63a | 13804 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13805 | builtin and then its argument prototype would still apply. */ |
13806 | char $ac_func(); | |
13807 | ||
13808 | int main() { | |
10f2d63a VZ |
13809 | |
13810 | /* The GNU C library defines this for functions which it implements | |
13811 | to always fail with ENOSYS. Some functions are actually named | |
13812 | something starting with __ and the normal name is an alias. */ | |
13813 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13814 | choke me | |
13815 | #else | |
698dcdb6 | 13816 | $ac_func(); |
10f2d63a VZ |
13817 | #endif |
13818 | ||
698dcdb6 | 13819 | ; return 0; } |
10f2d63a | 13820 | EOF |
18dbb1f6 | 13821 | if { (eval echo configure:13822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13822 | rm -rf conftest* |
13823 | eval "ac_cv_func_$ac_func=yes" | |
13824 | else | |
13825 | echo "configure: failed program was:" >&5 | |
13826 | cat conftest.$ac_ext >&5 | |
13827 | rm -rf conftest* | |
13828 | eval "ac_cv_func_$ac_func=no" | |
13829 | fi | |
13830 | rm -f conftest* | |
13831 | fi | |
10f2d63a | 13832 | |
698dcdb6 VZ |
13833 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13834 | echo "$ac_t""yes" 1>&6 | |
13835 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13836 | cat >> confdefs.h <<EOF | |
13837 | #define $ac_tr_func 1 | |
13838 | EOF | |
13839 | ||
13840 | else | |
13841 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13842 | fi |
13843 | done | |
13844 | ||
698dcdb6 | 13845 | |
6098c7f9 | 13846 | ac_ext=c |
698dcdb6 | 13847 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6098c7f9 | 13848 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13849 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13850 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13851 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 13852 | |
1e487827 | 13853 | |
698dcdb6 | 13854 | INET_LINK= |
10f2d63a VZ |
13855 | for ac_func in inet_addr |
13856 | do | |
698dcdb6 | 13857 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 13858 | echo "configure:13859: checking for $ac_func" >&5 |
698dcdb6 VZ |
13859 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13860 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13861 | else | |
13862 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 13863 | #line 13864 "configure" |
10f2d63a VZ |
13864 | #include "confdefs.h" |
13865 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 VZ |
13866 | which can conflict with char $ac_func(); below. */ |
13867 | #include <assert.h> | |
13868 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10f2d63a | 13869 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13870 | builtin and then its argument prototype would still apply. */ |
13871 | char $ac_func(); | |
13872 | ||
13873 | int main() { | |
10f2d63a VZ |
13874 | |
13875 | /* The GNU C library defines this for functions which it implements | |
13876 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
13877 | something starting with __ and the normal name is an alias. */ |
13878 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13879 | choke me | |
13880 | #else | |
698dcdb6 | 13881 | $ac_func(); |
1e487827 | 13882 | #endif |
703e0a69 | 13883 | |
698dcdb6 VZ |
13884 | ; return 0; } |
13885 | EOF | |
18dbb1f6 | 13886 | if { (eval echo configure:13887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13887 | rm -rf conftest* |
13888 | eval "ac_cv_func_$ac_func=yes" | |
13889 | else | |
13890 | echo "configure: failed program was:" >&5 | |
13891 | cat conftest.$ac_ext >&5 | |
13892 | rm -rf conftest* | |
13893 | eval "ac_cv_func_$ac_func=no" | |
13894 | fi | |
13895 | rm -f conftest* | |
13896 | fi | |
13897 | ||
13898 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13899 | echo "$ac_t""yes" 1>&6 | |
13900 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13901 | cat >> confdefs.h <<EOF | |
13902 | #define $ac_tr_func 1 | |
13903 | EOF | |
13904 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13905 | #define HAVE_INET_ADDR 1 |
13906 | EOF | |
13907 | ||
10f2d63a | 13908 | else |
698dcdb6 VZ |
13909 | echo "$ac_t""no" 1>&6 |
13910 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
18dbb1f6 | 13911 | echo "configure:13912: checking for inet_addr in -lnsl" >&5 |
698dcdb6 VZ |
13912 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
13913 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13914 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13915 | else |
698dcdb6 | 13916 | ac_save_LIBS="$LIBS" |
c63c7106 | 13917 | LIBS="-lnsl $LIBS" |
698dcdb6 | 13918 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 13919 | #line 13920 "configure" |
c63c7106 VZ |
13920 | #include "confdefs.h" |
13921 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13922 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13923 | builtin and then its argument prototype would still apply. */ |
13924 | char inet_addr(); | |
13925 | ||
13926 | int main() { | |
13927 | inet_addr() | |
13928 | ; return 0; } | |
13929 | EOF | |
18dbb1f6 | 13930 | if { (eval echo configure:13931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13931 | rm -rf conftest* |
13932 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13933 | else | |
13934 | echo "configure: failed program was:" >&5 | |
13935 | cat conftest.$ac_ext >&5 | |
13936 | rm -rf conftest* | |
13937 | eval "ac_cv_lib_$ac_lib_var=no" | |
13938 | fi | |
13939 | rm -f conftest* | |
13940 | LIBS="$ac_save_LIBS" | |
13941 | ||
13942 | fi | |
13943 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13944 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
13945 | INET_LINK="nsl" |
13946 | else | |
698dcdb6 VZ |
13947 | echo "$ac_t""no" 1>&6 |
13948 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
18dbb1f6 | 13949 | echo "configure:13950: checking for inet_addr in -lresolv" >&5 |
698dcdb6 VZ |
13950 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
13951 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13953 | else |
698dcdb6 | 13954 | ac_save_LIBS="$LIBS" |
c63c7106 | 13955 | LIBS="-lresolv $LIBS" |
698dcdb6 | 13956 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 13957 | #line 13958 "configure" |
c63c7106 VZ |
13958 | #include "confdefs.h" |
13959 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13960 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13961 | builtin and then its argument prototype would still apply. */ |
13962 | char inet_addr(); | |
13963 | ||
13964 | int main() { | |
13965 | inet_addr() | |
13966 | ; return 0; } | |
13967 | EOF | |
18dbb1f6 | 13968 | if { (eval echo configure:13969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13969 | rm -rf conftest* |
13970 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13971 | else | |
13972 | echo "configure: failed program was:" >&5 | |
13973 | cat conftest.$ac_ext >&5 | |
13974 | rm -rf conftest* | |
13975 | eval "ac_cv_lib_$ac_lib_var=no" | |
13976 | fi | |
13977 | rm -f conftest* | |
13978 | LIBS="$ac_save_LIBS" | |
c63c7106 | 13979 | |
6232543b | 13980 | fi |
698dcdb6 VZ |
13981 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13982 | echo "$ac_t""yes" 1>&6 | |
13983 | INET_LINK="resolv" | |
13984 | ||
13985 | else | |
13986 | echo "$ac_t""no" 1>&6 | |
13987 | fi | |
c63c7106 | 13988 | |
698dcdb6 | 13989 | |
1e487827 | 13990 | fi |
703e0a69 | 13991 | |
698dcdb6 VZ |
13992 | |
13993 | ||
10f2d63a VZ |
13994 | fi |
13995 | done | |
13996 | ||
698dcdb6 | 13997 | |
10f2d63a VZ |
13998 | for ac_func in inet_aton |
13999 | do | |
698dcdb6 | 14000 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 14001 | echo "configure:14002: checking for $ac_func" >&5 |
698dcdb6 VZ |
14002 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14004 | else | |
14005 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 14006 | #line 14007 "configure" |
10f2d63a VZ |
14007 | #include "confdefs.h" |
14008 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14009 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
14010 | #include <assert.h> |
14011 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14012 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14013 | builtin and then its argument prototype would still apply. */ |
14014 | char $ac_func(); | |
14015 | ||
14016 | int main() { | |
10f2d63a VZ |
14017 | |
14018 | /* The GNU C library defines this for functions which it implements | |
14019 | to always fail with ENOSYS. Some functions are actually named | |
14020 | something starting with __ and the normal name is an alias. */ | |
14021 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14022 | choke me | |
14023 | #else | |
698dcdb6 | 14024 | $ac_func(); |
10f2d63a VZ |
14025 | #endif |
14026 | ||
698dcdb6 VZ |
14027 | ; return 0; } |
14028 | EOF | |
18dbb1f6 | 14029 | if { (eval echo configure:14030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14030 | rm -rf conftest* |
14031 | eval "ac_cv_func_$ac_func=yes" | |
14032 | else | |
14033 | echo "configure: failed program was:" >&5 | |
14034 | cat conftest.$ac_ext >&5 | |
14035 | rm -rf conftest* | |
14036 | eval "ac_cv_func_$ac_func=no" | |
14037 | fi | |
14038 | rm -f conftest* | |
14039 | fi | |
14040 | ||
14041 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14042 | echo "$ac_t""yes" 1>&6 | |
14043 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14044 | cat >> confdefs.h <<EOF | |
14045 | #define $ac_tr_func 1 | |
14046 | EOF | |
14047 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
14048 | #define HAVE_INET_ATON 1 |
14049 | EOF | |
14050 | ||
10f2d63a | 14051 | else |
698dcdb6 VZ |
14052 | echo "$ac_t""no" 1>&6 |
14053 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
18dbb1f6 | 14054 | echo "configure:14055: checking for inet_aton in -l$INET_LINK" >&5 |
698dcdb6 VZ |
14055 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
14056 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14058 | else |
698dcdb6 | 14059 | ac_save_LIBS="$LIBS" |
c63c7106 | 14060 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 14061 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 14062 | #line 14063 "configure" |
10f2d63a VZ |
14063 | #include "confdefs.h" |
14064 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14065 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14066 | builtin and then its argument prototype would still apply. */ |
14067 | char inet_aton(); | |
14068 | ||
14069 | int main() { | |
14070 | inet_aton() | |
14071 | ; return 0; } | |
14072 | EOF | |
18dbb1f6 | 14073 | if { (eval echo configure:14074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14074 | rm -rf conftest* |
14075 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14076 | else | |
14077 | echo "configure: failed program was:" >&5 | |
14078 | cat conftest.$ac_ext >&5 | |
14079 | rm -rf conftest* | |
14080 | eval "ac_cv_lib_$ac_lib_var=no" | |
14081 | fi | |
14082 | rm -f conftest* | |
14083 | LIBS="$ac_save_LIBS" | |
14084 | ||
14085 | fi | |
14086 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14087 | echo "$ac_t""yes" 1>&6 | |
14088 | cat >> confdefs.h <<\EOF | |
c63c7106 | 14089 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
14090 | EOF |
14091 | ||
698dcdb6 VZ |
14092 | else |
14093 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14094 | fi |
14095 | ||
698dcdb6 | 14096 | |
c63c7106 VZ |
14097 | fi |
14098 | done | |
14099 | ||
698dcdb6 | 14100 | |
c63c7106 | 14101 | if test "x$INET_LINK" != "x"; then |
698dcdb6 | 14102 | cat >> confdefs.h <<\EOF |
c63c7106 VZ |
14103 | #define HAVE_INET_ADDR 1 |
14104 | EOF | |
14105 | ||
14106 | INET_LINK="-l$INET_LINK" | |
14107 | fi | |
10f2d63a VZ |
14108 | |
14109 | fi | |
14110 | ||
698dcdb6 VZ |
14111 | |
14112 | cat > confcache <<\EOF | |
10f2d63a VZ |
14113 | # This file is a shell script that caches the results of configure |
14114 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
14115 | # scripts and configure runs. It is not useful on other systems. |
14116 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 14117 | # |
698dcdb6 VZ |
14118 | # By default, configure uses ./config.cache as the cache file, |
14119 | # creating it if it does not exist already. You can give configure | |
14120 | # the --cache-file=FILE option to use a different cache file; that is | |
14121 | # what configure does when it calls configure scripts in | |
14122 | # subdirectories, so they share the cache. | |
14123 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
14124 | # config.status only pays attention to the cache file if you give it the | |
14125 | # --recheck option to rerun configure. | |
10f2d63a | 14126 | # |
698dcdb6 | 14127 | EOF |
10f2d63a VZ |
14128 | # The following way of writing the cache mishandles newlines in values, |
14129 | # but we know of no workaround that is simple, portable, and efficient. | |
14130 | # So, don't put newlines in cache variables' values. | |
14131 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
14132 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
14133 | (set) 2>&1 | |
14134 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
14135 | *ac_space=\ *) | |
14136 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
14137 | # turns \\\\ into \\, and sed turns \\ into \). | |
14138 | sed -n \ | |
14139 | -e "s/'/'\\\\''/g" \ | |
14140 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
14141 | ;; | |
14142 | *) | |
14143 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14144 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
14145 | ;; | |
14146 | esac >> confcache | |
14147 | if cmp -s $cache_file confcache; then | |
14148 | : | |
14149 | else | |
10f2d63a | 14150 | if test -w $cache_file; then |
698dcdb6 VZ |
14151 | echo "updating cache $cache_file" |
14152 | cat confcache > $cache_file | |
10f2d63a VZ |
14153 | else |
14154 | echo "not updating unwritable cache $cache_file" | |
14155 | fi | |
14156 | fi | |
14157 | rm -f confcache | |
14158 | ||
698dcdb6 VZ |
14159 | |
14160 | ||
b089607b | 14161 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 14162 | |
698dcdb6 | 14163 | |
10f2d63a VZ |
14164 | THREADS_LINK="" |
14165 | THREADS_OBJ="" | |
14166 | ||
14167 | if test "$wxUSE_THREADS" = "yes" ; then | |
14168 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 14169 | echo "configure: warning: Threads are not supported under WINE" 1>&2 |
10f2d63a | 14170 | wxUSE_THREADS="no" |
b12915c1 | 14171 | elif test "$USE_BEOS" = 1; then |
698dcdb6 | 14172 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 |
b12915c1 | 14173 | wxUSE_THREADS="no" |
10f2d63a VZ |
14174 | fi |
14175 | fi | |
14176 | ||
14177 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 14178 | |
186837b0 | 14179 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
14180 | THREADS_LIB=pthreads |
14181 | else | |
14182 | THREADS_LIB=pthread | |
14183 | fi | |
14184 | ||
698dcdb6 | 14185 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
18dbb1f6 | 14186 | echo "configure:14187: checking for pthread_create in -l$THREADS_LIB" >&5 |
698dcdb6 VZ |
14187 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
14188 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14190 | else |
698dcdb6 | 14191 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 14192 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 14193 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 14194 | #line 14195 "configure" |
10f2d63a VZ |
14195 | #include "confdefs.h" |
14196 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14197 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14198 | builtin and then its argument prototype would still apply. */ |
14199 | char pthread_create(); | |
14200 | ||
14201 | int main() { | |
14202 | pthread_create() | |
14203 | ; return 0; } | |
14204 | EOF | |
18dbb1f6 | 14205 | if { (eval echo configure:14206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14206 | rm -rf conftest* |
14207 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14208 | else | |
14209 | echo "configure: failed program was:" >&5 | |
14210 | cat conftest.$ac_ext >&5 | |
14211 | rm -rf conftest* | |
14212 | eval "ac_cv_lib_$ac_lib_var=no" | |
14213 | fi | |
14214 | rm -f conftest* | |
14215 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14216 | |
698dcdb6 VZ |
14217 | fi |
14218 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14219 | echo "$ac_t""yes" 1>&6 | |
14220 | ||
10f2d63a | 14221 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 14222 | THREADS_LINK=$THREADS_LIB |
698dcdb6 | 14223 | |
10f2d63a | 14224 | else |
698dcdb6 | 14225 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14226 | |
698dcdb6 | 14227 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
18dbb1f6 | 14228 | echo "configure:14229: checking for pthread_create in -lc_r" >&5 |
698dcdb6 VZ |
14229 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
14230 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14231 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14232 | else |
698dcdb6 | 14233 | ac_save_LIBS="$LIBS" |
10f2d63a | 14234 | LIBS="-lc_r $LIBS" |
698dcdb6 | 14235 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 14236 | #line 14237 "configure" |
10f2d63a VZ |
14237 | #include "confdefs.h" |
14238 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14239 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14240 | builtin and then its argument prototype would still apply. */ |
14241 | char pthread_create(); | |
14242 | ||
14243 | int main() { | |
14244 | pthread_create() | |
14245 | ; return 0; } | |
14246 | EOF | |
18dbb1f6 | 14247 | if { (eval echo configure:14248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14248 | rm -rf conftest* |
14249 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14250 | else | |
14251 | echo "configure: failed program was:" >&5 | |
14252 | cat conftest.$ac_ext >&5 | |
14253 | rm -rf conftest* | |
14254 | eval "ac_cv_lib_$ac_lib_var=no" | |
14255 | fi | |
14256 | rm -f conftest* | |
14257 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14258 | |
698dcdb6 VZ |
14259 | fi |
14260 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14261 | echo "$ac_t""yes" 1>&6 | |
14262 | ||
10f2d63a VZ |
14263 | THREADS_OBJ="threadpsx.lo" |
14264 | THREADS_LINK="c_r" | |
698dcdb6 | 14265 | |
10f2d63a | 14266 | else |
698dcdb6 | 14267 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14268 | |
698dcdb6 VZ |
14269 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
14270 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
18dbb1f6 | 14271 | echo "configure:14272: checking for sys/prctl.h" >&5 |
698dcdb6 VZ |
14272 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14273 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14274 | else |
698dcdb6 | 14275 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 14276 | #line 14277 "configure" |
10f2d63a VZ |
14277 | #include "confdefs.h" |
14278 | #include <sys/prctl.h> | |
698dcdb6 VZ |
14279 | EOF |
14280 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 14281 | { (eval echo configure:14282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14282 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14283 | if test -z "$ac_err"; then | |
14284 | rm -rf conftest* | |
14285 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14286 | else |
698dcdb6 VZ |
14287 | echo "$ac_err" >&5 |
14288 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14289 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14290 | rm -rf conftest* |
14291 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14292 | fi |
698dcdb6 | 14293 | rm -f conftest* |
10f2d63a | 14294 | fi |
698dcdb6 VZ |
14295 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14296 | echo "$ac_t""yes" 1>&6 | |
14297 | ||
1f8ae82f | 14298 | THREADS_OBJ="threadsgi.lo" |
698dcdb6 VZ |
14299 | |
14300 | else | |
14301 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14302 | fi |
14303 | ||
698dcdb6 | 14304 | |
6232543b | 14305 | fi |
10f2d63a | 14306 | |
698dcdb6 | 14307 | |
1e487827 | 14308 | fi |
703e0a69 | 14309 | |
698dcdb6 | 14310 | |
10f2d63a VZ |
14311 | if test -z "$THREADS_OBJ" ; then |
14312 | wxUSE_THREADS=no | |
698dcdb6 | 14313 | echo "configure: warning: No thread support on this system" 1>&2 |
10f2d63a VZ |
14314 | fi |
14315 | fi | |
14316 | ||
14317 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 14318 | for ac_func in thr_setconcurrency |
70846f0a | 14319 | do |
698dcdb6 | 14320 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 14321 | echo "configure:14322: checking for $ac_func" >&5 |
698dcdb6 VZ |
14322 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14323 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14324 | else | |
14325 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 14326 | #line 14327 "configure" |
70846f0a VZ |
14327 | #include "confdefs.h" |
14328 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14329 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
14330 | #include <assert.h> |
14331 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14332 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14333 | builtin and then its argument prototype would still apply. */ |
14334 | char $ac_func(); | |
14335 | ||
14336 | int main() { | |
70846f0a VZ |
14337 | |
14338 | /* The GNU C library defines this for functions which it implements | |
14339 | to always fail with ENOSYS. Some functions are actually named | |
14340 | something starting with __ and the normal name is an alias. */ | |
14341 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14342 | choke me | |
14343 | #else | |
698dcdb6 | 14344 | $ac_func(); |
70846f0a VZ |
14345 | #endif |
14346 | ||
698dcdb6 | 14347 | ; return 0; } |
70846f0a | 14348 | EOF |
18dbb1f6 | 14349 | if { (eval echo configure:14350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14350 | rm -rf conftest* |
14351 | eval "ac_cv_func_$ac_func=yes" | |
14352 | else | |
14353 | echo "configure: failed program was:" >&5 | |
14354 | cat conftest.$ac_ext >&5 | |
14355 | rm -rf conftest* | |
14356 | eval "ac_cv_func_$ac_func=no" | |
14357 | fi | |
14358 | rm -f conftest* | |
14359 | fi | |
70846f0a | 14360 | |
698dcdb6 VZ |
14361 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14362 | echo "$ac_t""yes" 1>&6 | |
14363 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14364 | cat >> confdefs.h <<EOF | |
14365 | #define $ac_tr_func 1 | |
14366 | EOF | |
14367 | ||
14368 | else | |
14369 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
14370 | fi |
14371 | done | |
14372 | ||
698dcdb6 VZ |
14373 | |
14374 | ||
14375 | for ac_hdr in sched.h | |
10f2d63a | 14376 | do |
698dcdb6 VZ |
14377 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
14378 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18dbb1f6 | 14379 | echo "configure:14380: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
14380 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14381 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14382 | else | |
14383 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 14384 | #line 14385 "configure" |
10f2d63a | 14385 | #include "confdefs.h" |
698dcdb6 VZ |
14386 | #include <$ac_hdr> |
14387 | EOF | |
14388 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 14389 | { (eval echo configure:14390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14390 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14391 | if test -z "$ac_err"; then | |
14392 | rm -rf conftest* | |
14393 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14394 | else |
698dcdb6 VZ |
14395 | echo "$ac_err" >&5 |
14396 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14397 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14398 | rm -rf conftest* |
14399 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14400 | fi |
698dcdb6 | 14401 | rm -f conftest* |
10f2d63a | 14402 | fi |
698dcdb6 VZ |
14403 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14404 | echo "$ac_t""yes" 1>&6 | |
14405 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14406 | cat >> confdefs.h <<EOF | |
14407 | #define $ac_tr_hdr 1 | |
10f2d63a | 14408 | EOF |
698dcdb6 VZ |
14409 | |
14410 | else | |
14411 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14412 | fi |
14413 | done | |
14414 | ||
698dcdb6 VZ |
14415 | |
14416 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
18dbb1f6 | 14417 | echo "configure:14418: checking for sched_yield in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14418 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
14419 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14420 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14421 | else |
698dcdb6 | 14422 | ac_save_LIBS="$LIBS" |
10f2d63a | 14423 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14424 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 14425 | #line 14426 "configure" |
10f2d63a VZ |
14426 | #include "confdefs.h" |
14427 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14428 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14429 | builtin and then its argument prototype would still apply. */ |
14430 | char sched_yield(); | |
14431 | ||
14432 | int main() { | |
14433 | sched_yield() | |
14434 | ; return 0; } | |
14435 | EOF | |
18dbb1f6 | 14436 | if { (eval echo configure:14437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14437 | rm -rf conftest* |
14438 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14439 | else | |
14440 | echo "configure: failed program was:" >&5 | |
14441 | cat conftest.$ac_ext >&5 | |
14442 | rm -rf conftest* | |
14443 | eval "ac_cv_lib_$ac_lib_var=no" | |
14444 | fi | |
14445 | rm -f conftest* | |
14446 | LIBS="$ac_save_LIBS" | |
14447 | ||
14448 | fi | |
14449 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14450 | echo "$ac_t""yes" 1>&6 | |
14451 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14452 | #define HAVE_SCHED_YIELD 1 |
14453 | EOF | |
14454 | ||
14455 | else | |
698dcdb6 VZ |
14456 | echo "$ac_t""no" 1>&6 |
14457 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
18dbb1f6 | 14458 | echo "configure:14459: checking for sched_yield in -lposix4" >&5 |
698dcdb6 VZ |
14459 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
14460 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14461 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14462 | else |
698dcdb6 | 14463 | ac_save_LIBS="$LIBS" |
1e487827 | 14464 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14465 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 14466 | #line 14467 "configure" |
10f2d63a VZ |
14467 | #include "confdefs.h" |
14468 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14469 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14470 | builtin and then its argument prototype would still apply. */ |
14471 | char sched_yield(); | |
14472 | ||
14473 | int main() { | |
14474 | sched_yield() | |
14475 | ; return 0; } | |
14476 | EOF | |
18dbb1f6 | 14477 | if { (eval echo configure:14478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14478 | rm -rf conftest* |
14479 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14480 | else | |
14481 | echo "configure: failed program was:" >&5 | |
14482 | cat conftest.$ac_ext >&5 | |
14483 | rm -rf conftest* | |
14484 | eval "ac_cv_lib_$ac_lib_var=no" | |
14485 | fi | |
14486 | rm -f conftest* | |
14487 | LIBS="$ac_save_LIBS" | |
14488 | ||
14489 | fi | |
14490 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14491 | echo "$ac_t""yes" 1>&6 | |
14492 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14493 | #define HAVE_SCHED_YIELD 1 |
14494 | EOF | |
14495 | POSIX4_LINK="-lposix4" | |
14496 | else | |
698dcdb6 VZ |
14497 | echo "$ac_t""no" 1>&6 |
14498 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
14499 | ||
6232543b | 14500 | fi |
10f2d63a | 14501 | |
698dcdb6 | 14502 | |
1e487827 | 14503 | fi |
703e0a69 | 14504 | |
698dcdb6 | 14505 | |
f6bcfd97 | 14506 | HAVE_PRIOR_FUNCS=0 |
698dcdb6 | 14507 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 |
18dbb1f6 | 14508 | echo "configure:14509: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14509 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
14510 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14512 | else |
698dcdb6 | 14513 | ac_save_LIBS="$LIBS" |
10f2d63a | 14514 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14515 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 14516 | #line 14517 "configure" |
10f2d63a VZ |
14517 | #include "confdefs.h" |
14518 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14519 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14520 | builtin and then its argument prototype would still apply. */ |
14521 | char pthread_attr_getschedpolicy(); | |
14522 | ||
14523 | int main() { | |
14524 | pthread_attr_getschedpolicy() | |
14525 | ; return 0; } | |
14526 | EOF | |
18dbb1f6 | 14527 | if { (eval echo configure:14528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14528 | rm -rf conftest* |
14529 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14530 | else | |
14531 | echo "configure: failed program was:" >&5 | |
14532 | cat conftest.$ac_ext >&5 | |
14533 | rm -rf conftest* | |
14534 | eval "ac_cv_lib_$ac_lib_var=no" | |
14535 | fi | |
14536 | rm -f conftest* | |
14537 | LIBS="$ac_save_LIBS" | |
14538 | ||
14539 | fi | |
14540 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14541 | echo "$ac_t""yes" 1>&6 | |
14542 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
18dbb1f6 | 14543 | echo "configure:14544: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14544 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
14545 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14546 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14547 | else | |
14548 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14549 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14550 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 14551 | #line 14552 "configure" |
f6bcfd97 BP |
14552 | #include "confdefs.h" |
14553 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14554 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14555 | builtin and then its argument prototype would still apply. */ |
14556 | char pthread_attr_setschedparam(); | |
14557 | ||
14558 | int main() { | |
14559 | pthread_attr_setschedparam() | |
14560 | ; return 0; } | |
14561 | EOF | |
18dbb1f6 | 14562 | if { (eval echo configure:14563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14563 | rm -rf conftest* |
14564 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14565 | else | |
14566 | echo "configure: failed program was:" >&5 | |
14567 | cat conftest.$ac_ext >&5 | |
14568 | rm -rf conftest* | |
14569 | eval "ac_cv_lib_$ac_lib_var=no" | |
14570 | fi | |
14571 | rm -f conftest* | |
14572 | LIBS="$ac_save_LIBS" | |
14573 | ||
14574 | fi | |
14575 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14576 | echo "$ac_t""yes" 1>&6 | |
14577 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
18dbb1f6 | 14578 | echo "configure:14579: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14579 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14580 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14582 | else | |
14583 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14584 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14585 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 14586 | #line 14587 "configure" |
f6bcfd97 BP |
14587 | #include "confdefs.h" |
14588 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14589 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14590 | builtin and then its argument prototype would still apply. */ |
14591 | char sched_get_priority_max(); | |
14592 | ||
14593 | int main() { | |
14594 | sched_get_priority_max() | |
14595 | ; return 0; } | |
14596 | EOF | |
18dbb1f6 | 14597 | if { (eval echo configure:14598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14598 | rm -rf conftest* |
14599 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14600 | else | |
14601 | echo "configure: failed program was:" >&5 | |
14602 | cat conftest.$ac_ext >&5 | |
14603 | rm -rf conftest* | |
14604 | eval "ac_cv_lib_$ac_lib_var=no" | |
14605 | fi | |
14606 | rm -f conftest* | |
14607 | LIBS="$ac_save_LIBS" | |
14608 | ||
14609 | fi | |
14610 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14611 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 14612 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 14613 | else |
698dcdb6 VZ |
14614 | echo "$ac_t""no" 1>&6 |
14615 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
18dbb1f6 | 14616 | echo "configure:14617: checking for sched_get_priority_max in -lposix4" >&5 |
698dcdb6 VZ |
14617 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14618 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14620 | else |
698dcdb6 | 14621 | ac_save_LIBS="$LIBS" |
1e487827 | 14622 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14623 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 14624 | #line 14625 "configure" |
10f2d63a | 14625 | #include "confdefs.h" |
6232543b | 14626 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 14627 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14628 | builtin and then its argument prototype would still apply. */ |
14629 | char sched_get_priority_max(); | |
14630 | ||
14631 | int main() { | |
14632 | sched_get_priority_max() | |
14633 | ; return 0; } | |
14634 | EOF | |
18dbb1f6 | 14635 | if { (eval echo configure:14636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14636 | rm -rf conftest* |
14637 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14638 | else | |
14639 | echo "configure: failed program was:" >&5 | |
14640 | cat conftest.$ac_ext >&5 | |
14641 | rm -rf conftest* | |
14642 | eval "ac_cv_lib_$ac_lib_var=no" | |
14643 | fi | |
14644 | rm -f conftest* | |
14645 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14646 | |
698dcdb6 VZ |
14647 | fi |
14648 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14649 | echo "$ac_t""yes" 1>&6 | |
14650 | ||
f6bcfd97 BP |
14651 | HAVE_PRIOR_FUNCS=1 |
14652 | POSIX4_LINK="-lposix4" | |
698dcdb6 VZ |
14653 | |
14654 | else | |
14655 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14656 | fi |
14657 | ||
698dcdb6 | 14658 | |
10f2d63a VZ |
14659 | fi |
14660 | ||
698dcdb6 VZ |
14661 | |
14662 | else | |
14663 | echo "$ac_t""no" 1>&6 | |
6232543b | 14664 | fi |
10f2d63a | 14665 | |
698dcdb6 VZ |
14666 | |
14667 | else | |
14668 | echo "$ac_t""no" 1>&6 | |
1e487827 | 14669 | fi |
703e0a69 | 14670 | |
698dcdb6 | 14671 | |
f6bcfd97 | 14672 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
698dcdb6 | 14673 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
14674 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
14675 | EOF | |
14676 | ||
14677 | else | |
698dcdb6 | 14678 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
f6bcfd97 BP |
14679 | fi |
14680 | ||
698dcdb6 | 14681 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
18dbb1f6 | 14682 | echo "configure:14683: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14683 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
14684 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14686 | else |
698dcdb6 | 14687 | ac_save_LIBS="$LIBS" |
10f2d63a | 14688 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14689 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 14690 | #line 14691 "configure" |
10f2d63a VZ |
14691 | #include "confdefs.h" |
14692 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14693 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14694 | builtin and then its argument prototype would still apply. */ |
14695 | char pthread_cancel(); | |
14696 | ||
14697 | int main() { | |
14698 | pthread_cancel() | |
14699 | ; return 0; } | |
14700 | EOF | |
18dbb1f6 | 14701 | if { (eval echo configure:14702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14702 | rm -rf conftest* |
14703 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14704 | else | |
14705 | echo "configure: failed program was:" >&5 | |
14706 | cat conftest.$ac_ext >&5 | |
14707 | rm -rf conftest* | |
14708 | eval "ac_cv_lib_$ac_lib_var=no" | |
14709 | fi | |
14710 | rm -f conftest* | |
14711 | LIBS="$ac_save_LIBS" | |
14712 | ||
14713 | fi | |
14714 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14715 | echo "$ac_t""yes" 1>&6 | |
14716 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14717 | #define HAVE_PTHREAD_CANCEL 1 |
14718 | EOF | |
14719 | ||
14720 | else | |
698dcdb6 VZ |
14721 | echo "$ac_t""no" 1>&6 |
14722 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10f2d63a VZ |
14723 | fi |
14724 | ||
1e487827 | 14725 | |
698dcdb6 | 14726 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
18dbb1f6 | 14727 | echo "configure:14728: checking for pthread_cleanup_push/pop" >&5 |
698dcdb6 VZ |
14728 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
14729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14730 | else | |
14731 | ||
14732 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 14733 | #line 14734 "configure" |
10f2d63a VZ |
14734 | #include "confdefs.h" |
14735 | #include <pthread.h> | |
698dcdb6 | 14736 | int main() { |
10f2d63a VZ |
14737 | |
14738 | pthread_cleanup_push(NULL, NULL); | |
14739 | pthread_cleanup_pop(0); | |
698dcdb6 VZ |
14740 | |
14741 | ; return 0; } | |
14742 | EOF | |
18dbb1f6 | 14743 | if { (eval echo configure:14744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14744 | rm -rf conftest* |
14745 | ||
10f2d63a | 14746 | wx_cv_func_pthread_cleanup_push=yes |
698dcdb6 | 14747 | |
10f2d63a | 14748 | else |
698dcdb6 VZ |
14749 | echo "configure: failed program was:" >&5 |
14750 | cat conftest.$ac_ext >&5 | |
14751 | rm -rf conftest* | |
14752 | ||
10f2d63a | 14753 | wx_cv_func_pthread_cleanup_push=no |
698dcdb6 | 14754 | |
6232543b | 14755 | fi |
698dcdb6 VZ |
14756 | rm -f conftest* |
14757 | ||
1e487827 | 14758 | fi |
698dcdb6 VZ |
14759 | |
14760 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10f2d63a | 14761 | |
d9b9876f | 14762 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
698dcdb6 | 14763 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14764 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
14765 | EOF | |
14766 | ||
14767 | fi | |
14768 | ||
698dcdb6 VZ |
14769 | |
14770 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
18dbb1f6 | 14771 | echo "configure:14772: checking for pthread_mutexattr_t" >&5 |
698dcdb6 VZ |
14772 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
14773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d9b9876f | 14774 | else |
698dcdb6 VZ |
14775 | |
14776 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 14777 | #line 14778 "configure" |
d9b9876f VZ |
14778 | #include "confdefs.h" |
14779 | #include <pthread.h> | |
698dcdb6 | 14780 | int main() { |
d9b9876f VZ |
14781 | |
14782 | pthread_mutexattr_t attr; | |
14783 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
698dcdb6 VZ |
14784 | |
14785 | ; return 0; } | |
14786 | EOF | |
18dbb1f6 | 14787 | if { (eval echo configure:14788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14788 | rm -rf conftest* |
14789 | ||
d9b9876f | 14790 | wx_cv_type_pthread_mutexattr_t=yes |
698dcdb6 | 14791 | |
d9b9876f | 14792 | else |
698dcdb6 VZ |
14793 | echo "configure: failed program was:" >&5 |
14794 | cat conftest.$ac_ext >&5 | |
14795 | rm -rf conftest* | |
14796 | ||
d9b9876f | 14797 | wx_cv_type_pthread_mutexattr_t=no |
698dcdb6 VZ |
14798 | |
14799 | ||
6232543b | 14800 | fi |
698dcdb6 VZ |
14801 | rm -f conftest* |
14802 | ||
1e487827 | 14803 | fi |
698dcdb6 VZ |
14804 | |
14805 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
d9b9876f VZ |
14806 | |
14807 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
698dcdb6 | 14808 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14809 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
14810 | EOF | |
14811 | ||
14812 | else | |
698dcdb6 | 14813 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
18dbb1f6 | 14814 | echo "configure:14815: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
698dcdb6 VZ |
14815 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
14816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14817 | else | |
14818 | ||
14819 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 14820 | #line 14821 "configure" |
d9b9876f VZ |
14821 | #include "confdefs.h" |
14822 | #include <pthread.h> | |
698dcdb6 | 14823 | int main() { |
d9b9876f VZ |
14824 | |
14825 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
698dcdb6 VZ |
14826 | |
14827 | ; return 0; } | |
14828 | EOF | |
18dbb1f6 | 14829 | if { (eval echo configure:14830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14830 | rm -rf conftest* |
14831 | ||
d9b9876f | 14832 | wx_cv_type_pthread_rec_mutex_init=yes |
698dcdb6 | 14833 | |
d9b9876f | 14834 | else |
698dcdb6 VZ |
14835 | echo "configure: failed program was:" >&5 |
14836 | cat conftest.$ac_ext >&5 | |
14837 | rm -rf conftest* | |
14838 | ||
d9b9876f | 14839 | wx_cv_type_pthread_rec_mutex_init=no |
698dcdb6 VZ |
14840 | |
14841 | ||
6232543b | 14842 | fi |
698dcdb6 VZ |
14843 | rm -f conftest* |
14844 | ||
1e487827 | 14845 | fi |
698dcdb6 VZ |
14846 | |
14847 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
3765e936 | 14848 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
698dcdb6 | 14849 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14850 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
14851 | EOF | |
14852 | ||
14853 | else | |
698dcdb6 | 14854 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
d9b9876f VZ |
14855 | fi |
14856 | fi | |
14857 | ||
10f2d63a | 14858 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
14859 | |
14860 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
14861 | CFLAGS="${CFLAGS} -mt" | |
14862 | CXXFLAGS="${CXXFLAGS} -mt" | |
14863 | LDFLAGS="${LDFLAGS} -mt" | |
14864 | fi | |
10f2d63a VZ |
14865 | fi |
14866 | ||
14867 | fi | |
14868 | ||
14869 | if test "$wxUSE_THREADS" = "yes"; then | |
698dcdb6 | 14870 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14871 | #define wxUSE_THREADS 1 |
14872 | EOF | |
14873 | ||
698dcdb6 | 14874 | |
7b6058cd | 14875 | if test "$USE_DARWIN" != 1; then |
10f2d63a | 14876 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
14877 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
14878 | fi | |
10f2d63a VZ |
14879 | |
14880 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
14881 | else | |
14882 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
698dcdb6 | 14883 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
18dbb1f6 | 14884 | echo "configure:14885: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
14885 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
14886 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
14887 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
698dcdb6 | 14888 | echo "$ac_t""yes" 1>&6 |
ab9b9eab | 14889 | else |
698dcdb6 | 14890 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
14891 | fi |
14892 | fi | |
14893 | fi | |
14894 | ||
6f72b082 | 14895 | if test "$WXGTK20" = 1 ; then |
698dcdb6 | 14896 | cat >> confdefs.h <<EOF |
6f72b082 | 14897 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
14898 | EOF |
14899 | ||
14900 | WXGTK12=1 | |
14901 | fi | |
14902 | ||
10f2d63a | 14903 | if test "$WXGTK12" = 1 ; then |
698dcdb6 | 14904 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
14905 | #define __WXGTK12__ $WXGTK12 |
14906 | EOF | |
14907 | ||
14908 | fi | |
14909 | ||
f6bcfd97 | 14910 | if test "$WXGTK127" = 1 ; then |
698dcdb6 | 14911 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
14912 | #define __WXGTK127__ $WXGTK127 |
14913 | EOF | |
14914 | ||
14915 | fi | |
14916 | ||
10f2d63a VZ |
14917 | if test "$WXWINE" = 1 ; then |
14918 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
14919 | fi | |
14920 | ||
b4085ce6 | 14921 | if test "$wxUSE_MAC" = 1 ; then |
f11bdd03 GD |
14922 | TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON" |
14923 | CFLAGS="${CFLAGS} -fpascal-strings" | |
14924 | CPPFLAGS="${CPPFLAGS} -cpp-precomp -fpascal-strings" | |
2f51a9ec GD |
14925 | # Extract the first word of "Rez", so it can be a program name with args. |
14926 | set dummy Rez; ac_word=$2 | |
698dcdb6 | 14927 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
18dbb1f6 | 14928 | echo "configure:14929: checking for $ac_word" >&5 |
698dcdb6 VZ |
14929 | if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then |
14930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14931 | else |
14932 | if test -n "$REZ"; then | |
14933 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
14934 | else | |
698dcdb6 VZ |
14935 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14936 | ac_dummy="$PATH" | |
14937 | for ac_dir in $ac_dummy; do | |
14938 | test -z "$ac_dir" && ac_dir=. | |
14939 | if test -f $ac_dir/$ac_word; then | |
14940 | ac_cv_prog_REZ="Rez" | |
14941 | break | |
14942 | fi | |
14943 | done | |
14944 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14945 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
14946 | fi | |
14947 | fi | |
698dcdb6 | 14948 | REZ="$ac_cv_prog_REZ" |
2f51a9ec | 14949 | if test -n "$REZ"; then |
698dcdb6 | 14950 | echo "$ac_t""$REZ" 1>&6 |
2f51a9ec | 14951 | else |
698dcdb6 | 14952 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14953 | fi |
14954 | ||
14955 | # Extract the first word of "Derez", so it can be a program name with args. | |
14956 | set dummy Derez; ac_word=$2 | |
698dcdb6 | 14957 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
18dbb1f6 | 14958 | echo "configure:14959: checking for $ac_word" >&5 |
698dcdb6 VZ |
14959 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
14960 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14961 | else |
14962 | if test -n "$DEREZ"; then | |
14963 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
14964 | else | |
698dcdb6 VZ |
14965 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14966 | ac_dummy="$PATH" | |
14967 | for ac_dir in $ac_dummy; do | |
14968 | test -z "$ac_dir" && ac_dir=. | |
14969 | if test -f $ac_dir/$ac_word; then | |
14970 | ac_cv_prog_DEREZ="Derez" | |
14971 | break | |
14972 | fi | |
14973 | done | |
14974 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14975 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" |
14976 | fi | |
14977 | fi | |
698dcdb6 | 14978 | DEREZ="$ac_cv_prog_DEREZ" |
2f51a9ec | 14979 | if test -n "$DEREZ"; then |
698dcdb6 | 14980 | echo "$ac_t""$DEREZ" 1>&6 |
2f51a9ec | 14981 | else |
698dcdb6 | 14982 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14983 | fi |
14984 | ||
14985 | RESCOMP=${REZ} | |
14986 | REZFLAGS="-d __UNIX__ -useDF" | |
14987 | DEREZFLAGS="Carbon.r -useDF" | |
14988 | RESFLAGS="Carbon.r -t APPL" | |
14989 | LIBWXMACRES="\$(LIBWX_MACRES)" | |
14990 | LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)" | |
b4085ce6 GD |
14991 | fi |
14992 | ||
10f2d63a VZ |
14993 | if test "$wxUSE_CYGWIN" = 1 ; then |
14994 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
14995 | fi | |
14996 | ||
14997 | WXDEBUG= | |
14998 | ||
14999 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
15000 | WXDEBUG="-g" | |
15001 | wxUSE_OPTIMISE=no | |
15002 | fi | |
15003 | ||
15004 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
15005 | wxUSE_DEBUG_INFO=yes | |
15006 | WXDEBUG="-ggdb" | |
15007 | fi | |
15008 | ||
15009 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
698dcdb6 | 15010 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15011 | #define WXDEBUG 1 |
15012 | EOF | |
15013 | ||
15014 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
15015 | else | |
15016 | if test "$wxUSE_GTK" = 1 ; then | |
15017 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
15018 | fi | |
15019 | fi | |
15020 | ||
15021 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
698dcdb6 | 15022 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15023 | #define wxUSE_MEMORY_TRACING 1 |
15024 | EOF | |
15025 | ||
698dcdb6 | 15026 | cat >> confdefs.h <<\EOF |
10f2d63a | 15027 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
15028 | EOF |
15029 | ||
698dcdb6 | 15030 | cat >> confdefs.h <<\EOF |
47c13eb7 | 15031 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
15032 | EOF |
15033 | ||
15034 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
15035 | fi | |
15036 | ||
15037 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
15038 | DMALLOC_LINK="-ldmalloc" | |
15039 | fi | |
15040 | ||
15041 | PROFILE= | |
15042 | if test "$wxUSE_PROFILE" = "yes" ; then | |
15043 | PROFILE="-pg" | |
15044 | fi | |
15045 | ||
15046 | DEP_INFO_FLAGS= | |
caa2c79b | 15047 | CODE_GEN_FLAGS= |
0f3f1cbc | 15048 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
15049 | if test "$GCC" = yes ; then |
15050 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 15051 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
15052 | fi |
15053 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 15054 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
15055 | fi |
15056 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 15057 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
15058 | fi |
15059 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
15060 | DEP_INFO_FLAGS="-MMD" | |
15061 | fi | |
15062 | fi | |
15063 | ||
698dcdb6 | 15064 | |
10f2d63a VZ |
15065 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
15066 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
15067 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
15068 | OPTIMISE= | |
15069 | else | |
15070 | if test "$GCC" = yes ; then | |
15071 | OPTIMISE="-O2" | |
15072 | case "${host}" in | |
15073 | i586-*-*|i686-*-* ) | |
15074 | OPTIMISE="${OPTIMISE} " | |
15075 | ;; | |
15076 | esac | |
15077 | else | |
15078 | OPTIMISE="-O" | |
15079 | fi | |
15080 | fi | |
15081 | ||
54276ccf VZ |
15082 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
15083 | cat >> confdefs.h <<\EOF | |
15084 | #define WXWIN_COMPATIBILITY_2 1 | |
15085 | EOF | |
15086 | ||
15087 | ||
15088 | WXWIN_COMPATIBILITY_2_2="yes" | |
15089 | fi | |
15090 | ||
15091 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
15092 | cat >> confdefs.h <<\EOF | |
15093 | #define WXWIN_COMPATIBILITY_2_2 1 | |
15094 | EOF | |
15095 | ||
15096 | fi | |
15097 | ||
698dcdb6 | 15098 | |
10f2d63a | 15099 | ZLIB_INCLUDE= |
422107f9 | 15100 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
698dcdb6 | 15101 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15102 | #define wxUSE_ZLIB 1 |
15103 | EOF | |
15104 | ||
422107f9 VZ |
15105 | if test "$wxUSE_ZLIB" = "yes" ; then |
15106 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
15107 | else | |
15108 | ZLIB_LINK= | |
698dcdb6 VZ |
15109 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
15110 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
18dbb1f6 | 15111 | echo "configure:15112: checking for zlib.h" >&5 |
698dcdb6 VZ |
15112 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15113 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15114 | else | |
15115 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 15116 | #line 15117 "configure" |
422107f9 VZ |
15117 | #include "confdefs.h" |
15118 | #include <zlib.h> | |
698dcdb6 VZ |
15119 | EOF |
15120 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 15121 | { (eval echo configure:15122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15122 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15123 | if test -z "$ac_err"; then | |
15124 | rm -rf conftest* | |
15125 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 15126 | else |
698dcdb6 VZ |
15127 | echo "$ac_err" >&5 |
15128 | echo "configure: failed program was:" >&5 | |
422107f9 | 15129 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15130 | rm -rf conftest* |
15131 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 15132 | fi |
698dcdb6 | 15133 | rm -f conftest* |
422107f9 | 15134 | fi |
698dcdb6 VZ |
15135 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15136 | echo "$ac_t""yes" 1>&6 | |
15137 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
18dbb1f6 | 15138 | echo "configure:15139: checking for deflate in -lz" >&5 |
698dcdb6 VZ |
15139 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
15140 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15142 | else |
698dcdb6 | 15143 | ac_save_LIBS="$LIBS" |
422107f9 | 15144 | LIBS="-lz $LIBS" |
698dcdb6 | 15145 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 15146 | #line 15147 "configure" |
422107f9 VZ |
15147 | #include "confdefs.h" |
15148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15149 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15150 | builtin and then its argument prototype would still apply. */ |
15151 | char deflate(); | |
15152 | ||
15153 | int main() { | |
15154 | deflate() | |
15155 | ; return 0; } | |
15156 | EOF | |
18dbb1f6 | 15157 | if { (eval echo configure:15158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15158 | rm -rf conftest* |
15159 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15160 | else | |
15161 | echo "configure: failed program was:" >&5 | |
15162 | cat conftest.$ac_ext >&5 | |
15163 | rm -rf conftest* | |
15164 | eval "ac_cv_lib_$ac_lib_var=no" | |
15165 | fi | |
15166 | rm -f conftest* | |
15167 | LIBS="$ac_save_LIBS" | |
15168 | ||
15169 | fi | |
15170 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15171 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15172 | ZLIB_LINK="-lz" |
698dcdb6 VZ |
15173 | else |
15174 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15175 | fi |
15176 | ||
698dcdb6 VZ |
15177 | else |
15178 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15179 | fi |
15180 | ||
15181 | if test "x$ZLIB_LINK" = "x" ; then | |
698dcdb6 | 15182 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } |
422107f9 VZ |
15183 | fi |
15184 | fi | |
10f2d63a VZ |
15185 | fi |
15186 | ||
15187 | PNG_INCLUDE= | |
422107f9 | 15188 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
698dcdb6 | 15189 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15190 | #define wxUSE_LIBPNG 1 |
15191 | EOF | |
15192 | ||
41fd4136 | 15193 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
698dcdb6 | 15194 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
422107f9 VZ |
15195 | wxUSE_LIBPNG=yes |
15196 | fi | |
15197 | ||
15198 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
15199 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
15200 | else | |
15201 | PNG_LINK= | |
698dcdb6 VZ |
15202 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
15203 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
18dbb1f6 | 15204 | echo "configure:15205: checking for png.h" >&5 |
698dcdb6 VZ |
15205 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15206 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15207 | else | |
15208 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 15209 | #line 15210 "configure" |
422107f9 VZ |
15210 | #include "confdefs.h" |
15211 | #include <png.h> | |
698dcdb6 VZ |
15212 | EOF |
15213 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 15214 | { (eval echo configure:15215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15215 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15216 | if test -z "$ac_err"; then | |
15217 | rm -rf conftest* | |
15218 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 15219 | else |
698dcdb6 VZ |
15220 | echo "$ac_err" >&5 |
15221 | echo "configure: failed program was:" >&5 | |
422107f9 | 15222 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15223 | rm -rf conftest* |
15224 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 15225 | fi |
698dcdb6 | 15226 | rm -f conftest* |
422107f9 | 15227 | fi |
698dcdb6 VZ |
15228 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15229 | echo "$ac_t""yes" 1>&6 | |
15230 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
18dbb1f6 | 15231 | echo "configure:15232: checking for png_check_sig in -lpng" >&5 |
698dcdb6 VZ |
15232 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
15233 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15234 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15235 | else |
698dcdb6 | 15236 | ac_save_LIBS="$LIBS" |
422107f9 | 15237 | LIBS="-lpng -lz -lm $LIBS" |
698dcdb6 | 15238 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 15239 | #line 15240 "configure" |
422107f9 VZ |
15240 | #include "confdefs.h" |
15241 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15242 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15243 | builtin and then its argument prototype would still apply. */ |
15244 | char png_check_sig(); | |
15245 | ||
15246 | int main() { | |
15247 | png_check_sig() | |
15248 | ; return 0; } | |
15249 | EOF | |
18dbb1f6 | 15250 | if { (eval echo configure:15251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15251 | rm -rf conftest* |
15252 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15253 | else | |
15254 | echo "configure: failed program was:" >&5 | |
15255 | cat conftest.$ac_ext >&5 | |
15256 | rm -rf conftest* | |
15257 | eval "ac_cv_lib_$ac_lib_var=no" | |
15258 | fi | |
15259 | rm -f conftest* | |
15260 | LIBS="$ac_save_LIBS" | |
15261 | ||
15262 | fi | |
15263 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15264 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15265 | PNG_LINK="-lpng" |
698dcdb6 VZ |
15266 | else |
15267 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15268 | fi |
15269 | ||
698dcdb6 VZ |
15270 | |
15271 | else | |
15272 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15273 | fi |
15274 | ||
15275 | if test "x$PNG_LINK" = "x" ; then | |
698dcdb6 | 15276 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
15277 | fi |
15278 | fi | |
15279 | ||
10f2d63a VZ |
15280 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
15281 | fi | |
15282 | ||
15283 | JPEG_INCLUDE= | |
422107f9 | 15284 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
698dcdb6 | 15285 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15286 | #define wxUSE_LIBJPEG 1 |
15287 | EOF | |
15288 | ||
422107f9 VZ |
15289 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
15290 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
15291 | else | |
15292 | JPEG_LINK= | |
463abc64 | 15293 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
18dbb1f6 | 15294 | echo "configure:15295: checking for jpeglib.h" >&5 |
463abc64 | 15295 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
698dcdb6 VZ |
15296 | echo $ac_n "(cached) $ac_c" 1>&6 |
15297 | else | |
15298 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 15299 | #line 15300 "configure" |
422107f9 | 15300 | #include "confdefs.h" |
463abc64 VZ |
15301 | |
15302 | #undef HAVE_STDLIB_H | |
15303 | #include <stdio.h> | |
15304 | #include <jpeglib.h> | |
15305 | ||
15306 | int main() { | |
15307 | ||
15308 | ||
15309 | ; return 0; } | |
698dcdb6 | 15310 | EOF |
18dbb1f6 | 15311 | if { (eval echo configure:15312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15312 | rm -rf conftest* |
463abc64 | 15313 | ac_cv_header_jpeglib_h=yes |
6232543b | 15314 | else |
698dcdb6 | 15315 | echo "configure: failed program was:" >&5 |
422107f9 | 15316 | cat conftest.$ac_ext >&5 |
698dcdb6 | 15317 | rm -rf conftest* |
463abc64 VZ |
15318 | ac_cv_header_jpeglib_h=no |
15319 | ||
422107f9 | 15320 | fi |
698dcdb6 | 15321 | rm -f conftest* |
463abc64 | 15322 | |
422107f9 | 15323 | fi |
463abc64 VZ |
15324 | |
15325 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
15326 | ||
15327 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
15328 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
18dbb1f6 | 15329 | echo "configure:15330: checking for jpeg_read_header in -ljpeg" >&5 |
698dcdb6 VZ |
15330 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
15331 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 15333 | else |
698dcdb6 | 15334 | ac_save_LIBS="$LIBS" |
422107f9 | 15335 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 15336 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 15337 | #line 15338 "configure" |
422107f9 VZ |
15338 | #include "confdefs.h" |
15339 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15340 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15341 | builtin and then its argument prototype would still apply. */ |
15342 | char jpeg_read_header(); | |
15343 | ||
15344 | int main() { | |
15345 | jpeg_read_header() | |
15346 | ; return 0; } | |
15347 | EOF | |
18dbb1f6 | 15348 | if { (eval echo configure:15349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15349 | rm -rf conftest* |
15350 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15351 | else | |
15352 | echo "configure: failed program was:" >&5 | |
15353 | cat conftest.$ac_ext >&5 | |
15354 | rm -rf conftest* | |
15355 | eval "ac_cv_lib_$ac_lib_var=no" | |
15356 | fi | |
15357 | rm -f conftest* | |
15358 | LIBS="$ac_save_LIBS" | |
15359 | ||
15360 | fi | |
15361 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15362 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 15363 | JPEG_LINK="-ljpeg" |
698dcdb6 VZ |
15364 | else |
15365 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
15366 | fi |
15367 | ||
463abc64 | 15368 | fi |
422107f9 VZ |
15369 | |
15370 | if test "x$JPEG_LINK" = "x" ; then | |
698dcdb6 | 15371 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
15372 | fi |
15373 | fi | |
10f2d63a VZ |
15374 | fi |
15375 | ||
c7a2bf27 | 15376 | TIFF_INCLUDE= |
0dcf9893 | 15377 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
698dcdb6 | 15378 | cat >> confdefs.h <<\EOF |
c7a2bf27 RR |
15379 | #define wxUSE_LIBTIFF 1 |
15380 | EOF | |
15381 | ||
665bbe97 | 15382 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
15383 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
15384 | else | |
15385 | TIFF_LINK= | |
698dcdb6 VZ |
15386 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
15387 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
18dbb1f6 | 15388 | echo "configure:15389: checking for tiffio.h" >&5 |
698dcdb6 VZ |
15389 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15390 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15391 | else | |
15392 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 15393 | #line 15394 "configure" |
0dcf9893 VZ |
15394 | #include "confdefs.h" |
15395 | #include <tiffio.h> | |
698dcdb6 VZ |
15396 | EOF |
15397 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 15398 | { (eval echo configure:15399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15399 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15400 | if test -z "$ac_err"; then | |
15401 | rm -rf conftest* | |
15402 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 15403 | else |
698dcdb6 VZ |
15404 | echo "$ac_err" >&5 |
15405 | echo "configure: failed program was:" >&5 | |
0dcf9893 | 15406 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15407 | rm -rf conftest* |
15408 | eval "ac_cv_header_$ac_safe=no" | |
0dcf9893 | 15409 | fi |
698dcdb6 | 15410 | rm -f conftest* |
0dcf9893 | 15411 | fi |
698dcdb6 VZ |
15412 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15413 | echo "$ac_t""yes" 1>&6 | |
15414 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
18dbb1f6 | 15415 | echo "configure:15416: checking for TIFFError in -ltiff" >&5 |
698dcdb6 VZ |
15416 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
15417 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15418 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0dcf9893 | 15419 | else |
698dcdb6 | 15420 | ac_save_LIBS="$LIBS" |
0dcf9893 | 15421 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 15422 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 15423 | #line 15424 "configure" |
0dcf9893 VZ |
15424 | #include "confdefs.h" |
15425 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15426 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15427 | builtin and then its argument prototype would still apply. */ |
15428 | char TIFFError(); | |
15429 | ||
15430 | int main() { | |
15431 | TIFFError() | |
15432 | ; return 0; } | |
15433 | EOF | |
18dbb1f6 | 15434 | if { (eval echo configure:15435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15435 | rm -rf conftest* |
15436 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15437 | else | |
15438 | echo "configure: failed program was:" >&5 | |
15439 | cat conftest.$ac_ext >&5 | |
15440 | rm -rf conftest* | |
15441 | eval "ac_cv_lib_$ac_lib_var=no" | |
15442 | fi | |
15443 | rm -f conftest* | |
15444 | LIBS="$ac_save_LIBS" | |
15445 | ||
15446 | fi | |
15447 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15448 | echo "$ac_t""yes" 1>&6 | |
0dcf9893 | 15449 | TIFF_LINK="-ltiff" |
698dcdb6 VZ |
15450 | else |
15451 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
15452 | fi |
15453 | ||
698dcdb6 VZ |
15454 | else |
15455 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
15456 | fi |
15457 | ||
15458 | if test "x$TIFF_LINK" = "x" ; then | |
698dcdb6 | 15459 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } |
0dcf9893 VZ |
15460 | fi |
15461 | fi | |
c7a2bf27 RR |
15462 | fi |
15463 | ||
3fed1840 RR |
15464 | FREETYPE_INCLUDE= |
15465 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
698dcdb6 | 15466 | cat >> confdefs.h <<\EOF |
3fed1840 RR |
15467 | #define wxUSE_FREETYPE 1 |
15468 | EOF | |
15469 | ||
15470 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
15471 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
15472 | else | |
15473 | FREETYPE_LINK= | |
698dcdb6 VZ |
15474 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` |
15475 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
18dbb1f6 | 15476 | echo "configure:15477: checking for freetype.h" >&5 |
698dcdb6 VZ |
15477 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15479 | else | |
15480 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 15481 | #line 15482 "configure" |
3fed1840 RR |
15482 | #include "confdefs.h" |
15483 | #include <freetype.h> | |
698dcdb6 VZ |
15484 | EOF |
15485 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 15486 | { (eval echo configure:15487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15487 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15488 | if test -z "$ac_err"; then | |
15489 | rm -rf conftest* | |
15490 | eval "ac_cv_header_$ac_safe=yes" | |
3fed1840 | 15491 | else |
698dcdb6 VZ |
15492 | echo "$ac_err" >&5 |
15493 | echo "configure: failed program was:" >&5 | |
3fed1840 | 15494 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15495 | rm -rf conftest* |
15496 | eval "ac_cv_header_$ac_safe=no" | |
3fed1840 | 15497 | fi |
698dcdb6 | 15498 | rm -f conftest* |
3fed1840 | 15499 | fi |
698dcdb6 VZ |
15500 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15501 | echo "$ac_t""yes" 1>&6 | |
15502 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
18dbb1f6 | 15503 | echo "configure:15504: checking for FT_Render_Glyph in -lfreetype" >&5 |
698dcdb6 VZ |
15504 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
15505 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3fed1840 | 15507 | else |
698dcdb6 | 15508 | ac_save_LIBS="$LIBS" |
3fed1840 | 15509 | LIBS="-lfreetype -lm $LIBS" |
698dcdb6 | 15510 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 15511 | #line 15512 "configure" |
3fed1840 RR |
15512 | #include "confdefs.h" |
15513 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15514 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15515 | builtin and then its argument prototype would still apply. */ |
15516 | char FT_Render_Glyph(); | |
15517 | ||
15518 | int main() { | |
15519 | FT_Render_Glyph() | |
15520 | ; return 0; } | |
15521 | EOF | |
18dbb1f6 | 15522 | if { (eval echo configure:15523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15523 | rm -rf conftest* |
15524 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15525 | else | |
15526 | echo "configure: failed program was:" >&5 | |
15527 | cat conftest.$ac_ext >&5 | |
15528 | rm -rf conftest* | |
15529 | eval "ac_cv_lib_$ac_lib_var=no" | |
15530 | fi | |
15531 | rm -f conftest* | |
15532 | LIBS="$ac_save_LIBS" | |
15533 | ||
15534 | fi | |
15535 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15536 | echo "$ac_t""yes" 1>&6 | |
3fed1840 | 15537 | FREETYPE_LINK="-lfreetype" |
698dcdb6 VZ |
15538 | else |
15539 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15540 | fi |
15541 | ||
698dcdb6 VZ |
15542 | |
15543 | else | |
15544 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15545 | fi |
15546 | ||
15547 | if test "x$FREETYPE_LINK" = "x" ; then | |
698dcdb6 | 15548 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } |
3fed1840 RR |
15549 | fi |
15550 | fi | |
15551 | fi | |
15552 | ||
10f2d63a | 15553 | if test "$wxUSE_OPENGL" = "yes"; then |
7b6058cd GD |
15554 | if test "$wxUSE_MAC" = 1; then |
15555 | cat >> confdefs.h <<\EOF | |
15556 | #define wxUSE_OPENGL 1 | |
15557 | EOF | |
15558 | ||
15559 | cat >> confdefs.h <<\EOF | |
15560 | #define wxUSE_GLCANVAS 1 | |
15561 | EOF | |
15562 | ||
15563 | OPENGL_LINK="-framework OpenGL -framework AGL" | |
24176f2c | 15564 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
7b6058cd GD |
15565 | else |
15566 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
698dcdb6 | 15567 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 |
18dbb1f6 | 15568 | echo "configure:15569: checking for GL/gl.h" >&5 |
698dcdb6 VZ |
15569 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15570 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15571 | else | |
15572 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 15573 | #line 15574 "configure" |
10f2d63a VZ |
15574 | #include "confdefs.h" |
15575 | #include <GL/gl.h> | |
698dcdb6 VZ |
15576 | EOF |
15577 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 15578 | { (eval echo configure:15579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15579 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15580 | if test -z "$ac_err"; then | |
15581 | rm -rf conftest* | |
15582 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 15583 | else |
698dcdb6 VZ |
15584 | echo "$ac_err" >&5 |
15585 | echo "configure: failed program was:" >&5 | |
10f2d63a | 15586 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15587 | rm -rf conftest* |
15588 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 15589 | fi |
698dcdb6 | 15590 | rm -f conftest* |
10f2d63a | 15591 | fi |
698dcdb6 VZ |
15592 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15593 | echo "$ac_t""yes" 1>&6 | |
15594 | ||
7b6058cd | 15595 | cat >> confdefs.h <<\EOF |
bdad4e7e RR |
15596 | #define wxUSE_OPENGL 1 |
15597 | EOF | |
15598 | ||
7b6058cd | 15599 | cat >> confdefs.h <<\EOF |
bdad4e7e RR |
15600 | #define wxUSE_GLCANVAS 1 |
15601 | EOF | |
15602 | ||
24176f2c | 15603 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" |
7b6058cd | 15604 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 |
18dbb1f6 | 15605 | echo "configure:15606: checking for glFlush in -lGL" >&5 |
698dcdb6 VZ |
15606 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
15607 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15608 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15609 | else |
698dcdb6 | 15610 | ac_save_LIBS="$LIBS" |
bdad4e7e | 15611 | LIBS="-lGL $LIBS" |
698dcdb6 | 15612 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 15613 | #line 15614 "configure" |
10f2d63a VZ |
15614 | #include "confdefs.h" |
15615 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15616 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15617 | builtin and then its argument prototype would still apply. */ |
15618 | char glFlush(); | |
6232543b | 15619 | |
698dcdb6 VZ |
15620 | int main() { |
15621 | glFlush() | |
15622 | ; return 0; } | |
15623 | EOF | |
18dbb1f6 | 15624 | if { (eval echo configure:15625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15625 | rm -rf conftest* |
15626 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15627 | else | |
15628 | echo "configure: failed program was:" >&5 | |
15629 | cat conftest.$ac_ext >&5 | |
15630 | rm -rf conftest* | |
15631 | eval "ac_cv_lib_$ac_lib_var=no" | |
15632 | fi | |
15633 | rm -f conftest* | |
15634 | LIBS="$ac_save_LIBS" | |
1e487827 | 15635 | |
698dcdb6 VZ |
15636 | fi |
15637 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15638 | echo "$ac_t""yes" 1>&6 | |
15639 | ||
7b6058cd GD |
15640 | OPENGL_LINK="-lGL -lGLU" |
15641 | ||
10f2d63a | 15642 | else |
698dcdb6 | 15643 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15644 | |
7b6058cd | 15645 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
18dbb1f6 | 15646 | echo "configure:15647: checking for glFlush in -lMesaGL" >&5 |
698dcdb6 VZ |
15647 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
15648 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15649 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15650 | else |
698dcdb6 | 15651 | ac_save_LIBS="$LIBS" |
10f2d63a | 15652 | LIBS="-lMesaGL $LIBS" |
698dcdb6 | 15653 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 15654 | #line 15655 "configure" |
10f2d63a VZ |
15655 | #include "confdefs.h" |
15656 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15657 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15658 | builtin and then its argument prototype would still apply. */ |
15659 | char glFlush(); | |
15660 | ||
15661 | int main() { | |
15662 | glFlush() | |
15663 | ; return 0; } | |
15664 | EOF | |
18dbb1f6 | 15665 | if { (eval echo configure:15666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15666 | rm -rf conftest* |
15667 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15668 | else | |
15669 | echo "configure: failed program was:" >&5 | |
15670 | cat conftest.$ac_ext >&5 | |
15671 | rm -rf conftest* | |
15672 | eval "ac_cv_lib_$ac_lib_var=no" | |
15673 | fi | |
15674 | rm -f conftest* | |
15675 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15676 | |
698dcdb6 VZ |
15677 | fi |
15678 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15679 | echo "$ac_t""yes" 1>&6 | |
15680 | ||
7b6058cd GD |
15681 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
15682 | ||
698dcdb6 VZ |
15683 | else |
15684 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15685 | fi |
15686 | ||
7b6058cd | 15687 | |
10f2d63a VZ |
15688 | fi |
15689 | ||
7b6058cd | 15690 | |
10f2d63a | 15691 | else |
698dcdb6 VZ |
15692 | echo "$ac_t""no" 1>&6 |
15693 | wxUSE_OPENGL=0 | |
10f2d63a VZ |
15694 | fi |
15695 | ||
7b6058cd | 15696 | fi |
10f2d63a VZ |
15697 | fi |
15698 | ||
698dcdb6 | 15699 | |
10f2d63a | 15700 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 15701 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15702 | #define wxUSE_GUI 1 |
15703 | EOF | |
15704 | ||
698dcdb6 | 15705 | |
10f2d63a | 15706 | else |
698dcdb6 | 15707 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15708 | #define wxUSE_NOGUI 1 |
15709 | EOF | |
15710 | ||
15711 | fi | |
15712 | ||
698dcdb6 | 15713 | |
10f2d63a | 15714 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 15715 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15716 | #define wxUSE_UNIX 1 |
15717 | EOF | |
15718 | ||
15719 | fi | |
15720 | ||
698dcdb6 | 15721 | |
10f2d63a | 15722 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 15723 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15724 | #define wxUSE_APPLE_IEEE 1 |
15725 | EOF | |
15726 | ||
15727 | fi | |
15728 | ||
1e6feb95 VZ |
15729 | if test "$wxUSE_TIMER" = "yes"; then |
15730 | cat >> confdefs.h <<\EOF | |
15731 | #define wxUSE_TIMER 1 | |
15732 | EOF | |
15733 | ||
15734 | fi | |
15735 | ||
10f2d63a | 15736 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 15737 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15738 | #define wxUSE_WAVE 1 |
15739 | EOF | |
15740 | ||
15741 | fi | |
15742 | ||
1e6feb95 VZ |
15743 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
15744 | cat >> confdefs.h <<\EOF | |
15745 | #define wxUSE_CMDLINE_PARSER 1 | |
15746 | EOF | |
15747 | ||
15748 | fi | |
15749 | ||
15750 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
15751 | cat >> confdefs.h <<\EOF | |
15752 | #define wxUSE_STOPWATCH 1 | |
15753 | EOF | |
15754 | ||
15755 | fi | |
15756 | ||
15757 | if test "$wxUSE_DATETIME" = "yes"; then | |
15758 | cat >> confdefs.h <<\EOF | |
15759 | #define wxUSE_DATETIME 1 | |
15760 | EOF | |
15761 | ||
15762 | fi | |
15763 | ||
15764 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
15765 | cat >> confdefs.h <<\EOF | |
15766 | #define wxUSE_TIMEDATE 1 | |
15767 | EOF | |
15768 | ||
15769 | fi | |
15770 | ||
10f2d63a | 15771 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 15772 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15773 | #define wxUSE_FILE 1 |
15774 | EOF | |
15775 | ||
15776 | fi | |
15777 | ||
1e6feb95 VZ |
15778 | if test "$wxUSE_FFILE" = "yes"; then |
15779 | cat >> confdefs.h <<\EOF | |
15780 | #define wxUSE_FFILE 1 | |
15781 | EOF | |
15782 | ||
15783 | fi | |
15784 | ||
24528b0c | 15785 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 15786 | cat >> confdefs.h <<\EOF |
24528b0c VS |
15787 | #define wxUSE_FILESYSTEM 1 |
15788 | EOF | |
15789 | ||
15790 | fi | |
15791 | ||
10f2d63a | 15792 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 15793 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15794 | #define wxUSE_FS_INET 1 |
15795 | EOF | |
15796 | ||
15797 | fi | |
15798 | ||
15799 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 15800 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15801 | #define wxUSE_FS_ZIP 1 |
15802 | EOF | |
15803 | ||
15804 | fi | |
15805 | ||
15806 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 15807 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15808 | #define wxUSE_ZIPSTREAM 1 |
15809 | EOF | |
15810 | ||
15811 | fi | |
15812 | ||
eb4efbdc | 15813 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 15814 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
15815 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
15816 | EOF | |
15817 | ||
15818 | fi | |
15819 | ||
4f3c5f06 | 15820 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 15821 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
15822 | #define wxUSE_SNGLINST_CHECKER 1 |
15823 | EOF | |
15824 | ||
15825 | fi | |
15826 | ||
10f2d63a | 15827 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 15828 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15829 | #define wxUSE_BUSYINFO 1 |
15830 | EOF | |
15831 | ||
15832 | fi | |
15833 | ||
15834 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 15835 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15836 | #define wxUSE_STD_IOSTREAM 1 |
15837 | EOF | |
15838 | ||
15839 | fi | |
15840 | ||
15841 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
15842 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15843 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15844 | else |
698dcdb6 | 15845 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15846 | #define wxUSE_TEXTFILE 1 |
15847 | EOF | |
15848 | ||
15849 | fi | |
15850 | fi | |
15851 | ||
15852 | if test "$wxUSE_CONFIG" = "yes" ; then | |
15853 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 15854 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15855 | else |
698dcdb6 | 15856 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15857 | #define wxUSE_CONFIG 1 |
15858 | EOF | |
15859 | ||
15860 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
15861 | fi | |
15862 | fi | |
15863 | ||
15864 | if test "$wxUSE_INTL" = "yes" ; then | |
15865 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15866 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15867 | else |
698dcdb6 | 15868 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15869 | #define wxUSE_INTL 1 |
15870 | EOF | |
15871 | ||
15872 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 15873 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
15874 | fi |
15875 | fi | |
15876 | ||
15877 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 15878 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15879 | #define wxUSE_LOG 1 |
15880 | EOF | |
15881 | ||
d73be714 VZ |
15882 | |
15883 | if test "$wxUSE_LOGGUI" = "yes"; then | |
15884 | cat >> confdefs.h <<\EOF | |
15885 | #define wxUSE_LOGGUI 1 | |
15886 | EOF | |
15887 | ||
15888 | fi | |
15889 | ||
15890 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
15891 | cat >> confdefs.h <<\EOF | |
15892 | #define wxUSE_LOGWINDOW 1 | |
15893 | EOF | |
15894 | ||
15895 | fi | |
10f2d63a VZ |
15896 | fi |
15897 | ||
15898 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 15899 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15900 | #define wxUSE_LONGLONG 1 |
15901 | EOF | |
15902 | ||
15903 | fi | |
15904 | ||
e8f65ba6 | 15905 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 15906 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
15907 | #define wxUSE_GEOMETRY 1 |
15908 | EOF | |
15909 | ||
15910 | fi | |
15911 | ||
10f2d63a | 15912 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 15913 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15914 | #define wxUSE_DIALUP_MANAGER 1 |
15915 | EOF | |
15916 | ||
70f7a477 | 15917 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
15918 | fi |
15919 | ||
15920 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 15921 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15922 | #define wxUSE_STREAMS 1 |
15923 | EOF | |
15924 | ||
15925 | fi | |
15926 | ||
1e487827 | 15927 | |
1e6feb95 | 15928 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 15929 | for ac_func in strptime |
83307f33 | 15930 | do |
698dcdb6 | 15931 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 15932 | echo "configure:15933: checking for $ac_func" >&5 |
698dcdb6 VZ |
15933 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15935 | else | |
15936 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 15937 | #line 15938 "configure" |
83307f33 VZ |
15938 | #include "confdefs.h" |
15939 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15940 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
15941 | #include <assert.h> |
15942 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15943 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15944 | builtin and then its argument prototype would still apply. */ |
15945 | char $ac_func(); | |
15946 | ||
15947 | int main() { | |
83307f33 VZ |
15948 | |
15949 | /* The GNU C library defines this for functions which it implements | |
15950 | to always fail with ENOSYS. Some functions are actually named | |
15951 | something starting with __ and the normal name is an alias. */ | |
15952 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15953 | choke me | |
15954 | #else | |
698dcdb6 | 15955 | $ac_func(); |
83307f33 VZ |
15956 | #endif |
15957 | ||
698dcdb6 | 15958 | ; return 0; } |
83307f33 | 15959 | EOF |
18dbb1f6 | 15960 | if { (eval echo configure:15961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15961 | rm -rf conftest* |
15962 | eval "ac_cv_func_$ac_func=yes" | |
15963 | else | |
15964 | echo "configure: failed program was:" >&5 | |
15965 | cat conftest.$ac_ext >&5 | |
15966 | rm -rf conftest* | |
15967 | eval "ac_cv_func_$ac_func=no" | |
15968 | fi | |
15969 | rm -f conftest* | |
15970 | fi | |
83307f33 | 15971 | |
698dcdb6 VZ |
15972 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15973 | echo "$ac_t""yes" 1>&6 | |
15974 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15975 | cat >> confdefs.h <<EOF | |
15976 | #define $ac_tr_func 1 | |
15977 | EOF | |
15978 | ||
15979 | else | |
15980 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
15981 | fi |
15982 | done | |
15983 | ||
1e487827 | 15984 | |
698dcdb6 | 15985 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
18dbb1f6 | 15986 | echo "configure:15987: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
15987 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
15988 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15989 | else | |
15990 | ||
15991 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 15992 | #line 15993 "configure" |
360d6699 VZ |
15993 | #include "confdefs.h" |
15994 | ||
b4085ce6 | 15995 | #include <time.h> |
698dcdb6 VZ |
15996 | |
15997 | int main() { | |
360d6699 VZ |
15998 | |
15999 | int tz; | |
4f11a343 | 16000 | tz = timezone; |
698dcdb6 VZ |
16001 | |
16002 | ; return 0; } | |
16003 | EOF | |
18dbb1f6 | 16004 | if { (eval echo configure:16005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16005 | rm -rf conftest* |
16006 | ||
4f11a343 | 16007 | wx_cv_var_timezone=timezone |
698dcdb6 | 16008 | |
360d6699 | 16009 | else |
698dcdb6 VZ |
16010 | echo "configure: failed program was:" >&5 |
16011 | cat conftest.$ac_ext >&5 | |
16012 | rm -rf conftest* | |
16013 | ||
16014 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 16015 | #line 16016 "configure" |
360d6699 VZ |
16016 | #include "confdefs.h" |
16017 | ||
b4085ce6 | 16018 | #include <time.h> |
698dcdb6 VZ |
16019 | |
16020 | int main() { | |
360d6699 VZ |
16021 | |
16022 | int tz; | |
16023 | tz = _timezone; | |
698dcdb6 VZ |
16024 | |
16025 | ; return 0; } | |
16026 | EOF | |
18dbb1f6 | 16027 | if { (eval echo configure:16028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16028 | rm -rf conftest* |
16029 | ||
360d6699 | 16030 | wx_cv_var_timezone=_timezone |
698dcdb6 | 16031 | |
5357c8e8 | 16032 | else |
698dcdb6 VZ |
16033 | echo "configure: failed program was:" >&5 |
16034 | cat conftest.$ac_ext >&5 | |
16035 | rm -rf conftest* | |
16036 | ||
16037 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 16038 | #line 16039 "configure" |
5357c8e8 VZ |
16039 | #include "confdefs.h" |
16040 | ||
b4085ce6 | 16041 | #include <time.h> |
698dcdb6 VZ |
16042 | |
16043 | int main() { | |
5357c8e8 VZ |
16044 | |
16045 | int tz; | |
4f11a343 | 16046 | tz = __timezone; |
698dcdb6 VZ |
16047 | |
16048 | ; return 0; } | |
16049 | EOF | |
18dbb1f6 | 16050 | if { (eval echo configure:16051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16051 | rm -rf conftest* |
16052 | ||
4f11a343 | 16053 | wx_cv_var_timezone=__timezone |
698dcdb6 | 16054 | |
360d6699 | 16055 | else |
698dcdb6 VZ |
16056 | echo "configure: failed program was:" >&5 |
16057 | cat conftest.$ac_ext >&5 | |
16058 | rm -rf conftest* | |
16059 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
16060 | ||
360d6699 | 16061 | fi |
698dcdb6 VZ |
16062 | rm -f conftest* |
16063 | ||
16064 | ||
360d6699 | 16065 | fi |
698dcdb6 VZ |
16066 | rm -f conftest* |
16067 | ||
16068 | ||
6232543b | 16069 | fi |
698dcdb6 VZ |
16070 | rm -f conftest* |
16071 | ||
16072 | ||
1e487827 | 16073 | fi |
703e0a69 | 16074 | |
698dcdb6 VZ |
16075 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
16076 | ||
16077 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
16078 | #define WX_TIMEZONE $wx_cv_var_timezone |
16079 | EOF | |
16080 | ||
698dcdb6 VZ |
16081 | |
16082 | for ac_func in localtime | |
afc31813 | 16083 | do |
698dcdb6 | 16084 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 16085 | echo "configure:16086: checking for $ac_func" >&5 |
698dcdb6 VZ |
16086 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16087 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16088 | else | |
16089 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 16090 | #line 16091 "configure" |
10f2d63a | 16091 | #include "confdefs.h" |
afc31813 | 16092 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 16093 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
16094 | #include <assert.h> |
16095 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16096 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16097 | builtin and then its argument prototype would still apply. */ |
16098 | char $ac_func(); | |
16099 | ||
16100 | int main() { | |
afc31813 VZ |
16101 | |
16102 | /* The GNU C library defines this for functions which it implements | |
16103 | to always fail with ENOSYS. Some functions are actually named | |
16104 | something starting with __ and the normal name is an alias. */ | |
16105 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16106 | choke me | |
16107 | #else | |
698dcdb6 | 16108 | $ac_func(); |
afc31813 VZ |
16109 | #endif |
16110 | ||
698dcdb6 | 16111 | ; return 0; } |
10f2d63a | 16112 | EOF |
18dbb1f6 | 16113 | if { (eval echo configure:16114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16114 | rm -rf conftest* |
16115 | eval "ac_cv_func_$ac_func=yes" | |
16116 | else | |
16117 | echo "configure: failed program was:" >&5 | |
16118 | cat conftest.$ac_ext >&5 | |
16119 | rm -rf conftest* | |
16120 | eval "ac_cv_func_$ac_func=no" | |
16121 | fi | |
16122 | rm -f conftest* | |
16123 | fi | |
afc31813 | 16124 | |
698dcdb6 VZ |
16125 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16126 | echo "$ac_t""yes" 1>&6 | |
16127 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16128 | cat >> confdefs.h <<EOF | |
16129 | #define $ac_tr_func 1 | |
16130 | EOF | |
16131 | ||
16132 | else | |
16133 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
16134 | fi |
16135 | done | |
16136 | ||
1e487827 | 16137 | |
698dcdb6 VZ |
16138 | if test "$ac_cv_func_localtime" = "yes"; then |
16139 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
18dbb1f6 | 16140 | echo "configure:16141: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
16141 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
16142 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16143 | else | |
16144 | ||
16145 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 16146 | #line 16147 "configure" |
0470b1e6 VZ |
16147 | #include "confdefs.h" |
16148 | ||
b4085ce6 | 16149 | #include <time.h> |
698dcdb6 VZ |
16150 | |
16151 | int main() { | |
0470b1e6 VZ |
16152 | |
16153 | struct tm tm; | |
16154 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
16155 | |
16156 | ; return 0; } | |
16157 | EOF | |
18dbb1f6 | 16158 | if { (eval echo configure:16159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
16159 | rm -rf conftest* |
16160 | ||
f03a98d8 | 16161 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 16162 | |
0470b1e6 | 16163 | else |
698dcdb6 VZ |
16164 | echo "configure: failed program was:" >&5 |
16165 | cat conftest.$ac_ext >&5 | |
16166 | rm -rf conftest* | |
16167 | wx_cv_struct_tm_has_gmtoff=no | |
16168 | ||
0470b1e6 | 16169 | fi |
698dcdb6 VZ |
16170 | rm -f conftest* |
16171 | ||
1e487827 | 16172 | fi |
698dcdb6 VZ |
16173 | |
16174 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
16175 | fi |
16176 | ||
16177 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 16178 | cat >> confdefs.h <<\EOF |
6232543b VS |
16179 | #define WX_GMTOFF_IN_TM 1 |
16180 | EOF | |
0470b1e6 | 16181 | |
3fcdd07b VZ |
16182 | fi |
16183 | ||
698dcdb6 | 16184 | for ac_func in gettimeofday ftime |
3fcdd07b | 16185 | do |
698dcdb6 | 16186 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 16187 | echo "configure:16188: checking for $ac_func" >&5 |
698dcdb6 VZ |
16188 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16190 | else | |
16191 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 16192 | #line 16193 "configure" |
3fcdd07b VZ |
16193 | #include "confdefs.h" |
16194 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16195 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
16196 | #include <assert.h> |
16197 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16198 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16199 | builtin and then its argument prototype would still apply. */ |
16200 | char $ac_func(); | |
16201 | ||
16202 | int main() { | |
3fcdd07b VZ |
16203 | |
16204 | /* The GNU C library defines this for functions which it implements | |
16205 | to always fail with ENOSYS. Some functions are actually named | |
16206 | something starting with __ and the normal name is an alias. */ | |
16207 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16208 | choke me | |
16209 | #else | |
698dcdb6 | 16210 | $ac_func(); |
3fcdd07b VZ |
16211 | #endif |
16212 | ||
698dcdb6 VZ |
16213 | ; return 0; } |
16214 | EOF | |
18dbb1f6 | 16215 | if { (eval echo configure:16216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16216 | rm -rf conftest* |
16217 | eval "ac_cv_func_$ac_func=yes" | |
16218 | else | |
16219 | echo "configure: failed program was:" >&5 | |
16220 | cat conftest.$ac_ext >&5 | |
16221 | rm -rf conftest* | |
16222 | eval "ac_cv_func_$ac_func=no" | |
16223 | fi | |
16224 | rm -f conftest* | |
16225 | fi | |
16226 | ||
16227 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16228 | echo "$ac_t""yes" 1>&6 | |
16229 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16230 | cat >> confdefs.h <<EOF | |
16231 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
16232 | EOF |
16233 | break | |
698dcdb6 VZ |
16234 | else |
16235 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
16236 | fi |
16237 | done | |
16238 | ||
afc31813 | 16239 | |
698dcdb6 VZ |
16240 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
16241 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
18dbb1f6 | 16242 | echo "configure:16243: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
16243 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
16244 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16245 | else | |
16246 | ||
16247 | ||
16248 | ac_ext=C | |
16249 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 16250 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16251 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16252 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16253 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16254 | |
698dcdb6 VZ |
16255 | |
16256 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 16257 | #line 16258 "configure" |
10f2d63a | 16258 | #include "confdefs.h" |
afc31813 VZ |
16259 | |
16260 | #include <sys/time.h> | |
16261 | #include <unistd.h> | |
698dcdb6 VZ |
16262 | |
16263 | int main() { | |
afc31813 VZ |
16264 | |
16265 | struct timeval tv; | |
16266 | struct timezone tz; | |
16267 | gettimeofday(&tv, &tz); | |
698dcdb6 VZ |
16268 | |
16269 | ; return 0; } | |
16270 | EOF | |
18dbb1f6 | 16271 | if { (eval echo configure:16272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16272 | rm -rf conftest* |
afc31813 | 16273 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 16274 | else |
698dcdb6 VZ |
16275 | echo "configure: failed program was:" >&5 |
16276 | cat conftest.$ac_ext >&5 | |
16277 | rm -rf conftest* | |
16278 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 16279 | #line 16280 "configure" |
10f2d63a | 16280 | #include "confdefs.h" |
afc31813 VZ |
16281 | |
16282 | #include <sys/time.h> | |
16283 | #include <unistd.h> | |
698dcdb6 VZ |
16284 | |
16285 | int main() { | |
afc31813 VZ |
16286 | |
16287 | struct timeval tv; | |
16288 | gettimeofday(&tv); | |
698dcdb6 VZ |
16289 | |
16290 | ; return 0; } | |
16291 | EOF | |
18dbb1f6 | 16292 | if { (eval echo configure:16293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16293 | rm -rf conftest* |
afc31813 | 16294 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 16295 | else |
698dcdb6 VZ |
16296 | echo "configure: failed program was:" >&5 |
16297 | cat conftest.$ac_ext >&5 | |
16298 | rm -rf conftest* | |
16299 | wx_cv_func_gettimeofday_has_2_args=unknown | |
16300 | ||
10f2d63a | 16301 | fi |
698dcdb6 VZ |
16302 | rm -f conftest* |
16303 | ||
10f2d63a | 16304 | fi |
698dcdb6 | 16305 | rm -f conftest* |
afc31813 | 16306 | ac_ext=c |
698dcdb6 | 16307 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 16308 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16309 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16310 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16311 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 16312 | |
698dcdb6 | 16313 | |
afc31813 | 16314 | fi |
698dcdb6 VZ |
16315 | |
16316 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 16317 | |
afc31813 | 16318 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 16319 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16320 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
16321 | EOF | |
16322 | ||
16323 | fi | |
16324 | fi | |
16325 | ||
698dcdb6 | 16326 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16327 | #define wxUSE_TIMEDATE 1 |
16328 | EOF | |
16329 | ||
16330 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
16331 | fi | |
16332 | ||
698dcdb6 | 16333 | |
b089607b VZ |
16334 | if test "$TOOLKIT" != "MSW"; then |
16335 | ||
afc31813 | 16336 | if test "$wxUSE_SOCKETS" = "yes"; then |
698dcdb6 | 16337 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
18dbb1f6 | 16338 | echo "configure:16339: checking for socket" >&5 |
698dcdb6 VZ |
16339 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
16340 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16341 | else |
698dcdb6 | 16342 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 16343 | #line 16344 "configure" |
c63c7106 VZ |
16344 | #include "confdefs.h" |
16345 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16346 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
16347 | #include <assert.h> |
16348 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16349 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16350 | builtin and then its argument prototype would still apply. */ |
16351 | char socket(); | |
16352 | ||
16353 | int main() { | |
c63c7106 VZ |
16354 | |
16355 | /* The GNU C library defines this for functions which it implements | |
16356 | to always fail with ENOSYS. Some functions are actually named | |
16357 | something starting with __ and the normal name is an alias. */ | |
16358 | #if defined (__stub_socket) || defined (__stub___socket) | |
16359 | choke me | |
16360 | #else | |
698dcdb6 | 16361 | socket(); |
c63c7106 VZ |
16362 | #endif |
16363 | ||
698dcdb6 VZ |
16364 | ; return 0; } |
16365 | EOF | |
18dbb1f6 | 16366 | if { (eval echo configure:16367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16367 | rm -rf conftest* |
16368 | eval "ac_cv_func_socket=yes" | |
16369 | else | |
16370 | echo "configure: failed program was:" >&5 | |
16371 | cat conftest.$ac_ext >&5 | |
16372 | rm -rf conftest* | |
16373 | eval "ac_cv_func_socket=no" | |
16374 | fi | |
16375 | rm -f conftest* | |
16376 | fi | |
16377 | ||
16378 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
16379 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
16380 | : |
16381 | else | |
698dcdb6 VZ |
16382 | echo "$ac_t""no" 1>&6 |
16383 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
18dbb1f6 | 16384 | echo "configure:16385: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
16385 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
16386 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16387 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 16388 | else |
698dcdb6 | 16389 | ac_save_LIBS="$LIBS" |
c63c7106 | 16390 | LIBS="-lsocket $LIBS" |
698dcdb6 | 16391 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 16392 | #line 16393 "configure" |
c63c7106 VZ |
16393 | #include "confdefs.h" |
16394 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16395 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16396 | builtin and then its argument prototype would still apply. */ |
16397 | char socket(); | |
16398 | ||
16399 | int main() { | |
16400 | socket() | |
16401 | ; return 0; } | |
16402 | EOF | |
18dbb1f6 | 16403 | if { (eval echo configure:16404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16404 | rm -rf conftest* |
16405 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16406 | else | |
16407 | echo "configure: failed program was:" >&5 | |
16408 | cat conftest.$ac_ext >&5 | |
16409 | rm -rf conftest* | |
16410 | eval "ac_cv_lib_$ac_lib_var=no" | |
16411 | fi | |
16412 | rm -f conftest* | |
16413 | LIBS="$ac_save_LIBS" | |
16414 | ||
16415 | fi | |
16416 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16417 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 16418 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 16419 | else |
698dcdb6 | 16420 | echo "$ac_t""no" 1>&6 |
afc31813 | 16421 | |
698dcdb6 | 16422 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
afc31813 | 16423 | wxUSE_SOCKETS=no |
698dcdb6 VZ |
16424 | |
16425 | ||
10f2d63a VZ |
16426 | fi |
16427 | ||
698dcdb6 | 16428 | |
6232543b | 16429 | fi |
b089607b | 16430 | |
1e487827 | 16431 | fi |
afc31813 | 16432 | |
51a9faba | 16433 | |
698dcdb6 VZ |
16434 | if test "$wxUSE_SOCKETS" = "yes" ; then |
16435 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
18dbb1f6 | 16436 | echo "configure:16437: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
16437 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
16438 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16439 | else | |
16440 | ||
16441 | ||
16442 | ac_ext=C | |
16443 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 16444 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16445 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16446 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16447 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16448 | |
698dcdb6 VZ |
16449 | |
16450 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 16451 | #line 16452 "configure" |
afc31813 | 16452 | #include "confdefs.h" |
51a9faba | 16453 | |
3ace2e6d | 16454 | #include <sys/types.h> |
51a9faba | 16455 | #include <sys/socket.h> |
698dcdb6 VZ |
16456 | |
16457 | int main() { | |
51a9faba VZ |
16458 | |
16459 | socklen_t len; | |
16460 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
16461 | |
16462 | ; return 0; } | |
16463 | EOF | |
18dbb1f6 | 16464 | if { (eval echo configure:16465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16465 | rm -rf conftest* |
51a9faba | 16466 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 16467 | else |
698dcdb6 VZ |
16468 | echo "configure: failed program was:" >&5 |
16469 | cat conftest.$ac_ext >&5 | |
16470 | rm -rf conftest* | |
16471 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 16472 | #line 16473 "configure" |
afc31813 | 16473 | #include "confdefs.h" |
51a9faba | 16474 | |
3ace2e6d | 16475 | #include <sys/types.h> |
51a9faba | 16476 | #include <sys/socket.h> |
698dcdb6 VZ |
16477 | |
16478 | int main() { | |
51a9faba VZ |
16479 | |
16480 | size_t len; | |
16481 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
16482 | |
16483 | ; return 0; } | |
16484 | EOF | |
18dbb1f6 | 16485 | if { (eval echo configure:16486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16486 | rm -rf conftest* |
51a9faba | 16487 | wx_cv_type_getsockname3=size_t |
afc31813 | 16488 | else |
698dcdb6 VZ |
16489 | echo "configure: failed program was:" >&5 |
16490 | cat conftest.$ac_ext >&5 | |
16491 | rm -rf conftest* | |
16492 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 16493 | #line 16494 "configure" |
afc31813 | 16494 | #include "confdefs.h" |
51a9faba | 16495 | |
3ace2e6d | 16496 | #include <sys/types.h> |
51a9faba | 16497 | #include <sys/socket.h> |
698dcdb6 VZ |
16498 | |
16499 | int main() { | |
51a9faba VZ |
16500 | |
16501 | int len; | |
16502 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
16503 | |
16504 | ; return 0; } | |
16505 | EOF | |
18dbb1f6 | 16506 | if { (eval echo configure:16507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16507 | rm -rf conftest* |
51a9faba | 16508 | wx_cv_type_getsockname3=int |
afc31813 | 16509 | else |
698dcdb6 VZ |
16510 | echo "configure: failed program was:" >&5 |
16511 | cat conftest.$ac_ext >&5 | |
16512 | rm -rf conftest* | |
16513 | wx_cv_type_getsockname3=unknown | |
16514 | ||
afc31813 | 16515 | fi |
698dcdb6 VZ |
16516 | rm -f conftest* |
16517 | ||
afc31813 | 16518 | fi |
698dcdb6 VZ |
16519 | rm -f conftest* |
16520 | ||
afc31813 | 16521 | fi |
698dcdb6 | 16522 | rm -f conftest* |
51a9faba VZ |
16523 | |
16524 | ac_ext=c | |
698dcdb6 | 16525 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 16526 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16527 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16528 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16529 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 16530 | |
698dcdb6 | 16531 | |
51a9faba | 16532 | fi |
698dcdb6 VZ |
16533 | |
16534 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba VZ |
16535 | |
16536 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
16537 | wxUSE_SOCKETS=no | |
698dcdb6 | 16538 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
51a9faba | 16539 | else |
698dcdb6 | 16540 | cat >> confdefs.h <<EOF |
51a9faba VZ |
16541 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
16542 | EOF | |
16543 | ||
16544 | fi | |
16545 | fi | |
afc31813 | 16546 | |
c521c494 RL |
16547 | fi |
16548 | ||
51a9faba | 16549 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 16550 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16551 | #define wxUSE_SOCKETS 1 |
16552 | EOF | |
16553 | ||
70f7a477 | 16554 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
16555 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
16556 | fi | |
16557 | ||
698dcdb6 | 16558 | |
dc3d889d VZ |
16559 | if test "$wxUSE_GUI" = "yes"; then |
16560 | ||
b089607b VZ |
16561 | if test "$TOOLKIT" != "MSW"; then |
16562 | ||
ceded8b9 | 16563 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16564 | for ac_hdr in linux/joystick.h |
10f2d63a | 16565 | do |
698dcdb6 VZ |
16566 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16567 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18dbb1f6 | 16568 | echo "configure:16569: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16569 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16570 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16571 | else | |
16572 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 16573 | #line 16574 "configure" |
10f2d63a | 16574 | #include "confdefs.h" |
698dcdb6 VZ |
16575 | #include <$ac_hdr> |
16576 | EOF | |
16577 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 16578 | { (eval echo configure:16579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16579 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16580 | if test -z "$ac_err"; then | |
16581 | rm -rf conftest* | |
16582 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 16583 | else |
698dcdb6 VZ |
16584 | echo "$ac_err" >&5 |
16585 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16586 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16587 | rm -rf conftest* |
16588 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16589 | fi |
698dcdb6 | 16590 | rm -f conftest* |
10f2d63a | 16591 | fi |
698dcdb6 VZ |
16592 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16593 | echo "$ac_t""yes" 1>&6 | |
16594 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16595 | cat >> confdefs.h <<EOF | |
16596 | #define $ac_tr_hdr 1 | |
10f2d63a | 16597 | EOF |
698dcdb6 VZ |
16598 | |
16599 | else | |
16600 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16601 | fi |
16602 | done | |
16603 | ||
b089607b | 16604 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 16605 | wxUSE_JOYSTICK=no |
698dcdb6 | 16606 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
16607 | fi |
16608 | fi | |
16609 | ||
16610 | fi | |
16611 | ||
ceded8b9 | 16612 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16613 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16614 | #define wxUSE_JOYSTICK 1 |
16615 | EOF | |
16616 | ||
16617 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
16618 | fi |
16619 | ||
dc3d889d VZ |
16620 | fi |
16621 | ||
698dcdb6 | 16622 | |
b089607b VZ |
16623 | if test "$TOOLKIT" != "MSW"; then |
16624 | ||
10f2d63a VZ |
16625 | HAVE_DL_FUNCS=0 |
16626 | HAVE_SHL_FUNCS=0 | |
16627 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
f11bdd03 | 16628 | if test "$USE_DARWIN" = 1; then |
b4085ce6 GD |
16629 | HAVE_DL_FUNCS=1 |
16630 | else | |
698dcdb6 | 16631 | for ac_func in dlopen |
10f2d63a | 16632 | do |
698dcdb6 | 16633 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 16634 | echo "configure:16635: checking for $ac_func" >&5 |
698dcdb6 VZ |
16635 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16636 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16637 | else | |
16638 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 16639 | #line 16640 "configure" |
10f2d63a VZ |
16640 | #include "confdefs.h" |
16641 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16642 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16643 | #include <assert.h> |
16644 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16645 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16646 | builtin and then its argument prototype would still apply. */ |
16647 | char $ac_func(); | |
16648 | ||
16649 | int main() { | |
10f2d63a VZ |
16650 | |
16651 | /* The GNU C library defines this for functions which it implements | |
16652 | to always fail with ENOSYS. Some functions are actually named | |
16653 | something starting with __ and the normal name is an alias. */ | |
16654 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16655 | choke me | |
16656 | #else | |
698dcdb6 | 16657 | $ac_func(); |
10f2d63a VZ |
16658 | #endif |
16659 | ||
698dcdb6 VZ |
16660 | ; return 0; } |
16661 | EOF | |
18dbb1f6 | 16662 | if { (eval echo configure:16663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16663 | rm -rf conftest* |
16664 | eval "ac_cv_func_$ac_func=yes" | |
16665 | else | |
16666 | echo "configure: failed program was:" >&5 | |
16667 | cat conftest.$ac_ext >&5 | |
16668 | rm -rf conftest* | |
16669 | eval "ac_cv_func_$ac_func=no" | |
16670 | fi | |
16671 | rm -f conftest* | |
16672 | fi | |
16673 | ||
16674 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16675 | echo "$ac_t""yes" 1>&6 | |
16676 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16677 | cat >> confdefs.h <<EOF | |
16678 | #define $ac_tr_func 1 | |
16679 | EOF | |
16680 | ||
16681 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16682 | #define HAVE_DLOPEN 1 |
16683 | EOF | |
16684 | ||
16685 | HAVE_DL_FUNCS=1 | |
698dcdb6 | 16686 | |
10f2d63a | 16687 | else |
698dcdb6 VZ |
16688 | echo "$ac_t""no" 1>&6 |
16689 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
18dbb1f6 | 16690 | echo "configure:16691: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
16691 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16692 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16693 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16694 | else |
698dcdb6 | 16695 | ac_save_LIBS="$LIBS" |
10f2d63a | 16696 | LIBS="-ldl $LIBS" |
698dcdb6 | 16697 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 16698 | #line 16699 "configure" |
10f2d63a VZ |
16699 | #include "confdefs.h" |
16700 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16701 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16702 | builtin and then its argument prototype would still apply. */ |
16703 | char dlopen(); | |
16704 | ||
16705 | int main() { | |
16706 | dlopen() | |
16707 | ; return 0; } | |
16708 | EOF | |
18dbb1f6 | 16709 | if { (eval echo configure:16710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16710 | rm -rf conftest* |
16711 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16712 | else | |
16713 | echo "configure: failed program was:" >&5 | |
16714 | cat conftest.$ac_ext >&5 | |
16715 | rm -rf conftest* | |
16716 | eval "ac_cv_lib_$ac_lib_var=no" | |
16717 | fi | |
16718 | rm -f conftest* | |
16719 | LIBS="$ac_save_LIBS" | |
16720 | ||
16721 | fi | |
16722 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16723 | echo "$ac_t""yes" 1>&6 | |
16724 | ||
16725 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16726 | #define HAVE_DLOPEN 1 |
16727 | EOF | |
16728 | ||
16729 | HAVE_DL_FUNCS=1 | |
16730 | LIBS="$LIBS -ldl" | |
698dcdb6 | 16731 | |
10f2d63a | 16732 | else |
698dcdb6 | 16733 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16734 | |
698dcdb6 | 16735 | for ac_func in shl_load |
10f2d63a | 16736 | do |
698dcdb6 | 16737 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 16738 | echo "configure:16739: checking for $ac_func" >&5 |
698dcdb6 VZ |
16739 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16740 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16741 | else | |
16742 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 16743 | #line 16744 "configure" |
10f2d63a VZ |
16744 | #include "confdefs.h" |
16745 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16746 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16747 | #include <assert.h> |
16748 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16749 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16750 | builtin and then its argument prototype would still apply. */ |
16751 | char $ac_func(); | |
16752 | ||
16753 | int main() { | |
10f2d63a VZ |
16754 | |
16755 | /* The GNU C library defines this for functions which it implements | |
16756 | to always fail with ENOSYS. Some functions are actually named | |
16757 | something starting with __ and the normal name is an alias. */ | |
16758 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16759 | choke me | |
16760 | #else | |
698dcdb6 | 16761 | $ac_func(); |
10f2d63a VZ |
16762 | #endif |
16763 | ||
698dcdb6 VZ |
16764 | ; return 0; } |
16765 | EOF | |
18dbb1f6 | 16766 | if { (eval echo configure:16767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16767 | rm -rf conftest* |
16768 | eval "ac_cv_func_$ac_func=yes" | |
16769 | else | |
16770 | echo "configure: failed program was:" >&5 | |
16771 | cat conftest.$ac_ext >&5 | |
16772 | rm -rf conftest* | |
16773 | eval "ac_cv_func_$ac_func=no" | |
16774 | fi | |
16775 | rm -f conftest* | |
16776 | fi | |
16777 | ||
16778 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16779 | echo "$ac_t""yes" 1>&6 | |
16780 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16781 | cat >> confdefs.h <<EOF | |
16782 | #define $ac_tr_func 1 | |
16783 | EOF | |
16784 | ||
16785 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16786 | #define HAVE_SHL_LOAD 1 |
16787 | EOF | |
16788 | ||
16789 | HAVE_SHL_FUNCS=1 | |
698dcdb6 | 16790 | |
10f2d63a | 16791 | else |
698dcdb6 VZ |
16792 | echo "$ac_t""no" 1>&6 |
16793 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
18dbb1f6 | 16794 | echo "configure:16795: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
16795 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
16796 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16797 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16798 | else |
698dcdb6 | 16799 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16800 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 16801 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 16802 | #line 16803 "configure" |
f6bcfd97 BP |
16803 | #include "confdefs.h" |
16804 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16805 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16806 | builtin and then its argument prototype would still apply. */ |
16807 | char dld(); | |
16808 | ||
16809 | int main() { | |
16810 | dld() | |
16811 | ; return 0; } | |
16812 | EOF | |
18dbb1f6 | 16813 | if { (eval echo configure:16814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16814 | rm -rf conftest* |
16815 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16816 | else | |
16817 | echo "configure: failed program was:" >&5 | |
16818 | cat conftest.$ac_ext >&5 | |
16819 | rm -rf conftest* | |
16820 | eval "ac_cv_lib_$ac_lib_var=no" | |
16821 | fi | |
16822 | rm -f conftest* | |
16823 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 16824 | |
698dcdb6 VZ |
16825 | fi |
16826 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16827 | echo "$ac_t""yes" 1>&6 | |
16828 | ||
f6bcfd97 BP |
16829 | HAVE_SHL_FUNCS=1 |
16830 | LIBS="$LIBS -ldld" | |
698dcdb6 VZ |
16831 | |
16832 | else | |
16833 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16834 | fi |
16835 | ||
698dcdb6 | 16836 | |
10f2d63a VZ |
16837 | fi |
16838 | done | |
16839 | ||
698dcdb6 | 16840 | |
10f2d63a VZ |
16841 | fi |
16842 | ||
698dcdb6 | 16843 | |
10f2d63a VZ |
16844 | fi |
16845 | done | |
16846 | ||
1e487827 | 16847 | |
698dcdb6 VZ |
16848 | if test "$HAVE_DL_FUNCS" = 1; then |
16849 | for ac_func in dlerror | |
f6bcfd97 | 16850 | do |
698dcdb6 | 16851 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
18dbb1f6 | 16852 | echo "configure:16853: checking for $ac_func" >&5 |
698dcdb6 VZ |
16853 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16855 | else | |
16856 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 16857 | #line 16858 "configure" |
f6bcfd97 BP |
16858 | #include "confdefs.h" |
16859 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16860 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
16861 | #include <assert.h> |
16862 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16863 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16864 | builtin and then its argument prototype would still apply. */ |
16865 | char $ac_func(); | |
16866 | ||
16867 | int main() { | |
f6bcfd97 BP |
16868 | |
16869 | /* The GNU C library defines this for functions which it implements | |
16870 | to always fail with ENOSYS. Some functions are actually named | |
16871 | something starting with __ and the normal name is an alias. */ | |
16872 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16873 | choke me | |
16874 | #else | |
698dcdb6 | 16875 | $ac_func(); |
f6bcfd97 BP |
16876 | #endif |
16877 | ||
698dcdb6 VZ |
16878 | ; return 0; } |
16879 | EOF | |
18dbb1f6 | 16880 | if { (eval echo configure:16881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16881 | rm -rf conftest* |
16882 | eval "ac_cv_func_$ac_func=yes" | |
16883 | else | |
16884 | echo "configure: failed program was:" >&5 | |
16885 | cat conftest.$ac_ext >&5 | |
16886 | rm -rf conftest* | |
16887 | eval "ac_cv_func_$ac_func=no" | |
16888 | fi | |
16889 | rm -f conftest* | |
16890 | fi | |
16891 | ||
16892 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16893 | echo "$ac_t""yes" 1>&6 | |
16894 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16895 | cat >> confdefs.h <<EOF | |
16896 | #define $ac_tr_func 1 | |
16897 | EOF | |
16898 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16899 | #define HAVE_DLERROR 1 |
16900 | EOF | |
16901 | ||
16902 | else | |
698dcdb6 VZ |
16903 | echo "$ac_t""no" 1>&6 |
16904 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
18dbb1f6 | 16905 | echo "configure:16906: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
16906 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
16907 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16908 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16909 | else |
698dcdb6 | 16910 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16911 | LIBS="-ldl $LIBS" |
698dcdb6 | 16912 | cat > conftest.$ac_ext <<EOF |
18dbb1f6 | 16913 | #line 16914 "configure" |
f6bcfd97 BP |
16914 | #include "confdefs.h" |
16915 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16916 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16917 | builtin and then its argument prototype would still apply. */ |
16918 | char dlerror(); | |
16919 | ||
16920 | int main() { | |
16921 | dlerror() | |
16922 | ; return 0; } | |
16923 | EOF | |
18dbb1f6 | 16924 | if { (eval echo configure:16925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16925 | rm -rf conftest* |
16926 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16927 | else | |
16928 | echo "configure: failed program was:" >&5 | |
16929 | cat conftest.$ac_ext >&5 | |
16930 | rm -rf conftest* | |
16931 | eval "ac_cv_lib_$ac_lib_var=no" | |
16932 | fi | |
16933 | rm -f conftest* | |
16934 | LIBS="$ac_save_LIBS" | |
16935 | ||
16936 | fi | |
16937 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16938 | echo "$ac_t""yes" 1>&6 | |
16939 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16940 | #define HAVE_DLERROR 1 |
16941 | EOF | |
16942 | ||
698dcdb6 VZ |
16943 | else |
16944 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16945 | fi |
16946 | ||
16947 | fi | |
16948 | done | |
16949 | ||
16950 | fi | |
b4085ce6 | 16951 | fi |
f6bcfd97 | 16952 | |
10f2d63a VZ |
16953 | if test "$HAVE_DL_FUNCS" = 0; then |
16954 | if test "$HAVE_SHL_FUNCS" = 0; then | |
16955 | if test "$USE_UNIX" = 1; then | |
698dcdb6 | 16956 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
16957 | wxUSE_DYNLIB_CLASS=no |
16958 | else | |
698dcdb6 | 16959 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
16960 | fi |
16961 | fi | |
16962 | fi | |
16963 | fi | |
16964 | ||
b089607b VZ |
16965 | fi |
16966 | ||
10f2d63a | 16967 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
698dcdb6 | 16968 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16969 | #define wxUSE_DYNLIB_CLASS 1 |
16970 | EOF | |
16971 | ||
b12915c1 VZ |
16972 | else |
16973 | wxUSE_ODBC=no | |
16974 | wxUSE_SERIAL=no | |
10f2d63a VZ |
16975 | fi |
16976 | ||
698dcdb6 | 16977 | |
1e6feb95 VZ |
16978 | if test "$wxUSE_FONTMAP" = "yes" ; then |
16979 | cat >> confdefs.h <<\EOF | |
16980 | #define wxUSE_FONTMAP 1 | |
16981 | EOF | |
16982 | ||
16983 | fi | |
16984 | ||
10f2d63a | 16985 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 16986 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16987 | #define wxUSE_UNICODE 1 |
16988 | EOF | |
16989 | ||
16990 | fi | |
16991 | ||
16992 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
698dcdb6 | 16993 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16994 | #define wxUSE_WCSRTOMBS 1 |
16995 | EOF | |
16996 | ||
16997 | fi | |
16998 | ||
16999 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
698dcdb6 | 17000 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17001 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
17002 | EOF | |
17003 | ||
17004 | fi | |
17005 | ||
698dcdb6 | 17006 | |
b12915c1 | 17007 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 17008 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
17009 | #define wxUSE_SERIAL 1 |
17010 | EOF | |
17011 | ||
17012 | fi | |
17013 | ||
698dcdb6 | 17014 | |
10f2d63a VZ |
17015 | IODBC_C_SRC="" |
17016 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 17017 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17018 | #define wxUSE_ODBC 1 |
17019 | EOF | |
17020 | ||
17021 | WXODBCFLAG="-D_IODBC_" | |
17022 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
17023 | fi |
17024 | ||
698dcdb6 | 17025 | |
10f2d63a | 17026 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 17027 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17028 | #define wxUSE_POSTSCRIPT 1 |
17029 | EOF | |
17030 | ||
17031 | fi | |
17032 | ||
698dcdb6 | 17033 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17034 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
17035 | EOF | |
17036 | ||
698dcdb6 VZ |
17037 | |
17038 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
17039 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
17040 | EOF | |
17041 | ||
698dcdb6 VZ |
17042 | |
17043 | ||
10f2d63a | 17044 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 17045 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17046 | #define wxUSE_CONSTRAINTS 1 |
17047 | EOF | |
17048 | ||
17049 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
17050 | fi | |
17051 | ||
17052 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
698dcdb6 | 17053 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17054 | #define wxUSE_MDI_ARCHITECTURE 1 |
17055 | EOF | |
17056 | ||
17057 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
17058 | fi | |
17059 | ||
17060 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 17061 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17062 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
17063 | EOF | |
17064 | ||
17065 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
17066 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17067 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
17068 | fi | |
17069 | fi | |
17070 | ||
17071 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 17072 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17073 | #define wxUSE_HELP 1 |
17074 | EOF | |
17075 | ||
17076 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 17077 | |
3e44f09d | 17078 | if test "$USE_WIN32" = 1; then |
031d8228 | 17079 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
29fd3c0c VS |
17080 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` |
17081 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
18dbb1f6 | 17082 | echo "configure:17083: checking for htmlhelp.h" >&5 |
29fd3c0c VS |
17083 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17085 | else | |
17086 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 17087 | #line 17088 "configure" |
29fd3c0c VS |
17088 | #include "confdefs.h" |
17089 | #include <htmlhelp.h> | |
17090 | EOF | |
17091 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 17092 | { (eval echo configure:17093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
29fd3c0c VS |
17093 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17094 | if test -z "$ac_err"; then | |
17095 | rm -rf conftest* | |
17096 | eval "ac_cv_header_$ac_safe=yes" | |
17097 | else | |
17098 | echo "$ac_err" >&5 | |
17099 | echo "configure: failed program was:" >&5 | |
17100 | cat conftest.$ac_ext >&5 | |
17101 | rm -rf conftest* | |
17102 | eval "ac_cv_header_$ac_safe=no" | |
17103 | fi | |
17104 | rm -f conftest* | |
17105 | fi | |
17106 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17107 | echo "$ac_t""yes" 1>&6 | |
17108 | ||
17109 | cat >> confdefs.h <<\EOF | |
17110 | #define wxUSE_MS_HTML_HELP 1 | |
17111 | EOF | |
17112 | ||
17113 | ||
17114 | else | |
17115 | echo "$ac_t""no" 1>&6 | |
17116 | ||
17117 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2 | |
17118 | wxUSE_MS_HTML_HELP=no | |
17119 | ||
17120 | fi | |
17121 | ||
3e44f09d | 17122 | fi |
3379ed37 | 17123 | fi |
031d8228 VS |
17124 | |
17125 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
17126 | if test "$wxUSE_HTML" = "yes"; then | |
17127 | cat >> confdefs.h <<\EOF | |
17128 | #define wxUSE_WXHTML_HELP 1 | |
17129 | EOF | |
17130 | ||
17131 | else | |
17132 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
17133 | wxUSE_WXHTML_HELP=no | |
17134 | fi | |
17135 | fi | |
10f2d63a VZ |
17136 | fi |
17137 | ||
17138 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
17139 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 17140 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 17141 | else |
698dcdb6 | 17142 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17143 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
17144 | EOF | |
17145 | ||
17146 | fi | |
17147 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
17148 | fi | |
17149 | ||
17150 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 17151 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17152 | #define wxUSE_PROLOGIO 1 |
17153 | EOF | |
17154 | ||
17155 | fi | |
17156 | ||
17157 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 17158 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17159 | #define wxUSE_RESOURCES 1 |
17160 | EOF | |
17161 | ||
3379ed37 | 17162 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
17163 | fi |
17164 | ||
17165 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 17166 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17167 | #define wxUSE_X_RESOURCES 1 |
17168 | EOF | |
17169 | ||
17170 | fi | |
17171 | ||
698dcdb6 | 17172 | |
10f2d63a | 17173 | if test "$wxUSE_IPC" = "yes"; then |
eb4efbdc | 17174 | if test "$wxUSE_SOCKETS" != "yes"; then |
698dcdb6 | 17175 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 |
eb4efbdc VZ |
17176 | fi |
17177 | ||
698dcdb6 | 17178 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17179 | #define wxUSE_IPC 1 |
17180 | EOF | |
17181 | ||
17182 | fi | |
17183 | ||
17184 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
698dcdb6 | 17185 | cat >> confdefs.h <<\EOF |
10f2d63a | 17186 | #define wxUSE_CLIPBOARD 1 |
1e6feb95 VZ |
17187 | EOF |
17188 | ||
17189 | cat >> confdefs.h <<\EOF | |
17190 | #define wxUSE_DATAOBJ 1 | |
10f2d63a VZ |
17191 | EOF |
17192 | ||
17193 | fi | |
17194 | ||
17195 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
17196 | if test "$wxUSE_GTK" = 1; then | |
17197 | if test "$WXGTK12" != 1; then | |
698dcdb6 | 17198 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 |
10f2d63a VZ |
17199 | wxUSE_DRAG_AND_DROP=no |
17200 | fi | |
17201 | fi | |
17202 | ||
17203 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 17204 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 |
10f2d63a VZ |
17205 | wxUSE_DRAG_AND_DROP=no |
17206 | fi | |
17207 | ||
2c6025bc | 17208 | if test "$wxUSE_MAC" = 1; then |
698dcdb6 | 17209 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 |
2c6025bc GD |
17210 | wxUSE_DRAG_AND_DROP=no |
17211 | fi | |
17212 | ||
10f2d63a | 17213 | if test "$USE_WIN32" = 1; then |
698dcdb6 VZ |
17214 | |
17215 | for ac_hdr in ole2.h | |
10f2d63a | 17216 | do |
698dcdb6 VZ |
17217 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17218 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
18dbb1f6 | 17219 | echo "configure:17220: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
17220 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17221 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17222 | else | |
17223 | cat > conftest.$ac_ext <<EOF | |
18dbb1f6 | 17224 | #line 17225 "configure" |
10f2d63a | 17225 | #include "confdefs.h" |
698dcdb6 VZ |
17226 | #include <$ac_hdr> |
17227 | EOF | |
17228 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
18dbb1f6 | 17229 | { (eval echo configure:17230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
17230 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
17231 | if test -z "$ac_err"; then | |
17232 | rm -rf conftest* | |
17233 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 17234 | else |
698dcdb6 VZ |
17235 | echo "$ac_err" >&5 |
17236 | echo "configure: failed program was:" >&5 | |
10f2d63a | 17237 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
17238 | rm -rf conftest* |
17239 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 17240 | fi |
698dcdb6 | 17241 | rm -f conftest* |
10f2d63a | 17242 | fi |
698dcdb6 VZ |
17243 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17244 | echo "$ac_t""yes" 1>&6 | |
17245 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17246 | cat >> confdefs.h <<EOF | |
17247 | #define $ac_tr_hdr 1 | |
10f2d63a | 17248 | EOF |
698dcdb6 VZ |
17249 | |
17250 | else | |
17251 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17252 | fi |
17253 | done | |
17254 | ||
698dcdb6 | 17255 | |
57fe5ed0 | 17256 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
c521c494 | 17257 | if test "$GCC" = yes ; then |
b64f0a5f RL |
17258 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
17259 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 17260 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
18dbb1f6 | 17261 | LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid" |
4f11a343 VS |
17262 | cat >> confdefs.h <<\EOF |
17263 | #define wxUSE_OLE 1 | |
17264 | EOF | |
17265 | ||
b64f0a5f RL |
17266 | |
17267 | if test "$wxUSE_METAFILE" = "yes"; then | |
698dcdb6 | 17268 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
17269 | #define wxUSE_METAFILE 1 |
17270 | EOF | |
17271 | ||
698dcdb6 | 17272 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
17273 | #define wxUSE_ENH_METAFILE 1 |
17274 | EOF | |
17275 | ||
17276 | fi | |
c521c494 RL |
17277 | fi |
17278 | else | |
698dcdb6 | 17279 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 |
10f2d63a VZ |
17280 | wxUSE_DRAG_AND_DROP=no |
17281 | fi | |
17282 | fi | |
17283 | ||
17284 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
698dcdb6 | 17285 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17286 | #define wxUSE_DRAG_AND_DROP 1 |
17287 | EOF | |
17288 | ||
17289 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
17290 | fi | |
17291 | ||
17292 | fi | |
17293 | ||
17294 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 17295 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17296 | #define wxUSE_SPLINES 1 |
17297 | EOF | |
17298 | ||
17299 | fi | |
17300 | ||
698dcdb6 | 17301 | |
1e6feb95 VZ |
17302 | USES_CONTROLS=0 |
17303 | if test "$wxUSE_CONTROLS" = "yes"; then | |
17304 | USES_CONTROLS=1 | |
17305 | fi | |
17306 | ||
10f2d63a | 17307 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 17308 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17309 | #define wxUSE_ACCEL 1 |
17310 | EOF | |
17311 | ||
1e6feb95 VZ |
17312 | USES_CONTROLS=1 |
17313 | fi | |
17314 | ||
17315 | if test "$wxUSE_BUTTON" = "yes"; then | |
17316 | cat >> confdefs.h <<\EOF | |
17317 | #define wxUSE_BUTTON 1 | |
17318 | EOF | |
17319 | ||
17320 | USES_CONTROLS=1 | |
17321 | fi | |
17322 | ||
17323 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
17324 | cat >> confdefs.h <<\EOF | |
17325 | #define wxUSE_BMPBUTTON 1 | |
17326 | EOF | |
17327 | ||
17328 | USES_CONTROLS=1 | |
17329 | fi | |
17330 | ||
17331 | if test "$wxUSE_CALCTRL" = "yes"; then | |
17332 | cat >> confdefs.h <<\EOF | |
17333 | #define wxUSE_CALENDARCTRL 1 | |
17334 | EOF | |
17335 | ||
17336 | USES_CONTROLS=1 | |
17337 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
17338 | fi |
17339 | ||
17340 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 17341 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17342 | #define wxUSE_CARET 1 |
17343 | EOF | |
17344 | ||
1e6feb95 | 17345 | USES_CONTROLS=1 |
10f2d63a VZ |
17346 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
17347 | fi | |
17348 | ||
17349 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 17350 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17351 | #define wxUSE_COMBOBOX 1 |
17352 | EOF | |
17353 | ||
1e6feb95 | 17354 | USES_CONTROLS=1 |
10f2d63a VZ |
17355 | fi |
17356 | ||
17357 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 17358 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17359 | #define wxUSE_CHOICE 1 |
17360 | EOF | |
17361 | ||
1e6feb95 | 17362 | USES_CONTROLS=1 |
10f2d63a VZ |
17363 | fi |
17364 | ||
17365 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 17366 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17367 | #define wxUSE_CHECKBOX 1 |
17368 | EOF | |
17369 | ||
1e6feb95 | 17370 | USES_CONTROLS=1 |
10f2d63a VZ |
17371 | fi |
17372 | ||
17373 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 17374 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17375 | #define wxUSE_CHECKLISTBOX 1 |
17376 | EOF | |
17377 | ||
1e6feb95 | 17378 | USES_CONTROLS=1 |
10f2d63a VZ |
17379 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
17380 | fi | |
17381 | ||
17382 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 17383 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17384 | #define wxUSE_GAUGE 1 |
17385 | EOF | |
17386 | ||
1e6feb95 | 17387 | USES_CONTROLS=1 |
10f2d63a VZ |
17388 | fi |
17389 | ||
d6a55c4b VZ |
17390 | if test "$wxUSE_NEW_GRID" = "yes"; then |
17391 | wxUSE_GRID="yes" | |
698dcdb6 | 17392 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17393 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
17394 | EOF |
17395 | ||
1e6feb95 | 17396 | USES_CONTROLS=1 |
d6a55c4b | 17397 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
17398 | fi |
17399 | ||
d6a55c4b | 17400 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 17401 | cat >> confdefs.h <<\EOF |
d6a55c4b | 17402 | #define wxUSE_GRID 1 |
10f2d63a VZ |
17403 | EOF |
17404 | ||
1e6feb95 | 17405 | USES_CONTROLS=1 |
d6a55c4b | 17406 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
17407 | fi |
17408 | ||
17409 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17410 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17411 | #define wxUSE_IMAGLIST 1 |
17412 | EOF | |
17413 | ||
17414 | fi | |
17415 | ||
17416 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 17417 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17418 | #define wxUSE_LISTBOX 1 |
17419 | EOF | |
17420 | ||
1e6feb95 | 17421 | USES_CONTROLS=1 |
10f2d63a VZ |
17422 | fi |
17423 | ||
17424 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
17425 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17426 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17427 | #define wxUSE_LISTCTRL 1 |
17428 | EOF | |
17429 | ||
1e6feb95 | 17430 | USES_CONTROLS=1 |
10f2d63a VZ |
17431 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
17432 | else | |
698dcdb6 | 17433 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17434 | fi |
17435 | fi | |
17436 | ||
17437 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 17438 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17439 | #define wxUSE_NOTEBOOK 1 |
17440 | EOF | |
17441 | ||
1e6feb95 | 17442 | USES_CONTROLS=1 |
10f2d63a VZ |
17443 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
17444 | fi | |
17445 | ||
24176f2c GD |
17446 | if test "$wxUSE_PROPSHEET" = "yes"; then |
17447 | cat >> confdefs.h <<\EOF | |
17448 | #define wxUSE_PROPSHEET 1 | |
17449 | EOF | |
17450 | ||
17451 | USES_CONTROLS=1 | |
17452 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
17453 | fi | |
17454 | ||
10f2d63a | 17455 | if test "$wxUSE_RADIOBOX" = "yes"; then |
698dcdb6 | 17456 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17457 | #define wxUSE_RADIOBOX 1 |
17458 | EOF | |
17459 | ||
1e6feb95 | 17460 | USES_CONTROLS=1 |
10f2d63a VZ |
17461 | fi |
17462 | ||
17463 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 17464 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17465 | #define wxUSE_RADIOBTN 1 |
17466 | EOF | |
17467 | ||
1e6feb95 | 17468 | USES_CONTROLS=1 |
10f2d63a VZ |
17469 | fi |
17470 | ||
17471 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 17472 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17473 | #define wxUSE_SASH 1 |
17474 | EOF | |
17475 | ||
17476 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
17477 | fi | |
17478 | ||
17479 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 17480 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17481 | #define wxUSE_SCROLLBAR 1 |
17482 | EOF | |
17483 | ||
1e6feb95 | 17484 | USES_CONTROLS=1 |
741a9306 | 17485 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
17486 | fi |
17487 | ||
17488 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 17489 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17490 | #define wxUSE_SLIDER 1 |
17491 | EOF | |
17492 | ||
1e6feb95 | 17493 | USES_CONTROLS=1 |
10f2d63a VZ |
17494 | fi |
17495 | ||
17496 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 17497 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17498 | #define wxUSE_SPINBTN 1 |
17499 | EOF | |
17500 | ||
1e6feb95 | 17501 | USES_CONTROLS=1 |
10f2d63a VZ |
17502 | fi |
17503 | ||
56cfaa52 | 17504 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 17505 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
17506 | #define wxUSE_SPINCTRL 1 |
17507 | EOF | |
17508 | ||
1e6feb95 | 17509 | USES_CONTROLS=1 |
56cfaa52 RR |
17510 | fi |
17511 | ||
10f2d63a | 17512 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 17513 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17514 | #define wxUSE_SPLITTER 1 |
17515 | EOF | |
17516 | ||
17517 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
17518 | fi | |
17519 | ||
17520 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 17521 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17522 | #define wxUSE_STATBMP 1 |
17523 | EOF | |
17524 | ||
1e6feb95 | 17525 | USES_CONTROLS=1 |
10f2d63a VZ |
17526 | fi |
17527 | ||
17528 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 17529 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17530 | #define wxUSE_STATBOX 1 |
17531 | EOF | |
17532 | ||
1e6feb95 VZ |
17533 | USES_CONTROLS=1 |
17534 | fi | |
17535 | ||
17536 | if test "$wxUSE_STATTEXT" = "yes"; then | |
17537 | cat >> confdefs.h <<\EOF | |
17538 | #define wxUSE_STATTEXT 1 | |
17539 | EOF | |
17540 | ||
17541 | USES_CONTROLS=1 | |
10f2d63a VZ |
17542 | fi |
17543 | ||
17544 | if test "$wxUSE_STATLINE" = "yes"; then | |
17545 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 17546 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 17547 | else |
698dcdb6 | 17548 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17549 | #define wxUSE_STATLINE 1 |
17550 | EOF | |
17551 | ||
1e6feb95 | 17552 | USES_CONTROLS=1 |
10f2d63a VZ |
17553 | fi |
17554 | fi | |
17555 | ||
17556 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 17557 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17558 | #define wxUSE_STATUSBAR 1 |
17559 | EOF | |
17560 | ||
1e6feb95 | 17561 | USES_CONTROLS=1 |
698dcdb6 | 17562 | |
2286341c | 17563 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
17564 | fi |
17565 | ||
17566 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 17567 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17568 | #define wxUSE_TAB_DIALOG 1 |
17569 | EOF | |
17570 | ||
17571 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
17572 | fi | |
17573 | ||
1e6feb95 VZ |
17574 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
17575 | cat >> confdefs.h <<\EOF | |
17576 | #define wxUSE_TEXTCTRL 1 | |
17577 | EOF | |
17578 | ||
17579 | USES_CONTROLS=1 | |
17580 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
17581 | fi | |
17582 | ||
1db8dc4a | 17583 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
a45d7ab7 GD |
17584 | if test "$wxUSE_MAC" = 1; then |
17585 | echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2 | |
17586 | wxUSE_TOGGLEBTN=no | |
17587 | fi | |
17588 | ||
17589 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
17590 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
17591 | #define wxUSE_TOGGLEBTN 1 |
17592 | EOF | |
17593 | ||
1e6feb95 | 17594 | USES_CONTROLS=1 |
a45d7ab7 | 17595 | fi |
1db8dc4a VZ |
17596 | fi |
17597 | ||
360d6699 | 17598 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 17599 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
17600 | #define wxUSE_TOOLBAR_SIMPLE 1 |
17601 | EOF | |
17602 | ||
17603 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 17604 | USES_CONTROLS=1 |
360d6699 VZ |
17605 | fi |
17606 | ||
10f2d63a | 17607 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 17608 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17609 | #define wxUSE_TOOLBAR 1 |
17610 | EOF | |
17611 | ||
1e6feb95 | 17612 | USES_CONTROLS=1 |
698dcdb6 | 17613 | |
360d6699 VZ |
17614 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
17615 | wxUSE_TOOLBAR_NATIVE="yes" | |
17616 | fi | |
17617 | ||
1e6feb95 VZ |
17618 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
17619 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
17620 | #define wxUSE_TOOLBAR_NATIVE 1 |
17621 | EOF | |
17622 | ||
1e6feb95 VZ |
17623 | USES_CONTROLS=1 |
17624 | fi | |
17625 | ||
17626 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
17627 | fi |
17628 | ||
10f2d63a VZ |
17629 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
17630 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 17631 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
17632 | else |
17633 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 17634 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 17635 | else |
698dcdb6 | 17636 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17637 | #define wxUSE_TOOLTIPS 1 |
17638 | EOF | |
17639 | ||
17640 | fi | |
17641 | fi | |
17642 | fi | |
17643 | ||
17644 | if test "$wxUSE_TREECTRL" = "yes"; then | |
17645 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17646 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17647 | #define wxUSE_TREECTRL 1 |
17648 | EOF | |
17649 | ||
1e6feb95 | 17650 | USES_CONTROLS=1 |
10f2d63a VZ |
17651 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
17652 | else | |
698dcdb6 | 17653 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17654 | fi |
17655 | fi | |
17656 | ||
9f41d601 | 17657 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 GD |
17658 | if test "$wxUSE_MAC" = 1; then |
17659 | echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2 | |
17660 | else | |
17661 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
17662 | #define wxUSE_POPUPWIN 1 |
17663 | EOF | |
17664 | ||
6abe4b65 GD |
17665 | USES_CONTROLS=1 |
17666 | fi | |
9f41d601 RR |
17667 | fi |
17668 | ||
1e6feb95 VZ |
17669 | if test "$USES_CONTROLS" = 1; then |
17670 | cat >> confdefs.h <<\EOF | |
17671 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
17672 | EOF |
17673 | ||
10f2d63a VZ |
17674 | fi |
17675 | ||
1e6feb95 | 17676 | |
24176f2c GD |
17677 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
17678 | cat >> confdefs.h <<\EOF | |
17679 | #define wxUSE_TREELAYOUT 1 | |
17680 | EOF | |
17681 | ||
17682 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
17683 | fi | |
1e6feb95 | 17684 | |
24fd6d87 VZ |
17685 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
17686 | cat >> confdefs.h <<\EOF | |
17687 | #define wxUSE_DRAGIMAGE 1 | |
17688 | EOF | |
17689 | ||
17690 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
17691 | fi | |
17692 | ||
1e6feb95 | 17693 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 17694 | cat >> confdefs.h <<\EOF |
1e6feb95 | 17695 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
17696 | EOF |
17697 | ||
1e6feb95 | 17698 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
17699 | fi |
17700 | ||
1e6feb95 VZ |
17701 | if test "$wxUSE_METAFILE" = "yes"; then |
17702 | cat >> confdefs.h <<\EOF | |
17703 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
17704 | EOF |
17705 | ||
10f2d63a VZ |
17706 | fi |
17707 | ||
1e6feb95 VZ |
17708 | if test "$wxUSE_MIMETYPE" = "yes"; then |
17709 | cat >> confdefs.h <<\EOF | |
17710 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
17711 | EOF |
17712 | ||
10f2d63a VZ |
17713 | fi |
17714 | ||
3e44f09d VZ |
17715 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
17716 | cat >> confdefs.h <<\EOF | |
17717 | #define wxUSE_SYSTEM_OPTIONS 1 | |
17718 | EOF | |
17719 | ||
17720 | fi | |
17721 | ||
10f2d63a | 17722 | if test "$wxUSE_MINIFRAME" = "yes"; then |
698dcdb6 | 17723 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17724 | #define wxUSE_MINIFRAME 1 |
17725 | EOF | |
17726 | ||
17727 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
17728 | fi | |
17729 | ||
17730 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 17731 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17732 | #define wxUSE_HTML 1 |
17733 | EOF | |
17734 | ||
17735 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
17736 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
17737 | fi | |
17738 | ||
17739 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 17740 | cat >> confdefs.h <<\EOF |
1e487827 VS |
17741 | #define wxUSE_VALIDATORS 1 |
17742 | EOF | |
703e0a69 | 17743 | |
698dcdb6 VZ |
17744 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
17745 | fi | |
17746 | ||
17747 | if test "$wxUSE_IMAGE" = "yes" ; then | |
17748 | cat >> confdefs.h <<\EOF | |
17749 | #define wxUSE_IMAGE 1 | |
17750 | EOF | |
17751 | ||
17752 | fi | |
17753 | ||
17754 | if test "$wxUSE_GIF" = "yes" ; then | |
17755 | cat >> confdefs.h <<\EOF | |
17756 | #define wxUSE_GIF 1 | |
17757 | EOF | |
17758 | ||
17759 | fi | |
17760 | ||
17761 | if test "$wxUSE_PCX" = "yes" ; then | |
17762 | cat >> confdefs.h <<\EOF | |
17763 | #define wxUSE_PCX 1 | |
17764 | EOF | |
17765 | ||
17766 | fi | |
17767 | ||
17768 | if test "$wxUSE_PNM" = "yes" ; then | |
17769 | cat >> confdefs.h <<\EOF | |
17770 | #define wxUSE_PNM 1 | |
17771 | EOF | |
17772 | ||
17773 | fi | |
17774 | ||
17775 | if test "$wxUSE_XPM" = "yes" ; then | |
17776 | cat >> confdefs.h <<\EOF | |
17777 | #define wxUSE_XPM 1 | |
17778 | EOF | |
17779 | ||
17780 | fi | |
17781 | ||
17782 | ||
1e6feb95 VZ |
17783 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
17784 | cat >> confdefs.h <<\EOF | |
17785 | #define wxUSE_CHOICEDLG 1 | |
17786 | EOF | |
17787 | ||
17788 | fi | |
17789 | ||
17790 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
17791 | cat >> confdefs.h <<\EOF | |
17792 | #define wxUSE_COLOURDLG 1 | |
17793 | EOF | |
17794 | ||
17795 | fi | |
17796 | ||
17797 | if test "$wxUSE_FILEDLG" = "yes"; then | |
17798 | cat >> confdefs.h <<\EOF | |
17799 | #define wxUSE_FILEDLG 1 | |
17800 | EOF | |
17801 | ||
17802 | fi | |
17803 | ||
8db37e06 VZ |
17804 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
17805 | cat >> confdefs.h <<\EOF | |
17806 | #define wxUSE_FINDREPLDLG 1 | |
17807 | EOF | |
17808 | ||
17809 | fi | |
17810 | ||
1e6feb95 VZ |
17811 | if test "$wxUSE_FONTDLG" = "yes"; then |
17812 | cat >> confdefs.h <<\EOF | |
17813 | #define wxUSE_FONTDLG 1 | |
17814 | EOF | |
17815 | ||
17816 | fi | |
17817 | ||
17818 | if test "$wxUSE_DIRDLG" = "yes"; then | |
17819 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17820 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
17821 | else | |
17822 | if test "$wxUSE_TREECTRL" != "yes"; then | |
17823 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
17824 | else | |
17825 | cat >> confdefs.h <<\EOF | |
17826 | #define wxUSE_DIRDLG 1 | |
17827 | EOF | |
17828 | ||
17829 | fi | |
17830 | fi | |
17831 | fi | |
17832 | ||
17833 | if test "$wxUSE_MSGDLG" = "yes"; then | |
17834 | cat >> confdefs.h <<\EOF | |
17835 | #define wxUSE_MSGDLG 1 | |
17836 | EOF | |
17837 | ||
17838 | fi | |
17839 | ||
17840 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
17841 | cat >> confdefs.h <<\EOF | |
17842 | #define wxUSE_NUMBERDLG 1 | |
17843 | EOF | |
17844 | ||
17845 | fi | |
17846 | ||
17847 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
17848 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17849 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
17850 | else | |
17851 | cat >> confdefs.h <<\EOF | |
17852 | #define wxUSE_PROGRESSDLG 1 | |
17853 | EOF | |
17854 | ||
17855 | fi | |
17856 | fi | |
17857 | ||
17858 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
17859 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17860 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
17861 | else | |
17862 | cat >> confdefs.h <<\EOF | |
17863 | #define wxUSE_STARTUP_TIPS 1 | |
17864 | EOF | |
17865 | ||
17866 | fi | |
17867 | fi | |
17868 | ||
17869 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
17870 | cat >> confdefs.h <<\EOF | |
17871 | #define wxUSE_TEXTDLG 1 | |
17872 | EOF | |
17873 | ||
17874 | fi | |
17875 | ||
b1f5d087 VZ |
17876 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
17877 | cat >> confdefs.h <<\EOF | |
17878 | #define wxUSE_WIZARDDLG 1 | |
17879 | EOF | |
17880 | ||
17881 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
17882 | fi | |
17883 | ||
1e6feb95 | 17884 | |
698dcdb6 VZ |
17885 | if test "$cross_compiling" = "yes"; then |
17886 | OSINFO="\"$host\"" | |
17887 | else | |
17888 | OSINFO=`uname -s -r -m` | |
17889 | OSINFO="\"$OSINFO\"" | |
17890 | fi | |
17891 | ||
17892 | cat >> confdefs.h <<EOF | |
17893 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
17894 | EOF | |
17895 | ||
17896 | ||
17897 | ||
17898 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" | |
17899 | OPENGL_LIBS="$OPENGL_LINK" | |
17900 | ||
17901 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
f11bdd03 | 17902 | if test "$wxUSE_MAC" = 1 ; then |
698dcdb6 VZ |
17903 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" |
17904 | fi | |
17905 | if test "$wxUSE_GUI" = "yes"; then | |
17906 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
17907 | fi | |
17908 | ||
17909 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
17910 | ||
3e44f09d VZ |
17911 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \ |
17912 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
17913 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
698dcdb6 VZ |
17914 | |
17915 | if test "$wxUSE_GTK" = 1; then | |
17916 | WXCONFIG_INCLUDE="" | |
17917 | else | |
17918 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
17919 | fi | |
17920 | ||
17921 | if test "$GXX" = yes ; then | |
17922 | CXXWARNINGS="-Wall" | |
17923 | fi | |
17924 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
17925 | ||
17926 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
17927 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
17928 | ||
17929 | LDFLAGS="$LDFLAGS $PROFILE" | |
17930 | ||
17931 | if test "$wxUSE_GUI" = "yes"; then | |
17932 | ||
24fd6d87 | 17933 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ |
24176f2c GD |
17934 | drawing dynamic erase event exec font image \ |
17935 | minimal richedit rotate widgets" | |
1e6feb95 VZ |
17936 | |
17937 | if test "$wxUSE_UNIVERSAL" = "yes" ; then | |
17938 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" | |
17939 | fi | |
698dcdb6 VZ |
17940 | |
17941 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
17942 | else | |
24176f2c | 17943 | SAMPLES_SUBDIRS="console" |
698dcdb6 VZ |
17944 | fi |
17945 | ||
17946 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
17947 | ||
17948 | ||
17949 | ||
17950 | ||
17951 | ||
17952 | ||
17953 | ||
17954 | ||
17955 | ||
17956 | ||
17957 | ||
17958 | ||
17959 | ||
17960 | ||
17961 | ||
17962 | ||
17963 | ||
17964 | ||
17965 | ||
17966 | ||
17967 | ||
17968 | ||
17969 | ||
17970 | ||
17971 | ||
17972 | ||
17973 | ||
17974 | ||
17975 | ||
17976 | ||
17977 | ||
17978 | ||
17979 | ||
17980 | ||
17981 | ||
17982 | ||
17983 | ||
17984 | ||
17985 | ||
17986 | ||
17987 | ||
17988 | ||
17989 | ||
17990 | ||
17991 | ||
17992 | ||
17993 | ||
17994 | ||
17995 | ||
17996 | ||
17997 | ||
17998 | ||
17999 | ||
18000 | ||
18001 | ||
18002 | ||
18003 | ||
18004 | ||
18005 | ||
18006 | ||
18007 | ||
18008 | ||
18009 | ||
18010 | ||
18011 | ||
18012 | ||
18013 | ||
32832908 VZ |
18014 | |
18015 | ||
18016 | ||
18017 | ||
18018 | ||
18019 | ||
18020 | ||
2224580a | 18021 | |
dad6c0ea | 18022 | |
f6bcfd97 BP |
18023 | |
18024 | ||
18025 | ||
2f51a9ec GD |
18026 | |
18027 | ||
18028 | ||
18029 | ||
18030 | ||
18031 | ||
f6bcfd97 | 18032 | |
dad6c0ea | 18033 | |
caa2c79b | 18034 | |
3711412e | 18035 | |
1e6feb95 VZ |
18036 | |
18037 | ||
0f3f1cbc | 18038 | |
18dbb1f6 | 18039 | |
10f2d63a VZ |
18040 | |
18041 | ||
698dcdb6 | 18042 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
18dbb1f6 | 18043 | echo "configure:18044: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
18044 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
18045 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
18046 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18047 | else |
698dcdb6 | 18048 | cat > conftestmake <<\EOF |
10f2d63a VZ |
18049 | all: |
18050 | @echo 'ac_maketemp="${MAKE}"' | |
18051 | EOF | |
18052 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 18053 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
18054 | if test -n "$ac_maketemp"; then |
18055 | eval ac_cv_prog_make_${ac_make}_set=yes | |
18056 | else | |
18057 | eval ac_cv_prog_make_${ac_make}_set=no | |
18058 | fi | |
698dcdb6 | 18059 | rm -f conftestmake |
10f2d63a VZ |
18060 | fi |
18061 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 18062 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
18063 | SET_MAKE= |
18064 | else | |
698dcdb6 | 18065 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
18066 | SET_MAKE="MAKE=${MAKE-make}" |
18067 | fi | |
18068 | ||
698dcdb6 | 18069 | |
00cf1208 RR |
18070 | if test -d include; then |
18071 | if test -d include/wx; then | |
1e6feb95 VZ |
18072 | if test -d include/wx/${SETUPH_DIR}; then |
18073 | if test -f include/wx/${SETUPH_DIR}/setup.h; then | |
18074 | mv -f include/wx/${SETUPH_DIR}/setup.h setup.h | |
00cf1208 RR |
18075 | fi |
18076 | fi | |
18077 | fi | |
18078 | fi | |
665bbe97 | 18079 | |
698dcdb6 | 18080 | |
10f2d63a | 18081 | |
2224580a | 18082 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 18083 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
18084 | wx_cv_path_ifs=$PATH_IFS |
18085 | wx_cv_program_ext=$PROGRAM_EXT | |
18086 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
7b6058cd | 18087 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL |
3711412e | 18088 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 | 18089 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
7b6058cd | 18090 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype |
698dcdb6 | 18091 | subdirs="demos samples utils contrib" |
2224580a VZ |
18092 | |
18093 | fi | |
10f2d63a | 18094 | |
698dcdb6 VZ |
18095 | trap '' 1 2 15 |
18096 | cat > confcache <<\EOF | |
10f2d63a VZ |
18097 | # This file is a shell script that caches the results of configure |
18098 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
18099 | # scripts and configure runs. It is not useful on other systems. |
18100 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 18101 | # |
698dcdb6 VZ |
18102 | # By default, configure uses ./config.cache as the cache file, |
18103 | # creating it if it does not exist already. You can give configure | |
18104 | # the --cache-file=FILE option to use a different cache file; that is | |
18105 | # what configure does when it calls configure scripts in | |
18106 | # subdirectories, so they share the cache. | |
18107 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18108 | # config.status only pays attention to the cache file if you give it the | |
18109 | # --recheck option to rerun configure. | |
10f2d63a | 18110 | # |
698dcdb6 | 18111 | EOF |
10f2d63a VZ |
18112 | # The following way of writing the cache mishandles newlines in values, |
18113 | # but we know of no workaround that is simple, portable, and efficient. | |
18114 | # So, don't put newlines in cache variables' values. | |
18115 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18116 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
18117 | (set) 2>&1 | |
18118 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18119 | *ac_space=\ *) | |
18120 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18121 | # turns \\\\ into \\, and sed turns \\ into \). | |
18122 | sed -n \ | |
18123 | -e "s/'/'\\\\''/g" \ | |
18124 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18125 | ;; | |
18126 | *) | |
18127 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18128 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18129 | ;; | |
18130 | esac >> confcache | |
18131 | if cmp -s $cache_file confcache; then | |
18132 | : | |
18133 | else | |
10f2d63a | 18134 | if test -w $cache_file; then |
698dcdb6 VZ |
18135 | echo "updating cache $cache_file" |
18136 | cat confcache > $cache_file | |
10f2d63a VZ |
18137 | else |
18138 | echo "not updating unwritable cache $cache_file" | |
18139 | fi | |
18140 | fi | |
18141 | rm -f confcache | |
18142 | ||
698dcdb6 VZ |
18143 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
18144 | ||
10f2d63a VZ |
18145 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
18146 | # Let make expand exec_prefix. | |
18147 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18148 | ||
698dcdb6 VZ |
18149 | # Any assignment to VPATH causes Sun make to only execute |
18150 | # the first set of double-colon rules, so remove it if not needed. | |
18151 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 18152 | if test "x$srcdir" = x.; then |
698dcdb6 | 18153 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
18154 | fi |
18155 | ||
698dcdb6 VZ |
18156 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
18157 | ||
10f2d63a VZ |
18158 | DEFS=-DHAVE_CONFIG_H |
18159 | ||
698dcdb6 | 18160 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 18161 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
18162 | |
18163 | echo creating $CONFIG_STATUS | |
18164 | rm -f $CONFIG_STATUS | |
18165 | cat > $CONFIG_STATUS <<EOF | |
18166 | #! /bin/sh | |
10f2d63a VZ |
18167 | # Generated automatically by configure. |
18168 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
18169 | # This directory was configured as follows, |
18170 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18171 | # | |
18172 | # $0 $ac_configure_args | |
18173 | # | |
10f2d63a | 18174 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 18175 | # configure, is in ./config.log if it exists. |
1e487827 | 18176 | |
698dcdb6 VZ |
18177 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
18178 | for ac_option | |
10f2d63a | 18179 | do |
698dcdb6 | 18180 | case "\$ac_option" in |
10f2d63a | 18181 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
18182 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
18183 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
18184 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
18185 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
18186 | exit 0 ;; | |
18187 | -help | --help | --hel | --he | --h) | |
18188 | echo "\$ac_cs_usage"; exit 0 ;; | |
18189 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
18190 | esac |
18191 | done | |
18192 | ||
698dcdb6 VZ |
18193 | ac_given_srcdir=$srcdir |
18194 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 18195 | |
698dcdb6 VZ |
18196 | trap 'rm -fr `echo " |
18197 | wx-config | |
18198 | src/make.env | |
18199 | src/makeprog.env | |
18200 | src/makelib.env | |
18201 | Makefile | |
18202 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 18203 | EOF |
698dcdb6 | 18204 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 18205 | |
698dcdb6 VZ |
18206 | # Protect against being on the right side of a sed subst in config.status. |
18207 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
18208 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
18209 | $ac_vpsub | |
18210 | $extrasub | |
18211 | s%@SHELL@%$SHELL%g | |
18212 | s%@CFLAGS@%$CFLAGS%g | |
18213 | s%@CPPFLAGS@%$CPPFLAGS%g | |
18214 | s%@CXXFLAGS@%$CXXFLAGS%g | |
18215 | s%@FFLAGS@%$FFLAGS%g | |
18216 | s%@DEFS@%$DEFS%g | |
18217 | s%@LDFLAGS@%$LDFLAGS%g | |
18218 | s%@LIBS@%$LIBS%g | |
18219 | s%@exec_prefix@%$exec_prefix%g | |
18220 | s%@prefix@%$prefix%g | |
18221 | s%@program_transform_name@%$program_transform_name%g | |
18222 | s%@bindir@%$bindir%g | |
18223 | s%@sbindir@%$sbindir%g | |
18224 | s%@libexecdir@%$libexecdir%g | |
18225 | s%@datadir@%$datadir%g | |
18226 | s%@sysconfdir@%$sysconfdir%g | |
18227 | s%@sharedstatedir@%$sharedstatedir%g | |
18228 | s%@localstatedir@%$localstatedir%g | |
18229 | s%@libdir@%$libdir%g | |
18230 | s%@includedir@%$includedir%g | |
18231 | s%@oldincludedir@%$oldincludedir%g | |
18232 | s%@infodir@%$infodir%g | |
18233 | s%@mandir@%$mandir%g | |
18234 | s%@host@%$host%g | |
18235 | s%@host_alias@%$host_alias%g | |
18236 | s%@host_cpu@%$host_cpu%g | |
18237 | s%@host_vendor@%$host_vendor%g | |
18238 | s%@host_os@%$host_os%g | |
18239 | s%@target@%$target%g | |
18240 | s%@target_alias@%$target_alias%g | |
18241 | s%@target_cpu@%$target_cpu%g | |
18242 | s%@target_vendor@%$target_vendor%g | |
18243 | s%@target_os@%$target_os%g | |
18244 | s%@build@%$build%g | |
18245 | s%@build_alias@%$build_alias%g | |
18246 | s%@build_cpu@%$build_cpu%g | |
18247 | s%@build_vendor@%$build_vendor%g | |
18248 | s%@build_os@%$build_os%g | |
18249 | s%@CC@%$CC%g | |
18250 | s%@CPP@%$CPP%g | |
18251 | s%@CXX@%$CXX%g | |
18252 | s%@CXXCPP@%$CXXCPP%g | |
18253 | s%@RANLIB@%$RANLIB%g | |
18254 | s%@AR@%$AR%g | |
18255 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
18256 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
18257 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
18258 | s%@STRIP@%$STRIP%g | |
18259 | s%@YACC@%$YACC%g | |
18260 | s%@LEX@%$LEX%g | |
18261 | s%@LEXLIB@%$LEXLIB%g | |
18262 | s%@LN_S@%$LN_S%g | |
18263 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
18264 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
18265 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 18266 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
18267 | s%@X_CFLAGS@%$X_CFLAGS%g |
18268 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
18269 | s%@X_LIBS@%$X_LIBS%g | |
18270 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
18271 | s%@REZ@%$REZ%g | |
18272 | s%@DEREZ@%$DEREZ%g | |
18273 | s%@LEX_STEM@%$LEX_STEM%g | |
18274 | s%@PATH_IFS@%$PATH_IFS%g | |
18275 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
18276 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
18277 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
18278 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
18279 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
18280 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
18281 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
18282 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
18283 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
18284 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
18285 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
18286 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
18287 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g | |
18288 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
18289 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
18290 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
18291 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
18292 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
18293 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
18294 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
18295 | s%@WX_ALL@%$WX_ALL%g | |
18296 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
18297 | s%@SHARED_LD@%$SHARED_LD%g | |
18298 | s%@PIC_FLAG@%$PIC_FLAG%g | |
18299 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
18300 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
18301 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
18302 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g | |
18303 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g | |
18304 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
18305 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
18306 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
18307 | s%@USE_GUI@%$USE_GUI%g | |
18308 | s%@AFMINSTALL@%$AFMINSTALL%g | |
1e6feb95 | 18309 | s%@SETUPH_DIR@%$SETUPH_DIR%g |
698dcdb6 VZ |
18310 | s%@TOOLKIT@%$TOOLKIT%g |
18311 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
18312 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
18313 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g | |
18314 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
1e6feb95 | 18315 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
698dcdb6 VZ |
18316 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
18317 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
18318 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
18319 | s%@GUIDIST@%$GUIDIST%g | |
18320 | s%@PORT_FILES@%$PORT_FILES%g | |
18321 | s%@DISTDIR@%$DISTDIR%g | |
18322 | s%@RPM_SPEC@%$RPM_SPEC%g | |
18323 | s%@RPM_FILES@%$RPM_FILES%g | |
18324 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
18325 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
18326 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
18327 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
18328 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
18329 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
18330 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
18331 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
18332 | s%@EXTRADEFS@%$EXTRADEFS%g | |
18333 | s%@LD_LIBS@%$LD_LIBS%g | |
18dbb1f6 | 18334 | s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g |
698dcdb6 VZ |
18335 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g |
18336 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
18337 | s%@RESPROGRAM@%$RESPROGRAM%g | |
18338 | s%@RESCOMP@%$RESCOMP%g | |
18339 | s%@RESFLAGS@%$RESFLAGS%g | |
18340 | s%@REZFLAGS@%$REZFLAGS%g | |
18341 | s%@DEREZFLAGS@%$DEREZFLAGS%g | |
18342 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
18343 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
18344 | s%@DLLTOOL@%$DLLTOOL%g | |
18345 | s%@AS@%$AS%g | |
18346 | s%@NM@%$NM%g | |
18347 | s%@LD@%$LD%g | |
18348 | s%@MAKEINFO@%$MAKEINFO%g | |
18349 | s%@SET_MAKE@%$SET_MAKE%g | |
18350 | s%@subdirs@%$subdirs%g | |
1e487827 | 18351 | |
1e487827 | 18352 | CEOF |
1e487827 VS |
18353 | EOF |
18354 | ||
698dcdb6 VZ |
18355 | cat >> $CONFIG_STATUS <<\EOF |
18356 | ||
18357 | # Split the substitutions into bite-sized pieces for seds with | |
18358 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
18359 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
18360 | ac_file=1 # Number of current file. | |
18361 | ac_beg=1 # First line for current file. | |
18362 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
18363 | ac_more_lines=: | |
18364 | ac_sed_cmds="" | |
18365 | while $ac_more_lines; do | |
18366 | if test $ac_beg -gt 1; then | |
18367 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
18368 | else | |
18369 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
18370 | fi | |
18371 | if test ! -s conftest.s$ac_file; then | |
18372 | ac_more_lines=false | |
18373 | rm -f conftest.s$ac_file | |
18374 | else | |
18375 | if test -z "$ac_sed_cmds"; then | |
18376 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 18377 | else |
698dcdb6 | 18378 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 18379 | fi |
698dcdb6 VZ |
18380 | ac_file=`expr $ac_file + 1` |
18381 | ac_beg=$ac_end | |
18382 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 18383 | fi |
698dcdb6 VZ |
18384 | done |
18385 | if test -z "$ac_sed_cmds"; then | |
18386 | ac_sed_cmds=cat | |
18387 | fi | |
18388 | EOF | |
10f2d63a | 18389 | |
698dcdb6 VZ |
18390 | cat >> $CONFIG_STATUS <<EOF |
18391 | ||
18392 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
18393 | src/make.env | |
18394 | src/makeprog.env | |
18395 | src/makelib.env | |
18396 | Makefile | |
18397 | "} | |
10f2d63a | 18398 | EOF |
698dcdb6 VZ |
18399 | cat >> $CONFIG_STATUS <<\EOF |
18400 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 18401 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18402 | case "$ac_file" in |
18403 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18404 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18405 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18406 | esac |
18407 | ||
698dcdb6 | 18408 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 18409 | |
698dcdb6 VZ |
18410 | # Remove last slash and all that follows it. Not all systems have dirname. |
18411 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
18412 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
18413 | # The file is in a subdirectory. | |
18414 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
18415 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 18416 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 18417 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
18418 | else |
18419 | ac_dir_suffix= ac_dots= | |
18420 | fi | |
18421 | ||
698dcdb6 VZ |
18422 | case "$ac_given_srcdir" in |
18423 | .) srcdir=. | |
18424 | if test -z "$ac_dots"; then top_srcdir=. | |
18425 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
18426 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 18427 | *) # Relative path. |
698dcdb6 VZ |
18428 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
18429 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
18430 | esac |
18431 | ||
698dcdb6 VZ |
18432 | case "$ac_given_INSTALL" in |
18433 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18434 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
18435 | esac |
18436 | ||
698dcdb6 VZ |
18437 | echo creating "$ac_file" |
18438 | rm -f "$ac_file" | |
18439 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
18440 | case "$ac_file" in | |
18441 | *Makefile*) ac_comsub="1i\\ | |
18442 | # $configure_input" ;; | |
18443 | *) ac_comsub= ;; | |
18444 | esac | |
10f2d63a | 18445 | |
698dcdb6 VZ |
18446 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
18447 | sed -e "$ac_comsub | |
18448 | s%@configure_input@%$configure_input%g | |
18449 | s%@srcdir@%$srcdir%g | |
18450 | s%@top_srcdir@%$top_srcdir%g | |
18451 | s%@INSTALL@%$INSTALL%g | |
18452 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
18453 | fi; done | |
18454 | rm -f conftest.s* | |
10f2d63a VZ |
18455 | |
18456 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18457 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18458 | # | |
18459 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
18460 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
18461 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
18462 | ac_dC='\3' | |
18463 | ac_dD='%g' | |
18464 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
18465 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18466 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 18467 | ac_uC=' ' |
698dcdb6 VZ |
18468 | ac_uD='\4%g' |
18469 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18470 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18471 | ac_eB='$%\1#\2define\3' | |
18472 | ac_eC=' ' | |
18473 | ac_eD='%g' | |
10f2d63a | 18474 | |
698dcdb6 VZ |
18475 | if test "${CONFIG_HEADERS+set}" != set; then |
18476 | EOF | |
18477 | cat >> $CONFIG_STATUS <<EOF | |
18478 | CONFIG_HEADERS="setup.h:setup.h.in" | |
18479 | EOF | |
18480 | cat >> $CONFIG_STATUS <<\EOF | |
18481 | fi | |
18482 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 18483 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
18484 | case "$ac_file" in |
18485 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18486 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18487 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
18488 | esac |
18489 | ||
698dcdb6 VZ |
18490 | echo creating $ac_file |
18491 | ||
18492 | rm -f conftest.frag conftest.in conftest.out | |
18493 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
18494 | cat $ac_file_inputs > conftest.in | |
18495 | ||
18496 | EOF | |
18497 | ||
18498 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
18499 | # the proper values into config.h.in to produce config.h. And first: | |
18500 | # Protect against being on the right side of a sed subst in config.status. | |
18501 | # Protect against being in an unquoted here document in config.status. | |
18502 | rm -f conftest.vals | |
18503 | cat > conftest.hdr <<\EOF | |
18504 | s/[\\&%]/\\&/g | |
18505 | s%[\\$`]%\\&%g | |
18506 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
18507 | s%ac_d%ac_u%gp | |
18508 | s%ac_u%ac_e%gp | |
18509 | EOF | |
18510 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
18511 | rm -f conftest.hdr | |
10f2d63a VZ |
18512 | |
18513 | # This sed command replaces #undef with comments. This is necessary, for | |
18514 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
18515 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
18516 | cat >> conftest.vals <<\EOF |
18517 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
18518 | EOF |
18519 | ||
698dcdb6 VZ |
18520 | # Break up conftest.vals because some shells have a limit on |
18521 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
18522 | |
18523 | rm -f conftest.tail | |
698dcdb6 | 18524 | while : |
10f2d63a | 18525 | do |
698dcdb6 VZ |
18526 | ac_lines=`grep -c . conftest.vals` |
18527 | # grep -c gives empty output for an empty file on some AIX systems. | |
18528 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
18529 | # Write a limited-size here document to conftest.frag. | |
18530 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
18531 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 18532 | echo 'CEOF |
698dcdb6 VZ |
18533 | sed -f conftest.frag conftest.in > conftest.out |
18534 | rm -f conftest.in | |
18535 | mv conftest.out conftest.in | |
18536 | ' >> $CONFIG_STATUS | |
18537 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
18538 | rm -f conftest.vals | |
18539 | mv conftest.tail conftest.vals | |
10f2d63a | 18540 | done |
698dcdb6 VZ |
18541 | rm -f conftest.vals |
18542 | ||
18543 | cat >> $CONFIG_STATUS <<\EOF | |
18544 | rm -f conftest.frag conftest.h | |
18545 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
18546 | cat conftest.in >> conftest.h | |
18547 | rm -f conftest.in | |
18548 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
18549 | echo "$ac_file is unchanged" | |
18550 | rm -f conftest.h | |
10f2d63a | 18551 | else |
698dcdb6 VZ |
18552 | # Remove last slash and all that follows it. Not all systems have dirname. |
18553 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 18554 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
18555 | # The file is in a subdirectory. |
18556 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 18557 | fi |
698dcdb6 VZ |
18558 | rm -f $ac_file |
18559 | mv conftest.h $ac_file | |
10f2d63a | 18560 | fi |
698dcdb6 VZ |
18561 | fi; done |
18562 | ||
10f2d63a | 18563 | EOF |
698dcdb6 | 18564 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 18565 | |
1e6feb95 | 18566 | SETUPH_DIR="${SETUPH_DIR}" |
698dcdb6 VZ |
18567 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
18568 | LN_S="${LN_S}" | |
18569 | ||
18570 | ||
18571 | EOF | |
18572 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 18573 | |
6ef41520 | 18574 | if test ! -f wx${TOOLKIT_NAME}-config; then |
991a5759 VZ |
18575 | chmod +x wx-config |
18576 | mv wx-config wx${TOOLKIT_NAME}-config | |
18577 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
18578 | fi | |
665bbe97 | 18579 | |
698dcdb6 | 18580 | |
00cf1208 RR |
18581 | if test ! -d lib; then |
18582 | mkdir lib | |
18583 | fi | |
18584 | if test ! -d lib/wx; then | |
18585 | mkdir lib/wx | |
18586 | fi | |
18587 | if test ! -d lib/wx/include; then | |
18588 | mkdir lib/wx/include | |
18589 | fi | |
18590 | if test ! -d lib/wx/include/wx; then | |
18591 | mkdir lib/wx/include/wx | |
18592 | fi | |
f6bcfd97 BP |
18593 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
18594 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
18595 | fi |
18596 | if test -f setup.h; then | |
066b00aa | 18597 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 18598 | fi |
07eb77a6 | 18599 | |
698dcdb6 | 18600 | |
10f2d63a VZ |
18601 | if test ! -d include; then |
18602 | mkdir include | |
18603 | fi | |
18604 | if test ! -d include/wx; then | |
18605 | mkdir include/wx | |
18606 | fi | |
1e6feb95 VZ |
18607 | if test ! -d include/wx/${SETUPH_DIR}; then |
18608 | mkdir include/wx/${SETUPH_DIR} | |
10f2d63a | 18609 | fi |
afc31813 | 18610 | if test -f setup.h; then |
1e6feb95 | 18611 | cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h |
afc31813 | 18612 | fi |
665bbe97 | 18613 | |
698dcdb6 VZ |
18614 | |
18615 | exit 0 | |
10f2d63a VZ |
18616 | EOF |
18617 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
18618 | rm -fr confdefs* $ac_clean_files |
18619 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 18620 | |
2224580a VZ |
18621 | if test "$no_recursion" != yes; then |
18622 | ||
18623 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
18624 | ac_sub_configure_args= | |
18625 | ac_prev= | |
18626 | for ac_arg in $ac_configure_args; do | |
18627 | if test -n "$ac_prev"; then | |
18628 | ac_prev= | |
18629 | continue | |
18630 | fi | |
698dcdb6 | 18631 | case "$ac_arg" in |
2224580a VZ |
18632 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
18633 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18634 | ac_prev=cache_file ;; | |
18635 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 18636 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
18637 | ;; |
18638 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18639 | ac_prev=srcdir ;; | |
18640 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18641 | ;; | |
18642 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
18643 | esac | |
18644 | done | |
18645 | ||
698dcdb6 | 18646 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
18647 | |
18648 | # Do not complain, so a configure script can configure whichever | |
18649 | # parts of a large source tree are present. | |
698dcdb6 VZ |
18650 | if test ! -d $srcdir/$ac_config_dir; then |
18651 | continue | |
18652 | fi | |
18653 | ||
18654 | echo configuring in $ac_config_dir | |
2224580a | 18655 | |
698dcdb6 | 18656 | case "$srcdir" in |
2224580a VZ |
18657 | .) ;; |
18658 | *) | |
698dcdb6 VZ |
18659 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
18660 | else | |
18661 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
18662 | fi | |
18663 | ;; | |
2224580a VZ |
18664 | esac |
18665 | ||
18666 | ac_popdir=`pwd` | |
698dcdb6 | 18667 | cd $ac_config_dir |
2224580a | 18668 | |
698dcdb6 VZ |
18669 | # A "../" for each directory in /$ac_config_dir. |
18670 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 18671 | |
698dcdb6 | 18672 | case "$srcdir" in |
2224580a VZ |
18673 | .) # No --srcdir option. We are building in place. |
18674 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
18675 | /*) # Absolute path. |
18676 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 18677 | *) # Relative path. |
698dcdb6 | 18678 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
18679 | esac |
18680 | ||
18681 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
18682 | if test -f $ac_sub_srcdir/configure; then |
18683 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
18684 | elif test -f $ac_sub_srcdir/configure.in; then |
18685 | ac_sub_configure=$ac_configure | |
18686 | else | |
698dcdb6 | 18687 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
18688 | ac_sub_configure= |
18689 | fi | |
18690 | ||
18691 | # The recursion is here. | |
18692 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 18693 | |
2224580a | 18694 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
18695 | case "$cache_file" in |
18696 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 18697 | *) # Relative path. |
698dcdb6 | 18698 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 18699 | esac |
698dcdb6 VZ |
18700 | case "$ac_given_INSTALL" in |
18701 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18702 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
18703 | esac | |
2224580a | 18704 | |
698dcdb6 | 18705 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 18706 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
18707 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
18708 | then : | |
18709 | else | |
18710 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
18711 | fi | |
2224580a VZ |
18712 | fi |
18713 | ||
18714 | cd $ac_popdir | |
18715 | done | |
18716 | fi | |
18717 | ||
698dcdb6 | 18718 |