]>
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)" |
698dcdb6 | 92 | ac_help="$ac_help |
8168de4c | 93 | --with-zlib use zlib for LZW compression" |
698dcdb6 | 94 | ac_help="$ac_help |
8168de4c | 95 | --with-odbc use the IODBC and wxODBC classes" |
698dcdb6 | 96 | ac_help="$ac_help |
8168de4c | 97 | --enable-shared create shared library code" |
698dcdb6 | 98 | ac_help="$ac_help |
8168de4c | 99 | --enable-burnt_name create set name in shared library " |
698dcdb6 | 100 | ac_help="$ac_help |
8168de4c | 101 | --enable-optimise create optimised code" |
698dcdb6 | 102 | ac_help="$ac_help |
8168de4c | 103 | --enable-debug same as debug_flag and debug_info" |
698dcdb6 | 104 | ac_help="$ac_help |
8168de4c | 105 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" |
698dcdb6 | 106 | ac_help="$ac_help |
8168de4c | 107 | --enable-debug_info create code with debugging information" |
698dcdb6 | 108 | ac_help="$ac_help |
8168de4c | 109 | --enable-debug_gdb create code with extra GDB debugging information" |
698dcdb6 | 110 | ac_help="$ac_help |
8168de4c | 111 | --enable-debug_cntxt use wxDebugContext" |
698dcdb6 | 112 | ac_help="$ac_help |
8168de4c | 113 | --enable-mem_tracing create code with memory tracing" |
698dcdb6 | 114 | ac_help="$ac_help |
8168de4c | 115 | --enable-profile create code with profiling information" |
698dcdb6 | 116 | ac_help="$ac_help |
8168de4c | 117 | --enable-no_rtti create code without RTTI information" |
698dcdb6 | 118 | ac_help="$ac_help |
8168de4c | 119 | --enable-no_exceptions create code without exceptions information" |
698dcdb6 | 120 | ac_help="$ac_help |
8168de4c | 121 | --enable-permissive compile code disregarding strict ANSI" |
698dcdb6 | 122 | ac_help="$ac_help |
8168de4c | 123 | --enable-no_deps create code without dependency information" |
54276ccf VZ |
124 | ac_help="$ac_help |
125 | --enable-compat20 enable wxWin 2.0 compatibility" | |
126 | ac_help="$ac_help | |
127 | --enable-compat22 enable wxWin 2.2 compatibility" | |
698dcdb6 | 128 | ac_help="$ac_help |
8168de4c | 129 | --enable-intl use internationalization system" |
698dcdb6 | 130 | ac_help="$ac_help |
8168de4c | 131 | --enable-config use wxConfig (and derived) classes" |
698dcdb6 | 132 | ac_help="$ac_help |
8168de4c | 133 | --enable-sockets use socket/network classes" |
698dcdb6 | 134 | ac_help="$ac_help |
8168de4c | 135 | --enable-ipc use interprocess communication (wxSocket etc.)" |
698dcdb6 | 136 | ac_help="$ac_help |
8168de4c | 137 | --enable-cmdline use wxCmdLineParser class" |
1e6feb95 | 138 | ac_help="$ac_help |
8168de4c | 139 | --enable-datetime use wxDateTime class" |
1e6feb95 | 140 | ac_help="$ac_help |
8168de4c | 141 | --enable-timedate use obsolete wxDate/wxTime classes" |
1e6feb95 | 142 | ac_help="$ac_help |
8168de4c | 143 | --enable-stopwatch use wxStopWatch class" |
1e6feb95 | 144 | ac_help="$ac_help |
8168de4c | 145 | --enable-dialupman use dialup network classes" |
698dcdb6 | 146 | ac_help="$ac_help |
8168de4c | 147 | --enable-apple_ieee use the Apple IEEE codec" |
698dcdb6 | 148 | ac_help="$ac_help |
8168de4c | 149 | --enable-timer use wxTimer class" |
698dcdb6 | 150 | ac_help="$ac_help |
8168de4c | 151 | --enable-wave use wxWave class" |
698dcdb6 | 152 | ac_help="$ac_help |
8168de4c | 153 | --enable-fraction use wxFraction class" |
698dcdb6 | 154 | ac_help="$ac_help |
8168de4c | 155 | --enable-dynlib use wxLibrary class for DLL loading" |
698dcdb6 | 156 | ac_help="$ac_help |
8168de4c | 157 | --enable-longlong use wxLongLong class" |
698dcdb6 | 158 | ac_help="$ac_help |
8168de4c | 159 | --enable-geometry use geometry class" |
698dcdb6 | 160 | ac_help="$ac_help |
8168de4c | 161 | --enable-log use logging system" |
698dcdb6 | 162 | ac_help="$ac_help |
8168de4c | 163 | --enable-streams use wxStream etc classes" |
698dcdb6 | 164 | ac_help="$ac_help |
8168de4c | 165 | --enable-file use wxFile classes" |
698dcdb6 | 166 | ac_help="$ac_help |
8168de4c | 167 | --enable-ffile use wxFFile classes" |
1e6feb95 | 168 | ac_help="$ac_help |
8168de4c | 169 | --enable-textfile use wxTextFile classes" |
698dcdb6 | 170 | ac_help="$ac_help |
8168de4c | 171 | --enable-fontmap use font encodings conversion classes" |
1e6feb95 | 172 | ac_help="$ac_help |
8168de4c | 173 | --enable-unicode compile wxString with Unicode support" |
698dcdb6 | 174 | ac_help="$ac_help |
8168de4c | 175 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" |
698dcdb6 | 176 | ac_help="$ac_help |
8168de4c | 177 | --enable-wxprintfv use wxWindows implementation of vprintf()" |
698dcdb6 | 178 | ac_help="$ac_help |
8168de4c | 179 | --enable-std_iostreams use standard C++ stream classes" |
698dcdb6 | 180 | ac_help="$ac_help |
8168de4c | 181 | --enable-filesystem use virtual file systems classes" |
698dcdb6 | 182 | ac_help="$ac_help |
8168de4c | 183 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
698dcdb6 | 184 | ac_help="$ac_help |
8168de4c | 185 | --enable-fs_zip use virtual ZIP filesystems" |
698dcdb6 | 186 | ac_help="$ac_help |
8168de4c | 187 | --enable-zipstream use wxZipInputStream" |
698dcdb6 | 188 | ac_help="$ac_help |
8168de4c | 189 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
698dcdb6 | 190 | ac_help="$ac_help |
8168de4c | 191 | --enable-snglinst use wxSingleInstanceChecker class" |
698dcdb6 | 192 | ac_help="$ac_help |
8168de4c | 193 | --enable-mimetypes use wxMimeTypesManager" |
1e6feb95 | 194 | ac_help="$ac_help |
8168de4c | 195 | --enable-threads use threads" |
698dcdb6 | 196 | ac_help="$ac_help |
8168de4c | 197 | --enable-serial use class serialization" |
698dcdb6 | 198 | ac_help="$ac_help |
8168de4c | 199 | --enable-docview use document view architecture" |
698dcdb6 | 200 | ac_help="$ac_help |
3379ed37 VZ |
201 | --enable-help use help subsystem" |
202 | ac_help="$ac_help | |
203 | --enable-html use wxHTML sub-library" | |
204 | ac_help="$ac_help | |
205 | --enable-htmlhelp use wxHTML-based help" | |
698dcdb6 | 206 | ac_help="$ac_help |
8168de4c | 207 | --enable-constraints use layout-constraints system" |
698dcdb6 | 208 | ac_help="$ac_help |
8168de4c | 209 | --enable-printarch use printing architecture" |
698dcdb6 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-loggui use standard GUI logger" |
1e6feb95 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-logwin use wxLogWindow" |
1e6feb95 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-prologio use Prolog IO library" |
698dcdb6 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-resources use wxWindows resources" |
698dcdb6 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-metafile use win32 metafiles" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-wxtree make wxTree library" |
698dcdb6 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-controls use all usual controls" |
698dcdb6 | 234 | ac_help="$ac_help |
8168de4c | 235 | --enable-accel use accelerators" |
698dcdb6 | 236 | ac_help="$ac_help |
8168de4c | 237 | --enable-button use wxButton class" |
698dcdb6 | 238 | ac_help="$ac_help |
8168de4c | 239 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 240 | ac_help="$ac_help |
8168de4c | 241 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 242 | ac_help="$ac_help |
8168de4c | 243 | --enable-caret use wxCaret class" |
1e6feb95 | 244 | ac_help="$ac_help |
8168de4c | 245 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-choice use wxChoice class" |
698dcdb6 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-gauge use wxGauge class" |
698dcdb6 | 254 | ac_help="$ac_help |
8168de4c | 255 | --enable-grid use wxGrid class" |
698dcdb6 | 256 | ac_help="$ac_help |
8168de4c | 257 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-imaglist use wxImageList class" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-listbox use wxListBox class" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-notebook use wxNotebook class" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 270 | ac_help="$ac_help |
8168de4c | 271 | --enable-sash use wxSashWindow class" |
698dcdb6 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-slider use wxSlider class" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-statline use wxStaticLine class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-stattext use wxStaticText class" |
1e6feb95 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-treectrl use wxTreeCtrl class" |
9f41d601 RR |
306 | ac_help="$ac_help |
307 | --enable-popupwin use wxPopUpWindow class" | |
698dcdb6 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" |
698dcdb6 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 314 | ac_help="$ac_help |
8168de4c | 315 | --enable-filedlg use wxFileDialog" |
1e6feb95 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-numberdlg use wxNumberEntryDialog" |
1e6feb95 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-tipdlg use startup tips" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
330 | ac_help="$ac_help |
331 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-splines use spline drawing code" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-joystick compile in joystick support (Linux only)" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
348 | ac_help="$ac_help |
349 | --enable-dragimage use wxDragImage" | |
1e6feb95 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-image use wxImage class" |
698dcdb6 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 354 | ac_help="$ac_help |
8168de4c | 355 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 356 | ac_help="$ac_help |
8168de4c | 357 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 358 | ac_help="$ac_help |
8168de4c | 359 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
360 | ac_help="$ac_help |
361 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
362 | ac_help="$ac_help | |
363 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
364 | ac_help="$ac_help | |
365 | --disable-gtktest Do not try to compile and run a test GTK program" | |
366 | ac_help="$ac_help | |
367 | --with-x use the X Window System" | |
10f2d63a VZ |
368 | |
369 | # Initialize some variables set by options. | |
370 | # The variables have the same names as the options, with | |
371 | # dashes changed to underlines. | |
698dcdb6 VZ |
372 | build=NONE |
373 | cache_file=./config.cache | |
10f2d63a | 374 | exec_prefix=NONE |
698dcdb6 | 375 | host=NONE |
10f2d63a | 376 | no_create= |
698dcdb6 | 377 | nonopt=NONE |
10f2d63a VZ |
378 | no_recursion= |
379 | prefix=NONE | |
380 | program_prefix=NONE | |
381 | program_suffix=NONE | |
382 | program_transform_name=s,x,x, | |
383 | silent= | |
384 | site= | |
385 | srcdir= | |
698dcdb6 | 386 | target=NONE |
10f2d63a VZ |
387 | verbose= |
388 | x_includes=NONE | |
389 | x_libraries=NONE | |
390 | bindir='${exec_prefix}/bin' | |
391 | sbindir='${exec_prefix}/sbin' | |
392 | libexecdir='${exec_prefix}/libexec' | |
393 | datadir='${prefix}/share' | |
394 | sysconfdir='${prefix}/etc' | |
395 | sharedstatedir='${prefix}/com' | |
396 | localstatedir='${prefix}/var' | |
397 | libdir='${exec_prefix}/lib' | |
398 | includedir='${prefix}/include' | |
399 | oldincludedir='/usr/include' | |
400 | infodir='${prefix}/info' | |
401 | mandir='${prefix}/man' | |
402 | ||
698dcdb6 VZ |
403 | # Initialize some other variables. |
404 | subdirs= | |
405 | MFLAGS= MAKEFLAGS= | |
406 | SHELL=${CONFIG_SHELL-/bin/sh} | |
407 | # Maximum number of lines to put in a shell here document. | |
408 | ac_max_here_lines=12 | |
10f2d63a VZ |
409 | |
410 | ac_prev= | |
411 | for ac_option | |
412 | do | |
698dcdb6 | 413 | |
10f2d63a VZ |
414 | # If the previous option needs an argument, assign it. |
415 | if test -n "$ac_prev"; then | |
416 | eval "$ac_prev=\$ac_option" | |
417 | ac_prev= | |
418 | continue | |
419 | fi | |
420 | ||
698dcdb6 VZ |
421 | case "$ac_option" in |
422 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
423 | *) ac_optarg= ;; | |
424 | esac | |
10f2d63a VZ |
425 | |
426 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
427 | ||
698dcdb6 | 428 | case "$ac_option" in |
10f2d63a VZ |
429 | |
430 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
431 | ac_prev=bindir ;; | |
432 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 433 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
434 | |
435 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 436 | ac_prev=build ;; |
10f2d63a | 437 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 438 | build="$ac_optarg" ;; |
10f2d63a VZ |
439 | |
440 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
441 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
442 | ac_prev=cache_file ;; | |
443 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
444 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 445 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
446 | |
447 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
448 | ac_prev=datadir ;; | |
449 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
450 | | --da=*) | |
698dcdb6 | 451 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
452 | |
453 | -disable-* | --disable-*) | |
698dcdb6 | 454 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 455 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
456 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
457 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
458 | fi | |
459 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
460 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
461 | |
462 | -enable-* | --enable-*) | |
698dcdb6 | 463 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 464 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
465 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
466 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
467 | fi | |
468 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
469 | case "$ac_option" in | |
470 | *=*) ;; | |
10f2d63a VZ |
471 | *) ac_optarg=yes ;; |
472 | esac | |
698dcdb6 | 473 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
474 | |
475 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
476 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
477 | | --exec | --exe | --ex) | |
478 | ac_prev=exec_prefix ;; | |
479 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
480 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
481 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 482 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
483 | |
484 | -gas | --gas | --ga | --g) | |
485 | # Obsolete; use --with-gas. | |
486 | with_gas=yes ;; | |
487 | ||
698dcdb6 VZ |
488 | -help | --help | --hel | --he) |
489 | # Omit some internal or obsolete options to make the list less imposing. | |
490 | # This message is too long to be a string in the A/UX 3.1 sh. | |
491 | cat << EOF | |
492 | Usage: configure [options] [host] | |
493 | Options: [defaults in brackets after descriptions] | |
494 | Configuration: | |
495 | --cache-file=FILE cache test results in FILE | |
496 | --help print this message | |
497 | --no-create do not create output files | |
498 | --quiet, --silent do not print \`checking...' messages | |
499 | --version print the version of autoconf that created configure | |
500 | Directory and file names: | |
501 | --prefix=PREFIX install architecture-independent files in PREFIX | |
502 | [$ac_default_prefix] | |
503 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
504 | [same as prefix] | |
505 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
506 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
507 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
508 | --datadir=DIR read-only architecture-independent data in DIR | |
509 | [PREFIX/share] | |
510 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
511 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
512 | [PREFIX/com] | |
513 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
514 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
515 | --includedir=DIR C header files in DIR [PREFIX/include] | |
516 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
517 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
518 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
519 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
520 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
521 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
522 | --program-transform-name=PROGRAM | |
523 | run sed PROGRAM on installed program names | |
524 | EOF | |
525 | cat << EOF | |
526 | Host type: | |
527 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
528 | --host=HOST configure for HOST [guessed] | |
529 | --target=TARGET configure for TARGET [TARGET=HOST] | |
530 | Features and packages: | |
531 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
532 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
533 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
534 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
535 | --x-includes=DIR X include files are in DIR | |
536 | --x-libraries=DIR X library files are in DIR | |
537 | EOF | |
538 | if test -n "$ac_help"; then | |
539 | echo "--enable and --with options recognized:$ac_help" | |
540 | fi | |
541 | exit 0 ;; | |
10f2d63a VZ |
542 | |
543 | -host | --host | --hos | --ho) | |
698dcdb6 | 544 | ac_prev=host ;; |
10f2d63a | 545 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 546 | host="$ac_optarg" ;; |
10f2d63a VZ |
547 | |
548 | -includedir | --includedir | --includedi | --included | --include \ | |
549 | | --includ | --inclu | --incl | --inc) | |
550 | ac_prev=includedir ;; | |
551 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
552 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 553 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
554 | |
555 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
556 | ac_prev=infodir ;; | |
557 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 558 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
559 | |
560 | -libdir | --libdir | --libdi | --libd) | |
561 | ac_prev=libdir ;; | |
562 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 563 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
564 | |
565 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
566 | | --libexe | --libex | --libe) | |
567 | ac_prev=libexecdir ;; | |
568 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
569 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 570 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
571 | |
572 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
573 | | --localstate | --localstat | --localsta | --localst \ | |
574 | | --locals | --local | --loca | --loc | --lo) | |
575 | ac_prev=localstatedir ;; | |
576 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
577 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
578 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 579 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
580 | |
581 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
582 | ac_prev=mandir ;; | |
583 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 584 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
585 | |
586 | -nfp | --nfp | --nf) | |
587 | # Obsolete; use --without-fp. | |
588 | with_fp=no ;; | |
589 | ||
590 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
591 | | --no-cr | --no-c) | |
592 | no_create=yes ;; | |
593 | ||
594 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
595 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
596 | no_recursion=yes ;; | |
597 | ||
598 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
599 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
600 | | --oldin | --oldi | --old | --ol | --o) | |
601 | ac_prev=oldincludedir ;; | |
602 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
603 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
604 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 605 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
606 | |
607 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
608 | ac_prev=prefix ;; | |
609 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 610 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
611 | |
612 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
613 | | --program-pre | --program-pr | --program-p) | |
614 | ac_prev=program_prefix ;; | |
615 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
616 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 617 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
618 | |
619 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
620 | | --program-suf | --program-su | --program-s) | |
621 | ac_prev=program_suffix ;; | |
622 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
623 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 624 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
625 | |
626 | -program-transform-name | --program-transform-name \ | |
627 | | --program-transform-nam | --program-transform-na \ | |
628 | | --program-transform-n | --program-transform- \ | |
629 | | --program-transform | --program-transfor \ | |
630 | | --program-transfo | --program-transf \ | |
631 | | --program-trans | --program-tran \ | |
632 | | --progr-tra | --program-tr | --program-t) | |
633 | ac_prev=program_transform_name ;; | |
634 | -program-transform-name=* | --program-transform-name=* \ | |
635 | | --program-transform-nam=* | --program-transform-na=* \ | |
636 | | --program-transform-n=* | --program-transform-=* \ | |
637 | | --program-transform=* | --program-transfor=* \ | |
638 | | --program-transfo=* | --program-transf=* \ | |
639 | | --program-trans=* | --program-tran=* \ | |
640 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 641 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
642 | |
643 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
644 | | -silent | --silent | --silen | --sile | --sil) | |
645 | silent=yes ;; | |
646 | ||
647 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
648 | ac_prev=sbindir ;; | |
649 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
650 | | --sbi=* | --sb=*) | |
698dcdb6 | 651 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
652 | |
653 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
654 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
655 | | --sharedst | --shareds | --shared | --share | --shar \ | |
656 | | --sha | --sh) | |
657 | ac_prev=sharedstatedir ;; | |
658 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
659 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
660 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
661 | | --sha=* | --sh=*) | |
698dcdb6 | 662 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
663 | |
664 | -site | --site | --sit) | |
665 | ac_prev=site ;; | |
666 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 667 | site="$ac_optarg" ;; |
10f2d63a VZ |
668 | |
669 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
670 | ac_prev=srcdir ;; | |
671 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 672 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
673 | |
674 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
675 | | --syscon | --sysco | --sysc | --sys | --sy) | |
676 | ac_prev=sysconfdir ;; | |
677 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
678 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 679 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
680 | |
681 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 682 | ac_prev=target ;; |
10f2d63a | 683 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 684 | target="$ac_optarg" ;; |
10f2d63a VZ |
685 | |
686 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
687 | verbose=yes ;; | |
688 | ||
698dcdb6 VZ |
689 | -version | --version | --versio | --versi | --vers) |
690 | echo "configure generated by autoconf version 2.13" | |
691 | exit 0 ;; | |
10f2d63a VZ |
692 | |
693 | -with-* | --with-*) | |
698dcdb6 | 694 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 695 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
696 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
697 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
698 | fi | |
10f2d63a | 699 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
700 | case "$ac_option" in |
701 | *=*) ;; | |
10f2d63a VZ |
702 | *) ac_optarg=yes ;; |
703 | esac | |
698dcdb6 | 704 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
705 | |
706 | -without-* | --without-*) | |
698dcdb6 | 707 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 708 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
709 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
710 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
711 | fi | |
712 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
713 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
714 | |
715 | --x) | |
716 | # Obsolete; use --with-x. | |
717 | with_x=yes ;; | |
718 | ||
719 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
720 | | --x-incl | --x-inc | --x-in | --x-i) | |
721 | ac_prev=x_includes ;; | |
722 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
723 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 724 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
725 | |
726 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
727 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
728 | ac_prev=x_libraries ;; | |
729 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
730 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 731 | x_libraries="$ac_optarg" ;; |
10f2d63a | 732 | |
698dcdb6 | 733 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
734 | ;; |
735 | ||
736 | *) | |
698dcdb6 VZ |
737 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
738 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
739 | fi | |
740 | if test "x$nonopt" != xNONE; then | |
741 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
742 | fi | |
743 | nonopt="$ac_option" | |
10f2d63a VZ |
744 | ;; |
745 | ||
746 | esac | |
747 | done | |
748 | ||
749 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
750 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
751 | fi | |
752 | ||
753 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
754 | ||
755 | # File descriptor usage: | |
756 | # 0 standard input | |
757 | # 1 file creation | |
758 | # 2 errors and warnings | |
759 | # 3 some systems may open it to /dev/tty | |
760 | # 4 used on the Kubota Titan | |
761 | # 6 checking for... messages and results | |
762 | # 5 compiler messages saved in config.log | |
763 | if test "$silent" = yes; then | |
764 | exec 6>/dev/null | |
765 | else | |
766 | exec 6>&1 | |
10f2d63a | 767 | fi |
698dcdb6 VZ |
768 | exec 5>./config.log |
769 | ||
770 | echo "\ | |
771 | This file contains any messages produced by compilers while | |
772 | running configure, to aid debugging if configure makes a mistake. | |
773 | " 1>&5 | |
10f2d63a | 774 | |
698dcdb6 VZ |
775 | # Strip out --no-create and --no-recursion so they do not pile up. |
776 | # Also quote any args containing shell metacharacters. | |
777 | ac_configure_args= | |
778 | for ac_arg | |
10f2d63a | 779 | do |
698dcdb6 VZ |
780 | case "$ac_arg" in |
781 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
782 | | --no-cr | --no-c) ;; | |
783 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
784 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
785 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
786 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
787 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
788 | esac |
789 | done | |
790 | ||
698dcdb6 VZ |
791 | # NLS nuisances. |
792 | # Only set these to C if already set. These must not be set unconditionally | |
793 | # because not all systems understand e.g. LANG=C (notably SCO). | |
794 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
795 | # Non-C LC_CTYPE values break the ctype check. | |
796 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
797 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
798 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
799 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 800 | |
698dcdb6 VZ |
801 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
802 | rm -rf conftest* confdefs.h | |
803 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
804 | echo > confdefs.h | |
10f2d63a | 805 | |
698dcdb6 VZ |
806 | # A filename unique to this package, relative to the directory that |
807 | # configure is in, which we can look for to find out if srcdir is correct. | |
808 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
809 | |
810 | # Find the source files, if location was not specified. | |
811 | if test -z "$srcdir"; then | |
812 | ac_srcdir_defaulted=yes | |
813 | # Try the directory containing this script, then its parent. | |
814 | ac_prog=$0 | |
698dcdb6 | 815 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
816 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
817 | srcdir=$ac_confdir | |
818 | if test ! -r $srcdir/$ac_unique_file; then | |
819 | srcdir=.. | |
820 | fi | |
821 | else | |
822 | ac_srcdir_defaulted=no | |
823 | fi | |
824 | if test ! -r $srcdir/$ac_unique_file; then | |
825 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 826 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 827 | else |
698dcdb6 | 828 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
829 | fi |
830 | fi | |
698dcdb6 | 831 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
832 | |
833 | # Prefer explicitly selected file to automatically selected ones. | |
834 | if test -z "$CONFIG_SITE"; then | |
835 | if test "x$prefix" != xNONE; then | |
836 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
837 | else | |
838 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
839 | fi | |
840 | fi | |
841 | for ac_site_file in $CONFIG_SITE; do | |
842 | if test -r "$ac_site_file"; then | |
698dcdb6 | 843 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
844 | . "$ac_site_file" |
845 | fi | |
846 | done | |
847 | ||
848 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
849 | echo "loading cache $cache_file" |
850 | . $cache_file | |
10f2d63a | 851 | else |
698dcdb6 VZ |
852 | echo "creating cache $cache_file" |
853 | > $cache_file | |
10f2d63a VZ |
854 | fi |
855 | ||
856 | ac_ext=c | |
698dcdb6 | 857 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 858 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
859 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
860 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
861 | cross_compiling=$ac_cv_prog_cc_cross | |
862 | ||
863 | ac_exeext= | |
864 | ac_objext=o | |
865 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
866 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
867 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
868 | ac_n= ac_c=' | |
869 | ' ac_t=' ' | |
870 | else | |
871 | ac_n=-n ac_c= ac_t= | |
872 | fi | |
10f2d63a | 873 | else |
698dcdb6 | 874 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 875 | fi |
698dcdb6 VZ |
876 | |
877 | ||
10f2d63a | 878 | |
7c66a493 VZ |
879 | ac_aux_dir= |
880 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
881 | if test -f $ac_dir/install-sh; then | |
882 | ac_aux_dir=$ac_dir | |
883 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
884 | break | |
885 | elif test -f $ac_dir/install.sh; then | |
886 | ac_aux_dir=$ac_dir | |
887 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
888 | break | |
889 | fi | |
890 | done | |
891 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 892 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 893 | fi |
698dcdb6 VZ |
894 | ac_config_guess=$ac_aux_dir/config.guess |
895 | ac_config_sub=$ac_aux_dir/config.sub | |
896 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 897 | |
698dcdb6 VZ |
898 | |
899 | # Do some error checking and defaulting for the host and target type. | |
900 | # The inputs are: | |
901 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
902 | # | |
903 | # The rules are: | |
904 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
905 | # same time. | |
906 | # 2. Host defaults to nonopt. | |
907 | # 3. If nonopt is not specified, then host defaults to the current host, | |
908 | # as determined by config.guess. | |
909 | # 4. Target and build default to nonopt. | |
910 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
911 | |
912 | # The aliases save the names the user supplied, while $host etc. | |
913 | # will get canonicalized. | |
698dcdb6 VZ |
914 | case $host---$target---$nonopt in |
915 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
916 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
917 | esac | |
918 | ||
919 | ||
920 | # Make sure we can run config.sub. | |
921 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
922 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
923 | fi | |
924 | ||
925 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
9f41d601 | 926 | echo "configure:927: checking host system type" >&5 |
698dcdb6 VZ |
927 | |
928 | host_alias=$host | |
929 | case "$host_alias" in | |
930 | NONE) | |
931 | case $nonopt in | |
932 | NONE) | |
933 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
934 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
935 | fi ;; | |
936 | *) host_alias=$nonopt ;; | |
937 | esac ;; | |
938 | esac | |
939 | ||
940 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
941 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
942 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
943 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
944 | echo "$ac_t""$host" 1>&6 | |
945 | ||
946 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
9f41d601 | 947 | echo "configure:948: checking target system type" >&5 |
698dcdb6 VZ |
948 | |
949 | target_alias=$target | |
950 | case "$target_alias" in | |
951 | NONE) | |
952 | case $nonopt in | |
953 | NONE) target_alias=$host_alias ;; | |
954 | *) target_alias=$nonopt ;; | |
955 | esac ;; | |
956 | esac | |
957 | ||
958 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
959 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
960 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
961 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
962 | echo "$ac_t""$target" 1>&6 | |
963 | ||
964 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
9f41d601 | 965 | echo "configure:966: checking build system type" >&5 |
698dcdb6 VZ |
966 | |
967 | build_alias=$build | |
968 | case "$build_alias" in | |
969 | NONE) | |
970 | case $nonopt in | |
971 | NONE) build_alias=$host_alias ;; | |
972 | *) build_alias=$nonopt ;; | |
973 | esac ;; | |
974 | esac | |
975 | ||
976 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
977 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
978 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
979 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
980 | echo "$ac_t""$build" 1>&6 | |
981 | ||
982 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
983 | test "$program_prefix$program_suffix$program_transform_name" = \ |
984 | NONENONEs,x,x, && | |
985 | program_prefix=${target_alias}- | |
986 | ||
698dcdb6 VZ |
987 | |
988 | ||
10f2d63a | 989 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 990 | WX_MINOR_VERSION_NUMBER=3 |
6c01ec02 | 991 | WX_RELEASE_NUMBER=2 |
10f2d63a | 992 | |
10f2d63a | 993 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 994 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 995 | |
6c01ec02 | 996 | WX_CURRENT=1 |
6426998c RL |
997 | WX_REVISION=0 |
998 | WX_AGE=0 | |
999 | ||
698dcdb6 VZ |
1000 | |
1001 | ||
10f2d63a VZ |
1002 | USE_UNIX=1 |
1003 | USE_WIN32=0 | |
b12915c1 | 1004 | USE_BEOS=0 |
1216f52d | 1005 | USE_MAC=0 |
b12915c1 | 1006 | |
10f2d63a VZ |
1007 | USE_LINUX= |
1008 | USE_SGI= | |
1009 | USE_HPUX= | |
1010 | USE_SYSV= | |
1011 | USE_SVR4= | |
1012 | USE_AIX= | |
1013 | USE_SUN= | |
1014 | USE_SOLARIS= | |
1015 | USE_SUNOS= | |
1016 | USE_ALPHA= | |
1017 | USE_OSF= | |
1018 | USE_BSD= | |
1019 | USE_FREEBSD= | |
95c8801c | 1020 | USE_OPENBSD= |
f6bcfd97 | 1021 | USE_NETBSD= |
10f2d63a VZ |
1022 | USE_VMS= |
1023 | USE_ULTRIX= | |
1024 | USE_CYGWIN= | |
1025 | USE_MINGW= | |
1026 | USE_DATA_GENERAL= | |
1027 | ||
ab9b9eab VZ |
1028 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1029 | ||
1e6feb95 | 1030 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" |
10f2d63a VZ |
1031 | |
1032 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1033 | DEFAULT_wxUSE_MAC=0 |
1034 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1035 | DEFAULT_wxUSE_MOTIF=0 |
1036 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1037 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1038 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1039 | |
1040 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1041 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1042 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1043 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1044 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1045 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1046 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1047 | |
d6a55c4b VZ |
1048 | PROGRAM_EXT= |
1049 | ||
10f2d63a VZ |
1050 | case "${host}" in |
1051 | *-hp-hpux* ) | |
1052 | USE_HPUX=1 | |
1053 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1054 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
698dcdb6 | 1055 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1056 | #define __HPUX__ 1 |
1057 | EOF | |
1058 | ||
1059 | ;; | |
1060 | *-*-linux* ) | |
1061 | USE_LINUX=1 | |
698dcdb6 | 1062 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1063 | #define __LINUX__ 1 |
1064 | EOF | |
1065 | ||
1066 | TMP=`uname -m` | |
1067 | if test "x$TMP" = "xalpha"; then | |
1068 | USE_ALPHA=1 | |
698dcdb6 | 1069 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1070 | #define __ALPHA__ 1 |
1071 | EOF | |
1072 | ||
1073 | fi | |
1074 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1075 | ;; | |
1076 | *-*-irix5* | *-*-irix6* ) | |
1077 | USE_SGI=1 | |
1078 | USE_SVR4=1 | |
698dcdb6 | 1079 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1080 | #define __SGI__ 1 |
1081 | EOF | |
1082 | ||
698dcdb6 | 1083 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1084 | #define __SVR4__ 1 |
1085 | EOF | |
1086 | ||
1087 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1088 | ;; | |
1089 | *-*-solaris2* ) | |
1090 | USE_SUN=1 | |
1091 | USE_SOLARIS=1 | |
1092 | USE_SVR4=1 | |
698dcdb6 | 1093 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1094 | #define __SUN__ 1 |
1095 | EOF | |
1096 | ||
698dcdb6 | 1097 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1098 | #define __SOLARIS__ 1 |
1099 | EOF | |
1100 | ||
698dcdb6 | 1101 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1102 | #define __SVR4__ 1 |
1103 | EOF | |
1104 | ||
1105 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1106 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1107 | ;; |
1108 | *-*-sunos4* ) | |
1109 | USE_SUN=1 | |
1110 | USE_SUNOS=1 | |
1111 | USE_BSD=1 | |
698dcdb6 | 1112 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1113 | #define __SUN__ 1 |
1114 | EOF | |
1115 | ||
698dcdb6 | 1116 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1117 | #define __SUNOS__ 1 |
1118 | EOF | |
1119 | ||
698dcdb6 | 1120 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1121 | #define __BSD__ 1 |
1122 | EOF | |
1123 | ||
1124 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1125 | ;; | |
f6bcfd97 | 1126 | *-*-freebsd*) |
10f2d63a VZ |
1127 | USE_BSD=1 |
1128 | USE_FREEBSD=1 | |
698dcdb6 | 1129 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1130 | #define __FREEBSD__ 1 |
1131 | EOF | |
1132 | ||
698dcdb6 | 1133 | cat >> confdefs.h <<\EOF |
10f2d63a | 1134 | #define __BSD__ 1 |
95c8801c VS |
1135 | EOF |
1136 | ||
1137 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1138 | ;; | |
1139 | *-*-openbsd*) | |
1140 | USE_BSD=1 | |
1141 | USE_OPENBSD=1 | |
698dcdb6 | 1142 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1143 | #define __FREEBSD__ 1 |
1144 | EOF | |
1145 | ||
698dcdb6 | 1146 | cat >> confdefs.h <<\EOF |
95c8801c | 1147 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1148 | EOF |
1149 | ||
1150 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1151 | ;; | |
1152 | *-*-netbsd*) | |
1153 | USE_BSD=1 | |
1154 | USE_NETBSD=1 | |
698dcdb6 | 1155 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1156 | #define __FREEBSD__ 1 |
1157 | EOF | |
1158 | ||
698dcdb6 | 1159 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1160 | #define __NETBSD__ 1 |
10f2d63a VZ |
1161 | EOF |
1162 | ||
1163 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1164 | ;; | |
1165 | *-*-osf* ) | |
1166 | USE_ALPHA=1 | |
1167 | USE_OSF=1 | |
698dcdb6 | 1168 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1169 | #define __ALPHA__ 1 |
1170 | EOF | |
1171 | ||
698dcdb6 | 1172 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1173 | #define __OSF__ 1 |
1174 | EOF | |
1175 | ||
1176 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1177 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1178 | ;; |
1179 | *-*-dgux5* ) | |
1180 | USE_ALPHA=1 | |
1181 | USE_SVR4=1 | |
698dcdb6 | 1182 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1183 | #define __ALPHA__ 1 |
1184 | EOF | |
1185 | ||
698dcdb6 | 1186 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1187 | #define __SVR4__ 1 |
1188 | EOF | |
1189 | ||
1190 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1191 | ;; | |
1192 | *-*-sysv5* ) | |
1193 | USE_SYSV=1 | |
1194 | USE_SVR4=1 | |
698dcdb6 | 1195 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1196 | #define __SYSV__ 1 |
1197 | EOF | |
1198 | ||
698dcdb6 | 1199 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1200 | #define __SVR4__ 1 |
1201 | EOF | |
1202 | ||
1203 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1204 | ;; | |
1205 | *-*-aix* ) | |
1206 | USE_AIX=1 | |
1207 | USE_SYSV=1 | |
1208 | USE_SVR4=1 | |
698dcdb6 | 1209 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1210 | #define __AIX__ 1 |
1211 | EOF | |
1212 | ||
698dcdb6 | 1213 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1214 | #define __SYSV__ 1 |
1215 | EOF | |
1216 | ||
698dcdb6 | 1217 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1218 | #define __SVR4__ 1 |
1219 | EOF | |
1220 | ||
1221 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1222 | ;; | |
1223 | ||
1c8183e2 | 1224 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1225 | USE_UNIX=0 |
1226 | USE_WIN32=1 | |
698dcdb6 | 1227 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1228 | #define __WIN32__ 1 |
1229 | EOF | |
1230 | ||
698dcdb6 | 1231 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1232 | #define __WIN95__ 1 |
1233 | EOF | |
1234 | ||
698dcdb6 | 1235 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1236 | #define __WINDOWS__ 1 |
1237 | EOF | |
1238 | ||
698dcdb6 | 1239 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1240 | #define __GNUWIN32__ 1 |
1241 | EOF | |
1242 | ||
698dcdb6 | 1243 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1244 | #define STRICT 1 |
1245 | EOF | |
1246 | ||
698dcdb6 | 1247 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1248 | #define WINVER 0x0400 |
1249 | EOF | |
1250 | ||
cf27ef00 | 1251 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1252 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1253 | ;; | |
1254 | ||
1255 | *-pc-os2_emx ) | |
698dcdb6 | 1256 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1257 | #define __EMX__ 1 |
1258 | EOF | |
1259 | ||
cf27ef00 | 1260 | PROGRAM_EXT=".exe" |
e07802fc | 1261 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1262 | ;; |
1263 | ||
b4085ce6 GD |
1264 | *-*-darwin* ) |
1265 | USE_BSD=1 | |
1266 | USE_MAC=1 | |
698dcdb6 | 1267 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1268 | #define __MAC__ 1 |
1269 | EOF | |
1270 | ||
698dcdb6 | 1271 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1272 | #define __BSD__ 1 |
1273 | EOF | |
1274 | ||
698dcdb6 | 1275 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1276 | #define __UNIX__ 1 |
1277 | EOF | |
1278 | ||
1279 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1280 | ;; | |
1281 | ||
b12915c1 VZ |
1282 | *-*-beos* ) |
1283 | USE_BEOS=1 | |
698dcdb6 | 1284 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1285 | #define __BEOS__ 1 |
1286 | EOF | |
1287 | ||
1288 | ;; | |
1289 | ||
10f2d63a | 1290 | *) |
698dcdb6 | 1291 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1292 | esac |
1293 | ||
1294 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1295 | wxUSE_UNIX=yes |
698dcdb6 | 1296 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1297 | #define __UNIX__ 1 |
1298 | EOF | |
1299 | ||
698dcdb6 | 1300 | |
b12915c1 VZ |
1301 | SRC_SUBDIRS="$SRC_SUBDIRS unix" |
1302 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1303 | fi | |
1304 | ||
1305 | if test "$USE_BEOS" = 1; then | |
1306 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1307 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1308 | fi |
1309 | ||
1310 | if test "$USE_LINUX" = 1; then | |
698dcdb6 | 1311 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 |
9f41d601 | 1312 | echo "configure:1313: checking for gettext in -lc" >&5 |
698dcdb6 VZ |
1313 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1314 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1315 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 1316 | else |
698dcdb6 VZ |
1317 | ac_save_LIBS="$LIBS" |
1318 | LIBS="-lc $LIBS" | |
1319 | cat > conftest.$ac_ext <<EOF | |
9f41d601 | 1320 | #line 1321 "configure" |
698dcdb6 VZ |
1321 | #include "confdefs.h" |
1322 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1323 | /* We use char because int might match the return type of a gcc2 | |
1324 | builtin and then its argument prototype would still apply. */ | |
1325 | char gettext(); | |
10f2d63a | 1326 | |
698dcdb6 VZ |
1327 | int main() { |
1328 | gettext() | |
1329 | ; return 0; } | |
1330 | EOF | |
9f41d601 | 1331 | if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
1332 | rm -rf conftest* |
1333 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 1334 | else |
698dcdb6 VZ |
1335 | echo "configure: failed program was:" >&5 |
1336 | cat conftest.$ac_ext >&5 | |
1337 | rm -rf conftest* | |
1338 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 1339 | fi |
698dcdb6 VZ |
1340 | rm -f conftest* |
1341 | LIBS="$ac_save_LIBS" | |
10f2d63a VZ |
1342 | |
1343 | fi | |
698dcdb6 VZ |
1344 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1345 | echo "$ac_t""yes" 1>&6 | |
1346 | cat >> confdefs.h <<\EOF | |
1347 | #define wxHAVE_GLIBC2 1 | |
1348 | EOF | |
10f2d63a VZ |
1349 | |
1350 | else | |
698dcdb6 | 1351 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
1352 | fi |
1353 | ||
1354 | fi | |
1355 | ||
1e487827 | 1356 | |
1e487827 | 1357 | |
6232543b | 1358 | |
10f2d63a VZ |
1359 | wx_arg_cache_file="configarg.cache" |
1360 | echo "loading argument cache $wx_arg_cache_file" | |
1361 | rm -f ${wx_arg_cache_file}.tmp | |
1362 | touch ${wx_arg_cache_file}.tmp | |
1363 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1364 | |
10f2d63a VZ |
1365 | |
1366 | DEBUG_CONFIGURE=0 | |
1367 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1368 | DEFAULT_wxUSE_UNIVERSAL=no |
1369 | ||
10f2d63a VZ |
1370 | DEFAULT_wxUSE_THREADS=yes |
1371 | ||
1372 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1373 | DEFAULT_wxUSE_BURNT_NAME=no |
1e6feb95 | 1374 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1375 | DEFAULT_wxUSE_PROFILE=no |
1376 | DEFAULT_wxUSE_NO_DEPS=no | |
1377 | DEFAULT_wxUSE_NO_RTTI=no | |
1378 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1379 | DEFAULT_wxUSE_PERMISSIVE=no | |
1380 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1381 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1382 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1383 | DEFAULT_wxUSE_MEM_TRACING=no | |
1384 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1385 | DEFAULT_wxUSE_DMALLOC=no | |
1386 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1387 | ||
1388 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1389 | DEFAULT_wxUSE_LOGWINDOW=no |
1390 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1391 | |
1392 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1393 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a VZ |
1394 | |
1395 | DEFAULT_wxUSE_ZLIB=no | |
1396 | DEFAULT_wxUSE_LIBPNG=no | |
1397 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1398 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1399 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1400 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1401 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1402 | |
eb4efbdc | 1403 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1404 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1405 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1406 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1407 | DEFAULT_wxUSE_DATETIME=no | |
1408 | DEFAULT_wxUSE_TIMEDATE=no | |
1409 | DEFAULT_wxUSE_TIMER=no | |
1410 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1411 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1412 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1413 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1414 | DEFAULT_wxUSE_WAVE=no |
1415 | DEFAULT_wxUSE_INTL=no | |
1416 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1417 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1418 | DEFAULT_wxUSE_STREAMS=no |
1419 | DEFAULT_wxUSE_SOCKETS=no | |
1420 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1421 | DEFAULT_wxUSE_SERIAL=no | |
1422 | DEFAULT_wxUSE_JOYSTICK=no | |
1423 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1424 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1425 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1426 | |
1427 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1428 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1429 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1430 | ||
1431 | DEFAULT_wxUSE_X_RESOURCES=no | |
1432 | DEFAULT_wxUSE_CLIPBOARD=no | |
1433 | DEFAULT_wxUSE_TOOLTIPS=no | |
1434 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1435 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1436 | DEFAULT_wxUSE_SPLINES=no |
1437 | ||
1438 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1439 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1440 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1441 | ||
1442 | DEFAULT_wxUSE_PROLOGIO=no | |
1443 | DEFAULT_wxUSE_RESOURCES=no | |
1444 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1445 | DEFAULT_wxUSE_IPC=no | |
1446 | DEFAULT_wxUSE_HELP=no | |
3379ed37 | 1447 | DEFAULT_wxUSE_WXHTML_HELP=no |
10f2d63a VZ |
1448 | DEFAULT_wxUSE_WXTREE=no |
1449 | DEFAULT_wxUSE_METAFILE=no | |
1e6feb95 | 1450 | DEFAULT_wxUSE_MIMETYPE=no |
10f2d63a VZ |
1451 | |
1452 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1453 | DEFAULT_wxUSE_CHOICEDLG=no |
1454 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1455 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 VZ |
1456 | DEFAULT_wxUSE_FILEDLG=no |
1457 | DEFAULT_wxUSE_FONTDLG=no | |
1458 | DEFAULT_wxUSE_MSGDLG=no | |
1459 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a VZ |
1460 | DEFAULT_wxUSE_TEXTDLG=no |
1461 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1462 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1463 | DEFAULT_wxUSE_WIZARDDLG=no |
1464 | ||
1e6feb95 | 1465 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1466 | DEFAULT_wxUSE_MINIFRAME=no |
1467 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1468 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1469 | DEFAULT_wxUSE_FS_INET=no |
1470 | DEFAULT_wxUSE_FS_ZIP=no | |
1471 | DEFAULT_wxUSE_BUSYINFO=no | |
1472 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1473 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1474 | |
1475 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1476 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1477 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1478 | DEFAULT_wxUSE_CALCTRL=no |
1479 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1480 | DEFAULT_wxUSE_CHECKBOX=no |
1481 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1482 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1483 | DEFAULT_wxUSE_COMBOBOX=no |
1484 | DEFAULT_wxUSE_GAUGE=no | |
1485 | DEFAULT_wxUSE_GRID=no | |
1486 | DEFAULT_wxUSE_NEW_GRID=no | |
1487 | DEFAULT_wxUSE_IMAGLIST=no | |
1488 | DEFAULT_wxUSE_LISTBOX=no | |
1489 | DEFAULT_wxUSE_LISTCTRL=no | |
1490 | DEFAULT_wxUSE_NOTEBOOK=no | |
1491 | DEFAULT_wxUSE_RADIOBOX=no | |
1492 | DEFAULT_wxUSE_RADIOBTN=no | |
1493 | DEFAULT_wxUSE_SASH=no | |
1494 | DEFAULT_wxUSE_SCROLLBAR=no | |
1495 | DEFAULT_wxUSE_SLIDER=no | |
1496 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1497 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1498 | DEFAULT_wxUSE_SPLITTER=no |
1499 | DEFAULT_wxUSE_STATBMP=no | |
1500 | DEFAULT_wxUSE_STATBOX=no | |
1501 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1502 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1503 | DEFAULT_wxUSE_STATUSBAR=yes |
1504 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1505 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1506 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1507 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1508 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1509 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1510 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1511 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
1512 | |
1513 | DEFAULT_wxUSE_UNICODE=no | |
1514 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1515 | ||
0046ff7c | 1516 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1517 | DEFAULT_wxUSE_GIF=no |
1518 | DEFAULT_wxUSE_PCX=no | |
1519 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1520 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1521 | else |
1e6feb95 VZ |
1522 | DEFAULT_wxUSE_UNIVERSAL=no |
1523 | ||
10f2d63a VZ |
1524 | DEFAULT_wxUSE_THREADS=yes |
1525 | ||
1526 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1527 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1528 | DEFAULT_wxUSE_OPTIMISE=yes |
1529 | DEFAULT_wxUSE_PROFILE=no | |
1530 | DEFAULT_wxUSE_NO_DEPS=no | |
1531 | DEFAULT_wxUSE_NO_RTTI=no | |
1532 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1533 | DEFAULT_wxUSE_PERMISSIVE=no | |
1534 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1535 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1536 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1537 | DEFAULT_wxUSE_MEM_TRACING=no | |
1538 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1539 | DEFAULT_wxUSE_DMALLOC=no | |
1540 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1541 | ||
1542 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1543 | DEFAULT_wxUSE_LOGWINDOW=yes |
1544 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1545 | |
1546 | DEFAULT_wxUSE_GUI=yes | |
1547 | ||
1548 | DEFAULT_wxUSE_ZLIB=yes | |
1549 | DEFAULT_wxUSE_LIBPNG=yes | |
1550 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1551 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1552 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1553 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1554 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1555 | |
eb4efbdc | 1556 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1557 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1558 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1559 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1560 | DEFAULT_wxUSE_DATETIME=yes | |
1561 | DEFAULT_wxUSE_TIMEDATE=no | |
1562 | DEFAULT_wxUSE_TIMER=yes | |
1563 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1564 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1565 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1566 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1567 | DEFAULT_wxUSE_WAVE=no |
1568 | DEFAULT_wxUSE_INTL=yes | |
1569 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1570 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1571 | DEFAULT_wxUSE_STREAMS=yes |
1572 | DEFAULT_wxUSE_SOCKETS=yes | |
1573 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1574 | DEFAULT_wxUSE_SERIAL=yes | |
1575 | DEFAULT_wxUSE_JOYSTICK=yes | |
1576 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1577 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1578 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1579 | |
1580 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1581 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1582 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1583 | ||
1584 | DEFAULT_wxUSE_X_RESOURCES=no | |
1585 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1586 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1587 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1588 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1589 | DEFAULT_wxUSE_SPLINES=yes |
1590 | ||
1591 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1592 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1593 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1594 | ||
1595 | DEFAULT_wxUSE_PROLOGIO=yes | |
1596 | DEFAULT_wxUSE_RESOURCES=yes | |
1597 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1598 | DEFAULT_wxUSE_IPC=yes | |
1599 | DEFAULT_wxUSE_HELP=yes | |
3379ed37 | 1600 | DEFAULT_wxUSE_WXHTML_HELP=yes |
10f2d63a VZ |
1601 | DEFAULT_wxUSE_WXTREE=yes |
1602 | DEFAULT_wxUSE_METAFILE=yes | |
1e6feb95 | 1603 | DEFAULT_wxUSE_MIMETYPE=yes |
10f2d63a VZ |
1604 | |
1605 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1606 | DEFAULT_wxUSE_CHOICEDLG=yes |
1607 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1608 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 VZ |
1609 | DEFAULT_wxUSE_FILEDLG=yes |
1610 | DEFAULT_wxUSE_FONTDLG=yes | |
1611 | DEFAULT_wxUSE_MSGDLG=yes | |
1612 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a VZ |
1613 | DEFAULT_wxUSE_TEXTDLG=yes |
1614 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1615 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1616 | DEFAULT_wxUSE_WIZARDDLG=yes |
1617 | ||
1e6feb95 | 1618 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1619 | DEFAULT_wxUSE_MINIFRAME=yes |
1620 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1621 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1622 | DEFAULT_wxUSE_FS_INET=yes |
1623 | DEFAULT_wxUSE_FS_ZIP=yes | |
1624 | DEFAULT_wxUSE_BUSYINFO=yes | |
1625 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1626 | DEFAULT_wxUSE_VALIDATORS=yes | |
1627 | ||
1628 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1629 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1630 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1631 | DEFAULT_wxUSE_CALCTRL=yes |
1632 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1633 | DEFAULT_wxUSE_CHECKBOX=yes |
1634 | DEFAULT_wxUSE_CHECKLST=yes | |
1635 | DEFAULT_wxUSE_CHOICE=yes | |
1636 | DEFAULT_wxUSE_COMBOBOX=yes | |
1637 | DEFAULT_wxUSE_GAUGE=yes | |
1638 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1639 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1640 | DEFAULT_wxUSE_IMAGLIST=yes |
1641 | DEFAULT_wxUSE_LISTBOX=yes | |
1642 | DEFAULT_wxUSE_LISTCTRL=yes | |
1643 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1644 | DEFAULT_wxUSE_RADIOBOX=yes | |
1645 | DEFAULT_wxUSE_RADIOBTN=yes | |
1646 | DEFAULT_wxUSE_SASH=yes | |
1647 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1648 | DEFAULT_wxUSE_SLIDER=yes | |
1649 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1650 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1651 | DEFAULT_wxUSE_SPLITTER=yes |
1652 | DEFAULT_wxUSE_STATBMP=yes | |
1653 | DEFAULT_wxUSE_STATBOX=yes | |
1654 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1655 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1656 | DEFAULT_wxUSE_STATUSBAR=yes |
1657 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1658 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1659 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1660 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1661 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1662 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1663 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1664 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
1665 | |
1666 | DEFAULT_wxUSE_UNICODE=no | |
1667 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1668 | ||
0046ff7c | 1669 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1670 | DEFAULT_wxUSE_GIF=yes |
1671 | DEFAULT_wxUSE_PCX=yes | |
1672 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1673 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1674 | fi |
1675 | ||
698dcdb6 VZ |
1676 | |
1677 | ||
10f2d63a VZ |
1678 | for toolkit in `echo $ALL_TOOLKITS`; do |
1679 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1680 | if test "x$LINE" != x ; then | |
1681 | has_toolkit_in_cache=1 | |
1682 | eval "DEFAULT_$LINE" | |
1683 | eval "CACHE_$toolkit=1" | |
1684 | fi | |
1685 | done | |
1686 | ||
698dcdb6 VZ |
1687 | |
1688 | ||
1689 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
9f41d601 | 1690 | echo "configure:1691: checking for --enable-gui" >&5 |
10f2d63a VZ |
1691 | no_cache=0 |
1692 | # Check whether --enable-gui or --disable-gui was given. | |
1693 | if test "${enable_gui+set}" = set; then | |
1694 | enableval="$enable_gui" | |
698dcdb6 | 1695 | |
10f2d63a VZ |
1696 | if test "$enableval" = yes; then |
1697 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1698 | else | |
1699 | ac_cv_use_gui='wxUSE_GUI=no' | |
1700 | fi | |
698dcdb6 | 1701 | |
10f2d63a | 1702 | else |
698dcdb6 | 1703 | |
10f2d63a VZ |
1704 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1705 | if test "x$LINE" != x ; then | |
1706 | eval "DEFAULT_$LINE" | |
1707 | else | |
1708 | no_cache=1 | |
1709 | fi | |
1710 | ||
1711 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1712 | |
1713 | fi | |
10f2d63a VZ |
1714 | |
1715 | ||
1716 | eval "$ac_cv_use_gui" | |
1717 | if test "$no_cache" != 1; then | |
1718 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1719 | fi | |
1720 | ||
1721 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1722 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1723 | else |
698dcdb6 | 1724 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1725 | fi |
698dcdb6 | 1726 | |
10f2d63a | 1727 | |
b12915c1 | 1728 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1729 | |
1e6feb95 VZ |
1730 | |
1731 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
9f41d601 | 1732 | echo "configure:1733: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1733 | no_cache=0 |
1734 | # Check whether --enable-universal or --disable-universal was given. | |
1735 | if test "${enable_universal+set}" = set; then | |
1736 | enableval="$enable_universal" | |
1737 | ||
1738 | if test "$enableval" = yes; then | |
1739 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1740 | else | |
1741 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1742 | fi | |
1743 | ||
1744 | else | |
1745 | ||
1746 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1747 | if test "x$LINE" != x ; then | |
1748 | eval "DEFAULT_$LINE" | |
1749 | else | |
1750 | no_cache=1 | |
1751 | fi | |
1752 | ||
1753 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1754 | ||
1755 | fi | |
1756 | ||
1757 | ||
1758 | eval "$ac_cv_use_universal" | |
1759 | if test "$no_cache" != 1; then | |
1760 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1761 | fi | |
1762 | ||
1763 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1764 | echo "$ac_t""yes" 1>&6 | |
1765 | else | |
1766 | echo "$ac_t""no" 1>&6 | |
1767 | fi | |
1768 | ||
10f2d63a VZ |
1769 | # Check whether --with-gtk or --without-gtk was given. |
1770 | if test "${with_gtk+set}" = set; then | |
1771 | withval="$with_gtk" | |
1772 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1773 | fi |
10f2d63a VZ |
1774 | |
1775 | # Check whether --with-motif or --without-motif was given. | |
1776 | if test "${with_motif+set}" = set; then | |
1777 | withval="$with_motif" | |
1778 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1779 | fi |
10f2d63a | 1780 | |
b4085ce6 GD |
1781 | # Check whether --with-mac or --without-mac was given. |
1782 | if test "${with_mac+set}" = set; then | |
1783 | withval="$with_mac" | |
1784 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1785 | fi |
b4085ce6 | 1786 | |
10f2d63a VZ |
1787 | # Check whether --with-wine or --without-wine was given. |
1788 | if test "${with_wine+set}" = set; then | |
1789 | withval="$with_wine" | |
1790 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1791 | fi |
10f2d63a VZ |
1792 | |
1793 | # Check whether --with-cygwin or --without-cygwin was given. | |
1794 | if test "${with_cygwin+set}" = set; then | |
1795 | withval="$with_cygwin" | |
1796 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1797 | fi |
10f2d63a VZ |
1798 | |
1799 | # Check whether --with-mingw or --without-mingw was given. | |
1800 | if test "${with_mingw+set}" = set; then | |
1801 | withval="$with_mingw" | |
1802 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1803 | fi |
10f2d63a | 1804 | |
e07802fc VZ |
1805 | # Check whether --with-pm or --without-pm was given. |
1806 | if test "${with_pm+set}" = set; then | |
1807 | withval="$with_pm" | |
1808 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1809 | fi |
1810 | ||
1e6feb95 VZ |
1811 | # Check whether --with-mgl or --without-mgl was given. |
1812 | if test "${with_mgl+set}" = set; then | |
1813 | withval="$with_mgl" | |
1814 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1815 | fi | |
1816 | ||
10f2d63a | 1817 | |
8168de4c VZ |
1818 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1819 | if test "${enable_gtk2+set}" = set; then | |
1820 | enableval="$enable_gtk2" | |
1821 | wxUSE_GTK2=1 | |
10f2d63a | 1822 | else |
8168de4c | 1823 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1824 | fi |
1825 | ||
703e0a69 | 1826 | |
1e487827 | 1827 | |
698dcdb6 | 1828 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
9f41d601 | 1829 | echo "configure:1830: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1830 | no_cache=0 |
1831 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1832 | if test "${with_libpng+set}" = set; then |
1833 | withval="$with_libpng" | |
698dcdb6 | 1834 | |
10f2d63a | 1835 | if test "$withval" = yes; then |
b12915c1 | 1836 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1837 | elif test "$withval" = no; then |
b12915c1 | 1838 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1839 | elif test "$withval" = sys; then |
1840 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1841 | else | |
698dcdb6 | 1842 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1843 | fi |
698dcdb6 | 1844 | |
10f2d63a | 1845 | else |
698dcdb6 | 1846 | |
b12915c1 | 1847 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1848 | if test "x$LINE" != x ; then |
1849 | eval "DEFAULT_$LINE" | |
1850 | else | |
1851 | no_cache=1 | |
1852 | fi | |
1853 | ||
b12915c1 | 1854 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1855 | |
1856 | fi | |
10f2d63a VZ |
1857 | |
1858 | ||
b12915c1 | 1859 | eval "$ac_cv_use_libpng" |
10f2d63a | 1860 | if test "$no_cache" != 1; then |
b12915c1 | 1861 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1862 | fi |
1863 | ||
b12915c1 | 1864 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1865 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1866 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1867 | echo "$ac_t""no" 1>&6 |
422107f9 | 1868 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1869 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1870 | else |
698dcdb6 | 1871 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1872 | fi |
698dcdb6 | 1873 | |
10f2d63a | 1874 | |
698dcdb6 | 1875 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
9f41d601 | 1876 | echo "configure:1877: checking for --with-libjpeg" >&5 |
10f2d63a | 1877 | no_cache=0 |
698dcdb6 | 1878 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1879 | if test "${with_libjpeg+set}" = set; then |
1880 | withval="$with_libjpeg" | |
698dcdb6 | 1881 | |
10f2d63a | 1882 | if test "$withval" = yes; then |
b12915c1 | 1883 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1884 | elif test "$withval" = no; then |
b12915c1 | 1885 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1886 | elif test "$withval" = sys; then |
1887 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1888 | else | |
698dcdb6 | 1889 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1890 | fi |
698dcdb6 | 1891 | |
10f2d63a | 1892 | else |
698dcdb6 | 1893 | |
b12915c1 | 1894 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1895 | if test "x$LINE" != x ; then |
1896 | eval "DEFAULT_$LINE" | |
1897 | else | |
1898 | no_cache=1 | |
1899 | fi | |
1900 | ||
b12915c1 | 1901 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1902 | |
1903 | fi | |
10f2d63a VZ |
1904 | |
1905 | ||
b12915c1 | 1906 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1907 | if test "$no_cache" != 1; then |
b12915c1 | 1908 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1909 | fi |
1910 | ||
b12915c1 | 1911 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1912 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1913 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1914 | echo "$ac_t""no" 1>&6 |
422107f9 | 1915 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1916 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1917 | else |
698dcdb6 | 1918 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1919 | fi |
698dcdb6 | 1920 | |
10f2d63a | 1921 | |
698dcdb6 | 1922 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
9f41d601 | 1923 | echo "configure:1924: checking for --with-libtiff" >&5 |
10f2d63a | 1924 | no_cache=0 |
698dcdb6 | 1925 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1926 | if test "${with_libtiff+set}" = set; then |
1927 | withval="$with_libtiff" | |
698dcdb6 | 1928 | |
10f2d63a | 1929 | if test "$withval" = yes; then |
b12915c1 | 1930 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1931 | elif test "$withval" = no; then |
b12915c1 | 1932 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1933 | elif test "$withval" = sys; then |
1934 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1935 | else | |
698dcdb6 | 1936 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1937 | fi |
698dcdb6 | 1938 | |
10f2d63a | 1939 | else |
698dcdb6 | 1940 | |
b12915c1 | 1941 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1942 | if test "x$LINE" != x ; then |
1943 | eval "DEFAULT_$LINE" | |
1944 | else | |
1945 | no_cache=1 | |
1946 | fi | |
1947 | ||
b12915c1 | 1948 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1949 | |
1950 | fi | |
10f2d63a VZ |
1951 | |
1952 | ||
b12915c1 | 1953 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1954 | if test "$no_cache" != 1; then |
b12915c1 | 1955 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1956 | fi |
1957 | ||
b12915c1 | 1958 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1959 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1960 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1961 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1962 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1963 | echo "$ac_t""system version" 1>&6 |
0dcf9893 | 1964 | else |
698dcdb6 | 1965 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1966 | fi |
698dcdb6 | 1967 | |
10f2d63a | 1968 | |
698dcdb6 | 1969 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
9f41d601 | 1970 | echo "configure:1971: checking for --with-freetype" >&5 |
3fed1840 | 1971 | no_cache=0 |
698dcdb6 | 1972 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
1973 | if test "${with_freetype+set}" = set; then |
1974 | withval="$with_freetype" | |
698dcdb6 | 1975 | |
3fed1840 RR |
1976 | if test "$withval" = yes; then |
1977 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1978 | elif test "$withval" = no; then | |
1979 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1980 | elif test "$withval" = sys; then | |
1981 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1982 | else | |
698dcdb6 | 1983 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1984 | fi |
698dcdb6 | 1985 | |
3fed1840 | 1986 | else |
698dcdb6 | 1987 | |
3fed1840 RR |
1988 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
1989 | if test "x$LINE" != x ; then | |
1990 | eval "DEFAULT_$LINE" | |
1991 | else | |
1992 | no_cache=1 | |
1993 | fi | |
1994 | ||
1995 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
1996 | |
1997 | fi | |
3fed1840 RR |
1998 | |
1999 | ||
2000 | eval "$ac_cv_use_freetype" | |
2001 | if test "$no_cache" != 1; then | |
2002 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2003 | fi | |
2004 | ||
2005 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 2006 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 2007 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2008 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2009 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2010 | echo "$ac_t""system version" 1>&6 |
3fed1840 | 2011 | else |
698dcdb6 | 2012 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 2013 | fi |
698dcdb6 | 2014 | |
3fed1840 | 2015 | |
698dcdb6 | 2016 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
9f41d601 | 2017 | echo "configure:2018: checking for --with-opengl" >&5 |
10f2d63a | 2018 | no_cache=0 |
698dcdb6 | 2019 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2020 | if test "${with_opengl+set}" = set; then |
2021 | withval="$with_opengl" | |
698dcdb6 | 2022 | |
10f2d63a | 2023 | if test "$withval" = yes; then |
b12915c1 | 2024 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2025 | else |
b12915c1 | 2026 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2027 | fi |
698dcdb6 | 2028 | |
10f2d63a | 2029 | else |
698dcdb6 | 2030 | |
b12915c1 | 2031 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2032 | if test "x$LINE" != x ; then |
2033 | eval "DEFAULT_$LINE" | |
2034 | else | |
2035 | no_cache=1 | |
2036 | fi | |
2037 | ||
b12915c1 | 2038 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2039 | |
2040 | fi | |
10f2d63a VZ |
2041 | |
2042 | ||
b12915c1 | 2043 | eval "$ac_cv_use_opengl" |
10f2d63a | 2044 | if test "$no_cache" != 1; then |
b12915c1 | 2045 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2046 | fi |
2047 | ||
b12915c1 | 2048 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2049 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2050 | else |
698dcdb6 | 2051 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2052 | fi |
698dcdb6 | 2053 | |
10f2d63a | 2054 | |
b12915c1 VZ |
2055 | fi |
2056 | ||
1e487827 | 2057 | |
698dcdb6 | 2058 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
9f41d601 | 2059 | echo "configure:2060: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2060 | no_cache=0 |
2061 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2062 | if test "${with_dmalloc+set}" = set; then |
2063 | withval="$with_dmalloc" | |
698dcdb6 | 2064 | |
c7a2bf27 | 2065 | if test "$withval" = yes; then |
b12915c1 | 2066 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2067 | else |
b12915c1 | 2068 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2069 | fi |
698dcdb6 | 2070 | |
c7a2bf27 | 2071 | else |
698dcdb6 | 2072 | |
b12915c1 | 2073 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2074 | if test "x$LINE" != x ; then |
2075 | eval "DEFAULT_$LINE" | |
2076 | else | |
2077 | no_cache=1 | |
2078 | fi | |
2079 | ||
b12915c1 | 2080 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2081 | |
2082 | fi | |
c7a2bf27 RR |
2083 | |
2084 | ||
b12915c1 | 2085 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2086 | if test "$no_cache" != 1; then |
b12915c1 | 2087 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2088 | fi |
2089 | ||
b12915c1 | 2090 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2091 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2092 | else |
698dcdb6 | 2093 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2094 | fi |
698dcdb6 | 2095 | |
c7a2bf27 | 2096 | |
698dcdb6 | 2097 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
9f41d601 | 2098 | echo "configure:2099: checking for --with-zlib" >&5 |
10f2d63a | 2099 | no_cache=0 |
698dcdb6 | 2100 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2101 | if test "${with_zlib+set}" = set; then |
2102 | withval="$with_zlib" | |
698dcdb6 | 2103 | |
10f2d63a | 2104 | if test "$withval" = yes; then |
b12915c1 | 2105 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2106 | elif test "$withval" = no; then |
b12915c1 | 2107 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2108 | elif test "$withval" = sys; then |
2109 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2110 | else | |
698dcdb6 | 2111 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2112 | fi |
698dcdb6 | 2113 | |
10f2d63a | 2114 | else |
698dcdb6 | 2115 | |
b12915c1 | 2116 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2117 | if test "x$LINE" != x ; then |
2118 | eval "DEFAULT_$LINE" | |
2119 | else | |
2120 | no_cache=1 | |
2121 | fi | |
2122 | ||
b12915c1 | 2123 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2124 | |
2125 | fi | |
10f2d63a VZ |
2126 | |
2127 | ||
b12915c1 | 2128 | eval "$ac_cv_use_zlib" |
10f2d63a | 2129 | if test "$no_cache" != 1; then |
b12915c1 | 2130 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2131 | fi |
2132 | ||
b12915c1 | 2133 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2134 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2135 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2136 | echo "$ac_t""no" 1>&6 |
422107f9 | 2137 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2138 | echo "$ac_t""system version" 1>&6 |
422107f9 | 2139 | else |
698dcdb6 | 2140 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2141 | fi |
698dcdb6 | 2142 | |
10f2d63a | 2143 | |
698dcdb6 | 2144 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
9f41d601 | 2145 | echo "configure:2146: checking for --with-odbc" >&5 |
10f2d63a | 2146 | no_cache=0 |
698dcdb6 | 2147 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2148 | if test "${with_odbc+set}" = set; then |
2149 | withval="$with_odbc" | |
698dcdb6 | 2150 | |
10f2d63a VZ |
2151 | if test "$withval" = yes; then |
2152 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2153 | else | |
2154 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2155 | fi | |
698dcdb6 | 2156 | |
10f2d63a | 2157 | else |
698dcdb6 | 2158 | |
10f2d63a VZ |
2159 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2160 | if test "x$LINE" != x ; then | |
2161 | eval "DEFAULT_$LINE" | |
2162 | else | |
2163 | no_cache=1 | |
2164 | fi | |
2165 | ||
2166 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2167 | |
2168 | fi | |
10f2d63a VZ |
2169 | |
2170 | ||
2171 | eval "$ac_cv_use_odbc" | |
2172 | if test "$no_cache" != 1; then | |
2173 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2174 | fi | |
2175 | ||
2176 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2177 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2178 | else |
698dcdb6 | 2179 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2180 | fi |
698dcdb6 VZ |
2181 | |
2182 | ||
10f2d63a | 2183 | |
698dcdb6 VZ |
2184 | |
2185 | ||
2186 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
9f41d601 | 2187 | echo "configure:2188: checking for --enable-shared" >&5 |
10f2d63a VZ |
2188 | no_cache=0 |
2189 | # Check whether --enable-shared or --disable-shared was given. | |
2190 | if test "${enable_shared+set}" = set; then | |
2191 | enableval="$enable_shared" | |
698dcdb6 | 2192 | |
10f2d63a VZ |
2193 | if test "$enableval" = yes; then |
2194 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2195 | else | |
2196 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2197 | fi | |
698dcdb6 | 2198 | |
10f2d63a | 2199 | else |
698dcdb6 | 2200 | |
10f2d63a VZ |
2201 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2202 | if test "x$LINE" != x ; then | |
2203 | eval "DEFAULT_$LINE" | |
2204 | else | |
2205 | no_cache=1 | |
2206 | fi | |
2207 | ||
2208 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2209 | |
2210 | fi | |
10f2d63a VZ |
2211 | |
2212 | ||
2213 | eval "$ac_cv_use_shared" | |
2214 | if test "$no_cache" != 1; then | |
2215 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2216 | fi | |
2217 | ||
2218 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2219 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2220 | else |
698dcdb6 | 2221 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2222 | fi |
698dcdb6 | 2223 | |
10f2d63a | 2224 | |
698dcdb6 | 2225 | echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6 |
9f41d601 | 2226 | echo "configure:2227: checking for --enable-burnt_name" >&5 |
00cf1208 RR |
2227 | no_cache=0 |
2228 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2229 | if test "${enable_burnt_name+set}" = set; then | |
2230 | enableval="$enable_burnt_name" | |
698dcdb6 | 2231 | |
00cf1208 RR |
2232 | if test "$enableval" = yes; then |
2233 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2234 | else | |
2235 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2236 | fi | |
698dcdb6 | 2237 | |
00cf1208 | 2238 | else |
698dcdb6 | 2239 | |
00cf1208 RR |
2240 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` |
2241 | if test "x$LINE" != x ; then | |
2242 | eval "DEFAULT_$LINE" | |
2243 | else | |
2244 | no_cache=1 | |
2245 | fi | |
2246 | ||
2247 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
698dcdb6 VZ |
2248 | |
2249 | fi | |
00cf1208 RR |
2250 | |
2251 | ||
2252 | eval "$ac_cv_use_burnt_name" | |
2253 | if test "$no_cache" != 1; then | |
2254 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2255 | fi | |
2256 | ||
2257 | if test "$wxUSE_BURNT_NAME" = yes; then | |
698dcdb6 | 2258 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2259 | else |
698dcdb6 | 2260 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2261 | fi |
698dcdb6 | 2262 | |
00cf1208 | 2263 | |
698dcdb6 | 2264 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
9f41d601 | 2265 | echo "configure:2266: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2266 | no_cache=0 |
2267 | # Check whether --enable-optimise or --disable-optimise was given. | |
2268 | if test "${enable_optimise+set}" = set; then | |
2269 | enableval="$enable_optimise" | |
698dcdb6 | 2270 | |
10f2d63a VZ |
2271 | if test "$enableval" = yes; then |
2272 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2273 | else | |
2274 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2275 | fi | |
698dcdb6 | 2276 | |
10f2d63a | 2277 | else |
698dcdb6 | 2278 | |
10f2d63a VZ |
2279 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2280 | if test "x$LINE" != x ; then | |
2281 | eval "DEFAULT_$LINE" | |
2282 | else | |
2283 | no_cache=1 | |
2284 | fi | |
2285 | ||
2286 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2287 | |
2288 | fi | |
10f2d63a VZ |
2289 | |
2290 | ||
2291 | eval "$ac_cv_use_optimise" | |
2292 | if test "$no_cache" != 1; then | |
2293 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2294 | fi | |
2295 | ||
2296 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2297 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2298 | else |
698dcdb6 | 2299 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2300 | fi |
698dcdb6 | 2301 | |
10f2d63a | 2302 | |
698dcdb6 | 2303 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
9f41d601 | 2304 | echo "configure:2305: checking for --enable-debug" >&5 |
10f2d63a VZ |
2305 | no_cache=0 |
2306 | # Check whether --enable-debug or --disable-debug was given. | |
2307 | if test "${enable_debug+set}" = set; then | |
2308 | enableval="$enable_debug" | |
698dcdb6 | 2309 | |
10f2d63a VZ |
2310 | if test "$enableval" = yes; then |
2311 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2312 | else | |
2313 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2314 | fi | |
698dcdb6 | 2315 | |
10f2d63a | 2316 | else |
698dcdb6 | 2317 | |
10f2d63a VZ |
2318 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2319 | if test "x$LINE" != x ; then | |
2320 | eval "DEFAULT_$LINE" | |
2321 | else | |
2322 | no_cache=1 | |
2323 | fi | |
2324 | ||
2325 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2326 | |
2327 | fi | |
10f2d63a VZ |
2328 | |
2329 | ||
2330 | eval "$ac_cv_use_debug" | |
2331 | if test "$no_cache" != 1; then | |
2332 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2333 | fi | |
2334 | ||
2335 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2336 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2337 | else |
698dcdb6 | 2338 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2339 | fi |
698dcdb6 | 2340 | |
10f2d63a VZ |
2341 | |
2342 | if test "$wxUSE_DEBUG" = "yes"; then | |
2343 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2344 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2345 | elif test "$wxUSE_DEBUG" = "no"; then | |
2346 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2347 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2348 | fi | |
2349 | ||
698dcdb6 VZ |
2350 | |
2351 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
9f41d601 | 2352 | echo "configure:2353: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2353 | no_cache=0 |
2354 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2355 | if test "${enable_debug_flag+set}" = set; then | |
2356 | enableval="$enable_debug_flag" | |
698dcdb6 | 2357 | |
10f2d63a VZ |
2358 | if test "$enableval" = yes; then |
2359 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2360 | else | |
2361 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2362 | fi | |
698dcdb6 | 2363 | |
10f2d63a | 2364 | else |
698dcdb6 | 2365 | |
10f2d63a VZ |
2366 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2367 | if test "x$LINE" != x ; then | |
2368 | eval "DEFAULT_$LINE" | |
2369 | else | |
2370 | no_cache=1 | |
2371 | fi | |
2372 | ||
2373 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2374 | |
2375 | fi | |
10f2d63a VZ |
2376 | |
2377 | ||
2378 | eval "$ac_cv_use_debug_flag" | |
2379 | if test "$no_cache" != 1; then | |
2380 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2381 | fi | |
2382 | ||
2383 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2384 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2385 | else |
698dcdb6 | 2386 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2387 | fi |
698dcdb6 | 2388 | |
10f2d63a | 2389 | |
698dcdb6 | 2390 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
9f41d601 | 2391 | echo "configure:2392: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2392 | no_cache=0 |
2393 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2394 | if test "${enable_debug_info+set}" = set; then | |
2395 | enableval="$enable_debug_info" | |
698dcdb6 | 2396 | |
10f2d63a VZ |
2397 | if test "$enableval" = yes; then |
2398 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2399 | else | |
2400 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2401 | fi | |
698dcdb6 | 2402 | |
10f2d63a | 2403 | else |
698dcdb6 | 2404 | |
10f2d63a VZ |
2405 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2406 | if test "x$LINE" != x ; then | |
2407 | eval "DEFAULT_$LINE" | |
2408 | else | |
2409 | no_cache=1 | |
2410 | fi | |
2411 | ||
2412 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2413 | |
2414 | fi | |
10f2d63a VZ |
2415 | |
2416 | ||
2417 | eval "$ac_cv_use_debug_info" | |
2418 | if test "$no_cache" != 1; then | |
2419 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2420 | fi | |
2421 | ||
2422 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2423 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2424 | else |
698dcdb6 | 2425 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2426 | fi |
698dcdb6 | 2427 | |
10f2d63a | 2428 | |
698dcdb6 | 2429 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
9f41d601 | 2430 | echo "configure:2431: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2431 | no_cache=0 |
2432 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2433 | if test "${enable_debug_gdb+set}" = set; then | |
2434 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2435 | |
10f2d63a VZ |
2436 | if test "$enableval" = yes; then |
2437 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2438 | else | |
2439 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2440 | fi | |
698dcdb6 | 2441 | |
10f2d63a | 2442 | else |
698dcdb6 | 2443 | |
10f2d63a VZ |
2444 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2445 | if test "x$LINE" != x ; then | |
2446 | eval "DEFAULT_$LINE" | |
2447 | else | |
2448 | no_cache=1 | |
2449 | fi | |
2450 | ||
2451 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2452 | |
2453 | fi | |
10f2d63a VZ |
2454 | |
2455 | ||
2456 | eval "$ac_cv_use_debug_gdb" | |
2457 | if test "$no_cache" != 1; then | |
2458 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2459 | fi | |
2460 | ||
2461 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2462 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2463 | else |
698dcdb6 | 2464 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2465 | fi |
698dcdb6 | 2466 | |
10f2d63a | 2467 | |
698dcdb6 | 2468 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
9f41d601 | 2469 | echo "configure:2470: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2470 | no_cache=0 |
2471 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2472 | if test "${enable_debug_cntxt+set}" = set; then | |
2473 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2474 | |
10f2d63a VZ |
2475 | if test "$enableval" = yes; then |
2476 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2477 | else | |
2478 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2479 | fi | |
698dcdb6 | 2480 | |
10f2d63a | 2481 | else |
698dcdb6 | 2482 | |
10f2d63a VZ |
2483 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2484 | if test "x$LINE" != x ; then | |
2485 | eval "DEFAULT_$LINE" | |
2486 | else | |
2487 | no_cache=1 | |
2488 | fi | |
2489 | ||
2490 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2491 | |
2492 | fi | |
10f2d63a VZ |
2493 | |
2494 | ||
2495 | eval "$ac_cv_use_debug_cntxt" | |
2496 | if test "$no_cache" != 1; then | |
2497 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2498 | fi | |
2499 | ||
2500 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2501 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2502 | else |
698dcdb6 | 2503 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2504 | fi |
698dcdb6 | 2505 | |
10f2d63a | 2506 | |
698dcdb6 | 2507 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
9f41d601 | 2508 | echo "configure:2509: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2509 | no_cache=0 |
2510 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2511 | if test "${enable_mem_tracing+set}" = set; then | |
2512 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2513 | |
10f2d63a VZ |
2514 | if test "$enableval" = yes; then |
2515 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2516 | else | |
2517 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2518 | fi | |
698dcdb6 | 2519 | |
10f2d63a | 2520 | else |
698dcdb6 | 2521 | |
10f2d63a VZ |
2522 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2523 | if test "x$LINE" != x ; then | |
2524 | eval "DEFAULT_$LINE" | |
2525 | else | |
2526 | no_cache=1 | |
2527 | fi | |
2528 | ||
2529 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2530 | |
2531 | fi | |
10f2d63a VZ |
2532 | |
2533 | ||
2534 | eval "$ac_cv_use_mem_tracing" | |
2535 | if test "$no_cache" != 1; then | |
2536 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2537 | fi | |
2538 | ||
2539 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2540 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2541 | else |
698dcdb6 | 2542 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2543 | fi |
698dcdb6 | 2544 | |
10f2d63a | 2545 | |
698dcdb6 | 2546 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
9f41d601 | 2547 | echo "configure:2548: checking for --enable-profile" >&5 |
10f2d63a VZ |
2548 | no_cache=0 |
2549 | # Check whether --enable-profile or --disable-profile was given. | |
2550 | if test "${enable_profile+set}" = set; then | |
2551 | enableval="$enable_profile" | |
698dcdb6 | 2552 | |
10f2d63a VZ |
2553 | if test "$enableval" = yes; then |
2554 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2555 | else | |
2556 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2557 | fi | |
698dcdb6 | 2558 | |
10f2d63a | 2559 | else |
698dcdb6 | 2560 | |
10f2d63a VZ |
2561 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2562 | if test "x$LINE" != x ; then | |
2563 | eval "DEFAULT_$LINE" | |
2564 | else | |
2565 | no_cache=1 | |
2566 | fi | |
2567 | ||
2568 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2569 | |
2570 | fi | |
10f2d63a VZ |
2571 | |
2572 | ||
2573 | eval "$ac_cv_use_profile" | |
2574 | if test "$no_cache" != 1; then | |
2575 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2576 | fi | |
2577 | ||
2578 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2579 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2580 | else |
698dcdb6 | 2581 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2582 | fi |
698dcdb6 | 2583 | |
10f2d63a | 2584 | |
698dcdb6 | 2585 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
9f41d601 | 2586 | echo "configure:2587: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2587 | no_cache=0 |
2588 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2589 | if test "${enable_no_rtti+set}" = set; then | |
2590 | enableval="$enable_no_rtti" | |
698dcdb6 | 2591 | |
10f2d63a VZ |
2592 | if test "$enableval" = yes; then |
2593 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2594 | else | |
2595 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2596 | fi | |
698dcdb6 | 2597 | |
10f2d63a | 2598 | else |
698dcdb6 | 2599 | |
10f2d63a VZ |
2600 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2601 | if test "x$LINE" != x ; then | |
2602 | eval "DEFAULT_$LINE" | |
2603 | else | |
2604 | no_cache=1 | |
2605 | fi | |
2606 | ||
2607 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2608 | |
2609 | fi | |
10f2d63a VZ |
2610 | |
2611 | ||
2612 | eval "$ac_cv_use_no_rtti" | |
2613 | if test "$no_cache" != 1; then | |
2614 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2615 | fi | |
2616 | ||
2617 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2618 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2619 | else |
698dcdb6 | 2620 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2621 | fi |
698dcdb6 | 2622 | |
10f2d63a | 2623 | |
698dcdb6 | 2624 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
9f41d601 | 2625 | echo "configure:2626: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2626 | no_cache=0 |
2627 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2628 | if test "${enable_no_exceptions+set}" = set; then | |
2629 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2630 | |
10f2d63a VZ |
2631 | if test "$enableval" = yes; then |
2632 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2633 | else | |
2634 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2635 | fi | |
698dcdb6 | 2636 | |
10f2d63a | 2637 | else |
698dcdb6 | 2638 | |
10f2d63a VZ |
2639 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2640 | if test "x$LINE" != x ; then | |
2641 | eval "DEFAULT_$LINE" | |
2642 | else | |
2643 | no_cache=1 | |
2644 | fi | |
2645 | ||
2646 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2647 | |
2648 | fi | |
10f2d63a VZ |
2649 | |
2650 | ||
2651 | eval "$ac_cv_use_no_exceptions" | |
2652 | if test "$no_cache" != 1; then | |
2653 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2654 | fi | |
2655 | ||
2656 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2657 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2658 | else |
698dcdb6 | 2659 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2660 | fi |
698dcdb6 | 2661 | |
10f2d63a | 2662 | |
698dcdb6 | 2663 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
9f41d601 | 2664 | echo "configure:2665: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2665 | no_cache=0 |
2666 | # Check whether --enable-permissive or --disable-permissive was given. | |
2667 | if test "${enable_permissive+set}" = set; then | |
2668 | enableval="$enable_permissive" | |
698dcdb6 | 2669 | |
10f2d63a VZ |
2670 | if test "$enableval" = yes; then |
2671 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2672 | else | |
2673 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2674 | fi | |
698dcdb6 | 2675 | |
10f2d63a | 2676 | else |
698dcdb6 | 2677 | |
10f2d63a VZ |
2678 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2679 | if test "x$LINE" != x ; then | |
2680 | eval "DEFAULT_$LINE" | |
2681 | else | |
2682 | no_cache=1 | |
2683 | fi | |
2684 | ||
2685 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2686 | |
2687 | fi | |
10f2d63a VZ |
2688 | |
2689 | ||
2690 | eval "$ac_cv_use_permissive" | |
2691 | if test "$no_cache" != 1; then | |
2692 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2693 | fi | |
2694 | ||
2695 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2696 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2697 | else |
698dcdb6 | 2698 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2699 | fi |
698dcdb6 | 2700 | |
10f2d63a | 2701 | |
698dcdb6 | 2702 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
9f41d601 | 2703 | echo "configure:2704: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2704 | no_cache=0 |
2705 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2706 | if test "${enable_no_deps+set}" = set; then | |
2707 | enableval="$enable_no_deps" | |
698dcdb6 | 2708 | |
10f2d63a VZ |
2709 | if test "$enableval" = yes; then |
2710 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2711 | else | |
2712 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2713 | fi | |
698dcdb6 | 2714 | |
10f2d63a | 2715 | else |
698dcdb6 | 2716 | |
10f2d63a VZ |
2717 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2718 | if test "x$LINE" != x ; then | |
2719 | eval "DEFAULT_$LINE" | |
2720 | else | |
2721 | no_cache=1 | |
2722 | fi | |
2723 | ||
2724 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2725 | |
2726 | fi | |
10f2d63a VZ |
2727 | |
2728 | ||
2729 | eval "$ac_cv_use_no_deps" | |
2730 | if test "$no_cache" != 1; then | |
2731 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2732 | fi | |
2733 | ||
2734 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2735 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2736 | else |
698dcdb6 | 2737 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2738 | fi |
698dcdb6 VZ |
2739 | |
2740 | ||
10f2d63a | 2741 | |
54276ccf | 2742 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
9f41d601 | 2743 | echo "configure:2744: checking for --enable-compat20" >&5 |
54276ccf VZ |
2744 | no_cache=0 |
2745 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2746 | if test "${enable_compat20+set}" = set; then | |
2747 | enableval="$enable_compat20" | |
2748 | ||
2749 | if test "$enableval" = yes; then | |
2750 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2751 | else | |
2752 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2753 | fi | |
2754 | ||
2755 | else | |
2756 | ||
2757 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2758 | if test "x$LINE" != x ; then | |
2759 | eval "DEFAULT_$LINE" | |
2760 | else | |
2761 | no_cache=1 | |
2762 | fi | |
2763 | ||
2764 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2765 | ||
2766 | fi | |
2767 | ||
2768 | ||
2769 | eval "$ac_cv_use_compat20" | |
2770 | if test "$no_cache" != 1; then | |
2771 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2772 | fi | |
2773 | ||
2774 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2775 | echo "$ac_t""yes" 1>&6 | |
2776 | else | |
2777 | echo "$ac_t""no" 1>&6 | |
2778 | fi | |
2779 | ||
2780 | ||
2781 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
9f41d601 | 2782 | echo "configure:2783: checking for --enable-compat22" >&5 |
54276ccf VZ |
2783 | no_cache=0 |
2784 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2785 | if test "${enable_compat22+set}" = set; then | |
2786 | enableval="$enable_compat22" | |
2787 | ||
2788 | if test "$enableval" = yes; then | |
2789 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2790 | else | |
2791 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2792 | fi | |
2793 | ||
2794 | else | |
2795 | ||
2796 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2797 | if test "x$LINE" != x ; then | |
2798 | eval "DEFAULT_$LINE" | |
2799 | else | |
2800 | no_cache=1 | |
2801 | fi | |
2802 | ||
2803 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2804 | ||
2805 | fi | |
2806 | ||
2807 | ||
2808 | eval "$ac_cv_use_compat22" | |
2809 | if test "$no_cache" != 1; then | |
2810 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2811 | fi | |
2812 | ||
2813 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2814 | echo "$ac_t""yes" 1>&6 | |
2815 | else | |
2816 | echo "$ac_t""no" 1>&6 | |
2817 | fi | |
2818 | ||
2819 | ||
2820 | ||
698dcdb6 VZ |
2821 | |
2822 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
9f41d601 | 2823 | echo "configure:2824: checking for --enable-intl" >&5 |
10f2d63a VZ |
2824 | no_cache=0 |
2825 | # Check whether --enable-intl or --disable-intl was given. | |
2826 | if test "${enable_intl+set}" = set; then | |
2827 | enableval="$enable_intl" | |
698dcdb6 | 2828 | |
10f2d63a VZ |
2829 | if test "$enableval" = yes; then |
2830 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2831 | else | |
2832 | ac_cv_use_intl='wxUSE_INTL=no' | |
2833 | fi | |
698dcdb6 | 2834 | |
10f2d63a | 2835 | else |
698dcdb6 | 2836 | |
10f2d63a VZ |
2837 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2838 | if test "x$LINE" != x ; then | |
2839 | eval "DEFAULT_$LINE" | |
2840 | else | |
2841 | no_cache=1 | |
2842 | fi | |
2843 | ||
2844 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2845 | |
2846 | fi | |
10f2d63a VZ |
2847 | |
2848 | ||
2849 | eval "$ac_cv_use_intl" | |
2850 | if test "$no_cache" != 1; then | |
2851 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2852 | fi | |
2853 | ||
2854 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2855 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2856 | else |
698dcdb6 | 2857 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2858 | fi |
698dcdb6 | 2859 | |
10f2d63a | 2860 | |
698dcdb6 | 2861 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
9f41d601 | 2862 | echo "configure:2863: checking for --enable-config" >&5 |
10f2d63a VZ |
2863 | no_cache=0 |
2864 | # Check whether --enable-config or --disable-config was given. | |
2865 | if test "${enable_config+set}" = set; then | |
2866 | enableval="$enable_config" | |
698dcdb6 | 2867 | |
10f2d63a VZ |
2868 | if test "$enableval" = yes; then |
2869 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2870 | else | |
2871 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2872 | fi | |
698dcdb6 | 2873 | |
10f2d63a | 2874 | else |
698dcdb6 | 2875 | |
10f2d63a VZ |
2876 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
2877 | if test "x$LINE" != x ; then | |
2878 | eval "DEFAULT_$LINE" | |
2879 | else | |
2880 | no_cache=1 | |
2881 | fi | |
2882 | ||
2883 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
2884 | |
2885 | fi | |
10f2d63a VZ |
2886 | |
2887 | ||
2888 | eval "$ac_cv_use_config" | |
2889 | if test "$no_cache" != 1; then | |
2890 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2891 | fi | |
2892 | ||
2893 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 2894 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2895 | else |
698dcdb6 | 2896 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2897 | fi |
698dcdb6 VZ |
2898 | |
2899 | ||
b12915c1 | 2900 | |
698dcdb6 | 2901 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
9f41d601 | 2902 | echo "configure:2903: checking for --enable-sockets" >&5 |
10f2d63a VZ |
2903 | no_cache=0 |
2904 | # Check whether --enable-sockets or --disable-sockets was given. | |
2905 | if test "${enable_sockets+set}" = set; then | |
2906 | enableval="$enable_sockets" | |
698dcdb6 | 2907 | |
10f2d63a VZ |
2908 | if test "$enableval" = yes; then |
2909 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2910 | else | |
2911 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2912 | fi | |
698dcdb6 | 2913 | |
10f2d63a | 2914 | else |
698dcdb6 | 2915 | |
10f2d63a VZ |
2916 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
2917 | if test "x$LINE" != x ; then | |
2918 | eval "DEFAULT_$LINE" | |
2919 | else | |
2920 | no_cache=1 | |
2921 | fi | |
2922 | ||
2923 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
2924 | |
2925 | fi | |
10f2d63a VZ |
2926 | |
2927 | ||
2928 | eval "$ac_cv_use_sockets" | |
2929 | if test "$no_cache" != 1; then | |
2930 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2931 | fi | |
2932 | ||
2933 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 2934 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2935 | else |
698dcdb6 | 2936 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2937 | fi |
698dcdb6 | 2938 | |
b12915c1 | 2939 | |
698dcdb6 VZ |
2940 | |
2941 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
9f41d601 | 2942 | echo "configure:2943: checking for --enable-ipc" >&5 |
10f2d63a | 2943 | no_cache=0 |
eb4efbdc VZ |
2944 | # Check whether --enable-ipc or --disable-ipc was given. |
2945 | if test "${enable_ipc+set}" = set; then | |
2946 | enableval="$enable_ipc" | |
698dcdb6 | 2947 | |
10f2d63a | 2948 | if test "$enableval" = yes; then |
eb4efbdc | 2949 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 2950 | else |
eb4efbdc | 2951 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 2952 | fi |
698dcdb6 | 2953 | |
10f2d63a | 2954 | else |
698dcdb6 | 2955 | |
eb4efbdc | 2956 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
2957 | if test "x$LINE" != x ; then |
2958 | eval "DEFAULT_$LINE" | |
2959 | else | |
2960 | no_cache=1 | |
2961 | fi | |
2962 | ||
eb4efbdc | 2963 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
2964 | |
2965 | fi | |
10f2d63a VZ |
2966 | |
2967 | ||
eb4efbdc | 2968 | eval "$ac_cv_use_ipc" |
10f2d63a | 2969 | if test "$no_cache" != 1; then |
eb4efbdc | 2970 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2971 | fi |
2972 | ||
eb4efbdc | 2973 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 2974 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2975 | else |
698dcdb6 | 2976 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2977 | fi |
698dcdb6 VZ |
2978 | |
2979 | ||
eb4efbdc | 2980 | |
1e6feb95 | 2981 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
9f41d601 | 2982 | echo "configure:2983: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
2983 | no_cache=0 |
2984 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
2985 | if test "${enable_cmdline+set}" = set; then | |
2986 | enableval="$enable_cmdline" | |
2987 | ||
2988 | if test "$enableval" = yes; then | |
2989 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
2990 | else | |
2991 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
2992 | fi | |
2993 | ||
2994 | else | |
2995 | ||
2996 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
2997 | if test "x$LINE" != x ; then | |
2998 | eval "DEFAULT_$LINE" | |
2999 | else | |
3000 | no_cache=1 | |
3001 | fi | |
3002 | ||
3003 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3004 | ||
3005 | fi | |
3006 | ||
3007 | ||
3008 | eval "$ac_cv_use_cmdline" | |
3009 | if test "$no_cache" != 1; then | |
3010 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3011 | fi | |
3012 | ||
3013 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3014 | echo "$ac_t""yes" 1>&6 | |
3015 | else | |
3016 | echo "$ac_t""no" 1>&6 | |
3017 | fi | |
3018 | ||
3019 | ||
3020 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
9f41d601 | 3021 | echo "configure:3022: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3022 | no_cache=0 |
3023 | # Check whether --enable-datetime or --disable-datetime was given. | |
3024 | if test "${enable_datetime+set}" = set; then | |
3025 | enableval="$enable_datetime" | |
3026 | ||
3027 | if test "$enableval" = yes; then | |
3028 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3029 | else | |
3030 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3031 | fi | |
3032 | ||
3033 | else | |
3034 | ||
3035 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3036 | if test "x$LINE" != x ; then | |
3037 | eval "DEFAULT_$LINE" | |
3038 | else | |
3039 | no_cache=1 | |
3040 | fi | |
3041 | ||
3042 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3043 | ||
3044 | fi | |
3045 | ||
3046 | ||
3047 | eval "$ac_cv_use_datetime" | |
3048 | if test "$no_cache" != 1; then | |
3049 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3050 | fi | |
3051 | ||
3052 | if test "$wxUSE_DATETIME" = yes; then | |
3053 | echo "$ac_t""yes" 1>&6 | |
3054 | else | |
3055 | echo "$ac_t""no" 1>&6 | |
3056 | fi | |
3057 | ||
3058 | ||
3059 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
9f41d601 | 3060 | echo "configure:3061: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3061 | no_cache=0 |
3062 | # Check whether --enable-timedate or --disable-timedate was given. | |
3063 | if test "${enable_timedate+set}" = set; then | |
3064 | enableval="$enable_timedate" | |
3065 | ||
3066 | if test "$enableval" = yes; then | |
3067 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3068 | else | |
3069 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3070 | fi | |
3071 | ||
3072 | else | |
3073 | ||
3074 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3075 | if test "x$LINE" != x ; then | |
3076 | eval "DEFAULT_$LINE" | |
3077 | else | |
3078 | no_cache=1 | |
3079 | fi | |
3080 | ||
3081 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3082 | ||
3083 | fi | |
3084 | ||
3085 | ||
3086 | eval "$ac_cv_use_timedate" | |
3087 | if test "$no_cache" != 1; then | |
3088 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3089 | fi | |
3090 | ||
3091 | if test "$wxUSE_TIMEDATE" = yes; then | |
3092 | echo "$ac_t""yes" 1>&6 | |
3093 | else | |
3094 | echo "$ac_t""no" 1>&6 | |
3095 | fi | |
3096 | ||
3097 | ||
3098 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
9f41d601 | 3099 | echo "configure:3100: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3100 | no_cache=0 |
3101 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3102 | if test "${enable_stopwatch+set}" = set; then | |
3103 | enableval="$enable_stopwatch" | |
3104 | ||
3105 | if test "$enableval" = yes; then | |
3106 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3107 | else | |
3108 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3109 | fi | |
3110 | ||
3111 | else | |
3112 | ||
3113 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3114 | if test "x$LINE" != x ; then | |
3115 | eval "DEFAULT_$LINE" | |
3116 | else | |
3117 | no_cache=1 | |
3118 | fi | |
3119 | ||
3120 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3121 | ||
3122 | fi | |
3123 | ||
3124 | ||
3125 | eval "$ac_cv_use_stopwatch" | |
3126 | if test "$no_cache" != 1; then | |
3127 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3128 | fi | |
3129 | ||
3130 | if test "$wxUSE_STOPWATCH" = yes; then | |
3131 | echo "$ac_t""yes" 1>&6 | |
3132 | else | |
3133 | echo "$ac_t""no" 1>&6 | |
3134 | fi | |
3135 | ||
3136 | ||
698dcdb6 | 3137 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
9f41d601 | 3138 | echo "configure:3139: checking for --enable-dialupman" >&5 |
10f2d63a | 3139 | no_cache=0 |
eb4efbdc VZ |
3140 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3141 | if test "${enable_dialupman+set}" = set; then | |
3142 | enableval="$enable_dialupman" | |
698dcdb6 | 3143 | |
10f2d63a | 3144 | if test "$enableval" = yes; then |
eb4efbdc | 3145 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3146 | else |
eb4efbdc | 3147 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3148 | fi |
698dcdb6 | 3149 | |
10f2d63a | 3150 | else |
698dcdb6 | 3151 | |
eb4efbdc | 3152 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3153 | if test "x$LINE" != x ; then |
3154 | eval "DEFAULT_$LINE" | |
3155 | else | |
3156 | no_cache=1 | |
3157 | fi | |
3158 | ||
eb4efbdc | 3159 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3160 | |
3161 | fi | |
10f2d63a VZ |
3162 | |
3163 | ||
eb4efbdc | 3164 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3165 | if test "$no_cache" != 1; then |
eb4efbdc | 3166 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3167 | fi |
3168 | ||
eb4efbdc | 3169 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3170 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3171 | else |
698dcdb6 | 3172 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3173 | fi |
698dcdb6 | 3174 | |
10f2d63a | 3175 | |
698dcdb6 | 3176 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
9f41d601 | 3177 | echo "configure:3178: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3178 | no_cache=0 |
3179 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3180 | if test "${enable_apple_ieee+set}" = set; then | |
3181 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3182 | |
10f2d63a VZ |
3183 | if test "$enableval" = yes; then |
3184 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3185 | else | |
3186 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3187 | fi | |
698dcdb6 | 3188 | |
10f2d63a | 3189 | else |
698dcdb6 | 3190 | |
10f2d63a VZ |
3191 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3192 | if test "x$LINE" != x ; then | |
3193 | eval "DEFAULT_$LINE" | |
3194 | else | |
3195 | no_cache=1 | |
3196 | fi | |
3197 | ||
3198 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3199 | |
3200 | fi | |
10f2d63a VZ |
3201 | |
3202 | ||
3203 | eval "$ac_cv_use_apple_ieee" | |
3204 | if test "$no_cache" != 1; then | |
3205 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3206 | fi | |
3207 | ||
3208 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3209 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3210 | else |
698dcdb6 | 3211 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3212 | fi |
698dcdb6 | 3213 | |
10f2d63a | 3214 | |
1e6feb95 | 3215 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
9f41d601 | 3216 | echo "configure:3217: checking for --enable-timer" >&5 |
10f2d63a | 3217 | no_cache=0 |
1e6feb95 VZ |
3218 | # Check whether --enable-timer or --disable-timer was given. |
3219 | if test "${enable_timer+set}" = set; then | |
3220 | enableval="$enable_timer" | |
698dcdb6 | 3221 | |
10f2d63a | 3222 | if test "$enableval" = yes; then |
1e6feb95 | 3223 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3224 | else |
1e6feb95 | 3225 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3226 | fi |
698dcdb6 | 3227 | |
10f2d63a | 3228 | else |
698dcdb6 | 3229 | |
1e6feb95 | 3230 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3231 | if test "x$LINE" != x ; then |
3232 | eval "DEFAULT_$LINE" | |
3233 | else | |
3234 | no_cache=1 | |
3235 | fi | |
3236 | ||
1e6feb95 | 3237 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3238 | |
3239 | fi | |
10f2d63a VZ |
3240 | |
3241 | ||
1e6feb95 | 3242 | eval "$ac_cv_use_timer" |
10f2d63a | 3243 | if test "$no_cache" != 1; then |
1e6feb95 | 3244 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3245 | fi |
3246 | ||
1e6feb95 | 3247 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3248 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3249 | else |
698dcdb6 | 3250 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3251 | fi |
698dcdb6 | 3252 | |
10f2d63a | 3253 | |
698dcdb6 | 3254 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
9f41d601 | 3255 | echo "configure:3256: checking for --enable-wave" >&5 |
10f2d63a VZ |
3256 | no_cache=0 |
3257 | # Check whether --enable-wave or --disable-wave was given. | |
3258 | if test "${enable_wave+set}" = set; then | |
3259 | enableval="$enable_wave" | |
698dcdb6 | 3260 | |
10f2d63a VZ |
3261 | if test "$enableval" = yes; then |
3262 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3263 | else | |
3264 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3265 | fi | |
698dcdb6 | 3266 | |
10f2d63a | 3267 | else |
698dcdb6 | 3268 | |
10f2d63a VZ |
3269 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3270 | if test "x$LINE" != x ; then | |
3271 | eval "DEFAULT_$LINE" | |
3272 | else | |
3273 | no_cache=1 | |
3274 | fi | |
3275 | ||
3276 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3277 | |
3278 | fi | |
10f2d63a VZ |
3279 | |
3280 | ||
3281 | eval "$ac_cv_use_wave" | |
3282 | if test "$no_cache" != 1; then | |
3283 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3284 | fi | |
3285 | ||
3286 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3287 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3288 | else |
698dcdb6 | 3289 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3290 | fi |
698dcdb6 | 3291 | |
10f2d63a | 3292 | |
698dcdb6 | 3293 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
9f41d601 | 3294 | echo "configure:3295: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3295 | no_cache=0 |
3296 | # Check whether --enable-fraction or --disable-fraction was given. | |
3297 | if test "${enable_fraction+set}" = set; then | |
3298 | enableval="$enable_fraction" | |
698dcdb6 | 3299 | |
10f2d63a VZ |
3300 | if test "$enableval" = yes; then |
3301 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3302 | else | |
3303 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3304 | fi | |
698dcdb6 | 3305 | |
10f2d63a | 3306 | else |
698dcdb6 | 3307 | |
10f2d63a VZ |
3308 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3309 | if test "x$LINE" != x ; then | |
3310 | eval "DEFAULT_$LINE" | |
3311 | else | |
3312 | no_cache=1 | |
3313 | fi | |
3314 | ||
3315 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3316 | |
3317 | fi | |
10f2d63a VZ |
3318 | |
3319 | ||
3320 | eval "$ac_cv_use_fraction" | |
3321 | if test "$no_cache" != 1; then | |
3322 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3323 | fi | |
3324 | ||
3325 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3326 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3327 | else |
698dcdb6 | 3328 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3329 | fi |
698dcdb6 | 3330 | |
10f2d63a | 3331 | |
698dcdb6 | 3332 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
9f41d601 | 3333 | echo "configure:3334: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3334 | no_cache=0 |
3335 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3336 | if test "${enable_dynlib+set}" = set; then | |
3337 | enableval="$enable_dynlib" | |
698dcdb6 | 3338 | |
10f2d63a VZ |
3339 | if test "$enableval" = yes; then |
3340 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3341 | else | |
3342 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3343 | fi | |
698dcdb6 | 3344 | |
10f2d63a | 3345 | else |
698dcdb6 | 3346 | |
10f2d63a VZ |
3347 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3348 | if test "x$LINE" != x ; then | |
3349 | eval "DEFAULT_$LINE" | |
3350 | else | |
3351 | no_cache=1 | |
3352 | fi | |
3353 | ||
3354 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3355 | |
3356 | fi | |
10f2d63a VZ |
3357 | |
3358 | ||
3359 | eval "$ac_cv_use_dynlib" | |
3360 | if test "$no_cache" != 1; then | |
3361 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3362 | fi | |
3363 | ||
3364 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3365 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3366 | else |
698dcdb6 | 3367 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3368 | fi |
698dcdb6 | 3369 | |
10f2d63a | 3370 | |
698dcdb6 | 3371 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
9f41d601 | 3372 | echo "configure:3373: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3373 | no_cache=0 |
3374 | # Check whether --enable-longlong or --disable-longlong was given. | |
3375 | if test "${enable_longlong+set}" = set; then | |
3376 | enableval="$enable_longlong" | |
698dcdb6 | 3377 | |
10f2d63a VZ |
3378 | if test "$enableval" = yes; then |
3379 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3380 | else | |
3381 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3382 | fi | |
698dcdb6 | 3383 | |
10f2d63a | 3384 | else |
698dcdb6 | 3385 | |
10f2d63a VZ |
3386 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3387 | if test "x$LINE" != x ; then | |
3388 | eval "DEFAULT_$LINE" | |
3389 | else | |
3390 | no_cache=1 | |
3391 | fi | |
3392 | ||
3393 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3394 | |
3395 | fi | |
10f2d63a VZ |
3396 | |
3397 | ||
3398 | eval "$ac_cv_use_longlong" | |
3399 | if test "$no_cache" != 1; then | |
3400 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3401 | fi | |
3402 | ||
3403 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3404 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3405 | else |
698dcdb6 | 3406 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3407 | fi |
698dcdb6 | 3408 | |
10f2d63a | 3409 | |
698dcdb6 | 3410 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
9f41d601 | 3411 | echo "configure:3412: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3412 | no_cache=0 |
3413 | # Check whether --enable-geometry or --disable-geometry was given. | |
3414 | if test "${enable_geometry+set}" = set; then | |
3415 | enableval="$enable_geometry" | |
698dcdb6 | 3416 | |
e8f65ba6 RR |
3417 | if test "$enableval" = yes; then |
3418 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3419 | else | |
3420 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3421 | fi | |
698dcdb6 | 3422 | |
e8f65ba6 | 3423 | else |
698dcdb6 | 3424 | |
e8f65ba6 RR |
3425 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3426 | if test "x$LINE" != x ; then | |
3427 | eval "DEFAULT_$LINE" | |
3428 | else | |
3429 | no_cache=1 | |
3430 | fi | |
3431 | ||
3432 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3433 | |
3434 | fi | |
e8f65ba6 RR |
3435 | |
3436 | ||
3437 | eval "$ac_cv_use_geometry" | |
3438 | if test "$no_cache" != 1; then | |
3439 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3440 | fi | |
3441 | ||
3442 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3443 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3444 | else |
698dcdb6 | 3445 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3446 | fi |
698dcdb6 | 3447 | |
e8f65ba6 | 3448 | |
698dcdb6 | 3449 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
9f41d601 | 3450 | echo "configure:3451: checking for --enable-log" >&5 |
10f2d63a VZ |
3451 | no_cache=0 |
3452 | # Check whether --enable-log or --disable-log was given. | |
3453 | if test "${enable_log+set}" = set; then | |
3454 | enableval="$enable_log" | |
698dcdb6 | 3455 | |
10f2d63a VZ |
3456 | if test "$enableval" = yes; then |
3457 | ac_cv_use_log='wxUSE_LOG=yes' | |
3458 | else | |
3459 | ac_cv_use_log='wxUSE_LOG=no' | |
3460 | fi | |
698dcdb6 | 3461 | |
10f2d63a | 3462 | else |
698dcdb6 | 3463 | |
10f2d63a VZ |
3464 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3465 | if test "x$LINE" != x ; then | |
3466 | eval "DEFAULT_$LINE" | |
3467 | else | |
3468 | no_cache=1 | |
3469 | fi | |
3470 | ||
3471 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3472 | |
3473 | fi | |
10f2d63a VZ |
3474 | |
3475 | ||
3476 | eval "$ac_cv_use_log" | |
3477 | if test "$no_cache" != 1; then | |
3478 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3479 | fi | |
3480 | ||
3481 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3482 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3483 | else |
698dcdb6 | 3484 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3485 | fi |
698dcdb6 | 3486 | |
10f2d63a | 3487 | |
698dcdb6 | 3488 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
9f41d601 | 3489 | echo "configure:3490: checking for --enable-streams" >&5 |
10f2d63a VZ |
3490 | no_cache=0 |
3491 | # Check whether --enable-streams or --disable-streams was given. | |
3492 | if test "${enable_streams+set}" = set; then | |
3493 | enableval="$enable_streams" | |
698dcdb6 | 3494 | |
10f2d63a VZ |
3495 | if test "$enableval" = yes; then |
3496 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3497 | else | |
3498 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3499 | fi | |
698dcdb6 | 3500 | |
10f2d63a | 3501 | else |
698dcdb6 | 3502 | |
10f2d63a VZ |
3503 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3504 | if test "x$LINE" != x ; then | |
3505 | eval "DEFAULT_$LINE" | |
3506 | else | |
3507 | no_cache=1 | |
3508 | fi | |
3509 | ||
3510 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3511 | |
3512 | fi | |
10f2d63a VZ |
3513 | |
3514 | ||
3515 | eval "$ac_cv_use_streams" | |
3516 | if test "$no_cache" != 1; then | |
3517 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3518 | fi | |
3519 | ||
3520 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3521 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3522 | else |
698dcdb6 | 3523 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3524 | fi |
698dcdb6 | 3525 | |
10f2d63a | 3526 | |
698dcdb6 | 3527 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
9f41d601 | 3528 | echo "configure:3529: checking for --enable-file" >&5 |
10f2d63a VZ |
3529 | no_cache=0 |
3530 | # Check whether --enable-file or --disable-file was given. | |
3531 | if test "${enable_file+set}" = set; then | |
3532 | enableval="$enable_file" | |
698dcdb6 | 3533 | |
10f2d63a VZ |
3534 | if test "$enableval" = yes; then |
3535 | ac_cv_use_file='wxUSE_FILE=yes' | |
3536 | else | |
3537 | ac_cv_use_file='wxUSE_FILE=no' | |
3538 | fi | |
698dcdb6 | 3539 | |
10f2d63a | 3540 | else |
698dcdb6 | 3541 | |
10f2d63a VZ |
3542 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3543 | if test "x$LINE" != x ; then | |
3544 | eval "DEFAULT_$LINE" | |
3545 | else | |
3546 | no_cache=1 | |
3547 | fi | |
3548 | ||
3549 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3550 | |
3551 | fi | |
10f2d63a VZ |
3552 | |
3553 | ||
3554 | eval "$ac_cv_use_file" | |
3555 | if test "$no_cache" != 1; then | |
3556 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3557 | fi | |
3558 | ||
3559 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3560 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3561 | else |
698dcdb6 | 3562 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3563 | fi |
698dcdb6 | 3564 | |
10f2d63a | 3565 | |
1e6feb95 | 3566 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
9f41d601 | 3567 | echo "configure:3568: checking for --enable-ffile" >&5 |
10f2d63a | 3568 | no_cache=0 |
1e6feb95 VZ |
3569 | # Check whether --enable-ffile or --disable-ffile was given. |
3570 | if test "${enable_ffile+set}" = set; then | |
3571 | enableval="$enable_ffile" | |
698dcdb6 | 3572 | |
10f2d63a | 3573 | if test "$enableval" = yes; then |
1e6feb95 | 3574 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3575 | else |
1e6feb95 | 3576 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3577 | fi |
698dcdb6 | 3578 | |
10f2d63a | 3579 | else |
698dcdb6 | 3580 | |
1e6feb95 | 3581 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3582 | if test "x$LINE" != x ; then |
3583 | eval "DEFAULT_$LINE" | |
3584 | else | |
3585 | no_cache=1 | |
3586 | fi | |
3587 | ||
1e6feb95 | 3588 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3589 | |
3590 | fi | |
10f2d63a VZ |
3591 | |
3592 | ||
1e6feb95 | 3593 | eval "$ac_cv_use_ffile" |
10f2d63a | 3594 | if test "$no_cache" != 1; then |
1e6feb95 | 3595 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3596 | fi |
3597 | ||
1e6feb95 | 3598 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3599 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3600 | else |
698dcdb6 | 3601 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3602 | fi |
698dcdb6 | 3603 | |
10f2d63a | 3604 | |
1e6feb95 | 3605 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
9f41d601 | 3606 | echo "configure:3607: checking for --enable-textfile" >&5 |
10f2d63a | 3607 | no_cache=0 |
1e6feb95 VZ |
3608 | # Check whether --enable-textfile or --disable-textfile was given. |
3609 | if test "${enable_textfile+set}" = set; then | |
3610 | enableval="$enable_textfile" | |
698dcdb6 | 3611 | |
10f2d63a | 3612 | if test "$enableval" = yes; then |
1e6feb95 | 3613 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3614 | else |
1e6feb95 | 3615 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3616 | fi |
698dcdb6 | 3617 | |
10f2d63a | 3618 | else |
698dcdb6 | 3619 | |
1e6feb95 | 3620 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3621 | if test "x$LINE" != x ; then |
3622 | eval "DEFAULT_$LINE" | |
3623 | else | |
3624 | no_cache=1 | |
3625 | fi | |
3626 | ||
1e6feb95 | 3627 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3628 | |
3629 | fi | |
10f2d63a VZ |
3630 | |
3631 | ||
1e6feb95 | 3632 | eval "$ac_cv_use_textfile" |
10f2d63a | 3633 | if test "$no_cache" != 1; then |
1e6feb95 | 3634 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3635 | fi |
3636 | ||
1e6feb95 | 3637 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3638 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3639 | else |
698dcdb6 | 3640 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3641 | fi |
698dcdb6 | 3642 | |
10f2d63a | 3643 | |
1e6feb95 | 3644 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
9f41d601 | 3645 | echo "configure:3646: checking for --enable-fontmap" >&5 |
10f2d63a | 3646 | no_cache=0 |
1e6feb95 VZ |
3647 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3648 | if test "${enable_fontmap+set}" = set; then | |
3649 | enableval="$enable_fontmap" | |
698dcdb6 | 3650 | |
10f2d63a | 3651 | if test "$enableval" = yes; then |
1e6feb95 | 3652 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3653 | else |
1e6feb95 | 3654 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3655 | fi |
698dcdb6 | 3656 | |
10f2d63a | 3657 | else |
698dcdb6 | 3658 | |
1e6feb95 | 3659 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3660 | if test "x$LINE" != x ; then |
3661 | eval "DEFAULT_$LINE" | |
3662 | else | |
3663 | no_cache=1 | |
3664 | fi | |
3665 | ||
1e6feb95 | 3666 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3667 | |
3668 | fi | |
10f2d63a VZ |
3669 | |
3670 | ||
1e6feb95 | 3671 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3672 | if test "$no_cache" != 1; then |
1e6feb95 | 3673 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3674 | fi |
3675 | ||
1e6feb95 | 3676 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3677 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3678 | else |
698dcdb6 | 3679 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3680 | fi |
698dcdb6 | 3681 | |
10f2d63a | 3682 | |
1e6feb95 | 3683 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
9f41d601 | 3684 | echo "configure:3685: checking for --enable-unicode" >&5 |
10f2d63a | 3685 | no_cache=0 |
1e6feb95 VZ |
3686 | # Check whether --enable-unicode or --disable-unicode was given. |
3687 | if test "${enable_unicode+set}" = set; then | |
3688 | enableval="$enable_unicode" | |
3689 | ||
3690 | if test "$enableval" = yes; then | |
3691 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3692 | else | |
3693 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3694 | fi | |
3695 | ||
3696 | else | |
3697 | ||
3698 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3699 | if test "x$LINE" != x ; then | |
3700 | eval "DEFAULT_$LINE" | |
3701 | else | |
3702 | no_cache=1 | |
3703 | fi | |
3704 | ||
3705 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3706 | ||
3707 | fi | |
3708 | ||
3709 | ||
3710 | eval "$ac_cv_use_unicode" | |
3711 | if test "$no_cache" != 1; then | |
3712 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3713 | fi | |
3714 | ||
3715 | if test "$wxUSE_UNICODE" = yes; then | |
3716 | echo "$ac_t""yes" 1>&6 | |
3717 | else | |
3718 | echo "$ac_t""no" 1>&6 | |
3719 | fi | |
3720 | ||
3721 | ||
3722 | echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6 | |
9f41d601 | 3723 | echo "configure:3724: checking for --enable-wcsrtombs" >&5 |
1e6feb95 VZ |
3724 | no_cache=0 |
3725 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3726 | if test "${enable_wcsrtombs+set}" = set; then | |
3727 | enableval="$enable_wcsrtombs" | |
3728 | ||
3729 | if test "$enableval" = yes; then | |
3730 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3731 | else | |
3732 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3733 | fi | |
3734 | ||
3735 | else | |
3736 | ||
3737 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3738 | if test "x$LINE" != x ; then | |
3739 | eval "DEFAULT_$LINE" | |
3740 | else | |
3741 | no_cache=1 | |
3742 | fi | |
3743 | ||
3744 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3745 | ||
3746 | fi | |
3747 | ||
3748 | ||
3749 | eval "$ac_cv_use_wcsrtombs" | |
3750 | if test "$no_cache" != 1; then | |
3751 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3752 | fi | |
3753 | ||
3754 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3755 | echo "$ac_t""yes" 1>&6 | |
3756 | else | |
3757 | echo "$ac_t""no" 1>&6 | |
3758 | fi | |
3759 | ||
3760 | ||
3761 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 | |
9f41d601 | 3762 | echo "configure:3763: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3763 | no_cache=0 |
3764 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3765 | if test "${enable_wxprintfv+set}" = set; then | |
3766 | enableval="$enable_wxprintfv" | |
3767 | ||
3768 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3769 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3770 | else | |
3771 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3772 | fi | |
698dcdb6 | 3773 | |
10f2d63a | 3774 | else |
698dcdb6 | 3775 | |
10f2d63a VZ |
3776 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3777 | if test "x$LINE" != x ; then | |
3778 | eval "DEFAULT_$LINE" | |
3779 | else | |
3780 | no_cache=1 | |
3781 | fi | |
3782 | ||
3783 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3784 | |
3785 | fi | |
10f2d63a VZ |
3786 | |
3787 | ||
3788 | eval "$ac_cv_use_wxprintfv" | |
3789 | if test "$no_cache" != 1; then | |
3790 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3791 | fi | |
3792 | ||
3793 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3794 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3795 | else |
698dcdb6 | 3796 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3797 | fi |
698dcdb6 | 3798 | |
10f2d63a | 3799 | |
698dcdb6 | 3800 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
9f41d601 | 3801 | echo "configure:3802: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3802 | no_cache=0 |
3803 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3804 | if test "${enable_std_iostreams+set}" = set; then | |
3805 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3806 | |
10f2d63a VZ |
3807 | if test "$enableval" = yes; then |
3808 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3809 | else | |
3810 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3811 | fi | |
698dcdb6 | 3812 | |
10f2d63a | 3813 | else |
698dcdb6 | 3814 | |
10f2d63a VZ |
3815 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3816 | if test "x$LINE" != x ; then | |
3817 | eval "DEFAULT_$LINE" | |
3818 | else | |
3819 | no_cache=1 | |
3820 | fi | |
3821 | ||
3822 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3823 | |
3824 | fi | |
10f2d63a VZ |
3825 | |
3826 | ||
3827 | eval "$ac_cv_use_std_iostreams" | |
3828 | if test "$no_cache" != 1; then | |
3829 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3830 | fi | |
3831 | ||
3832 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3833 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3834 | else |
698dcdb6 | 3835 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3836 | fi |
698dcdb6 | 3837 | |
10f2d63a | 3838 | |
698dcdb6 | 3839 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
9f41d601 | 3840 | echo "configure:3841: checking for --enable-filesystem" >&5 |
24528b0c VS |
3841 | no_cache=0 |
3842 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3843 | if test "${enable_filesystem+set}" = set; then | |
3844 | enableval="$enable_filesystem" | |
698dcdb6 | 3845 | |
24528b0c VS |
3846 | if test "$enableval" = yes; then |
3847 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3848 | else | |
3849 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3850 | fi | |
698dcdb6 | 3851 | |
24528b0c | 3852 | else |
698dcdb6 | 3853 | |
24528b0c VS |
3854 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3855 | if test "x$LINE" != x ; then | |
3856 | eval "DEFAULT_$LINE" | |
3857 | else | |
3858 | no_cache=1 | |
3859 | fi | |
3860 | ||
3861 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3862 | |
3863 | fi | |
24528b0c VS |
3864 | |
3865 | ||
3866 | eval "$ac_cv_use_filesystem" | |
3867 | if test "$no_cache" != 1; then | |
3868 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3869 | fi | |
3870 | ||
3871 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3872 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3873 | else |
698dcdb6 | 3874 | echo "$ac_t""no" 1>&6 |
24528b0c | 3875 | fi |
698dcdb6 | 3876 | |
24528b0c | 3877 | |
698dcdb6 | 3878 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
9f41d601 | 3879 | echo "configure:3880: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3880 | no_cache=0 |
3881 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3882 | if test "${enable_fs_inet+set}" = set; then | |
3883 | enableval="$enable_fs_inet" | |
698dcdb6 | 3884 | |
10f2d63a VZ |
3885 | if test "$enableval" = yes; then |
3886 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3887 | else | |
3888 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3889 | fi | |
698dcdb6 | 3890 | |
10f2d63a | 3891 | else |
698dcdb6 | 3892 | |
10f2d63a VZ |
3893 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3894 | if test "x$LINE" != x ; then | |
3895 | eval "DEFAULT_$LINE" | |
3896 | else | |
3897 | no_cache=1 | |
3898 | fi | |
3899 | ||
3900 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3901 | |
3902 | fi | |
10f2d63a VZ |
3903 | |
3904 | ||
3905 | eval "$ac_cv_use_fs_inet" | |
3906 | if test "$no_cache" != 1; then | |
3907 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3908 | fi | |
3909 | ||
3910 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 3911 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3912 | else |
698dcdb6 | 3913 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3914 | fi |
698dcdb6 | 3915 | |
10f2d63a | 3916 | |
698dcdb6 | 3917 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
9f41d601 | 3918 | echo "configure:3919: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
3919 | no_cache=0 |
3920 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3921 | if test "${enable_fs_zip+set}" = set; then | |
3922 | enableval="$enable_fs_zip" | |
698dcdb6 | 3923 | |
10f2d63a VZ |
3924 | if test "$enableval" = yes; then |
3925 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3926 | else | |
3927 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3928 | fi | |
698dcdb6 | 3929 | |
10f2d63a | 3930 | else |
698dcdb6 | 3931 | |
10f2d63a VZ |
3932 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
3933 | if test "x$LINE" != x ; then | |
3934 | eval "DEFAULT_$LINE" | |
3935 | else | |
3936 | no_cache=1 | |
3937 | fi | |
3938 | ||
3939 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
3940 | |
3941 | fi | |
10f2d63a VZ |
3942 | |
3943 | ||
3944 | eval "$ac_cv_use_fs_zip" | |
3945 | if test "$no_cache" != 1; then | |
3946 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3947 | fi | |
3948 | ||
3949 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 3950 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3951 | else |
698dcdb6 | 3952 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3953 | fi |
698dcdb6 | 3954 | |
10f2d63a | 3955 | |
698dcdb6 | 3956 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
9f41d601 | 3957 | echo "configure:3958: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
3958 | no_cache=0 |
3959 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3960 | if test "${enable_zipstream+set}" = set; then | |
3961 | enableval="$enable_zipstream" | |
698dcdb6 | 3962 | |
10f2d63a VZ |
3963 | if test "$enableval" = yes; then |
3964 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3965 | else | |
3966 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3967 | fi | |
698dcdb6 | 3968 | |
10f2d63a | 3969 | else |
698dcdb6 | 3970 | |
10f2d63a VZ |
3971 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3972 | if test "x$LINE" != x ; then | |
3973 | eval "DEFAULT_$LINE" | |
3974 | else | |
3975 | no_cache=1 | |
3976 | fi | |
3977 | ||
3978 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
3979 | |
3980 | fi | |
10f2d63a VZ |
3981 | |
3982 | ||
3983 | eval "$ac_cv_use_zipstream" | |
3984 | if test "$no_cache" != 1; then | |
3985 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3986 | fi | |
3987 | ||
3988 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 3989 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3990 | else |
698dcdb6 | 3991 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3992 | fi |
698dcdb6 | 3993 | |
10f2d63a | 3994 | |
698dcdb6 VZ |
3995 | |
3996 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
9f41d601 | 3997 | echo "configure:3998: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
3998 | no_cache=0 |
3999 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4000 | if test "${enable_catch_segvs+set}" = set; then | |
4001 | enableval="$enable_catch_segvs" | |
698dcdb6 | 4002 | |
eb4efbdc VZ |
4003 | if test "$enableval" = yes; then |
4004 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4005 | else | |
4006 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4007 | fi | |
698dcdb6 | 4008 | |
eb4efbdc | 4009 | else |
698dcdb6 | 4010 | |
eb4efbdc VZ |
4011 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4012 | if test "x$LINE" != x ; then | |
4013 | eval "DEFAULT_$LINE" | |
4014 | else | |
4015 | no_cache=1 | |
4016 | fi | |
4017 | ||
4018 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4019 | |
4020 | fi | |
eb4efbdc VZ |
4021 | |
4022 | ||
4023 | eval "$ac_cv_use_catch_segvs" | |
4024 | if test "$no_cache" != 1; then | |
4025 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4026 | fi | |
4027 | ||
4028 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4029 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4030 | else |
698dcdb6 | 4031 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4032 | fi |
698dcdb6 | 4033 | |
eb4efbdc | 4034 | |
698dcdb6 | 4035 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
9f41d601 | 4036 | echo "configure:4037: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4037 | no_cache=0 |
4038 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4039 | if test "${enable_snglinst+set}" = set; then | |
4040 | enableval="$enable_snglinst" | |
698dcdb6 | 4041 | |
4f3c5f06 VZ |
4042 | if test "$enableval" = yes; then |
4043 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4044 | else | |
4045 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4046 | fi | |
698dcdb6 | 4047 | |
4f3c5f06 | 4048 | else |
698dcdb6 | 4049 | |
4f3c5f06 VZ |
4050 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4051 | if test "x$LINE" != x ; then | |
4052 | eval "DEFAULT_$LINE" | |
4053 | else | |
4054 | no_cache=1 | |
4055 | fi | |
4056 | ||
4057 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4058 | |
4059 | fi | |
4f3c5f06 VZ |
4060 | |
4061 | ||
4062 | eval "$ac_cv_use_snglinst" | |
4063 | if test "$no_cache" != 1; then | |
4064 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4065 | fi | |
4066 | ||
4067 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4068 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4069 | else |
698dcdb6 | 4070 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4071 | fi |
698dcdb6 VZ |
4072 | |
4073 | ||
eb4efbdc | 4074 | |
1e6feb95 | 4075 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
9f41d601 | 4076 | echo "configure:4077: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4077 | no_cache=0 |
4078 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4079 | if test "${enable_mimetype+set}" = set; then | |
4080 | enableval="$enable_mimetype" | |
4081 | ||
4082 | if test "$enableval" = yes; then | |
4083 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4084 | else | |
4085 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4086 | fi | |
4087 | ||
4088 | else | |
4089 | ||
4090 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4091 | if test "x$LINE" != x ; then | |
4092 | eval "DEFAULT_$LINE" | |
4093 | else | |
4094 | no_cache=1 | |
4095 | fi | |
4096 | ||
4097 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4098 | ||
4099 | fi | |
4100 | ||
4101 | ||
4102 | eval "$ac_cv_use_mimetype" | |
4103 | if test "$no_cache" != 1; then | |
4104 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4105 | fi | |
4106 | ||
4107 | if test "$wxUSE_MIMETYPE" = yes; then | |
4108 | echo "$ac_t""yes" 1>&6 | |
4109 | else | |
4110 | echo "$ac_t""no" 1>&6 | |
4111 | fi | |
4112 | ||
4113 | ||
4114 | ||
698dcdb6 VZ |
4115 | |
4116 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
9f41d601 | 4117 | echo "configure:4118: checking for --enable-threads" >&5 |
10f2d63a VZ |
4118 | no_cache=0 |
4119 | # Check whether --enable-threads or --disable-threads was given. | |
4120 | if test "${enable_threads+set}" = set; then | |
4121 | enableval="$enable_threads" | |
698dcdb6 | 4122 | |
10f2d63a VZ |
4123 | if test "$enableval" = yes; then |
4124 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4125 | else | |
4126 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4127 | fi | |
698dcdb6 | 4128 | |
10f2d63a | 4129 | else |
698dcdb6 | 4130 | |
10f2d63a VZ |
4131 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4132 | if test "x$LINE" != x ; then | |
4133 | eval "DEFAULT_$LINE" | |
4134 | else | |
4135 | no_cache=1 | |
4136 | fi | |
4137 | ||
4138 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4139 | |
4140 | fi | |
10f2d63a VZ |
4141 | |
4142 | ||
4143 | eval "$ac_cv_use_threads" | |
4144 | if test "$no_cache" != 1; then | |
4145 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4146 | fi | |
4147 | ||
4148 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4149 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4150 | else |
698dcdb6 | 4151 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4152 | fi |
698dcdb6 | 4153 | |
10f2d63a | 4154 | |
698dcdb6 | 4155 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
9f41d601 | 4156 | echo "configure:4157: checking for --enable-serial" >&5 |
10f2d63a VZ |
4157 | no_cache=0 |
4158 | # Check whether --enable-serial or --disable-serial was given. | |
4159 | if test "${enable_serial+set}" = set; then | |
4160 | enableval="$enable_serial" | |
698dcdb6 | 4161 | |
10f2d63a VZ |
4162 | if test "$enableval" = yes; then |
4163 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4164 | else | |
4165 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4166 | fi | |
698dcdb6 | 4167 | |
10f2d63a | 4168 | else |
698dcdb6 | 4169 | |
10f2d63a VZ |
4170 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4171 | if test "x$LINE" != x ; then | |
4172 | eval "DEFAULT_$LINE" | |
4173 | else | |
4174 | no_cache=1 | |
4175 | fi | |
4176 | ||
4177 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4178 | |
4179 | fi | |
10f2d63a VZ |
4180 | |
4181 | ||
4182 | eval "$ac_cv_use_serial" | |
4183 | if test "$no_cache" != 1; then | |
4184 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4185 | fi | |
4186 | ||
4187 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4188 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4189 | else |
698dcdb6 | 4190 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4191 | fi |
698dcdb6 | 4192 | |
10f2d63a | 4193 | |
b12915c1 VZ |
4194 | if test "$wxUSE_GUI" = "yes"; then |
4195 | ||
698dcdb6 VZ |
4196 | |
4197 | ||
4198 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
9f41d601 | 4199 | echo "configure:4200: checking for --enable-docview" >&5 |
10f2d63a VZ |
4200 | no_cache=0 |
4201 | # Check whether --enable-docview or --disable-docview was given. | |
4202 | if test "${enable_docview+set}" = set; then | |
4203 | enableval="$enable_docview" | |
698dcdb6 | 4204 | |
10f2d63a VZ |
4205 | if test "$enableval" = yes; then |
4206 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4207 | else | |
4208 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4209 | fi | |
698dcdb6 | 4210 | |
10f2d63a | 4211 | else |
698dcdb6 | 4212 | |
10f2d63a VZ |
4213 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4214 | if test "x$LINE" != x ; then | |
4215 | eval "DEFAULT_$LINE" | |
4216 | else | |
4217 | no_cache=1 | |
4218 | fi | |
4219 | ||
4220 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4221 | |
4222 | fi | |
10f2d63a VZ |
4223 | |
4224 | ||
4225 | eval "$ac_cv_use_docview" | |
4226 | if test "$no_cache" != 1; then | |
4227 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4228 | fi | |
4229 | ||
4230 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4231 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4232 | else |
698dcdb6 | 4233 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4234 | fi |
698dcdb6 | 4235 | |
10f2d63a | 4236 | |
698dcdb6 | 4237 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
9f41d601 | 4238 | echo "configure:4239: checking for --enable-help" >&5 |
10f2d63a VZ |
4239 | no_cache=0 |
4240 | # Check whether --enable-help or --disable-help was given. | |
4241 | if test "${enable_help+set}" = set; then | |
4242 | enableval="$enable_help" | |
698dcdb6 | 4243 | |
10f2d63a VZ |
4244 | if test "$enableval" = yes; then |
4245 | ac_cv_use_help='wxUSE_HELP=yes' | |
4246 | else | |
4247 | ac_cv_use_help='wxUSE_HELP=no' | |
4248 | fi | |
698dcdb6 | 4249 | |
10f2d63a | 4250 | else |
698dcdb6 | 4251 | |
10f2d63a VZ |
4252 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4253 | if test "x$LINE" != x ; then | |
4254 | eval "DEFAULT_$LINE" | |
4255 | else | |
4256 | no_cache=1 | |
4257 | fi | |
4258 | ||
4259 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4260 | |
4261 | fi | |
10f2d63a VZ |
4262 | |
4263 | ||
4264 | eval "$ac_cv_use_help" | |
4265 | if test "$no_cache" != 1; then | |
4266 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4267 | fi | |
4268 | ||
4269 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4270 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4271 | else |
698dcdb6 | 4272 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4273 | fi |
698dcdb6 | 4274 | |
10f2d63a | 4275 | |
3379ed37 | 4276 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
9f41d601 | 4277 | echo "configure:4278: checking for --enable-html" >&5 |
3379ed37 VZ |
4278 | no_cache=0 |
4279 | # Check whether --enable-html or --disable-html was given. | |
4280 | if test "${enable_html+set}" = set; then | |
4281 | enableval="$enable_html" | |
4282 | ||
4283 | if test "$enableval" = yes; then | |
4284 | ac_cv_use_html='wxUSE_HTML=yes' | |
4285 | else | |
4286 | ac_cv_use_html='wxUSE_HTML=no' | |
4287 | fi | |
4288 | ||
4289 | else | |
4290 | ||
4291 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4292 | if test "x$LINE" != x ; then | |
4293 | eval "DEFAULT_$LINE" | |
4294 | else | |
4295 | no_cache=1 | |
4296 | fi | |
4297 | ||
4298 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4299 | ||
4300 | fi | |
4301 | ||
4302 | ||
4303 | eval "$ac_cv_use_html" | |
4304 | if test "$no_cache" != 1; then | |
4305 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4306 | fi | |
4307 | ||
4308 | if test "$wxUSE_HTML" = yes; then | |
4309 | echo "$ac_t""yes" 1>&6 | |
4310 | else | |
4311 | echo "$ac_t""no" 1>&6 | |
4312 | fi | |
4313 | ||
4314 | ||
4315 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
9f41d601 | 4316 | echo "configure:4317: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4317 | no_cache=0 |
4318 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4319 | if test "${enable_htmlhelp+set}" = set; then | |
4320 | enableval="$enable_htmlhelp" | |
4321 | ||
4322 | if test "$enableval" = yes; then | |
4323 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4324 | else | |
4325 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4326 | fi | |
4327 | ||
4328 | else | |
4329 | ||
4330 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4331 | if test "x$LINE" != x ; then | |
4332 | eval "DEFAULT_$LINE" | |
4333 | else | |
4334 | no_cache=1 | |
4335 | fi | |
4336 | ||
4337 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4338 | ||
4339 | fi | |
4340 | ||
4341 | ||
4342 | eval "$ac_cv_use_htmlhelp" | |
4343 | if test "$no_cache" != 1; then | |
4344 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4345 | fi | |
4346 | ||
4347 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4348 | echo "$ac_t""yes" 1>&6 | |
4349 | else | |
4350 | echo "$ac_t""no" 1>&6 | |
4351 | fi | |
4352 | ||
4353 | ||
698dcdb6 | 4354 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
9f41d601 | 4355 | echo "configure:4356: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4356 | no_cache=0 |
4357 | # Check whether --enable-constraints or --disable-constraints was given. | |
4358 | if test "${enable_constraints+set}" = set; then | |
4359 | enableval="$enable_constraints" | |
698dcdb6 | 4360 | |
10f2d63a VZ |
4361 | if test "$enableval" = yes; then |
4362 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4363 | else | |
4364 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4365 | fi | |
698dcdb6 | 4366 | |
10f2d63a | 4367 | else |
698dcdb6 | 4368 | |
10f2d63a VZ |
4369 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4370 | if test "x$LINE" != x ; then | |
4371 | eval "DEFAULT_$LINE" | |
4372 | else | |
4373 | no_cache=1 | |
4374 | fi | |
4375 | ||
4376 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4377 | |
4378 | fi | |
10f2d63a VZ |
4379 | |
4380 | ||
4381 | eval "$ac_cv_use_constraints" | |
4382 | if test "$no_cache" != 1; then | |
4383 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4384 | fi | |
4385 | ||
4386 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4387 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4388 | else |
698dcdb6 | 4389 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4390 | fi |
698dcdb6 | 4391 | |
10f2d63a | 4392 | |
698dcdb6 | 4393 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
9f41d601 | 4394 | echo "configure:4395: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4395 | no_cache=0 |
4396 | # Check whether --enable-printarch or --disable-printarch was given. | |
4397 | if test "${enable_printarch+set}" = set; then | |
4398 | enableval="$enable_printarch" | |
698dcdb6 | 4399 | |
10f2d63a VZ |
4400 | if test "$enableval" = yes; then |
4401 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4402 | else | |
4403 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4404 | fi | |
698dcdb6 | 4405 | |
10f2d63a | 4406 | else |
698dcdb6 | 4407 | |
10f2d63a VZ |
4408 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4409 | if test "x$LINE" != x ; then | |
4410 | eval "DEFAULT_$LINE" | |
4411 | else | |
4412 | no_cache=1 | |
4413 | fi | |
4414 | ||
4415 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4416 | |
4417 | fi | |
10f2d63a VZ |
4418 | |
4419 | ||
4420 | eval "$ac_cv_use_printarch" | |
4421 | if test "$no_cache" != 1; then | |
4422 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4423 | fi | |
4424 | ||
4425 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4426 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4427 | else |
698dcdb6 | 4428 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4429 | fi |
698dcdb6 | 4430 | |
10f2d63a | 4431 | |
698dcdb6 | 4432 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
9f41d601 | 4433 | echo "configure:4434: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4434 | no_cache=0 |
4435 | # Check whether --enable-mdi or --disable-mdi was given. | |
4436 | if test "${enable_mdi+set}" = set; then | |
4437 | enableval="$enable_mdi" | |
698dcdb6 | 4438 | |
10f2d63a VZ |
4439 | if test "$enableval" = yes; then |
4440 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4441 | else | |
4442 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4443 | fi | |
698dcdb6 | 4444 | |
10f2d63a | 4445 | else |
698dcdb6 | 4446 | |
10f2d63a VZ |
4447 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4448 | if test "x$LINE" != x ; then | |
4449 | eval "DEFAULT_$LINE" | |
4450 | else | |
4451 | no_cache=1 | |
4452 | fi | |
4453 | ||
4454 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4455 | |
4456 | fi | |
10f2d63a VZ |
4457 | |
4458 | ||
4459 | eval "$ac_cv_use_mdi" | |
4460 | if test "$no_cache" != 1; then | |
4461 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4462 | fi | |
4463 | ||
4464 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4465 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4466 | else |
698dcdb6 | 4467 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4468 | fi |
698dcdb6 VZ |
4469 | |
4470 | ||
1e6feb95 | 4471 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
9f41d601 | 4472 | echo "configure:4473: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4473 | no_cache=0 |
4474 | # Check whether --enable-loggui or --disable-loggui was given. | |
4475 | if test "${enable_loggui+set}" = set; then | |
4476 | enableval="$enable_loggui" | |
4477 | ||
4478 | if test "$enableval" = yes; then | |
4479 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4480 | else | |
4481 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4482 | fi | |
4483 | ||
4484 | else | |
4485 | ||
4486 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4487 | if test "x$LINE" != x ; then | |
4488 | eval "DEFAULT_$LINE" | |
4489 | else | |
4490 | no_cache=1 | |
4491 | fi | |
4492 | ||
4493 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4494 | ||
4495 | fi | |
4496 | ||
4497 | ||
4498 | eval "$ac_cv_use_loggui" | |
4499 | if test "$no_cache" != 1; then | |
4500 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4501 | fi | |
4502 | ||
4503 | if test "$wxUSE_LOGGUI" = yes; then | |
4504 | echo "$ac_t""yes" 1>&6 | |
4505 | else | |
4506 | echo "$ac_t""no" 1>&6 | |
4507 | fi | |
4508 | ||
4509 | ||
4510 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
9f41d601 | 4511 | echo "configure:4512: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4512 | no_cache=0 |
4513 | # Check whether --enable-logwin or --disable-logwin was given. | |
4514 | if test "${enable_logwin+set}" = set; then | |
4515 | enableval="$enable_logwin" | |
4516 | ||
4517 | if test "$enableval" = yes; then | |
4518 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4519 | else | |
4520 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4521 | fi | |
4522 | ||
4523 | else | |
4524 | ||
4525 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4526 | if test "x$LINE" != x ; then | |
4527 | eval "DEFAULT_$LINE" | |
4528 | else | |
4529 | no_cache=1 | |
4530 | fi | |
4531 | ||
4532 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4533 | ||
4534 | fi | |
4535 | ||
4536 | ||
4537 | eval "$ac_cv_use_logwin" | |
4538 | if test "$no_cache" != 1; then | |
4539 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4540 | fi | |
4541 | ||
4542 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4543 | echo "$ac_t""yes" 1>&6 | |
4544 | else | |
4545 | echo "$ac_t""no" 1>&6 | |
4546 | fi | |
4547 | ||
4548 | ||
10f2d63a | 4549 | |
698dcdb6 | 4550 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
9f41d601 | 4551 | echo "configure:4552: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4552 | no_cache=0 |
4553 | # Check whether --enable-postscript or --disable-postscript was given. | |
4554 | if test "${enable_postscript+set}" = set; then | |
4555 | enableval="$enable_postscript" | |
698dcdb6 | 4556 | |
10f2d63a VZ |
4557 | if test "$enableval" = yes; then |
4558 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4559 | else | |
4560 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4561 | fi | |
698dcdb6 | 4562 | |
10f2d63a | 4563 | else |
698dcdb6 | 4564 | |
10f2d63a VZ |
4565 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4566 | if test "x$LINE" != x ; then | |
4567 | eval "DEFAULT_$LINE" | |
4568 | else | |
4569 | no_cache=1 | |
4570 | fi | |
4571 | ||
4572 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4573 | |
4574 | fi | |
10f2d63a VZ |
4575 | |
4576 | ||
4577 | eval "$ac_cv_use_postscript" | |
4578 | if test "$no_cache" != 1; then | |
4579 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4580 | fi | |
4581 | ||
4582 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4583 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4584 | else |
698dcdb6 | 4585 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4586 | fi |
698dcdb6 VZ |
4587 | |
4588 | ||
4589 | ||
10f2d63a | 4590 | |
1e6feb95 | 4591 | |
698dcdb6 | 4592 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
9f41d601 | 4593 | echo "configure:4594: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4594 | no_cache=0 |
4595 | # Check whether --enable-prologio or --disable-prologio was given. | |
4596 | if test "${enable_prologio+set}" = set; then | |
4597 | enableval="$enable_prologio" | |
698dcdb6 | 4598 | |
10f2d63a VZ |
4599 | if test "$enableval" = yes; then |
4600 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4601 | else | |
4602 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4603 | fi | |
698dcdb6 | 4604 | |
10f2d63a | 4605 | else |
698dcdb6 | 4606 | |
10f2d63a VZ |
4607 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4608 | if test "x$LINE" != x ; then | |
4609 | eval "DEFAULT_$LINE" | |
4610 | else | |
4611 | no_cache=1 | |
4612 | fi | |
4613 | ||
4614 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4615 | |
4616 | fi | |
10f2d63a VZ |
4617 | |
4618 | ||
4619 | eval "$ac_cv_use_prologio" | |
4620 | if test "$no_cache" != 1; then | |
4621 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4622 | fi | |
4623 | ||
4624 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4625 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4626 | else |
698dcdb6 | 4627 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4628 | fi |
698dcdb6 | 4629 | |
10f2d63a | 4630 | |
698dcdb6 | 4631 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
9f41d601 | 4632 | echo "configure:4633: checking for --enable-resources" >&5 |
10f2d63a VZ |
4633 | no_cache=0 |
4634 | # Check whether --enable-resources or --disable-resources was given. | |
4635 | if test "${enable_resources+set}" = set; then | |
4636 | enableval="$enable_resources" | |
698dcdb6 | 4637 | |
10f2d63a VZ |
4638 | if test "$enableval" = yes; then |
4639 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4640 | else | |
4641 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4642 | fi | |
698dcdb6 | 4643 | |
10f2d63a | 4644 | else |
698dcdb6 | 4645 | |
10f2d63a VZ |
4646 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4647 | if test "x$LINE" != x ; then | |
4648 | eval "DEFAULT_$LINE" | |
4649 | else | |
4650 | no_cache=1 | |
4651 | fi | |
4652 | ||
4653 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4654 | |
4655 | fi | |
10f2d63a VZ |
4656 | |
4657 | ||
4658 | eval "$ac_cv_use_resources" | |
4659 | if test "$no_cache" != 1; then | |
4660 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4661 | fi | |
4662 | ||
4663 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4664 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4665 | else |
698dcdb6 | 4666 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4667 | fi |
698dcdb6 | 4668 | |
10f2d63a | 4669 | |
698dcdb6 VZ |
4670 | |
4671 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
9f41d601 | 4672 | echo "configure:4673: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4673 | no_cache=0 |
4674 | # Check whether --enable-xresources or --disable-xresources was given. | |
4675 | if test "${enable_xresources+set}" = set; then | |
4676 | enableval="$enable_xresources" | |
698dcdb6 | 4677 | |
10f2d63a VZ |
4678 | if test "$enableval" = yes; then |
4679 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4680 | else | |
4681 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4682 | fi | |
698dcdb6 | 4683 | |
10f2d63a | 4684 | else |
698dcdb6 | 4685 | |
10f2d63a VZ |
4686 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4687 | if test "x$LINE" != x ; then | |
4688 | eval "DEFAULT_$LINE" | |
4689 | else | |
4690 | no_cache=1 | |
4691 | fi | |
4692 | ||
4693 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4694 | |
4695 | fi | |
10f2d63a VZ |
4696 | |
4697 | ||
4698 | eval "$ac_cv_use_xresources" | |
4699 | if test "$no_cache" != 1; then | |
4700 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4701 | fi | |
4702 | ||
4703 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4704 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4705 | else |
698dcdb6 | 4706 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4707 | fi |
698dcdb6 VZ |
4708 | |
4709 | ||
10f2d63a | 4710 | |
698dcdb6 VZ |
4711 | |
4712 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
9f41d601 | 4713 | echo "configure:4714: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4714 | no_cache=0 |
4715 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4716 | if test "${enable_clipboard+set}" = set; then | |
4717 | enableval="$enable_clipboard" | |
698dcdb6 | 4718 | |
10f2d63a VZ |
4719 | if test "$enableval" = yes; then |
4720 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4721 | else | |
4722 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4723 | fi | |
698dcdb6 | 4724 | |
10f2d63a | 4725 | else |
698dcdb6 | 4726 | |
10f2d63a VZ |
4727 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4728 | if test "x$LINE" != x ; then | |
4729 | eval "DEFAULT_$LINE" | |
4730 | else | |
4731 | no_cache=1 | |
4732 | fi | |
4733 | ||
4734 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4735 | |
4736 | fi | |
10f2d63a VZ |
4737 | |
4738 | ||
4739 | eval "$ac_cv_use_clipboard" | |
4740 | if test "$no_cache" != 1; then | |
4741 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4742 | fi | |
4743 | ||
4744 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4745 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4746 | else |
698dcdb6 | 4747 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4748 | fi |
698dcdb6 | 4749 | |
10f2d63a | 4750 | |
698dcdb6 | 4751 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
9f41d601 | 4752 | echo "configure:4753: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4753 | no_cache=0 |
4754 | # Check whether --enable-dnd or --disable-dnd was given. | |
4755 | if test "${enable_dnd+set}" = set; then | |
4756 | enableval="$enable_dnd" | |
698dcdb6 | 4757 | |
10f2d63a VZ |
4758 | if test "$enableval" = yes; then |
4759 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4760 | else | |
4761 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4762 | fi | |
698dcdb6 | 4763 | |
10f2d63a | 4764 | else |
698dcdb6 | 4765 | |
10f2d63a VZ |
4766 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4767 | if test "x$LINE" != x ; then | |
4768 | eval "DEFAULT_$LINE" | |
4769 | else | |
4770 | no_cache=1 | |
4771 | fi | |
4772 | ||
4773 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4774 | |
4775 | fi | |
10f2d63a VZ |
4776 | |
4777 | ||
4778 | eval "$ac_cv_use_dnd" | |
4779 | if test "$no_cache" != 1; then | |
4780 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4781 | fi | |
4782 | ||
4783 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4784 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4785 | else |
698dcdb6 | 4786 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4787 | fi |
698dcdb6 | 4788 | |
10f2d63a | 4789 | |
698dcdb6 | 4790 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
9f41d601 | 4791 | echo "configure:4792: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4792 | no_cache=0 |
4793 | # Check whether --enable-metafile or --disable-metafile was given. | |
4794 | if test "${enable_metafile+set}" = set; then | |
4795 | enableval="$enable_metafile" | |
698dcdb6 | 4796 | |
b64f0a5f RL |
4797 | if test "$enableval" = yes; then |
4798 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4799 | else | |
4800 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4801 | fi | |
698dcdb6 | 4802 | |
b64f0a5f | 4803 | else |
698dcdb6 | 4804 | |
b64f0a5f RL |
4805 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4806 | if test "x$LINE" != x ; then | |
4807 | eval "DEFAULT_$LINE" | |
4808 | else | |
4809 | no_cache=1 | |
4810 | fi | |
4811 | ||
4812 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4813 | |
4814 | fi | |
b64f0a5f RL |
4815 | |
4816 | ||
4817 | eval "$ac_cv_use_metafile" | |
4818 | if test "$no_cache" != 1; then | |
4819 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4820 | fi | |
4821 | ||
4822 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4823 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4824 | else |
698dcdb6 | 4825 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 4826 | fi |
698dcdb6 VZ |
4827 | |
4828 | ||
10f2d63a | 4829 | |
698dcdb6 | 4830 | echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6 |
9f41d601 | 4831 | echo "configure:4832: checking for --enable-wxtree" >&5 |
10f2d63a VZ |
4832 | no_cache=0 |
4833 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
4834 | if test "${enable_wxtree+set}" = set; then | |
4835 | enableval="$enable_wxtree" | |
698dcdb6 | 4836 | |
10f2d63a VZ |
4837 | if test "$enableval" = yes; then |
4838 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
4839 | else | |
4840 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
4841 | fi | |
698dcdb6 | 4842 | |
10f2d63a | 4843 | else |
698dcdb6 | 4844 | |
10f2d63a VZ |
4845 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` |
4846 | if test "x$LINE" != x ; then | |
4847 | eval "DEFAULT_$LINE" | |
4848 | else | |
4849 | no_cache=1 | |
4850 | fi | |
4851 | ||
4852 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
698dcdb6 VZ |
4853 | |
4854 | fi | |
10f2d63a VZ |
4855 | |
4856 | ||
4857 | eval "$ac_cv_use_wxtree" | |
4858 | if test "$no_cache" != 1; then | |
4859 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
4860 | fi | |
4861 | ||
4862 | if test "$wxUSE_WXTREE" = yes; then | |
698dcdb6 | 4863 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4864 | else |
698dcdb6 | 4865 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4866 | fi |
698dcdb6 | 4867 | |
10f2d63a | 4868 | |
698dcdb6 VZ |
4869 | |
4870 | ||
4871 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
9f41d601 | 4872 | echo "configure:4873: checking for --enable-controls" >&5 |
10f2d63a VZ |
4873 | no_cache=0 |
4874 | # Check whether --enable-controls or --disable-controls was given. | |
4875 | if test "${enable_controls+set}" = set; then | |
4876 | enableval="$enable_controls" | |
698dcdb6 | 4877 | |
10f2d63a VZ |
4878 | if test "$enableval" = yes; then |
4879 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4880 | else | |
4881 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4882 | fi | |
698dcdb6 | 4883 | |
10f2d63a | 4884 | else |
698dcdb6 | 4885 | |
10f2d63a VZ |
4886 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
4887 | if test "x$LINE" != x ; then | |
4888 | eval "DEFAULT_$LINE" | |
4889 | else | |
4890 | no_cache=1 | |
4891 | fi | |
4892 | ||
4893 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
4894 | |
4895 | fi | |
10f2d63a VZ |
4896 | |
4897 | ||
4898 | eval "$ac_cv_use_controls" | |
4899 | if test "$no_cache" != 1; then | |
4900 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
4901 | fi | |
4902 | ||
4903 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 4904 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4905 | else |
698dcdb6 | 4906 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4907 | fi |
698dcdb6 | 4908 | |
10f2d63a VZ |
4909 | |
4910 | if test "$wxUSE_CONTROLS" = "yes"; then | |
4911 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
4912 | DEFAULT_wxUSE_BMPBUTTON=yes |
4913 | DEFAULT_wxUSE_BUTTON=yes | |
4914 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4915 | DEFAULT_wxUSE_CARET=yes |
4916 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
4917 | DEFAULT_wxUSE_CHECKBOX=yes |
4918 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4919 | DEFAULT_wxUSE_CHOICE=yes | |
4920 | DEFAULT_wxUSE_GAUGE=yes | |
4921 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 4922 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
4923 | DEFAULT_wxUSE_IMAGLIST=yes |
4924 | DEFAULT_wxUSE_LISTBOX=yes | |
4925 | DEFAULT_wxUSE_LISTCTRL=yes | |
4926 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4927 | DEFAULT_wxUSE_RADIOBOX=yes | |
4928 | DEFAULT_wxUSE_RADIOBTN=yes | |
4929 | DEFAULT_wxUSE_SASH=yes | |
4930 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4931 | DEFAULT_wxUSE_SLIDER=yes | |
4932 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 4933 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
4934 | DEFAULT_wxUSE_SPLITTER=yes |
4935 | DEFAULT_wxUSE_STATBMP=yes | |
4936 | DEFAULT_wxUSE_STATBOX=yes | |
4937 | DEFAULT_wxUSE_STATLINE=yes | |
4938 | DEFAULT_wxUSE_STATUSBAR=yes | |
4939 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 4940 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 4941 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
4942 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
4943 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
4944 | DEFAULT_wxUSE_TOOLTIPS=yes |
4945 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 4946 | DEFAULT_wxUSE_POPUPWIN=yes |
10f2d63a VZ |
4947 | elif test "$wxUSE_CONTROLS" = "no"; then |
4948 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
4949 | DEFAULT_wxUSE_BMPBUTTON=no |
4950 | DEFAULT_wxUSE_BUTTON=no | |
4951 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4952 | DEFAULT_wxUSE_CARET=no |
4953 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
4954 | DEFAULT_wxUSE_CHECKBOX=no |
4955 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
4956 | DEFAULT_wxUSE_CHOICE=no | |
4957 | DEFAULT_wxUSE_GAUGE=no | |
4958 | DEFAULT_wxUSE_GRID=no | |
4959 | DEFAULT_wxUSE_NEW_GRID=no | |
4960 | DEFAULT_wxUSE_IMAGLIST=no | |
4961 | DEFAULT_wxUSE_LISTBOX=no | |
4962 | DEFAULT_wxUSE_LISTCTRL=no | |
4963 | DEFAULT_wxUSE_NOTEBOOK=no | |
4964 | DEFAULT_wxUSE_RADIOBOX=no | |
4965 | DEFAULT_wxUSE_RADIOBTN=no | |
4966 | DEFAULT_wxUSE_SASH=no | |
4967 | DEFAULT_wxUSE_SCROLLBAR=no | |
4968 | DEFAULT_wxUSE_SLIDER=no | |
4969 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 4970 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
4971 | DEFAULT_wxUSE_SPLITTER=no |
4972 | DEFAULT_wxUSE_STATBMP=no | |
4973 | DEFAULT_wxUSE_STATBOX=no | |
4974 | DEFAULT_wxUSE_STATLINE=no | |
4975 | DEFAULT_wxUSE_STATUSBAR=no | |
4976 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 4977 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 4978 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
4979 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
4980 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
4981 | DEFAULT_wxUSE_TOOLTIPS=no |
4982 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 4983 | DEFAULT_wxUSE_POPUPWIN=no |
10f2d63a VZ |
4984 | fi |
4985 | ||
698dcdb6 VZ |
4986 | |
4987 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
9f41d601 | 4988 | echo "configure:4989: checking for --enable-accel" >&5 |
10f2d63a VZ |
4989 | no_cache=0 |
4990 | # Check whether --enable-accel or --disable-accel was given. | |
4991 | if test "${enable_accel+set}" = set; then | |
4992 | enableval="$enable_accel" | |
698dcdb6 | 4993 | |
10f2d63a VZ |
4994 | if test "$enableval" = yes; then |
4995 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
4996 | else | |
4997 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
4998 | fi | |
698dcdb6 | 4999 | |
10f2d63a | 5000 | else |
698dcdb6 | 5001 | |
10f2d63a VZ |
5002 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5003 | if test "x$LINE" != x ; then | |
5004 | eval "DEFAULT_$LINE" | |
5005 | else | |
5006 | no_cache=1 | |
5007 | fi | |
5008 | ||
5009 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
5010 | |
5011 | fi | |
10f2d63a VZ |
5012 | |
5013 | ||
5014 | eval "$ac_cv_use_accel" | |
5015 | if test "$no_cache" != 1; then | |
5016 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5017 | fi | |
5018 | ||
5019 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 5020 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5021 | else |
698dcdb6 | 5022 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5023 | fi |
698dcdb6 | 5024 | |
10f2d63a | 5025 | |
1e6feb95 | 5026 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
9f41d601 | 5027 | echo "configure:5028: checking for --enable-button" >&5 |
10f2d63a | 5028 | no_cache=0 |
1e6feb95 VZ |
5029 | # Check whether --enable-button or --disable-button was given. |
5030 | if test "${enable_button+set}" = set; then | |
5031 | enableval="$enable_button" | |
698dcdb6 | 5032 | |
10f2d63a | 5033 | if test "$enableval" = yes; then |
1e6feb95 | 5034 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5035 | else |
1e6feb95 | 5036 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5037 | fi |
698dcdb6 | 5038 | |
10f2d63a | 5039 | else |
698dcdb6 | 5040 | |
1e6feb95 | 5041 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5042 | if test "x$LINE" != x ; then |
5043 | eval "DEFAULT_$LINE" | |
5044 | else | |
5045 | no_cache=1 | |
5046 | fi | |
5047 | ||
1e6feb95 | 5048 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
5049 | |
5050 | fi | |
10f2d63a VZ |
5051 | |
5052 | ||
1e6feb95 | 5053 | eval "$ac_cv_use_button" |
10f2d63a | 5054 | if test "$no_cache" != 1; then |
1e6feb95 | 5055 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5056 | fi |
5057 | ||
1e6feb95 | 5058 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 5059 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5060 | else |
698dcdb6 | 5061 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5062 | fi |
698dcdb6 | 5063 | |
10f2d63a | 5064 | |
698dcdb6 | 5065 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
9f41d601 | 5066 | echo "configure:5067: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5067 | no_cache=0 |
5068 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5069 | if test "${enable_bmpbutton+set}" = set; then | |
5070 | enableval="$enable_bmpbutton" | |
698dcdb6 | 5071 | |
10f2d63a VZ |
5072 | if test "$enableval" = yes; then |
5073 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5074 | else | |
5075 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5076 | fi | |
698dcdb6 | 5077 | |
10f2d63a | 5078 | else |
698dcdb6 | 5079 | |
10f2d63a VZ |
5080 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5081 | if test "x$LINE" != x ; then | |
5082 | eval "DEFAULT_$LINE" | |
5083 | else | |
5084 | no_cache=1 | |
5085 | fi | |
5086 | ||
5087 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5088 | |
5089 | fi | |
10f2d63a VZ |
5090 | |
5091 | ||
5092 | eval "$ac_cv_use_bmpbutton" | |
5093 | if test "$no_cache" != 1; then | |
5094 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5095 | fi | |
5096 | ||
5097 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5098 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5099 | else |
698dcdb6 | 5100 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5101 | fi |
698dcdb6 | 5102 | |
10f2d63a | 5103 | |
1e6feb95 | 5104 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
9f41d601 | 5105 | echo "configure:5106: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5106 | no_cache=0 |
5107 | # Check whether --enable-calendar or --disable-calendar was given. | |
5108 | if test "${enable_calendar+set}" = set; then | |
5109 | enableval="$enable_calendar" | |
5110 | ||
5111 | if test "$enableval" = yes; then | |
5112 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5113 | else | |
5114 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5115 | fi | |
5116 | ||
5117 | else | |
5118 | ||
5119 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5120 | if test "x$LINE" != x ; then | |
5121 | eval "DEFAULT_$LINE" | |
5122 | else | |
5123 | no_cache=1 | |
5124 | fi | |
5125 | ||
5126 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5127 | ||
5128 | fi | |
5129 | ||
5130 | ||
5131 | eval "$ac_cv_use_calendar" | |
5132 | if test "$no_cache" != 1; then | |
5133 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5134 | fi | |
5135 | ||
5136 | if test "$wxUSE_CALCTRL" = yes; then | |
5137 | echo "$ac_t""yes" 1>&6 | |
5138 | else | |
5139 | echo "$ac_t""no" 1>&6 | |
5140 | fi | |
5141 | ||
5142 | ||
5143 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
9f41d601 | 5144 | echo "configure:5145: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5145 | no_cache=0 |
5146 | # Check whether --enable-caret or --disable-caret was given. | |
5147 | if test "${enable_caret+set}" = set; then | |
5148 | enableval="$enable_caret" | |
5149 | ||
5150 | if test "$enableval" = yes; then | |
5151 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5152 | else | |
5153 | ac_cv_use_caret='wxUSE_CARET=no' | |
5154 | fi | |
5155 | ||
5156 | else | |
5157 | ||
5158 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5159 | if test "x$LINE" != x ; then | |
5160 | eval "DEFAULT_$LINE" | |
5161 | else | |
5162 | no_cache=1 | |
5163 | fi | |
5164 | ||
5165 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5166 | ||
5167 | fi | |
5168 | ||
5169 | ||
5170 | eval "$ac_cv_use_caret" | |
5171 | if test "$no_cache" != 1; then | |
5172 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5173 | fi | |
5174 | ||
5175 | if test "$wxUSE_CARET" = yes; then | |
5176 | echo "$ac_t""yes" 1>&6 | |
5177 | else | |
5178 | echo "$ac_t""no" 1>&6 | |
5179 | fi | |
5180 | ||
5181 | ||
698dcdb6 | 5182 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
9f41d601 | 5183 | echo "configure:5184: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5184 | no_cache=0 |
5185 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5186 | if test "${enable_checkbox+set}" = set; then | |
5187 | enableval="$enable_checkbox" | |
698dcdb6 | 5188 | |
10f2d63a VZ |
5189 | if test "$enableval" = yes; then |
5190 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5191 | else | |
5192 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5193 | fi | |
698dcdb6 | 5194 | |
10f2d63a | 5195 | else |
698dcdb6 | 5196 | |
10f2d63a VZ |
5197 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5198 | if test "x$LINE" != x ; then | |
5199 | eval "DEFAULT_$LINE" | |
5200 | else | |
5201 | no_cache=1 | |
5202 | fi | |
5203 | ||
5204 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5205 | |
5206 | fi | |
10f2d63a VZ |
5207 | |
5208 | ||
5209 | eval "$ac_cv_use_checkbox" | |
5210 | if test "$no_cache" != 1; then | |
5211 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5212 | fi | |
5213 | ||
5214 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5215 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5216 | else |
698dcdb6 | 5217 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5218 | fi |
698dcdb6 | 5219 | |
10f2d63a | 5220 | |
698dcdb6 | 5221 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
9f41d601 | 5222 | echo "configure:5223: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5223 | no_cache=0 |
5224 | # Check whether --enable-checklst or --disable-checklst was given. | |
5225 | if test "${enable_checklst+set}" = set; then | |
5226 | enableval="$enable_checklst" | |
698dcdb6 | 5227 | |
10f2d63a VZ |
5228 | if test "$enableval" = yes; then |
5229 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5230 | else | |
5231 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5232 | fi | |
698dcdb6 | 5233 | |
10f2d63a | 5234 | else |
698dcdb6 | 5235 | |
10f2d63a VZ |
5236 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5237 | if test "x$LINE" != x ; then | |
5238 | eval "DEFAULT_$LINE" | |
5239 | else | |
5240 | no_cache=1 | |
5241 | fi | |
5242 | ||
5243 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5244 | |
5245 | fi | |
10f2d63a VZ |
5246 | |
5247 | ||
5248 | eval "$ac_cv_use_checklst" | |
5249 | if test "$no_cache" != 1; then | |
5250 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5251 | fi | |
5252 | ||
5253 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5254 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5255 | else |
698dcdb6 | 5256 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5257 | fi |
698dcdb6 | 5258 | |
10f2d63a | 5259 | |
698dcdb6 | 5260 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
9f41d601 | 5261 | echo "configure:5262: checking for --enable-choice" >&5 |
10f2d63a VZ |
5262 | no_cache=0 |
5263 | # Check whether --enable-choice or --disable-choice was given. | |
5264 | if test "${enable_choice+set}" = set; then | |
5265 | enableval="$enable_choice" | |
698dcdb6 | 5266 | |
10f2d63a VZ |
5267 | if test "$enableval" = yes; then |
5268 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5269 | else | |
5270 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5271 | fi | |
698dcdb6 | 5272 | |
10f2d63a | 5273 | else |
698dcdb6 | 5274 | |
10f2d63a VZ |
5275 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5276 | if test "x$LINE" != x ; then | |
5277 | eval "DEFAULT_$LINE" | |
5278 | else | |
5279 | no_cache=1 | |
5280 | fi | |
5281 | ||
5282 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5283 | |
5284 | fi | |
10f2d63a VZ |
5285 | |
5286 | ||
5287 | eval "$ac_cv_use_choice" | |
5288 | if test "$no_cache" != 1; then | |
5289 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5290 | fi | |
5291 | ||
5292 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5293 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5294 | else |
698dcdb6 | 5295 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5296 | fi |
698dcdb6 | 5297 | |
10f2d63a | 5298 | |
698dcdb6 | 5299 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
9f41d601 | 5300 | echo "configure:5301: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5301 | no_cache=0 |
5302 | # Check whether --enable-combobox or --disable-combobox was given. | |
5303 | if test "${enable_combobox+set}" = set; then | |
5304 | enableval="$enable_combobox" | |
698dcdb6 | 5305 | |
10f2d63a VZ |
5306 | if test "$enableval" = yes; then |
5307 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5308 | else | |
5309 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5310 | fi | |
698dcdb6 | 5311 | |
10f2d63a | 5312 | else |
698dcdb6 | 5313 | |
10f2d63a VZ |
5314 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5315 | if test "x$LINE" != x ; then | |
5316 | eval "DEFAULT_$LINE" | |
5317 | else | |
5318 | no_cache=1 | |
5319 | fi | |
5320 | ||
5321 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5322 | |
5323 | fi | |
10f2d63a VZ |
5324 | |
5325 | ||
5326 | eval "$ac_cv_use_combobox" | |
5327 | if test "$no_cache" != 1; then | |
5328 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5329 | fi | |
5330 | ||
5331 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5332 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5333 | else |
698dcdb6 | 5334 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5335 | fi |
698dcdb6 | 5336 | |
10f2d63a | 5337 | |
698dcdb6 | 5338 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
9f41d601 | 5339 | echo "configure:5340: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5340 | no_cache=0 |
5341 | # Check whether --enable-gauge or --disable-gauge was given. | |
5342 | if test "${enable_gauge+set}" = set; then | |
5343 | enableval="$enable_gauge" | |
698dcdb6 | 5344 | |
10f2d63a VZ |
5345 | if test "$enableval" = yes; then |
5346 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5347 | else | |
5348 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5349 | fi | |
698dcdb6 | 5350 | |
10f2d63a | 5351 | else |
698dcdb6 | 5352 | |
10f2d63a VZ |
5353 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5354 | if test "x$LINE" != x ; then | |
5355 | eval "DEFAULT_$LINE" | |
5356 | else | |
5357 | no_cache=1 | |
5358 | fi | |
5359 | ||
5360 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5361 | |
5362 | fi | |
10f2d63a VZ |
5363 | |
5364 | ||
5365 | eval "$ac_cv_use_gauge" | |
5366 | if test "$no_cache" != 1; then | |
5367 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5368 | fi | |
5369 | ||
5370 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5371 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5372 | else |
698dcdb6 | 5373 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5374 | fi |
698dcdb6 | 5375 | |
10f2d63a | 5376 | |
698dcdb6 | 5377 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
9f41d601 | 5378 | echo "configure:5379: checking for --enable-grid" >&5 |
10f2d63a VZ |
5379 | no_cache=0 |
5380 | # Check whether --enable-grid or --disable-grid was given. | |
5381 | if test "${enable_grid+set}" = set; then | |
5382 | enableval="$enable_grid" | |
698dcdb6 | 5383 | |
10f2d63a VZ |
5384 | if test "$enableval" = yes; then |
5385 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5386 | else | |
5387 | ac_cv_use_grid='wxUSE_GRID=no' | |
5388 | fi | |
698dcdb6 | 5389 | |
10f2d63a | 5390 | else |
698dcdb6 | 5391 | |
10f2d63a VZ |
5392 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5393 | if test "x$LINE" != x ; then | |
5394 | eval "DEFAULT_$LINE" | |
5395 | else | |
5396 | no_cache=1 | |
5397 | fi | |
5398 | ||
5399 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5400 | |
5401 | fi | |
10f2d63a VZ |
5402 | |
5403 | ||
5404 | eval "$ac_cv_use_grid" | |
5405 | if test "$no_cache" != 1; then | |
5406 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5407 | fi | |
5408 | ||
5409 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5410 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5411 | else |
698dcdb6 | 5412 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5413 | fi |
698dcdb6 | 5414 | |
10f2d63a | 5415 | |
698dcdb6 | 5416 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
9f41d601 | 5417 | echo "configure:5418: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5418 | no_cache=0 |
5419 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5420 | if test "${enable_newgrid+set}" = set; then | |
5421 | enableval="$enable_newgrid" | |
698dcdb6 | 5422 | |
10f2d63a VZ |
5423 | if test "$enableval" = yes; then |
5424 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5425 | else | |
5426 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5427 | fi | |
698dcdb6 | 5428 | |
10f2d63a | 5429 | else |
698dcdb6 | 5430 | |
10f2d63a VZ |
5431 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5432 | if test "x$LINE" != x ; then | |
5433 | eval "DEFAULT_$LINE" | |
5434 | else | |
5435 | no_cache=1 | |
5436 | fi | |
5437 | ||
5438 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5439 | |
5440 | fi | |
10f2d63a VZ |
5441 | |
5442 | ||
5443 | eval "$ac_cv_use_newgrid" | |
5444 | if test "$no_cache" != 1; then | |
5445 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5446 | fi | |
5447 | ||
5448 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5449 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5450 | else |
698dcdb6 | 5451 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5452 | fi |
698dcdb6 | 5453 | |
10f2d63a | 5454 | |
698dcdb6 | 5455 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
9f41d601 | 5456 | echo "configure:5457: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5457 | no_cache=0 |
5458 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5459 | if test "${enable_imaglist+set}" = set; then | |
5460 | enableval="$enable_imaglist" | |
698dcdb6 | 5461 | |
10f2d63a VZ |
5462 | if test "$enableval" = yes; then |
5463 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5464 | else | |
5465 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5466 | fi | |
698dcdb6 | 5467 | |
10f2d63a | 5468 | else |
698dcdb6 | 5469 | |
10f2d63a VZ |
5470 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5471 | if test "x$LINE" != x ; then | |
5472 | eval "DEFAULT_$LINE" | |
5473 | else | |
5474 | no_cache=1 | |
5475 | fi | |
5476 | ||
5477 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5478 | |
5479 | fi | |
10f2d63a VZ |
5480 | |
5481 | ||
5482 | eval "$ac_cv_use_imaglist" | |
5483 | if test "$no_cache" != 1; then | |
5484 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5485 | fi | |
5486 | ||
5487 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5488 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5489 | else |
698dcdb6 | 5490 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5491 | fi |
698dcdb6 | 5492 | |
10f2d63a | 5493 | |
698dcdb6 | 5494 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
9f41d601 | 5495 | echo "configure:5496: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5496 | no_cache=0 |
5497 | # Check whether --enable-listbox or --disable-listbox was given. | |
5498 | if test "${enable_listbox+set}" = set; then | |
5499 | enableval="$enable_listbox" | |
698dcdb6 | 5500 | |
10f2d63a VZ |
5501 | if test "$enableval" = yes; then |
5502 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5503 | else | |
5504 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5505 | fi | |
698dcdb6 | 5506 | |
10f2d63a | 5507 | else |
698dcdb6 | 5508 | |
10f2d63a VZ |
5509 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5510 | if test "x$LINE" != x ; then | |
5511 | eval "DEFAULT_$LINE" | |
5512 | else | |
5513 | no_cache=1 | |
5514 | fi | |
5515 | ||
5516 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5517 | |
5518 | fi | |
10f2d63a VZ |
5519 | |
5520 | ||
5521 | eval "$ac_cv_use_listbox" | |
5522 | if test "$no_cache" != 1; then | |
5523 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5524 | fi | |
5525 | ||
5526 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5527 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5528 | else |
698dcdb6 | 5529 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5530 | fi |
698dcdb6 | 5531 | |
10f2d63a | 5532 | |
698dcdb6 | 5533 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
9f41d601 | 5534 | echo "configure:5535: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5535 | no_cache=0 |
5536 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5537 | if test "${enable_listctrl+set}" = set; then | |
5538 | enableval="$enable_listctrl" | |
698dcdb6 | 5539 | |
10f2d63a VZ |
5540 | if test "$enableval" = yes; then |
5541 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5542 | else | |
5543 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5544 | fi | |
698dcdb6 | 5545 | |
10f2d63a | 5546 | else |
698dcdb6 | 5547 | |
10f2d63a VZ |
5548 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5549 | if test "x$LINE" != x ; then | |
5550 | eval "DEFAULT_$LINE" | |
5551 | else | |
5552 | no_cache=1 | |
5553 | fi | |
5554 | ||
5555 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5556 | |
5557 | fi | |
10f2d63a VZ |
5558 | |
5559 | ||
5560 | eval "$ac_cv_use_listctrl" | |
5561 | if test "$no_cache" != 1; then | |
5562 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5563 | fi | |
5564 | ||
5565 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5566 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5567 | else |
698dcdb6 | 5568 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5569 | fi |
698dcdb6 | 5570 | |
10f2d63a | 5571 | |
698dcdb6 | 5572 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
9f41d601 | 5573 | echo "configure:5574: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5574 | no_cache=0 |
5575 | # Check whether --enable-notebook or --disable-notebook was given. | |
5576 | if test "${enable_notebook+set}" = set; then | |
5577 | enableval="$enable_notebook" | |
698dcdb6 | 5578 | |
10f2d63a VZ |
5579 | if test "$enableval" = yes; then |
5580 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5581 | else | |
5582 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5583 | fi | |
698dcdb6 | 5584 | |
10f2d63a | 5585 | else |
698dcdb6 | 5586 | |
10f2d63a VZ |
5587 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5588 | if test "x$LINE" != x ; then | |
5589 | eval "DEFAULT_$LINE" | |
5590 | else | |
5591 | no_cache=1 | |
5592 | fi | |
5593 | ||
5594 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5595 | |
5596 | fi | |
10f2d63a VZ |
5597 | |
5598 | ||
5599 | eval "$ac_cv_use_notebook" | |
5600 | if test "$no_cache" != 1; then | |
5601 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5602 | fi | |
5603 | ||
5604 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5605 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5606 | else |
698dcdb6 | 5607 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5608 | fi |
698dcdb6 | 5609 | |
10f2d63a | 5610 | |
698dcdb6 | 5611 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
9f41d601 | 5612 | echo "configure:5613: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5613 | no_cache=0 |
5614 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5615 | if test "${enable_radiobox+set}" = set; then | |
5616 | enableval="$enable_radiobox" | |
698dcdb6 | 5617 | |
10f2d63a VZ |
5618 | if test "$enableval" = yes; then |
5619 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5620 | else | |
5621 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5622 | fi | |
698dcdb6 | 5623 | |
10f2d63a | 5624 | else |
698dcdb6 | 5625 | |
10f2d63a VZ |
5626 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5627 | if test "x$LINE" != x ; then | |
5628 | eval "DEFAULT_$LINE" | |
5629 | else | |
5630 | no_cache=1 | |
5631 | fi | |
5632 | ||
5633 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5634 | |
5635 | fi | |
10f2d63a VZ |
5636 | |
5637 | ||
5638 | eval "$ac_cv_use_radiobox" | |
5639 | if test "$no_cache" != 1; then | |
5640 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5641 | fi | |
5642 | ||
5643 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5644 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5645 | else |
698dcdb6 | 5646 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5647 | fi |
698dcdb6 | 5648 | |
10f2d63a | 5649 | |
698dcdb6 | 5650 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
9f41d601 | 5651 | echo "configure:5652: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5652 | no_cache=0 |
5653 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5654 | if test "${enable_radiobtn+set}" = set; then | |
5655 | enableval="$enable_radiobtn" | |
698dcdb6 | 5656 | |
10f2d63a VZ |
5657 | if test "$enableval" = yes; then |
5658 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5659 | else | |
5660 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5661 | fi | |
698dcdb6 | 5662 | |
10f2d63a | 5663 | else |
698dcdb6 | 5664 | |
10f2d63a VZ |
5665 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5666 | if test "x$LINE" != x ; then | |
5667 | eval "DEFAULT_$LINE" | |
5668 | else | |
5669 | no_cache=1 | |
5670 | fi | |
5671 | ||
5672 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5673 | |
5674 | fi | |
10f2d63a VZ |
5675 | |
5676 | ||
5677 | eval "$ac_cv_use_radiobtn" | |
5678 | if test "$no_cache" != 1; then | |
5679 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5680 | fi | |
5681 | ||
5682 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5683 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5684 | else |
698dcdb6 | 5685 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5686 | fi |
698dcdb6 | 5687 | |
10f2d63a | 5688 | |
698dcdb6 | 5689 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
9f41d601 | 5690 | echo "configure:5691: checking for --enable-sash" >&5 |
10f2d63a VZ |
5691 | no_cache=0 |
5692 | # Check whether --enable-sash or --disable-sash was given. | |
5693 | if test "${enable_sash+set}" = set; then | |
5694 | enableval="$enable_sash" | |
698dcdb6 | 5695 | |
10f2d63a VZ |
5696 | if test "$enableval" = yes; then |
5697 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5698 | else | |
5699 | ac_cv_use_sash='wxUSE_SASH=no' | |
5700 | fi | |
698dcdb6 | 5701 | |
10f2d63a | 5702 | else |
698dcdb6 | 5703 | |
10f2d63a VZ |
5704 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5705 | if test "x$LINE" != x ; then | |
5706 | eval "DEFAULT_$LINE" | |
5707 | else | |
5708 | no_cache=1 | |
5709 | fi | |
5710 | ||
5711 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5712 | |
5713 | fi | |
10f2d63a VZ |
5714 | |
5715 | ||
5716 | eval "$ac_cv_use_sash" | |
5717 | if test "$no_cache" != 1; then | |
5718 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5719 | fi | |
5720 | ||
5721 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5722 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5723 | else |
698dcdb6 | 5724 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5725 | fi |
698dcdb6 | 5726 | |
10f2d63a | 5727 | |
698dcdb6 | 5728 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
9f41d601 | 5729 | echo "configure:5730: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5730 | no_cache=0 |
5731 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5732 | if test "${enable_scrollbar+set}" = set; then | |
5733 | enableval="$enable_scrollbar" | |
698dcdb6 | 5734 | |
10f2d63a VZ |
5735 | if test "$enableval" = yes; then |
5736 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5737 | else | |
5738 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5739 | fi | |
698dcdb6 | 5740 | |
10f2d63a | 5741 | else |
698dcdb6 | 5742 | |
10f2d63a VZ |
5743 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5744 | if test "x$LINE" != x ; then | |
5745 | eval "DEFAULT_$LINE" | |
5746 | else | |
5747 | no_cache=1 | |
5748 | fi | |
5749 | ||
5750 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5751 | |
5752 | fi | |
10f2d63a VZ |
5753 | |
5754 | ||
5755 | eval "$ac_cv_use_scrollbar" | |
5756 | if test "$no_cache" != 1; then | |
5757 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5758 | fi | |
5759 | ||
5760 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5761 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5762 | else |
698dcdb6 | 5763 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5764 | fi |
698dcdb6 | 5765 | |
10f2d63a | 5766 | |
698dcdb6 | 5767 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
9f41d601 | 5768 | echo "configure:5769: checking for --enable-slider" >&5 |
10f2d63a VZ |
5769 | no_cache=0 |
5770 | # Check whether --enable-slider or --disable-slider was given. | |
5771 | if test "${enable_slider+set}" = set; then | |
5772 | enableval="$enable_slider" | |
698dcdb6 | 5773 | |
10f2d63a VZ |
5774 | if test "$enableval" = yes; then |
5775 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5776 | else | |
5777 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5778 | fi | |
698dcdb6 | 5779 | |
10f2d63a | 5780 | else |
698dcdb6 | 5781 | |
10f2d63a VZ |
5782 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5783 | if test "x$LINE" != x ; then | |
5784 | eval "DEFAULT_$LINE" | |
5785 | else | |
5786 | no_cache=1 | |
5787 | fi | |
5788 | ||
5789 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
5790 | |
5791 | fi | |
10f2d63a VZ |
5792 | |
5793 | ||
5794 | eval "$ac_cv_use_slider" | |
5795 | if test "$no_cache" != 1; then | |
5796 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5797 | fi | |
5798 | ||
5799 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 5800 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5801 | else |
698dcdb6 | 5802 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5803 | fi |
698dcdb6 | 5804 | |
10f2d63a | 5805 | |
698dcdb6 | 5806 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
9f41d601 | 5807 | echo "configure:5808: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
5808 | no_cache=0 |
5809 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5810 | if test "${enable_spinbtn+set}" = set; then | |
5811 | enableval="$enable_spinbtn" | |
698dcdb6 | 5812 | |
10f2d63a VZ |
5813 | if test "$enableval" = yes; then |
5814 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5815 | else | |
5816 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5817 | fi | |
698dcdb6 | 5818 | |
10f2d63a | 5819 | else |
698dcdb6 | 5820 | |
10f2d63a VZ |
5821 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
5822 | if test "x$LINE" != x ; then | |
5823 | eval "DEFAULT_$LINE" | |
5824 | else | |
5825 | no_cache=1 | |
5826 | fi | |
5827 | ||
5828 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
5829 | |
5830 | fi | |
10f2d63a VZ |
5831 | |
5832 | ||
5833 | eval "$ac_cv_use_spinbtn" | |
5834 | if test "$no_cache" != 1; then | |
5835 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5836 | fi | |
5837 | ||
5838 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 5839 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5840 | else |
698dcdb6 | 5841 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5842 | fi |
698dcdb6 | 5843 | |
10f2d63a | 5844 | |
698dcdb6 | 5845 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
9f41d601 | 5846 | echo "configure:5847: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
5847 | no_cache=0 |
5848 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5849 | if test "${enable_spinctrl+set}" = set; then | |
5850 | enableval="$enable_spinctrl" | |
698dcdb6 | 5851 | |
56cfaa52 RR |
5852 | if test "$enableval" = yes; then |
5853 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5854 | else | |
5855 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
5856 | fi | |
698dcdb6 | 5857 | |
56cfaa52 | 5858 | else |
698dcdb6 | 5859 | |
56cfaa52 RR |
5860 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
5861 | if test "x$LINE" != x ; then | |
5862 | eval "DEFAULT_$LINE" | |
5863 | else | |
5864 | no_cache=1 | |
5865 | fi | |
5866 | ||
5867 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
5868 | |
5869 | fi | |
56cfaa52 RR |
5870 | |
5871 | ||
5872 | eval "$ac_cv_use_spinctrl" | |
5873 | if test "$no_cache" != 1; then | |
5874 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
5875 | fi | |
5876 | ||
5877 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 5878 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 5879 | else |
698dcdb6 | 5880 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 5881 | fi |
698dcdb6 | 5882 | |
56cfaa52 | 5883 | |
698dcdb6 | 5884 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
9f41d601 | 5885 | echo "configure:5886: checking for --enable-splitter" >&5 |
10f2d63a VZ |
5886 | no_cache=0 |
5887 | # Check whether --enable-splitter or --disable-splitter was given. | |
5888 | if test "${enable_splitter+set}" = set; then | |
5889 | enableval="$enable_splitter" | |
698dcdb6 | 5890 | |
10f2d63a VZ |
5891 | if test "$enableval" = yes; then |
5892 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
5893 | else | |
5894 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
5895 | fi | |
698dcdb6 | 5896 | |
10f2d63a | 5897 | else |
698dcdb6 | 5898 | |
10f2d63a VZ |
5899 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
5900 | if test "x$LINE" != x ; then | |
5901 | eval "DEFAULT_$LINE" | |
5902 | else | |
5903 | no_cache=1 | |
5904 | fi | |
5905 | ||
5906 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
5907 | |
5908 | fi | |
10f2d63a VZ |
5909 | |
5910 | ||
5911 | eval "$ac_cv_use_splitter" | |
5912 | if test "$no_cache" != 1; then | |
5913 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
5914 | fi | |
5915 | ||
5916 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 5917 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5918 | else |
698dcdb6 | 5919 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5920 | fi |
698dcdb6 | 5921 | |
10f2d63a | 5922 | |
698dcdb6 | 5923 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
9f41d601 | 5924 | echo "configure:5925: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
5925 | no_cache=0 |
5926 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
5927 | if test "${enable_statbmp+set}" = set; then | |
5928 | enableval="$enable_statbmp" | |
698dcdb6 | 5929 | |
10f2d63a VZ |
5930 | if test "$enableval" = yes; then |
5931 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
5932 | else | |
5933 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
5934 | fi | |
698dcdb6 | 5935 | |
10f2d63a | 5936 | else |
698dcdb6 | 5937 | |
10f2d63a VZ |
5938 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
5939 | if test "x$LINE" != x ; then | |
5940 | eval "DEFAULT_$LINE" | |
5941 | else | |
5942 | no_cache=1 | |
5943 | fi | |
5944 | ||
5945 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
5946 | |
5947 | fi | |
10f2d63a VZ |
5948 | |
5949 | ||
5950 | eval "$ac_cv_use_statbmp" | |
5951 | if test "$no_cache" != 1; then | |
5952 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
5953 | fi | |
5954 | ||
5955 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 5956 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5957 | else |
698dcdb6 | 5958 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5959 | fi |
698dcdb6 | 5960 | |
10f2d63a | 5961 | |
698dcdb6 | 5962 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
9f41d601 | 5963 | echo "configure:5964: checking for --enable-statbox" >&5 |
10f2d63a VZ |
5964 | no_cache=0 |
5965 | # Check whether --enable-statbox or --disable-statbox was given. | |
5966 | if test "${enable_statbox+set}" = set; then | |
5967 | enableval="$enable_statbox" | |
698dcdb6 | 5968 | |
10f2d63a VZ |
5969 | if test "$enableval" = yes; then |
5970 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
5971 | else | |
5972 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
5973 | fi | |
698dcdb6 | 5974 | |
10f2d63a | 5975 | else |
698dcdb6 | 5976 | |
10f2d63a VZ |
5977 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
5978 | if test "x$LINE" != x ; then | |
5979 | eval "DEFAULT_$LINE" | |
5980 | else | |
5981 | no_cache=1 | |
5982 | fi | |
5983 | ||
5984 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
5985 | |
5986 | fi | |
10f2d63a VZ |
5987 | |
5988 | ||
5989 | eval "$ac_cv_use_statbox" | |
5990 | if test "$no_cache" != 1; then | |
5991 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
5992 | fi | |
5993 | ||
5994 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 5995 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5996 | else |
698dcdb6 | 5997 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5998 | fi |
698dcdb6 | 5999 | |
10f2d63a | 6000 | |
698dcdb6 | 6001 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
9f41d601 | 6002 | echo "configure:6003: checking for --enable-statline" >&5 |
10f2d63a VZ |
6003 | no_cache=0 |
6004 | # Check whether --enable-statline or --disable-statline was given. | |
6005 | if test "${enable_statline+set}" = set; then | |
6006 | enableval="$enable_statline" | |
698dcdb6 | 6007 | |
10f2d63a VZ |
6008 | if test "$enableval" = yes; then |
6009 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6010 | else | |
6011 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6012 | fi | |
698dcdb6 | 6013 | |
10f2d63a | 6014 | else |
698dcdb6 | 6015 | |
10f2d63a VZ |
6016 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6017 | if test "x$LINE" != x ; then | |
6018 | eval "DEFAULT_$LINE" | |
6019 | else | |
6020 | no_cache=1 | |
6021 | fi | |
6022 | ||
6023 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
6024 | |
6025 | fi | |
10f2d63a VZ |
6026 | |
6027 | ||
6028 | eval "$ac_cv_use_statline" | |
6029 | if test "$no_cache" != 1; then | |
6030 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6031 | fi | |
6032 | ||
6033 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 6034 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6035 | else |
698dcdb6 | 6036 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6037 | fi |
698dcdb6 | 6038 | |
10f2d63a | 6039 | |
1e6feb95 | 6040 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
9f41d601 | 6041 | echo "configure:6042: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6042 | no_cache=0 |
6043 | # Check whether --enable-stattext or --disable-stattext was given. | |
6044 | if test "${enable_stattext+set}" = set; then | |
6045 | enableval="$enable_stattext" | |
6046 | ||
6047 | if test "$enableval" = yes; then | |
6048 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6049 | else | |
6050 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6051 | fi | |
6052 | ||
6053 | else | |
6054 | ||
6055 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6056 | if test "x$LINE" != x ; then | |
6057 | eval "DEFAULT_$LINE" | |
6058 | else | |
6059 | no_cache=1 | |
6060 | fi | |
6061 | ||
6062 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6063 | ||
6064 | fi | |
6065 | ||
6066 | ||
6067 | eval "$ac_cv_use_stattext" | |
6068 | if test "$no_cache" != 1; then | |
6069 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6070 | fi | |
6071 | ||
6072 | if test "$wxUSE_STATTEXT" = yes; then | |
6073 | echo "$ac_t""yes" 1>&6 | |
6074 | else | |
6075 | echo "$ac_t""no" 1>&6 | |
6076 | fi | |
6077 | ||
6078 | ||
698dcdb6 | 6079 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
9f41d601 | 6080 | echo "configure:6081: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6081 | no_cache=0 |
6082 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6083 | if test "${enable_statusbar+set}" = set; then | |
6084 | enableval="$enable_statusbar" | |
698dcdb6 | 6085 | |
10f2d63a VZ |
6086 | if test "$enableval" = yes; then |
6087 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6088 | else | |
6089 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6090 | fi | |
698dcdb6 | 6091 | |
10f2d63a | 6092 | else |
698dcdb6 | 6093 | |
10f2d63a VZ |
6094 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6095 | if test "x$LINE" != x ; then | |
6096 | eval "DEFAULT_$LINE" | |
6097 | else | |
6098 | no_cache=1 | |
6099 | fi | |
6100 | ||
6101 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6102 | |
6103 | fi | |
10f2d63a VZ |
6104 | |
6105 | ||
6106 | eval "$ac_cv_use_statusbar" | |
6107 | if test "$no_cache" != 1; then | |
6108 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6109 | fi | |
6110 | ||
6111 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6112 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6113 | else |
698dcdb6 | 6114 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6115 | fi |
698dcdb6 | 6116 | |
10f2d63a | 6117 | |
698dcdb6 | 6118 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
9f41d601 | 6119 | echo "configure:6120: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6120 | no_cache=0 |
6121 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6122 | if test "${enable_tabdialog+set}" = set; then | |
6123 | enableval="$enable_tabdialog" | |
698dcdb6 | 6124 | |
10f2d63a VZ |
6125 | if test "$enableval" = yes; then |
6126 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6127 | else | |
6128 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6129 | fi | |
698dcdb6 | 6130 | |
10f2d63a | 6131 | else |
698dcdb6 | 6132 | |
10f2d63a VZ |
6133 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6134 | if test "x$LINE" != x ; then | |
6135 | eval "DEFAULT_$LINE" | |
6136 | else | |
6137 | no_cache=1 | |
6138 | fi | |
6139 | ||
6140 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6141 | |
6142 | fi | |
10f2d63a VZ |
6143 | |
6144 | ||
6145 | eval "$ac_cv_use_tabdialog" | |
6146 | if test "$no_cache" != 1; then | |
6147 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6148 | fi | |
6149 | ||
6150 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6151 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6152 | else |
698dcdb6 | 6153 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6154 | fi |
698dcdb6 | 6155 | |
10f2d63a | 6156 | |
1e6feb95 | 6157 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
9f41d601 | 6158 | echo "configure:6159: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6159 | no_cache=0 |
6160 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6161 | if test "${enable_textctrl+set}" = set; then | |
6162 | enableval="$enable_textctrl" | |
6163 | ||
6164 | if test "$enableval" = yes; then | |
6165 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6166 | else | |
6167 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6168 | fi | |
6169 | ||
6170 | else | |
6171 | ||
6172 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6173 | if test "x$LINE" != x ; then | |
6174 | eval "DEFAULT_$LINE" | |
6175 | else | |
6176 | no_cache=1 | |
6177 | fi | |
6178 | ||
6179 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6180 | ||
6181 | fi | |
6182 | ||
6183 | ||
6184 | eval "$ac_cv_use_textctrl" | |
6185 | if test "$no_cache" != 1; then | |
6186 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6187 | fi | |
6188 | ||
6189 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6190 | echo "$ac_t""yes" 1>&6 | |
6191 | else | |
6192 | echo "$ac_t""no" 1>&6 | |
6193 | fi | |
6194 | ||
6195 | ||
698dcdb6 | 6196 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
9f41d601 | 6197 | echo "configure:6198: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6198 | no_cache=0 |
6199 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6200 | if test "${enable_togglebtn+set}" = set; then | |
6201 | enableval="$enable_togglebtn" | |
698dcdb6 | 6202 | |
1db8dc4a VZ |
6203 | if test "$enableval" = yes; then |
6204 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6205 | else | |
6206 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6207 | fi | |
698dcdb6 | 6208 | |
1db8dc4a | 6209 | else |
698dcdb6 | 6210 | |
1db8dc4a VZ |
6211 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6212 | if test "x$LINE" != x ; then | |
6213 | eval "DEFAULT_$LINE" | |
6214 | else | |
6215 | no_cache=1 | |
6216 | fi | |
6217 | ||
6218 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6219 | |
6220 | fi | |
1db8dc4a VZ |
6221 | |
6222 | ||
6223 | eval "$ac_cv_use_togglebtn" | |
6224 | if test "$no_cache" != 1; then | |
6225 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6226 | fi | |
6227 | ||
6228 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6229 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6230 | else |
698dcdb6 | 6231 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6232 | fi |
698dcdb6 | 6233 | |
1db8dc4a | 6234 | |
698dcdb6 | 6235 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
9f41d601 | 6236 | echo "configure:6237: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6237 | no_cache=0 |
6238 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6239 | if test "${enable_toolbar+set}" = set; then | |
6240 | enableval="$enable_toolbar" | |
698dcdb6 | 6241 | |
10f2d63a VZ |
6242 | if test "$enableval" = yes; then |
6243 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6244 | else | |
6245 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6246 | fi | |
698dcdb6 | 6247 | |
10f2d63a | 6248 | else |
698dcdb6 | 6249 | |
10f2d63a VZ |
6250 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6251 | if test "x$LINE" != x ; then | |
6252 | eval "DEFAULT_$LINE" | |
6253 | else | |
6254 | no_cache=1 | |
6255 | fi | |
6256 | ||
6257 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6258 | |
6259 | fi | |
10f2d63a VZ |
6260 | |
6261 | ||
6262 | eval "$ac_cv_use_toolbar" | |
6263 | if test "$no_cache" != 1; then | |
6264 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6265 | fi | |
6266 | ||
6267 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6268 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6269 | else |
698dcdb6 | 6270 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6271 | fi |
698dcdb6 | 6272 | |
10f2d63a | 6273 | |
698dcdb6 | 6274 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
9f41d601 | 6275 | echo "configure:6276: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6276 | no_cache=0 |
6277 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6278 | if test "${enable_tbarnative+set}" = set; then | |
6279 | enableval="$enable_tbarnative" | |
698dcdb6 | 6280 | |
360d6699 VZ |
6281 | if test "$enableval" = yes; then |
6282 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6283 | else | |
6284 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6285 | fi | |
698dcdb6 | 6286 | |
360d6699 | 6287 | else |
698dcdb6 | 6288 | |
360d6699 VZ |
6289 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6290 | if test "x$LINE" != x ; then | |
6291 | eval "DEFAULT_$LINE" | |
6292 | else | |
6293 | no_cache=1 | |
6294 | fi | |
6295 | ||
6296 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6297 | |
6298 | fi | |
360d6699 VZ |
6299 | |
6300 | ||
6301 | eval "$ac_cv_use_tbarnative" | |
6302 | if test "$no_cache" != 1; then | |
6303 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6304 | fi | |
6305 | ||
6306 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6307 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6308 | else |
698dcdb6 | 6309 | echo "$ac_t""no" 1>&6 |
360d6699 | 6310 | fi |
698dcdb6 | 6311 | |
360d6699 | 6312 | |
698dcdb6 | 6313 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
9f41d601 | 6314 | echo "configure:6315: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6315 | no_cache=0 |
6316 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6317 | if test "${enable_tbarsmpl+set}" = set; then | |
6318 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6319 | |
360d6699 VZ |
6320 | if test "$enableval" = yes; then |
6321 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6322 | else | |
6323 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6324 | fi | |
698dcdb6 | 6325 | |
360d6699 | 6326 | else |
698dcdb6 | 6327 | |
360d6699 VZ |
6328 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6329 | if test "x$LINE" != x ; then | |
6330 | eval "DEFAULT_$LINE" | |
6331 | else | |
6332 | no_cache=1 | |
6333 | fi | |
6334 | ||
6335 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6336 | |
6337 | fi | |
360d6699 VZ |
6338 | |
6339 | ||
6340 | eval "$ac_cv_use_tbarsmpl" | |
6341 | if test "$no_cache" != 1; then | |
6342 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6343 | fi | |
6344 | ||
6345 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6346 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6347 | else |
698dcdb6 | 6348 | echo "$ac_t""no" 1>&6 |
360d6699 | 6349 | fi |
698dcdb6 | 6350 | |
360d6699 | 6351 | |
698dcdb6 | 6352 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
9f41d601 | 6353 | echo "configure:6354: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6354 | no_cache=0 |
6355 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6356 | if test "${enable_treectrl+set}" = set; then | |
6357 | enableval="$enable_treectrl" | |
698dcdb6 | 6358 | |
10f2d63a VZ |
6359 | if test "$enableval" = yes; then |
6360 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6361 | else | |
6362 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6363 | fi | |
698dcdb6 | 6364 | |
10f2d63a | 6365 | else |
698dcdb6 | 6366 | |
10f2d63a VZ |
6367 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6368 | if test "x$LINE" != x ; then | |
6369 | eval "DEFAULT_$LINE" | |
6370 | else | |
6371 | no_cache=1 | |
6372 | fi | |
6373 | ||
6374 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6375 | |
6376 | fi | |
10f2d63a VZ |
6377 | |
6378 | ||
1e6feb95 VZ |
6379 | eval "$ac_cv_use_treectrl" |
6380 | if test "$no_cache" != 1; then | |
6381 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6382 | fi | |
6383 | ||
6384 | if test "$wxUSE_TREECTRL" = yes; then | |
6385 | echo "$ac_t""yes" 1>&6 | |
6386 | else | |
6387 | echo "$ac_t""no" 1>&6 | |
6388 | fi | |
6389 | ||
6390 | ||
9f41d601 RR |
6391 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
6392 | echo "configure:6393: checking for --enable-popupwin" >&5 | |
6393 | no_cache=0 | |
6394 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6395 | if test "${enable_popupwin+set}" = set; then | |
6396 | enableval="$enable_popupwin" | |
6397 | ||
6398 | if test "$enableval" = yes; then | |
6399 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6400 | else | |
6401 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6402 | fi | |
6403 | ||
6404 | else | |
6405 | ||
6406 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6407 | if test "x$LINE" != x ; then | |
6408 | eval "DEFAULT_$LINE" | |
6409 | else | |
6410 | no_cache=1 | |
6411 | fi | |
6412 | ||
6413 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6414 | ||
6415 | fi | |
6416 | ||
6417 | ||
6418 | eval "$ac_cv_use_popupwin" | |
6419 | if test "$no_cache" != 1; then | |
6420 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
6421 | fi | |
6422 | ||
6423 | if test "$wxUSE_POPUPWIN" = yes; then | |
6424 | echo "$ac_t""yes" 1>&6 | |
6425 | else | |
6426 | echo "$ac_t""no" 1>&6 | |
6427 | fi | |
6428 | ||
6429 | ||
1e6feb95 VZ |
6430 | |
6431 | ||
6432 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
9f41d601 | 6433 | echo "configure:6434: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6434 | no_cache=0 |
6435 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6436 | if test "${enable_commondlg+set}" = set; then | |
6437 | enableval="$enable_commondlg" | |
6438 | ||
6439 | if test "$enableval" = yes; then | |
6440 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6441 | else | |
6442 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6443 | fi | |
6444 | ||
6445 | else | |
6446 | ||
6447 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6448 | if test "x$LINE" != x ; then | |
6449 | eval "DEFAULT_$LINE" | |
6450 | else | |
6451 | no_cache=1 | |
6452 | fi | |
6453 | ||
6454 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6455 | ||
6456 | fi | |
6457 | ||
6458 | ||
6459 | eval "$ac_cv_use_commondlg" | |
6460 | if test "$no_cache" != 1; then | |
6461 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6462 | fi | |
6463 | ||
6464 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6465 | echo "$ac_t""yes" 1>&6 | |
6466 | else | |
6467 | echo "$ac_t""no" 1>&6 | |
6468 | fi | |
6469 | ||
6470 | ||
6471 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
9f41d601 | 6472 | echo "configure:6473: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6473 | no_cache=0 |
6474 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6475 | if test "${enable_choicedlg+set}" = set; then | |
6476 | enableval="$enable_choicedlg" | |
6477 | ||
6478 | if test "$enableval" = yes; then | |
6479 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6480 | else | |
6481 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6482 | fi | |
6483 | ||
6484 | else | |
6485 | ||
6486 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6487 | if test "x$LINE" != x ; then | |
6488 | eval "DEFAULT_$LINE" | |
6489 | else | |
6490 | no_cache=1 | |
6491 | fi | |
6492 | ||
6493 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6494 | ||
6495 | fi | |
6496 | ||
6497 | ||
6498 | eval "$ac_cv_use_choicedlg" | |
6499 | if test "$no_cache" != 1; then | |
6500 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6501 | fi | |
6502 | ||
6503 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6504 | echo "$ac_t""yes" 1>&6 | |
6505 | else | |
6506 | echo "$ac_t""no" 1>&6 | |
6507 | fi | |
6508 | ||
6509 | ||
6510 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
9f41d601 | 6511 | echo "configure:6512: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6512 | no_cache=0 |
6513 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6514 | if test "${enable_coldlg+set}" = set; then | |
6515 | enableval="$enable_coldlg" | |
6516 | ||
6517 | if test "$enableval" = yes; then | |
6518 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6519 | else | |
6520 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6521 | fi | |
6522 | ||
6523 | else | |
6524 | ||
6525 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6526 | if test "x$LINE" != x ; then | |
6527 | eval "DEFAULT_$LINE" | |
6528 | else | |
6529 | no_cache=1 | |
6530 | fi | |
6531 | ||
6532 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6533 | ||
6534 | fi | |
6535 | ||
6536 | ||
6537 | eval "$ac_cv_use_coldlg" | |
6538 | if test "$no_cache" != 1; then | |
6539 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6540 | fi | |
6541 | ||
6542 | if test "$wxUSE_COLOURDLG" = yes; then | |
6543 | echo "$ac_t""yes" 1>&6 | |
6544 | else | |
6545 | echo "$ac_t""no" 1>&6 | |
6546 | fi | |
6547 | ||
6548 | ||
6549 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
9f41d601 | 6550 | echo "configure:6551: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6551 | no_cache=0 |
6552 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6553 | if test "${enable_filedlg+set}" = set; then | |
6554 | enableval="$enable_filedlg" | |
6555 | ||
6556 | if test "$enableval" = yes; then | |
6557 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6558 | else | |
6559 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6560 | fi | |
6561 | ||
6562 | else | |
6563 | ||
6564 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6565 | if test "x$LINE" != x ; then | |
6566 | eval "DEFAULT_$LINE" | |
6567 | else | |
6568 | no_cache=1 | |
6569 | fi | |
6570 | ||
6571 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6572 | ||
6573 | fi | |
6574 | ||
6575 | ||
6576 | eval "$ac_cv_use_filedlg" | |
6577 | if test "$no_cache" != 1; then | |
6578 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6579 | fi | |
6580 | ||
6581 | if test "$wxUSE_FILEDLG" = yes; then | |
6582 | echo "$ac_t""yes" 1>&6 | |
6583 | else | |
6584 | echo "$ac_t""no" 1>&6 | |
6585 | fi | |
6586 | ||
6587 | ||
6588 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 | |
9f41d601 | 6589 | echo "configure:6590: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6590 | no_cache=0 |
6591 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6592 | if test "${enable_fontdlg+set}" = set; then | |
6593 | enableval="$enable_fontdlg" | |
6594 | ||
6595 | if test "$enableval" = yes; then | |
6596 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6597 | else | |
6598 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6599 | fi | |
6600 | ||
6601 | else | |
6602 | ||
6603 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6604 | if test "x$LINE" != x ; then | |
6605 | eval "DEFAULT_$LINE" | |
6606 | else | |
6607 | no_cache=1 | |
6608 | fi | |
6609 | ||
6610 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6611 | ||
6612 | fi | |
6613 | ||
6614 | ||
6615 | eval "$ac_cv_use_fontdlg" | |
6616 | if test "$no_cache" != 1; then | |
6617 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6618 | fi | |
6619 | ||
6620 | if test "$wxUSE_FONTDLG" = yes; then | |
6621 | echo "$ac_t""yes" 1>&6 | |
6622 | else | |
6623 | echo "$ac_t""no" 1>&6 | |
6624 | fi | |
6625 | ||
6626 | ||
6627 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
9f41d601 | 6628 | echo "configure:6629: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6629 | no_cache=0 |
6630 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6631 | if test "${enable_dirdlg+set}" = set; then | |
6632 | enableval="$enable_dirdlg" | |
6633 | ||
6634 | if test "$enableval" = yes; then | |
6635 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6636 | else | |
6637 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6638 | fi | |
6639 | ||
6640 | else | |
6641 | ||
6642 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6643 | if test "x$LINE" != x ; then | |
6644 | eval "DEFAULT_$LINE" | |
6645 | else | |
6646 | no_cache=1 | |
6647 | fi | |
6648 | ||
6649 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6650 | ||
6651 | fi | |
6652 | ||
6653 | ||
6654 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6655 | if test "$no_cache" != 1; then |
1e6feb95 | 6656 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6657 | fi |
6658 | ||
1e6feb95 | 6659 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6660 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6661 | else |
698dcdb6 | 6662 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6663 | fi |
698dcdb6 VZ |
6664 | |
6665 | ||
1e6feb95 | 6666 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
9f41d601 | 6667 | echo "configure:6668: checking for --enable-msgdlg" >&5 |
10f2d63a | 6668 | no_cache=0 |
1e6feb95 VZ |
6669 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6670 | if test "${enable_msgdlg+set}" = set; then | |
6671 | enableval="$enable_msgdlg" | |
698dcdb6 | 6672 | |
10f2d63a | 6673 | if test "$enableval" = yes; then |
1e6feb95 | 6674 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6675 | else |
1e6feb95 | 6676 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6677 | fi |
698dcdb6 | 6678 | |
10f2d63a | 6679 | else |
698dcdb6 | 6680 | |
1e6feb95 | 6681 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6682 | if test "x$LINE" != x ; then |
6683 | eval "DEFAULT_$LINE" | |
6684 | else | |
6685 | no_cache=1 | |
6686 | fi | |
6687 | ||
1e6feb95 | 6688 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6689 | |
6690 | fi | |
10f2d63a VZ |
6691 | |
6692 | ||
1e6feb95 | 6693 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6694 | if test "$no_cache" != 1; then |
1e6feb95 | 6695 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6696 | fi |
6697 | ||
1e6feb95 | 6698 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6699 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6700 | else |
698dcdb6 | 6701 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6702 | fi |
698dcdb6 | 6703 | |
10f2d63a | 6704 | |
1e6feb95 | 6705 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
9f41d601 | 6706 | echo "configure:6707: checking for --enable-numberdlg" >&5 |
10f2d63a | 6707 | no_cache=0 |
1e6feb95 VZ |
6708 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6709 | if test "${enable_numberdlg+set}" = set; then | |
6710 | enableval="$enable_numberdlg" | |
698dcdb6 | 6711 | |
10f2d63a | 6712 | if test "$enableval" = yes; then |
1e6feb95 | 6713 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6714 | else |
1e6feb95 | 6715 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6716 | fi |
698dcdb6 | 6717 | |
10f2d63a | 6718 | else |
698dcdb6 | 6719 | |
1e6feb95 | 6720 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6721 | if test "x$LINE" != x ; then |
6722 | eval "DEFAULT_$LINE" | |
6723 | else | |
6724 | no_cache=1 | |
6725 | fi | |
6726 | ||
1e6feb95 | 6727 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6728 | |
6729 | fi | |
10f2d63a VZ |
6730 | |
6731 | ||
1e6feb95 | 6732 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6733 | if test "$no_cache" != 1; then |
1e6feb95 | 6734 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6735 | fi |
6736 | ||
1e6feb95 | 6737 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6738 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6739 | else |
698dcdb6 | 6740 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6741 | fi |
698dcdb6 | 6742 | |
10f2d63a | 6743 | |
698dcdb6 | 6744 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
9f41d601 | 6745 | echo "configure:6746: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
6746 | no_cache=0 |
6747 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
6748 | if test "${enable_textdlg+set}" = set; then | |
6749 | enableval="$enable_textdlg" | |
698dcdb6 | 6750 | |
10f2d63a VZ |
6751 | if test "$enableval" = yes; then |
6752 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
6753 | else | |
6754 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
6755 | fi | |
698dcdb6 | 6756 | |
10f2d63a | 6757 | else |
698dcdb6 | 6758 | |
10f2d63a VZ |
6759 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
6760 | if test "x$LINE" != x ; then | |
6761 | eval "DEFAULT_$LINE" | |
6762 | else | |
6763 | no_cache=1 | |
6764 | fi | |
6765 | ||
6766 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
6767 | |
6768 | fi | |
10f2d63a VZ |
6769 | |
6770 | ||
6771 | eval "$ac_cv_use_textdlg" | |
6772 | if test "$no_cache" != 1; then | |
6773 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
6774 | fi | |
6775 | ||
6776 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 6777 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6778 | else |
698dcdb6 | 6779 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6780 | fi |
698dcdb6 | 6781 | |
10f2d63a | 6782 | |
698dcdb6 | 6783 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
9f41d601 | 6784 | echo "configure:6785: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
6785 | no_cache=0 |
6786 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
6787 | if test "${enable_tipdlg+set}" = set; then | |
6788 | enableval="$enable_tipdlg" | |
698dcdb6 | 6789 | |
10f2d63a VZ |
6790 | if test "$enableval" = yes; then |
6791 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
6792 | else | |
6793 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
6794 | fi | |
698dcdb6 | 6795 | |
10f2d63a | 6796 | else |
698dcdb6 | 6797 | |
10f2d63a VZ |
6798 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
6799 | if test "x$LINE" != x ; then | |
6800 | eval "DEFAULT_$LINE" | |
6801 | else | |
6802 | no_cache=1 | |
6803 | fi | |
6804 | ||
6805 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
6806 | |
6807 | fi | |
10f2d63a VZ |
6808 | |
6809 | ||
6810 | eval "$ac_cv_use_tipdlg" | |
6811 | if test "$no_cache" != 1; then | |
6812 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
6813 | fi | |
6814 | ||
6815 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 6816 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6817 | else |
698dcdb6 | 6818 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6819 | fi |
698dcdb6 | 6820 | |
10f2d63a | 6821 | |
698dcdb6 | 6822 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
9f41d601 | 6823 | echo "configure:6824: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
6824 | no_cache=0 |
6825 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
6826 | if test "${enable_progressdlg+set}" = set; then | |
6827 | enableval="$enable_progressdlg" | |
698dcdb6 | 6828 | |
10f2d63a VZ |
6829 | if test "$enableval" = yes; then |
6830 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
6831 | else | |
6832 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
6833 | fi | |
698dcdb6 | 6834 | |
10f2d63a | 6835 | else |
698dcdb6 | 6836 | |
10f2d63a VZ |
6837 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
6838 | if test "x$LINE" != x ; then | |
6839 | eval "DEFAULT_$LINE" | |
6840 | else | |
6841 | no_cache=1 | |
6842 | fi | |
6843 | ||
6844 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
6845 | |
6846 | fi | |
10f2d63a VZ |
6847 | |
6848 | ||
6849 | eval "$ac_cv_use_progressdlg" | |
6850 | if test "$no_cache" != 1; then | |
6851 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
6852 | fi | |
6853 | ||
6854 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 6855 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6856 | else |
698dcdb6 | 6857 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6858 | fi |
698dcdb6 | 6859 | |
10f2d63a | 6860 | |
b1f5d087 | 6861 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
9f41d601 | 6862 | echo "configure:6863: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
6863 | no_cache=0 |
6864 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
6865 | if test "${enable_wizarddlg+set}" = set; then | |
6866 | enableval="$enable_wizarddlg" | |
6867 | ||
6868 | if test "$enableval" = yes; then | |
6869 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
6870 | else | |
6871 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
6872 | fi | |
6873 | ||
6874 | else | |
6875 | ||
6876 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
6877 | if test "x$LINE" != x ; then | |
6878 | eval "DEFAULT_$LINE" | |
6879 | else | |
6880 | no_cache=1 | |
6881 | fi | |
6882 | ||
6883 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
6884 | ||
6885 | fi | |
6886 | ||
6887 | ||
6888 | eval "$ac_cv_use_wizarddlg" | |
6889 | if test "$no_cache" != 1; then | |
6890 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
6891 | fi | |
6892 | ||
6893 | if test "$wxUSE_WIZARDDLG" = yes; then | |
6894 | echo "$ac_t""yes" 1>&6 | |
6895 | else | |
6896 | echo "$ac_t""no" 1>&6 | |
6897 | fi | |
6898 | ||
6899 | ||
6900 | ||
6901 | ||
1e6feb95 | 6902 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
9f41d601 | 6903 | echo "configure:6904: checking for --enable-menus" >&5 |
1e6feb95 VZ |
6904 | no_cache=0 |
6905 | # Check whether --enable-menus or --disable-menus was given. | |
6906 | if test "${enable_menus+set}" = set; then | |
6907 | enableval="$enable_menus" | |
6908 | ||
6909 | if test "$enableval" = yes; then | |
6910 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
6911 | else | |
6912 | ac_cv_use_menus='wxUSE_MENUS=no' | |
6913 | fi | |
6914 | ||
6915 | else | |
6916 | ||
6917 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
6918 | if test "x$LINE" != x ; then | |
6919 | eval "DEFAULT_$LINE" | |
6920 | else | |
6921 | no_cache=1 | |
6922 | fi | |
6923 | ||
6924 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
6925 | ||
6926 | fi | |
6927 | ||
6928 | ||
6929 | eval "$ac_cv_use_menus" | |
6930 | if test "$no_cache" != 1; then | |
6931 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
6932 | fi | |
6933 | ||
6934 | if test "$wxUSE_MENUS" = yes; then | |
6935 | echo "$ac_t""yes" 1>&6 | |
6936 | else | |
6937 | echo "$ac_t""no" 1>&6 | |
6938 | fi | |
6939 | ||
6940 | ||
698dcdb6 | 6941 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
9f41d601 | 6942 | echo "configure:6943: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
6943 | no_cache=0 |
6944 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
6945 | if test "${enable_miniframe+set}" = set; then | |
6946 | enableval="$enable_miniframe" | |
698dcdb6 | 6947 | |
10f2d63a VZ |
6948 | if test "$enableval" = yes; then |
6949 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
6950 | else | |
6951 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
6952 | fi | |
698dcdb6 | 6953 | |
10f2d63a | 6954 | else |
698dcdb6 | 6955 | |
10f2d63a VZ |
6956 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
6957 | if test "x$LINE" != x ; then | |
6958 | eval "DEFAULT_$LINE" | |
6959 | else | |
6960 | no_cache=1 | |
6961 | fi | |
6962 | ||
6963 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
6964 | |
6965 | fi | |
10f2d63a VZ |
6966 | |
6967 | ||
6968 | eval "$ac_cv_use_miniframe" | |
6969 | if test "$no_cache" != 1; then | |
6970 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
6971 | fi | |
6972 | ||
6973 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 6974 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6975 | else |
698dcdb6 | 6976 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6977 | fi |
698dcdb6 | 6978 | |
10f2d63a | 6979 | |
698dcdb6 | 6980 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
9f41d601 | 6981 | echo "configure:6982: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
6982 | no_cache=0 |
6983 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
6984 | if test "${enable_tooltips+set}" = set; then | |
6985 | enableval="$enable_tooltips" | |
698dcdb6 | 6986 | |
10f2d63a VZ |
6987 | if test "$enableval" = yes; then |
6988 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
6989 | else | |
6990 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
6991 | fi | |
698dcdb6 | 6992 | |
10f2d63a | 6993 | else |
698dcdb6 | 6994 | |
10f2d63a VZ |
6995 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
6996 | if test "x$LINE" != x ; then | |
6997 | eval "DEFAULT_$LINE" | |
6998 | else | |
6999 | no_cache=1 | |
7000 | fi | |
7001 | ||
7002 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
7003 | |
7004 | fi | |
10f2d63a VZ |
7005 | |
7006 | ||
7007 | eval "$ac_cv_use_tooltips" | |
7008 | if test "$no_cache" != 1; then | |
7009 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7010 | fi | |
7011 | ||
7012 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 7013 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7014 | else |
698dcdb6 | 7015 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7016 | fi |
698dcdb6 | 7017 | |
10f2d63a | 7018 | |
698dcdb6 | 7019 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
9f41d601 | 7020 | echo "configure:7021: checking for --enable-splines" >&5 |
10f2d63a VZ |
7021 | no_cache=0 |
7022 | # Check whether --enable-splines or --disable-splines was given. | |
7023 | if test "${enable_splines+set}" = set; then | |
7024 | enableval="$enable_splines" | |
698dcdb6 | 7025 | |
10f2d63a VZ |
7026 | if test "$enableval" = yes; then |
7027 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7028 | else | |
7029 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7030 | fi | |
698dcdb6 | 7031 | |
10f2d63a | 7032 | else |
698dcdb6 | 7033 | |
10f2d63a VZ |
7034 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7035 | if test "x$LINE" != x ; then | |
7036 | eval "DEFAULT_$LINE" | |
7037 | else | |
7038 | no_cache=1 | |
7039 | fi | |
7040 | ||
7041 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
7042 | |
7043 | fi | |
10f2d63a VZ |
7044 | |
7045 | ||
7046 | eval "$ac_cv_use_splines" | |
7047 | if test "$no_cache" != 1; then | |
7048 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7049 | fi | |
7050 | ||
7051 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 7052 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7053 | else |
698dcdb6 | 7054 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7055 | fi |
698dcdb6 | 7056 | |
10f2d63a | 7057 | |
698dcdb6 | 7058 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
9f41d601 | 7059 | echo "configure:7060: checking for --enable-validators" >&5 |
10f2d63a VZ |
7060 | no_cache=0 |
7061 | # Check whether --enable-validators or --disable-validators was given. | |
7062 | if test "${enable_validators+set}" = set; then | |
7063 | enableval="$enable_validators" | |
698dcdb6 | 7064 | |
10f2d63a VZ |
7065 | if test "$enableval" = yes; then |
7066 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7067 | else | |
7068 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7069 | fi | |
698dcdb6 | 7070 | |
10f2d63a | 7071 | else |
698dcdb6 | 7072 | |
10f2d63a VZ |
7073 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7074 | if test "x$LINE" != x ; then | |
7075 | eval "DEFAULT_$LINE" | |
7076 | else | |
7077 | no_cache=1 | |
7078 | fi | |
7079 | ||
7080 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
7081 | |
7082 | fi | |
10f2d63a VZ |
7083 | |
7084 | ||
7085 | eval "$ac_cv_use_validators" | |
7086 | if test "$no_cache" != 1; then | |
7087 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7088 | fi | |
7089 | ||
7090 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7091 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7092 | else |
698dcdb6 | 7093 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7094 | fi |
698dcdb6 | 7095 | |
10f2d63a | 7096 | |
698dcdb6 | 7097 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
9f41d601 | 7098 | echo "configure:7099: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7099 | no_cache=0 |
7100 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7101 | if test "${enable_busyinfo+set}" = set; then | |
7102 | enableval="$enable_busyinfo" | |
698dcdb6 | 7103 | |
10f2d63a VZ |
7104 | if test "$enableval" = yes; then |
7105 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7106 | else | |
7107 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7108 | fi | |
698dcdb6 | 7109 | |
10f2d63a | 7110 | else |
698dcdb6 | 7111 | |
10f2d63a VZ |
7112 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7113 | if test "x$LINE" != x ; then | |
7114 | eval "DEFAULT_$LINE" | |
7115 | else | |
7116 | no_cache=1 | |
7117 | fi | |
7118 | ||
7119 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7120 | |
7121 | fi | |
10f2d63a VZ |
7122 | |
7123 | ||
7124 | eval "$ac_cv_use_busyinfo" | |
7125 | if test "$no_cache" != 1; then | |
7126 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7127 | fi | |
7128 | ||
7129 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7130 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7131 | else |
698dcdb6 | 7132 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7133 | fi |
698dcdb6 | 7134 | |
10f2d63a | 7135 | |
698dcdb6 | 7136 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
9f41d601 | 7137 | echo "configure:7138: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7138 | no_cache=0 |
7139 | # Check whether --enable-joystick or --disable-joystick was given. | |
7140 | if test "${enable_joystick+set}" = set; then | |
7141 | enableval="$enable_joystick" | |
698dcdb6 | 7142 | |
f6bcfd97 BP |
7143 | if test "$enableval" = yes; then |
7144 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7145 | else | |
7146 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7147 | fi | |
698dcdb6 | 7148 | |
f6bcfd97 | 7149 | else |
698dcdb6 | 7150 | |
f6bcfd97 BP |
7151 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7152 | if test "x$LINE" != x ; then | |
7153 | eval "DEFAULT_$LINE" | |
7154 | else | |
7155 | no_cache=1 | |
7156 | fi | |
7157 | ||
7158 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7159 | |
7160 | fi | |
f6bcfd97 BP |
7161 | |
7162 | ||
7163 | eval "$ac_cv_use_joystick" | |
7164 | if test "$no_cache" != 1; then | |
7165 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7166 | fi | |
7167 | ||
7168 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7169 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7170 | else |
698dcdb6 | 7171 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7172 | fi |
698dcdb6 VZ |
7173 | |
7174 | ||
1e6feb95 | 7175 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
9f41d601 | 7176 | echo "configure:7177: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7177 | no_cache=0 |
7178 | # Check whether --enable-metafile or --disable-metafile was given. | |
7179 | if test "${enable_metafile+set}" = set; then | |
7180 | enableval="$enable_metafile" | |
7181 | ||
7182 | if test "$enableval" = yes; then | |
7183 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7184 | else | |
7185 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7186 | fi | |
7187 | ||
7188 | else | |
7189 | ||
7190 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7191 | if test "x$LINE" != x ; then | |
7192 | eval "DEFAULT_$LINE" | |
7193 | else | |
7194 | no_cache=1 | |
7195 | fi | |
7196 | ||
7197 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7198 | ||
7199 | fi | |
7200 | ||
7201 | ||
7202 | eval "$ac_cv_use_metafile" | |
7203 | if test "$no_cache" != 1; then | |
7204 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7205 | fi | |
7206 | ||
7207 | if test "$wxUSE_METAFILE" = yes; then | |
7208 | echo "$ac_t""yes" 1>&6 | |
7209 | else | |
7210 | echo "$ac_t""no" 1>&6 | |
7211 | fi | |
7212 | ||
7213 | ||
24fd6d87 | 7214 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
9f41d601 | 7215 | echo "configure:7216: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7216 | no_cache=0 |
7217 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7218 | if test "${enable_dragimage+set}" = set; then | |
7219 | enableval="$enable_dragimage" | |
7220 | ||
7221 | if test "$enableval" = yes; then | |
7222 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7223 | else | |
7224 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7225 | fi | |
7226 | ||
7227 | else | |
7228 | ||
7229 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7230 | if test "x$LINE" != x ; then | |
7231 | eval "DEFAULT_$LINE" | |
7232 | else | |
7233 | no_cache=1 | |
7234 | fi | |
7235 | ||
7236 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7237 | ||
7238 | fi | |
7239 | ||
7240 | ||
7241 | eval "$ac_cv_use_dragimage" | |
7242 | if test "$no_cache" != 1; then | |
7243 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7244 | fi | |
7245 | ||
7246 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7247 | echo "$ac_t""yes" 1>&6 | |
7248 | else | |
7249 | echo "$ac_t""no" 1>&6 | |
7250 | fi | |
7251 | ||
7252 | ||
10f2d63a | 7253 | |
698dcdb6 VZ |
7254 | |
7255 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
9f41d601 | 7256 | echo "configure:7257: checking for --enable-image" >&5 |
0046ff7c VS |
7257 | no_cache=0 |
7258 | # Check whether --enable-image or --disable-image was given. | |
7259 | if test "${enable_image+set}" = set; then | |
7260 | enableval="$enable_image" | |
698dcdb6 | 7261 | |
0046ff7c VS |
7262 | if test "$enableval" = yes; then |
7263 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7264 | else | |
7265 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7266 | fi | |
698dcdb6 | 7267 | |
0046ff7c | 7268 | else |
698dcdb6 | 7269 | |
0046ff7c VS |
7270 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7271 | if test "x$LINE" != x ; then | |
7272 | eval "DEFAULT_$LINE" | |
7273 | else | |
7274 | no_cache=1 | |
7275 | fi | |
7276 | ||
7277 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7278 | |
7279 | fi | |
0046ff7c VS |
7280 | |
7281 | ||
7282 | eval "$ac_cv_use_image" | |
7283 | if test "$no_cache" != 1; then | |
7284 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7285 | fi | |
7286 | ||
7287 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7288 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7289 | else |
698dcdb6 | 7290 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7291 | fi |
698dcdb6 | 7292 | |
0046ff7c | 7293 | |
698dcdb6 | 7294 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
9f41d601 | 7295 | echo "configure:7296: checking for --enable-gif" >&5 |
10f2d63a VZ |
7296 | no_cache=0 |
7297 | # Check whether --enable-gif or --disable-gif was given. | |
7298 | if test "${enable_gif+set}" = set; then | |
7299 | enableval="$enable_gif" | |
698dcdb6 | 7300 | |
10f2d63a VZ |
7301 | if test "$enableval" = yes; then |
7302 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7303 | else | |
7304 | ac_cv_use_gif='wxUSE_GIF=no' | |
7305 | fi | |
698dcdb6 | 7306 | |
10f2d63a | 7307 | else |
698dcdb6 | 7308 | |
10f2d63a VZ |
7309 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7310 | if test "x$LINE" != x ; then | |
7311 | eval "DEFAULT_$LINE" | |
7312 | else | |
7313 | no_cache=1 | |
7314 | fi | |
7315 | ||
7316 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7317 | |
7318 | fi | |
10f2d63a VZ |
7319 | |
7320 | ||
7321 | eval "$ac_cv_use_gif" | |
7322 | if test "$no_cache" != 1; then | |
7323 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7324 | fi | |
7325 | ||
7326 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7327 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7328 | else |
698dcdb6 | 7329 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7330 | fi |
698dcdb6 | 7331 | |
10f2d63a | 7332 | |
698dcdb6 | 7333 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
9f41d601 | 7334 | echo "configure:7335: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7335 | no_cache=0 |
7336 | # Check whether --enable-pcx or --disable-pcx was given. | |
7337 | if test "${enable_pcx+set}" = set; then | |
7338 | enableval="$enable_pcx" | |
698dcdb6 | 7339 | |
10f2d63a VZ |
7340 | if test "$enableval" = yes; then |
7341 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7342 | else | |
7343 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7344 | fi | |
698dcdb6 | 7345 | |
10f2d63a | 7346 | else |
698dcdb6 | 7347 | |
10f2d63a VZ |
7348 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7349 | if test "x$LINE" != x ; then | |
7350 | eval "DEFAULT_$LINE" | |
7351 | else | |
7352 | no_cache=1 | |
7353 | fi | |
7354 | ||
7355 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7356 | |
7357 | fi | |
10f2d63a VZ |
7358 | |
7359 | ||
7360 | eval "$ac_cv_use_pcx" | |
7361 | if test "$no_cache" != 1; then | |
7362 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7363 | fi | |
7364 | ||
7365 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7366 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7367 | else |
698dcdb6 | 7368 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7369 | fi |
698dcdb6 | 7370 | |
10f2d63a | 7371 | |
698dcdb6 | 7372 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
9f41d601 | 7373 | echo "configure:7374: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7374 | no_cache=0 |
7375 | # Check whether --enable-pnm or --disable-pnm was given. | |
7376 | if test "${enable_pnm+set}" = set; then | |
7377 | enableval="$enable_pnm" | |
698dcdb6 | 7378 | |
10f2d63a VZ |
7379 | if test "$enableval" = yes; then |
7380 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7381 | else | |
7382 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7383 | fi | |
698dcdb6 | 7384 | |
10f2d63a | 7385 | else |
698dcdb6 | 7386 | |
10f2d63a VZ |
7387 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7388 | if test "x$LINE" != x ; then | |
7389 | eval "DEFAULT_$LINE" | |
7390 | else | |
7391 | no_cache=1 | |
7392 | fi | |
7393 | ||
7394 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7395 | |
7396 | fi | |
10f2d63a VZ |
7397 | |
7398 | ||
7399 | eval "$ac_cv_use_pnm" | |
7400 | if test "$no_cache" != 1; then | |
7401 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7402 | fi | |
7403 | ||
7404 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7405 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7406 | else |
698dcdb6 | 7407 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7408 | fi |
698dcdb6 | 7409 | |
10f2d63a | 7410 | |
698dcdb6 | 7411 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
9f41d601 | 7412 | echo "configure:7413: checking for --enable-pnm" >&5 |
0046ff7c VS |
7413 | no_cache=0 |
7414 | # Check whether --enable-pnm or --disable-pnm was given. | |
7415 | if test "${enable_pnm+set}" = set; then | |
7416 | enableval="$enable_pnm" | |
698dcdb6 | 7417 | |
0046ff7c VS |
7418 | if test "$enableval" = yes; then |
7419 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7420 | else | |
7421 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7422 | fi | |
698dcdb6 | 7423 | |
0046ff7c | 7424 | else |
698dcdb6 | 7425 | |
0046ff7c VS |
7426 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7427 | if test "x$LINE" != x ; then | |
7428 | eval "DEFAULT_$LINE" | |
7429 | else | |
7430 | no_cache=1 | |
7431 | fi | |
7432 | ||
7433 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7434 | |
7435 | fi | |
0046ff7c VS |
7436 | |
7437 | ||
7438 | eval "$ac_cv_use_pnm" | |
7439 | if test "$no_cache" != 1; then | |
7440 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7441 | fi | |
7442 | ||
7443 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7444 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7445 | else |
698dcdb6 | 7446 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7447 | fi |
698dcdb6 | 7448 | |
0046ff7c | 7449 | |
b12915c1 VZ |
7450 | fi |
7451 | ||
698dcdb6 | 7452 | |
10f2d63a VZ |
7453 | echo "saving argument cache $wx_arg_cache_file" |
7454 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7455 | |
10f2d63a | 7456 | |
698dcdb6 VZ |
7457 | |
7458 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
9f41d601 | 7459 | echo "configure:7460: checking for toolkit" >&5 |
10f2d63a VZ |
7460 | |
7461 | if test "$wxUSE_GUI" = "yes"; then | |
7462 | ||
b12915c1 | 7463 | if test "$USE_BEOS" = 1; then |
698dcdb6 | 7464 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
b12915c1 VZ |
7465 | fi |
7466 | ||
10f2d63a VZ |
7467 | if test "$TOOLKIT_GIVEN" = 1; then |
7468 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7469 | var=wxUSE_$toolkit | |
7470 | eval "value=\$${var}" | |
7471 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7472 | done | |
7473 | else | |
7474 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7475 | if test "$has_toolkit_in_cache" != 1; then | |
7476 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7477 | else | |
7478 | var=DEFAULT_wxUSE_$toolkit | |
7479 | fi | |
7480 | eval "wxUSE_$toolkit=\$${var}" | |
7481 | done | |
7482 | fi | |
7483 | ||
1e6feb95 | 7484 | 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 | 7485 | |
ec14dd32 VZ |
7486 | case "${host}" in |
7487 | *-pc-os2_emx ) | |
7488 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7489 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7490 | LEX_STEM="lexyy" | |
7491 | ;; | |
7492 | *) | |
7493 | PATH_IFS=':' | |
7494 | LEX_STEM="lex.yy" | |
7495 | ;; | |
7496 | esac | |
10f2d63a VZ |
7497 | |
7498 | case "$NUM_TOOLKITS" in | |
7499 | 1) | |
7500 | ;; | |
7501 | 0) | |
698dcdb6 | 7502 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } |
10f2d63a VZ |
7503 | ;; |
7504 | *) | |
698dcdb6 | 7505 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } |
10f2d63a VZ |
7506 | esac |
7507 | ||
7508 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7509 | var=wxUSE_$toolkit | |
7510 | eval "value=\$${var}" | |
7511 | if test "x$value" != x; then | |
7512 | cache_var=CACHE_$toolkit | |
7513 | eval "cache=\$${cache_var}" | |
7514 | if test "$cache" = 1; then | |
7515 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7516 | fi | |
7517 | if test "$value" = 1; then | |
8168de4c VZ |
7518 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` |
7519 | echo "$ac_t""$toolkit_echo" 1>&6 | |
10f2d63a VZ |
7520 | fi |
7521 | fi | |
7522 | done | |
7523 | ||
7524 | else | |
cf27ef00 | 7525 | PATH_IFS=':' |
698dcdb6 | 7526 | echo "$ac_t""base only" 1>&6 |
10f2d63a VZ |
7527 | fi |
7528 | ||
698dcdb6 VZ |
7529 | |
7530 | cat > confcache <<\EOF | |
10f2d63a VZ |
7531 | # This file is a shell script that caches the results of configure |
7532 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7533 | # scripts and configure runs. It is not useful on other systems. |
7534 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7535 | # |
698dcdb6 VZ |
7536 | # By default, configure uses ./config.cache as the cache file, |
7537 | # creating it if it does not exist already. You can give configure | |
7538 | # the --cache-file=FILE option to use a different cache file; that is | |
7539 | # what configure does when it calls configure scripts in | |
7540 | # subdirectories, so they share the cache. | |
7541 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7542 | # config.status only pays attention to the cache file if you give it the | |
7543 | # --recheck option to rerun configure. | |
10f2d63a | 7544 | # |
698dcdb6 | 7545 | EOF |
10f2d63a VZ |
7546 | # The following way of writing the cache mishandles newlines in values, |
7547 | # but we know of no workaround that is simple, portable, and efficient. | |
7548 | # So, don't put newlines in cache variables' values. | |
7549 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7550 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7551 | (set) 2>&1 | |
7552 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7553 | *ac_space=\ *) | |
7554 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7555 | # turns \\\\ into \\, and sed turns \\ into \). | |
7556 | sed -n \ | |
7557 | -e "s/'/'\\\\''/g" \ | |
7558 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7559 | ;; | |
7560 | *) | |
7561 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7562 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7563 | ;; | |
7564 | esac >> confcache | |
7565 | if cmp -s $cache_file confcache; then | |
7566 | : | |
7567 | else | |
10f2d63a | 7568 | if test -w $cache_file; then |
698dcdb6 VZ |
7569 | echo "updating cache $cache_file" |
7570 | cat confcache > $cache_file | |
10f2d63a VZ |
7571 | else |
7572 | echo "not updating unwritable cache $cache_file" | |
7573 | fi | |
7574 | fi | |
7575 | rm -f confcache | |
7576 | ||
698dcdb6 | 7577 | |
e59890c3 | 7578 | if test "$build" != "$host" ; then |
10f2d63a VZ |
7579 | CC=$host_alias-gcc |
7580 | CXX=$host_alias-c++ | |
7581 | AR=$host_alias-ar | |
7582 | RANLIB=$host_alias-ranlib | |
7583 | DLLTOOL=$host_alias-dlltool | |
32832908 | 7584 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
7585 | LD=$host_alias-ld |
7586 | NM=$host_alias-nm | |
7587 | STRIP=$host_alias-strip | |
10f2d63a VZ |
7588 | fi |
7589 | ||
698dcdb6 | 7590 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7591 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7592 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9f41d601 | 7593 | echo "configure:7594: checking for $ac_word" >&5 |
698dcdb6 VZ |
7594 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7595 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7596 | else |
7597 | if test -n "$CC"; then | |
7598 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7599 | else |
698dcdb6 VZ |
7600 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7601 | ac_dummy="$PATH" | |
7602 | for ac_dir in $ac_dummy; do | |
7603 | test -z "$ac_dir" && ac_dir=. | |
7604 | if test -f $ac_dir/$ac_word; then | |
7605 | ac_cv_prog_CC="gcc" | |
7606 | break | |
7607 | fi | |
7608 | done | |
7609 | IFS="$ac_save_ifs" | |
10f2d63a | 7610 | fi |
6232543b | 7611 | fi |
698dcdb6 | 7612 | CC="$ac_cv_prog_CC" |
6232543b | 7613 | if test -n "$CC"; then |
698dcdb6 | 7614 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7615 | else |
698dcdb6 | 7616 | echo "$ac_t""no" 1>&6 |
1e487827 | 7617 | fi |
6232543b | 7618 | |
1e487827 VS |
7619 | if test -z "$CC"; then |
7620 | # Extract the first word of "cc", so it can be a program name with args. | |
7621 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7622 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9f41d601 | 7623 | echo "configure:7624: checking for $ac_word" >&5 |
698dcdb6 VZ |
7624 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7625 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7626 | else |
7627 | if test -n "$CC"; then | |
7628 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7629 | else | |
698dcdb6 | 7630 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7631 | ac_prog_rejected=no |
698dcdb6 VZ |
7632 | ac_dummy="$PATH" |
7633 | for ac_dir in $ac_dummy; do | |
7634 | test -z "$ac_dir" && ac_dir=. | |
7635 | if test -f $ac_dir/$ac_word; then | |
7636 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7637 | ac_prog_rejected=yes | |
7638 | continue | |
7639 | fi | |
7640 | ac_cv_prog_CC="cc" | |
7641 | break | |
7642 | fi | |
7643 | done | |
7644 | IFS="$ac_save_ifs" | |
1e487827 VS |
7645 | if test $ac_prog_rejected = yes; then |
7646 | # We found a bogon in the path, so make sure we never use it. | |
7647 | set dummy $ac_cv_prog_CC | |
7648 | shift | |
698dcdb6 | 7649 | if test $# -gt 0; then |
1e487827 VS |
7650 | # We chose a different compiler from the bogus one. |
7651 | # However, it has the same basename, so the bogon will be chosen | |
7652 | # first if we set CC to just the basename; use the full file name. | |
7653 | shift | |
698dcdb6 | 7654 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7655 | shift |
7656 | ac_cv_prog_CC="$@" | |
703e0a69 | 7657 | fi |
1e487827 VS |
7658 | fi |
7659 | fi | |
7660 | fi | |
698dcdb6 | 7661 | CC="$ac_cv_prog_CC" |
1e487827 | 7662 | if test -n "$CC"; then |
698dcdb6 | 7663 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 7664 | else |
698dcdb6 | 7665 | echo "$ac_t""no" 1>&6 |
703e0a69 | 7666 | fi |
1e487827 | 7667 | |
698dcdb6 VZ |
7668 | if test -z "$CC"; then |
7669 | case "`uname -s`" in | |
7670 | *win32* | *WIN32*) | |
7671 | # Extract the first word of "cl", so it can be a program name with args. | |
7672 | set dummy cl; ac_word=$2 | |
7673 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9f41d601 | 7674 | echo "configure:7675: checking for $ac_word" >&5 |
698dcdb6 VZ |
7675 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7676 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7677 | else |
7678 | if test -n "$CC"; then | |
7679 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 7680 | else |
698dcdb6 VZ |
7681 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7682 | ac_dummy="$PATH" | |
7683 | for ac_dir in $ac_dummy; do | |
7684 | test -z "$ac_dir" && ac_dir=. | |
7685 | if test -f $ac_dir/$ac_word; then | |
7686 | ac_cv_prog_CC="cl" | |
7687 | break | |
7688 | fi | |
7689 | done | |
7690 | IFS="$ac_save_ifs" | |
703e0a69 | 7691 | fi |
1e487827 | 7692 | fi |
698dcdb6 | 7693 | CC="$ac_cv_prog_CC" |
1e487827 | 7694 | if test -n "$CC"; then |
698dcdb6 | 7695 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7696 | else |
698dcdb6 | 7697 | echo "$ac_t""no" 1>&6 |
1e487827 | 7698 | fi |
698dcdb6 VZ |
7699 | ;; |
7700 | esac | |
7701 | fi | |
7702 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
7703 | fi |
7704 | ||
698dcdb6 | 7705 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
9f41d601 | 7706 | echo "configure:7707: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 7707 | |
698dcdb6 VZ |
7708 | ac_ext=c |
7709 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7710 | ac_cpp='$CPP $CPPFLAGS' | |
7711 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7712 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7713 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 7714 | |
698dcdb6 | 7715 | cat > conftest.$ac_ext << EOF |
1e487827 | 7716 | |
9f41d601 | 7717 | #line 7718 "configure" |
1e487827 VS |
7718 | #include "confdefs.h" |
7719 | ||
698dcdb6 VZ |
7720 | main(){return(0);} |
7721 | EOF | |
9f41d601 | 7722 | if { (eval echo configure:7723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7723 | ac_cv_prog_cc_works=yes |
7724 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7725 | if (./conftest; exit) 2>/dev/null; then | |
7726 | ac_cv_prog_cc_cross=no | |
7727 | else | |
7728 | ac_cv_prog_cc_cross=yes | |
7729 | fi | |
7730 | else | |
7731 | echo "configure: failed program was:" >&5 | |
7732 | cat conftest.$ac_ext >&5 | |
7733 | ac_cv_prog_cc_works=no | |
7734 | fi | |
7735 | rm -fr conftest* | |
7736 | ac_ext=c | |
7737 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7738 | ac_cpp='$CPP $CPPFLAGS' | |
7739 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7740 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7741 | cross_compiling=$ac_cv_prog_cc_cross | |
7742 | ||
7743 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
7744 | if test $ac_cv_prog_cc_works = no; then | |
7745 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
7746 | fi | |
7747 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
9f41d601 | 7748 | echo "configure:7749: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7749 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
7750 | cross_compiling=$ac_cv_prog_cc_cross | |
7751 | ||
7752 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
9f41d601 | 7753 | echo "configure:7754: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
7754 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
7755 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7756 | else | |
7757 | cat > conftest.c <<EOF | |
7758 | #ifdef __GNUC__ | |
7759 | yes; | |
1e487827 | 7760 | #endif |
698dcdb6 | 7761 | EOF |
9f41d601 | 7762 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7763 | ac_cv_prog_gcc=yes |
7764 | else | |
7765 | ac_cv_prog_gcc=no | |
7766 | fi | |
7767 | fi | |
1e487827 | 7768 | |
698dcdb6 | 7769 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 7770 | |
698dcdb6 VZ |
7771 | if test $ac_cv_prog_gcc = yes; then |
7772 | GCC=yes | |
7773 | else | |
7774 | GCC= | |
7775 | fi | |
1e487827 | 7776 | |
698dcdb6 VZ |
7777 | ac_test_CFLAGS="${CFLAGS+set}" |
7778 | ac_save_CFLAGS="$CFLAGS" | |
7779 | CFLAGS= | |
7780 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
9f41d601 | 7781 | echo "configure:7782: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
7782 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
7783 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7784 | else | |
7785 | echo 'void f(){}' > conftest.c | |
7786 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
7787 | ac_cv_prog_cc_g=yes |
7788 | else | |
698dcdb6 | 7789 | ac_cv_prog_cc_g=no |
10f2d63a | 7790 | fi |
698dcdb6 VZ |
7791 | rm -f conftest* |
7792 | ||
10f2d63a | 7793 | fi |
698dcdb6 VZ |
7794 | |
7795 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 7796 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 7797 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
7798 | elif test $ac_cv_prog_cc_g = yes; then |
7799 | if test "$GCC" = yes; then | |
7800 | CFLAGS="-g -O2" | |
7801 | else | |
7802 | CFLAGS="-g" | |
7803 | fi | |
7804 | else | |
7805 | if test "$GCC" = yes; then | |
7806 | CFLAGS="-O2" | |
7807 | else | |
7808 | CFLAGS= | |
7809 | fi | |
7810 | fi | |
7811 | ||
7812 | ||
7813 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
7814 | ||
698dcdb6 | 7815 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
9f41d601 | 7816 | echo "configure:7817: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
7817 | # On Suns, sometimes $CPP names a directory. |
7818 | if test -n "$CPP" && test -d "$CPP"; then | |
7819 | CPP= | |
7820 | fi | |
7821 | if test -z "$CPP"; then | |
698dcdb6 VZ |
7822 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
7823 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7824 | else | |
7825 | # This must be in double quotes, not single quotes, because CPP may get | |
7826 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
7827 | CPP="${CC-cc} -E" | |
10f2d63a | 7828 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
7829 | # not just through cpp. |
7830 | cat > conftest.$ac_ext <<EOF | |
9f41d601 | 7831 | #line 7832 "configure" |
10f2d63a VZ |
7832 | #include "confdefs.h" |
7833 | #include <assert.h> | |
698dcdb6 VZ |
7834 | Syntax Error |
7835 | EOF | |
7836 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9f41d601 | 7837 | { (eval echo configure:7838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7838 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7839 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7840 | : |
7841 | else | |
698dcdb6 VZ |
7842 | echo "$ac_err" >&5 |
7843 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7844 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7845 | rm -rf conftest* |
7846 | CPP="${CC-cc} -E -traditional-cpp" | |
7847 | cat > conftest.$ac_ext <<EOF | |
9f41d601 | 7848 | #line 7849 "configure" |
10f2d63a | 7849 | #include "confdefs.h" |
698dcdb6 VZ |
7850 | #include <assert.h> |
7851 | Syntax Error | |
7852 | EOF | |
7853 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9f41d601 | 7854 | { (eval echo configure:7855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7855 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7856 | if test -z "$ac_err"; then | |
7857 | : | |
10f2d63a | 7858 | else |
698dcdb6 VZ |
7859 | echo "$ac_err" >&5 |
7860 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7861 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7862 | rm -rf conftest* |
7863 | CPP="${CC-cc} -nologo -E" | |
7864 | cat > conftest.$ac_ext <<EOF | |
9f41d601 | 7865 | #line 7866 "configure" |
10f2d63a VZ |
7866 | #include "confdefs.h" |
7867 | #include <assert.h> | |
698dcdb6 VZ |
7868 | Syntax Error |
7869 | EOF | |
7870 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9f41d601 | 7871 | { (eval echo configure:7872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7872 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7873 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7874 | : |
7875 | else | |
698dcdb6 VZ |
7876 | echo "$ac_err" >&5 |
7877 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7878 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7879 | rm -rf conftest* |
7880 | CPP=/lib/cpp | |
10f2d63a | 7881 | fi |
698dcdb6 | 7882 | rm -f conftest* |
10f2d63a | 7883 | fi |
698dcdb6 | 7884 | rm -f conftest* |
703e0a69 | 7885 | fi |
698dcdb6 VZ |
7886 | rm -f conftest* |
7887 | ac_cv_prog_CPP="$CPP" | |
7888 | fi | |
7889 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 7890 | else |
698dcdb6 | 7891 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 7892 | fi |
698dcdb6 | 7893 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a VZ |
7894 | |
7895 | ||
698dcdb6 VZ |
7896 | if test $ac_cv_prog_gcc = yes; then |
7897 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
9f41d601 | 7898 | echo "configure:7899: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
7899 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
7900 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7901 | else |
7902 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 7903 | cat > conftest.$ac_ext <<EOF |
9f41d601 | 7904 | #line 7905 "configure" |
10f2d63a VZ |
7905 | #include "confdefs.h" |
7906 | #include <sgtty.h> | |
7907 | Autoconf TIOCGETP | |
698dcdb6 | 7908 | EOF |
10f2d63a VZ |
7909 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7910 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7911 | rm -rf conftest* |
10f2d63a VZ |
7912 | ac_cv_prog_gcc_traditional=yes |
7913 | else | |
698dcdb6 | 7914 | rm -rf conftest* |
10f2d63a VZ |
7915 | ac_cv_prog_gcc_traditional=no |
7916 | fi | |
7917 | rm -f conftest* | |
7918 | ||
698dcdb6 | 7919 | |
10f2d63a | 7920 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 7921 | cat > conftest.$ac_ext <<EOF |
9f41d601 | 7922 | #line 7923 "configure" |
10f2d63a VZ |
7923 | #include "confdefs.h" |
7924 | #include <termio.h> | |
7925 | Autoconf TCGETA | |
698dcdb6 | 7926 | EOF |
10f2d63a VZ |
7927 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7928 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7929 | rm -rf conftest* |
10f2d63a VZ |
7930 | ac_cv_prog_gcc_traditional=yes |
7931 | fi | |
7932 | rm -f conftest* | |
7933 | ||
7934 | fi | |
7935 | fi | |
698dcdb6 VZ |
7936 | |
7937 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
7938 | if test $ac_cv_prog_gcc_traditional = yes; then |
7939 | CC="$CC -traditional" | |
7940 | fi | |
7941 | fi | |
7942 | ||
703e0a69 | 7943 | |
698dcdb6 VZ |
7944 | |
7945 | ac_ext=C | |
7946 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 7947 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
7948 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
7949 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7950 | cross_compiling=$ac_cv_prog_cxx_cross | |
7951 | ||
7952 | ||
7953 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
7954 | do | |
7955 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7956 | set dummy $ac_prog; ac_word=$2 | |
7957 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9f41d601 | 7958 | echo "configure:7959: checking for $ac_word" >&5 |
698dcdb6 VZ |
7959 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
7960 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7961 | else |
7962 | if test -n "$CXX"; then | |
7963 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
7964 | else | |
698dcdb6 VZ |
7965 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7966 | ac_dummy="$PATH" | |
7967 | for ac_dir in $ac_dummy; do | |
7968 | test -z "$ac_dir" && ac_dir=. | |
7969 | if test -f $ac_dir/$ac_word; then | |
7970 | ac_cv_prog_CXX="$ac_prog" | |
7971 | break | |
7972 | fi | |
7973 | done | |
7974 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
7975 | fi |
7976 | fi | |
698dcdb6 | 7977 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 7978 | if test -n "$CXX"; then |
698dcdb6 | 7979 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 7980 | else |
698dcdb6 | 7981 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
7982 | fi |
7983 | ||
698dcdb6 | 7984 | test -n "$CXX" && break |
10f2d63a | 7985 | done |
698dcdb6 | 7986 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
7987 | |
7988 | ||
698dcdb6 | 7989 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
9f41d601 | 7990 | echo "configure:7991: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 7991 | |
698dcdb6 VZ |
7992 | ac_ext=C |
7993 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7994 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7995 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7996 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7997 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 7998 | |
698dcdb6 VZ |
7999 | cat > conftest.$ac_ext << EOF |
8000 | ||
9f41d601 | 8001 | #line 8002 "configure" |
10f2d63a VZ |
8002 | #include "confdefs.h" |
8003 | ||
698dcdb6 VZ |
8004 | int main(){return(0);} |
8005 | EOF | |
9f41d601 | 8006 | if { (eval echo configure:8007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8007 | ac_cv_prog_cxx_works=yes |
8008 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8009 | if (./conftest; exit) 2>/dev/null; then | |
8010 | ac_cv_prog_cxx_cross=no | |
8011 | else | |
8012 | ac_cv_prog_cxx_cross=yes | |
8013 | fi | |
8014 | else | |
8015 | echo "configure: failed program was:" >&5 | |
8016 | cat conftest.$ac_ext >&5 | |
8017 | ac_cv_prog_cxx_works=no | |
8018 | fi | |
8019 | rm -fr conftest* | |
8020 | ac_ext=C | |
8021 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8022 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8023 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8024 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8025 | cross_compiling=$ac_cv_prog_cxx_cross | |
8026 | ||
8027 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8028 | if test $ac_cv_prog_cxx_works = no; then | |
8029 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8030 | fi | |
8031 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
9f41d601 | 8032 | echo "configure:8033: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
8033 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8034 | cross_compiling=$ac_cv_prog_cxx_cross | |
8035 | ||
8036 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
9f41d601 | 8037 | echo "configure:8038: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
8038 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8040 | else | |
8041 | cat > conftest.C <<EOF | |
8042 | #ifdef __GNUC__ | |
8043 | yes; | |
10f2d63a | 8044 | #endif |
698dcdb6 | 8045 | EOF |
9f41d601 | 8046 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
8047 | ac_cv_prog_gxx=yes |
8048 | else | |
8049 | ac_cv_prog_gxx=no | |
8050 | fi | |
8051 | fi | |
10f2d63a | 8052 | |
698dcdb6 | 8053 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 8054 | |
698dcdb6 VZ |
8055 | if test $ac_cv_prog_gxx = yes; then |
8056 | GXX=yes | |
8057 | else | |
8058 | GXX= | |
8059 | fi | |
10f2d63a | 8060 | |
698dcdb6 VZ |
8061 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
8062 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8063 | CXXFLAGS= | |
8064 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
9f41d601 | 8065 | echo "configure:8066: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
8066 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
8067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8068 | else | |
8069 | echo 'void f(){}' > conftest.cc | |
8070 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
8071 | ac_cv_prog_cxx_g=yes |
8072 | else | |
698dcdb6 | 8073 | ac_cv_prog_cxx_g=no |
10f2d63a | 8074 | fi |
698dcdb6 VZ |
8075 | rm -f conftest* |
8076 | ||
10f2d63a | 8077 | fi |
698dcdb6 VZ |
8078 | |
8079 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 8080 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 8081 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
8082 | elif test $ac_cv_prog_cxx_g = yes; then |
8083 | if test "$GXX" = yes; then | |
8084 | CXXFLAGS="-g -O2" | |
8085 | else | |
8086 | CXXFLAGS="-g" | |
8087 | fi | |
8088 | else | |
8089 | if test "$GXX" = yes; then | |
8090 | CXXFLAGS="-O2" | |
8091 | else | |
8092 | CXXFLAGS= | |
8093 | fi | |
8094 | fi | |
8095 | ||
8096 | ||
698dcdb6 | 8097 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
9f41d601 | 8098 | echo "configure:8099: checking how to run the C++ preprocessor" >&5 |
1e487827 | 8099 | if test -z "$CXXCPP"; then |
698dcdb6 VZ |
8100 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
8101 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 8102 | else |
698dcdb6 VZ |
8103 | ac_ext=C |
8104 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8105 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8106 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8107 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8108 | cross_compiling=$ac_cv_prog_cxx_cross | |
8109 | CXXCPP="${CXX-g++} -E" | |
8110 | cat > conftest.$ac_ext <<EOF | |
9f41d601 | 8111 | #line 8112 "configure" |
1e487827 | 8112 | #include "confdefs.h" |
698dcdb6 VZ |
8113 | #include <stdlib.h> |
8114 | EOF | |
8115 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9f41d601 | 8116 | { (eval echo configure:8117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8117 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8118 | if test -z "$ac_err"; then | |
1e487827 VS |
8119 | : |
8120 | else | |
698dcdb6 VZ |
8121 | echo "$ac_err" >&5 |
8122 | echo "configure: failed program was:" >&5 | |
1e487827 | 8123 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8124 | rm -rf conftest* |
8125 | CXXCPP=/lib/cpp | |
1e487827 | 8126 | fi |
698dcdb6 VZ |
8127 | rm -f conftest* |
8128 | ac_cv_prog_CXXCPP="$CXXCPP" | |
8129 | ac_ext=C | |
8130 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8131 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8132 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8133 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8134 | cross_compiling=$ac_cv_prog_cxx_cross | |
1e487827 | 8135 | fi |
1e487827 | 8136 | fi |
698dcdb6 VZ |
8137 | CXXCPP="$ac_cv_prog_CXXCPP" |
8138 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e487827 | 8139 | |
10f2d63a VZ |
8140 | |
8141 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
8142 | ||
8143 | ac_ext=c | |
698dcdb6 | 8144 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8145 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8146 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8147 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8148 | cross_compiling=$ac_cv_prog_cc_cross | |
8149 | ||
8150 | ||
8151 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8152 | set dummy ranlib; ac_word=$2 | |
8153 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9f41d601 | 8154 | echo "configure:8155: checking for $ac_word" >&5 |
698dcdb6 VZ |
8155 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8156 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8157 | else |
8158 | if test -n "$RANLIB"; then | |
8159 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8160 | else | |
698dcdb6 VZ |
8161 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8162 | ac_dummy="$PATH" | |
8163 | for ac_dir in $ac_dummy; do | |
8164 | test -z "$ac_dir" && ac_dir=. | |
8165 | if test -f $ac_dir/$ac_word; then | |
8166 | ac_cv_prog_RANLIB="ranlib" | |
8167 | break | |
8168 | fi | |
8169 | done | |
8170 | IFS="$ac_save_ifs" | |
8171 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8172 | fi |
8173 | fi | |
698dcdb6 | 8174 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8175 | if test -n "$RANLIB"; then |
698dcdb6 | 8176 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8177 | else |
698dcdb6 | 8178 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8179 | fi |
8180 | ||
8181 | ||
8182 | # Extract the first word of "ar", so it can be a program name with args. | |
8183 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8184 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9f41d601 | 8185 | echo "configure:8186: checking for $ac_word" >&5 |
698dcdb6 VZ |
8186 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8187 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8188 | else |
8189 | if test -n "$AR"; then | |
8190 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8191 | else | |
698dcdb6 VZ |
8192 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8193 | ac_dummy="$PATH" | |
8194 | for ac_dir in $ac_dummy; do | |
8195 | test -z "$ac_dir" && ac_dir=. | |
8196 | if test -f $ac_dir/$ac_word; then | |
8197 | ac_cv_prog_AR="ar" | |
8198 | break | |
8199 | fi | |
8200 | done | |
8201 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8202 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8203 | fi | |
8204 | fi | |
698dcdb6 | 8205 | AR="$ac_cv_prog_AR" |
10f2d63a | 8206 | if test -n "$AR"; then |
698dcdb6 | 8207 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8208 | else |
698dcdb6 | 8209 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8210 | fi |
8211 | ||
698dcdb6 | 8212 | |
10f2d63a VZ |
8213 | # Find a good install program. We prefer a C program (faster), |
8214 | # so one script is as good as another. But avoid the broken or | |
8215 | # incompatible versions: | |
8216 | # SysV /etc/install, /usr/sbin/install | |
8217 | # SunOS /usr/etc/install | |
8218 | # IRIX /sbin/install | |
8219 | # AIX /bin/install | |
8220 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8221 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8222 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8223 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8224 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
9f41d601 | 8225 | echo "configure:8226: checking for a BSD compatible install" >&5 |
10f2d63a | 8226 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8227 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8228 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8229 | else |
698dcdb6 | 8230 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8231 | for ac_dir in $PATH; do |
8232 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8233 | case "$ac_dir/" in |
8234 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8235 | *) |
8236 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8237 | # Don't use installbsd from OSF since it installs stuff as root | |
8238 | # by default. | |
8239 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8240 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8241 | if test $ac_prog = install && |
698dcdb6 | 8242 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8243 | # AIX install. It has an incompatible calling convention. |
8244 | : | |
8245 | else | |
8246 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8247 | break 2 | |
8248 | fi | |
8249 | fi | |
8250 | done | |
8251 | ;; | |
8252 | esac | |
8253 | done | |
698dcdb6 | 8254 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8255 | |
8256 | fi | |
8257 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8258 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8259 | else |
8260 | # As a last resort, use the slow shell script. We don't cache a | |
8261 | # path for INSTALL within a source directory, because that will | |
8262 | # break other packages using the cache if that directory is | |
8263 | # removed, or if the path is relative. | |
698dcdb6 | 8264 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8265 | fi |
8266 | fi | |
698dcdb6 | 8267 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8268 | |
8269 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8270 | # It thinks the first close brace ends the variable substitution. | |
8271 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8272 | ||
698dcdb6 | 8273 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8274 | |
8275 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8276 | ||
698dcdb6 | 8277 | |
10f2d63a VZ |
8278 | # Extract the first word of "strip", so it can be a program name with args. |
8279 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8280 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9f41d601 | 8281 | echo "configure:8282: checking for $ac_word" >&5 |
698dcdb6 VZ |
8282 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8283 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8284 | else |
8285 | if test -n "$STRIP"; then | |
8286 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8287 | else | |
698dcdb6 VZ |
8288 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8289 | ac_dummy="$PATH" | |
8290 | for ac_dir in $ac_dummy; do | |
8291 | test -z "$ac_dir" && ac_dir=. | |
8292 | if test -f $ac_dir/$ac_word; then | |
8293 | ac_cv_prog_STRIP="strip" | |
8294 | break | |
8295 | fi | |
8296 | done | |
8297 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8298 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8299 | fi | |
8300 | fi | |
698dcdb6 | 8301 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8302 | if test -n "$STRIP"; then |
698dcdb6 | 8303 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8304 | else |
698dcdb6 | 8305 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8306 | fi |
8307 | ||
698dcdb6 VZ |
8308 | |
8309 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
9f41d601 | 8310 | echo "configure:8311: checking make for VPATH support" >&5 |
10f2d63a VZ |
8311 | cat - << EOF > confMake |
8312 | check : file | |
8313 | cp \$? \$@ | |
8314 | cp \$? final_file | |
8315 | EOF | |
8316 | ||
8317 | if test ! -d sub ; then | |
8318 | mkdir sub | |
8319 | fi | |
8320 | echo dummy > sub/file | |
f6bcfd97 | 8321 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8322 | RESULT=$? |
8323 | rm -f sub/file check final_file confMake | |
8324 | rmdir sub | |
8325 | if test "$RESULT" = 0; then | |
698dcdb6 | 8326 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8327 | else |
698dcdb6 VZ |
8328 | echo "$ac_t""no" 1>&6 |
8329 | { echo "configure: error: | |
1e487827 VS |
8330 | You need a make-utility that is able to use the variable |
8331 | VPATH correctly. | |
8332 | If your version of make does not support VPATH correctly, | |
8333 | please install GNU-make (possibly as gmake), and start | |
8334 | configure with the following command: | |
8335 | export MAKE=gmake; ./configure for sh-type shells | |
8336 | setenv MAKE gmake; ./configure for csh-type shells | |
8337 | Also please do remember to use gmake in this case every time | |
8338 | you are trying to compile. | |
698dcdb6 | 8339 | " 1>&2; exit 1; } |
10f2d63a VZ |
8340 | fi |
8341 | ||
8342 | for ac_prog in 'bison -y' byacc | |
8343 | do | |
698dcdb6 | 8344 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8345 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8346 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
9f41d601 | 8347 | echo "configure:8348: checking for $ac_word" >&5 |
698dcdb6 VZ |
8348 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8349 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8350 | else |
8351 | if test -n "$YACC"; then | |
8352 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8353 | else | |
698dcdb6 VZ |
8354 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8355 | ac_dummy="$PATH" | |
8356 | for ac_dir in $ac_dummy; do | |
8357 | test -z "$ac_dir" && ac_dir=. | |
8358 | if test -f $ac_dir/$ac_word; then | |
8359 | ac_cv_prog_YACC="$ac_prog" | |
8360 | break | |
8361 | fi | |
8362 | done | |
8363 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8364 | fi |
8365 | fi | |
698dcdb6 | 8366 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8367 | if test -n "$YACC"; then |
698dcdb6 | 8368 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8369 | else |
698dcdb6 | 8370 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8371 | fi |
8372 | ||
698dcdb6 | 8373 | test -n "$YACC" && break |
10f2d63a VZ |
8374 | done |
8375 | test -n "$YACC" || YACC="yacc" | |
8376 | ||
698dcdb6 VZ |
8377 | |
8378 | # Extract the first word of "flex", so it can be a program name with args. | |
8379 | set dummy flex; ac_word=$2 | |
8380 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9f41d601 | 8381 | echo "configure:8382: checking for $ac_word" >&5 |
698dcdb6 VZ |
8382 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8383 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8384 | else |
8385 | if test -n "$LEX"; then | |
8386 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8387 | else | |
698dcdb6 VZ |
8388 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8389 | ac_dummy="$PATH" | |
8390 | for ac_dir in $ac_dummy; do | |
8391 | test -z "$ac_dir" && ac_dir=. | |
8392 | if test -f $ac_dir/$ac_word; then | |
8393 | ac_cv_prog_LEX="flex" | |
8394 | break | |
8395 | fi | |
8396 | done | |
8397 | IFS="$ac_save_ifs" | |
8398 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8399 | fi |
8400 | fi | |
698dcdb6 | 8401 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8402 | if test -n "$LEX"; then |
698dcdb6 | 8403 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8404 | else |
698dcdb6 | 8405 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8406 | fi |
8407 | ||
8408 | if test -z "$LEXLIB" | |
8409 | then | |
698dcdb6 VZ |
8410 | case "$LEX" in |
8411 | flex*) ac_lib=fl ;; | |
8412 | *) ac_lib=l ;; | |
8413 | esac | |
8414 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
9f41d601 | 8415 | echo "configure:8416: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8416 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8417 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8418 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8419 | else | |
8420 | ac_save_LIBS="$LIBS" | |
8421 | LIBS="-l$ac_lib $LIBS" | |
8422 | cat > conftest.$ac_ext <<EOF | |
9f41d601 | 8423 | #line 8424 "configure" |
10f2d63a VZ |
8424 | #include "confdefs.h" |
8425 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8426 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8427 | builtin and then its argument prototype would still apply. */ |
8428 | char yywrap(); | |
10f2d63a | 8429 | |
698dcdb6 VZ |
8430 | int main() { |
8431 | yywrap() | |
8432 | ; return 0; } | |
8433 | EOF | |
9f41d601 | 8434 | if { (eval echo configure:8435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8435 | rm -rf conftest* |
8436 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8437 | else |
698dcdb6 VZ |
8438 | echo "configure: failed program was:" >&5 |
8439 | cat conftest.$ac_ext >&5 | |
8440 | rm -rf conftest* | |
8441 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8442 | fi |
698dcdb6 VZ |
8443 | rm -f conftest* |
8444 | LIBS="$ac_save_LIBS" | |
8445 | ||
10f2d63a | 8446 | fi |
698dcdb6 VZ |
8447 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8448 | echo "$ac_t""yes" 1>&6 | |
8449 | LEXLIB="-l$ac_lib" | |
8450 | else | |
8451 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8452 | fi |
8453 | ||
8454 | fi | |
8455 | ||
8456 | ||
698dcdb6 | 8457 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
9f41d601 | 8458 | echo "configure:8459: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8459 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8460 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8461 | else |
698dcdb6 VZ |
8462 | rm -f conftestdata |
8463 | if ln -s X conftestdata 2>/dev/null | |
8464 | then | |
8465 | rm -f conftestdata | |
8466 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8467 | else |
698dcdb6 | 8468 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8469 | fi |
8470 | fi | |
698dcdb6 VZ |
8471 | LN_S="$ac_cv_prog_LN_S" |
8472 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8473 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8474 | else |
698dcdb6 | 8475 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8476 | fi |
8477 | ||
8478 | ||
8479 | ||
8480 | SEARCH_INCLUDE="\ | |
8481 | /usr/local/include \ | |
8482 | \ | |
8483 | /usr/Motif-1.2/include \ | |
8484 | /usr/Motif-2.1/include \ | |
8485 | \ | |
8486 | /usr/include/Motif1.2 \ | |
8487 | /opt/xpm/include/X11 \ | |
8488 | /opt/GBxpm/include/ \ | |
8489 | /opt/GBxpm/X11/include/ \ | |
8490 | \ | |
8491 | /usr/Motif1.2/include \ | |
8492 | /usr/dt/include \ | |
afc31813 VZ |
8493 | /usr/openwin/include \ |
8494 | \ | |
10f2d63a VZ |
8495 | /usr/include/Xm \ |
8496 | \ | |
8497 | /usr/X11R6/include \ | |
afc31813 | 8498 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8499 | /usr/X11R5/include \ |
8500 | /usr/X11R4/include \ | |
8501 | \ | |
10f2d63a VZ |
8502 | /usr/include/X11R6 \ |
8503 | /usr/include/X11R5 \ | |
8504 | /usr/include/X11R4 \ | |
8505 | \ | |
8506 | /usr/local/X11R6/include \ | |
8507 | /usr/local/X11R5/include \ | |
8508 | /usr/local/X11R4/include \ | |
8509 | \ | |
8510 | /usr/local/include/X11R6 \ | |
8511 | /usr/local/include/X11R5 \ | |
8512 | /usr/local/include/X11R4 \ | |
8513 | \ | |
8514 | /usr/X11/include \ | |
8515 | /usr/include/X11 \ | |
8516 | /usr/local/X11/include \ | |
8517 | /usr/local/include/X11 \ | |
8518 | \ | |
8519 | /usr/X386/include \ | |
8520 | /usr/x386/include \ | |
8521 | /usr/XFree86/include/X11 \ | |
8522 | \ | |
cf27ef00 | 8523 | X:/XFree86/include \ |
ec14dd32 VZ |
8524 | X:/XFree86/include/X11 \ |
8525 | \ | |
10f2d63a VZ |
8526 | /usr/include/gtk \ |
8527 | /usr/local/include/gtk \ | |
8528 | /usr/include/glib \ | |
8529 | /usr/local/include/glib \ | |
8530 | \ | |
8531 | /usr/include/qt \ | |
8532 | /usr/local/include/qt \ | |
8533 | \ | |
8534 | /usr/include/windows \ | |
8535 | /usr/include/wine \ | |
8536 | /usr/local/include/wine \ | |
8537 | \ | |
8538 | /usr/unsupported/include \ | |
8539 | /usr/athena/include \ | |
8540 | /usr/local/x11r5/include \ | |
8541 | /usr/lpp/Xamples/include \ | |
8542 | \ | |
10f2d63a | 8543 | /usr/openwin/share/include \ |
928b5c08 VZ |
8544 | \ |
8545 | /usr/include" | |
10f2d63a VZ |
8546 | |
8547 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8548 | ||
698dcdb6 VZ |
8549 | |
8550 | cat > confcache <<\EOF | |
10f2d63a VZ |
8551 | # This file is a shell script that caches the results of configure |
8552 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8553 | # scripts and configure runs. It is not useful on other systems. |
8554 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8555 | # |
698dcdb6 VZ |
8556 | # By default, configure uses ./config.cache as the cache file, |
8557 | # creating it if it does not exist already. You can give configure | |
8558 | # the --cache-file=FILE option to use a different cache file; that is | |
8559 | # what configure does when it calls configure scripts in | |
8560 | # subdirectories, so they share the cache. | |
8561 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8562 | # config.status only pays attention to the cache file if you give it the | |
8563 | # --recheck option to rerun configure. | |
10f2d63a | 8564 | # |
698dcdb6 | 8565 | EOF |
10f2d63a VZ |
8566 | # The following way of writing the cache mishandles newlines in values, |
8567 | # but we know of no workaround that is simple, portable, and efficient. | |
8568 | # So, don't put newlines in cache variables' values. | |
8569 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8570 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8571 | (set) 2>&1 | |
8572 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8573 | *ac_space=\ *) | |
8574 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8575 | # turns \\\\ into \\, and sed turns \\ into \). | |
8576 | sed -n \ | |
8577 | -e "s/'/'\\\\''/g" \ | |
8578 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8579 | ;; | |
8580 | *) | |
8581 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8582 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8583 | ;; | |
8584 | esac >> confcache | |
8585 | if cmp -s $cache_file confcache; then | |
8586 | : | |
8587 | else | |
10f2d63a | 8588 | if test -w $cache_file; then |
698dcdb6 VZ |
8589 | echo "updating cache $cache_file" |
8590 | cat confcache > $cache_file | |
10f2d63a VZ |
8591 | else |
8592 | echo "not updating unwritable cache $cache_file" | |
8593 | fi | |
8594 | fi | |
8595 | rm -f confcache | |
8596 | ||
698dcdb6 VZ |
8597 | |
8598 | ||
dad6c0ea VZ |
8599 | AFMINSTALL= |
8600 | ||
10f2d63a | 8601 | if test "$wxUSE_GUI" = "yes"; then |
1e6feb95 | 8602 | USE_GUI=1 |
10f2d63a | 8603 | |
1e6feb95 VZ |
8604 | TOOLKIT= |
8605 | TOOLKIT_INCLUDE= | |
10f2d63a | 8606 | |
1e6feb95 VZ |
8607 | GUI_TK_LIBRARY= |
8608 | GUI_TK_LINK= | |
10f2d63a | 8609 | |
1e6feb95 VZ |
8610 | WXGTK12= |
8611 | WXGTK127= | |
8612 | WXGTK20= | |
10f2d63a | 8613 | |
1e6feb95 | 8614 | WXWINE= |
10f2d63a | 8615 | |
1e6feb95 VZ |
8616 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
8617 | if test "$cross_compiling" = "yes" ; then | |
8618 | echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2 | |
8619 | else | |
8620 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
9f41d601 | 8621 | echo "configure:8622: checking for Windows headers" >&5 |
1e6feb95 | 8622 | |
10f2d63a VZ |
8623 | ac_find_includes= |
8624 | for ac_dir in $SEARCH_INCLUDE; | |
8625 | do | |
8626 | if test -f "$ac_dir/windows.h"; then | |
8627 | ac_find_includes=$ac_dir | |
8628 | break | |
8629 | fi | |
8630 | done | |
8631 | ||
1e6feb95 VZ |
8632 | if test "$ac_find_includes" != "" ; then |
8633 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8634 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
8635 | else | |
8636 | echo "$ac_t""no" 1>&6 | |
8637 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
8638 | fi | |
10f2d63a | 8639 | fi |
d4158b5d VS |
8640 | |
8641 | for ac_hdr in w32api.h | |
8642 | do | |
8643 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8644 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8645 | echo "configure:8646: checking for $ac_hdr" >&5 | |
8646 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8647 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8648 | else | |
8649 | cat > conftest.$ac_ext <<EOF | |
8650 | #line 8651 "configure" | |
8651 | #include "confdefs.h" | |
8652 | #include <$ac_hdr> | |
8653 | EOF | |
8654 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8655 | { (eval echo configure:8656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8656 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8657 | if test -z "$ac_err"; then | |
8658 | rm -rf conftest* | |
8659 | eval "ac_cv_header_$ac_safe=yes" | |
8660 | else | |
8661 | echo "$ac_err" >&5 | |
8662 | echo "configure: failed program was:" >&5 | |
8663 | cat conftest.$ac_ext >&5 | |
8664 | rm -rf conftest* | |
8665 | eval "ac_cv_header_$ac_safe=no" | |
8666 | fi | |
8667 | rm -f conftest* | |
8668 | fi | |
8669 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8670 | echo "$ac_t""yes" 1>&6 | |
8671 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8672 | cat >> confdefs.h <<EOF | |
8673 | #define $ac_tr_hdr 1 | |
8674 | EOF | |
8675 | ||
8676 | else | |
8677 | echo "$ac_t""no" 1>&6 | |
8678 | fi | |
8679 | done | |
8680 | ||
10f2d63a | 8681 | |
1e6feb95 VZ |
8682 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" |
8683 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
f6bcfd97 | 8684 | |
1e6feb95 VZ |
8685 | if test "$wxUSE_ODBC" = "yes" ; then |
8686 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
8687 | fi | |
10f2d63a | 8688 | |
1e6feb95 VZ |
8689 | if test "$wxUSE_MINGW" = 1; then |
8690 | LDFLAGS="$LDFLAGS -mwindows" | |
8691 | fi | |
32832908 | 8692 | |
1e6feb95 VZ |
8693 | TOOLKIT=MSW |
8694 | GUIDIST=MSW_DIST | |
32832908 | 8695 | |
1e6feb95 VZ |
8696 | RCINCSWITCH="--include-dir" |
8697 | RCDEFSWITCH="--define" | |
8698 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
8699 | RCINPUTSWITCH="-i" | |
8700 | RCOUTPUTSWITCH="-o" | |
8701 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
32832908 | 8702 | |
1e6feb95 VZ |
8703 | RESPROGRAM="\$(RES_PROGRAM)" |
8704 | fi | |
10f2d63a | 8705 | |
1e6feb95 | 8706 | if test "$wxUSE_GTK" = 1; then |
8168de4c | 8707 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
d4158b5d | 8708 | echo "configure:8709: checking for GTK+ version" >&5 |
8168de4c VZ |
8709 | |
8710 | gtk_version_cached=1 | |
8711 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
8712 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8713 | else | |
8714 | ||
8715 | gtk_version_cached=0 | |
8716 | echo "$ac_t""""" 1>&6 | |
8717 | ||
8718 | wx_cv_lib_gtk= | |
8719 | if test "x$wxUSE_GTK2" = "xyes"; then | |
8720 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
6f72b082 OK |
8721 | if test "${with_gtk_prefix+set}" = set; then |
8722 | withval="$with_gtk_prefix" | |
8723 | gtk_config_prefix="$withval" | |
8724 | else | |
8725 | gtk_config_prefix="" | |
698dcdb6 | 8726 | fi |
6f72b082 OK |
8727 | |
8728 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
8729 | if test "${with_gtk_exec_prefix+set}" = set; then | |
8730 | withval="$with_gtk_exec_prefix" | |
8731 | gtk_config_exec_prefix="$withval" | |
8732 | else | |
8733 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
8734 | fi |
8735 | ||
6f72b082 OK |
8736 | # Check whether --enable-gtktest or --disable-gtktest was given. |
8737 | if test "${enable_gtktest+set}" = set; then | |
8738 | enableval="$enable_gtktest" | |
698dcdb6 | 8739 | : |
6f72b082 OK |
8740 | else |
8741 | enable_gtktest=yes | |
698dcdb6 VZ |
8742 | fi |
8743 | ||
6f72b082 | 8744 | |
8168de4c | 8745 | for module in . |
6f72b082 OK |
8746 | do |
8747 | case "$module" in | |
8168de4c | 8748 | gthread) |
6f72b082 OK |
8749 | gtk_config_args="$gtk_config_args gthread" |
8750 | ;; | |
8751 | esac | |
8752 | done | |
8753 | ||
8754 | if test x$gtk_config_exec_prefix != x ; then | |
8755 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8756 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8757 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
8758 | fi | |
8759 | fi | |
8760 | if test x$gtk_config_prefix != x ; then | |
8761 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8762 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8763 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
8764 | fi | |
8765 | fi | |
8766 | ||
8767 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
8768 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 8769 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d4158b5d | 8770 | echo "configure:8771: checking for $ac_word" >&5 |
698dcdb6 VZ |
8771 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
8772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 8773 | else |
698dcdb6 VZ |
8774 | case "$GTK_CONFIG_2_0" in |
8775 | /*) | |
6f72b082 OK |
8776 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
8777 | ;; | |
698dcdb6 VZ |
8778 | ?:/*) |
8779 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
8780 | ;; | |
6f72b082 | 8781 | *) |
698dcdb6 VZ |
8782 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8783 | ac_dummy="$PATH" | |
8784 | for ac_dir in $ac_dummy; do | |
8785 | test -z "$ac_dir" && ac_dir=. | |
8786 | if test -f $ac_dir/$ac_word; then | |
8787 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
8788 | break | |
8789 | fi | |
8790 | done | |
8791 | IFS="$ac_save_ifs" | |
6f72b082 OK |
8792 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
8793 | ;; | |
8794 | esac | |
8795 | fi | |
698dcdb6 | 8796 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 8797 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 8798 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 8799 | else |
698dcdb6 | 8800 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8801 | fi |
8802 | ||
8803 | min_gtk_version=1.3.1 | |
698dcdb6 | 8804 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d4158b5d | 8805 | echo "configure:8806: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
8806 | no_gtk="" |
8807 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
8808 | no_gtk=yes | |
8809 | else | |
8810 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
8811 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
8812 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8813 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
8814 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8815 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
8816 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8817 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
8818 | if test "x$enable_gtktest" = "xyes" ; then | |
8819 | ac_save_CFLAGS="$CFLAGS" | |
8820 | ac_save_LIBS="$LIBS" | |
8821 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8822 | LIBS="$GTK_LIBS $LIBS" | |
8823 | rm -f conf.gtktest | |
8824 | if test "$cross_compiling" = yes; then | |
8825 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8826 | else | |
698dcdb6 | 8827 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 8828 | #line 8829 "configure" |
6f72b082 OK |
8829 | #include "confdefs.h" |
8830 | ||
8831 | #include <gtk/gtk.h> | |
8832 | #include <stdio.h> | |
8833 | #include <stdlib.h> | |
8834 | ||
8168de4c | 8835 | int |
6f72b082 OK |
8836 | main () |
8837 | { | |
8838 | int major, minor, micro; | |
8839 | char *tmp_version; | |
8840 | ||
8841 | system ("touch conf.gtktest"); | |
8842 | ||
8843 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
8844 | tmp_version = g_strdup("$min_gtk_version"); | |
8845 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
8846 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8847 | exit(1); | |
8848 | } | |
8849 | ||
8850 | if ((gtk_major_version != $gtk_config_major_version) || | |
8851 | (gtk_minor_version != $gtk_config_minor_version) || | |
8852 | (gtk_micro_version != $gtk_config_micro_version)) | |
8853 | { | |
8168de4c | 8854 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
8855 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
8856 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8857 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
8858 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
8859 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
8860 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
8861 | printf("*** required on your system.\n"); | |
8862 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
8863 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
8864 | printf("*** before re-running configure\n"); | |
8168de4c | 8865 | } |
6f72b082 OK |
8866 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
8867 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 8868 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
8869 | (gtk_micro_version != GTK_MICRO_VERSION)) |
8870 | { | |
8871 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 8872 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 8873 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 8874 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
8875 | } |
8876 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
8877 | else | |
8878 | { | |
8879 | if ((gtk_major_version > major) || | |
8880 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8881 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
8882 | { | |
8883 | return 0; | |
8884 | } | |
8885 | else | |
8886 | { | |
8887 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
8888 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8889 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 8890 | major, minor, micro); |
6f72b082 OK |
8891 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
8892 | printf("***\n"); | |
8893 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
8894 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
8895 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
8896 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
8897 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
8898 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
8899 | printf("*** so that the correct libraries are found at run-time))\n"); | |
8900 | } | |
8901 | } | |
8902 | return 1; | |
8903 | } | |
8904 | ||
698dcdb6 | 8905 | EOF |
d4158b5d | 8906 | if { (eval echo configure:8907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 8907 | then |
6f72b082 OK |
8908 | : |
8909 | else | |
698dcdb6 VZ |
8910 | echo "configure: failed program was:" >&5 |
8911 | cat conftest.$ac_ext >&5 | |
8912 | rm -fr conftest* | |
8913 | no_gtk=yes | |
6f72b082 | 8914 | fi |
698dcdb6 | 8915 | rm -fr conftest* |
6f72b082 | 8916 | fi |
698dcdb6 | 8917 | |
6f72b082 OK |
8918 | CFLAGS="$ac_save_CFLAGS" |
8919 | LIBS="$ac_save_LIBS" | |
8920 | fi | |
8921 | fi | |
8922 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 8923 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 8924 | wx_cv_lib_gtk=2.0 |
6f72b082 | 8925 | else |
698dcdb6 | 8926 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8927 | if test "$GTK_CONFIG_2_0" = "no" ; then |
8928 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
8929 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
8930 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
8931 | echo "*** full path to gtk-config-2.0." | |
8932 | else | |
8933 | if test -f conf.gtktest ; then | |
8934 | : | |
8935 | else | |
8936 | echo "*** Could not run GTK test program, checking why..." | |
8937 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8938 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 8939 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 8940 | #line 8941 "configure" |
6f72b082 OK |
8941 | #include "confdefs.h" |
8942 | ||
8943 | #include <gtk/gtk.h> | |
8944 | #include <stdio.h> | |
8945 | ||
698dcdb6 VZ |
8946 | int main() { |
8947 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
8948 | ; return 0; } | |
8949 | EOF | |
d4158b5d | 8950 | if { (eval echo configure:8951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 8951 | rm -rf conftest* |
6f72b082 OK |
8952 | echo "*** The test program compiled, but did not run. This usually means" |
8953 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
8954 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
8955 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
8956 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
8957 | echo "*** is required on your system" | |
8168de4c | 8958 | echo "***" |
6f72b082 OK |
8959 | echo "*** If you have an old version installed, it is best to remove it, although" |
8960 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
8961 | echo "***" | |
8962 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
8963 | echo "*** came with the system with the command" | |
8964 | echo "***" | |
698dcdb6 | 8965 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 8966 | else |
698dcdb6 VZ |
8967 | echo "configure: failed program was:" >&5 |
8968 | cat conftest.$ac_ext >&5 | |
8969 | rm -rf conftest* | |
8970 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
8971 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
8972 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 8973 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 8974 | fi |
698dcdb6 | 8975 | rm -f conftest* |
6f72b082 OK |
8976 | CFLAGS="$ac_save_CFLAGS" |
8977 | LIBS="$ac_save_LIBS" | |
8978 | fi | |
8979 | fi | |
8980 | GTK_CFLAGS="" | |
8981 | GTK_LIBS="" | |
8168de4c VZ |
8982 | gthread |
8983 | fi | |
8984 | ||
8985 | ||
8986 | rm -f conf.gtktest | |
8987 | ||
8988 | fi | |
8989 | ||
8990 | if test -z "$wx_cv_lib_gtk"; then | |
8991 | ||
10f2d63a VZ |
8992 | if test x$gtk_config_exec_prefix != x ; then |
8993 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8994 | if test x${GTK_CONFIG+set} != xset ; then | |
8995 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
8996 | fi | |
8997 | fi | |
8998 | if test x$gtk_config_prefix != x ; then | |
8999 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9000 | if test x${GTK_CONFIG+set} != xset ; then | |
9001 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9002 | fi | |
9003 | fi | |
9004 | ||
9005 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9006 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9007 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d4158b5d | 9008 | echo "configure:9009: checking for $ac_word" >&5 |
698dcdb6 VZ |
9009 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9010 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 9011 | else |
698dcdb6 VZ |
9012 | case "$GTK_CONFIG" in |
9013 | /*) | |
f6bcfd97 BP |
9014 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9015 | ;; | |
698dcdb6 VZ |
9016 | ?:/*) |
9017 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9018 | ;; | |
f6bcfd97 | 9019 | *) |
698dcdb6 VZ |
9020 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9021 | ac_dummy="$PATH" | |
9022 | for ac_dir in $ac_dummy; do | |
9023 | test -z "$ac_dir" && ac_dir=. | |
9024 | if test -f $ac_dir/$ac_word; then | |
9025 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9026 | break | |
9027 | fi | |
9028 | done | |
9029 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
9030 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9031 | ;; | |
9032 | esac | |
9033 | fi | |
698dcdb6 | 9034 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 9035 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9036 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 9037 | else |
698dcdb6 | 9038 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9039 | fi |
9040 | ||
9041 | min_gtk_version=1.2.7 | |
698dcdb6 | 9042 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d4158b5d | 9043 | echo "configure:9044: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
9044 | no_gtk="" |
9045 | if test "$GTK_CONFIG" != "no" ; then | |
9046 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
9047 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
9048 | ac_save_CFLAGS="$CFLAGS" | |
9049 | ac_save_LIBS="$LIBS" | |
9050 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9051 | LIBS="$LIBS $GTK_LIBS" | |
9052 | if test "$cross_compiling" = yes; then | |
9053 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9054 | else | |
698dcdb6 | 9055 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 9056 | #line 9057 "configure" |
f6bcfd97 BP |
9057 | #include "confdefs.h" |
9058 | ||
9059 | #include <gtk/gtk.h> | |
9060 | #include <gtk/gtkfeatures.h> | |
9061 | #include <stdio.h> | |
9062 | #include <stdlib.h> | |
9063 | ||
9064 | int | |
9065 | main () | |
9066 | { | |
9067 | int major, minor, micro; | |
9068 | ||
9069 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9070 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9071 | exit(1); | |
9072 | } | |
9073 | ||
9074 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
9075 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9076 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9077 | printf("Headers vs. library version mismatch!\n"); | |
9078 | exit(1); | |
9079 | } | |
9080 | ||
9081 | if (gtk_minor_version == 1) return FALSE; | |
9082 | ||
9083 | return !((gtk_major_version > major) || | |
9084 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9085 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9086 | } | |
9087 | ||
698dcdb6 | 9088 | EOF |
d4158b5d | 9089 | if { (eval echo configure:9090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9090 | then |
f6bcfd97 BP |
9091 | : |
9092 | else | |
698dcdb6 VZ |
9093 | echo "configure: failed program was:" >&5 |
9094 | cat conftest.$ac_ext >&5 | |
9095 | rm -fr conftest* | |
9096 | no_gtk=yes | |
f6bcfd97 | 9097 | fi |
698dcdb6 | 9098 | rm -fr conftest* |
f6bcfd97 | 9099 | fi |
698dcdb6 | 9100 | |
f6bcfd97 BP |
9101 | CFLAGS="$ac_save_CFLAGS" |
9102 | LIBS="$ac_save_LIBS" | |
9103 | else | |
9104 | no_gtk=yes | |
9105 | fi | |
9106 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9107 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9108 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 9109 | else |
698dcdb6 | 9110 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
9111 | GTK_CFLAGS="" |
9112 | GTK_LIBS="" | |
9113 | : | |
9114 | fi | |
698dcdb6 VZ |
9115 | |
9116 | ||
f6bcfd97 | 9117 | |
8168de4c VZ |
9118 | fi |
9119 | ||
9120 | if test -z "$wx_cv_lib_gtk"; then | |
9121 | ||
f6bcfd97 BP |
9122 | if test x$gtk_config_exec_prefix != x ; then |
9123 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9124 | if test x${GTK_CONFIG+set} != xset ; then | |
9125 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9126 | fi | |
9127 | fi | |
9128 | if test x$gtk_config_prefix != x ; then | |
9129 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9130 | if test x${GTK_CONFIG+set} != xset ; then | |
9131 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9132 | fi | |
9133 | fi | |
9134 | ||
9135 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9136 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9137 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d4158b5d | 9138 | echo "configure:9139: checking for $ac_word" >&5 |
698dcdb6 VZ |
9139 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9141 | else |
698dcdb6 VZ |
9142 | case "$GTK_CONFIG" in |
9143 | /*) | |
10f2d63a VZ |
9144 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9145 | ;; | |
698dcdb6 VZ |
9146 | ?:/*) |
9147 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9148 | ;; | |
10f2d63a | 9149 | *) |
698dcdb6 VZ |
9150 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9151 | ac_dummy="$PATH" | |
9152 | for ac_dir in $ac_dummy; do | |
9153 | test -z "$ac_dir" && ac_dir=. | |
9154 | if test -f $ac_dir/$ac_word; then | |
9155 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9156 | break | |
9157 | fi | |
9158 | done | |
9159 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9160 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9161 | ;; | |
9162 | esac | |
9163 | fi | |
698dcdb6 | 9164 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 9165 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9166 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 9167 | else |
698dcdb6 | 9168 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9169 | fi |
9170 | ||
04165bec | 9171 | min_gtk_version=1.2.3 |
698dcdb6 | 9172 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d4158b5d | 9173 | echo "configure:9174: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
9174 | no_gtk="" |
9175 | if test "$GTK_CONFIG" != "no" ; then | |
9176 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 9177 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
9178 | ac_save_CFLAGS="$CFLAGS" |
9179 | ac_save_LIBS="$LIBS" | |
9180 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9181 | LIBS="$LIBS $GTK_LIBS" | |
9182 | if test "$cross_compiling" = yes; then | |
9183 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9184 | else | |
698dcdb6 | 9185 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 9186 | #line 9187 "configure" |
10f2d63a VZ |
9187 | #include "confdefs.h" |
9188 | ||
9189 | #include <gtk/gtk.h> | |
f49f2b0c | 9190 | #include <gtk/gtkfeatures.h> |
10f2d63a | 9191 | #include <stdio.h> |
32832908 | 9192 | #include <stdlib.h> |
10f2d63a VZ |
9193 | |
9194 | int | |
9195 | main () | |
9196 | { | |
9197 | int major, minor, micro; | |
9198 | ||
9199 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9200 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9201 | exit(1); | |
9202 | } | |
9203 | ||
f49f2b0c RR |
9204 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
9205 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9206 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9207 | printf("Headers vs. library version mismatch!\n"); | |
9208 | exit(1); | |
9209 | } | |
9210 | ||
10f2d63a VZ |
9211 | if (gtk_minor_version == 1) return FALSE; |
9212 | ||
9213 | return !((gtk_major_version > major) || | |
9214 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9215 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9216 | } | |
9217 | ||
698dcdb6 | 9218 | EOF |
d4158b5d | 9219 | if { (eval echo configure:9220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9220 | then |
10f2d63a VZ |
9221 | : |
9222 | else | |
698dcdb6 VZ |
9223 | echo "configure: failed program was:" >&5 |
9224 | cat conftest.$ac_ext >&5 | |
9225 | rm -fr conftest* | |
9226 | no_gtk=yes | |
10f2d63a | 9227 | fi |
698dcdb6 | 9228 | rm -fr conftest* |
10f2d63a | 9229 | fi |
698dcdb6 | 9230 | |
10f2d63a VZ |
9231 | CFLAGS="$ac_save_CFLAGS" |
9232 | LIBS="$ac_save_LIBS" | |
9233 | else | |
9234 | no_gtk=yes | |
9235 | fi | |
9236 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9237 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9238 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 9239 | else |
698dcdb6 | 9240 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9241 | GTK_CFLAGS="" |
9242 | GTK_LIBS="" | |
7e99ad86 | 9243 | : |
10f2d63a | 9244 | fi |
698dcdb6 VZ |
9245 | |
9246 | ||
10f2d63a | 9247 | |
8168de4c VZ |
9248 | fi |
9249 | ||
9250 | if test -z "$wx_cv_lib_gtk"; then | |
9251 | wx_cv_lib_gtk=none | |
138be253 VZ |
9252 | else |
9253 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
9254 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
9255 | fi |
9256 | ||
1e6feb95 | 9257 | |
8168de4c | 9258 | fi |
703e0a69 | 9259 | |
698dcdb6 | 9260 | |
8168de4c VZ |
9261 | if test "$gtk_version_cached" = 1; then |
9262 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 9263 | fi |
698dcdb6 | 9264 | |
8168de4c VZ |
9265 | case "$wx_cv_lib_gtk" in |
9266 | 2.0) WXGTK20=1 | |
9267 | ;; | |
9268 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 9269 | WXGTK12=1 |
8168de4c VZ |
9270 | ;; |
9271 | 1.2.3) WXGTK12=1 | |
9272 | ;; | |
9273 | *) { echo "configure: error: | |
9274 | Please check that gtk-config is in path, the directory | |
9275 | where GTK+ libraries are installed (returned by | |
9276 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9277 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9278 | " 1>&2; exit 1; } | |
9279 | ;; | |
9280 | esac | |
2224580a | 9281 | |
138be253 | 9282 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 9283 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 9284 | |
1e6feb95 VZ |
9285 | AFMINSTALL=afminstall |
9286 | TOOLKIT=GTK | |
9287 | GUIDIST=GTK_DIST | |
7ec2881a | 9288 | |
1e6feb95 | 9289 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
d4158b5d | 9290 | echo "configure:9291: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
9291 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
9292 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 9294 | else |
698dcdb6 | 9295 | ac_save_LIBS="$LIBS" |
7ec2881a | 9296 | LIBS="-lgdk $LIBS" |
698dcdb6 | 9297 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 9298 | #line 9299 "configure" |
7ec2881a RR |
9299 | #include "confdefs.h" |
9300 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9301 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9302 | builtin and then its argument prototype would still apply. */ |
9303 | char gdk_im_open(); | |
9304 | ||
9305 | int main() { | |
9306 | gdk_im_open() | |
9307 | ; return 0; } | |
9308 | EOF | |
d4158b5d | 9309 | if { (eval echo configure:9310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9310 | rm -rf conftest* |
9311 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9312 | else | |
9313 | echo "configure: failed program was:" >&5 | |
9314 | cat conftest.$ac_ext >&5 | |
9315 | rm -rf conftest* | |
9316 | eval "ac_cv_lib_$ac_lib_var=no" | |
9317 | fi | |
9318 | rm -f conftest* | |
9319 | LIBS="$ac_save_LIBS" | |
9320 | ||
9321 | fi | |
9322 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9323 | echo "$ac_t""yes" 1>&6 | |
9324 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
9325 | #define HAVE_XIM 1 |
9326 | EOF | |
9327 | ||
698dcdb6 VZ |
9328 | else |
9329 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
9330 | fi |
9331 | ||
1e6feb95 | 9332 | fi |
10f2d63a | 9333 | |
1e6feb95 VZ |
9334 | if test "$wxUSE_MGL" = 1; then |
9335 | ||
9336 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
d4158b5d | 9337 | echo "configure:9338: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
9338 | if test "x$MGL_ROOT" = x ; then |
9339 | echo "$ac_t""not found" 1>&6 | |
9340 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
9341 | else | |
9342 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
9343 | fi | |
9344 | ||
9345 | MGL_OS=linux/gcc/glibc | |
9346 | MGL_LIB_TYPE="" | |
9347 | ||
9348 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
9349 | if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then | |
9350 | MGL_LIB_TYPE=debug | |
9351 | fi | |
9352 | fi | |
9353 | if test "x$MGL_LIB_TYPE" = x ; then | |
9354 | if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then | |
9355 | MGL_LIB_TYPE=release | |
9356 | else | |
9357 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
9358 | fi | |
9359 | fi | |
9360 | ||
9361 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
9362 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm" | |
9363 | ||
9364 | AFMINSTALL=afminstall | |
9365 | TOOLKIT=MGL | |
9366 | GUIDIST=MGL_DIST | |
9367 | fi | |
9368 | ||
9369 | if test "$wxUSE_WINE" = 1; then | |
9370 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
d4158b5d | 9371 | echo "configure:9372: checking for WINE includes" >&5 |
1e6feb95 | 9372 | |
10f2d63a VZ |
9373 | ac_find_includes= |
9374 | for ac_dir in $SEARCH_INCLUDE; | |
9375 | do | |
9376 | if test -f "$ac_dir/windows.h"; then | |
9377 | ac_find_includes=$ac_dir | |
9378 | break | |
9379 | fi | |
9380 | done | |
9381 | ||
1e6feb95 VZ |
9382 | if test "$ac_find_includes" != "" ; then |
9383 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
9384 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
9385 | else | |
9386 | echo "$ac_t""no" 1>&6 | |
9387 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9388 | fi | |
10f2d63a | 9389 | |
1e6feb95 VZ |
9390 | XPM_LINK="" |
9391 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
d4158b5d | 9392 | echo "configure:9393: checking for Xpm library" >&5 |
1e6feb95 | 9393 | |
10f2d63a VZ |
9394 | ac_find_libraries= |
9395 | for ac_dir in $SEARCH_LIB; | |
9396 | do | |
9397 | for ac_extension in a so sl; do | |
9398 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
9399 | ac_find_libraries=$ac_dir | |
9400 | break 2 | |
9401 | fi | |
9402 | done | |
9403 | done | |
9404 | ||
1e6feb95 VZ |
9405 | if test "$ac_find_libraries" != "" ; then |
9406 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
9407 | XPM_LINK="-lXpm" | |
9408 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
9409 | #define wxHAVE_LIB_XPM 1 |
9410 | EOF | |
9411 | ||
1e6feb95 VZ |
9412 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9413 | else | |
9414 | echo "$ac_t""no" 1>&6 | |
9415 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9416 | fi | |
10f2d63a | 9417 | |
1e6feb95 VZ |
9418 | MESA_LINK="" |
9419 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
d4158b5d | 9420 | echo "configure:9421: checking for Mesa library" >&5 |
1e6feb95 | 9421 | |
10f2d63a VZ |
9422 | ac_find_libraries= |
9423 | for ac_dir in $SEARCH_LIB; | |
9424 | do | |
9425 | for ac_extension in a so sl; do | |
9426 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
9427 | ac_find_libraries=$ac_dir | |
9428 | break 2 | |
9429 | fi | |
9430 | done | |
9431 | done | |
9432 | ||
1e6feb95 VZ |
9433 | if test "$ac_find_libraries" != "" ; then |
9434 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
9435 | MESA_LINK="-lMesaGL" | |
9436 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
9437 | else | |
9438 | { echo "configure: error: no" 1>&2; exit 1; } | |
9439 | fi | |
10f2d63a | 9440 | |
1e6feb95 VZ |
9441 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
9442 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
9443 | WXWINE=1 | |
9444 | TOOLKIT=MSW | |
9445 | GUIDIST=MSW_DIST | |
9446 | fi | |
698dcdb6 | 9447 | |
1e6feb95 VZ |
9448 | |
9449 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
9450 | # paths, otherwise set no_x=yes. |
9451 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
9452 | # --without-x overrides everything else, but does not touch the cache. | |
9453 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
d4158b5d | 9454 | echo "configure:9455: checking for X" >&5 |
ab9b9eab VZ |
9455 | |
9456 | # Check whether --with-x or --without-x was given. | |
9457 | if test "${with_x+set}" = set; then | |
9458 | withval="$with_x" | |
698dcdb6 VZ |
9459 | : |
9460 | fi | |
ba337fe7 | 9461 | |
ab9b9eab VZ |
9462 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9463 | if test "x$with_x" = xno; then | |
9464 | # The user explicitly disabled X. | |
9465 | have_x=disabled | |
9466 | else | |
9467 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
9468 | # Both variables are already set. | |
9469 | have_x=yes | |
9470 | else | |
698dcdb6 VZ |
9471 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
9472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
9473 | else |
9474 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
9475 | ac_x_includes=NO ac_x_libraries=NO |
9476 | rm -fr conftestdir | |
9477 | if mkdir conftestdir; then | |
9478 | cd conftestdir | |
ab9b9eab | 9479 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 9480 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
9481 | acfindx: |
9482 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
9483 | EOF | |
9484 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
9485 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9486 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
9487 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 9488 | for ac_extension in a so sl; do |
ab9b9eab | 9489 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 9490 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 9491 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
9492 | fi |
9493 | done | |
ab9b9eab VZ |
9494 | # Screen out bogus values from the imake configuration. They are |
9495 | # bogus both because they are the default anyway, and because | |
9496 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 9497 | case "$ac_im_incroot" in |
ab9b9eab | 9498 | /usr/include) ;; |
698dcdb6 | 9499 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 9500 | esac |
698dcdb6 | 9501 | case "$ac_im_usrlibdir" in |
ab9b9eab | 9502 | /usr/lib | /lib) ;; |
698dcdb6 | 9503 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 9504 | esac |
ba337fe7 | 9505 | fi |
ab9b9eab | 9506 | cd .. |
698dcdb6 | 9507 | rm -fr conftestdir |
ab9b9eab | 9508 | fi |
10f2d63a | 9509 | |
698dcdb6 VZ |
9510 | if test "$ac_x_includes" = NO; then |
9511 | # Guess where to find include files, by looking for this one X11 .h file. | |
9512 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
9513 | ||
ab9b9eab | 9514 | # First, try using that file with no special directory specified. |
698dcdb6 | 9515 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 9516 | #line 9517 "configure" |
ab9b9eab | 9517 | #include "confdefs.h" |
698dcdb6 VZ |
9518 | #include <$x_direct_test_include> |
9519 | EOF | |
9520 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 9521 | { (eval echo configure:9522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
9522 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9523 | if test -z "$ac_err"; then | |
9524 | rm -rf conftest* | |
ab9b9eab VZ |
9525 | # We can compile using X headers with no special include directory. |
9526 | ac_x_includes= | |
9527 | else | |
698dcdb6 VZ |
9528 | echo "$ac_err" >&5 |
9529 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 9530 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9531 | rm -rf conftest* |
9532 | # Look for the header file in a standard set of common directories. | |
9533 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9534 | for ac_dir in \ | |
9535 | /usr/X11/include \ | |
9536 | /usr/X11R6/include \ | |
9537 | /usr/X11R5/include \ | |
9538 | /usr/X11R4/include \ | |
9539 | \ | |
9540 | /usr/include/X11 \ | |
9541 | /usr/include/X11R6 \ | |
9542 | /usr/include/X11R5 \ | |
9543 | /usr/include/X11R4 \ | |
9544 | \ | |
9545 | /usr/local/X11/include \ | |
9546 | /usr/local/X11R6/include \ | |
9547 | /usr/local/X11R5/include \ | |
9548 | /usr/local/X11R4/include \ | |
9549 | \ | |
9550 | /usr/local/include/X11 \ | |
9551 | /usr/local/include/X11R6 \ | |
9552 | /usr/local/include/X11R5 \ | |
9553 | /usr/local/include/X11R4 \ | |
9554 | \ | |
9555 | /usr/X386/include \ | |
9556 | /usr/x386/include \ | |
9557 | /usr/XFree86/include/X11 \ | |
9558 | \ | |
9559 | /usr/include \ | |
9560 | /usr/local/include \ | |
9561 | /usr/unsupported/include \ | |
9562 | /usr/athena/include \ | |
9563 | /usr/local/x11r5/include \ | |
9564 | /usr/lpp/Xamples/include \ | |
9565 | \ | |
9566 | /usr/openwin/include \ | |
9567 | /usr/openwin/share/include \ | |
9568 | ; \ | |
9569 | do | |
9570 | if test -r "$ac_dir/$x_direct_test_include"; then | |
9571 | ac_x_includes=$ac_dir | |
9572 | break | |
9573 | fi | |
9574 | done | |
ab9b9eab | 9575 | fi |
698dcdb6 VZ |
9576 | rm -f conftest* |
9577 | fi # $ac_x_includes = NO | |
10f2d63a | 9578 | |
698dcdb6 | 9579 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 9580 | # Check for the libraries. |
698dcdb6 VZ |
9581 | |
9582 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
9583 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
9584 | ||
ab9b9eab VZ |
9585 | # See if we find them without any special options. |
9586 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
9587 | ac_save_LIBS="$LIBS" |
9588 | LIBS="-l$x_direct_test_library $LIBS" | |
9589 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 9590 | #line 9591 "configure" |
ab9b9eab | 9591 | #include "confdefs.h" |
698dcdb6 VZ |
9592 | |
9593 | int main() { | |
9594 | ${x_direct_test_function}() | |
9595 | ; return 0; } | |
9596 | EOF | |
d4158b5d | 9597 | if { (eval echo configure:9598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9598 | rm -rf conftest* |
9599 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
9600 | # We can link X programs with no special library path. |
9601 | ac_x_libraries= | |
9602 | else | |
698dcdb6 VZ |
9603 | echo "configure: failed program was:" >&5 |
9604 | cat conftest.$ac_ext >&5 | |
9605 | rm -rf conftest* | |
9606 | LIBS="$ac_save_LIBS" | |
9607 | # First see if replacing the include by lib works. | |
9608 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9609 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
9610 | /usr/X11/lib \ | |
9611 | /usr/X11R6/lib \ | |
9612 | /usr/X11R5/lib \ | |
9613 | /usr/X11R4/lib \ | |
9614 | \ | |
9615 | /usr/lib/X11 \ | |
9616 | /usr/lib/X11R6 \ | |
9617 | /usr/lib/X11R5 \ | |
9618 | /usr/lib/X11R4 \ | |
9619 | \ | |
9620 | /usr/local/X11/lib \ | |
9621 | /usr/local/X11R6/lib \ | |
9622 | /usr/local/X11R5/lib \ | |
9623 | /usr/local/X11R4/lib \ | |
9624 | \ | |
9625 | /usr/local/lib/X11 \ | |
9626 | /usr/local/lib/X11R6 \ | |
9627 | /usr/local/lib/X11R5 \ | |
9628 | /usr/local/lib/X11R4 \ | |
9629 | \ | |
9630 | /usr/X386/lib \ | |
9631 | /usr/x386/lib \ | |
9632 | /usr/XFree86/lib/X11 \ | |
9633 | \ | |
9634 | /usr/lib \ | |
9635 | /usr/local/lib \ | |
9636 | /usr/unsupported/lib \ | |
9637 | /usr/athena/lib \ | |
9638 | /usr/local/x11r5/lib \ | |
9639 | /usr/lpp/Xamples/lib \ | |
9640 | /lib/usr/lib/X11 \ | |
9641 | \ | |
9642 | /usr/openwin/lib \ | |
9643 | /usr/openwin/share/lib \ | |
9644 | ; \ | |
ab9b9eab VZ |
9645 | do |
9646 | for ac_extension in a so sl; do | |
698dcdb6 | 9647 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
9648 | ac_x_libraries=$ac_dir |
9649 | break 2 | |
10f2d63a | 9650 | fi |
10f2d63a | 9651 | done |
ab9b9eab VZ |
9652 | done |
9653 | fi | |
698dcdb6 VZ |
9654 | rm -f conftest* |
9655 | fi # $ac_x_libraries = NO | |
10f2d63a | 9656 | |
698dcdb6 | 9657 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
9658 | # Didn't find X anywhere. Cache the known absence of X. |
9659 | ac_cv_have_x="have_x=no" | |
9660 | else | |
9661 | # Record where we found X for the cache. | |
9662 | ac_cv_have_x="have_x=yes \ | |
9663 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
9664 | fi | |
9665 | fi | |
10f2d63a | 9666 | fi |
ab9b9eab VZ |
9667 | eval "$ac_cv_have_x" |
9668 | fi # $with_x != no | |
10f2d63a | 9669 | |
ab9b9eab | 9670 | if test "$have_x" != yes; then |
698dcdb6 | 9671 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
9672 | no_x=yes |
9673 | else | |
9674 | # If each of the values was on the command line, it overrides each guess. | |
9675 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9676 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9677 | # Update the cache value to reflect the command line values. | |
9678 | ac_cv_have_x="have_x=yes \ | |
9679 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 9680 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 9681 | fi |
10f2d63a | 9682 | |
ab9b9eab VZ |
9683 | if test "$no_x" = yes; then |
9684 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 9685 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
9686 | #define X_DISPLAY_MISSING 1 |
9687 | EOF | |
10f2d63a | 9688 | |
ab9b9eab VZ |
9689 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
9690 | else | |
9691 | if test -n "$x_includes"; then | |
9692 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
9693 | fi |
9694 | ||
ab9b9eab VZ |
9695 | # It would also be nice to do this for all -L options, not just this one. |
9696 | if test -n "$x_libraries"; then | |
9697 | X_LIBS="$X_LIBS -L$x_libraries" | |
9698 | # For Solaris; some versions of Sun CC require a space after -R and | |
9699 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 9700 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 9701 | "SunOS 5"*) |
698dcdb6 | 9702 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
d4158b5d | 9703 | echo "configure:9704: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
9704 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
9705 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 9706 | #line 9707 "configure" |
ab9b9eab | 9707 | #include "confdefs.h" |
10f2d63a | 9708 | |
698dcdb6 | 9709 | int main() { |
788deba1 | 9710 | |
698dcdb6 VZ |
9711 | ; return 0; } |
9712 | EOF | |
d4158b5d | 9713 | if { (eval echo configure:9714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9714 | rm -rf conftest* |
ab9b9eab VZ |
9715 | ac_R_nospace=yes |
9716 | else | |
698dcdb6 VZ |
9717 | echo "configure: failed program was:" >&5 |
9718 | cat conftest.$ac_ext >&5 | |
9719 | rm -rf conftest* | |
9720 | ac_R_nospace=no | |
ab9b9eab | 9721 | fi |
698dcdb6 | 9722 | rm -f conftest* |
ab9b9eab | 9723 | if test $ac_R_nospace = yes; then |
698dcdb6 | 9724 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
9725 | X_LIBS="$X_LIBS -R$x_libraries" |
9726 | else | |
9727 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 9728 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 9729 | #line 9730 "configure" |
ab9b9eab | 9730 | #include "confdefs.h" |
788deba1 | 9731 | |
698dcdb6 | 9732 | int main() { |
ab9b9eab | 9733 | |
698dcdb6 VZ |
9734 | ; return 0; } |
9735 | EOF | |
d4158b5d | 9736 | if { (eval echo configure:9737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9737 | rm -rf conftest* |
ab9b9eab VZ |
9738 | ac_R_space=yes |
9739 | else | |
698dcdb6 VZ |
9740 | echo "configure: failed program was:" >&5 |
9741 | cat conftest.$ac_ext >&5 | |
9742 | rm -rf conftest* | |
9743 | ac_R_space=no | |
ab9b9eab | 9744 | fi |
698dcdb6 | 9745 | rm -f conftest* |
ab9b9eab | 9746 | if test $ac_R_space = yes; then |
698dcdb6 | 9747 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
9748 | X_LIBS="$X_LIBS -R $x_libraries" |
9749 | else | |
698dcdb6 | 9750 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
9751 | fi |
9752 | fi | |
698dcdb6 | 9753 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
9754 | esac |
9755 | fi | |
9756 | ||
9757 | # Check for system-dependent libraries X programs must link with. | |
9758 | # Do this before checking for the system-independent R6 libraries | |
9759 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
9760 | ||
9761 | if test "$ISC" = yes; then | |
9762 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
9763 | else | |
698dcdb6 VZ |
9764 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
9765 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 9766 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 9767 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
d4158b5d | 9768 | echo "configure:9769: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
9769 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9770 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9772 | else |
698dcdb6 | 9773 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9774 | LIBS="-ldnet $LIBS" |
698dcdb6 | 9775 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 9776 | #line 9777 "configure" |
ab9b9eab VZ |
9777 | #include "confdefs.h" |
9778 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9779 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9780 | builtin and then its argument prototype would still apply. */ |
9781 | char dnet_ntoa(); | |
9782 | ||
9783 | int main() { | |
9784 | dnet_ntoa() | |
9785 | ; return 0; } | |
9786 | EOF | |
d4158b5d | 9787 | if { (eval echo configure:9788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9788 | rm -rf conftest* |
9789 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9790 | else | |
9791 | echo "configure: failed program was:" >&5 | |
9792 | cat conftest.$ac_ext >&5 | |
9793 | rm -rf conftest* | |
9794 | eval "ac_cv_lib_$ac_lib_var=no" | |
9795 | fi | |
9796 | rm -f conftest* | |
9797 | LIBS="$ac_save_LIBS" | |
9798 | ||
9799 | fi | |
9800 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9801 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9802 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
9803 | else |
9804 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9805 | fi |
9806 | ||
9807 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 9808 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
d4158b5d | 9809 | echo "configure:9810: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
9810 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9811 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9813 | else |
698dcdb6 | 9814 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9815 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 9816 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 9817 | #line 9818 "configure" |
ab9b9eab VZ |
9818 | #include "confdefs.h" |
9819 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9820 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9821 | builtin and then its argument prototype would still apply. */ |
9822 | char dnet_ntoa(); | |
9823 | ||
9824 | int main() { | |
9825 | dnet_ntoa() | |
9826 | ; return 0; } | |
9827 | EOF | |
d4158b5d | 9828 | if { (eval echo configure:9829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9829 | rm -rf conftest* |
9830 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9831 | else | |
9832 | echo "configure: failed program was:" >&5 | |
9833 | cat conftest.$ac_ext >&5 | |
9834 | rm -rf conftest* | |
9835 | eval "ac_cv_lib_$ac_lib_var=no" | |
9836 | fi | |
9837 | rm -f conftest* | |
9838 | LIBS="$ac_save_LIBS" | |
9839 | ||
9840 | fi | |
9841 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9842 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9843 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
9844 | else |
9845 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9846 | fi |
9847 | ||
9848 | fi | |
9849 | ||
9850 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
9851 | # to get the SysV transport functions. | |
698dcdb6 | 9852 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
9853 | # needs -lnsl. |
9854 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
9855 | # on Irix 5.2, according to dickey@clark.net. |
9856 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
d4158b5d | 9857 | echo "configure:9858: checking for gethostbyname" >&5 |
698dcdb6 VZ |
9858 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
9859 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9860 | else | |
9861 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 9862 | #line 9863 "configure" |
ab9b9eab VZ |
9863 | #include "confdefs.h" |
9864 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9865 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
9866 | #include <assert.h> |
9867 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9868 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9869 | builtin and then its argument prototype would still apply. */ |
9870 | char gethostbyname(); | |
9871 | ||
9872 | int main() { | |
ab9b9eab VZ |
9873 | |
9874 | /* The GNU C library defines this for functions which it implements | |
9875 | to always fail with ENOSYS. Some functions are actually named | |
9876 | something starting with __ and the normal name is an alias. */ | |
9877 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
9878 | choke me | |
9879 | #else | |
698dcdb6 | 9880 | gethostbyname(); |
ab9b9eab VZ |
9881 | #endif |
9882 | ||
698dcdb6 VZ |
9883 | ; return 0; } |
9884 | EOF | |
d4158b5d | 9885 | if { (eval echo configure:9886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9886 | rm -rf conftest* |
9887 | eval "ac_cv_func_gethostbyname=yes" | |
9888 | else | |
9889 | echo "configure: failed program was:" >&5 | |
9890 | cat conftest.$ac_ext >&5 | |
9891 | rm -rf conftest* | |
9892 | eval "ac_cv_func_gethostbyname=no" | |
9893 | fi | |
9894 | rm -f conftest* | |
9895 | fi | |
9896 | ||
9897 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
9898 | echo "$ac_t""yes" 1>&6 | |
9899 | : | |
9900 | else | |
9901 | echo "$ac_t""no" 1>&6 | |
9902 | fi | |
ab9b9eab VZ |
9903 | |
9904 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 9905 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
d4158b5d | 9906 | echo "configure:9907: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
9907 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
9908 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9910 | else |
698dcdb6 | 9911 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9912 | LIBS="-lnsl $LIBS" |
698dcdb6 | 9913 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 9914 | #line 9915 "configure" |
ab9b9eab VZ |
9915 | #include "confdefs.h" |
9916 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9917 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9918 | builtin and then its argument prototype would still apply. */ |
9919 | char gethostbyname(); | |
6232543b | 9920 | |
698dcdb6 VZ |
9921 | int main() { |
9922 | gethostbyname() | |
9923 | ; return 0; } | |
9924 | EOF | |
d4158b5d | 9925 | if { (eval echo configure:9926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9926 | rm -rf conftest* |
9927 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 9928 | else |
698dcdb6 VZ |
9929 | echo "configure: failed program was:" >&5 |
9930 | cat conftest.$ac_ext >&5 | |
9931 | rm -rf conftest* | |
9932 | eval "ac_cv_lib_$ac_lib_var=no" | |
9933 | fi | |
9934 | rm -f conftest* | |
9935 | LIBS="$ac_save_LIBS" | |
1e487827 | 9936 | |
698dcdb6 VZ |
9937 | fi |
9938 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9939 | echo "$ac_t""yes" 1>&6 | |
9940 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
9941 | else | |
9942 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9943 | fi |
9944 | ||
9945 | fi | |
9946 | ||
9947 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
9948 | # socket/setsockopt and other routines are undefined under SCO ODT | |
9949 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
9950 | # on later versions), says simon@lia.di.epfl.ch: it contains |
9951 | # gethostby* variants that don't use the nameserver (or something). | |
9952 | # -lsocket must be given before -lnsl if both are needed. | |
9953 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
9954 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
d4158b5d | 9955 | echo "configure:9956: checking for connect" >&5 |
698dcdb6 VZ |
9956 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
9957 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9958 | else | |
9959 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 9960 | #line 9961 "configure" |
ab9b9eab VZ |
9961 | #include "confdefs.h" |
9962 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9963 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
9964 | #include <assert.h> |
9965 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9966 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9967 | builtin and then its argument prototype would still apply. */ |
9968 | char connect(); | |
9969 | ||
9970 | int main() { | |
ab9b9eab VZ |
9971 | |
9972 | /* The GNU C library defines this for functions which it implements | |
9973 | to always fail with ENOSYS. Some functions are actually named | |
9974 | something starting with __ and the normal name is an alias. */ | |
9975 | #if defined (__stub_connect) || defined (__stub___connect) | |
9976 | choke me | |
9977 | #else | |
698dcdb6 | 9978 | connect(); |
ab9b9eab VZ |
9979 | #endif |
9980 | ||
698dcdb6 VZ |
9981 | ; return 0; } |
9982 | EOF | |
d4158b5d | 9983 | if { (eval echo configure:9984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9984 | rm -rf conftest* |
9985 | eval "ac_cv_func_connect=yes" | |
9986 | else | |
9987 | echo "configure: failed program was:" >&5 | |
9988 | cat conftest.$ac_ext >&5 | |
9989 | rm -rf conftest* | |
9990 | eval "ac_cv_func_connect=no" | |
9991 | fi | |
9992 | rm -f conftest* | |
9993 | fi | |
9994 | ||
9995 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
9996 | echo "$ac_t""yes" 1>&6 | |
9997 | : | |
9998 | else | |
9999 | echo "$ac_t""no" 1>&6 | |
10000 | fi | |
ab9b9eab VZ |
10001 | |
10002 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 10003 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
d4158b5d | 10004 | echo "configure:10005: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
10005 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
10006 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10008 | else |
698dcdb6 | 10009 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10010 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10011 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 10012 | #line 10013 "configure" |
ab9b9eab VZ |
10013 | #include "confdefs.h" |
10014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10015 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10016 | builtin and then its argument prototype would still apply. */ |
10017 | char connect(); | |
10018 | ||
10019 | int main() { | |
10020 | connect() | |
10021 | ; return 0; } | |
10022 | EOF | |
d4158b5d | 10023 | if { (eval echo configure:10024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10024 | rm -rf conftest* |
10025 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10026 | else | |
10027 | echo "configure: failed program was:" >&5 | |
10028 | cat conftest.$ac_ext >&5 | |
10029 | rm -rf conftest* | |
10030 | eval "ac_cv_lib_$ac_lib_var=no" | |
10031 | fi | |
10032 | rm -f conftest* | |
10033 | LIBS="$ac_save_LIBS" | |
10034 | ||
10035 | fi | |
10036 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10037 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10038 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
10039 | else |
10040 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10041 | fi |
10042 | ||
10043 | fi | |
10044 | ||
698dcdb6 VZ |
10045 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
10046 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
d4158b5d | 10047 | echo "configure:10048: checking for remove" >&5 |
698dcdb6 VZ |
10048 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
10049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10050 | else |
698dcdb6 | 10051 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 10052 | #line 10053 "configure" |
ab9b9eab VZ |
10053 | #include "confdefs.h" |
10054 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10055 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
10056 | #include <assert.h> |
10057 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10058 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10059 | builtin and then its argument prototype would still apply. */ |
10060 | char remove(); | |
10061 | ||
10062 | int main() { | |
ab9b9eab VZ |
10063 | |
10064 | /* The GNU C library defines this for functions which it implements | |
10065 | to always fail with ENOSYS. Some functions are actually named | |
10066 | something starting with __ and the normal name is an alias. */ | |
10067 | #if defined (__stub_remove) || defined (__stub___remove) | |
10068 | choke me | |
10069 | #else | |
698dcdb6 | 10070 | remove(); |
ab9b9eab VZ |
10071 | #endif |
10072 | ||
698dcdb6 VZ |
10073 | ; return 0; } |
10074 | EOF | |
d4158b5d | 10075 | if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10076 | rm -rf conftest* |
10077 | eval "ac_cv_func_remove=yes" | |
10078 | else | |
10079 | echo "configure: failed program was:" >&5 | |
10080 | cat conftest.$ac_ext >&5 | |
10081 | rm -rf conftest* | |
10082 | eval "ac_cv_func_remove=no" | |
10083 | fi | |
10084 | rm -f conftest* | |
10085 | fi | |
10086 | ||
10087 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
10088 | echo "$ac_t""yes" 1>&6 | |
10089 | : | |
10090 | else | |
10091 | echo "$ac_t""no" 1>&6 | |
10092 | fi | |
ab9b9eab VZ |
10093 | |
10094 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 10095 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
d4158b5d | 10096 | echo "configure:10097: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
10097 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
10098 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10100 | else |
698dcdb6 | 10101 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10102 | LIBS="-lposix $LIBS" |
698dcdb6 | 10103 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 10104 | #line 10105 "configure" |
ab9b9eab VZ |
10105 | #include "confdefs.h" |
10106 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10107 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10108 | builtin and then its argument prototype would still apply. */ |
10109 | char remove(); | |
10110 | ||
10111 | int main() { | |
10112 | remove() | |
10113 | ; return 0; } | |
10114 | EOF | |
d4158b5d | 10115 | if { (eval echo configure:10116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10116 | rm -rf conftest* |
10117 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10118 | else | |
10119 | echo "configure: failed program was:" >&5 | |
10120 | cat conftest.$ac_ext >&5 | |
10121 | rm -rf conftest* | |
10122 | eval "ac_cv_lib_$ac_lib_var=no" | |
10123 | fi | |
10124 | rm -f conftest* | |
10125 | LIBS="$ac_save_LIBS" | |
10126 | ||
10127 | fi | |
10128 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10129 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10130 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
10131 | else |
10132 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10133 | fi |
10134 | ||
10135 | fi | |
10136 | ||
10137 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 10138 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
d4158b5d | 10139 | echo "configure:10140: checking for shmat" >&5 |
698dcdb6 VZ |
10140 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
10141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10142 | else |
698dcdb6 | 10143 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 10144 | #line 10145 "configure" |
ab9b9eab VZ |
10145 | #include "confdefs.h" |
10146 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10147 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
10148 | #include <assert.h> |
10149 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10150 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10151 | builtin and then its argument prototype would still apply. */ |
10152 | char shmat(); | |
10153 | ||
10154 | int main() { | |
ab9b9eab VZ |
10155 | |
10156 | /* The GNU C library defines this for functions which it implements | |
10157 | to always fail with ENOSYS. Some functions are actually named | |
10158 | something starting with __ and the normal name is an alias. */ | |
10159 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
10160 | choke me | |
10161 | #else | |
698dcdb6 | 10162 | shmat(); |
ab9b9eab VZ |
10163 | #endif |
10164 | ||
698dcdb6 VZ |
10165 | ; return 0; } |
10166 | EOF | |
d4158b5d | 10167 | if { (eval echo configure:10168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10168 | rm -rf conftest* |
10169 | eval "ac_cv_func_shmat=yes" | |
10170 | else | |
10171 | echo "configure: failed program was:" >&5 | |
10172 | cat conftest.$ac_ext >&5 | |
10173 | rm -rf conftest* | |
10174 | eval "ac_cv_func_shmat=no" | |
10175 | fi | |
10176 | rm -f conftest* | |
10177 | fi | |
10178 | ||
10179 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
10180 | echo "$ac_t""yes" 1>&6 | |
10181 | : | |
10182 | else | |
10183 | echo "$ac_t""no" 1>&6 | |
10184 | fi | |
ab9b9eab VZ |
10185 | |
10186 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 10187 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
d4158b5d | 10188 | echo "configure:10189: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
10189 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
10190 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10191 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10192 | else |
698dcdb6 | 10193 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10194 | LIBS="-lipc $LIBS" |
698dcdb6 | 10195 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 10196 | #line 10197 "configure" |
ab9b9eab VZ |
10197 | #include "confdefs.h" |
10198 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10199 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10200 | builtin and then its argument prototype would still apply. */ |
10201 | char shmat(); | |
10202 | ||
10203 | int main() { | |
10204 | shmat() | |
10205 | ; return 0; } | |
10206 | EOF | |
d4158b5d | 10207 | if { (eval echo configure:10208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10208 | rm -rf conftest* |
10209 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10210 | else | |
10211 | echo "configure: failed program was:" >&5 | |
10212 | cat conftest.$ac_ext >&5 | |
10213 | rm -rf conftest* | |
10214 | eval "ac_cv_lib_$ac_lib_var=no" | |
10215 | fi | |
10216 | rm -f conftest* | |
10217 | LIBS="$ac_save_LIBS" | |
10218 | ||
10219 | fi | |
10220 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10221 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10222 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
10223 | else |
10224 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10225 | fi |
10226 | ||
10227 | fi | |
10228 | fi | |
10229 | ||
10230 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 10231 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
10232 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
10233 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10234 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10235 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10236 | # These have to be linked with before -lX11, unlike the other | |
10237 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
10238 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
10239 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
d4158b5d | 10240 | echo "configure:10241: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
10241 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
10242 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10243 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10244 | else | |
10245 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 10246 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10247 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 10248 | #line 10249 "configure" |
ab9b9eab VZ |
10249 | #include "confdefs.h" |
10250 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10251 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10252 | builtin and then its argument prototype would still apply. */ |
10253 | char IceConnectionNumber(); | |
10254 | ||
10255 | int main() { | |
10256 | IceConnectionNumber() | |
10257 | ; return 0; } | |
10258 | EOF | |
d4158b5d | 10259 | if { (eval echo configure:10260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10260 | rm -rf conftest* |
10261 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10262 | else | |
10263 | echo "configure: failed program was:" >&5 | |
10264 | cat conftest.$ac_ext >&5 | |
10265 | rm -rf conftest* | |
10266 | eval "ac_cv_lib_$ac_lib_var=no" | |
10267 | fi | |
10268 | rm -f conftest* | |
10269 | LIBS="$ac_save_LIBS" | |
10270 | ||
10271 | fi | |
10272 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10273 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10274 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
10275 | else |
10276 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10277 | fi |
10278 | ||
698dcdb6 | 10279 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
10280 | |
10281 | fi | |
10282 | ||
1e6feb95 VZ |
10283 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
10284 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 10285 | |
1e6feb95 VZ |
10286 | if test "$wxUSE_MOTIF" = 1; then |
10287 | if test "$no_x" = "yes"; then | |
10288 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
10289 | fi | |
ab9b9eab | 10290 | |
1e6feb95 VZ |
10291 | GUI_TK_LIBRARY="$X_LIBS" |
10292 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
ab9b9eab | 10293 | |
1e6feb95 | 10294 | AFMINSTALL=afminstall |
dad6c0ea | 10295 | |
1e6feb95 VZ |
10296 | |
10297 | COMPILED_X_PROGRAM=0 | |
cd6d6d5b | 10298 | |
1e6feb95 | 10299 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
d4158b5d | 10300 | echo "configure:10301: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 10301 | |
ab9b9eab VZ |
10302 | ac_find_includes= |
10303 | for ac_dir in $SEARCH_INCLUDE; | |
10304 | do | |
10305 | if test -f "$ac_dir/Xm/Xm.h"; then | |
10306 | ac_find_includes=$ac_dir | |
10307 | break | |
10308 | fi | |
10309 | done | |
10310 | ||
1e6feb95 VZ |
10311 | if test "$ac_find_includes" != "" ; then |
10312 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
10313 | else | |
10314 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 10315 | #line 10316 "configure" |
cd6d6d5b VZ |
10316 | #include "confdefs.h" |
10317 | ||
1e6feb95 VZ |
10318 | #include <Xm/Xm.h> |
10319 | ||
698dcdb6 | 10320 | int main() { |
cd6d6d5b | 10321 | |
1e6feb95 | 10322 | int version; |
cd6d6d5b | 10323 | |
1e6feb95 VZ |
10324 | version = xmUseVersion; |
10325 | ||
698dcdb6 VZ |
10326 | ; return 0; } |
10327 | EOF | |
d4158b5d | 10328 | if { (eval echo configure:10329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10329 | rm -rf conftest* |
10330 | ||
1e6feb95 VZ |
10331 | echo "$ac_t""found in default search path" 1>&6 |
10332 | COMPILED_X_PROGRAM=1 | |
10333 | ||
cd6d6d5b | 10334 | else |
698dcdb6 VZ |
10335 | echo "configure: failed program was:" >&5 |
10336 | cat conftest.$ac_ext >&5 | |
10337 | rm -rf conftest* | |
10338 | ||
1e6feb95 VZ |
10339 | echo "$ac_t""no" 1>&6 |
10340 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
10341 | ||
698dcdb6 | 10342 | |
cd6d6d5b | 10343 | fi |
698dcdb6 | 10344 | rm -f conftest* |
1e6feb95 | 10345 | fi |
ab9b9eab | 10346 | |
1e6feb95 VZ |
10347 | if test "$COMPILED_X_PROGRAM" = 0; then |
10348 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
d4158b5d | 10349 | echo "configure:10350: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 10350 | |
ab9b9eab VZ |
10351 | ac_find_libraries= |
10352 | for ac_dir in $SEARCH_LIB; | |
10353 | do | |
10354 | for ac_extension in a so sl; do | |
10355 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
10356 | ac_find_libraries=$ac_dir | |
10357 | break 2 | |
10358 | fi | |
10359 | done | |
10360 | done | |
10361 | ||
1e6feb95 VZ |
10362 | if test "$ac_find_libraries" != "" ; then |
10363 | ||
ab9b9eab VZ |
10364 | ac_path_to_include=$ac_find_includes |
10365 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
10366 | result=$? | |
10367 | if test $result = 0; then | |
10368 | ac_path_to_include="" | |
10369 | else | |
10370 | ac_path_to_include="-I$ac_find_includes" | |
10371 | fi | |
10372 | ||
1e6feb95 | 10373 | |
ab9b9eab VZ |
10374 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10375 | result=$? | |
10376 | if test $result = 0; then | |
10377 | ac_path_to_link="" | |
10378 | else | |
10379 | ac_path_to_link="-L$ac_find_libraries" | |
10380 | fi | |
10381 | ||
698dcdb6 | 10382 | |
1e6feb95 VZ |
10383 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10384 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
10385 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10386 | else | |
10387 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 10388 | #line 10389 "configure" |
cd6d6d5b | 10389 | #include "confdefs.h" |
ab9b9eab | 10390 | |
1e6feb95 VZ |
10391 | #include <Xm/Xm.h> |
10392 | ||
698dcdb6 | 10393 | int main() { |
ab9b9eab | 10394 | |
1e6feb95 | 10395 | int version; |
ab9b9eab | 10396 | |
1e6feb95 VZ |
10397 | version = xmUseVersion; |
10398 | ||
698dcdb6 VZ |
10399 | ; return 0; } |
10400 | EOF | |
d4158b5d | 10401 | if { (eval echo configure:10402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10402 | rm -rf conftest* |
10403 | ||
1e6feb95 VZ |
10404 | echo "$ac_t""found in default search path" 1>&6 |
10405 | COMPILED_X_PROGRAM=1 | |
10406 | ||
cd6d6d5b | 10407 | else |
698dcdb6 VZ |
10408 | echo "configure: failed program was:" >&5 |
10409 | cat conftest.$ac_ext >&5 | |
10410 | rm -rf conftest* | |
10411 | ||
1e6feb95 VZ |
10412 | echo "$ac_t""no" 1>&6 |
10413 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
10414 | ||
698dcdb6 | 10415 | |
cd6d6d5b | 10416 | fi |
698dcdb6 | 10417 | rm -f conftest* |
1e6feb95 | 10418 | fi |
cd6d6d5b | 10419 | fi |
ab9b9eab | 10420 | |
1e6feb95 VZ |
10421 | |
10422 | XPM_LINK="" | |
10423 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
d4158b5d | 10424 | echo "configure:10425: checking for Xpm library" >&5 |
1e6feb95 | 10425 | |
ab9b9eab VZ |
10426 | ac_find_libraries= |
10427 | for ac_dir in $SEARCH_LIB; | |
10428 | do | |
10429 | for ac_extension in a so sl; do | |
10430 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
10431 | ac_find_libraries=$ac_dir | |
10432 | break 2 | |
10433 | fi | |
10434 | done | |
10435 | done | |
10436 | ||
1e6feb95 VZ |
10437 | if test "$ac_find_libraries" != "" ; then |
10438 | ||
ab9b9eab VZ |
10439 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10440 | result=$? | |
10441 | if test $result = 0; then | |
10442 | ac_path_to_link="" | |
10443 | else | |
10444 | ac_path_to_link="-L$ac_find_libraries" | |
10445 | fi | |
10446 | ||
1e6feb95 VZ |
10447 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10448 | XPM_LINK="-lXpm " | |
10449 | cat >> confdefs.h <<\EOF | |
ab9b9eab VZ |
10450 | #define wxHAVE_LIB_XPM 1 |
10451 | EOF | |
10452 | ||
1e6feb95 VZ |
10453 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10454 | else | |
10455 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 10456 | #line 10457 "configure" |
cd6d6d5b VZ |
10457 | #include "confdefs.h" |
10458 | ||
1e6feb95 VZ |
10459 | #include <X11/xpm.h> |
10460 | ||
698dcdb6 | 10461 | int main() { |
cd6d6d5b | 10462 | |
1e6feb95 | 10463 | int version; |
cd6d6d5b | 10464 | |
1e6feb95 VZ |
10465 | version = XpmLibraryVersion(); |
10466 | ||
698dcdb6 VZ |
10467 | ; return 0; } |
10468 | EOF | |
d4158b5d | 10469 | if { (eval echo configure:10470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10470 | rm -rf conftest* |
10471 | ||
1e6feb95 VZ |
10472 | XPM_LINK="-lXpm " |
10473 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
10474 | #define wxHAVE_LIB_XPM 1 |
10475 | EOF | |
10476 | ||
1e6feb95 VZ |
10477 | echo "$ac_t""found in default search path" 1>&6 |
10478 | COMPILED_X_PROGRAM=0 | |
10479 | ||
cd6d6d5b | 10480 | else |
698dcdb6 VZ |
10481 | echo "configure: failed program was:" >&5 |
10482 | cat conftest.$ac_ext >&5 | |
10483 | rm -rf conftest* | |
10484 | ||
1e6feb95 VZ |
10485 | echo "$ac_t""no" 1>&6 |
10486 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10487 | ||
698dcdb6 | 10488 | |
cd6d6d5b | 10489 | fi |
698dcdb6 | 10490 | rm -f conftest* |
1e6feb95 VZ |
10491 | fi |
10492 | ||
10493 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" | |
10494 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
10495 | TOOLKIT=MOTIF | |
10496 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
10497 | fi |
10498 | ||
1e6feb95 VZ |
10499 | if test "$wxUSE_MAC" = 1; then |
10500 | TOOLKIT=MAC | |
10501 | GUIDIST=MACX_DIST | |
10502 | fi | |
10f2d63a | 10503 | |
1e6feb95 VZ |
10504 | if test "$wxUSE_PM" = 1; then |
10505 | TOOLKIT=PM | |
10506 | GUIDIST=GTK_DIST | |
10507 | fi | |
b4085ce6 | 10508 | |
1e6feb95 VZ |
10509 | if test "$TOOLKIT" != "PM" ; then |
10510 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
10511 | else | |
10512 | TOOLKIT_DIR="os2" | |
10513 | fi | |
e07802fc | 10514 | |
1e6feb95 | 10515 | TOOLKIT_NAME="${TOOLKIT_DIR}" |
10f2d63a | 10516 | |
1e6feb95 VZ |
10517 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" |
10518 | ||
10519 | if test "$TOOLKIT_NAME" = "motif"; then | |
10520 | TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
10521 | fi | |
10522 | ||
10523 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10524 | TOOLKIT_NAME="${TOOLKIT_NAME}univ" | |
10525 | UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
10526 | TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}" | |
10527 | SETUPH_DIR="univ" | |
f6bcfd97 | 10528 | else |
1e6feb95 VZ |
10529 | SETUPH_DIR="${TOOLKIT_DIR}" |
10530 | fi | |
10531 | ||
10532 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10533 | TOOLKIT_NAME="${TOOLKIT_NAME}d" | |
f6bcfd97 BP |
10534 | fi |
10535 | ||
2224580a | 10536 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
1e6feb95 VZ |
10537 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10538 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__" | |
10539 | fi | |
10f2d63a | 10540 | |
f6bcfd97 | 10541 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 10542 | |
1e6feb95 VZ |
10543 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10544 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
10545 | else | |
10546 | ALL_OBJECTS="\$(GUIOBJS)" | |
10547 | fi | |
10548 | ||
10549 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
10550 | ||
10551 | if test "$TOOLKIT" != "MSW"; then | |
10552 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
10553 | fi | |
10554 | ||
10555 | if test "$wxUSE_HTML" = "yes"; then | |
10556 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
10557 | fi | |
3fcdd07b | 10558 | |
1e6feb95 VZ |
10559 | if test "$TOOLKIT" != "MSW"; then |
10560 | if test "$wxUSE_ODBC" = "yes" ; then | |
10561 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
10562 | fi | |
3fcdd07b VZ |
10563 | fi |
10564 | ||
d9d8273d | 10565 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 10566 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
10567 | fi |
10568 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
10569 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
10570 | fi | |
10571 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10572 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
10573 | fi | |
10574 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10575 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10576 | fi | |
3fed1840 RR |
10577 | if test "$wxUSE_FREETYPE" = "yes" ; then |
10578 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
10579 | fi | |
2224580a | 10580 | |
1e6feb95 VZ |
10581 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10582 | ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)" | |
10583 | else | |
10584 | ALL_DEPFILES="\$(GUIDEPS)" | |
10585 | fi | |
10586 | ||
10587 | ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)" | |
10588 | ||
10589 | if test "$TOOLKIT" != "MSW"; then | |
10590 | ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)" | |
10591 | fi | |
10592 | ||
10593 | if test "$wxUSE_HTML" = "yes"; then | |
10594 | ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)" | |
10595 | fi | |
10596 | ||
879df073 | 10597 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" |
1e6feb95 | 10598 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
879df073 | 10599 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" |
1e6feb95 | 10600 | fi |
2224580a VZ |
10601 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
10602 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
10603 | ||
10604 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
10605 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 10606 | else |
dad6c0ea VZ |
10607 | USE_GUI=0 |
10608 | ||
f6bcfd97 BP |
10609 | TOOLKIT_DIR="base" |
10610 | ||
10611 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10612 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
10613 | else | |
10614 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
10615 | fi | |
10616 | ||
07eb77a6 RL |
10617 | TOOLKIT_DEF="-D__WXBASE__" |
10618 | ||
b4085ce6 GD |
10619 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
10620 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 10621 | |
a20b6d3a VZ |
10622 | if test "$wxUSE_ZLIB" = "yes" ; then |
10623 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10624 | fi | |
10625 | ||
f6bcfd97 | 10626 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a VZ |
10627 | |
10628 | PORT_FILES="src/files.lst" | |
10629 | RPM_FILES="src/rpmfiles.lst" | |
10630 | RPM_SPEC="wxBase.spec" | |
10631 | ||
10632 | GUIDIST="BASE_DIST" | |
10633 | DISTDIR="wxBase" | |
10f2d63a VZ |
10634 | fi |
10635 | ||
10636 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 10637 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
10638 | |
10639 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 10640 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
10641 | |
10642 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 10643 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
10644 | |
10645 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
10646 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
10647 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
10648 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
10649 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
10650 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
10651 | |
10652 | SHARED_LD= | |
10653 | PIC_FLAG= | |
10654 | WX_ALL= | |
10655 | WX_ALL_INSTALLED= | |
1d62a8b4 | 10656 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 10657 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 10658 | |
698dcdb6 | 10659 | |
10f2d63a VZ |
10660 | if test "$wxUSE_SHARED" = "yes"; then |
10661 | case "${host}" in | |
10662 | *-hp-hpux* ) | |
10663 | if test "$GCC" = yes ; then | |
69ffe1d2 | 10664 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
10665 | PIC_FLAG="-fPIC" |
10666 | else | |
f6bcfd97 BP |
10667 | LDFLAGS="-L/usr/lib" |
10668 | ||
10f2d63a VZ |
10669 | SHARED_LD="${CXX} -b -o" |
10670 | PIC_FLAG="+Z" | |
10671 | fi | |
f6bcfd97 BP |
10672 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
10673 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 10674 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 10675 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
10676 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
10677 | else | |
10678 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
10679 | fi | |
10f2d63a | 10680 | ;; |
b12915c1 VZ |
10681 | |
10682 | *-*-linux* ) | |
10f2d63a VZ |
10683 | SHARED_LD="${CC} -shared -o" |
10684 | PIC_FLAG="-fPIC" | |
00cf1208 | 10685 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 10686 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 10687 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 10688 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 10689 | fi |
c661ecca RR |
10690 | if test "$wxUSE_OPENGL" = "yes"; then |
10691 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10692 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10693 | else | |
10694 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10695 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10696 | fi |
00cf1208 | 10697 | ;; |
10f2d63a VZ |
10698 | *-*-irix5* | *-*-irix6* ) |
10699 | if test "$GCC" = yes ; then | |
10700 | SHARED_LD="${CC} -shared -o" | |
10701 | PIC_FLAG="-fPIC" | |
10702 | else | |
10703 | SHARED_LD="${CXX} -shared -o" | |
10704 | fi | |
c661ecca RR |
10705 | if test "$wxUSE_OPENGL" = "yes"; then |
10706 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10707 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10708 | else | |
10709 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10710 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10711 | fi |
10f2d63a VZ |
10712 | ;; |
10713 | *-*-solaris2* ) | |
10714 | if test "$GCC" = yes ; then | |
10715 | SHARED_LD="${CC} -shared -o" | |
10716 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
10717 | |
10718 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
10719 | else |
10720 | SHARED_LD="${CXX} -G -o" | |
10721 | PIC_FLAG="-KPIC" | |
10722 | fi | |
c661ecca RR |
10723 | if test "$wxUSE_OPENGL" = "yes"; then |
10724 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10725 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10726 | else | |
10727 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10728 | WX_ALL="CREATE_LINKS" | |
10729 | fi | |
10f2d63a VZ |
10730 | ;; |
10731 | *-*-sunos4* ) | |
10732 | SHARED_LD="${CC} -shared -o" | |
10733 | PIC_FLAG="-fPIC" | |
10734 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10735 | WX_ALL="CREATE_LINKS" | |
10736 | ;; | |
95c8801c | 10737 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* ) |
10f2d63a VZ |
10738 | SHARED_LD="${CC} -shared -o" |
10739 | PIC_FLAG="-fPIC" | |
37d403aa JS |
10740 | if test "$wxUSE_OPENGL" = "yes"; then |
10741 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10742 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10743 | else | |
10744 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10745 | WX_ALL="CREATE_LINKS" | |
10746 | fi | |
10f2d63a | 10747 | ;; |
b4085ce6 | 10748 | *-*-darwin* ) |
ea5999b9 GD |
10749 | SHARED_LD="${CXX} -dynamiclib -o" |
10750 | PIC_FLAG="-dynamic -fPIC" | |
b4085ce6 GD |
10751 | if test "$wxUSE_OPENGL" = "yes"; then |
10752 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10753 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10754 | else | |
10755 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10756 | WX_ALL="CREATE_LINKS" | |
10757 | fi | |
1e6feb95 VZ |
10758 | WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r" |
10759 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10760 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10761 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10762 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" | |
10763 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
10764 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10765 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" | |
10766 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
b4085ce6 | 10767 | ;; |
10f2d63a VZ |
10768 | *-*-osf* ) |
10769 | SHARED_LD="${CXX} -shared -o" | |
10770 | PIC_FLAG="-fPIC" | |
10771 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10772 | WX_ALL="CREATE_LINKS" | |
10773 | ;; | |
10774 | *-*-dgux5* ) | |
10775 | SHARED_LD="${CXX} -shared -o" | |
10776 | PIC_FLAG="-fPIC" | |
10777 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10778 | WX_ALL="CREATE_LINKS" | |
10779 | ;; | |
10780 | *-*-sysv5* ) | |
10781 | SHARED_LD="${CC} -shared -o" | |
10782 | PIC_FLAG="-fPIC" | |
10783 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10784 | WX_ALL="CREATE_LINKS" | |
10785 | ;; | |
10786 | *-*-aix* ) | |
10787 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10788 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
10789 | ;; | |
1c8183e2 | 10790 | *-*-cygwin* ) |
10f2d63a | 10791 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10792 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10793 | if test "$wxUSE_OPENGL" = "yes"; then |
10794 | WX_ALL_INSTALLED="preinstall_gl" | |
10795 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10796 | else | |
10797 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10798 | fi | |
10f2d63a | 10799 | ;; |
b12915c1 | 10800 | *-*-mingw32* ) |
10f2d63a | 10801 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10802 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10803 | if test "$wxUSE_OPENGL" = "yes"; then |
10804 | WX_ALL_INSTALLED="preinstall_gl" | |
10805 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10806 | else | |
10807 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10808 | fi | |
10f2d63a VZ |
10809 | ;; |
10810 | *-pc-os2_emx ) | |
e07802fc VZ |
10811 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
10812 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 10813 | ;; |
b12915c1 | 10814 | *-*-beos* ) |
e2b8b066 | 10815 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
10816 | PIC_FLAG="-fPIC" |
10817 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10818 | WX_ALL="CREATE_LINKS" | |
10819 | ;; | |
10f2d63a | 10820 | *) |
698dcdb6 | 10821 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
10822 | esac |
10823 | ||
10824 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
10825 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 10826 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 10827 | fi |
3711412e | 10828 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
10829 | else |
10830 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 10831 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10832 | |
10833 | if test "$wxUSE_OPENGL" = "yes"; then | |
10834 | WX_ALL_INSTALLED="preinstall_gl" | |
10835 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10836 | else | |
10837 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10838 | fi | |
10839 | ||
10840 | if test "$wxUSE_GUI" = "no"; then | |
10841 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
10842 | fi | |
10843 | ||
3711412e | 10844 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
10845 | fi |
10846 | ||
698dcdb6 VZ |
10847 | |
10848 | for ac_hdr in strings.h | |
10f2d63a | 10849 | do |
698dcdb6 VZ |
10850 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10851 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d4158b5d | 10852 | echo "configure:10853: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10853 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10855 | else | |
10856 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 10857 | #line 10858 "configure" |
10f2d63a | 10858 | #include "confdefs.h" |
698dcdb6 VZ |
10859 | #include <$ac_hdr> |
10860 | EOF | |
10861 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 10862 | { (eval echo configure:10863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10863 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10864 | if test -z "$ac_err"; then | |
10865 | rm -rf conftest* | |
10866 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10867 | else |
698dcdb6 VZ |
10868 | echo "$ac_err" >&5 |
10869 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10870 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10871 | rm -rf conftest* |
10872 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10873 | fi |
698dcdb6 | 10874 | rm -f conftest* |
10f2d63a | 10875 | fi |
698dcdb6 VZ |
10876 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10877 | echo "$ac_t""yes" 1>&6 | |
10878 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10879 | cat >> confdefs.h <<EOF | |
10880 | #define $ac_tr_hdr 1 | |
10f2d63a | 10881 | EOF |
698dcdb6 VZ |
10882 | |
10883 | else | |
10884 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10885 | fi |
10886 | done | |
10887 | ||
698dcdb6 | 10888 | for ac_hdr in stdlib.h |
9cfadba2 | 10889 | do |
698dcdb6 VZ |
10890 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10891 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d4158b5d | 10892 | echo "configure:10893: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10893 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10895 | else | |
10896 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 10897 | #line 10898 "configure" |
9cfadba2 | 10898 | #include "confdefs.h" |
698dcdb6 VZ |
10899 | #include <$ac_hdr> |
10900 | EOF | |
10901 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 10902 | { (eval echo configure:10903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10903 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10904 | if test -z "$ac_err"; then | |
10905 | rm -rf conftest* | |
10906 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10907 | else |
698dcdb6 VZ |
10908 | echo "$ac_err" >&5 |
10909 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 10910 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10911 | rm -rf conftest* |
10912 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 10913 | fi |
698dcdb6 | 10914 | rm -f conftest* |
9cfadba2 | 10915 | fi |
698dcdb6 VZ |
10916 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10917 | echo "$ac_t""yes" 1>&6 | |
10918 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10919 | cat >> confdefs.h <<EOF | |
10920 | #define $ac_tr_hdr 1 | |
9cfadba2 | 10921 | EOF |
698dcdb6 VZ |
10922 | |
10923 | else | |
10924 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
10925 | fi |
10926 | done | |
10f2d63a | 10927 | |
698dcdb6 | 10928 | for ac_hdr in unistd.h |
10f2d63a | 10929 | do |
698dcdb6 VZ |
10930 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10931 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d4158b5d | 10932 | echo "configure:10933: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10933 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10935 | else | |
10936 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 10937 | #line 10938 "configure" |
10f2d63a | 10938 | #include "confdefs.h" |
698dcdb6 VZ |
10939 | #include <$ac_hdr> |
10940 | EOF | |
10941 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 10942 | { (eval echo configure:10943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10943 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10944 | if test -z "$ac_err"; then | |
10945 | rm -rf conftest* | |
10946 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10947 | else |
698dcdb6 VZ |
10948 | echo "$ac_err" >&5 |
10949 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10950 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10951 | rm -rf conftest* |
10952 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10953 | fi |
698dcdb6 | 10954 | rm -f conftest* |
10f2d63a | 10955 | fi |
698dcdb6 VZ |
10956 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10957 | echo "$ac_t""yes" 1>&6 | |
10958 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10959 | cat >> confdefs.h <<EOF | |
10960 | #define $ac_tr_hdr 1 | |
10f2d63a | 10961 | EOF |
698dcdb6 VZ |
10962 | |
10963 | else | |
10964 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10965 | fi |
10966 | done | |
10967 | ||
698dcdb6 | 10968 | for ac_hdr in wchar.h |
10f2d63a | 10969 | do |
698dcdb6 VZ |
10970 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10971 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d4158b5d | 10972 | echo "configure:10973: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10973 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10974 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10975 | else | |
10976 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 10977 | #line 10978 "configure" |
10f2d63a | 10978 | #include "confdefs.h" |
698dcdb6 VZ |
10979 | #include <$ac_hdr> |
10980 | EOF | |
10981 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 10982 | { (eval echo configure:10983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10983 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10984 | if test -z "$ac_err"; then | |
10985 | rm -rf conftest* | |
10986 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 10987 | else |
698dcdb6 VZ |
10988 | echo "$ac_err" >&5 |
10989 | echo "configure: failed program was:" >&5 | |
6f72b082 | 10990 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10991 | rm -rf conftest* |
10992 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 10993 | fi |
698dcdb6 | 10994 | rm -f conftest* |
6f72b082 | 10995 | fi |
698dcdb6 VZ |
10996 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10997 | echo "$ac_t""yes" 1>&6 | |
10998 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10999 | cat >> confdefs.h <<EOF | |
11000 | #define $ac_tr_hdr 1 | |
6f72b082 | 11001 | EOF |
698dcdb6 VZ |
11002 | |
11003 | else | |
11004 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11005 | fi |
11006 | done | |
11007 | ||
698dcdb6 | 11008 | for ac_hdr in wcstr.h |
6f72b082 | 11009 | do |
698dcdb6 VZ |
11010 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11011 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d4158b5d | 11012 | echo "configure:11013: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11013 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11014 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11015 | else | |
11016 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 11017 | #line 11018 "configure" |
6f72b082 | 11018 | #include "confdefs.h" |
698dcdb6 VZ |
11019 | #include <$ac_hdr> |
11020 | EOF | |
11021 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 11022 | { (eval echo configure:11023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11023 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11024 | if test -z "$ac_err"; then | |
11025 | rm -rf conftest* | |
11026 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 11027 | else |
698dcdb6 VZ |
11028 | echo "$ac_err" >&5 |
11029 | echo "configure: failed program was:" >&5 | |
6f72b082 | 11030 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11031 | rm -rf conftest* |
11032 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 11033 | fi |
698dcdb6 | 11034 | rm -f conftest* |
6f72b082 | 11035 | fi |
698dcdb6 VZ |
11036 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11037 | echo "$ac_t""yes" 1>&6 | |
11038 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11039 | cat >> confdefs.h <<EOF | |
11040 | #define $ac_tr_hdr 1 | |
6f72b082 | 11041 | EOF |
698dcdb6 VZ |
11042 | |
11043 | else | |
11044 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
11045 | fi |
11046 | done | |
11047 | ||
698dcdb6 | 11048 | for ac_hdr in fnmatch.h |
6f72b082 | 11049 | do |
698dcdb6 VZ |
11050 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11051 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d4158b5d | 11052 | echo "configure:11053: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11053 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11054 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11055 | else | |
11056 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 11057 | #line 11058 "configure" |
6f72b082 | 11058 | #include "confdefs.h" |
698dcdb6 VZ |
11059 | #include <$ac_hdr> |
11060 | EOF | |
11061 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 11062 | { (eval echo configure:11063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11063 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11064 | if test -z "$ac_err"; then | |
11065 | rm -rf conftest* | |
11066 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11067 | else |
698dcdb6 VZ |
11068 | echo "$ac_err" >&5 |
11069 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11070 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11071 | rm -rf conftest* |
11072 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11073 | fi |
698dcdb6 | 11074 | rm -f conftest* |
10f2d63a | 11075 | fi |
698dcdb6 VZ |
11076 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11077 | echo "$ac_t""yes" 1>&6 | |
11078 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11079 | cat >> confdefs.h <<EOF | |
11080 | #define $ac_tr_hdr 1 | |
10f2d63a | 11081 | EOF |
698dcdb6 VZ |
11082 | |
11083 | else | |
11084 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11085 | fi |
11086 | done | |
11087 | ||
698dcdb6 | 11088 | for ac_hdr in iconv.h |
0fb0dd83 | 11089 | do |
698dcdb6 VZ |
11090 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11091 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d4158b5d | 11092 | echo "configure:11093: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11093 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11094 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11095 | else | |
11096 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 11097 | #line 11098 "configure" |
0fb0dd83 | 11098 | #include "confdefs.h" |
698dcdb6 VZ |
11099 | #include <$ac_hdr> |
11100 | EOF | |
11101 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 11102 | { (eval echo configure:11103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11103 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11104 | if test -z "$ac_err"; then | |
11105 | rm -rf conftest* | |
11106 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 11107 | else |
698dcdb6 VZ |
11108 | echo "$ac_err" >&5 |
11109 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 11110 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11111 | rm -rf conftest* |
11112 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 11113 | fi |
698dcdb6 | 11114 | rm -f conftest* |
0fb0dd83 | 11115 | fi |
698dcdb6 VZ |
11116 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11117 | echo "$ac_t""yes" 1>&6 | |
11118 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11119 | cat >> confdefs.h <<EOF | |
11120 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 11121 | EOF |
698dcdb6 VZ |
11122 | |
11123 | else | |
11124 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
11125 | fi |
11126 | done | |
11127 | ||
698dcdb6 | 11128 | for ac_hdr in langinfo.h |
1f8ae82f | 11129 | do |
698dcdb6 VZ |
11130 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11131 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d4158b5d | 11132 | echo "configure:11133: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11133 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11135 | else | |
11136 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 11137 | #line 11138 "configure" |
1f8ae82f | 11138 | #include "confdefs.h" |
698dcdb6 VZ |
11139 | #include <$ac_hdr> |
11140 | EOF | |
11141 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 11142 | { (eval echo configure:11143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11143 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11144 | if test -z "$ac_err"; then | |
11145 | rm -rf conftest* | |
11146 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 11147 | else |
698dcdb6 VZ |
11148 | echo "$ac_err" >&5 |
11149 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 11150 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11151 | rm -rf conftest* |
11152 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 11153 | fi |
698dcdb6 | 11154 | rm -f conftest* |
1f8ae82f | 11155 | fi |
698dcdb6 VZ |
11156 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11157 | echo "$ac_t""yes" 1>&6 | |
11158 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11159 | cat >> confdefs.h <<EOF | |
11160 | #define $ac_tr_hdr 1 | |
1f8ae82f | 11161 | EOF |
698dcdb6 VZ |
11162 | |
11163 | else | |
11164 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
11165 | fi |
11166 | done | |
11167 | ||
698dcdb6 | 11168 | |
73fd4a60 VZ |
11169 | if test "$wxUSE_GUI" = "yes"; then |
11170 | if test "$wxUSE_UNIX" = "yes"; then | |
698dcdb6 | 11171 | for ac_hdr in X11/XKBlib.h |
10f2d63a | 11172 | do |
698dcdb6 VZ |
11173 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11174 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d4158b5d | 11175 | echo "configure:11176: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11176 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11177 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11178 | else | |
11179 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 11180 | #line 11181 "configure" |
10f2d63a | 11181 | #include "confdefs.h" |
698dcdb6 VZ |
11182 | #include <$ac_hdr> |
11183 | EOF | |
11184 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 11185 | { (eval echo configure:11186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11186 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11187 | if test -z "$ac_err"; then | |
11188 | rm -rf conftest* | |
11189 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11190 | else |
698dcdb6 VZ |
11191 | echo "$ac_err" >&5 |
11192 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11193 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11194 | rm -rf conftest* |
11195 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11196 | fi |
698dcdb6 | 11197 | rm -f conftest* |
10f2d63a | 11198 | fi |
698dcdb6 VZ |
11199 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11200 | echo "$ac_t""yes" 1>&6 | |
11201 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11202 | cat >> confdefs.h <<EOF | |
11203 | #define $ac_tr_hdr 1 | |
10f2d63a | 11204 | EOF |
698dcdb6 VZ |
11205 | |
11206 | else | |
11207 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11208 | fi |
11209 | done | |
11210 | ||
73fd4a60 | 11211 | fi |
10f2d63a VZ |
11212 | fi |
11213 | ||
698dcdb6 VZ |
11214 | |
11215 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
d4158b5d | 11216 | echo "configure:11217: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
11217 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
11218 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11219 | else |
698dcdb6 | 11220 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11221 | #line 11222 "configure" |
10f2d63a VZ |
11222 | #include "confdefs.h" |
11223 | #include <stdlib.h> | |
11224 | #include <stdarg.h> | |
11225 | #include <string.h> | |
11226 | #include <float.h> | |
698dcdb6 VZ |
11227 | EOF |
11228 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 11229 | { (eval echo configure:11230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11230 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11231 | if test -z "$ac_err"; then | |
11232 | rm -rf conftest* | |
10f2d63a VZ |
11233 | ac_cv_header_stdc=yes |
11234 | else | |
698dcdb6 VZ |
11235 | echo "$ac_err" >&5 |
11236 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11237 | cat conftest.$ac_ext >&5 |
698dcdb6 | 11238 | rm -rf conftest* |
10f2d63a VZ |
11239 | ac_cv_header_stdc=no |
11240 | fi | |
698dcdb6 | 11241 | rm -f conftest* |
10f2d63a VZ |
11242 | |
11243 | if test $ac_cv_header_stdc = yes; then | |
11244 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 11245 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11246 | #line 11247 "configure" |
10f2d63a VZ |
11247 | #include "confdefs.h" |
11248 | #include <string.h> | |
698dcdb6 | 11249 | EOF |
10f2d63a VZ |
11250 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11251 | egrep "memchr" >/dev/null 2>&1; then | |
11252 | : | |
11253 | else | |
698dcdb6 | 11254 | rm -rf conftest* |
10f2d63a VZ |
11255 | ac_cv_header_stdc=no |
11256 | fi | |
11257 | rm -f conftest* | |
11258 | ||
11259 | fi | |
11260 | ||
11261 | if test $ac_cv_header_stdc = yes; then | |
11262 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 11263 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11264 | #line 11265 "configure" |
10f2d63a VZ |
11265 | #include "confdefs.h" |
11266 | #include <stdlib.h> | |
698dcdb6 | 11267 | EOF |
10f2d63a VZ |
11268 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11269 | egrep "free" >/dev/null 2>&1; then | |
11270 | : | |
11271 | else | |
698dcdb6 | 11272 | rm -rf conftest* |
10f2d63a VZ |
11273 | ac_cv_header_stdc=no |
11274 | fi | |
11275 | rm -f conftest* | |
11276 | ||
11277 | fi | |
11278 | ||
11279 | if test $ac_cv_header_stdc = yes; then | |
11280 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 11281 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
11282 | : |
11283 | else | |
698dcdb6 | 11284 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11285 | #line 11286 "configure" |
10f2d63a VZ |
11286 | #include "confdefs.h" |
11287 | #include <ctype.h> | |
698dcdb6 VZ |
11288 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
11289 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 11290 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
11291 | int main () { int i; for (i = 0; i < 256; i++) |
11292 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
11293 | exit (0); } | |
11294 | ||
11295 | EOF | |
d4158b5d | 11296 | if { (eval echo configure:11297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11297 | then |
10f2d63a VZ |
11298 | : |
11299 | else | |
698dcdb6 VZ |
11300 | echo "configure: failed program was:" >&5 |
11301 | cat conftest.$ac_ext >&5 | |
11302 | rm -fr conftest* | |
11303 | ac_cv_header_stdc=no | |
10f2d63a | 11304 | fi |
698dcdb6 | 11305 | rm -fr conftest* |
10f2d63a | 11306 | fi |
698dcdb6 | 11307 | |
10f2d63a VZ |
11308 | fi |
11309 | fi | |
1e487827 | 11310 | |
698dcdb6 VZ |
11311 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
11312 | if test $ac_cv_header_stdc = yes; then | |
11313 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11314 | #define STDC_HEADERS 1 |
11315 | EOF | |
11316 | ||
11317 | fi | |
11318 | ||
698dcdb6 | 11319 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
d4158b5d | 11320 | echo "configure:11321: checking for mode_t" >&5 |
698dcdb6 VZ |
11321 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
11322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11323 | else |
698dcdb6 | 11324 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11325 | #line 11326 "configure" |
1e487827 | 11326 | #include "confdefs.h" |
698dcdb6 VZ |
11327 | #include <sys/types.h> |
11328 | #if STDC_HEADERS | |
11329 | #include <stdlib.h> | |
11330 | #include <stddef.h> | |
11331 | #endif | |
11332 | EOF | |
11333 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11334 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11335 | rm -rf conftest* | |
10f2d63a VZ |
11336 | ac_cv_type_mode_t=yes |
11337 | else | |
698dcdb6 VZ |
11338 | rm -rf conftest* |
11339 | ac_cv_type_mode_t=no | |
703e0a69 | 11340 | fi |
698dcdb6 | 11341 | rm -f conftest* |
1e487827 | 11342 | |
698dcdb6 VZ |
11343 | fi |
11344 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
11345 | if test $ac_cv_type_mode_t = no; then | |
11346 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11347 | #define mode_t int |
11348 | EOF | |
11349 | ||
11350 | fi | |
11351 | ||
698dcdb6 | 11352 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
d4158b5d | 11353 | echo "configure:11354: checking for off_t" >&5 |
698dcdb6 VZ |
11354 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
11355 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11356 | else |
698dcdb6 | 11357 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11358 | #line 11359 "configure" |
10f2d63a | 11359 | #include "confdefs.h" |
698dcdb6 VZ |
11360 | #include <sys/types.h> |
11361 | #if STDC_HEADERS | |
11362 | #include <stdlib.h> | |
11363 | #include <stddef.h> | |
11364 | #endif | |
11365 | EOF | |
11366 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11367 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11368 | rm -rf conftest* | |
10f2d63a VZ |
11369 | ac_cv_type_off_t=yes |
11370 | else | |
698dcdb6 VZ |
11371 | rm -rf conftest* |
11372 | ac_cv_type_off_t=no | |
703e0a69 | 11373 | fi |
698dcdb6 | 11374 | rm -f conftest* |
1e487827 | 11375 | |
698dcdb6 VZ |
11376 | fi |
11377 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
11378 | if test $ac_cv_type_off_t = no; then | |
11379 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11380 | #define off_t long |
11381 | EOF | |
11382 | ||
11383 | fi | |
11384 | ||
698dcdb6 | 11385 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
d4158b5d | 11386 | echo "configure:11387: checking for pid_t" >&5 |
698dcdb6 VZ |
11387 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
11388 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11389 | else |
698dcdb6 | 11390 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11391 | #line 11392 "configure" |
10f2d63a | 11392 | #include "confdefs.h" |
698dcdb6 VZ |
11393 | #include <sys/types.h> |
11394 | #if STDC_HEADERS | |
11395 | #include <stdlib.h> | |
11396 | #include <stddef.h> | |
11397 | #endif | |
11398 | EOF | |
11399 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11400 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11401 | rm -rf conftest* | |
10f2d63a VZ |
11402 | ac_cv_type_pid_t=yes |
11403 | else | |
698dcdb6 VZ |
11404 | rm -rf conftest* |
11405 | ac_cv_type_pid_t=no | |
703e0a69 | 11406 | fi |
698dcdb6 | 11407 | rm -f conftest* |
1e487827 | 11408 | |
698dcdb6 VZ |
11409 | fi |
11410 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
11411 | if test $ac_cv_type_pid_t = no; then | |
11412 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11413 | #define pid_t int |
11414 | EOF | |
11415 | ||
11416 | fi | |
11417 | ||
698dcdb6 | 11418 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
d4158b5d | 11419 | echo "configure:11420: checking for size_t" >&5 |
698dcdb6 VZ |
11420 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
11421 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11422 | else |
698dcdb6 | 11423 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11424 | #line 11425 "configure" |
10f2d63a | 11425 | #include "confdefs.h" |
698dcdb6 VZ |
11426 | #include <sys/types.h> |
11427 | #if STDC_HEADERS | |
11428 | #include <stdlib.h> | |
11429 | #include <stddef.h> | |
11430 | #endif | |
11431 | EOF | |
11432 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11433 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11434 | rm -rf conftest* | |
10f2d63a VZ |
11435 | ac_cv_type_size_t=yes |
11436 | else | |
698dcdb6 VZ |
11437 | rm -rf conftest* |
11438 | ac_cv_type_size_t=no | |
703e0a69 | 11439 | fi |
698dcdb6 | 11440 | rm -f conftest* |
1e487827 | 11441 | |
698dcdb6 VZ |
11442 | fi |
11443 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
11444 | if test $ac_cv_type_size_t = no; then | |
11445 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11446 | #define size_t unsigned |
11447 | EOF | |
11448 | ||
11449 | fi | |
11450 | ||
698dcdb6 | 11451 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
d4158b5d | 11452 | echo "configure:11453: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
11453 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
11454 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11455 | else |
698dcdb6 | 11456 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11457 | #line 11458 "configure" |
10f2d63a VZ |
11458 | #include "confdefs.h" |
11459 | #include <sys/types.h> | |
698dcdb6 | 11460 | EOF |
10f2d63a VZ |
11461 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11462 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 11463 | rm -rf conftest* |
10f2d63a VZ |
11464 | ac_cv_type_uid_t=yes |
11465 | else | |
698dcdb6 | 11466 | rm -rf conftest* |
10f2d63a VZ |
11467 | ac_cv_type_uid_t=no |
11468 | fi | |
11469 | rm -f conftest* | |
11470 | ||
11471 | fi | |
1e487827 | 11472 | |
698dcdb6 VZ |
11473 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
11474 | if test $ac_cv_type_uid_t = no; then | |
11475 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11476 | #define uid_t int |
11477 | EOF | |
11478 | ||
698dcdb6 | 11479 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11480 | #define gid_t int |
11481 | EOF | |
11482 | ||
11483 | fi | |
11484 | ||
1e487827 | 11485 | |
698dcdb6 | 11486 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
d4158b5d | 11487 | echo "configure:11488: checking for wchar_t" >&5 |
698dcdb6 VZ |
11488 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
11489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11490 | else | |
11491 | ||
11492 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 11493 | #line 11494 "configure" |
0046ff7c VS |
11494 | #include "confdefs.h" |
11495 | #include <wchar.h> | |
698dcdb6 | 11496 | int main() { |
0046ff7c | 11497 | |
d836ee96 VZ |
11498 | wchar_t wc, *ws; |
11499 | wc = L'a'; | |
11500 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11501 | |
11502 | ; return 0; } | |
11503 | EOF | |
d4158b5d | 11504 | if { (eval echo configure:11505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11505 | rm -rf conftest* |
1f8ae82f GD |
11506 | wx_cv_type_wchar_t=yes |
11507 | else | |
698dcdb6 VZ |
11508 | echo "configure: failed program was:" >&5 |
11509 | cat conftest.$ac_ext >&5 | |
11510 | rm -rf conftest* | |
11511 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 11512 | #line 11513 "configure" |
1f8ae82f GD |
11513 | #include "confdefs.h" |
11514 | #include <stdlib.h> | |
698dcdb6 | 11515 | int main() { |
1f8ae82f | 11516 | |
d836ee96 VZ |
11517 | wchar_t wc, *ws; |
11518 | wc = L'a'; | |
11519 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11520 | |
11521 | ; return 0; } | |
11522 | EOF | |
d4158b5d | 11523 | if { (eval echo configure:11524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11524 | rm -rf conftest* |
0046ff7c VS |
11525 | wx_cv_type_wchar_t=yes |
11526 | else | |
698dcdb6 VZ |
11527 | echo "configure: failed program was:" >&5 |
11528 | cat conftest.$ac_ext >&5 | |
11529 | rm -rf conftest* | |
11530 | wx_cv_type_wchar_t=no | |
0046ff7c | 11531 | fi |
698dcdb6 | 11532 | rm -f conftest* |
d836ee96 | 11533 | |
6232543b | 11534 | fi |
698dcdb6 | 11535 | rm -f conftest* |
703e0a69 | 11536 | |
1e487827 | 11537 | fi |
698dcdb6 VZ |
11538 | |
11539 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
11540 | |
11541 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 11542 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
11543 | #define wxUSE_WCHAR_T 1 |
11544 | EOF | |
11545 | ||
11546 | fi | |
11547 | ||
19af3b06 VZ |
11548 | |
11549 | ac_ext=C | |
11550 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11551 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11552 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11553 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11554 | cross_compiling=$ac_cv_prog_cxx_cross | |
11555 | ||
d836ee96 | 11556 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
d4158b5d | 11557 | echo "configure:11558: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
11558 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
11559 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11560 | else | |
dd2c8b7c | 11561 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11562 | #line 11563 "configure" |
d836ee96 VZ |
11563 | #include "confdefs.h" |
11564 | #include <stddef.h> | |
11565 | int main() { | |
11566 | ||
dd2c8b7c VZ |
11567 | return 0; } |
11568 | ||
d836ee96 | 11569 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
11570 | |
11571 | int bar() { | |
d836ee96 VZ |
11572 | |
11573 | ; return 0; } | |
11574 | EOF | |
d4158b5d | 11575 | if { (eval echo configure:11576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11576 | rm -rf conftest* |
11577 | wx_cv_size_t_is_uint=no | |
11578 | else | |
11579 | echo "configure: failed program was:" >&5 | |
11580 | cat conftest.$ac_ext >&5 | |
11581 | rm -rf conftest* | |
11582 | wx_cv_size_t_is_uint=yes | |
11583 | ||
11584 | fi | |
11585 | rm -f conftest* | |
11586 | ||
11587 | fi | |
11588 | ||
11589 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
11590 | ||
11591 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
11592 | cat >> confdefs.h <<\EOF | |
11593 | #define wxSIZE_T_IS_UINT 1 | |
11594 | EOF | |
11595 | ||
11596 | else | |
11597 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
d4158b5d | 11598 | echo "configure:11599: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
11599 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
11600 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11601 | else | |
11602 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 11603 | #line 11604 "configure" |
d836ee96 VZ |
11604 | #include "confdefs.h" |
11605 | #include <stddef.h> | |
11606 | int main() { | |
11607 | ||
dd2c8b7c VZ |
11608 | return 0; } |
11609 | ||
d836ee96 | 11610 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
11611 | |
11612 | int bar() { | |
d836ee96 VZ |
11613 | |
11614 | ; return 0; } | |
11615 | EOF | |
d4158b5d | 11616 | if { (eval echo configure:11617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11617 | rm -rf conftest* |
11618 | wx_cv_size_t_is_ulong=no | |
11619 | else | |
11620 | echo "configure: failed program was:" >&5 | |
11621 | cat conftest.$ac_ext >&5 | |
11622 | rm -rf conftest* | |
11623 | wx_cv_size_t_is_ulong=yes | |
11624 | ||
11625 | fi | |
11626 | rm -f conftest* | |
11627 | ||
11628 | fi | |
11629 | ||
11630 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
11631 | ||
11632 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
11633 | cat >> confdefs.h <<\EOF | |
11634 | #define wxSIZE_T_IS_ULONG 1 | |
11635 | EOF | |
11636 | ||
11637 | fi | |
11638 | fi | |
11639 | ||
19af3b06 VZ |
11640 | ac_ext=c |
11641 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11642 | ac_cpp='$CPP $CPPFLAGS' | |
11643 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11644 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11645 | cross_compiling=$ac_cv_prog_cc_cross | |
11646 | ||
11647 | ||
1e487827 | 11648 | |
698dcdb6 | 11649 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
d4158b5d | 11650 | echo "configure:11651: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
11651 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
11652 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11653 | else | |
11654 | ||
11655 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 11656 | #line 11657 "configure" |
b12915c1 VZ |
11657 | #include "confdefs.h" |
11658 | #include <pwd.h> | |
698dcdb6 | 11659 | int main() { |
b12915c1 VZ |
11660 | |
11661 | char *p; | |
11662 | struct passwd *pw; | |
11663 | p = pw->pw_gecos; | |
698dcdb6 VZ |
11664 | |
11665 | ; return 0; } | |
11666 | EOF | |
d4158b5d | 11667 | if { (eval echo configure:11668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11668 | rm -rf conftest* |
11669 | ||
b12915c1 | 11670 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 11671 | |
b12915c1 | 11672 | else |
698dcdb6 VZ |
11673 | echo "configure: failed program was:" >&5 |
11674 | cat conftest.$ac_ext >&5 | |
11675 | rm -rf conftest* | |
11676 | ||
b12915c1 | 11677 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
11678 | |
11679 | ||
6232543b | 11680 | fi |
698dcdb6 VZ |
11681 | rm -f conftest* |
11682 | ||
703e0a69 | 11683 | |
1e487827 | 11684 | fi |
698dcdb6 VZ |
11685 | |
11686 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 11687 | |
bd3277fe | 11688 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 11689 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
11690 | #define HAVE_PW_GECOS 1 |
11691 | EOF | |
11692 | ||
11693 | fi | |
11694 | ||
698dcdb6 VZ |
11695 | |
11696 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
d4158b5d | 11697 | echo "configure:11698: checking for working const" >&5 |
698dcdb6 VZ |
11698 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
11699 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11700 | else |
698dcdb6 | 11701 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11702 | #line 11703 "configure" |
10f2d63a | 11703 | #include "confdefs.h" |
698dcdb6 VZ |
11704 | |
11705 | int main() { | |
11706 | ||
11707 | /* Ultrix mips cc rejects this. */ | |
11708 | typedef int charset[2]; const charset x; | |
11709 | /* SunOS 4.1.1 cc rejects this. */ | |
11710 | char const *const *ccp; | |
11711 | char **p; | |
11712 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11713 | struct point {int x, y;}; | |
11714 | static struct point const zero = {0,0}; | |
11715 | /* AIX XL C 1.02.0.0 rejects this. | |
11716 | It does not let you subtract one const X* pointer from another in an arm | |
11717 | of an if-expression whose if-part is not a constant expression */ | |
11718 | const char *g = "string"; | |
11719 | ccp = &g + (g ? g-g : 0); | |
11720 | /* HPUX 7.0 cc rejects these. */ | |
11721 | ++ccp; | |
11722 | p = (char**) ccp; | |
11723 | ccp = (char const *const *) p; | |
11724 | { /* SCO 3.2v4 cc rejects this. */ | |
11725 | char *t; | |
11726 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11727 | ||
11728 | *t++ = 0; | |
10f2d63a | 11729 | } |
698dcdb6 VZ |
11730 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
11731 | int x[] = {25, 17}; | |
11732 | const int *foo = &x[0]; | |
11733 | ++foo; | |
703e0a69 | 11734 | } |
698dcdb6 VZ |
11735 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
11736 | typedef const int *iptr; | |
11737 | iptr p = 0; | |
11738 | ++p; | |
6232543b | 11739 | } |
698dcdb6 VZ |
11740 | { /* AIX XL C 1.02.0.0 rejects this saying |
11741 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11742 | struct s { int j; const int *ap[3]; }; | |
11743 | struct s *b; b->j = 5; | |
1e487827 | 11744 | } |
698dcdb6 VZ |
11745 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
11746 | const int foo = 10; | |
11747 | } | |
11748 | ||
11749 | ; return 0; } | |
11750 | EOF | |
d4158b5d | 11751 | if { (eval echo configure:11752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11752 | rm -rf conftest* |
10f2d63a VZ |
11753 | ac_cv_c_const=yes |
11754 | else | |
698dcdb6 VZ |
11755 | echo "configure: failed program was:" >&5 |
11756 | cat conftest.$ac_ext >&5 | |
11757 | rm -rf conftest* | |
11758 | ac_cv_c_const=no | |
10f2d63a | 11759 | fi |
698dcdb6 | 11760 | rm -f conftest* |
10f2d63a | 11761 | fi |
1e487827 | 11762 | |
698dcdb6 VZ |
11763 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
11764 | if test $ac_cv_c_const = no; then | |
11765 | cat >> confdefs.h <<\EOF | |
11766 | #define const | |
10f2d63a VZ |
11767 | EOF |
11768 | ||
11769 | fi | |
11770 | ||
698dcdb6 | 11771 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
d4158b5d | 11772 | echo "configure:11773: checking for inline" >&5 |
698dcdb6 VZ |
11773 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
11774 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11775 | else |
11776 | ac_cv_c_inline=no | |
11777 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 11778 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11779 | #line 11780 "configure" |
10f2d63a VZ |
11780 | #include "confdefs.h" |
11781 | ||
698dcdb6 VZ |
11782 | int main() { |
11783 | } $ac_kw foo() { | |
11784 | ; return 0; } | |
11785 | EOF | |
d4158b5d | 11786 | if { (eval echo configure:11787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11787 | rm -rf conftest* |
10f2d63a VZ |
11788 | ac_cv_c_inline=$ac_kw; break |
11789 | else | |
698dcdb6 VZ |
11790 | echo "configure: failed program was:" >&5 |
11791 | cat conftest.$ac_ext >&5 | |
10f2d63a | 11792 | fi |
698dcdb6 | 11793 | rm -f conftest* |
10f2d63a VZ |
11794 | done |
11795 | ||
11796 | fi | |
698dcdb6 VZ |
11797 | |
11798 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
11799 | case "$ac_cv_c_inline" in | |
10f2d63a | 11800 | inline | yes) ;; |
698dcdb6 VZ |
11801 | no) cat >> confdefs.h <<\EOF |
11802 | #define inline | |
10f2d63a VZ |
11803 | EOF |
11804 | ;; | |
698dcdb6 | 11805 | *) cat >> confdefs.h <<EOF |
10f2d63a VZ |
11806 | #define inline $ac_cv_c_inline |
11807 | EOF | |
11808 | ;; | |
11809 | esac | |
11810 | ||
698dcdb6 VZ |
11811 | |
11812 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
d4158b5d | 11813 | echo "configure:11814: checking size of char" >&5 |
698dcdb6 VZ |
11814 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
11815 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b | 11816 | else |
1e487827 | 11817 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11818 | ac_cv_sizeof_char=1 |
1e487827 | 11819 | else |
698dcdb6 | 11820 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11821 | #line 11822 "configure" |
1e487827 | 11822 | #include "confdefs.h" |
698dcdb6 VZ |
11823 | #include <stdio.h> |
11824 | main() | |
1e487827 | 11825 | { |
698dcdb6 VZ |
11826 | FILE *f=fopen("conftestval", "w"); |
11827 | if (!f) exit(1); | |
11828 | fprintf(f, "%d\n", sizeof(char)); | |
11829 | exit(0); | |
1e487827 | 11830 | } |
698dcdb6 | 11831 | EOF |
d4158b5d | 11832 | if { (eval echo configure:11833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11833 | then |
11834 | ac_cv_sizeof_char=`cat conftestval` | |
1e487827 | 11835 | else |
698dcdb6 VZ |
11836 | echo "configure: failed program was:" >&5 |
11837 | cat conftest.$ac_ext >&5 | |
11838 | rm -fr conftest* | |
1e487827 VS |
11839 | ac_cv_sizeof_char=0 |
11840 | fi | |
698dcdb6 | 11841 | rm -fr conftest* |
1e487827 | 11842 | fi |
10f2d63a | 11843 | |
1e487827 | 11844 | fi |
698dcdb6 VZ |
11845 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
11846 | cat >> confdefs.h <<EOF | |
11847 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
1e487827 | 11848 | EOF |
6232543b | 11849 | |
703e0a69 | 11850 | |
698dcdb6 | 11851 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
d4158b5d | 11852 | echo "configure:11853: checking size of short" >&5 |
698dcdb6 VZ |
11853 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
11854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11855 | else |
1e487827 | 11856 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11857 | ac_cv_sizeof_short=2 |
1e487827 | 11858 | else |
698dcdb6 | 11859 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11860 | #line 11861 "configure" |
1e487827 | 11861 | #include "confdefs.h" |
698dcdb6 VZ |
11862 | #include <stdio.h> |
11863 | main() | |
1e487827 | 11864 | { |
698dcdb6 VZ |
11865 | FILE *f=fopen("conftestval", "w"); |
11866 | if (!f) exit(1); | |
11867 | fprintf(f, "%d\n", sizeof(short)); | |
11868 | exit(0); | |
1e487827 | 11869 | } |
698dcdb6 | 11870 | EOF |
d4158b5d | 11871 | if { (eval echo configure:11872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11872 | then |
11873 | ac_cv_sizeof_short=`cat conftestval` | |
1e487827 | 11874 | else |
698dcdb6 VZ |
11875 | echo "configure: failed program was:" >&5 |
11876 | cat conftest.$ac_ext >&5 | |
11877 | rm -fr conftest* | |
11878 | ac_cv_sizeof_short=0 | |
1e487827 | 11879 | fi |
698dcdb6 | 11880 | rm -fr conftest* |
1e487827 | 11881 | fi |
698dcdb6 | 11882 | |
1e487827 | 11883 | fi |
698dcdb6 VZ |
11884 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
11885 | cat >> confdefs.h <<EOF | |
11886 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
11887 | EOF | |
11888 | ||
11889 | ||
11890 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
d4158b5d | 11891 | echo "configure:11892: checking size of int *" >&5 |
698dcdb6 VZ |
11892 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
11893 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11894 | else |
11895 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11896 | ac_cv_sizeof_int_p=4 |
10f2d63a | 11897 | else |
698dcdb6 | 11898 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11899 | #line 11900 "configure" |
10f2d63a | 11900 | #include "confdefs.h" |
698dcdb6 VZ |
11901 | #include <stdio.h> |
11902 | main() | |
10f2d63a | 11903 | { |
698dcdb6 VZ |
11904 | FILE *f=fopen("conftestval", "w"); |
11905 | if (!f) exit(1); | |
11906 | fprintf(f, "%d\n", sizeof(int *)); | |
11907 | exit(0); | |
10f2d63a | 11908 | } |
698dcdb6 | 11909 | EOF |
d4158b5d | 11910 | if { (eval echo configure:11911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11911 | then |
11912 | ac_cv_sizeof_int_p=`cat conftestval` | |
10f2d63a | 11913 | else |
698dcdb6 VZ |
11914 | echo "configure: failed program was:" >&5 |
11915 | cat conftest.$ac_ext >&5 | |
11916 | rm -fr conftest* | |
11917 | ac_cv_sizeof_int_p=0 | |
6232543b | 11918 | fi |
698dcdb6 | 11919 | rm -fr conftest* |
1e487827 | 11920 | fi |
698dcdb6 | 11921 | |
1e487827 | 11922 | fi |
698dcdb6 VZ |
11923 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 |
11924 | cat >> confdefs.h <<EOF | |
11925 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
11926 | EOF |
11927 | ||
698dcdb6 VZ |
11928 | |
11929 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
d4158b5d | 11930 | echo "configure:11931: checking size of int" >&5 |
698dcdb6 VZ |
11931 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
11932 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11933 | else |
11934 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11935 | ac_cv_sizeof_int=4 |
703e0a69 | 11936 | else |
698dcdb6 | 11937 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11938 | #line 11939 "configure" |
1e487827 | 11939 | #include "confdefs.h" |
698dcdb6 VZ |
11940 | #include <stdio.h> |
11941 | main() | |
1e487827 | 11942 | { |
698dcdb6 VZ |
11943 | FILE *f=fopen("conftestval", "w"); |
11944 | if (!f) exit(1); | |
11945 | fprintf(f, "%d\n", sizeof(int)); | |
11946 | exit(0); | |
1e487827 | 11947 | } |
698dcdb6 | 11948 | EOF |
d4158b5d | 11949 | if { (eval echo configure:11950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11950 | then |
11951 | ac_cv_sizeof_int=`cat conftestval` | |
11952 | else | |
11953 | echo "configure: failed program was:" >&5 | |
11954 | cat conftest.$ac_ext >&5 | |
11955 | rm -fr conftest* | |
11956 | ac_cv_sizeof_int=0 | |
703e0a69 | 11957 | fi |
698dcdb6 VZ |
11958 | rm -fr conftest* |
11959 | fi | |
11960 | ||
11961 | fi | |
11962 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
11963 | cat >> confdefs.h <<EOF | |
11964 | #define SIZEOF_INT $ac_cv_sizeof_int | |
11965 | EOF | |
11966 | ||
11967 | ||
11968 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
d4158b5d | 11969 | echo "configure:11970: checking size of long" >&5 |
698dcdb6 VZ |
11970 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
11971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11972 | else |
11973 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11974 | ac_cv_sizeof_long=4 |
10f2d63a | 11975 | else |
698dcdb6 | 11976 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 11977 | #line 11978 "configure" |
10f2d63a | 11978 | #include "confdefs.h" |
698dcdb6 VZ |
11979 | #include <stdio.h> |
11980 | main() | |
10f2d63a | 11981 | { |
698dcdb6 VZ |
11982 | FILE *f=fopen("conftestval", "w"); |
11983 | if (!f) exit(1); | |
11984 | fprintf(f, "%d\n", sizeof(long)); | |
11985 | exit(0); | |
10f2d63a | 11986 | } |
698dcdb6 | 11987 | EOF |
d4158b5d | 11988 | if { (eval echo configure:11989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11989 | then |
11990 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 11991 | else |
698dcdb6 VZ |
11992 | echo "configure: failed program was:" >&5 |
11993 | cat conftest.$ac_ext >&5 | |
11994 | rm -fr conftest* | |
11995 | ac_cv_sizeof_long=0 | |
10f2d63a | 11996 | fi |
698dcdb6 | 11997 | rm -fr conftest* |
10f2d63a | 11998 | fi |
698dcdb6 | 11999 | |
10f2d63a | 12000 | fi |
698dcdb6 VZ |
12001 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
12002 | cat >> confdefs.h <<EOF | |
12003 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12004 | EOF | |
12005 | ||
12006 | ||
12007 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
d4158b5d | 12008 | echo "configure:12009: checking size of long long" >&5 |
698dcdb6 VZ |
12009 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
12010 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12011 | else | |
12012 | if test "$cross_compiling" = yes; then | |
12013 | ac_cv_sizeof_long_long=0 | |
12014 | else | |
12015 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 12016 | #line 12017 "configure" |
698dcdb6 VZ |
12017 | #include "confdefs.h" |
12018 | #include <stdio.h> | |
12019 | main() | |
12020 | { | |
12021 | FILE *f=fopen("conftestval", "w"); | |
12022 | if (!f) exit(1); | |
12023 | fprintf(f, "%d\n", sizeof(long long)); | |
12024 | exit(0); | |
12025 | } | |
12026 | EOF | |
d4158b5d | 12027 | if { (eval echo configure:12028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
12028 | then |
12029 | ac_cv_sizeof_long_long=`cat conftestval` | |
6232543b | 12030 | else |
698dcdb6 VZ |
12031 | echo "configure: failed program was:" >&5 |
12032 | cat conftest.$ac_ext >&5 | |
12033 | rm -fr conftest* | |
6232543b VS |
12034 | ac_cv_sizeof_long_long=0 |
12035 | fi | |
698dcdb6 VZ |
12036 | rm -fr conftest* |
12037 | fi | |
12038 | ||
703e0a69 | 12039 | fi |
698dcdb6 VZ |
12040 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
12041 | cat >> confdefs.h <<EOF | |
10f2d63a VZ |
12042 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
12043 | EOF | |
12044 | ||
1e487827 | 12045 | |
698dcdb6 VZ |
12046 | |
12047 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
d4158b5d | 12048 | echo "configure:12049: checking size of wchar_t" >&5 |
698dcdb6 VZ |
12049 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
12050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12051 | else | |
12052 | ||
b93d0d08 VS |
12053 | if test "$cross_compiling" = yes; then |
12054 | wx_cv_sizeof_wchar_t=4 | |
1e6feb95 | 12055 | |
b93d0d08 | 12056 | else |
698dcdb6 | 12057 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 12058 | #line 12059 "configure" |
b93d0d08 VS |
12059 | #include "confdefs.h" |
12060 | ||
1e6feb95 VZ |
12061 | #ifdef HAVE_WCHAR_H |
12062 | # include <wchar.h> | |
12063 | #endif | |
12064 | #ifdef HAVE_STDLIB_H | |
12065 | # include <stdlib.h> | |
12066 | #endif | |
12067 | #include <stdio.h> | |
12068 | int main() | |
12069 | { | |
12070 | FILE *f=fopen("conftestval", "w"); | |
12071 | if (!f) exit(1); | |
12072 | fprintf(f, "%i", sizeof(wchar_t)); | |
12073 | exit(0); | |
12074 | } | |
698dcdb6 VZ |
12075 | |
12076 | EOF | |
d4158b5d | 12077 | if { (eval echo configure:12078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12078 | then |
b93d0d08 VS |
12079 | wx_cv_sizeof_wchar_t=`cat conftestval` |
12080 | else | |
698dcdb6 VZ |
12081 | echo "configure: failed program was:" >&5 |
12082 | cat conftest.$ac_ext >&5 | |
12083 | rm -fr conftest* | |
12084 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 12085 | fi |
698dcdb6 | 12086 | rm -fr conftest* |
b93d0d08 VS |
12087 | fi |
12088 | ||
698dcdb6 | 12089 | |
b93d0d08 VS |
12090 | fi |
12091 | ||
698dcdb6 VZ |
12092 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
12093 | ||
12094 | cat >> confdefs.h <<EOF | |
28c6addc | 12095 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
12096 | EOF |
12097 | ||
698dcdb6 | 12098 | |
698dcdb6 | 12099 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
d4158b5d | 12100 | echo "configure:12101: checking whether byte ordering is bigendian" >&5 |
698dcdb6 VZ |
12101 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
12102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
12103 | else |
12104 | ac_cv_c_bigendian=unknown | |
12105 | # See if sys/param.h defines the BYTE_ORDER macro. | |
698dcdb6 | 12106 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 12107 | #line 12108 "configure" |
10f2d63a VZ |
12108 | #include "confdefs.h" |
12109 | #include <sys/types.h> | |
12110 | #include <sys/param.h> | |
698dcdb6 | 12111 | int main() { |
10f2d63a VZ |
12112 | |
12113 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
12114 | bogus endian macros | |
12115 | #endif | |
698dcdb6 VZ |
12116 | ; return 0; } |
12117 | EOF | |
d4158b5d | 12118 | if { (eval echo configure:12119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12119 | rm -rf conftest* |
10f2d63a | 12120 | # It does; now see whether it defined to BIG_ENDIAN or not. |
698dcdb6 | 12121 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 12122 | #line 12123 "configure" |
10f2d63a VZ |
12123 | #include "confdefs.h" |
12124 | #include <sys/types.h> | |
12125 | #include <sys/param.h> | |
698dcdb6 | 12126 | int main() { |
10f2d63a VZ |
12127 | |
12128 | #if BYTE_ORDER != BIG_ENDIAN | |
12129 | not big endian | |
12130 | #endif | |
698dcdb6 VZ |
12131 | ; return 0; } |
12132 | EOF | |
d4158b5d | 12133 | if { (eval echo configure:12134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12134 | rm -rf conftest* |
10f2d63a VZ |
12135 | ac_cv_c_bigendian=yes |
12136 | else | |
698dcdb6 VZ |
12137 | echo "configure: failed program was:" >&5 |
12138 | cat conftest.$ac_ext >&5 | |
12139 | rm -rf conftest* | |
12140 | ac_cv_c_bigendian=no | |
10f2d63a | 12141 | fi |
698dcdb6 | 12142 | rm -f conftest* |
10f2d63a | 12143 | else |
698dcdb6 VZ |
12144 | echo "configure: failed program was:" >&5 |
12145 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12146 | fi |
698dcdb6 | 12147 | rm -f conftest* |
10f2d63a VZ |
12148 | if test $ac_cv_c_bigendian = unknown; then |
12149 | if test "$cross_compiling" = yes; then | |
12150 | ac_cv_c_bigendian=unknown | |
12151 | else | |
698dcdb6 | 12152 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 12153 | #line 12154 "configure" |
10f2d63a VZ |
12154 | #include "confdefs.h" |
12155 | main () { | |
12156 | /* Are we little or big endian? From Harbison&Steele. */ | |
12157 | union | |
12158 | { | |
12159 | long l; | |
12160 | char c[sizeof (long)]; | |
12161 | } u; | |
12162 | u.l = 1; | |
12163 | exit (u.c[sizeof (long) - 1] == 1); | |
12164 | } | |
698dcdb6 | 12165 | EOF |
d4158b5d | 12166 | if { (eval echo configure:12167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12167 | then |
10f2d63a VZ |
12168 | ac_cv_c_bigendian=no |
12169 | else | |
698dcdb6 VZ |
12170 | echo "configure: failed program was:" >&5 |
12171 | cat conftest.$ac_ext >&5 | |
12172 | rm -fr conftest* | |
12173 | ac_cv_c_bigendian=yes | |
10f2d63a | 12174 | fi |
698dcdb6 | 12175 | rm -fr conftest* |
10f2d63a | 12176 | fi |
698dcdb6 | 12177 | |
10f2d63a VZ |
12178 | fi |
12179 | fi | |
698dcdb6 VZ |
12180 | |
12181 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10f2d63a | 12182 | if test $ac_cv_c_bigendian = unknown; then |
698dcdb6 | 12183 | 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 |
12184 | fi |
12185 | if test $ac_cv_c_bigendian = yes; then | |
698dcdb6 | 12186 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12187 | #define WORDS_BIGENDIAN 1 |
12188 | EOF | |
12189 | ||
12190 | fi | |
12191 | ||
698dcdb6 VZ |
12192 | |
12193 | ||
10f2d63a | 12194 | if test "$cross_compiling" = "yes"; then |
698dcdb6 | 12195 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12196 | #define wxUSE_IOSTREAMH 1 |
12197 | EOF | |
12198 | ||
12199 | else | |
698dcdb6 VZ |
12200 | |
12201 | ac_ext=C | |
12202 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12203 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12204 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12205 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12206 | cross_compiling=$ac_cv_prog_cxx_cross | |
12207 | ||
703e0a69 | 12208 | |
698dcdb6 | 12209 | for ac_hdr in iostream |
10f2d63a | 12210 | do |
698dcdb6 VZ |
12211 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12212 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d4158b5d | 12213 | echo "configure:12214: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12214 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12215 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12216 | else | |
12217 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 12218 | #line 12219 "configure" |
10f2d63a | 12219 | #include "confdefs.h" |
698dcdb6 VZ |
12220 | #include <$ac_hdr> |
12221 | EOF | |
12222 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 12223 | { (eval echo configure:12224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12224 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12225 | if test -z "$ac_err"; then | |
12226 | rm -rf conftest* | |
12227 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12228 | else |
698dcdb6 VZ |
12229 | echo "$ac_err" >&5 |
12230 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12231 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12232 | rm -rf conftest* |
12233 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12234 | fi |
698dcdb6 | 12235 | rm -f conftest* |
10f2d63a | 12236 | fi |
698dcdb6 VZ |
12237 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12238 | echo "$ac_t""yes" 1>&6 | |
12239 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12240 | cat >> confdefs.h <<EOF | |
12241 | #define $ac_tr_hdr 1 | |
10f2d63a | 12242 | EOF |
698dcdb6 VZ |
12243 | |
12244 | else | |
12245 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12246 | fi |
12247 | done | |
12248 | ||
698dcdb6 | 12249 | |
57fe5ed0 VZ |
12250 | if test "$ac_cv_header_iostream" = "yes" ; then |
12251 | : | |
12252 | else | |
698dcdb6 | 12253 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12254 | #define wxUSE_IOSTREAMH 1 |
12255 | EOF | |
12256 | ||
10f2d63a VZ |
12257 | fi |
12258 | ||
12259 | ac_ext=c | |
698dcdb6 | 12260 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12261 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12262 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12263 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12264 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a VZ |
12265 | |
12266 | fi | |
12267 | ||
703e0a69 | 12268 | |
698dcdb6 VZ |
12269 | |
12270 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
d4158b5d | 12271 | echo "configure:12272: checking if C++ compiler supports bool" >&5 |
698dcdb6 VZ |
12272 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
12273 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12274 | else | |
12275 | ||
12276 | ||
12277 | ac_ext=C | |
12278 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12279 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12280 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12281 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12282 | cross_compiling=$ac_cv_prog_cxx_cross | |
10f2d63a | 12283 | |
698dcdb6 VZ |
12284 | |
12285 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 12286 | #line 12287 "configure" |
10f2d63a VZ |
12287 | #include "confdefs.h" |
12288 | ||
698dcdb6 VZ |
12289 | |
12290 | int main() { | |
10f2d63a VZ |
12291 | |
12292 | bool b = true; | |
12293 | ||
12294 | return 0; | |
698dcdb6 VZ |
12295 | |
12296 | ; return 0; } | |
12297 | EOF | |
d4158b5d | 12298 | if { (eval echo configure:12299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12299 | rm -rf conftest* |
12300 | ||
10f2d63a | 12301 | wx_cv_cpp_bool=yes |
698dcdb6 | 12302 | |
10f2d63a | 12303 | else |
698dcdb6 VZ |
12304 | echo "configure: failed program was:" >&5 |
12305 | cat conftest.$ac_ext >&5 | |
12306 | rm -rf conftest* | |
12307 | ||
10f2d63a | 12308 | wx_cv_cpp_bool=no |
698dcdb6 VZ |
12309 | |
12310 | ||
10f2d63a | 12311 | fi |
698dcdb6 | 12312 | rm -f conftest* |
10f2d63a VZ |
12313 | |
12314 | ac_ext=c | |
698dcdb6 | 12315 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12316 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12317 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12318 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12319 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12320 | |
698dcdb6 | 12321 | |
10f2d63a | 12322 | fi |
698dcdb6 VZ |
12323 | |
12324 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10f2d63a VZ |
12325 | |
12326 | if test "$wx_cv_cpp_bool" = "yes"; then | |
698dcdb6 | 12327 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12328 | #define HAVE_BOOL 1 |
12329 | EOF | |
12330 | ||
12331 | fi | |
12332 | ||
1e487827 | 12333 | |
698dcdb6 | 12334 | |
698dcdb6 | 12335 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 |
d4158b5d | 12336 | echo "configure:12337: checking for wcslen in -lc" >&5 |
698dcdb6 VZ |
12337 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
12338 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12339 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12340 | else |
698dcdb6 | 12341 | ac_save_LIBS="$LIBS" |
10f2d63a | 12342 | LIBS="-lc $LIBS" |
698dcdb6 | 12343 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 12344 | #line 12345 "configure" |
10f2d63a VZ |
12345 | #include "confdefs.h" |
12346 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12347 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12348 | builtin and then its argument prototype would still apply. */ |
12349 | char wcslen(); | |
12350 | ||
12351 | int main() { | |
12352 | wcslen() | |
12353 | ; return 0; } | |
12354 | EOF | |
d4158b5d | 12355 | if { (eval echo configure:12356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12356 | rm -rf conftest* |
12357 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12358 | else | |
12359 | echo "configure: failed program was:" >&5 | |
12360 | cat conftest.$ac_ext >&5 | |
12361 | rm -rf conftest* | |
12362 | eval "ac_cv_lib_$ac_lib_var=no" | |
12363 | fi | |
12364 | rm -f conftest* | |
12365 | LIBS="$ac_save_LIBS" | |
12366 | ||
12367 | fi | |
12368 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12369 | echo "$ac_t""yes" 1>&6 | |
12370 | ||
12371 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12372 | #define HAVE_WCSLEN 1 |
12373 | EOF | |
12374 | ||
12375 | WCHAR_LINK="" | |
698dcdb6 | 12376 | |
10f2d63a | 12377 | else |
698dcdb6 | 12378 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12379 | |
698dcdb6 | 12380 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
d4158b5d | 12381 | echo "configure:12382: checking for wcslen in -lw" >&5 |
698dcdb6 VZ |
12382 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
12383 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12385 | else |
698dcdb6 | 12386 | ac_save_LIBS="$LIBS" |
10f2d63a | 12387 | LIBS="-lw $LIBS" |
698dcdb6 | 12388 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 12389 | #line 12390 "configure" |
10f2d63a VZ |
12390 | #include "confdefs.h" |
12391 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12392 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12393 | builtin and then its argument prototype would still apply. */ |
12394 | char wcslen(); | |
12395 | ||
12396 | int main() { | |
12397 | wcslen() | |
12398 | ; return 0; } | |
12399 | EOF | |
d4158b5d | 12400 | if { (eval echo configure:12401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12401 | rm -rf conftest* |
12402 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12403 | else | |
12404 | echo "configure: failed program was:" >&5 | |
12405 | cat conftest.$ac_ext >&5 | |
12406 | rm -rf conftest* | |
12407 | eval "ac_cv_lib_$ac_lib_var=no" | |
12408 | fi | |
12409 | rm -f conftest* | |
12410 | LIBS="$ac_save_LIBS" | |
12411 | ||
12412 | fi | |
12413 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12414 | echo "$ac_t""yes" 1>&6 | |
12415 | ||
12416 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12417 | #define HAVE_WCSLEN 1 |
12418 | EOF | |
12419 | ||
12420 | WCHAR_LINK="-lw" | |
698dcdb6 VZ |
12421 | |
12422 | else | |
12423 | echo "$ac_t""no" 1>&6 | |
6232543b | 12424 | fi |
10f2d63a | 12425 | |
698dcdb6 | 12426 | |
1e487827 | 12427 | fi |
703e0a69 | 12428 | |
698dcdb6 VZ |
12429 | |
12430 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
d4158b5d | 12431 | echo "configure:12432: checking for vprintf" >&5 |
698dcdb6 VZ |
12432 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
12433 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12434 | else | |
12435 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 12436 | #line 12437 "configure" |
10f2d63a VZ |
12437 | #include "confdefs.h" |
12438 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12439 | which can conflict with char vprintf(); below. */ |
10f2d63a VZ |
12440 | #include <assert.h> |
12441 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12442 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12443 | builtin and then its argument prototype would still apply. */ |
12444 | char vprintf(); | |
12445 | ||
12446 | int main() { | |
10f2d63a VZ |
12447 | |
12448 | /* The GNU C library defines this for functions which it implements | |
12449 | to always fail with ENOSYS. Some functions are actually named | |
12450 | something starting with __ and the normal name is an alias. */ | |
698dcdb6 | 12451 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
10f2d63a VZ |
12452 | choke me |
12453 | #else | |
698dcdb6 | 12454 | vprintf(); |
10f2d63a VZ |
12455 | #endif |
12456 | ||
698dcdb6 VZ |
12457 | ; return 0; } |
12458 | EOF | |
d4158b5d | 12459 | if { (eval echo configure:12460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12460 | rm -rf conftest* |
12461 | eval "ac_cv_func_vprintf=yes" | |
12462 | else | |
12463 | echo "configure: failed program was:" >&5 | |
12464 | cat conftest.$ac_ext >&5 | |
12465 | rm -rf conftest* | |
12466 | eval "ac_cv_func_vprintf=no" | |
12467 | fi | |
12468 | rm -f conftest* | |
12469 | fi | |
12470 | ||
12471 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
12472 | echo "$ac_t""yes" 1>&6 | |
12473 | cat >> confdefs.h <<\EOF | |
12474 | #define HAVE_VPRINTF 1 | |
12475 | EOF | |
12476 | ||
12477 | else | |
12478 | echo "$ac_t""no" 1>&6 | |
12479 | fi | |
12480 | ||
12481 | if test "$ac_cv_func_vprintf" != yes; then | |
12482 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
d4158b5d | 12483 | echo "configure:12484: checking for _doprnt" >&5 |
698dcdb6 VZ |
12484 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
12485 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12486 | else | |
12487 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 12488 | #line 12489 "configure" |
10f2d63a VZ |
12489 | #include "confdefs.h" |
12490 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12491 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
12492 | #include <assert.h> |
12493 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12494 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12495 | builtin and then its argument prototype would still apply. */ |
12496 | char _doprnt(); | |
12497 | ||
12498 | int main() { | |
10f2d63a VZ |
12499 | |
12500 | /* The GNU C library defines this for functions which it implements | |
12501 | to always fail with ENOSYS. Some functions are actually named | |
12502 | something starting with __ and the normal name is an alias. */ | |
12503 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
12504 | choke me | |
12505 | #else | |
698dcdb6 | 12506 | _doprnt(); |
10f2d63a VZ |
12507 | #endif |
12508 | ||
698dcdb6 VZ |
12509 | ; return 0; } |
12510 | EOF | |
d4158b5d | 12511 | if { (eval echo configure:12512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12512 | rm -rf conftest* |
12513 | eval "ac_cv_func__doprnt=yes" | |
12514 | else | |
12515 | echo "configure: failed program was:" >&5 | |
12516 | cat conftest.$ac_ext >&5 | |
12517 | rm -rf conftest* | |
12518 | eval "ac_cv_func__doprnt=no" | |
12519 | fi | |
12520 | rm -f conftest* | |
12521 | fi | |
12522 | ||
12523 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
12524 | echo "$ac_t""yes" 1>&6 | |
12525 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12526 | #define HAVE_DOPRNT 1 |
12527 | EOF | |
12528 | ||
698dcdb6 VZ |
12529 | else |
12530 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12531 | fi |
12532 | ||
12533 | fi | |
12534 | ||
1e487827 | 12535 | |
698dcdb6 VZ |
12536 | |
12537 | ||
12538 | ||
12539 | ||
12540 | ||
12541 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
d4158b5d | 12542 | echo "configure:12543: checking for vsnprintf" >&5 |
698dcdb6 VZ |
12543 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
12544 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12545 | else | |
12546 | ||
12547 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 12548 | #line 12549 "configure" |
f6bcfd97 BP |
12549 | #include "confdefs.h" |
12550 | ||
12551 | #include <stdio.h> | |
698dcdb6 VZ |
12552 | #include <stdarg.h> |
12553 | ||
12554 | int main() { | |
10f2d63a | 12555 | |
f6bcfd97 | 12556 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 12557 | |
f6bcfd97 BP |
12558 | wx_test_vsnprintf("%s"); |
12559 | return 0; | |
12560 | } | |
12561 | ||
12562 | int wx_test_vsnprintf(const char *fmt, ...) | |
12563 | { | |
12564 | char *s; | |
12565 | ||
12566 | va_list argp; | |
12567 | va_start(argp, fmt); | |
12568 | vsnprintf(s, 42, fmt, argp); | |
12569 | va_end(argp); | |
698dcdb6 VZ |
12570 | |
12571 | ; return 0; } | |
12572 | EOF | |
d4158b5d | 12573 | if { (eval echo configure:12574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12574 | rm -rf conftest* |
12575 | ||
f6bcfd97 | 12576 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12577 | |
10f2d63a | 12578 | else |
698dcdb6 VZ |
12579 | echo "configure: failed program was:" >&5 |
12580 | cat conftest.$ac_ext >&5 | |
12581 | rm -rf conftest* | |
12582 | ||
12583 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 12584 | #line 12585 "configure" |
c521c494 RL |
12585 | #include "confdefs.h" |
12586 | ||
12587 | #include <stdio.h> | |
12588 | #include <stdarg.h> | |
698dcdb6 VZ |
12589 | |
12590 | int main() { | |
c521c494 RL |
12591 | |
12592 | int wx_test_vsnprintf(const char *, ...); | |
12593 | ||
12594 | wx_test_vsnprintf("%s"); | |
12595 | return 0; | |
12596 | } | |
12597 | ||
12598 | int wx_test_vsnprintf(const char *fmt, ...) | |
12599 | { | |
12600 | char *s; | |
12601 | ||
12602 | va_list argp; | |
12603 | va_start(argp, fmt); | |
12604 | _vsnprintf(s, 42, fmt, argp); | |
12605 | va_end(argp); | |
698dcdb6 VZ |
12606 | |
12607 | ; return 0; } | |
12608 | EOF | |
d4158b5d | 12609 | if { (eval echo configure:12610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12610 | rm -rf conftest* |
12611 | ||
c521c494 | 12612 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12613 | |
c521c494 | 12614 | else |
698dcdb6 VZ |
12615 | echo "configure: failed program was:" >&5 |
12616 | cat conftest.$ac_ext >&5 | |
12617 | rm -rf conftest* | |
12618 | ||
c521c494 | 12619 | wx_cv_func_vsnprintf=no |
698dcdb6 | 12620 | |
10f2d63a | 12621 | fi |
698dcdb6 VZ |
12622 | rm -f conftest* |
12623 | ||
6232543b | 12624 | fi |
698dcdb6 | 12625 | rm -f conftest* |
703e0a69 | 12626 | |
1e487827 | 12627 | fi |
698dcdb6 VZ |
12628 | |
12629 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
10f2d63a | 12630 | |
9d8deca0 | 12631 | if test "$wx_cv_func_vsnprintf" = yes; then |
698dcdb6 | 12632 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12633 | #define HAVE_VSNPRINTF 1 |
12634 | EOF | |
12635 | ||
12636 | else | |
698dcdb6 | 12637 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 |
9d8deca0 VZ |
12638 | fi |
12639 | ||
698dcdb6 | 12640 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
d4158b5d | 12641 | echo "configure:12642: checking for vsscanf" >&5 |
698dcdb6 VZ |
12642 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
12643 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12644 | else |
698dcdb6 VZ |
12645 | |
12646 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 12647 | #line 12648 "configure" |
10f2d63a | 12648 | #include "confdefs.h" |
10f2d63a | 12649 | |
f6bcfd97 BP |
12650 | #include <stdio.h> |
12651 | #include <stdarg.h> | |
698dcdb6 VZ |
12652 | |
12653 | int main() { | |
10f2d63a | 12654 | |
f6bcfd97 | 12655 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 12656 | |
f6bcfd97 BP |
12657 | wx_test_vsscanf("%d"); |
12658 | return 0; | |
10f2d63a VZ |
12659 | } |
12660 | ||
f6bcfd97 | 12661 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 12662 | { |
f6bcfd97 BP |
12663 | va_list argp; |
12664 | va_start(argp, fmt); | |
12665 | vsscanf("42", fmt, argp); | |
12666 | va_end(argp); | |
698dcdb6 VZ |
12667 | |
12668 | ; return 0; } | |
12669 | EOF | |
d4158b5d | 12670 | if { (eval echo configure:12671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12671 | rm -rf conftest* |
12672 | ||
f6bcfd97 | 12673 | wx_cv_func_vsscanf=yes |
698dcdb6 | 12674 | |
10f2d63a | 12675 | else |
698dcdb6 VZ |
12676 | echo "configure: failed program was:" >&5 |
12677 | cat conftest.$ac_ext >&5 | |
12678 | rm -rf conftest* | |
12679 | ||
f6bcfd97 | 12680 | wx_cv_func_vsscanf=no |
698dcdb6 | 12681 | |
6232543b | 12682 | fi |
698dcdb6 | 12683 | rm -f conftest* |
703e0a69 | 12684 | |
1e487827 | 12685 | fi |
698dcdb6 VZ |
12686 | |
12687 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10f2d63a | 12688 | |
9d8deca0 | 12689 | if test "$wx_cv_func_vsscanf" = yes; then |
698dcdb6 | 12690 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12691 | #define HAVE_VSSCANF 1 |
12692 | EOF | |
12693 | ||
12694 | fi | |
12695 | ||
95c8801c VS |
12696 | if test "$TOOLKIT" != "MSW"; then |
12697 | ||
12698 | ||
12699 | ||
698dcdb6 VZ |
12700 | ac_ext=C |
12701 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12702 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12703 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12704 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12705 | cross_compiling=$ac_cv_prog_cxx_cross | |
12706 | ||
12707 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
d4158b5d | 12708 | echo "configure:12709: checking if iconv() takes char**" >&5 |
698dcdb6 VZ |
12709 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
12710 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12711 | else | |
12712 | ||
12713 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 12714 | #line 12715 "configure" |
95c8801c VS |
12715 | #include "confdefs.h" |
12716 | #include <iconv.h> | |
698dcdb6 | 12717 | int main() { |
95c8801c VS |
12718 | |
12719 | char **inbuf, **outbuf; | |
19af3b06 VZ |
12720 | iconv_t cd; |
12721 | size_t insz, outsz; | |
12722 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
698dcdb6 VZ |
12723 | |
12724 | ; return 0; } | |
12725 | EOF | |
d4158b5d | 12726 | if { (eval echo configure:12727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12727 | rm -rf conftest* |
95c8801c VS |
12728 | wx_cv_iconv_takes_char=yes |
12729 | else | |
698dcdb6 VZ |
12730 | echo "configure: failed program was:" >&5 |
12731 | cat conftest.$ac_ext >&5 | |
12732 | rm -rf conftest* | |
12733 | wx_cv_iconv_takes_char=no | |
95c8801c | 12734 | fi |
698dcdb6 | 12735 | rm -f conftest* |
95c8801c VS |
12736 | |
12737 | fi | |
698dcdb6 VZ |
12738 | |
12739 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a | 12740 | ac_ext=c |
698dcdb6 | 12741 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12742 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12743 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12744 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12745 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12746 | |
95c8801c | 12747 | if test "$wx_cv_iconv_takes_char" = yes ; then |
698dcdb6 | 12748 | cat >> confdefs.h <<\EOF |
95c8801c VS |
12749 | #define WX_ICONV_TAKES_CHAR 1 |
12750 | EOF | |
12751 | ||
12752 | fi | |
10f2d63a | 12753 | |
1e487827 | 12754 | |
698dcdb6 VZ |
12755 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
12756 | for ac_func in sigaction | |
eb4efbdc | 12757 | do |
698dcdb6 | 12758 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 12759 | echo "configure:12760: checking for $ac_func" >&5 |
698dcdb6 VZ |
12760 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12761 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12762 | else | |
12763 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 12764 | #line 12765 "configure" |
eb4efbdc VZ |
12765 | #include "confdefs.h" |
12766 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12767 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
12768 | #include <assert.h> |
12769 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12770 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12771 | builtin and then its argument prototype would still apply. */ |
12772 | char $ac_func(); | |
12773 | ||
12774 | int main() { | |
eb4efbdc VZ |
12775 | |
12776 | /* The GNU C library defines this for functions which it implements | |
12777 | to always fail with ENOSYS. Some functions are actually named | |
12778 | something starting with __ and the normal name is an alias. */ | |
12779 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12780 | choke me | |
12781 | #else | |
698dcdb6 | 12782 | $ac_func(); |
eb4efbdc VZ |
12783 | #endif |
12784 | ||
698dcdb6 | 12785 | ; return 0; } |
eb4efbdc | 12786 | EOF |
d4158b5d | 12787 | if { (eval echo configure:12788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12788 | rm -rf conftest* |
12789 | eval "ac_cv_func_$ac_func=yes" | |
12790 | else | |
12791 | echo "configure: failed program was:" >&5 | |
12792 | cat conftest.$ac_ext >&5 | |
12793 | rm -rf conftest* | |
12794 | eval "ac_cv_func_$ac_func=no" | |
12795 | fi | |
12796 | rm -f conftest* | |
12797 | fi | |
eb4efbdc | 12798 | |
698dcdb6 VZ |
12799 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12800 | echo "$ac_t""yes" 1>&6 | |
12801 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12802 | cat >> confdefs.h <<EOF | |
12803 | #define $ac_tr_func 1 | |
12804 | EOF | |
12805 | ||
12806 | else | |
12807 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
12808 | fi |
12809 | done | |
12810 | ||
698dcdb6 | 12811 | |
eb4efbdc | 12812 | if test "$ac_cv_func_sigaction" = "no"; then |
698dcdb6 | 12813 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
eb4efbdc VZ |
12814 | wxUSE_ON_FATAL_EXCEPTION=no |
12815 | fi | |
f6bcfd97 BP |
12816 | |
12817 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
698dcdb6 VZ |
12818 | |
12819 | ac_ext=C | |
12820 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12821 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12822 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12823 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12824 | cross_compiling=$ac_cv_prog_cxx_cross | |
6232543b | 12825 | |
1e487827 | 12826 | |
698dcdb6 | 12827 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
d4158b5d | 12828 | echo "configure:12829: checking for sa_handler type" >&5 |
698dcdb6 VZ |
12829 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
12830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12831 | else | |
12832 | ||
12833 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 12834 | #line 12835 "configure" |
f6bcfd97 BP |
12835 | #include "confdefs.h" |
12836 | #include <signal.h> | |
698dcdb6 | 12837 | int main() { |
f6bcfd97 BP |
12838 | |
12839 | extern void testSigHandler(int); | |
12840 | ||
12841 | struct sigaction sa; | |
12842 | sa.sa_handler = testSigHandler; | |
698dcdb6 VZ |
12843 | |
12844 | ; return 0; } | |
12845 | EOF | |
d4158b5d | 12846 | if { (eval echo configure:12847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12847 | rm -rf conftest* |
12848 | ||
f6bcfd97 | 12849 | wx_cv_type_sa_handler=int |
698dcdb6 | 12850 | |
f6bcfd97 | 12851 | else |
698dcdb6 VZ |
12852 | echo "configure: failed program was:" >&5 |
12853 | cat conftest.$ac_ext >&5 | |
12854 | rm -rf conftest* | |
12855 | ||
f6bcfd97 | 12856 | wx_cv_type_sa_handler=void |
698dcdb6 | 12857 | |
6232543b | 12858 | fi |
698dcdb6 VZ |
12859 | rm -f conftest* |
12860 | ||
1e487827 | 12861 | fi |
698dcdb6 VZ |
12862 | |
12863 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
f6bcfd97 BP |
12864 | |
12865 | ac_ext=c | |
698dcdb6 | 12866 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
f6bcfd97 | 12867 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12868 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12869 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12870 | cross_compiling=$ac_cv_prog_cc_cross | |
12871 | ||
703e0a69 | 12872 | |
698dcdb6 | 12873 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
12874 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
12875 | EOF | |
12876 | ||
12877 | fi | |
eb4efbdc VZ |
12878 | fi |
12879 | ||
10f2d63a VZ |
12880 | for ac_func in vfork |
12881 | do | |
698dcdb6 | 12882 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 12883 | echo "configure:12884: checking for $ac_func" >&5 |
698dcdb6 VZ |
12884 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12885 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12886 | else | |
12887 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 12888 | #line 12889 "configure" |
10f2d63a VZ |
12889 | #include "confdefs.h" |
12890 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12891 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
12892 | #include <assert.h> |
12893 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12894 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12895 | builtin and then its argument prototype would still apply. */ |
12896 | char $ac_func(); | |
12897 | ||
12898 | int main() { | |
10f2d63a VZ |
12899 | |
12900 | /* The GNU C library defines this for functions which it implements | |
12901 | to always fail with ENOSYS. Some functions are actually named | |
12902 | something starting with __ and the normal name is an alias. */ | |
12903 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12904 | choke me | |
12905 | #else | |
698dcdb6 | 12906 | $ac_func(); |
10f2d63a VZ |
12907 | #endif |
12908 | ||
698dcdb6 | 12909 | ; return 0; } |
10f2d63a | 12910 | EOF |
d4158b5d | 12911 | if { (eval echo configure:12912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12912 | rm -rf conftest* |
12913 | eval "ac_cv_func_$ac_func=yes" | |
12914 | else | |
12915 | echo "configure: failed program was:" >&5 | |
12916 | cat conftest.$ac_ext >&5 | |
12917 | rm -rf conftest* | |
12918 | eval "ac_cv_func_$ac_func=no" | |
12919 | fi | |
12920 | rm -f conftest* | |
12921 | fi | |
270a909e | 12922 | |
698dcdb6 VZ |
12923 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12924 | echo "$ac_t""yes" 1>&6 | |
12925 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12926 | cat >> confdefs.h <<EOF | |
12927 | #define $ac_tr_func 1 | |
12928 | EOF | |
12929 | ||
12930 | else | |
12931 | echo "$ac_t""no" 1>&6 | |
270a909e VZ |
12932 | fi |
12933 | done | |
12934 | ||
1e487827 | 12935 | |
698dcdb6 VZ |
12936 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
12937 | for ac_func in fcntl flock | |
4f3c5f06 | 12938 | do |
698dcdb6 | 12939 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 12940 | echo "configure:12941: checking for $ac_func" >&5 |
698dcdb6 VZ |
12941 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12943 | else | |
12944 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 12945 | #line 12946 "configure" |
4f3c5f06 VZ |
12946 | #include "confdefs.h" |
12947 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12948 | which can conflict with char $ac_func(); below. */ |
4f3c5f06 VZ |
12949 | #include <assert.h> |
12950 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12951 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12952 | builtin and then its argument prototype would still apply. */ |
12953 | char $ac_func(); | |
12954 | ||
12955 | int main() { | |
4f3c5f06 VZ |
12956 | |
12957 | /* The GNU C library defines this for functions which it implements | |
12958 | to always fail with ENOSYS. Some functions are actually named | |
12959 | something starting with __ and the normal name is an alias. */ | |
12960 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12961 | choke me | |
12962 | #else | |
698dcdb6 | 12963 | $ac_func(); |
4f3c5f06 VZ |
12964 | #endif |
12965 | ||
698dcdb6 VZ |
12966 | ; return 0; } |
12967 | EOF | |
d4158b5d | 12968 | if { (eval echo configure:12969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12969 | rm -rf conftest* |
12970 | eval "ac_cv_func_$ac_func=yes" | |
12971 | else | |
12972 | echo "configure: failed program was:" >&5 | |
12973 | cat conftest.$ac_ext >&5 | |
12974 | rm -rf conftest* | |
12975 | eval "ac_cv_func_$ac_func=no" | |
12976 | fi | |
12977 | rm -f conftest* | |
12978 | fi | |
12979 | ||
12980 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12981 | echo "$ac_t""yes" 1>&6 | |
12982 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12983 | cat >> confdefs.h <<EOF | |
12984 | #define $ac_tr_func 1 | |
4f3c5f06 VZ |
12985 | EOF |
12986 | break | |
698dcdb6 VZ |
12987 | else |
12988 | echo "$ac_t""no" 1>&6 | |
4f3c5f06 VZ |
12989 | fi |
12990 | done | |
12991 | ||
698dcdb6 | 12992 | |
4f3c5f06 | 12993 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
698dcdb6 | 12994 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f3c5f06 VZ |
12995 | wxUSE_SNGLINST_CHECKER=no |
12996 | fi | |
12997 | fi | |
12998 | ||
270a909e VZ |
12999 | for ac_func in timegm |
13000 | do | |
698dcdb6 | 13001 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 13002 | echo "configure:13003: checking for $ac_func" >&5 |
698dcdb6 VZ |
13003 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13004 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13005 | else | |
13006 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 13007 | #line 13008 "configure" |
270a909e VZ |
13008 | #include "confdefs.h" |
13009 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13010 | which can conflict with char $ac_func(); below. */ |
270a909e VZ |
13011 | #include <assert.h> |
13012 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13013 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13014 | builtin and then its argument prototype would still apply. */ |
13015 | char $ac_func(); | |
13016 | ||
13017 | int main() { | |
270a909e VZ |
13018 | |
13019 | /* The GNU C library defines this for functions which it implements | |
13020 | to always fail with ENOSYS. Some functions are actually named | |
13021 | something starting with __ and the normal name is an alias. */ | |
13022 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13023 | choke me | |
13024 | #else | |
698dcdb6 | 13025 | $ac_func(); |
270a909e VZ |
13026 | #endif |
13027 | ||
698dcdb6 | 13028 | ; return 0; } |
270a909e | 13029 | EOF |
d4158b5d | 13030 | if { (eval echo configure:13031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13031 | rm -rf conftest* |
13032 | eval "ac_cv_func_$ac_func=yes" | |
13033 | else | |
13034 | echo "configure: failed program was:" >&5 | |
13035 | cat conftest.$ac_ext >&5 | |
13036 | rm -rf conftest* | |
13037 | eval "ac_cv_func_$ac_func=no" | |
13038 | fi | |
13039 | rm -f conftest* | |
13040 | fi | |
10f2d63a | 13041 | |
698dcdb6 VZ |
13042 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13043 | echo "$ac_t""yes" 1>&6 | |
13044 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13045 | cat >> confdefs.h <<EOF | |
13046 | #define $ac_tr_func 1 | |
13047 | EOF | |
13048 | ||
13049 | else | |
13050 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13051 | fi |
13052 | done | |
13053 | ||
698dcdb6 | 13054 | |
8fd0d89b VZ |
13055 | for ac_func in putenv setenv |
13056 | do | |
698dcdb6 | 13057 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 13058 | echo "configure:13059: checking for $ac_func" >&5 |
698dcdb6 VZ |
13059 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13060 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13061 | else | |
13062 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 13063 | #line 13064 "configure" |
8fd0d89b VZ |
13064 | #include "confdefs.h" |
13065 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13066 | which can conflict with char $ac_func(); below. */ |
8fd0d89b VZ |
13067 | #include <assert.h> |
13068 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13069 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13070 | builtin and then its argument prototype would still apply. */ |
13071 | char $ac_func(); | |
13072 | ||
13073 | int main() { | |
8fd0d89b VZ |
13074 | |
13075 | /* The GNU C library defines this for functions which it implements | |
13076 | to always fail with ENOSYS. Some functions are actually named | |
13077 | something starting with __ and the normal name is an alias. */ | |
13078 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13079 | choke me | |
13080 | #else | |
698dcdb6 | 13081 | $ac_func(); |
8fd0d89b VZ |
13082 | #endif |
13083 | ||
698dcdb6 VZ |
13084 | ; return 0; } |
13085 | EOF | |
d4158b5d | 13086 | if { (eval echo configure:13087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13087 | rm -rf conftest* |
13088 | eval "ac_cv_func_$ac_func=yes" | |
13089 | else | |
13090 | echo "configure: failed program was:" >&5 | |
13091 | cat conftest.$ac_ext >&5 | |
13092 | rm -rf conftest* | |
13093 | eval "ac_cv_func_$ac_func=no" | |
13094 | fi | |
13095 | rm -f conftest* | |
13096 | fi | |
13097 | ||
13098 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13099 | echo "$ac_t""yes" 1>&6 | |
13100 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13101 | cat >> confdefs.h <<EOF | |
13102 | #define $ac_tr_func 1 | |
8fd0d89b VZ |
13103 | EOF |
13104 | break | |
698dcdb6 VZ |
13105 | else |
13106 | echo "$ac_t""no" 1>&6 | |
8fd0d89b VZ |
13107 | fi |
13108 | done | |
13109 | ||
698dcdb6 | 13110 | |
b12915c1 VZ |
13111 | HAVE_SOME_SLEEP_FUNC=0 |
13112 | if test "$USE_BEOS" = 1; then | |
698dcdb6 | 13113 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
13114 | #define HAVE_SLEEP 1 |
13115 | EOF | |
13116 | ||
13117 | HAVE_SOME_SLEEP_FUNC=1 | |
13118 | fi | |
13119 | ||
b4085ce6 | 13120 | if test "$USE_MAC" = 1; then |
698dcdb6 | 13121 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
13122 | #define HAVE_USLEEP 1 |
13123 | EOF | |
13124 | ||
13125 | HAVE_SOME_SLEEP_FUNC=1 | |
13126 | fi | |
13127 | ||
b12915c1 VZ |
13128 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
13129 | POSIX4_LINK= | |
698dcdb6 | 13130 | for ac_func in nanosleep |
10f2d63a | 13131 | do |
698dcdb6 | 13132 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 13133 | echo "configure:13134: checking for $ac_func" >&5 |
698dcdb6 VZ |
13134 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13135 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13136 | else | |
13137 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 13138 | #line 13139 "configure" |
10f2d63a VZ |
13139 | #include "confdefs.h" |
13140 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13141 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13142 | #include <assert.h> |
13143 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13144 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13145 | builtin and then its argument prototype would still apply. */ |
13146 | char $ac_func(); | |
13147 | ||
13148 | int main() { | |
10f2d63a VZ |
13149 | |
13150 | /* The GNU C library defines this for functions which it implements | |
13151 | to always fail with ENOSYS. Some functions are actually named | |
13152 | something starting with __ and the normal name is an alias. */ | |
13153 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13154 | choke me | |
13155 | #else | |
698dcdb6 | 13156 | $ac_func(); |
10f2d63a VZ |
13157 | #endif |
13158 | ||
698dcdb6 VZ |
13159 | ; return 0; } |
13160 | EOF | |
d4158b5d | 13161 | if { (eval echo configure:13162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13162 | rm -rf conftest* |
13163 | eval "ac_cv_func_$ac_func=yes" | |
13164 | else | |
13165 | echo "configure: failed program was:" >&5 | |
13166 | cat conftest.$ac_ext >&5 | |
13167 | rm -rf conftest* | |
13168 | eval "ac_cv_func_$ac_func=no" | |
13169 | fi | |
13170 | rm -f conftest* | |
13171 | fi | |
13172 | ||
13173 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13174 | echo "$ac_t""yes" 1>&6 | |
13175 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13176 | cat >> confdefs.h <<EOF | |
13177 | #define $ac_tr_func 1 | |
13178 | EOF | |
13179 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13180 | #define HAVE_NANOSLEEP 1 |
13181 | EOF | |
13182 | ||
13183 | else | |
698dcdb6 VZ |
13184 | echo "$ac_t""no" 1>&6 |
13185 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
d4158b5d | 13186 | echo "configure:13187: checking for nanosleep in -lposix4" >&5 |
698dcdb6 VZ |
13187 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
13188 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13190 | else |
698dcdb6 | 13191 | ac_save_LIBS="$LIBS" |
10f2d63a | 13192 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13193 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 13194 | #line 13195 "configure" |
10f2d63a VZ |
13195 | #include "confdefs.h" |
13196 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13197 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13198 | builtin and then its argument prototype would still apply. */ |
13199 | char nanosleep(); | |
13200 | ||
13201 | int main() { | |
13202 | nanosleep() | |
13203 | ; return 0; } | |
13204 | EOF | |
d4158b5d | 13205 | if { (eval echo configure:13206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13206 | rm -rf conftest* |
13207 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13208 | else | |
13209 | echo "configure: failed program was:" >&5 | |
13210 | cat conftest.$ac_ext >&5 | |
13211 | rm -rf conftest* | |
13212 | eval "ac_cv_lib_$ac_lib_var=no" | |
13213 | fi | |
13214 | rm -f conftest* | |
13215 | LIBS="$ac_save_LIBS" | |
13216 | ||
13217 | fi | |
13218 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13219 | echo "$ac_t""yes" 1>&6 | |
13220 | ||
13221 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13222 | #define HAVE_NANOSLEEP 1 |
13223 | EOF | |
13224 | ||
b12915c1 | 13225 | POSIX4_LINK="-lposix4" |
698dcdb6 | 13226 | |
10f2d63a | 13227 | else |
698dcdb6 | 13228 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13229 | |
698dcdb6 | 13230 | for ac_func in usleep |
10f2d63a | 13231 | do |
698dcdb6 | 13232 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 13233 | echo "configure:13234: checking for $ac_func" >&5 |
698dcdb6 VZ |
13234 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13236 | else | |
13237 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 13238 | #line 13239 "configure" |
10f2d63a VZ |
13239 | #include "confdefs.h" |
13240 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13241 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13242 | #include <assert.h> |
13243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13244 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13245 | builtin and then its argument prototype would still apply. */ |
13246 | char $ac_func(); | |
13247 | ||
13248 | int main() { | |
10f2d63a VZ |
13249 | |
13250 | /* The GNU C library defines this for functions which it implements | |
13251 | to always fail with ENOSYS. Some functions are actually named | |
13252 | something starting with __ and the normal name is an alias. */ | |
13253 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13254 | choke me | |
13255 | #else | |
698dcdb6 | 13256 | $ac_func(); |
10f2d63a VZ |
13257 | #endif |
13258 | ||
698dcdb6 VZ |
13259 | ; return 0; } |
13260 | EOF | |
d4158b5d | 13261 | if { (eval echo configure:13262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13262 | rm -rf conftest* |
13263 | eval "ac_cv_func_$ac_func=yes" | |
13264 | else | |
13265 | echo "configure: failed program was:" >&5 | |
13266 | cat conftest.$ac_ext >&5 | |
13267 | rm -rf conftest* | |
13268 | eval "ac_cv_func_$ac_func=no" | |
13269 | fi | |
13270 | rm -f conftest* | |
13271 | fi | |
13272 | ||
13273 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13274 | echo "$ac_t""yes" 1>&6 | |
13275 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13276 | cat >> confdefs.h <<EOF | |
13277 | #define $ac_tr_func 1 | |
13278 | EOF | |
13279 | cat >> confdefs.h <<\EOF | |
b4085ce6 GD |
13280 | #define HAVE_USLEEP 1 |
13281 | EOF | |
13282 | ||
10f2d63a | 13283 | else |
698dcdb6 VZ |
13284 | echo "$ac_t""no" 1>&6 |
13285 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
13286 | ||
10f2d63a VZ |
13287 | fi |
13288 | done | |
13289 | ||
698dcdb6 VZ |
13290 | |
13291 | ||
10f2d63a VZ |
13292 | fi |
13293 | ||
698dcdb6 VZ |
13294 | |
13295 | ||
10f2d63a VZ |
13296 | fi |
13297 | done | |
13298 | ||
b12915c1 | 13299 | fi |
10f2d63a VZ |
13300 | |
13301 | for ac_func in uname gethostname | |
13302 | do | |
698dcdb6 | 13303 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 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 | |
d4158b5d | 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 VZ |
13330 | ; return 0; } |
13331 | EOF | |
d4158b5d | 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 | |
13343 | ||
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 | |
10f2d63a VZ |
13349 | EOF |
13350 | break | |
698dcdb6 VZ |
13351 | else |
13352 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13353 | fi |
13354 | done | |
13355 | ||
698dcdb6 VZ |
13356 | |
13357 | ||
13358 | ac_ext=C | |
13359 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098c7f9 | 13360 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13361 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13362 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13363 | cross_compiling=$ac_cv_prog_cxx_cross | |
13364 | ||
6098c7f9 | 13365 | |
10f2d63a VZ |
13366 | for ac_func in strtok_r |
13367 | do | |
698dcdb6 | 13368 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 13369 | echo "configure:13370: checking for $ac_func" >&5 |
698dcdb6 VZ |
13370 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13371 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13372 | else | |
13373 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 13374 | #line 13375 "configure" |
10f2d63a VZ |
13375 | #include "confdefs.h" |
13376 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13377 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13378 | #include <assert.h> |
13379 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
13380 | #ifdef __cplusplus |
13381 | extern "C" | |
13382 | #endif | |
10f2d63a | 13383 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13384 | builtin and then its argument prototype would still apply. */ |
13385 | char $ac_func(); | |
13386 | ||
13387 | int main() { | |
10f2d63a VZ |
13388 | |
13389 | /* The GNU C library defines this for functions which it implements | |
13390 | to always fail with ENOSYS. Some functions are actually named | |
13391 | something starting with __ and the normal name is an alias. */ | |
13392 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13393 | choke me | |
13394 | #else | |
698dcdb6 | 13395 | $ac_func(); |
10f2d63a VZ |
13396 | #endif |
13397 | ||
698dcdb6 | 13398 | ; return 0; } |
10f2d63a | 13399 | EOF |
d4158b5d | 13400 | if { (eval echo configure:13401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13401 | rm -rf conftest* |
13402 | eval "ac_cv_func_$ac_func=yes" | |
13403 | else | |
13404 | echo "configure: failed program was:" >&5 | |
13405 | cat conftest.$ac_ext >&5 | |
13406 | rm -rf conftest* | |
13407 | eval "ac_cv_func_$ac_func=no" | |
13408 | fi | |
13409 | rm -f conftest* | |
13410 | fi | |
10f2d63a | 13411 | |
698dcdb6 VZ |
13412 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13413 | echo "$ac_t""yes" 1>&6 | |
13414 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13415 | cat >> confdefs.h <<EOF | |
13416 | #define $ac_tr_func 1 | |
13417 | EOF | |
13418 | ||
13419 | else | |
13420 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13421 | fi |
13422 | done | |
13423 | ||
698dcdb6 | 13424 | |
6098c7f9 | 13425 | ac_ext=c |
698dcdb6 | 13426 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6098c7f9 | 13427 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13428 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13429 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13430 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 13431 | |
1e487827 | 13432 | |
698dcdb6 | 13433 | INET_LINK= |
10f2d63a VZ |
13434 | for ac_func in inet_addr |
13435 | do | |
698dcdb6 | 13436 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 13437 | echo "configure:13438: checking for $ac_func" >&5 |
698dcdb6 VZ |
13438 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13439 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13440 | else | |
13441 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 13442 | #line 13443 "configure" |
10f2d63a VZ |
13443 | #include "confdefs.h" |
13444 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 VZ |
13445 | which can conflict with char $ac_func(); below. */ |
13446 | #include <assert.h> | |
13447 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10f2d63a | 13448 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13449 | builtin and then its argument prototype would still apply. */ |
13450 | char $ac_func(); | |
13451 | ||
13452 | int main() { | |
10f2d63a VZ |
13453 | |
13454 | /* The GNU C library defines this for functions which it implements | |
13455 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
13456 | something starting with __ and the normal name is an alias. */ |
13457 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13458 | choke me | |
13459 | #else | |
698dcdb6 | 13460 | $ac_func(); |
1e487827 | 13461 | #endif |
703e0a69 | 13462 | |
698dcdb6 VZ |
13463 | ; return 0; } |
13464 | EOF | |
d4158b5d | 13465 | if { (eval echo configure:13466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13466 | rm -rf conftest* |
13467 | eval "ac_cv_func_$ac_func=yes" | |
13468 | else | |
13469 | echo "configure: failed program was:" >&5 | |
13470 | cat conftest.$ac_ext >&5 | |
13471 | rm -rf conftest* | |
13472 | eval "ac_cv_func_$ac_func=no" | |
13473 | fi | |
13474 | rm -f conftest* | |
13475 | fi | |
13476 | ||
13477 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13478 | echo "$ac_t""yes" 1>&6 | |
13479 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13480 | cat >> confdefs.h <<EOF | |
13481 | #define $ac_tr_func 1 | |
13482 | EOF | |
13483 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13484 | #define HAVE_INET_ADDR 1 |
13485 | EOF | |
13486 | ||
10f2d63a | 13487 | else |
698dcdb6 VZ |
13488 | echo "$ac_t""no" 1>&6 |
13489 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
d4158b5d | 13490 | echo "configure:13491: checking for inet_addr in -lnsl" >&5 |
698dcdb6 VZ |
13491 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
13492 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13493 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13494 | else |
698dcdb6 | 13495 | ac_save_LIBS="$LIBS" |
c63c7106 | 13496 | LIBS="-lnsl $LIBS" |
698dcdb6 | 13497 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 13498 | #line 13499 "configure" |
c63c7106 VZ |
13499 | #include "confdefs.h" |
13500 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13501 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13502 | builtin and then its argument prototype would still apply. */ |
13503 | char inet_addr(); | |
13504 | ||
13505 | int main() { | |
13506 | inet_addr() | |
13507 | ; return 0; } | |
13508 | EOF | |
d4158b5d | 13509 | if { (eval echo configure:13510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13510 | rm -rf conftest* |
13511 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13512 | else | |
13513 | echo "configure: failed program was:" >&5 | |
13514 | cat conftest.$ac_ext >&5 | |
13515 | rm -rf conftest* | |
13516 | eval "ac_cv_lib_$ac_lib_var=no" | |
13517 | fi | |
13518 | rm -f conftest* | |
13519 | LIBS="$ac_save_LIBS" | |
13520 | ||
13521 | fi | |
13522 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13523 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
13524 | INET_LINK="nsl" |
13525 | else | |
698dcdb6 VZ |
13526 | echo "$ac_t""no" 1>&6 |
13527 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
d4158b5d | 13528 | echo "configure:13529: checking for inet_addr in -lresolv" >&5 |
698dcdb6 VZ |
13529 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
13530 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13531 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13532 | else |
698dcdb6 | 13533 | ac_save_LIBS="$LIBS" |
c63c7106 | 13534 | LIBS="-lresolv $LIBS" |
698dcdb6 | 13535 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 13536 | #line 13537 "configure" |
c63c7106 VZ |
13537 | #include "confdefs.h" |
13538 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13539 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13540 | builtin and then its argument prototype would still apply. */ |
13541 | char inet_addr(); | |
13542 | ||
13543 | int main() { | |
13544 | inet_addr() | |
13545 | ; return 0; } | |
13546 | EOF | |
d4158b5d | 13547 | if { (eval echo configure:13548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13548 | rm -rf conftest* |
13549 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13550 | else | |
13551 | echo "configure: failed program was:" >&5 | |
13552 | cat conftest.$ac_ext >&5 | |
13553 | rm -rf conftest* | |
13554 | eval "ac_cv_lib_$ac_lib_var=no" | |
13555 | fi | |
13556 | rm -f conftest* | |
13557 | LIBS="$ac_save_LIBS" | |
c63c7106 | 13558 | |
6232543b | 13559 | fi |
698dcdb6 VZ |
13560 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13561 | echo "$ac_t""yes" 1>&6 | |
13562 | INET_LINK="resolv" | |
13563 | ||
13564 | else | |
13565 | echo "$ac_t""no" 1>&6 | |
13566 | fi | |
c63c7106 | 13567 | |
698dcdb6 | 13568 | |
1e487827 | 13569 | fi |
703e0a69 | 13570 | |
698dcdb6 VZ |
13571 | |
13572 | ||
10f2d63a VZ |
13573 | fi |
13574 | done | |
13575 | ||
698dcdb6 | 13576 | |
10f2d63a VZ |
13577 | for ac_func in inet_aton |
13578 | do | |
698dcdb6 | 13579 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 13580 | echo "configure:13581: checking for $ac_func" >&5 |
698dcdb6 VZ |
13581 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13582 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13583 | else | |
13584 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 13585 | #line 13586 "configure" |
10f2d63a VZ |
13586 | #include "confdefs.h" |
13587 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13588 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13589 | #include <assert.h> |
13590 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13591 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13592 | builtin and then its argument prototype would still apply. */ |
13593 | char $ac_func(); | |
13594 | ||
13595 | int main() { | |
10f2d63a VZ |
13596 | |
13597 | /* The GNU C library defines this for functions which it implements | |
13598 | to always fail with ENOSYS. Some functions are actually named | |
13599 | something starting with __ and the normal name is an alias. */ | |
13600 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13601 | choke me | |
13602 | #else | |
698dcdb6 | 13603 | $ac_func(); |
10f2d63a VZ |
13604 | #endif |
13605 | ||
698dcdb6 VZ |
13606 | ; return 0; } |
13607 | EOF | |
d4158b5d | 13608 | if { (eval echo configure:13609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13609 | rm -rf conftest* |
13610 | eval "ac_cv_func_$ac_func=yes" | |
13611 | else | |
13612 | echo "configure: failed program was:" >&5 | |
13613 | cat conftest.$ac_ext >&5 | |
13614 | rm -rf conftest* | |
13615 | eval "ac_cv_func_$ac_func=no" | |
13616 | fi | |
13617 | rm -f conftest* | |
13618 | fi | |
13619 | ||
13620 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13621 | echo "$ac_t""yes" 1>&6 | |
13622 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13623 | cat >> confdefs.h <<EOF | |
13624 | #define $ac_tr_func 1 | |
13625 | EOF | |
13626 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13627 | #define HAVE_INET_ATON 1 |
13628 | EOF | |
13629 | ||
10f2d63a | 13630 | else |
698dcdb6 VZ |
13631 | echo "$ac_t""no" 1>&6 |
13632 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
d4158b5d | 13633 | echo "configure:13634: checking for inet_aton in -l$INET_LINK" >&5 |
698dcdb6 VZ |
13634 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
13635 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13636 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13637 | else |
698dcdb6 | 13638 | ac_save_LIBS="$LIBS" |
c63c7106 | 13639 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 13640 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 13641 | #line 13642 "configure" |
10f2d63a VZ |
13642 | #include "confdefs.h" |
13643 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13644 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13645 | builtin and then its argument prototype would still apply. */ |
13646 | char inet_aton(); | |
13647 | ||
13648 | int main() { | |
13649 | inet_aton() | |
13650 | ; return 0; } | |
13651 | EOF | |
d4158b5d | 13652 | if { (eval echo configure:13653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13653 | rm -rf conftest* |
13654 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13655 | else | |
13656 | echo "configure: failed program was:" >&5 | |
13657 | cat conftest.$ac_ext >&5 | |
13658 | rm -rf conftest* | |
13659 | eval "ac_cv_lib_$ac_lib_var=no" | |
13660 | fi | |
13661 | rm -f conftest* | |
13662 | LIBS="$ac_save_LIBS" | |
13663 | ||
13664 | fi | |
13665 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13666 | echo "$ac_t""yes" 1>&6 | |
13667 | cat >> confdefs.h <<\EOF | |
c63c7106 | 13668 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
13669 | EOF |
13670 | ||
698dcdb6 VZ |
13671 | else |
13672 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13673 | fi |
13674 | ||
698dcdb6 | 13675 | |
c63c7106 VZ |
13676 | fi |
13677 | done | |
13678 | ||
698dcdb6 | 13679 | |
c63c7106 | 13680 | if test "x$INET_LINK" != "x"; then |
698dcdb6 | 13681 | cat >> confdefs.h <<\EOF |
c63c7106 VZ |
13682 | #define HAVE_INET_ADDR 1 |
13683 | EOF | |
13684 | ||
13685 | INET_LINK="-l$INET_LINK" | |
13686 | fi | |
10f2d63a VZ |
13687 | |
13688 | fi | |
13689 | ||
698dcdb6 VZ |
13690 | |
13691 | cat > confcache <<\EOF | |
10f2d63a VZ |
13692 | # This file is a shell script that caches the results of configure |
13693 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
13694 | # scripts and configure runs. It is not useful on other systems. |
13695 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 13696 | # |
698dcdb6 VZ |
13697 | # By default, configure uses ./config.cache as the cache file, |
13698 | # creating it if it does not exist already. You can give configure | |
13699 | # the --cache-file=FILE option to use a different cache file; that is | |
13700 | # what configure does when it calls configure scripts in | |
13701 | # subdirectories, so they share the cache. | |
13702 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
13703 | # config.status only pays attention to the cache file if you give it the | |
13704 | # --recheck option to rerun configure. | |
10f2d63a | 13705 | # |
698dcdb6 | 13706 | EOF |
10f2d63a VZ |
13707 | # The following way of writing the cache mishandles newlines in values, |
13708 | # but we know of no workaround that is simple, portable, and efficient. | |
13709 | # So, don't put newlines in cache variables' values. | |
13710 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13711 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
13712 | (set) 2>&1 | |
13713 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13714 | *ac_space=\ *) | |
13715 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
13716 | # turns \\\\ into \\, and sed turns \\ into \). | |
13717 | sed -n \ | |
13718 | -e "s/'/'\\\\''/g" \ | |
13719 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
13720 | ;; | |
13721 | *) | |
13722 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13723 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
13724 | ;; | |
13725 | esac >> confcache | |
13726 | if cmp -s $cache_file confcache; then | |
13727 | : | |
13728 | else | |
10f2d63a | 13729 | if test -w $cache_file; then |
698dcdb6 VZ |
13730 | echo "updating cache $cache_file" |
13731 | cat confcache > $cache_file | |
10f2d63a VZ |
13732 | else |
13733 | echo "not updating unwritable cache $cache_file" | |
13734 | fi | |
13735 | fi | |
13736 | rm -f confcache | |
13737 | ||
698dcdb6 VZ |
13738 | |
13739 | ||
b089607b | 13740 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 13741 | |
698dcdb6 | 13742 | |
10f2d63a VZ |
13743 | THREADS_LINK="" |
13744 | THREADS_OBJ="" | |
13745 | ||
13746 | if test "$wxUSE_THREADS" = "yes" ; then | |
13747 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 13748 | echo "configure: warning: Threads are not supported under WINE" 1>&2 |
10f2d63a | 13749 | wxUSE_THREADS="no" |
b12915c1 | 13750 | elif test "$USE_BEOS" = 1; then |
698dcdb6 | 13751 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 |
b12915c1 | 13752 | wxUSE_THREADS="no" |
10f2d63a VZ |
13753 | fi |
13754 | fi | |
13755 | ||
13756 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13757 | |
186837b0 | 13758 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
13759 | THREADS_LIB=pthreads |
13760 | else | |
13761 | THREADS_LIB=pthread | |
13762 | fi | |
13763 | ||
698dcdb6 | 13764 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
d4158b5d | 13765 | echo "configure:13766: checking for pthread_create in -l$THREADS_LIB" >&5 |
698dcdb6 VZ |
13766 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
13767 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13769 | else |
698dcdb6 | 13770 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 13771 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 13772 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 13773 | #line 13774 "configure" |
10f2d63a VZ |
13774 | #include "confdefs.h" |
13775 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13776 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13777 | builtin and then its argument prototype would still apply. */ |
13778 | char pthread_create(); | |
13779 | ||
13780 | int main() { | |
13781 | pthread_create() | |
13782 | ; return 0; } | |
13783 | EOF | |
d4158b5d | 13784 | if { (eval echo configure:13785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13785 | rm -rf conftest* |
13786 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13787 | else | |
13788 | echo "configure: failed program was:" >&5 | |
13789 | cat conftest.$ac_ext >&5 | |
13790 | rm -rf conftest* | |
13791 | eval "ac_cv_lib_$ac_lib_var=no" | |
13792 | fi | |
13793 | rm -f conftest* | |
13794 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13795 | |
698dcdb6 VZ |
13796 | fi |
13797 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13798 | echo "$ac_t""yes" 1>&6 | |
13799 | ||
10f2d63a | 13800 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 13801 | THREADS_LINK=$THREADS_LIB |
698dcdb6 | 13802 | |
10f2d63a | 13803 | else |
698dcdb6 | 13804 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13805 | |
698dcdb6 | 13806 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
d4158b5d | 13807 | echo "configure:13808: checking for pthread_create in -lc_r" >&5 |
698dcdb6 VZ |
13808 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
13809 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13810 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13811 | else |
698dcdb6 | 13812 | ac_save_LIBS="$LIBS" |
10f2d63a | 13813 | LIBS="-lc_r $LIBS" |
698dcdb6 | 13814 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 13815 | #line 13816 "configure" |
10f2d63a VZ |
13816 | #include "confdefs.h" |
13817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13818 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13819 | builtin and then its argument prototype would still apply. */ |
13820 | char pthread_create(); | |
13821 | ||
13822 | int main() { | |
13823 | pthread_create() | |
13824 | ; return 0; } | |
13825 | EOF | |
d4158b5d | 13826 | if { (eval echo configure:13827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13827 | rm -rf conftest* |
13828 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13829 | else | |
13830 | echo "configure: failed program was:" >&5 | |
13831 | cat conftest.$ac_ext >&5 | |
13832 | rm -rf conftest* | |
13833 | eval "ac_cv_lib_$ac_lib_var=no" | |
13834 | fi | |
13835 | rm -f conftest* | |
13836 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13837 | |
698dcdb6 VZ |
13838 | fi |
13839 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13840 | echo "$ac_t""yes" 1>&6 | |
13841 | ||
10f2d63a VZ |
13842 | THREADS_OBJ="threadpsx.lo" |
13843 | THREADS_LINK="c_r" | |
698dcdb6 | 13844 | |
10f2d63a | 13845 | else |
698dcdb6 | 13846 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13847 | |
698dcdb6 VZ |
13848 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
13849 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
d4158b5d | 13850 | echo "configure:13851: checking for sys/prctl.h" >&5 |
698dcdb6 VZ |
13851 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13852 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13853 | else |
698dcdb6 | 13854 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 13855 | #line 13856 "configure" |
10f2d63a VZ |
13856 | #include "confdefs.h" |
13857 | #include <sys/prctl.h> | |
698dcdb6 VZ |
13858 | EOF |
13859 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 13860 | { (eval echo configure:13861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13861 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13862 | if test -z "$ac_err"; then | |
13863 | rm -rf conftest* | |
13864 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13865 | else |
698dcdb6 VZ |
13866 | echo "$ac_err" >&5 |
13867 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13868 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13869 | rm -rf conftest* |
13870 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13871 | fi |
698dcdb6 | 13872 | rm -f conftest* |
10f2d63a | 13873 | fi |
698dcdb6 VZ |
13874 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13875 | echo "$ac_t""yes" 1>&6 | |
13876 | ||
1f8ae82f | 13877 | THREADS_OBJ="threadsgi.lo" |
698dcdb6 VZ |
13878 | |
13879 | else | |
13880 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13881 | fi |
13882 | ||
698dcdb6 | 13883 | |
6232543b | 13884 | fi |
10f2d63a | 13885 | |
698dcdb6 | 13886 | |
1e487827 | 13887 | fi |
703e0a69 | 13888 | |
698dcdb6 | 13889 | |
10f2d63a VZ |
13890 | if test -z "$THREADS_OBJ" ; then |
13891 | wxUSE_THREADS=no | |
698dcdb6 | 13892 | echo "configure: warning: No thread support on this system" 1>&2 |
10f2d63a VZ |
13893 | fi |
13894 | fi | |
13895 | ||
13896 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13897 | for ac_func in thr_setconcurrency |
70846f0a | 13898 | do |
698dcdb6 | 13899 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 13900 | echo "configure:13901: checking for $ac_func" >&5 |
698dcdb6 VZ |
13901 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13902 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13903 | else | |
13904 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 13905 | #line 13906 "configure" |
70846f0a VZ |
13906 | #include "confdefs.h" |
13907 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13908 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
13909 | #include <assert.h> |
13910 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13911 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13912 | builtin and then its argument prototype would still apply. */ |
13913 | char $ac_func(); | |
13914 | ||
13915 | int main() { | |
70846f0a VZ |
13916 | |
13917 | /* The GNU C library defines this for functions which it implements | |
13918 | to always fail with ENOSYS. Some functions are actually named | |
13919 | something starting with __ and the normal name is an alias. */ | |
13920 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13921 | choke me | |
13922 | #else | |
698dcdb6 | 13923 | $ac_func(); |
70846f0a VZ |
13924 | #endif |
13925 | ||
698dcdb6 | 13926 | ; return 0; } |
70846f0a | 13927 | EOF |
d4158b5d | 13928 | if { (eval echo configure:13929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13929 | rm -rf conftest* |
13930 | eval "ac_cv_func_$ac_func=yes" | |
13931 | else | |
13932 | echo "configure: failed program was:" >&5 | |
13933 | cat conftest.$ac_ext >&5 | |
13934 | rm -rf conftest* | |
13935 | eval "ac_cv_func_$ac_func=no" | |
13936 | fi | |
13937 | rm -f conftest* | |
13938 | fi | |
70846f0a | 13939 | |
698dcdb6 VZ |
13940 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13941 | echo "$ac_t""yes" 1>&6 | |
13942 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13943 | cat >> confdefs.h <<EOF | |
13944 | #define $ac_tr_func 1 | |
13945 | EOF | |
13946 | ||
13947 | else | |
13948 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
13949 | fi |
13950 | done | |
13951 | ||
698dcdb6 VZ |
13952 | |
13953 | ||
13954 | for ac_hdr in sched.h | |
10f2d63a | 13955 | do |
698dcdb6 VZ |
13956 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13957 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d4158b5d | 13958 | echo "configure:13959: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13959 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13960 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13961 | else | |
13962 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 13963 | #line 13964 "configure" |
10f2d63a | 13964 | #include "confdefs.h" |
698dcdb6 VZ |
13965 | #include <$ac_hdr> |
13966 | EOF | |
13967 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 13968 | { (eval echo configure:13969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13969 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13970 | if test -z "$ac_err"; then | |
13971 | rm -rf conftest* | |
13972 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13973 | else |
698dcdb6 VZ |
13974 | echo "$ac_err" >&5 |
13975 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13976 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13977 | rm -rf conftest* |
13978 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13979 | fi |
698dcdb6 | 13980 | rm -f conftest* |
10f2d63a | 13981 | fi |
698dcdb6 VZ |
13982 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13983 | echo "$ac_t""yes" 1>&6 | |
13984 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13985 | cat >> confdefs.h <<EOF | |
13986 | #define $ac_tr_hdr 1 | |
10f2d63a | 13987 | EOF |
698dcdb6 VZ |
13988 | |
13989 | else | |
13990 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13991 | fi |
13992 | done | |
13993 | ||
698dcdb6 VZ |
13994 | |
13995 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d4158b5d | 13996 | echo "configure:13997: checking for sched_yield in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13997 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
13998 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13999 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14000 | else |
698dcdb6 | 14001 | ac_save_LIBS="$LIBS" |
10f2d63a | 14002 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14003 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 14004 | #line 14005 "configure" |
10f2d63a VZ |
14005 | #include "confdefs.h" |
14006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14007 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14008 | builtin and then its argument prototype would still apply. */ |
14009 | char sched_yield(); | |
14010 | ||
14011 | int main() { | |
14012 | sched_yield() | |
14013 | ; return 0; } | |
14014 | EOF | |
d4158b5d | 14015 | if { (eval echo configure:14016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14016 | rm -rf conftest* |
14017 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14018 | else | |
14019 | echo "configure: failed program was:" >&5 | |
14020 | cat conftest.$ac_ext >&5 | |
14021 | rm -rf conftest* | |
14022 | eval "ac_cv_lib_$ac_lib_var=no" | |
14023 | fi | |
14024 | rm -f conftest* | |
14025 | LIBS="$ac_save_LIBS" | |
14026 | ||
14027 | fi | |
14028 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14029 | echo "$ac_t""yes" 1>&6 | |
14030 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14031 | #define HAVE_SCHED_YIELD 1 |
14032 | EOF | |
14033 | ||
14034 | else | |
698dcdb6 VZ |
14035 | echo "$ac_t""no" 1>&6 |
14036 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
d4158b5d | 14037 | echo "configure:14038: checking for sched_yield in -lposix4" >&5 |
698dcdb6 VZ |
14038 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
14039 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14040 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14041 | else |
698dcdb6 | 14042 | ac_save_LIBS="$LIBS" |
1e487827 | 14043 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14044 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 14045 | #line 14046 "configure" |
10f2d63a VZ |
14046 | #include "confdefs.h" |
14047 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14048 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14049 | builtin and then its argument prototype would still apply. */ |
14050 | char sched_yield(); | |
14051 | ||
14052 | int main() { | |
14053 | sched_yield() | |
14054 | ; return 0; } | |
14055 | EOF | |
d4158b5d | 14056 | if { (eval echo configure:14057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14057 | rm -rf conftest* |
14058 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14059 | else | |
14060 | echo "configure: failed program was:" >&5 | |
14061 | cat conftest.$ac_ext >&5 | |
14062 | rm -rf conftest* | |
14063 | eval "ac_cv_lib_$ac_lib_var=no" | |
14064 | fi | |
14065 | rm -f conftest* | |
14066 | LIBS="$ac_save_LIBS" | |
14067 | ||
14068 | fi | |
14069 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14070 | echo "$ac_t""yes" 1>&6 | |
14071 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14072 | #define HAVE_SCHED_YIELD 1 |
14073 | EOF | |
14074 | POSIX4_LINK="-lposix4" | |
14075 | else | |
698dcdb6 VZ |
14076 | echo "$ac_t""no" 1>&6 |
14077 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
14078 | ||
6232543b | 14079 | fi |
10f2d63a | 14080 | |
698dcdb6 | 14081 | |
1e487827 | 14082 | fi |
703e0a69 | 14083 | |
698dcdb6 | 14084 | |
f6bcfd97 | 14085 | HAVE_PRIOR_FUNCS=0 |
698dcdb6 | 14086 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 |
d4158b5d | 14087 | echo "configure:14088: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14088 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
14089 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14090 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14091 | else |
698dcdb6 | 14092 | ac_save_LIBS="$LIBS" |
10f2d63a | 14093 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14094 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 14095 | #line 14096 "configure" |
10f2d63a VZ |
14096 | #include "confdefs.h" |
14097 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14098 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14099 | builtin and then its argument prototype would still apply. */ |
14100 | char pthread_attr_getschedpolicy(); | |
14101 | ||
14102 | int main() { | |
14103 | pthread_attr_getschedpolicy() | |
14104 | ; return 0; } | |
14105 | EOF | |
d4158b5d | 14106 | if { (eval echo configure:14107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14107 | rm -rf conftest* |
14108 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14109 | else | |
14110 | echo "configure: failed program was:" >&5 | |
14111 | cat conftest.$ac_ext >&5 | |
14112 | rm -rf conftest* | |
14113 | eval "ac_cv_lib_$ac_lib_var=no" | |
14114 | fi | |
14115 | rm -f conftest* | |
14116 | LIBS="$ac_save_LIBS" | |
14117 | ||
14118 | fi | |
14119 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14120 | echo "$ac_t""yes" 1>&6 | |
14121 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d4158b5d | 14122 | echo "configure:14123: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14123 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
14124 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14125 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14126 | else | |
14127 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14128 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14129 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 14130 | #line 14131 "configure" |
f6bcfd97 BP |
14131 | #include "confdefs.h" |
14132 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14133 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14134 | builtin and then its argument prototype would still apply. */ |
14135 | char pthread_attr_setschedparam(); | |
14136 | ||
14137 | int main() { | |
14138 | pthread_attr_setschedparam() | |
14139 | ; return 0; } | |
14140 | EOF | |
d4158b5d | 14141 | if { (eval echo configure:14142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14142 | rm -rf conftest* |
14143 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14144 | else | |
14145 | echo "configure: failed program was:" >&5 | |
14146 | cat conftest.$ac_ext >&5 | |
14147 | rm -rf conftest* | |
14148 | eval "ac_cv_lib_$ac_lib_var=no" | |
14149 | fi | |
14150 | rm -f conftest* | |
14151 | LIBS="$ac_save_LIBS" | |
14152 | ||
14153 | fi | |
14154 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14155 | echo "$ac_t""yes" 1>&6 | |
14156 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d4158b5d | 14157 | echo "configure:14158: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14158 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14159 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14160 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14161 | else | |
14162 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14163 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14164 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 14165 | #line 14166 "configure" |
f6bcfd97 BP |
14166 | #include "confdefs.h" |
14167 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14168 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14169 | builtin and then its argument prototype would still apply. */ |
14170 | char sched_get_priority_max(); | |
14171 | ||
14172 | int main() { | |
14173 | sched_get_priority_max() | |
14174 | ; return 0; } | |
14175 | EOF | |
d4158b5d | 14176 | if { (eval echo configure:14177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14177 | rm -rf conftest* |
14178 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14179 | else | |
14180 | echo "configure: failed program was:" >&5 | |
14181 | cat conftest.$ac_ext >&5 | |
14182 | rm -rf conftest* | |
14183 | eval "ac_cv_lib_$ac_lib_var=no" | |
14184 | fi | |
14185 | rm -f conftest* | |
14186 | LIBS="$ac_save_LIBS" | |
14187 | ||
14188 | fi | |
14189 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14190 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 14191 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 14192 | else |
698dcdb6 VZ |
14193 | echo "$ac_t""no" 1>&6 |
14194 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
d4158b5d | 14195 | echo "configure:14196: checking for sched_get_priority_max in -lposix4" >&5 |
698dcdb6 VZ |
14196 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14197 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14198 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14199 | else |
698dcdb6 | 14200 | ac_save_LIBS="$LIBS" |
1e487827 | 14201 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14202 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 14203 | #line 14204 "configure" |
10f2d63a | 14204 | #include "confdefs.h" |
6232543b | 14205 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 14206 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14207 | builtin and then its argument prototype would still apply. */ |
14208 | char sched_get_priority_max(); | |
14209 | ||
14210 | int main() { | |
14211 | sched_get_priority_max() | |
14212 | ; return 0; } | |
14213 | EOF | |
d4158b5d | 14214 | if { (eval echo configure:14215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14215 | rm -rf conftest* |
14216 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14217 | else | |
14218 | echo "configure: failed program was:" >&5 | |
14219 | cat conftest.$ac_ext >&5 | |
14220 | rm -rf conftest* | |
14221 | eval "ac_cv_lib_$ac_lib_var=no" | |
14222 | fi | |
14223 | rm -f conftest* | |
14224 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14225 | |
698dcdb6 VZ |
14226 | fi |
14227 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14228 | echo "$ac_t""yes" 1>&6 | |
14229 | ||
f6bcfd97 BP |
14230 | HAVE_PRIOR_FUNCS=1 |
14231 | POSIX4_LINK="-lposix4" | |
698dcdb6 VZ |
14232 | |
14233 | else | |
14234 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14235 | fi |
14236 | ||
698dcdb6 | 14237 | |
10f2d63a VZ |
14238 | fi |
14239 | ||
698dcdb6 VZ |
14240 | |
14241 | else | |
14242 | echo "$ac_t""no" 1>&6 | |
6232543b | 14243 | fi |
10f2d63a | 14244 | |
698dcdb6 VZ |
14245 | |
14246 | else | |
14247 | echo "$ac_t""no" 1>&6 | |
1e487827 | 14248 | fi |
703e0a69 | 14249 | |
698dcdb6 | 14250 | |
f6bcfd97 | 14251 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
698dcdb6 | 14252 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
14253 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
14254 | EOF | |
14255 | ||
14256 | else | |
698dcdb6 | 14257 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
f6bcfd97 BP |
14258 | fi |
14259 | ||
698dcdb6 | 14260 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
d4158b5d | 14261 | echo "configure:14262: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14262 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
14263 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14265 | else |
698dcdb6 | 14266 | ac_save_LIBS="$LIBS" |
10f2d63a | 14267 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14268 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 14269 | #line 14270 "configure" |
10f2d63a VZ |
14270 | #include "confdefs.h" |
14271 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14272 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14273 | builtin and then its argument prototype would still apply. */ |
14274 | char pthread_cancel(); | |
14275 | ||
14276 | int main() { | |
14277 | pthread_cancel() | |
14278 | ; return 0; } | |
14279 | EOF | |
d4158b5d | 14280 | if { (eval echo configure:14281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14281 | rm -rf conftest* |
14282 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14283 | else | |
14284 | echo "configure: failed program was:" >&5 | |
14285 | cat conftest.$ac_ext >&5 | |
14286 | rm -rf conftest* | |
14287 | eval "ac_cv_lib_$ac_lib_var=no" | |
14288 | fi | |
14289 | rm -f conftest* | |
14290 | LIBS="$ac_save_LIBS" | |
14291 | ||
14292 | fi | |
14293 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14294 | echo "$ac_t""yes" 1>&6 | |
14295 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14296 | #define HAVE_PTHREAD_CANCEL 1 |
14297 | EOF | |
14298 | ||
14299 | else | |
698dcdb6 VZ |
14300 | echo "$ac_t""no" 1>&6 |
14301 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10f2d63a VZ |
14302 | fi |
14303 | ||
1e487827 | 14304 | |
698dcdb6 | 14305 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
d4158b5d | 14306 | echo "configure:14307: checking for pthread_cleanup_push/pop" >&5 |
698dcdb6 VZ |
14307 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
14308 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14309 | else | |
14310 | ||
14311 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 14312 | #line 14313 "configure" |
10f2d63a VZ |
14313 | #include "confdefs.h" |
14314 | #include <pthread.h> | |
698dcdb6 | 14315 | int main() { |
10f2d63a VZ |
14316 | |
14317 | pthread_cleanup_push(NULL, NULL); | |
14318 | pthread_cleanup_pop(0); | |
698dcdb6 VZ |
14319 | |
14320 | ; return 0; } | |
14321 | EOF | |
d4158b5d | 14322 | if { (eval echo configure:14323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14323 | rm -rf conftest* |
14324 | ||
10f2d63a | 14325 | wx_cv_func_pthread_cleanup_push=yes |
698dcdb6 | 14326 | |
10f2d63a | 14327 | else |
698dcdb6 VZ |
14328 | echo "configure: failed program was:" >&5 |
14329 | cat conftest.$ac_ext >&5 | |
14330 | rm -rf conftest* | |
14331 | ||
10f2d63a | 14332 | wx_cv_func_pthread_cleanup_push=no |
698dcdb6 | 14333 | |
6232543b | 14334 | fi |
698dcdb6 VZ |
14335 | rm -f conftest* |
14336 | ||
1e487827 | 14337 | fi |
698dcdb6 VZ |
14338 | |
14339 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10f2d63a | 14340 | |
d9b9876f | 14341 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
698dcdb6 | 14342 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14343 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
14344 | EOF | |
14345 | ||
14346 | fi | |
14347 | ||
698dcdb6 VZ |
14348 | |
14349 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
d4158b5d | 14350 | echo "configure:14351: checking for pthread_mutexattr_t" >&5 |
698dcdb6 VZ |
14351 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
14352 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d9b9876f | 14353 | else |
698dcdb6 VZ |
14354 | |
14355 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 14356 | #line 14357 "configure" |
d9b9876f VZ |
14357 | #include "confdefs.h" |
14358 | #include <pthread.h> | |
698dcdb6 | 14359 | int main() { |
d9b9876f VZ |
14360 | |
14361 | pthread_mutexattr_t attr; | |
14362 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
698dcdb6 VZ |
14363 | |
14364 | ; return 0; } | |
14365 | EOF | |
d4158b5d | 14366 | if { (eval echo configure:14367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14367 | rm -rf conftest* |
14368 | ||
d9b9876f | 14369 | wx_cv_type_pthread_mutexattr_t=yes |
698dcdb6 | 14370 | |
d9b9876f | 14371 | else |
698dcdb6 VZ |
14372 | echo "configure: failed program was:" >&5 |
14373 | cat conftest.$ac_ext >&5 | |
14374 | rm -rf conftest* | |
14375 | ||
d9b9876f | 14376 | wx_cv_type_pthread_mutexattr_t=no |
698dcdb6 VZ |
14377 | |
14378 | ||
6232543b | 14379 | fi |
698dcdb6 VZ |
14380 | rm -f conftest* |
14381 | ||
1e487827 | 14382 | fi |
698dcdb6 VZ |
14383 | |
14384 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
d9b9876f VZ |
14385 | |
14386 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
698dcdb6 | 14387 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14388 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
14389 | EOF | |
14390 | ||
14391 | else | |
698dcdb6 | 14392 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
d4158b5d | 14393 | echo "configure:14394: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
698dcdb6 VZ |
14394 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
14395 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14396 | else | |
14397 | ||
14398 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 14399 | #line 14400 "configure" |
d9b9876f VZ |
14400 | #include "confdefs.h" |
14401 | #include <pthread.h> | |
698dcdb6 | 14402 | int main() { |
d9b9876f VZ |
14403 | |
14404 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
698dcdb6 VZ |
14405 | |
14406 | ; return 0; } | |
14407 | EOF | |
d4158b5d | 14408 | if { (eval echo configure:14409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14409 | rm -rf conftest* |
14410 | ||
d9b9876f | 14411 | wx_cv_type_pthread_rec_mutex_init=yes |
698dcdb6 | 14412 | |
d9b9876f | 14413 | else |
698dcdb6 VZ |
14414 | echo "configure: failed program was:" >&5 |
14415 | cat conftest.$ac_ext >&5 | |
14416 | rm -rf conftest* | |
14417 | ||
d9b9876f | 14418 | wx_cv_type_pthread_rec_mutex_init=no |
698dcdb6 VZ |
14419 | |
14420 | ||
6232543b | 14421 | fi |
698dcdb6 VZ |
14422 | rm -f conftest* |
14423 | ||
1e487827 | 14424 | fi |
698dcdb6 VZ |
14425 | |
14426 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
3765e936 | 14427 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
698dcdb6 | 14428 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14429 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
14430 | EOF | |
14431 | ||
14432 | else | |
698dcdb6 | 14433 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
d9b9876f VZ |
14434 | fi |
14435 | fi | |
14436 | ||
10f2d63a | 14437 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
14438 | |
14439 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
14440 | CFLAGS="${CFLAGS} -mt" | |
14441 | CXXFLAGS="${CXXFLAGS} -mt" | |
14442 | LDFLAGS="${LDFLAGS} -mt" | |
14443 | fi | |
10f2d63a VZ |
14444 | fi |
14445 | ||
14446 | fi | |
14447 | ||
14448 | if test "$wxUSE_THREADS" = "yes"; then | |
698dcdb6 | 14449 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14450 | #define wxUSE_THREADS 1 |
14451 | EOF | |
14452 | ||
698dcdb6 | 14453 | |
2c6025bc | 14454 | if test "$wxUSE_MAC" = "0"; then |
10f2d63a | 14455 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
14456 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
14457 | fi | |
10f2d63a VZ |
14458 | |
14459 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
14460 | else | |
14461 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
698dcdb6 | 14462 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
d4158b5d | 14463 | echo "configure:14464: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
14464 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
14465 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
14466 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
698dcdb6 | 14467 | echo "$ac_t""yes" 1>&6 |
ab9b9eab | 14468 | else |
698dcdb6 | 14469 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
14470 | fi |
14471 | fi | |
14472 | fi | |
14473 | ||
6f72b082 | 14474 | if test "$WXGTK20" = 1 ; then |
698dcdb6 | 14475 | cat >> confdefs.h <<EOF |
6f72b082 | 14476 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
14477 | EOF |
14478 | ||
14479 | WXGTK12=1 | |
14480 | fi | |
14481 | ||
10f2d63a | 14482 | if test "$WXGTK12" = 1 ; then |
698dcdb6 | 14483 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
14484 | #define __WXGTK12__ $WXGTK12 |
14485 | EOF | |
14486 | ||
14487 | fi | |
14488 | ||
f6bcfd97 | 14489 | if test "$WXGTK127" = 1 ; then |
698dcdb6 | 14490 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
14491 | #define __WXGTK127__ $WXGTK127 |
14492 | EOF | |
14493 | ||
14494 | fi | |
14495 | ||
10f2d63a VZ |
14496 | if test "$WXWINE" = 1 ; then |
14497 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
14498 | fi | |
14499 | ||
b4085ce6 | 14500 | if test "$wxUSE_MAC" = 1 ; then |
2c6025bc | 14501 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON" |
ea5999b9 | 14502 | CFLAGS="${CFLAGS} -fno-common -fpascal-strings" |
0c451ef3 | 14503 | CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings" |
2f51a9ec GD |
14504 | # Extract the first word of "Rez", so it can be a program name with args. |
14505 | set dummy Rez; ac_word=$2 | |
698dcdb6 | 14506 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d4158b5d | 14507 | echo "configure:14508: checking for $ac_word" >&5 |
698dcdb6 VZ |
14508 | if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then |
14509 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14510 | else |
14511 | if test -n "$REZ"; then | |
14512 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
14513 | else | |
698dcdb6 VZ |
14514 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14515 | ac_dummy="$PATH" | |
14516 | for ac_dir in $ac_dummy; do | |
14517 | test -z "$ac_dir" && ac_dir=. | |
14518 | if test -f $ac_dir/$ac_word; then | |
14519 | ac_cv_prog_REZ="Rez" | |
14520 | break | |
14521 | fi | |
14522 | done | |
14523 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14524 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
14525 | fi | |
14526 | fi | |
698dcdb6 | 14527 | REZ="$ac_cv_prog_REZ" |
2f51a9ec | 14528 | if test -n "$REZ"; then |
698dcdb6 | 14529 | echo "$ac_t""$REZ" 1>&6 |
2f51a9ec | 14530 | else |
698dcdb6 | 14531 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14532 | fi |
14533 | ||
14534 | # Extract the first word of "Derez", so it can be a program name with args. | |
14535 | set dummy Derez; ac_word=$2 | |
698dcdb6 | 14536 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d4158b5d | 14537 | echo "configure:14538: checking for $ac_word" >&5 |
698dcdb6 VZ |
14538 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
14539 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14540 | else |
14541 | if test -n "$DEREZ"; then | |
14542 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
14543 | else | |
698dcdb6 VZ |
14544 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14545 | ac_dummy="$PATH" | |
14546 | for ac_dir in $ac_dummy; do | |
14547 | test -z "$ac_dir" && ac_dir=. | |
14548 | if test -f $ac_dir/$ac_word; then | |
14549 | ac_cv_prog_DEREZ="Derez" | |
14550 | break | |
14551 | fi | |
14552 | done | |
14553 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14554 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" |
14555 | fi | |
14556 | fi | |
698dcdb6 | 14557 | DEREZ="$ac_cv_prog_DEREZ" |
2f51a9ec | 14558 | if test -n "$DEREZ"; then |
698dcdb6 | 14559 | echo "$ac_t""$DEREZ" 1>&6 |
2f51a9ec | 14560 | else |
698dcdb6 | 14561 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14562 | fi |
14563 | ||
14564 | RESCOMP=${REZ} | |
14565 | REZFLAGS="-d __UNIX__ -useDF" | |
14566 | DEREZFLAGS="Carbon.r -useDF" | |
14567 | RESFLAGS="Carbon.r -t APPL" | |
14568 | LIBWXMACRES="\$(LIBWX_MACRES)" | |
14569 | LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)" | |
b4085ce6 GD |
14570 | fi |
14571 | ||
10f2d63a VZ |
14572 | if test "$wxUSE_CYGWIN" = 1 ; then |
14573 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
14574 | fi | |
14575 | ||
14576 | WXDEBUG= | |
14577 | ||
14578 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
14579 | WXDEBUG="-g" | |
14580 | wxUSE_OPTIMISE=no | |
14581 | fi | |
14582 | ||
14583 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
14584 | wxUSE_DEBUG_INFO=yes | |
14585 | WXDEBUG="-ggdb" | |
14586 | fi | |
14587 | ||
14588 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
698dcdb6 | 14589 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14590 | #define WXDEBUG 1 |
14591 | EOF | |
14592 | ||
14593 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
14594 | else | |
14595 | if test "$wxUSE_GTK" = 1 ; then | |
14596 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
14597 | fi | |
14598 | fi | |
14599 | ||
14600 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
698dcdb6 | 14601 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14602 | #define wxUSE_MEMORY_TRACING 1 |
14603 | EOF | |
14604 | ||
698dcdb6 | 14605 | cat >> confdefs.h <<\EOF |
10f2d63a | 14606 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
14607 | EOF |
14608 | ||
698dcdb6 | 14609 | cat >> confdefs.h <<\EOF |
47c13eb7 | 14610 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
14611 | EOF |
14612 | ||
14613 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
14614 | fi | |
14615 | ||
14616 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
14617 | DMALLOC_LINK="-ldmalloc" | |
14618 | fi | |
14619 | ||
14620 | PROFILE= | |
14621 | if test "$wxUSE_PROFILE" = "yes" ; then | |
14622 | PROFILE="-pg" | |
14623 | fi | |
14624 | ||
14625 | DEP_INFO_FLAGS= | |
caa2c79b | 14626 | CODE_GEN_FLAGS= |
0f3f1cbc | 14627 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
14628 | if test "$GCC" = yes ; then |
14629 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 14630 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
14631 | fi |
14632 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 14633 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
14634 | fi |
14635 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 14636 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
14637 | fi |
14638 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
14639 | DEP_INFO_FLAGS="-MMD" | |
14640 | fi | |
14641 | fi | |
14642 | ||
698dcdb6 | 14643 | |
10f2d63a VZ |
14644 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
14645 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
14646 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
14647 | OPTIMISE= | |
14648 | else | |
14649 | if test "$GCC" = yes ; then | |
14650 | OPTIMISE="-O2" | |
14651 | case "${host}" in | |
14652 | i586-*-*|i686-*-* ) | |
14653 | OPTIMISE="${OPTIMISE} " | |
14654 | ;; | |
14655 | esac | |
14656 | else | |
14657 | OPTIMISE="-O" | |
14658 | fi | |
14659 | fi | |
14660 | ||
54276ccf VZ |
14661 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
14662 | cat >> confdefs.h <<\EOF | |
14663 | #define WXWIN_COMPATIBILITY_2 1 | |
14664 | EOF | |
14665 | ||
14666 | ||
14667 | WXWIN_COMPATIBILITY_2_2="yes" | |
14668 | fi | |
14669 | ||
14670 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
14671 | cat >> confdefs.h <<\EOF | |
14672 | #define WXWIN_COMPATIBILITY_2_2 1 | |
14673 | EOF | |
14674 | ||
14675 | fi | |
14676 | ||
698dcdb6 | 14677 | |
10f2d63a | 14678 | ZLIB_INCLUDE= |
422107f9 | 14679 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
698dcdb6 | 14680 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14681 | #define wxUSE_ZLIB 1 |
14682 | EOF | |
14683 | ||
422107f9 VZ |
14684 | if test "$wxUSE_ZLIB" = "yes" ; then |
14685 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
14686 | else | |
14687 | ZLIB_LINK= | |
698dcdb6 VZ |
14688 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
14689 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
d4158b5d | 14690 | echo "configure:14691: checking for zlib.h" >&5 |
698dcdb6 VZ |
14691 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14692 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14693 | else | |
14694 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 14695 | #line 14696 "configure" |
422107f9 VZ |
14696 | #include "confdefs.h" |
14697 | #include <zlib.h> | |
698dcdb6 VZ |
14698 | EOF |
14699 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 14700 | { (eval echo configure:14701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14701 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14702 | if test -z "$ac_err"; then | |
14703 | rm -rf conftest* | |
14704 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14705 | else |
698dcdb6 VZ |
14706 | echo "$ac_err" >&5 |
14707 | echo "configure: failed program was:" >&5 | |
422107f9 | 14708 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14709 | rm -rf conftest* |
14710 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14711 | fi |
698dcdb6 | 14712 | rm -f conftest* |
422107f9 | 14713 | fi |
698dcdb6 VZ |
14714 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14715 | echo "$ac_t""yes" 1>&6 | |
14716 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
d4158b5d | 14717 | echo "configure:14718: checking for deflate in -lz" >&5 |
698dcdb6 VZ |
14718 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
14719 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14720 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14721 | else |
698dcdb6 | 14722 | ac_save_LIBS="$LIBS" |
422107f9 | 14723 | LIBS="-lz $LIBS" |
698dcdb6 | 14724 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 14725 | #line 14726 "configure" |
422107f9 VZ |
14726 | #include "confdefs.h" |
14727 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14728 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14729 | builtin and then its argument prototype would still apply. */ |
14730 | char deflate(); | |
14731 | ||
14732 | int main() { | |
14733 | deflate() | |
14734 | ; return 0; } | |
14735 | EOF | |
d4158b5d | 14736 | if { (eval echo configure:14737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14737 | rm -rf conftest* |
14738 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14739 | else | |
14740 | echo "configure: failed program was:" >&5 | |
14741 | cat conftest.$ac_ext >&5 | |
14742 | rm -rf conftest* | |
14743 | eval "ac_cv_lib_$ac_lib_var=no" | |
14744 | fi | |
14745 | rm -f conftest* | |
14746 | LIBS="$ac_save_LIBS" | |
14747 | ||
14748 | fi | |
14749 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14750 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14751 | ZLIB_LINK="-lz" |
698dcdb6 VZ |
14752 | else |
14753 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14754 | fi |
14755 | ||
698dcdb6 VZ |
14756 | else |
14757 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14758 | fi |
14759 | ||
14760 | if test "x$ZLIB_LINK" = "x" ; then | |
698dcdb6 | 14761 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } |
422107f9 VZ |
14762 | fi |
14763 | fi | |
10f2d63a VZ |
14764 | fi |
14765 | ||
14766 | PNG_INCLUDE= | |
422107f9 | 14767 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
698dcdb6 | 14768 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14769 | #define wxUSE_LIBPNG 1 |
14770 | EOF | |
14771 | ||
41fd4136 | 14772 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
698dcdb6 | 14773 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
422107f9 VZ |
14774 | wxUSE_LIBPNG=yes |
14775 | fi | |
14776 | ||
14777 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
14778 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
14779 | else | |
14780 | PNG_LINK= | |
698dcdb6 VZ |
14781 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
14782 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
d4158b5d | 14783 | echo "configure:14784: checking for png.h" >&5 |
698dcdb6 VZ |
14784 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14785 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14786 | else | |
14787 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 14788 | #line 14789 "configure" |
422107f9 VZ |
14789 | #include "confdefs.h" |
14790 | #include <png.h> | |
698dcdb6 VZ |
14791 | EOF |
14792 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 14793 | { (eval echo configure:14794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14794 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14795 | if test -z "$ac_err"; then | |
14796 | rm -rf conftest* | |
14797 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14798 | else |
698dcdb6 VZ |
14799 | echo "$ac_err" >&5 |
14800 | echo "configure: failed program was:" >&5 | |
422107f9 | 14801 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14802 | rm -rf conftest* |
14803 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14804 | fi |
698dcdb6 | 14805 | rm -f conftest* |
422107f9 | 14806 | fi |
698dcdb6 VZ |
14807 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14808 | echo "$ac_t""yes" 1>&6 | |
14809 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
d4158b5d | 14810 | echo "configure:14811: checking for png_check_sig in -lpng" >&5 |
698dcdb6 VZ |
14811 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
14812 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14814 | else |
698dcdb6 | 14815 | ac_save_LIBS="$LIBS" |
422107f9 | 14816 | LIBS="-lpng -lz -lm $LIBS" |
698dcdb6 | 14817 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 14818 | #line 14819 "configure" |
422107f9 VZ |
14819 | #include "confdefs.h" |
14820 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14821 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14822 | builtin and then its argument prototype would still apply. */ |
14823 | char png_check_sig(); | |
14824 | ||
14825 | int main() { | |
14826 | png_check_sig() | |
14827 | ; return 0; } | |
14828 | EOF | |
d4158b5d | 14829 | if { (eval echo configure:14830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14830 | rm -rf conftest* |
14831 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14832 | else | |
14833 | echo "configure: failed program was:" >&5 | |
14834 | cat conftest.$ac_ext >&5 | |
14835 | rm -rf conftest* | |
14836 | eval "ac_cv_lib_$ac_lib_var=no" | |
14837 | fi | |
14838 | rm -f conftest* | |
14839 | LIBS="$ac_save_LIBS" | |
14840 | ||
14841 | fi | |
14842 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14843 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14844 | PNG_LINK="-lpng" |
698dcdb6 VZ |
14845 | else |
14846 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14847 | fi |
14848 | ||
698dcdb6 VZ |
14849 | |
14850 | else | |
14851 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14852 | fi |
14853 | ||
14854 | if test "x$PNG_LINK" = "x" ; then | |
698dcdb6 | 14855 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
14856 | fi |
14857 | fi | |
14858 | ||
10f2d63a VZ |
14859 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
14860 | fi | |
14861 | ||
14862 | JPEG_INCLUDE= | |
422107f9 | 14863 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
698dcdb6 | 14864 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14865 | #define wxUSE_LIBJPEG 1 |
14866 | EOF | |
14867 | ||
422107f9 VZ |
14868 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
14869 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
14870 | else | |
14871 | JPEG_LINK= | |
463abc64 | 14872 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
d4158b5d | 14873 | echo "configure:14874: checking for jpeglib.h" >&5 |
463abc64 | 14874 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
698dcdb6 VZ |
14875 | echo $ac_n "(cached) $ac_c" 1>&6 |
14876 | else | |
14877 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 14878 | #line 14879 "configure" |
422107f9 | 14879 | #include "confdefs.h" |
463abc64 VZ |
14880 | |
14881 | #undef HAVE_STDLIB_H | |
14882 | #include <stdio.h> | |
14883 | #include <jpeglib.h> | |
14884 | ||
14885 | int main() { | |
14886 | ||
14887 | ||
14888 | ; return 0; } | |
698dcdb6 | 14889 | EOF |
d4158b5d | 14890 | if { (eval echo configure:14891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14891 | rm -rf conftest* |
463abc64 | 14892 | ac_cv_header_jpeglib_h=yes |
6232543b | 14893 | else |
698dcdb6 | 14894 | echo "configure: failed program was:" >&5 |
422107f9 | 14895 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14896 | rm -rf conftest* |
463abc64 VZ |
14897 | ac_cv_header_jpeglib_h=no |
14898 | ||
422107f9 | 14899 | fi |
698dcdb6 | 14900 | rm -f conftest* |
463abc64 | 14901 | |
422107f9 | 14902 | fi |
463abc64 VZ |
14903 | |
14904 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
14905 | ||
14906 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
14907 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
d4158b5d | 14908 | echo "configure:14909: checking for jpeg_read_header in -ljpeg" >&5 |
698dcdb6 VZ |
14909 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
14910 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14912 | else |
698dcdb6 | 14913 | ac_save_LIBS="$LIBS" |
422107f9 | 14914 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 14915 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 14916 | #line 14917 "configure" |
422107f9 VZ |
14917 | #include "confdefs.h" |
14918 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14919 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14920 | builtin and then its argument prototype would still apply. */ |
14921 | char jpeg_read_header(); | |
14922 | ||
14923 | int main() { | |
14924 | jpeg_read_header() | |
14925 | ; return 0; } | |
14926 | EOF | |
d4158b5d | 14927 | if { (eval echo configure:14928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14928 | rm -rf conftest* |
14929 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14930 | else | |
14931 | echo "configure: failed program was:" >&5 | |
14932 | cat conftest.$ac_ext >&5 | |
14933 | rm -rf conftest* | |
14934 | eval "ac_cv_lib_$ac_lib_var=no" | |
14935 | fi | |
14936 | rm -f conftest* | |
14937 | LIBS="$ac_save_LIBS" | |
14938 | ||
14939 | fi | |
14940 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14941 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14942 | JPEG_LINK="-ljpeg" |
698dcdb6 VZ |
14943 | else |
14944 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14945 | fi |
14946 | ||
463abc64 | 14947 | fi |
422107f9 VZ |
14948 | |
14949 | if test "x$JPEG_LINK" = "x" ; then | |
698dcdb6 | 14950 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
14951 | fi |
14952 | fi | |
10f2d63a VZ |
14953 | fi |
14954 | ||
c7a2bf27 | 14955 | TIFF_INCLUDE= |
0dcf9893 | 14956 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
698dcdb6 | 14957 | cat >> confdefs.h <<\EOF |
c7a2bf27 RR |
14958 | #define wxUSE_LIBTIFF 1 |
14959 | EOF | |
14960 | ||
665bbe97 | 14961 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
14962 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
14963 | else | |
14964 | TIFF_LINK= | |
698dcdb6 VZ |
14965 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
14966 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
d4158b5d | 14967 | echo "configure:14968: checking for tiffio.h" >&5 |
698dcdb6 VZ |
14968 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14969 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14970 | else | |
14971 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 14972 | #line 14973 "configure" |
0dcf9893 VZ |
14973 | #include "confdefs.h" |
14974 | #include <tiffio.h> | |
698dcdb6 VZ |
14975 | EOF |
14976 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 14977 | { (eval echo configure:14978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14978 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14979 | if test -z "$ac_err"; then | |
14980 | rm -rf conftest* | |
14981 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14982 | else |
698dcdb6 VZ |
14983 | echo "$ac_err" >&5 |
14984 | echo "configure: failed program was:" >&5 | |
0dcf9893 | 14985 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14986 | rm -rf conftest* |
14987 | eval "ac_cv_header_$ac_safe=no" | |
0dcf9893 | 14988 | fi |
698dcdb6 | 14989 | rm -f conftest* |
0dcf9893 | 14990 | fi |
698dcdb6 VZ |
14991 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14992 | echo "$ac_t""yes" 1>&6 | |
14993 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
d4158b5d | 14994 | echo "configure:14995: checking for TIFFError in -ltiff" >&5 |
698dcdb6 VZ |
14995 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
14996 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14997 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0dcf9893 | 14998 | else |
698dcdb6 | 14999 | ac_save_LIBS="$LIBS" |
0dcf9893 | 15000 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 15001 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 15002 | #line 15003 "configure" |
0dcf9893 VZ |
15003 | #include "confdefs.h" |
15004 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15005 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15006 | builtin and then its argument prototype would still apply. */ |
15007 | char TIFFError(); | |
15008 | ||
15009 | int main() { | |
15010 | TIFFError() | |
15011 | ; return 0; } | |
15012 | EOF | |
d4158b5d | 15013 | if { (eval echo configure:15014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15014 | rm -rf conftest* |
15015 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15016 | else | |
15017 | echo "configure: failed program was:" >&5 | |
15018 | cat conftest.$ac_ext >&5 | |
15019 | rm -rf conftest* | |
15020 | eval "ac_cv_lib_$ac_lib_var=no" | |
15021 | fi | |
15022 | rm -f conftest* | |
15023 | LIBS="$ac_save_LIBS" | |
15024 | ||
15025 | fi | |
15026 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15027 | echo "$ac_t""yes" 1>&6 | |
0dcf9893 | 15028 | TIFF_LINK="-ltiff" |
698dcdb6 VZ |
15029 | else |
15030 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
15031 | fi |
15032 | ||
698dcdb6 VZ |
15033 | else |
15034 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
15035 | fi |
15036 | ||
15037 | if test "x$TIFF_LINK" = "x" ; then | |
698dcdb6 | 15038 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } |
0dcf9893 VZ |
15039 | fi |
15040 | fi | |
c7a2bf27 RR |
15041 | fi |
15042 | ||
3fed1840 RR |
15043 | FREETYPE_INCLUDE= |
15044 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
698dcdb6 | 15045 | cat >> confdefs.h <<\EOF |
3fed1840 RR |
15046 | #define wxUSE_FREETYPE 1 |
15047 | EOF | |
15048 | ||
15049 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
15050 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
15051 | else | |
15052 | FREETYPE_LINK= | |
698dcdb6 VZ |
15053 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` |
15054 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
d4158b5d | 15055 | echo "configure:15056: checking for freetype.h" >&5 |
698dcdb6 VZ |
15056 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15058 | else | |
15059 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 15060 | #line 15061 "configure" |
3fed1840 RR |
15061 | #include "confdefs.h" |
15062 | #include <freetype.h> | |
698dcdb6 VZ |
15063 | EOF |
15064 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 15065 | { (eval echo configure:15066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15066 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15067 | if test -z "$ac_err"; then | |
15068 | rm -rf conftest* | |
15069 | eval "ac_cv_header_$ac_safe=yes" | |
3fed1840 | 15070 | else |
698dcdb6 VZ |
15071 | echo "$ac_err" >&5 |
15072 | echo "configure: failed program was:" >&5 | |
3fed1840 | 15073 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15074 | rm -rf conftest* |
15075 | eval "ac_cv_header_$ac_safe=no" | |
3fed1840 | 15076 | fi |
698dcdb6 | 15077 | rm -f conftest* |
3fed1840 | 15078 | fi |
698dcdb6 VZ |
15079 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15080 | echo "$ac_t""yes" 1>&6 | |
15081 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
d4158b5d | 15082 | echo "configure:15083: checking for FT_Render_Glyph in -lfreetype" >&5 |
698dcdb6 VZ |
15083 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
15084 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15085 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3fed1840 | 15086 | else |
698dcdb6 | 15087 | ac_save_LIBS="$LIBS" |
3fed1840 | 15088 | LIBS="-lfreetype -lm $LIBS" |
698dcdb6 | 15089 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 15090 | #line 15091 "configure" |
3fed1840 RR |
15091 | #include "confdefs.h" |
15092 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15093 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15094 | builtin and then its argument prototype would still apply. */ |
15095 | char FT_Render_Glyph(); | |
15096 | ||
15097 | int main() { | |
15098 | FT_Render_Glyph() | |
15099 | ; return 0; } | |
15100 | EOF | |
d4158b5d | 15101 | if { (eval echo configure:15102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15102 | rm -rf conftest* |
15103 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15104 | else | |
15105 | echo "configure: failed program was:" >&5 | |
15106 | cat conftest.$ac_ext >&5 | |
15107 | rm -rf conftest* | |
15108 | eval "ac_cv_lib_$ac_lib_var=no" | |
15109 | fi | |
15110 | rm -f conftest* | |
15111 | LIBS="$ac_save_LIBS" | |
15112 | ||
15113 | fi | |
15114 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15115 | echo "$ac_t""yes" 1>&6 | |
3fed1840 | 15116 | FREETYPE_LINK="-lfreetype" |
698dcdb6 VZ |
15117 | else |
15118 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15119 | fi |
15120 | ||
698dcdb6 VZ |
15121 | |
15122 | else | |
15123 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
15124 | fi |
15125 | ||
15126 | if test "x$FREETYPE_LINK" = "x" ; then | |
698dcdb6 | 15127 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } |
3fed1840 RR |
15128 | fi |
15129 | fi | |
15130 | fi | |
15131 | ||
10f2d63a | 15132 | if test "$wxUSE_OPENGL" = "yes"; then |
698dcdb6 VZ |
15133 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15134 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
d4158b5d | 15135 | echo "configure:15136: checking for GL/gl.h" >&5 |
698dcdb6 VZ |
15136 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15138 | else | |
15139 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 15140 | #line 15141 "configure" |
10f2d63a VZ |
15141 | #include "confdefs.h" |
15142 | #include <GL/gl.h> | |
698dcdb6 VZ |
15143 | EOF |
15144 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 15145 | { (eval echo configure:15146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15146 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15147 | if test -z "$ac_err"; then | |
15148 | rm -rf conftest* | |
15149 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 15150 | else |
698dcdb6 VZ |
15151 | echo "$ac_err" >&5 |
15152 | echo "configure: failed program was:" >&5 | |
10f2d63a | 15153 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15154 | rm -rf conftest* |
15155 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 15156 | fi |
698dcdb6 | 15157 | rm -f conftest* |
10f2d63a | 15158 | fi |
698dcdb6 VZ |
15159 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15160 | echo "$ac_t""yes" 1>&6 | |
15161 | ||
15162 | cat >> confdefs.h <<\EOF | |
bdad4e7e RR |
15163 | #define wxUSE_OPENGL 1 |
15164 | EOF | |
15165 | ||
698dcdb6 | 15166 | cat >> confdefs.h <<\EOF |
bdad4e7e RR |
15167 | #define wxUSE_GLCANVAS 1 |
15168 | EOF | |
15169 | ||
698dcdb6 | 15170 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 |
d4158b5d | 15171 | echo "configure:15172: checking for glFlush in -lGL" >&5 |
698dcdb6 VZ |
15172 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
15173 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15174 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15175 | else |
698dcdb6 | 15176 | ac_save_LIBS="$LIBS" |
bdad4e7e | 15177 | LIBS="-lGL $LIBS" |
698dcdb6 | 15178 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 15179 | #line 15180 "configure" |
10f2d63a VZ |
15180 | #include "confdefs.h" |
15181 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15182 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15183 | builtin and then its argument prototype would still apply. */ |
15184 | char glFlush(); | |
6232543b | 15185 | |
698dcdb6 VZ |
15186 | int main() { |
15187 | glFlush() | |
15188 | ; return 0; } | |
15189 | EOF | |
d4158b5d | 15190 | if { (eval echo configure:15191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15191 | rm -rf conftest* |
15192 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15193 | else | |
15194 | echo "configure: failed program was:" >&5 | |
15195 | cat conftest.$ac_ext >&5 | |
15196 | rm -rf conftest* | |
15197 | eval "ac_cv_lib_$ac_lib_var=no" | |
15198 | fi | |
15199 | rm -f conftest* | |
15200 | LIBS="$ac_save_LIBS" | |
1e487827 | 15201 | |
698dcdb6 VZ |
15202 | fi |
15203 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15204 | echo "$ac_t""yes" 1>&6 | |
15205 | ||
15206 | OPENGL_LINK="-lGL -lGLU" | |
15207 | ||
10f2d63a | 15208 | else |
698dcdb6 | 15209 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15210 | |
698dcdb6 | 15211 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
d4158b5d | 15212 | echo "configure:15213: checking for glFlush in -lMesaGL" >&5 |
698dcdb6 VZ |
15213 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
15214 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15215 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15216 | else |
698dcdb6 | 15217 | ac_save_LIBS="$LIBS" |
10f2d63a | 15218 | LIBS="-lMesaGL $LIBS" |
698dcdb6 | 15219 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 15220 | #line 15221 "configure" |
10f2d63a VZ |
15221 | #include "confdefs.h" |
15222 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15223 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15224 | builtin and then its argument prototype would still apply. */ |
15225 | char glFlush(); | |
15226 | ||
15227 | int main() { | |
15228 | glFlush() | |
15229 | ; return 0; } | |
15230 | EOF | |
d4158b5d | 15231 | if { (eval echo configure:15232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15232 | rm -rf conftest* |
15233 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15234 | else | |
15235 | echo "configure: failed program was:" >&5 | |
15236 | cat conftest.$ac_ext >&5 | |
15237 | rm -rf conftest* | |
15238 | eval "ac_cv_lib_$ac_lib_var=no" | |
15239 | fi | |
15240 | rm -f conftest* | |
15241 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15242 | |
698dcdb6 VZ |
15243 | fi |
15244 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15245 | echo "$ac_t""yes" 1>&6 | |
15246 | ||
f6bcfd97 | 15247 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
698dcdb6 VZ |
15248 | |
15249 | else | |
15250 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15251 | fi |
15252 | ||
698dcdb6 | 15253 | |
10f2d63a VZ |
15254 | fi |
15255 | ||
698dcdb6 | 15256 | |
10f2d63a | 15257 | else |
698dcdb6 VZ |
15258 | echo "$ac_t""no" 1>&6 |
15259 | wxUSE_OPENGL=0 | |
10f2d63a VZ |
15260 | fi |
15261 | ||
15262 | fi | |
15263 | ||
698dcdb6 | 15264 | |
10f2d63a | 15265 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 15266 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15267 | #define wxUSE_GUI 1 |
15268 | EOF | |
15269 | ||
698dcdb6 | 15270 | |
10f2d63a | 15271 | else |
698dcdb6 | 15272 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15273 | #define wxUSE_NOGUI 1 |
15274 | EOF | |
15275 | ||
15276 | fi | |
15277 | ||
698dcdb6 | 15278 | |
10f2d63a | 15279 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 15280 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15281 | #define wxUSE_UNIX 1 |
15282 | EOF | |
15283 | ||
15284 | fi | |
15285 | ||
698dcdb6 | 15286 | |
10f2d63a | 15287 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 15288 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15289 | #define wxUSE_APPLE_IEEE 1 |
15290 | EOF | |
15291 | ||
15292 | fi | |
15293 | ||
1e6feb95 VZ |
15294 | if test "$wxUSE_TIMER" = "yes"; then |
15295 | cat >> confdefs.h <<\EOF | |
15296 | #define wxUSE_TIMER 1 | |
15297 | EOF | |
15298 | ||
15299 | fi | |
15300 | ||
10f2d63a | 15301 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 15302 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15303 | #define wxUSE_WAVE 1 |
15304 | EOF | |
15305 | ||
15306 | fi | |
15307 | ||
1e6feb95 VZ |
15308 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
15309 | cat >> confdefs.h <<\EOF | |
15310 | #define wxUSE_CMDLINE_PARSER 1 | |
15311 | EOF | |
15312 | ||
15313 | fi | |
15314 | ||
15315 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
15316 | cat >> confdefs.h <<\EOF | |
15317 | #define wxUSE_STOPWATCH 1 | |
15318 | EOF | |
15319 | ||
15320 | fi | |
15321 | ||
15322 | if test "$wxUSE_DATETIME" = "yes"; then | |
15323 | cat >> confdefs.h <<\EOF | |
15324 | #define wxUSE_DATETIME 1 | |
15325 | EOF | |
15326 | ||
15327 | fi | |
15328 | ||
15329 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
15330 | cat >> confdefs.h <<\EOF | |
15331 | #define wxUSE_TIMEDATE 1 | |
15332 | EOF | |
15333 | ||
15334 | fi | |
15335 | ||
10f2d63a | 15336 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 15337 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15338 | #define wxUSE_FILE 1 |
15339 | EOF | |
15340 | ||
15341 | fi | |
15342 | ||
1e6feb95 VZ |
15343 | if test "$wxUSE_FFILE" = "yes"; then |
15344 | cat >> confdefs.h <<\EOF | |
15345 | #define wxUSE_FFILE 1 | |
15346 | EOF | |
15347 | ||
15348 | fi | |
15349 | ||
24528b0c | 15350 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 15351 | cat >> confdefs.h <<\EOF |
24528b0c VS |
15352 | #define wxUSE_FILESYSTEM 1 |
15353 | EOF | |
15354 | ||
15355 | fi | |
15356 | ||
10f2d63a | 15357 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 15358 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15359 | #define wxUSE_FS_INET 1 |
15360 | EOF | |
15361 | ||
15362 | fi | |
15363 | ||
15364 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 15365 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15366 | #define wxUSE_FS_ZIP 1 |
15367 | EOF | |
15368 | ||
15369 | fi | |
15370 | ||
15371 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 15372 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15373 | #define wxUSE_ZIPSTREAM 1 |
15374 | EOF | |
15375 | ||
15376 | fi | |
15377 | ||
eb4efbdc | 15378 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 15379 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
15380 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
15381 | EOF | |
15382 | ||
15383 | fi | |
15384 | ||
4f3c5f06 | 15385 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 15386 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
15387 | #define wxUSE_SNGLINST_CHECKER 1 |
15388 | EOF | |
15389 | ||
15390 | fi | |
15391 | ||
10f2d63a | 15392 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 15393 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15394 | #define wxUSE_BUSYINFO 1 |
15395 | EOF | |
15396 | ||
15397 | fi | |
15398 | ||
15399 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 15400 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15401 | #define wxUSE_STD_IOSTREAM 1 |
15402 | EOF | |
15403 | ||
15404 | fi | |
15405 | ||
15406 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
15407 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15408 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15409 | else |
698dcdb6 | 15410 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15411 | #define wxUSE_TEXTFILE 1 |
15412 | EOF | |
15413 | ||
15414 | fi | |
15415 | fi | |
15416 | ||
15417 | if test "$wxUSE_CONFIG" = "yes" ; then | |
15418 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 15419 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15420 | else |
698dcdb6 | 15421 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15422 | #define wxUSE_CONFIG 1 |
15423 | EOF | |
15424 | ||
15425 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
15426 | fi | |
15427 | fi | |
15428 | ||
15429 | if test "$wxUSE_INTL" = "yes" ; then | |
15430 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15431 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15432 | else |
698dcdb6 | 15433 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15434 | #define wxUSE_INTL 1 |
15435 | EOF | |
15436 | ||
15437 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 15438 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
15439 | fi |
15440 | fi | |
15441 | ||
15442 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 15443 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15444 | #define wxUSE_LOG 1 |
15445 | EOF | |
15446 | ||
d73be714 VZ |
15447 | |
15448 | if test "$wxUSE_LOGGUI" = "yes"; then | |
15449 | cat >> confdefs.h <<\EOF | |
15450 | #define wxUSE_LOGGUI 1 | |
15451 | EOF | |
15452 | ||
15453 | fi | |
15454 | ||
15455 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
15456 | cat >> confdefs.h <<\EOF | |
15457 | #define wxUSE_LOGWINDOW 1 | |
15458 | EOF | |
15459 | ||
15460 | fi | |
10f2d63a VZ |
15461 | fi |
15462 | ||
15463 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 15464 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15465 | #define wxUSE_LONGLONG 1 |
15466 | EOF | |
15467 | ||
15468 | fi | |
15469 | ||
e8f65ba6 | 15470 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 15471 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
15472 | #define wxUSE_GEOMETRY 1 |
15473 | EOF | |
15474 | ||
15475 | fi | |
15476 | ||
10f2d63a | 15477 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 15478 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15479 | #define wxUSE_DIALUP_MANAGER 1 |
15480 | EOF | |
15481 | ||
70f7a477 | 15482 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
15483 | fi |
15484 | ||
15485 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 15486 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15487 | #define wxUSE_STREAMS 1 |
15488 | EOF | |
15489 | ||
15490 | fi | |
15491 | ||
1e487827 | 15492 | |
1e6feb95 | 15493 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 15494 | for ac_func in strptime |
83307f33 | 15495 | do |
698dcdb6 | 15496 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 15497 | echo "configure:15498: checking for $ac_func" >&5 |
698dcdb6 VZ |
15498 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15499 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15500 | else | |
15501 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 15502 | #line 15503 "configure" |
83307f33 VZ |
15503 | #include "confdefs.h" |
15504 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15505 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
15506 | #include <assert.h> |
15507 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15508 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15509 | builtin and then its argument prototype would still apply. */ |
15510 | char $ac_func(); | |
15511 | ||
15512 | int main() { | |
83307f33 VZ |
15513 | |
15514 | /* The GNU C library defines this for functions which it implements | |
15515 | to always fail with ENOSYS. Some functions are actually named | |
15516 | something starting with __ and the normal name is an alias. */ | |
15517 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15518 | choke me | |
15519 | #else | |
698dcdb6 | 15520 | $ac_func(); |
83307f33 VZ |
15521 | #endif |
15522 | ||
698dcdb6 | 15523 | ; return 0; } |
83307f33 | 15524 | EOF |
d4158b5d | 15525 | if { (eval echo configure:15526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15526 | rm -rf conftest* |
15527 | eval "ac_cv_func_$ac_func=yes" | |
15528 | else | |
15529 | echo "configure: failed program was:" >&5 | |
15530 | cat conftest.$ac_ext >&5 | |
15531 | rm -rf conftest* | |
15532 | eval "ac_cv_func_$ac_func=no" | |
15533 | fi | |
15534 | rm -f conftest* | |
15535 | fi | |
83307f33 | 15536 | |
698dcdb6 VZ |
15537 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15538 | echo "$ac_t""yes" 1>&6 | |
15539 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15540 | cat >> confdefs.h <<EOF | |
15541 | #define $ac_tr_func 1 | |
15542 | EOF | |
15543 | ||
15544 | else | |
15545 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
15546 | fi |
15547 | done | |
15548 | ||
1e487827 | 15549 | |
698dcdb6 | 15550 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
d4158b5d | 15551 | echo "configure:15552: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
15552 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
15553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15554 | else | |
15555 | ||
15556 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 15557 | #line 15558 "configure" |
360d6699 VZ |
15558 | #include "confdefs.h" |
15559 | ||
b4085ce6 | 15560 | #include <time.h> |
698dcdb6 VZ |
15561 | |
15562 | int main() { | |
360d6699 VZ |
15563 | |
15564 | int tz; | |
4f11a343 | 15565 | tz = timezone; |
698dcdb6 VZ |
15566 | |
15567 | ; return 0; } | |
15568 | EOF | |
d4158b5d | 15569 | if { (eval echo configure:15570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15570 | rm -rf conftest* |
15571 | ||
4f11a343 | 15572 | wx_cv_var_timezone=timezone |
698dcdb6 | 15573 | |
360d6699 | 15574 | else |
698dcdb6 VZ |
15575 | echo "configure: failed program was:" >&5 |
15576 | cat conftest.$ac_ext >&5 | |
15577 | rm -rf conftest* | |
15578 | ||
15579 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 15580 | #line 15581 "configure" |
360d6699 VZ |
15581 | #include "confdefs.h" |
15582 | ||
b4085ce6 | 15583 | #include <time.h> |
698dcdb6 VZ |
15584 | |
15585 | int main() { | |
360d6699 VZ |
15586 | |
15587 | int tz; | |
15588 | tz = _timezone; | |
698dcdb6 VZ |
15589 | |
15590 | ; return 0; } | |
15591 | EOF | |
d4158b5d | 15592 | if { (eval echo configure:15593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15593 | rm -rf conftest* |
15594 | ||
360d6699 | 15595 | wx_cv_var_timezone=_timezone |
698dcdb6 | 15596 | |
5357c8e8 | 15597 | else |
698dcdb6 VZ |
15598 | echo "configure: failed program was:" >&5 |
15599 | cat conftest.$ac_ext >&5 | |
15600 | rm -rf conftest* | |
15601 | ||
15602 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 15603 | #line 15604 "configure" |
5357c8e8 VZ |
15604 | #include "confdefs.h" |
15605 | ||
b4085ce6 | 15606 | #include <time.h> |
698dcdb6 VZ |
15607 | |
15608 | int main() { | |
5357c8e8 VZ |
15609 | |
15610 | int tz; | |
4f11a343 | 15611 | tz = __timezone; |
698dcdb6 VZ |
15612 | |
15613 | ; return 0; } | |
15614 | EOF | |
d4158b5d | 15615 | if { (eval echo configure:15616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15616 | rm -rf conftest* |
15617 | ||
4f11a343 | 15618 | wx_cv_var_timezone=__timezone |
698dcdb6 | 15619 | |
360d6699 | 15620 | else |
698dcdb6 VZ |
15621 | echo "configure: failed program was:" >&5 |
15622 | cat conftest.$ac_ext >&5 | |
15623 | rm -rf conftest* | |
15624 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
15625 | ||
360d6699 | 15626 | fi |
698dcdb6 VZ |
15627 | rm -f conftest* |
15628 | ||
15629 | ||
360d6699 | 15630 | fi |
698dcdb6 VZ |
15631 | rm -f conftest* |
15632 | ||
15633 | ||
6232543b | 15634 | fi |
698dcdb6 VZ |
15635 | rm -f conftest* |
15636 | ||
15637 | ||
1e487827 | 15638 | fi |
703e0a69 | 15639 | |
698dcdb6 VZ |
15640 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
15641 | ||
15642 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
15643 | #define WX_TIMEZONE $wx_cv_var_timezone |
15644 | EOF | |
15645 | ||
698dcdb6 VZ |
15646 | |
15647 | for ac_func in localtime | |
afc31813 | 15648 | do |
698dcdb6 | 15649 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 15650 | echo "configure:15651: checking for $ac_func" >&5 |
698dcdb6 VZ |
15651 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15652 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15653 | else | |
15654 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 15655 | #line 15656 "configure" |
10f2d63a | 15656 | #include "confdefs.h" |
afc31813 | 15657 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 15658 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
15659 | #include <assert.h> |
15660 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15661 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15662 | builtin and then its argument prototype would still apply. */ |
15663 | char $ac_func(); | |
15664 | ||
15665 | int main() { | |
afc31813 VZ |
15666 | |
15667 | /* The GNU C library defines this for functions which it implements | |
15668 | to always fail with ENOSYS. Some functions are actually named | |
15669 | something starting with __ and the normal name is an alias. */ | |
15670 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15671 | choke me | |
15672 | #else | |
698dcdb6 | 15673 | $ac_func(); |
afc31813 VZ |
15674 | #endif |
15675 | ||
698dcdb6 | 15676 | ; return 0; } |
10f2d63a | 15677 | EOF |
d4158b5d | 15678 | if { (eval echo configure:15679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15679 | rm -rf conftest* |
15680 | eval "ac_cv_func_$ac_func=yes" | |
15681 | else | |
15682 | echo "configure: failed program was:" >&5 | |
15683 | cat conftest.$ac_ext >&5 | |
15684 | rm -rf conftest* | |
15685 | eval "ac_cv_func_$ac_func=no" | |
15686 | fi | |
15687 | rm -f conftest* | |
15688 | fi | |
afc31813 | 15689 | |
698dcdb6 VZ |
15690 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15691 | echo "$ac_t""yes" 1>&6 | |
15692 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15693 | cat >> confdefs.h <<EOF | |
15694 | #define $ac_tr_func 1 | |
15695 | EOF | |
15696 | ||
15697 | else | |
15698 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
15699 | fi |
15700 | done | |
15701 | ||
1e487827 | 15702 | |
698dcdb6 VZ |
15703 | if test "$ac_cv_func_localtime" = "yes"; then |
15704 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
d4158b5d | 15705 | echo "configure:15706: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
15706 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
15707 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15708 | else | |
15709 | ||
15710 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 15711 | #line 15712 "configure" |
0470b1e6 VZ |
15712 | #include "confdefs.h" |
15713 | ||
b4085ce6 | 15714 | #include <time.h> |
698dcdb6 VZ |
15715 | |
15716 | int main() { | |
0470b1e6 VZ |
15717 | |
15718 | struct tm tm; | |
15719 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
15720 | |
15721 | ; return 0; } | |
15722 | EOF | |
d4158b5d | 15723 | if { (eval echo configure:15724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15724 | rm -rf conftest* |
15725 | ||
f03a98d8 | 15726 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 15727 | |
0470b1e6 | 15728 | else |
698dcdb6 VZ |
15729 | echo "configure: failed program was:" >&5 |
15730 | cat conftest.$ac_ext >&5 | |
15731 | rm -rf conftest* | |
15732 | wx_cv_struct_tm_has_gmtoff=no | |
15733 | ||
0470b1e6 | 15734 | fi |
698dcdb6 VZ |
15735 | rm -f conftest* |
15736 | ||
1e487827 | 15737 | fi |
698dcdb6 VZ |
15738 | |
15739 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
15740 | fi |
15741 | ||
15742 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 15743 | cat >> confdefs.h <<\EOF |
6232543b VS |
15744 | #define WX_GMTOFF_IN_TM 1 |
15745 | EOF | |
0470b1e6 | 15746 | |
3fcdd07b VZ |
15747 | fi |
15748 | ||
698dcdb6 | 15749 | for ac_func in gettimeofday ftime |
3fcdd07b | 15750 | do |
698dcdb6 | 15751 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 15752 | echo "configure:15753: checking for $ac_func" >&5 |
698dcdb6 VZ |
15753 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15754 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15755 | else | |
15756 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 15757 | #line 15758 "configure" |
3fcdd07b VZ |
15758 | #include "confdefs.h" |
15759 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15760 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
15761 | #include <assert.h> |
15762 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15763 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15764 | builtin and then its argument prototype would still apply. */ |
15765 | char $ac_func(); | |
15766 | ||
15767 | int main() { | |
3fcdd07b VZ |
15768 | |
15769 | /* The GNU C library defines this for functions which it implements | |
15770 | to always fail with ENOSYS. Some functions are actually named | |
15771 | something starting with __ and the normal name is an alias. */ | |
15772 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15773 | choke me | |
15774 | #else | |
698dcdb6 | 15775 | $ac_func(); |
3fcdd07b VZ |
15776 | #endif |
15777 | ||
698dcdb6 VZ |
15778 | ; return 0; } |
15779 | EOF | |
d4158b5d | 15780 | if { (eval echo configure:15781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15781 | rm -rf conftest* |
15782 | eval "ac_cv_func_$ac_func=yes" | |
15783 | else | |
15784 | echo "configure: failed program was:" >&5 | |
15785 | cat conftest.$ac_ext >&5 | |
15786 | rm -rf conftest* | |
15787 | eval "ac_cv_func_$ac_func=no" | |
15788 | fi | |
15789 | rm -f conftest* | |
15790 | fi | |
15791 | ||
15792 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15793 | echo "$ac_t""yes" 1>&6 | |
15794 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15795 | cat >> confdefs.h <<EOF | |
15796 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
15797 | EOF |
15798 | break | |
698dcdb6 VZ |
15799 | else |
15800 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
15801 | fi |
15802 | done | |
15803 | ||
afc31813 | 15804 | |
698dcdb6 VZ |
15805 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
15806 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
d4158b5d | 15807 | echo "configure:15808: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
15808 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
15809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15810 | else | |
15811 | ||
15812 | ||
15813 | ac_ext=C | |
15814 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 15815 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
15816 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15817 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15818 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 15819 | |
698dcdb6 VZ |
15820 | |
15821 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 15822 | #line 15823 "configure" |
10f2d63a | 15823 | #include "confdefs.h" |
afc31813 VZ |
15824 | |
15825 | #include <sys/time.h> | |
15826 | #include <unistd.h> | |
698dcdb6 VZ |
15827 | |
15828 | int main() { | |
afc31813 VZ |
15829 | |
15830 | struct timeval tv; | |
15831 | struct timezone tz; | |
15832 | gettimeofday(&tv, &tz); | |
698dcdb6 VZ |
15833 | |
15834 | ; return 0; } | |
15835 | EOF | |
d4158b5d | 15836 | if { (eval echo configure:15837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15837 | rm -rf conftest* |
afc31813 | 15838 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 15839 | else |
698dcdb6 VZ |
15840 | echo "configure: failed program was:" >&5 |
15841 | cat conftest.$ac_ext >&5 | |
15842 | rm -rf conftest* | |
15843 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 15844 | #line 15845 "configure" |
10f2d63a | 15845 | #include "confdefs.h" |
afc31813 VZ |
15846 | |
15847 | #include <sys/time.h> | |
15848 | #include <unistd.h> | |
698dcdb6 VZ |
15849 | |
15850 | int main() { | |
afc31813 VZ |
15851 | |
15852 | struct timeval tv; | |
15853 | gettimeofday(&tv); | |
698dcdb6 VZ |
15854 | |
15855 | ; return 0; } | |
15856 | EOF | |
d4158b5d | 15857 | if { (eval echo configure:15858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15858 | rm -rf conftest* |
afc31813 | 15859 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 15860 | else |
698dcdb6 VZ |
15861 | echo "configure: failed program was:" >&5 |
15862 | cat conftest.$ac_ext >&5 | |
15863 | rm -rf conftest* | |
15864 | wx_cv_func_gettimeofday_has_2_args=unknown | |
15865 | ||
10f2d63a | 15866 | fi |
698dcdb6 VZ |
15867 | rm -f conftest* |
15868 | ||
10f2d63a | 15869 | fi |
698dcdb6 | 15870 | rm -f conftest* |
afc31813 | 15871 | ac_ext=c |
698dcdb6 | 15872 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 15873 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
15874 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15875 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15876 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 15877 | |
698dcdb6 | 15878 | |
afc31813 | 15879 | fi |
698dcdb6 VZ |
15880 | |
15881 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 15882 | |
afc31813 | 15883 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 15884 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15885 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
15886 | EOF | |
15887 | ||
15888 | fi | |
15889 | fi | |
15890 | ||
698dcdb6 | 15891 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15892 | #define wxUSE_TIMEDATE 1 |
15893 | EOF | |
15894 | ||
15895 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
15896 | fi | |
15897 | ||
698dcdb6 | 15898 | |
b089607b VZ |
15899 | if test "$TOOLKIT" != "MSW"; then |
15900 | ||
afc31813 | 15901 | if test "$wxUSE_SOCKETS" = "yes"; then |
698dcdb6 | 15902 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
d4158b5d | 15903 | echo "configure:15904: checking for socket" >&5 |
698dcdb6 VZ |
15904 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
15905 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 15906 | else |
698dcdb6 | 15907 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 15908 | #line 15909 "configure" |
c63c7106 VZ |
15909 | #include "confdefs.h" |
15910 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15911 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
15912 | #include <assert.h> |
15913 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15914 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15915 | builtin and then its argument prototype would still apply. */ |
15916 | char socket(); | |
15917 | ||
15918 | int main() { | |
c63c7106 VZ |
15919 | |
15920 | /* The GNU C library defines this for functions which it implements | |
15921 | to always fail with ENOSYS. Some functions are actually named | |
15922 | something starting with __ and the normal name is an alias. */ | |
15923 | #if defined (__stub_socket) || defined (__stub___socket) | |
15924 | choke me | |
15925 | #else | |
698dcdb6 | 15926 | socket(); |
c63c7106 VZ |
15927 | #endif |
15928 | ||
698dcdb6 VZ |
15929 | ; return 0; } |
15930 | EOF | |
d4158b5d | 15931 | if { (eval echo configure:15932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15932 | rm -rf conftest* |
15933 | eval "ac_cv_func_socket=yes" | |
15934 | else | |
15935 | echo "configure: failed program was:" >&5 | |
15936 | cat conftest.$ac_ext >&5 | |
15937 | rm -rf conftest* | |
15938 | eval "ac_cv_func_socket=no" | |
15939 | fi | |
15940 | rm -f conftest* | |
15941 | fi | |
15942 | ||
15943 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
15944 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
15945 | : |
15946 | else | |
698dcdb6 VZ |
15947 | echo "$ac_t""no" 1>&6 |
15948 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
d4158b5d | 15949 | echo "configure:15950: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
15950 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
15951 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 15953 | else |
698dcdb6 | 15954 | ac_save_LIBS="$LIBS" |
c63c7106 | 15955 | LIBS="-lsocket $LIBS" |
698dcdb6 | 15956 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 15957 | #line 15958 "configure" |
c63c7106 VZ |
15958 | #include "confdefs.h" |
15959 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15960 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15961 | builtin and then its argument prototype would still apply. */ |
15962 | char socket(); | |
15963 | ||
15964 | int main() { | |
15965 | socket() | |
15966 | ; return 0; } | |
15967 | EOF | |
d4158b5d | 15968 | if { (eval echo configure:15969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15969 | rm -rf conftest* |
15970 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15971 | else | |
15972 | echo "configure: failed program was:" >&5 | |
15973 | cat conftest.$ac_ext >&5 | |
15974 | rm -rf conftest* | |
15975 | eval "ac_cv_lib_$ac_lib_var=no" | |
15976 | fi | |
15977 | rm -f conftest* | |
15978 | LIBS="$ac_save_LIBS" | |
15979 | ||
15980 | fi | |
15981 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15982 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 15983 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 15984 | else |
698dcdb6 | 15985 | echo "$ac_t""no" 1>&6 |
afc31813 | 15986 | |
698dcdb6 | 15987 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
afc31813 | 15988 | wxUSE_SOCKETS=no |
698dcdb6 VZ |
15989 | |
15990 | ||
10f2d63a VZ |
15991 | fi |
15992 | ||
698dcdb6 | 15993 | |
6232543b | 15994 | fi |
b089607b | 15995 | |
1e487827 | 15996 | fi |
afc31813 | 15997 | |
51a9faba | 15998 | |
698dcdb6 VZ |
15999 | if test "$wxUSE_SOCKETS" = "yes" ; then |
16000 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
d4158b5d | 16001 | echo "configure:16002: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
16002 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
16003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16004 | else | |
16005 | ||
16006 | ||
16007 | ac_ext=C | |
16008 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 16009 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
16010 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16011 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16012 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 16013 | |
698dcdb6 VZ |
16014 | |
16015 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 16016 | #line 16017 "configure" |
afc31813 | 16017 | #include "confdefs.h" |
51a9faba | 16018 | |
3ace2e6d | 16019 | #include <sys/types.h> |
51a9faba | 16020 | #include <sys/socket.h> |
698dcdb6 VZ |
16021 | |
16022 | int main() { | |
51a9faba VZ |
16023 | |
16024 | socklen_t len; | |
16025 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
16026 | |
16027 | ; return 0; } | |
16028 | EOF | |
d4158b5d | 16029 | if { (eval echo configure:16030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16030 | rm -rf conftest* |
51a9faba | 16031 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 16032 | else |
698dcdb6 VZ |
16033 | echo "configure: failed program was:" >&5 |
16034 | cat conftest.$ac_ext >&5 | |
16035 | rm -rf conftest* | |
16036 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 16037 | #line 16038 "configure" |
afc31813 | 16038 | #include "confdefs.h" |
51a9faba | 16039 | |
3ace2e6d | 16040 | #include <sys/types.h> |
51a9faba | 16041 | #include <sys/socket.h> |
698dcdb6 VZ |
16042 | |
16043 | int main() { | |
51a9faba VZ |
16044 | |
16045 | size_t len; | |
16046 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
16047 | |
16048 | ; return 0; } | |
16049 | EOF | |
d4158b5d | 16050 | if { (eval echo configure:16051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16051 | rm -rf conftest* |
51a9faba | 16052 | wx_cv_type_getsockname3=size_t |
afc31813 | 16053 | else |
698dcdb6 VZ |
16054 | echo "configure: failed program was:" >&5 |
16055 | cat conftest.$ac_ext >&5 | |
16056 | rm -rf conftest* | |
16057 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 16058 | #line 16059 "configure" |
afc31813 | 16059 | #include "confdefs.h" |
51a9faba | 16060 | |
3ace2e6d | 16061 | #include <sys/types.h> |
51a9faba | 16062 | #include <sys/socket.h> |
698dcdb6 VZ |
16063 | |
16064 | int main() { | |
51a9faba VZ |
16065 | |
16066 | int len; | |
16067 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
16068 | |
16069 | ; return 0; } | |
16070 | EOF | |
d4158b5d | 16071 | if { (eval echo configure:16072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 16072 | rm -rf conftest* |
51a9faba | 16073 | wx_cv_type_getsockname3=int |
afc31813 | 16074 | else |
698dcdb6 VZ |
16075 | echo "configure: failed program was:" >&5 |
16076 | cat conftest.$ac_ext >&5 | |
16077 | rm -rf conftest* | |
16078 | wx_cv_type_getsockname3=unknown | |
16079 | ||
afc31813 | 16080 | fi |
698dcdb6 VZ |
16081 | rm -f conftest* |
16082 | ||
afc31813 | 16083 | fi |
698dcdb6 VZ |
16084 | rm -f conftest* |
16085 | ||
afc31813 | 16086 | fi |
698dcdb6 | 16087 | rm -f conftest* |
51a9faba VZ |
16088 | |
16089 | ac_ext=c | |
698dcdb6 | 16090 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 16091 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
16092 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16093 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16094 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 16095 | |
698dcdb6 | 16096 | |
51a9faba | 16097 | fi |
698dcdb6 VZ |
16098 | |
16099 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba VZ |
16100 | |
16101 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
16102 | wxUSE_SOCKETS=no | |
698dcdb6 | 16103 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
51a9faba | 16104 | else |
698dcdb6 | 16105 | cat >> confdefs.h <<EOF |
51a9faba VZ |
16106 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
16107 | EOF | |
16108 | ||
16109 | fi | |
16110 | fi | |
afc31813 | 16111 | |
c521c494 RL |
16112 | fi |
16113 | ||
51a9faba | 16114 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 16115 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
16116 | #define wxUSE_SOCKETS 1 |
16117 | EOF | |
16118 | ||
70f7a477 | 16119 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
16120 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
16121 | fi | |
16122 | ||
698dcdb6 | 16123 | |
dc3d889d VZ |
16124 | if test "$wxUSE_GUI" = "yes"; then |
16125 | ||
b089607b VZ |
16126 | if test "$TOOLKIT" != "MSW"; then |
16127 | ||
ceded8b9 | 16128 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16129 | for ac_hdr in linux/joystick.h |
10f2d63a | 16130 | do |
698dcdb6 VZ |
16131 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16132 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d4158b5d | 16133 | echo "configure:16134: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16134 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16135 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16136 | else | |
16137 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 16138 | #line 16139 "configure" |
10f2d63a | 16139 | #include "confdefs.h" |
698dcdb6 VZ |
16140 | #include <$ac_hdr> |
16141 | EOF | |
16142 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 16143 | { (eval echo configure:16144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16144 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16145 | if test -z "$ac_err"; then | |
16146 | rm -rf conftest* | |
16147 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 16148 | else |
698dcdb6 VZ |
16149 | echo "$ac_err" >&5 |
16150 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16151 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16152 | rm -rf conftest* |
16153 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16154 | fi |
698dcdb6 | 16155 | rm -f conftest* |
10f2d63a | 16156 | fi |
698dcdb6 VZ |
16157 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16158 | echo "$ac_t""yes" 1>&6 | |
16159 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16160 | cat >> confdefs.h <<EOF | |
16161 | #define $ac_tr_hdr 1 | |
10f2d63a | 16162 | EOF |
698dcdb6 VZ |
16163 | |
16164 | else | |
16165 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16166 | fi |
16167 | done | |
16168 | ||
b089607b | 16169 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 16170 | wxUSE_JOYSTICK=no |
698dcdb6 | 16171 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
16172 | fi |
16173 | fi | |
16174 | ||
16175 | fi | |
16176 | ||
ceded8b9 | 16177 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16178 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16179 | #define wxUSE_JOYSTICK 1 |
16180 | EOF | |
16181 | ||
16182 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
16183 | fi |
16184 | ||
dc3d889d VZ |
16185 | fi |
16186 | ||
698dcdb6 | 16187 | |
b089607b VZ |
16188 | if test "$TOOLKIT" != "MSW"; then |
16189 | ||
10f2d63a VZ |
16190 | HAVE_DL_FUNCS=0 |
16191 | HAVE_SHL_FUNCS=0 | |
16192 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
b4085ce6 GD |
16193 | if test "$USE_MAC" = 1; then |
16194 | HAVE_DL_FUNCS=1 | |
16195 | else | |
698dcdb6 | 16196 | for ac_func in dlopen |
10f2d63a | 16197 | do |
698dcdb6 | 16198 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 16199 | echo "configure:16200: checking for $ac_func" >&5 |
698dcdb6 VZ |
16200 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16202 | else | |
16203 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 16204 | #line 16205 "configure" |
10f2d63a VZ |
16205 | #include "confdefs.h" |
16206 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16207 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16208 | #include <assert.h> |
16209 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16210 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16211 | builtin and then its argument prototype would still apply. */ |
16212 | char $ac_func(); | |
16213 | ||
16214 | int main() { | |
10f2d63a VZ |
16215 | |
16216 | /* The GNU C library defines this for functions which it implements | |
16217 | to always fail with ENOSYS. Some functions are actually named | |
16218 | something starting with __ and the normal name is an alias. */ | |
16219 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16220 | choke me | |
16221 | #else | |
698dcdb6 | 16222 | $ac_func(); |
10f2d63a VZ |
16223 | #endif |
16224 | ||
698dcdb6 VZ |
16225 | ; return 0; } |
16226 | EOF | |
d4158b5d | 16227 | if { (eval echo configure:16228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16228 | rm -rf conftest* |
16229 | eval "ac_cv_func_$ac_func=yes" | |
16230 | else | |
16231 | echo "configure: failed program was:" >&5 | |
16232 | cat conftest.$ac_ext >&5 | |
16233 | rm -rf conftest* | |
16234 | eval "ac_cv_func_$ac_func=no" | |
16235 | fi | |
16236 | rm -f conftest* | |
16237 | fi | |
16238 | ||
16239 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16240 | echo "$ac_t""yes" 1>&6 | |
16241 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16242 | cat >> confdefs.h <<EOF | |
16243 | #define $ac_tr_func 1 | |
16244 | EOF | |
16245 | ||
16246 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16247 | #define HAVE_DLOPEN 1 |
16248 | EOF | |
16249 | ||
16250 | HAVE_DL_FUNCS=1 | |
698dcdb6 | 16251 | |
10f2d63a | 16252 | else |
698dcdb6 VZ |
16253 | echo "$ac_t""no" 1>&6 |
16254 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
d4158b5d | 16255 | echo "configure:16256: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
16256 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16257 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16259 | else |
698dcdb6 | 16260 | ac_save_LIBS="$LIBS" |
10f2d63a | 16261 | LIBS="-ldl $LIBS" |
698dcdb6 | 16262 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 16263 | #line 16264 "configure" |
10f2d63a VZ |
16264 | #include "confdefs.h" |
16265 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16266 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16267 | builtin and then its argument prototype would still apply. */ |
16268 | char dlopen(); | |
16269 | ||
16270 | int main() { | |
16271 | dlopen() | |
16272 | ; return 0; } | |
16273 | EOF | |
d4158b5d | 16274 | if { (eval echo configure:16275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16275 | rm -rf conftest* |
16276 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16277 | else | |
16278 | echo "configure: failed program was:" >&5 | |
16279 | cat conftest.$ac_ext >&5 | |
16280 | rm -rf conftest* | |
16281 | eval "ac_cv_lib_$ac_lib_var=no" | |
16282 | fi | |
16283 | rm -f conftest* | |
16284 | LIBS="$ac_save_LIBS" | |
16285 | ||
16286 | fi | |
16287 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16288 | echo "$ac_t""yes" 1>&6 | |
16289 | ||
16290 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16291 | #define HAVE_DLOPEN 1 |
16292 | EOF | |
16293 | ||
16294 | HAVE_DL_FUNCS=1 | |
16295 | LIBS="$LIBS -ldl" | |
698dcdb6 | 16296 | |
10f2d63a | 16297 | else |
698dcdb6 | 16298 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16299 | |
698dcdb6 | 16300 | for ac_func in shl_load |
10f2d63a | 16301 | do |
698dcdb6 | 16302 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 16303 | echo "configure:16304: checking for $ac_func" >&5 |
698dcdb6 VZ |
16304 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16306 | else | |
16307 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 16308 | #line 16309 "configure" |
10f2d63a VZ |
16309 | #include "confdefs.h" |
16310 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16311 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16312 | #include <assert.h> |
16313 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16314 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16315 | builtin and then its argument prototype would still apply. */ |
16316 | char $ac_func(); | |
16317 | ||
16318 | int main() { | |
10f2d63a VZ |
16319 | |
16320 | /* The GNU C library defines this for functions which it implements | |
16321 | to always fail with ENOSYS. Some functions are actually named | |
16322 | something starting with __ and the normal name is an alias. */ | |
16323 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16324 | choke me | |
16325 | #else | |
698dcdb6 | 16326 | $ac_func(); |
10f2d63a VZ |
16327 | #endif |
16328 | ||
698dcdb6 VZ |
16329 | ; return 0; } |
16330 | EOF | |
d4158b5d | 16331 | if { (eval echo configure:16332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16332 | rm -rf conftest* |
16333 | eval "ac_cv_func_$ac_func=yes" | |
16334 | else | |
16335 | echo "configure: failed program was:" >&5 | |
16336 | cat conftest.$ac_ext >&5 | |
16337 | rm -rf conftest* | |
16338 | eval "ac_cv_func_$ac_func=no" | |
16339 | fi | |
16340 | rm -f conftest* | |
16341 | fi | |
16342 | ||
16343 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16344 | echo "$ac_t""yes" 1>&6 | |
16345 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16346 | cat >> confdefs.h <<EOF | |
16347 | #define $ac_tr_func 1 | |
16348 | EOF | |
16349 | ||
16350 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16351 | #define HAVE_SHL_LOAD 1 |
16352 | EOF | |
16353 | ||
16354 | HAVE_SHL_FUNCS=1 | |
698dcdb6 | 16355 | |
10f2d63a | 16356 | else |
698dcdb6 VZ |
16357 | echo "$ac_t""no" 1>&6 |
16358 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
d4158b5d | 16359 | echo "configure:16360: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
16360 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
16361 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16362 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16363 | else |
698dcdb6 | 16364 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16365 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 16366 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 16367 | #line 16368 "configure" |
f6bcfd97 BP |
16368 | #include "confdefs.h" |
16369 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16370 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16371 | builtin and then its argument prototype would still apply. */ |
16372 | char dld(); | |
16373 | ||
16374 | int main() { | |
16375 | dld() | |
16376 | ; return 0; } | |
16377 | EOF | |
d4158b5d | 16378 | if { (eval echo configure:16379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16379 | rm -rf conftest* |
16380 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16381 | else | |
16382 | echo "configure: failed program was:" >&5 | |
16383 | cat conftest.$ac_ext >&5 | |
16384 | rm -rf conftest* | |
16385 | eval "ac_cv_lib_$ac_lib_var=no" | |
16386 | fi | |
16387 | rm -f conftest* | |
16388 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 16389 | |
698dcdb6 VZ |
16390 | fi |
16391 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16392 | echo "$ac_t""yes" 1>&6 | |
16393 | ||
f6bcfd97 BP |
16394 | HAVE_SHL_FUNCS=1 |
16395 | LIBS="$LIBS -ldld" | |
698dcdb6 VZ |
16396 | |
16397 | else | |
16398 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16399 | fi |
16400 | ||
698dcdb6 | 16401 | |
10f2d63a VZ |
16402 | fi |
16403 | done | |
16404 | ||
698dcdb6 | 16405 | |
10f2d63a VZ |
16406 | fi |
16407 | ||
698dcdb6 | 16408 | |
10f2d63a VZ |
16409 | fi |
16410 | done | |
16411 | ||
1e487827 | 16412 | |
698dcdb6 VZ |
16413 | if test "$HAVE_DL_FUNCS" = 1; then |
16414 | for ac_func in dlerror | |
f6bcfd97 | 16415 | do |
698dcdb6 | 16416 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d4158b5d | 16417 | echo "configure:16418: checking for $ac_func" >&5 |
698dcdb6 VZ |
16418 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16419 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16420 | else | |
16421 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 16422 | #line 16423 "configure" |
f6bcfd97 BP |
16423 | #include "confdefs.h" |
16424 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16425 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
16426 | #include <assert.h> |
16427 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16428 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16429 | builtin and then its argument prototype would still apply. */ |
16430 | char $ac_func(); | |
16431 | ||
16432 | int main() { | |
f6bcfd97 BP |
16433 | |
16434 | /* The GNU C library defines this for functions which it implements | |
16435 | to always fail with ENOSYS. Some functions are actually named | |
16436 | something starting with __ and the normal name is an alias. */ | |
16437 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16438 | choke me | |
16439 | #else | |
698dcdb6 | 16440 | $ac_func(); |
f6bcfd97 BP |
16441 | #endif |
16442 | ||
698dcdb6 VZ |
16443 | ; return 0; } |
16444 | EOF | |
d4158b5d | 16445 | if { (eval echo configure:16446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16446 | rm -rf conftest* |
16447 | eval "ac_cv_func_$ac_func=yes" | |
16448 | else | |
16449 | echo "configure: failed program was:" >&5 | |
16450 | cat conftest.$ac_ext >&5 | |
16451 | rm -rf conftest* | |
16452 | eval "ac_cv_func_$ac_func=no" | |
16453 | fi | |
16454 | rm -f conftest* | |
16455 | fi | |
16456 | ||
16457 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16458 | echo "$ac_t""yes" 1>&6 | |
16459 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16460 | cat >> confdefs.h <<EOF | |
16461 | #define $ac_tr_func 1 | |
16462 | EOF | |
16463 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16464 | #define HAVE_DLERROR 1 |
16465 | EOF | |
16466 | ||
16467 | else | |
698dcdb6 VZ |
16468 | echo "$ac_t""no" 1>&6 |
16469 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
d4158b5d | 16470 | echo "configure:16471: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
16471 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
16472 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16473 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16474 | else |
698dcdb6 | 16475 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16476 | LIBS="-ldl $LIBS" |
698dcdb6 | 16477 | cat > conftest.$ac_ext <<EOF |
d4158b5d | 16478 | #line 16479 "configure" |
f6bcfd97 BP |
16479 | #include "confdefs.h" |
16480 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16481 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16482 | builtin and then its argument prototype would still apply. */ |
16483 | char dlerror(); | |
16484 | ||
16485 | int main() { | |
16486 | dlerror() | |
16487 | ; return 0; } | |
16488 | EOF | |
d4158b5d | 16489 | if { (eval echo configure:16490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16490 | rm -rf conftest* |
16491 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16492 | else | |
16493 | echo "configure: failed program was:" >&5 | |
16494 | cat conftest.$ac_ext >&5 | |
16495 | rm -rf conftest* | |
16496 | eval "ac_cv_lib_$ac_lib_var=no" | |
16497 | fi | |
16498 | rm -f conftest* | |
16499 | LIBS="$ac_save_LIBS" | |
16500 | ||
16501 | fi | |
16502 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16503 | echo "$ac_t""yes" 1>&6 | |
16504 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16505 | #define HAVE_DLERROR 1 |
16506 | EOF | |
16507 | ||
698dcdb6 VZ |
16508 | else |
16509 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16510 | fi |
16511 | ||
16512 | fi | |
16513 | done | |
16514 | ||
16515 | fi | |
b4085ce6 | 16516 | fi |
f6bcfd97 | 16517 | |
10f2d63a VZ |
16518 | if test "$HAVE_DL_FUNCS" = 0; then |
16519 | if test "$HAVE_SHL_FUNCS" = 0; then | |
16520 | if test "$USE_UNIX" = 1; then | |
698dcdb6 | 16521 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
16522 | wxUSE_DYNLIB_CLASS=no |
16523 | else | |
698dcdb6 | 16524 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
16525 | fi |
16526 | fi | |
16527 | fi | |
16528 | fi | |
16529 | ||
b089607b VZ |
16530 | fi |
16531 | ||
10f2d63a | 16532 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
698dcdb6 | 16533 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16534 | #define wxUSE_DYNLIB_CLASS 1 |
16535 | EOF | |
16536 | ||
b12915c1 VZ |
16537 | else |
16538 | wxUSE_ODBC=no | |
16539 | wxUSE_SERIAL=no | |
10f2d63a VZ |
16540 | fi |
16541 | ||
698dcdb6 | 16542 | |
1e6feb95 VZ |
16543 | if test "$wxUSE_FONTMAP" = "yes" ; then |
16544 | cat >> confdefs.h <<\EOF | |
16545 | #define wxUSE_FONTMAP 1 | |
16546 | EOF | |
16547 | ||
16548 | fi | |
16549 | ||
10f2d63a | 16550 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 16551 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16552 | #define wxUSE_UNICODE 1 |
16553 | EOF | |
16554 | ||
16555 | fi | |
16556 | ||
16557 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
698dcdb6 | 16558 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16559 | #define wxUSE_WCSRTOMBS 1 |
16560 | EOF | |
16561 | ||
16562 | fi | |
16563 | ||
16564 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
698dcdb6 | 16565 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16566 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
16567 | EOF | |
16568 | ||
16569 | fi | |
16570 | ||
698dcdb6 | 16571 | |
b12915c1 | 16572 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 16573 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
16574 | #define wxUSE_SERIAL 1 |
16575 | EOF | |
16576 | ||
16577 | fi | |
16578 | ||
698dcdb6 | 16579 | |
10f2d63a VZ |
16580 | IODBC_C_SRC="" |
16581 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 16582 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16583 | #define wxUSE_ODBC 1 |
16584 | EOF | |
16585 | ||
16586 | WXODBCFLAG="-D_IODBC_" | |
16587 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
16588 | fi |
16589 | ||
698dcdb6 | 16590 | |
10f2d63a | 16591 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 16592 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16593 | #define wxUSE_POSTSCRIPT 1 |
16594 | EOF | |
16595 | ||
16596 | fi | |
16597 | ||
698dcdb6 | 16598 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16599 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
16600 | EOF | |
16601 | ||
698dcdb6 VZ |
16602 | |
16603 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16604 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
16605 | EOF | |
16606 | ||
698dcdb6 VZ |
16607 | |
16608 | ||
10f2d63a | 16609 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 16610 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16611 | #define wxUSE_CONSTRAINTS 1 |
16612 | EOF | |
16613 | ||
16614 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
16615 | fi | |
16616 | ||
16617 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
698dcdb6 | 16618 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16619 | #define wxUSE_MDI_ARCHITECTURE 1 |
16620 | EOF | |
16621 | ||
16622 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
16623 | fi | |
16624 | ||
16625 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 16626 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16627 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
16628 | EOF | |
16629 | ||
16630 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
16631 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
16632 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
16633 | fi | |
16634 | fi | |
16635 | ||
16636 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 16637 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16638 | #define wxUSE_HELP 1 |
16639 | EOF | |
16640 | ||
16641 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 VZ |
16642 | |
16643 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
16644 | cat >> confdefs.h <<\EOF | |
16645 | #define wxUSE_WXHTML_HELP 1 | |
16646 | EOF | |
16647 | ||
16648 | fi | |
10f2d63a VZ |
16649 | fi |
16650 | ||
16651 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
16652 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 16653 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 16654 | else |
698dcdb6 | 16655 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16656 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
16657 | EOF | |
16658 | ||
16659 | fi | |
16660 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
16661 | fi | |
16662 | ||
16663 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 16664 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16665 | #define wxUSE_PROLOGIO 1 |
16666 | EOF | |
16667 | ||
16668 | fi | |
16669 | ||
16670 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
3379ed37 | 16671 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16672 | #define wxUSE_RESOURCES 1 |
16673 | EOF | |
16674 | ||
3379ed37 | 16675 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
10f2d63a VZ |
16676 | fi |
16677 | ||
16678 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 16679 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16680 | #define wxUSE_X_RESOURCES 1 |
16681 | EOF | |
16682 | ||
16683 | fi | |
16684 | ||
698dcdb6 | 16685 | |
10f2d63a | 16686 | if test "$wxUSE_IPC" = "yes"; then |
eb4efbdc | 16687 | if test "$wxUSE_SOCKETS" != "yes"; then |
698dcdb6 | 16688 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 |
eb4efbdc VZ |
16689 | fi |
16690 | ||
698dcdb6 | 16691 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16692 | #define wxUSE_IPC 1 |
16693 | EOF | |
16694 | ||
16695 | fi | |
16696 | ||
16697 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
698dcdb6 | 16698 | cat >> confdefs.h <<\EOF |
10f2d63a | 16699 | #define wxUSE_CLIPBOARD 1 |
1e6feb95 VZ |
16700 | EOF |
16701 | ||
16702 | cat >> confdefs.h <<\EOF | |
16703 | #define wxUSE_DATAOBJ 1 | |
10f2d63a VZ |
16704 | EOF |
16705 | ||
16706 | fi | |
16707 | ||
16708 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
16709 | if test "$wxUSE_GTK" = 1; then | |
16710 | if test "$WXGTK12" != 1; then | |
698dcdb6 | 16711 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 |
10f2d63a VZ |
16712 | wxUSE_DRAG_AND_DROP=no |
16713 | fi | |
16714 | fi | |
16715 | ||
16716 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 16717 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 |
10f2d63a VZ |
16718 | wxUSE_DRAG_AND_DROP=no |
16719 | fi | |
16720 | ||
2c6025bc | 16721 | if test "$wxUSE_MAC" = 1; then |
698dcdb6 | 16722 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 |
2c6025bc GD |
16723 | wxUSE_DRAG_AND_DROP=no |
16724 | fi | |
16725 | ||
10f2d63a | 16726 | if test "$USE_WIN32" = 1; then |
698dcdb6 VZ |
16727 | |
16728 | for ac_hdr in ole2.h | |
10f2d63a | 16729 | do |
698dcdb6 VZ |
16730 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16731 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d4158b5d | 16732 | echo "configure:16733: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16733 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16734 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16735 | else | |
16736 | cat > conftest.$ac_ext <<EOF | |
d4158b5d | 16737 | #line 16738 "configure" |
10f2d63a | 16738 | #include "confdefs.h" |
698dcdb6 VZ |
16739 | #include <$ac_hdr> |
16740 | EOF | |
16741 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d4158b5d | 16742 | { (eval echo configure:16743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16743 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16744 | if test -z "$ac_err"; then | |
16745 | rm -rf conftest* | |
16746 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 16747 | else |
698dcdb6 VZ |
16748 | echo "$ac_err" >&5 |
16749 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16750 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16751 | rm -rf conftest* |
16752 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16753 | fi |
698dcdb6 | 16754 | rm -f conftest* |
10f2d63a | 16755 | fi |
698dcdb6 VZ |
16756 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16757 | echo "$ac_t""yes" 1>&6 | |
16758 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16759 | cat >> confdefs.h <<EOF | |
16760 | #define $ac_tr_hdr 1 | |
10f2d63a | 16761 | EOF |
698dcdb6 VZ |
16762 | |
16763 | else | |
16764 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16765 | fi |
16766 | done | |
16767 | ||
698dcdb6 | 16768 | |
57fe5ed0 | 16769 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
c521c494 | 16770 | if test "$GCC" = yes ; then |
b64f0a5f RL |
16771 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
16772 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 16773 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
b64f0a5f | 16774 | LIBS="$LIBS -lole32 -luuid" |
4f11a343 VS |
16775 | cat >> confdefs.h <<\EOF |
16776 | #define wxUSE_OLE 1 | |
16777 | EOF | |
16778 | ||
b64f0a5f RL |
16779 | |
16780 | if test "$wxUSE_METAFILE" = "yes"; then | |
698dcdb6 | 16781 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16782 | #define wxUSE_METAFILE 1 |
16783 | EOF | |
16784 | ||
698dcdb6 | 16785 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16786 | #define wxUSE_ENH_METAFILE 1 |
16787 | EOF | |
16788 | ||
16789 | fi | |
c521c494 RL |
16790 | fi |
16791 | else | |
698dcdb6 | 16792 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 |
10f2d63a VZ |
16793 | wxUSE_DRAG_AND_DROP=no |
16794 | fi | |
16795 | fi | |
16796 | ||
16797 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
698dcdb6 | 16798 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16799 | #define wxUSE_DRAG_AND_DROP 1 |
16800 | EOF | |
16801 | ||
16802 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
16803 | fi | |
16804 | ||
16805 | fi | |
16806 | ||
16807 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 16808 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16809 | #define wxUSE_SPLINES 1 |
16810 | EOF | |
16811 | ||
16812 | fi | |
16813 | ||
698dcdb6 | 16814 | |
1e6feb95 VZ |
16815 | USES_CONTROLS=0 |
16816 | if test "$wxUSE_CONTROLS" = "yes"; then | |
16817 | USES_CONTROLS=1 | |
16818 | fi | |
16819 | ||
10f2d63a | 16820 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 16821 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16822 | #define wxUSE_ACCEL 1 |
16823 | EOF | |
16824 | ||
1e6feb95 VZ |
16825 | USES_CONTROLS=1 |
16826 | fi | |
16827 | ||
16828 | if test "$wxUSE_BUTTON" = "yes"; then | |
16829 | cat >> confdefs.h <<\EOF | |
16830 | #define wxUSE_BUTTON 1 | |
16831 | EOF | |
16832 | ||
16833 | USES_CONTROLS=1 | |
16834 | fi | |
16835 | ||
16836 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
16837 | cat >> confdefs.h <<\EOF | |
16838 | #define wxUSE_BMPBUTTON 1 | |
16839 | EOF | |
16840 | ||
16841 | USES_CONTROLS=1 | |
16842 | fi | |
16843 | ||
16844 | if test "$wxUSE_CALCTRL" = "yes"; then | |
16845 | cat >> confdefs.h <<\EOF | |
16846 | #define wxUSE_CALENDARCTRL 1 | |
16847 | EOF | |
16848 | ||
16849 | USES_CONTROLS=1 | |
16850 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
16851 | fi |
16852 | ||
16853 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 16854 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16855 | #define wxUSE_CARET 1 |
16856 | EOF | |
16857 | ||
1e6feb95 | 16858 | USES_CONTROLS=1 |
10f2d63a VZ |
16859 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
16860 | fi | |
16861 | ||
16862 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 16863 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16864 | #define wxUSE_COMBOBOX 1 |
16865 | EOF | |
16866 | ||
1e6feb95 | 16867 | USES_CONTROLS=1 |
10f2d63a VZ |
16868 | fi |
16869 | ||
16870 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 16871 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16872 | #define wxUSE_CHOICE 1 |
16873 | EOF | |
16874 | ||
1e6feb95 | 16875 | USES_CONTROLS=1 |
10f2d63a VZ |
16876 | fi |
16877 | ||
16878 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 16879 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16880 | #define wxUSE_CHECKBOX 1 |
16881 | EOF | |
16882 | ||
1e6feb95 | 16883 | USES_CONTROLS=1 |
10f2d63a VZ |
16884 | fi |
16885 | ||
16886 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 16887 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16888 | #define wxUSE_CHECKLISTBOX 1 |
16889 | EOF | |
16890 | ||
1e6feb95 | 16891 | USES_CONTROLS=1 |
10f2d63a VZ |
16892 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
16893 | fi | |
16894 | ||
16895 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 16896 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16897 | #define wxUSE_GAUGE 1 |
16898 | EOF | |
16899 | ||
1e6feb95 | 16900 | USES_CONTROLS=1 |
10f2d63a VZ |
16901 | fi |
16902 | ||
d6a55c4b VZ |
16903 | if test "$wxUSE_NEW_GRID" = "yes"; then |
16904 | wxUSE_GRID="yes" | |
698dcdb6 | 16905 | cat >> confdefs.h <<\EOF |
d6a55c4b | 16906 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
16907 | EOF |
16908 | ||
1e6feb95 | 16909 | USES_CONTROLS=1 |
d6a55c4b | 16910 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
16911 | fi |
16912 | ||
d6a55c4b | 16913 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 16914 | cat >> confdefs.h <<\EOF |
d6a55c4b | 16915 | #define wxUSE_GRID 1 |
10f2d63a VZ |
16916 | EOF |
16917 | ||
1e6feb95 | 16918 | USES_CONTROLS=1 |
d6a55c4b | 16919 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
16920 | fi |
16921 | ||
16922 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16923 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16924 | #define wxUSE_IMAGLIST 1 |
16925 | EOF | |
16926 | ||
16927 | fi | |
16928 | ||
16929 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 16930 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16931 | #define wxUSE_LISTBOX 1 |
16932 | EOF | |
16933 | ||
1e6feb95 | 16934 | USES_CONTROLS=1 |
10f2d63a VZ |
16935 | fi |
16936 | ||
16937 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
16938 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16939 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16940 | #define wxUSE_LISTCTRL 1 |
16941 | EOF | |
16942 | ||
1e6feb95 | 16943 | USES_CONTROLS=1 |
10f2d63a VZ |
16944 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
16945 | else | |
698dcdb6 | 16946 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
16947 | fi |
16948 | fi | |
16949 | ||
16950 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 16951 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16952 | #define wxUSE_NOTEBOOK 1 |
16953 | EOF | |
16954 | ||
1e6feb95 | 16955 | USES_CONTROLS=1 |
10f2d63a VZ |
16956 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
16957 | fi | |
16958 | ||
16959 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
698dcdb6 | 16960 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16961 | #define wxUSE_RADIOBOX 1 |
16962 | EOF | |
16963 | ||
1e6feb95 | 16964 | USES_CONTROLS=1 |
10f2d63a VZ |
16965 | fi |
16966 | ||
16967 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 16968 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16969 | #define wxUSE_RADIOBTN 1 |
16970 | EOF | |
16971 | ||
1e6feb95 | 16972 | USES_CONTROLS=1 |
10f2d63a VZ |
16973 | fi |
16974 | ||
16975 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 16976 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16977 | #define wxUSE_SASH 1 |
16978 | EOF | |
16979 | ||
16980 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
16981 | fi | |
16982 | ||
16983 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 16984 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16985 | #define wxUSE_SCROLLBAR 1 |
16986 | EOF | |
16987 | ||
1e6feb95 | 16988 | USES_CONTROLS=1 |
741a9306 | 16989 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
16990 | fi |
16991 | ||
16992 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 16993 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16994 | #define wxUSE_SLIDER 1 |
16995 | EOF | |
16996 | ||
1e6feb95 | 16997 | USES_CONTROLS=1 |
10f2d63a VZ |
16998 | fi |
16999 | ||
17000 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 17001 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17002 | #define wxUSE_SPINBTN 1 |
17003 | EOF | |
17004 | ||
1e6feb95 | 17005 | USES_CONTROLS=1 |
10f2d63a VZ |
17006 | fi |
17007 | ||
56cfaa52 | 17008 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 17009 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
17010 | #define wxUSE_SPINCTRL 1 |
17011 | EOF | |
17012 | ||
1e6feb95 | 17013 | USES_CONTROLS=1 |
56cfaa52 RR |
17014 | fi |
17015 | ||
10f2d63a | 17016 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 17017 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17018 | #define wxUSE_SPLITTER 1 |
17019 | EOF | |
17020 | ||
17021 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
17022 | fi | |
17023 | ||
17024 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 17025 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17026 | #define wxUSE_STATBMP 1 |
17027 | EOF | |
17028 | ||
1e6feb95 | 17029 | USES_CONTROLS=1 |
10f2d63a VZ |
17030 | fi |
17031 | ||
17032 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 17033 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17034 | #define wxUSE_STATBOX 1 |
17035 | EOF | |
17036 | ||
1e6feb95 VZ |
17037 | USES_CONTROLS=1 |
17038 | fi | |
17039 | ||
17040 | if test "$wxUSE_STATTEXT" = "yes"; then | |
17041 | cat >> confdefs.h <<\EOF | |
17042 | #define wxUSE_STATTEXT 1 | |
17043 | EOF | |
17044 | ||
17045 | USES_CONTROLS=1 | |
10f2d63a VZ |
17046 | fi |
17047 | ||
17048 | if test "$wxUSE_STATLINE" = "yes"; then | |
17049 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 17050 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 17051 | else |
698dcdb6 | 17052 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17053 | #define wxUSE_STATLINE 1 |
17054 | EOF | |
17055 | ||
1e6feb95 | 17056 | USES_CONTROLS=1 |
10f2d63a VZ |
17057 | fi |
17058 | fi | |
17059 | ||
17060 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 17061 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17062 | #define wxUSE_STATUSBAR 1 |
17063 | EOF | |
17064 | ||
1e6feb95 | 17065 | USES_CONTROLS=1 |
698dcdb6 | 17066 | |
2286341c | 17067 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
17068 | fi |
17069 | ||
17070 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 17071 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17072 | #define wxUSE_TAB_DIALOG 1 |
17073 | EOF | |
17074 | ||
17075 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
17076 | fi | |
17077 | ||
1e6feb95 VZ |
17078 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
17079 | cat >> confdefs.h <<\EOF | |
17080 | #define wxUSE_TEXTCTRL 1 | |
17081 | EOF | |
17082 | ||
17083 | USES_CONTROLS=1 | |
17084 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
17085 | fi | |
17086 | ||
1db8dc4a | 17087 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
a45d7ab7 GD |
17088 | if test "$wxUSE_MAC" = 1; then |
17089 | echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2 | |
17090 | wxUSE_TOGGLEBTN=no | |
17091 | fi | |
17092 | ||
17093 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
17094 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
17095 | #define wxUSE_TOGGLEBTN 1 |
17096 | EOF | |
17097 | ||
1e6feb95 | 17098 | USES_CONTROLS=1 |
a45d7ab7 | 17099 | fi |
1db8dc4a VZ |
17100 | fi |
17101 | ||
360d6699 | 17102 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 17103 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
17104 | #define wxUSE_TOOLBAR_SIMPLE 1 |
17105 | EOF | |
17106 | ||
17107 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 17108 | USES_CONTROLS=1 |
360d6699 VZ |
17109 | fi |
17110 | ||
10f2d63a | 17111 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 17112 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17113 | #define wxUSE_TOOLBAR 1 |
17114 | EOF | |
17115 | ||
1e6feb95 | 17116 | USES_CONTROLS=1 |
698dcdb6 | 17117 | |
360d6699 VZ |
17118 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
17119 | wxUSE_TOOLBAR_NATIVE="yes" | |
17120 | fi | |
17121 | ||
1e6feb95 VZ |
17122 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
17123 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
17124 | #define wxUSE_TOOLBAR_NATIVE 1 |
17125 | EOF | |
17126 | ||
1e6feb95 VZ |
17127 | USES_CONTROLS=1 |
17128 | fi | |
17129 | ||
17130 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
17131 | fi |
17132 | ||
10f2d63a VZ |
17133 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
17134 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 17135 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
17136 | else |
17137 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 17138 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 17139 | else |
698dcdb6 | 17140 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17141 | #define wxUSE_TOOLTIPS 1 |
17142 | EOF | |
17143 | ||
17144 | fi | |
17145 | fi | |
17146 | fi | |
17147 | ||
17148 | if test "$wxUSE_TREECTRL" = "yes"; then | |
17149 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17150 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17151 | #define wxUSE_TREECTRL 1 |
17152 | EOF | |
17153 | ||
1e6feb95 | 17154 | USES_CONTROLS=1 |
10f2d63a VZ |
17155 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
17156 | else | |
698dcdb6 | 17157 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17158 | fi |
17159 | fi | |
17160 | ||
9f41d601 | 17161 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 GD |
17162 | if test "$wxUSE_MAC" = 1; then |
17163 | echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2 | |
17164 | else | |
17165 | cat >> confdefs.h <<\EOF | |
9f41d601 RR |
17166 | #define wxUSE_POPUPWIN 1 |
17167 | EOF | |
17168 | ||
6abe4b65 GD |
17169 | USES_CONTROLS=1 |
17170 | fi | |
9f41d601 RR |
17171 | fi |
17172 | ||
1e6feb95 VZ |
17173 | if test "$USES_CONTROLS" = 1; then |
17174 | cat >> confdefs.h <<\EOF | |
17175 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
17176 | EOF |
17177 | ||
10f2d63a VZ |
17178 | fi |
17179 | ||
1e6feb95 VZ |
17180 | |
17181 | ||
24fd6d87 VZ |
17182 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
17183 | cat >> confdefs.h <<\EOF | |
17184 | #define wxUSE_DRAGIMAGE 1 | |
17185 | EOF | |
17186 | ||
17187 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
17188 | fi | |
17189 | ||
1e6feb95 | 17190 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 17191 | cat >> confdefs.h <<\EOF |
1e6feb95 | 17192 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
17193 | EOF |
17194 | ||
1e6feb95 | 17195 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
17196 | fi |
17197 | ||
1e6feb95 VZ |
17198 | if test "$wxUSE_METAFILE" = "yes"; then |
17199 | cat >> confdefs.h <<\EOF | |
17200 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
17201 | EOF |
17202 | ||
10f2d63a VZ |
17203 | fi |
17204 | ||
1e6feb95 VZ |
17205 | if test "$wxUSE_MIMETYPE" = "yes"; then |
17206 | cat >> confdefs.h <<\EOF | |
17207 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
17208 | EOF |
17209 | ||
10f2d63a VZ |
17210 | fi |
17211 | ||
17212 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
698dcdb6 | 17213 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17214 | #define wxUSE_MINIFRAME 1 |
17215 | EOF | |
17216 | ||
17217 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
17218 | fi | |
17219 | ||
17220 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 17221 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17222 | #define wxUSE_HTML 1 |
17223 | EOF | |
17224 | ||
17225 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
17226 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
17227 | fi | |
17228 | ||
17229 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 17230 | cat >> confdefs.h <<\EOF |
1e487827 VS |
17231 | #define wxUSE_VALIDATORS 1 |
17232 | EOF | |
703e0a69 | 17233 | |
698dcdb6 VZ |
17234 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
17235 | fi | |
17236 | ||
17237 | if test "$wxUSE_IMAGE" = "yes" ; then | |
17238 | cat >> confdefs.h <<\EOF | |
17239 | #define wxUSE_IMAGE 1 | |
17240 | EOF | |
17241 | ||
17242 | fi | |
17243 | ||
17244 | if test "$wxUSE_GIF" = "yes" ; then | |
17245 | cat >> confdefs.h <<\EOF | |
17246 | #define wxUSE_GIF 1 | |
17247 | EOF | |
17248 | ||
17249 | fi | |
17250 | ||
17251 | if test "$wxUSE_PCX" = "yes" ; then | |
17252 | cat >> confdefs.h <<\EOF | |
17253 | #define wxUSE_PCX 1 | |
17254 | EOF | |
17255 | ||
17256 | fi | |
17257 | ||
17258 | if test "$wxUSE_PNM" = "yes" ; then | |
17259 | cat >> confdefs.h <<\EOF | |
17260 | #define wxUSE_PNM 1 | |
17261 | EOF | |
17262 | ||
17263 | fi | |
17264 | ||
17265 | if test "$wxUSE_XPM" = "yes" ; then | |
17266 | cat >> confdefs.h <<\EOF | |
17267 | #define wxUSE_XPM 1 | |
17268 | EOF | |
17269 | ||
17270 | fi | |
17271 | ||
17272 | ||
1e6feb95 VZ |
17273 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
17274 | cat >> confdefs.h <<\EOF | |
17275 | #define wxUSE_CHOICEDLG 1 | |
17276 | EOF | |
17277 | ||
17278 | fi | |
17279 | ||
17280 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
17281 | cat >> confdefs.h <<\EOF | |
17282 | #define wxUSE_COLOURDLG 1 | |
17283 | EOF | |
17284 | ||
17285 | fi | |
17286 | ||
17287 | if test "$wxUSE_FILEDLG" = "yes"; then | |
17288 | cat >> confdefs.h <<\EOF | |
17289 | #define wxUSE_FILEDLG 1 | |
17290 | EOF | |
17291 | ||
17292 | fi | |
17293 | ||
17294 | if test "$wxUSE_FONTDLG" = "yes"; then | |
17295 | cat >> confdefs.h <<\EOF | |
17296 | #define wxUSE_FONTDLG 1 | |
17297 | EOF | |
17298 | ||
17299 | fi | |
17300 | ||
17301 | if test "$wxUSE_DIRDLG" = "yes"; then | |
17302 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17303 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
17304 | else | |
17305 | if test "$wxUSE_TREECTRL" != "yes"; then | |
17306 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
17307 | else | |
17308 | cat >> confdefs.h <<\EOF | |
17309 | #define wxUSE_DIRDLG 1 | |
17310 | EOF | |
17311 | ||
17312 | fi | |
17313 | fi | |
17314 | fi | |
17315 | ||
17316 | if test "$wxUSE_MSGDLG" = "yes"; then | |
17317 | cat >> confdefs.h <<\EOF | |
17318 | #define wxUSE_MSGDLG 1 | |
17319 | EOF | |
17320 | ||
17321 | fi | |
17322 | ||
17323 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
17324 | cat >> confdefs.h <<\EOF | |
17325 | #define wxUSE_NUMBERDLG 1 | |
17326 | EOF | |
17327 | ||
17328 | fi | |
17329 | ||
17330 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
17331 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17332 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
17333 | else | |
17334 | cat >> confdefs.h <<\EOF | |
17335 | #define wxUSE_PROGRESSDLG 1 | |
17336 | EOF | |
17337 | ||
17338 | fi | |
17339 | fi | |
17340 | ||
17341 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
17342 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17343 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
17344 | else | |
17345 | cat >> confdefs.h <<\EOF | |
17346 | #define wxUSE_STARTUP_TIPS 1 | |
17347 | EOF | |
17348 | ||
17349 | fi | |
17350 | fi | |
17351 | ||
17352 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
17353 | cat >> confdefs.h <<\EOF | |
17354 | #define wxUSE_TEXTDLG 1 | |
17355 | EOF | |
17356 | ||
17357 | fi | |
17358 | ||
b1f5d087 VZ |
17359 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
17360 | cat >> confdefs.h <<\EOF | |
17361 | #define wxUSE_WIZARDDLG 1 | |
17362 | EOF | |
17363 | ||
17364 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
17365 | fi | |
17366 | ||
1e6feb95 | 17367 | |
698dcdb6 VZ |
17368 | if test "$cross_compiling" = "yes"; then |
17369 | OSINFO="\"$host\"" | |
17370 | else | |
17371 | OSINFO=`uname -s -r -m` | |
17372 | OSINFO="\"$OSINFO\"" | |
17373 | fi | |
17374 | ||
17375 | cat >> confdefs.h <<EOF | |
17376 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
17377 | EOF | |
17378 | ||
17379 | ||
17380 | ||
17381 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" | |
17382 | OPENGL_LIBS="$OPENGL_LINK" | |
17383 | ||
17384 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
17385 | if test "$USE_MAC" = 1 ; then | |
17386 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" | |
17387 | fi | |
17388 | if test "$wxUSE_GUI" = "yes"; then | |
17389 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
17390 | fi | |
17391 | ||
17392 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
17393 | ||
17394 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
17395 | ||
17396 | if test "$wxUSE_GTK" = 1; then | |
17397 | WXCONFIG_INCLUDE="" | |
17398 | else | |
17399 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
17400 | fi | |
17401 | ||
17402 | if test "$GXX" = yes ; then | |
17403 | CXXWARNINGS="-Wall" | |
17404 | fi | |
17405 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
17406 | ||
17407 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
17408 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
17409 | ||
17410 | LDFLAGS="$LDFLAGS $PROFILE" | |
17411 | ||
17412 | if test "$wxUSE_GUI" = "yes"; then | |
17413 | ||
24fd6d87 | 17414 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ |
1e6feb95 VZ |
17415 | drawing dynamic event font fractal image \ |
17416 | minimal richedit widgets" | |
17417 | ||
17418 | if test "$wxUSE_UNIVERSAL" = "yes" ; then | |
17419 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" | |
17420 | fi | |
698dcdb6 VZ |
17421 | |
17422 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
17423 | else | |
17424 | SAMPLES_SUBDIRS="" | |
17425 | fi | |
17426 | ||
17427 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
17428 | ||
17429 | ||
17430 | ||
17431 | ||
17432 | ||
17433 | ||
17434 | ||
17435 | ||
17436 | ||
17437 | ||
17438 | ||
17439 | ||
17440 | ||
17441 | ||
17442 | ||
17443 | ||
17444 | ||
17445 | ||
17446 | ||
17447 | ||
17448 | ||
17449 | ||
17450 | ||
17451 | ||
17452 | ||
17453 | ||
17454 | ||
17455 | ||
17456 | ||
17457 | ||
17458 | ||
17459 | ||
17460 | ||
17461 | ||
17462 | ||
17463 | ||
17464 | ||
17465 | ||
17466 | ||
17467 | ||
17468 | ||
17469 | ||
17470 | ||
17471 | ||
17472 | ||
17473 | ||
17474 | ||
17475 | ||
17476 | ||
17477 | ||
17478 | ||
17479 | ||
17480 | ||
17481 | ||
17482 | ||
17483 | ||
17484 | ||
17485 | ||
17486 | ||
17487 | ||
17488 | ||
17489 | ||
17490 | ||
17491 | ||
17492 | ||
17493 | ||
17494 | ||
32832908 VZ |
17495 | |
17496 | ||
17497 | ||
17498 | ||
17499 | ||
17500 | ||
17501 | ||
2224580a | 17502 | |
dad6c0ea | 17503 | |
f6bcfd97 BP |
17504 | |
17505 | ||
17506 | ||
2f51a9ec GD |
17507 | |
17508 | ||
17509 | ||
17510 | ||
17511 | ||
17512 | ||
f6bcfd97 | 17513 | |
dad6c0ea | 17514 | |
caa2c79b | 17515 | |
3711412e | 17516 | |
1e6feb95 VZ |
17517 | |
17518 | ||
0f3f1cbc | 17519 | |
10f2d63a VZ |
17520 | |
17521 | ||
698dcdb6 | 17522 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
d4158b5d | 17523 | echo "configure:17524: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
17524 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
17525 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
17526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17527 | else |
698dcdb6 | 17528 | cat > conftestmake <<\EOF |
10f2d63a VZ |
17529 | all: |
17530 | @echo 'ac_maketemp="${MAKE}"' | |
17531 | EOF | |
17532 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 17533 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
17534 | if test -n "$ac_maketemp"; then |
17535 | eval ac_cv_prog_make_${ac_make}_set=yes | |
17536 | else | |
17537 | eval ac_cv_prog_make_${ac_make}_set=no | |
17538 | fi | |
698dcdb6 | 17539 | rm -f conftestmake |
10f2d63a VZ |
17540 | fi |
17541 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 17542 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
17543 | SET_MAKE= |
17544 | else | |
698dcdb6 | 17545 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
17546 | SET_MAKE="MAKE=${MAKE-make}" |
17547 | fi | |
17548 | ||
698dcdb6 | 17549 | |
00cf1208 RR |
17550 | if test -d include; then |
17551 | if test -d include/wx; then | |
1e6feb95 VZ |
17552 | if test -d include/wx/${SETUPH_DIR}; then |
17553 | if test -f include/wx/${SETUPH_DIR}/setup.h; then | |
17554 | mv -f include/wx/${SETUPH_DIR}/setup.h setup.h | |
00cf1208 RR |
17555 | fi |
17556 | fi | |
17557 | fi | |
17558 | fi | |
665bbe97 | 17559 | |
698dcdb6 | 17560 | |
10f2d63a | 17561 | |
2224580a | 17562 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 17563 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
17564 | wx_cv_path_ifs=$PATH_IFS |
17565 | wx_cv_program_ext=$PROGRAM_EXT | |
17566 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 17567 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 VS |
17568 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
17569 | wx_cv_target_library wx_cv_target_libtype | |
698dcdb6 | 17570 | subdirs="demos samples utils contrib" |
2224580a VZ |
17571 | |
17572 | fi | |
10f2d63a | 17573 | |
698dcdb6 VZ |
17574 | trap '' 1 2 15 |
17575 | cat > confcache <<\EOF | |
10f2d63a VZ |
17576 | # This file is a shell script that caches the results of configure |
17577 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
17578 | # scripts and configure runs. It is not useful on other systems. |
17579 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 17580 | # |
698dcdb6 VZ |
17581 | # By default, configure uses ./config.cache as the cache file, |
17582 | # creating it if it does not exist already. You can give configure | |
17583 | # the --cache-file=FILE option to use a different cache file; that is | |
17584 | # what configure does when it calls configure scripts in | |
17585 | # subdirectories, so they share the cache. | |
17586 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17587 | # config.status only pays attention to the cache file if you give it the | |
17588 | # --recheck option to rerun configure. | |
10f2d63a | 17589 | # |
698dcdb6 | 17590 | EOF |
10f2d63a VZ |
17591 | # The following way of writing the cache mishandles newlines in values, |
17592 | # but we know of no workaround that is simple, portable, and efficient. | |
17593 | # So, don't put newlines in cache variables' values. | |
17594 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17595 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
17596 | (set) 2>&1 | |
17597 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17598 | *ac_space=\ *) | |
17599 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17600 | # turns \\\\ into \\, and sed turns \\ into \). | |
17601 | sed -n \ | |
17602 | -e "s/'/'\\\\''/g" \ | |
17603 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17604 | ;; | |
17605 | *) | |
17606 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17607 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17608 | ;; | |
17609 | esac >> confcache | |
17610 | if cmp -s $cache_file confcache; then | |
17611 | : | |
17612 | else | |
10f2d63a | 17613 | if test -w $cache_file; then |
698dcdb6 VZ |
17614 | echo "updating cache $cache_file" |
17615 | cat confcache > $cache_file | |
10f2d63a VZ |
17616 | else |
17617 | echo "not updating unwritable cache $cache_file" | |
17618 | fi | |
17619 | fi | |
17620 | rm -f confcache | |
17621 | ||
698dcdb6 VZ |
17622 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
17623 | ||
10f2d63a VZ |
17624 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17625 | # Let make expand exec_prefix. | |
17626 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17627 | ||
698dcdb6 VZ |
17628 | # Any assignment to VPATH causes Sun make to only execute |
17629 | # the first set of double-colon rules, so remove it if not needed. | |
17630 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 17631 | if test "x$srcdir" = x.; then |
698dcdb6 | 17632 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
17633 | fi |
17634 | ||
698dcdb6 VZ |
17635 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
17636 | ||
10f2d63a VZ |
17637 | DEFS=-DHAVE_CONFIG_H |
17638 | ||
698dcdb6 | 17639 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 17640 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
17641 | |
17642 | echo creating $CONFIG_STATUS | |
17643 | rm -f $CONFIG_STATUS | |
17644 | cat > $CONFIG_STATUS <<EOF | |
17645 | #! /bin/sh | |
10f2d63a VZ |
17646 | # Generated automatically by configure. |
17647 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
17648 | # This directory was configured as follows, |
17649 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17650 | # | |
17651 | # $0 $ac_configure_args | |
17652 | # | |
10f2d63a | 17653 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 17654 | # configure, is in ./config.log if it exists. |
1e487827 | 17655 | |
698dcdb6 VZ |
17656 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
17657 | for ac_option | |
10f2d63a | 17658 | do |
698dcdb6 | 17659 | case "\$ac_option" in |
10f2d63a | 17660 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
17661 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
17662 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
17663 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
17664 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
17665 | exit 0 ;; | |
17666 | -help | --help | --hel | --he | --h) | |
17667 | echo "\$ac_cs_usage"; exit 0 ;; | |
17668 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
17669 | esac |
17670 | done | |
17671 | ||
698dcdb6 VZ |
17672 | ac_given_srcdir=$srcdir |
17673 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 17674 | |
698dcdb6 VZ |
17675 | trap 'rm -fr `echo " |
17676 | wx-config | |
17677 | src/make.env | |
17678 | src/makeprog.env | |
17679 | src/makelib.env | |
17680 | Makefile | |
17681 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 17682 | EOF |
698dcdb6 | 17683 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 17684 | |
698dcdb6 VZ |
17685 | # Protect against being on the right side of a sed subst in config.status. |
17686 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
17687 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
17688 | $ac_vpsub | |
17689 | $extrasub | |
17690 | s%@SHELL@%$SHELL%g | |
17691 | s%@CFLAGS@%$CFLAGS%g | |
17692 | s%@CPPFLAGS@%$CPPFLAGS%g | |
17693 | s%@CXXFLAGS@%$CXXFLAGS%g | |
17694 | s%@FFLAGS@%$FFLAGS%g | |
17695 | s%@DEFS@%$DEFS%g | |
17696 | s%@LDFLAGS@%$LDFLAGS%g | |
17697 | s%@LIBS@%$LIBS%g | |
17698 | s%@exec_prefix@%$exec_prefix%g | |
17699 | s%@prefix@%$prefix%g | |
17700 | s%@program_transform_name@%$program_transform_name%g | |
17701 | s%@bindir@%$bindir%g | |
17702 | s%@sbindir@%$sbindir%g | |
17703 | s%@libexecdir@%$libexecdir%g | |
17704 | s%@datadir@%$datadir%g | |
17705 | s%@sysconfdir@%$sysconfdir%g | |
17706 | s%@sharedstatedir@%$sharedstatedir%g | |
17707 | s%@localstatedir@%$localstatedir%g | |
17708 | s%@libdir@%$libdir%g | |
17709 | s%@includedir@%$includedir%g | |
17710 | s%@oldincludedir@%$oldincludedir%g | |
17711 | s%@infodir@%$infodir%g | |
17712 | s%@mandir@%$mandir%g | |
17713 | s%@host@%$host%g | |
17714 | s%@host_alias@%$host_alias%g | |
17715 | s%@host_cpu@%$host_cpu%g | |
17716 | s%@host_vendor@%$host_vendor%g | |
17717 | s%@host_os@%$host_os%g | |
17718 | s%@target@%$target%g | |
17719 | s%@target_alias@%$target_alias%g | |
17720 | s%@target_cpu@%$target_cpu%g | |
17721 | s%@target_vendor@%$target_vendor%g | |
17722 | s%@target_os@%$target_os%g | |
17723 | s%@build@%$build%g | |
17724 | s%@build_alias@%$build_alias%g | |
17725 | s%@build_cpu@%$build_cpu%g | |
17726 | s%@build_vendor@%$build_vendor%g | |
17727 | s%@build_os@%$build_os%g | |
17728 | s%@CC@%$CC%g | |
17729 | s%@CPP@%$CPP%g | |
17730 | s%@CXX@%$CXX%g | |
17731 | s%@CXXCPP@%$CXXCPP%g | |
17732 | s%@RANLIB@%$RANLIB%g | |
17733 | s%@AR@%$AR%g | |
17734 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
17735 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
17736 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
17737 | s%@STRIP@%$STRIP%g | |
17738 | s%@YACC@%$YACC%g | |
17739 | s%@LEX@%$LEX%g | |
17740 | s%@LEXLIB@%$LEXLIB%g | |
17741 | s%@LN_S@%$LN_S%g | |
17742 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
17743 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
17744 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 17745 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
17746 | s%@X_CFLAGS@%$X_CFLAGS%g |
17747 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
17748 | s%@X_LIBS@%$X_LIBS%g | |
17749 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
17750 | s%@REZ@%$REZ%g | |
17751 | s%@DEREZ@%$DEREZ%g | |
17752 | s%@LEX_STEM@%$LEX_STEM%g | |
17753 | s%@PATH_IFS@%$PATH_IFS%g | |
17754 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
17755 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
17756 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
17757 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
17758 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
17759 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
17760 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
17761 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
17762 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
17763 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
17764 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
17765 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
17766 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g | |
17767 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
17768 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
17769 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
17770 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
17771 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
17772 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
17773 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
17774 | s%@WX_ALL@%$WX_ALL%g | |
17775 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
17776 | s%@SHARED_LD@%$SHARED_LD%g | |
17777 | s%@PIC_FLAG@%$PIC_FLAG%g | |
17778 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
17779 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
17780 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
17781 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g | |
17782 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g | |
17783 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
17784 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
17785 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
17786 | s%@USE_GUI@%$USE_GUI%g | |
17787 | s%@AFMINSTALL@%$AFMINSTALL%g | |
1e6feb95 | 17788 | s%@SETUPH_DIR@%$SETUPH_DIR%g |
698dcdb6 VZ |
17789 | s%@TOOLKIT@%$TOOLKIT%g |
17790 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
17791 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
17792 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g | |
17793 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
1e6feb95 | 17794 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
698dcdb6 VZ |
17795 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
17796 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
17797 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
17798 | s%@GUIDIST@%$GUIDIST%g | |
17799 | s%@PORT_FILES@%$PORT_FILES%g | |
17800 | s%@DISTDIR@%$DISTDIR%g | |
17801 | s%@RPM_SPEC@%$RPM_SPEC%g | |
17802 | s%@RPM_FILES@%$RPM_FILES%g | |
17803 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
17804 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
17805 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
17806 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
17807 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
17808 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
17809 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
17810 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
17811 | s%@EXTRADEFS@%$EXTRADEFS%g | |
17812 | s%@LD_LIBS@%$LD_LIBS%g | |
17813 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g | |
17814 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
17815 | s%@RESPROGRAM@%$RESPROGRAM%g | |
17816 | s%@RESCOMP@%$RESCOMP%g | |
17817 | s%@RESFLAGS@%$RESFLAGS%g | |
17818 | s%@REZFLAGS@%$REZFLAGS%g | |
17819 | s%@DEREZFLAGS@%$DEREZFLAGS%g | |
17820 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
17821 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
17822 | s%@DLLTOOL@%$DLLTOOL%g | |
17823 | s%@AS@%$AS%g | |
17824 | s%@NM@%$NM%g | |
17825 | s%@LD@%$LD%g | |
17826 | s%@MAKEINFO@%$MAKEINFO%g | |
17827 | s%@SET_MAKE@%$SET_MAKE%g | |
17828 | s%@subdirs@%$subdirs%g | |
1e487827 | 17829 | |
1e487827 | 17830 | CEOF |
1e487827 VS |
17831 | EOF |
17832 | ||
698dcdb6 VZ |
17833 | cat >> $CONFIG_STATUS <<\EOF |
17834 | ||
17835 | # Split the substitutions into bite-sized pieces for seds with | |
17836 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
17837 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
17838 | ac_file=1 # Number of current file. | |
17839 | ac_beg=1 # First line for current file. | |
17840 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
17841 | ac_more_lines=: | |
17842 | ac_sed_cmds="" | |
17843 | while $ac_more_lines; do | |
17844 | if test $ac_beg -gt 1; then | |
17845 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
17846 | else | |
17847 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
17848 | fi | |
17849 | if test ! -s conftest.s$ac_file; then | |
17850 | ac_more_lines=false | |
17851 | rm -f conftest.s$ac_file | |
17852 | else | |
17853 | if test -z "$ac_sed_cmds"; then | |
17854 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 17855 | else |
698dcdb6 | 17856 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 17857 | fi |
698dcdb6 VZ |
17858 | ac_file=`expr $ac_file + 1` |
17859 | ac_beg=$ac_end | |
17860 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 17861 | fi |
698dcdb6 VZ |
17862 | done |
17863 | if test -z "$ac_sed_cmds"; then | |
17864 | ac_sed_cmds=cat | |
17865 | fi | |
17866 | EOF | |
10f2d63a | 17867 | |
698dcdb6 VZ |
17868 | cat >> $CONFIG_STATUS <<EOF |
17869 | ||
17870 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
17871 | src/make.env | |
17872 | src/makeprog.env | |
17873 | src/makelib.env | |
17874 | Makefile | |
17875 | "} | |
10f2d63a | 17876 | EOF |
698dcdb6 VZ |
17877 | cat >> $CONFIG_STATUS <<\EOF |
17878 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 17879 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
17880 | case "$ac_file" in |
17881 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17882 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17883 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
17884 | esac |
17885 | ||
698dcdb6 | 17886 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 17887 | |
698dcdb6 VZ |
17888 | # Remove last slash and all that follows it. Not all systems have dirname. |
17889 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
17890 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
17891 | # The file is in a subdirectory. | |
17892 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
17893 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 17894 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 17895 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
17896 | else |
17897 | ac_dir_suffix= ac_dots= | |
17898 | fi | |
17899 | ||
698dcdb6 VZ |
17900 | case "$ac_given_srcdir" in |
17901 | .) srcdir=. | |
17902 | if test -z "$ac_dots"; then top_srcdir=. | |
17903 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
17904 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 17905 | *) # Relative path. |
698dcdb6 VZ |
17906 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
17907 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
17908 | esac |
17909 | ||
698dcdb6 VZ |
17910 | case "$ac_given_INSTALL" in |
17911 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
17912 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
17913 | esac |
17914 | ||
698dcdb6 VZ |
17915 | echo creating "$ac_file" |
17916 | rm -f "$ac_file" | |
17917 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
17918 | case "$ac_file" in | |
17919 | *Makefile*) ac_comsub="1i\\ | |
17920 | # $configure_input" ;; | |
17921 | *) ac_comsub= ;; | |
17922 | esac | |
10f2d63a | 17923 | |
698dcdb6 VZ |
17924 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
17925 | sed -e "$ac_comsub | |
17926 | s%@configure_input@%$configure_input%g | |
17927 | s%@srcdir@%$srcdir%g | |
17928 | s%@top_srcdir@%$top_srcdir%g | |
17929 | s%@INSTALL@%$INSTALL%g | |
17930 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
17931 | fi; done | |
17932 | rm -f conftest.s* | |
10f2d63a VZ |
17933 | |
17934 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
17935 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
17936 | # | |
17937 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
17938 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
17939 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
17940 | ac_dC='\3' | |
17941 | ac_dD='%g' | |
17942 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
17943 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17944 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 17945 | ac_uC=' ' |
698dcdb6 VZ |
17946 | ac_uD='\4%g' |
17947 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
17948 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17949 | ac_eB='$%\1#\2define\3' | |
17950 | ac_eC=' ' | |
17951 | ac_eD='%g' | |
10f2d63a | 17952 | |
698dcdb6 VZ |
17953 | if test "${CONFIG_HEADERS+set}" != set; then |
17954 | EOF | |
17955 | cat >> $CONFIG_STATUS <<EOF | |
17956 | CONFIG_HEADERS="setup.h:setup.h.in" | |
17957 | EOF | |
17958 | cat >> $CONFIG_STATUS <<\EOF | |
17959 | fi | |
17960 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 17961 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
17962 | case "$ac_file" in |
17963 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17964 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17965 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
17966 | esac |
17967 | ||
698dcdb6 VZ |
17968 | echo creating $ac_file |
17969 | ||
17970 | rm -f conftest.frag conftest.in conftest.out | |
17971 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
17972 | cat $ac_file_inputs > conftest.in | |
17973 | ||
17974 | EOF | |
17975 | ||
17976 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
17977 | # the proper values into config.h.in to produce config.h. And first: | |
17978 | # Protect against being on the right side of a sed subst in config.status. | |
17979 | # Protect against being in an unquoted here document in config.status. | |
17980 | rm -f conftest.vals | |
17981 | cat > conftest.hdr <<\EOF | |
17982 | s/[\\&%]/\\&/g | |
17983 | s%[\\$`]%\\&%g | |
17984 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
17985 | s%ac_d%ac_u%gp | |
17986 | s%ac_u%ac_e%gp | |
17987 | EOF | |
17988 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
17989 | rm -f conftest.hdr | |
10f2d63a VZ |
17990 | |
17991 | # This sed command replaces #undef with comments. This is necessary, for | |
17992 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
17993 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
17994 | cat >> conftest.vals <<\EOF |
17995 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
17996 | EOF |
17997 | ||
698dcdb6 VZ |
17998 | # Break up conftest.vals because some shells have a limit on |
17999 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
18000 | |
18001 | rm -f conftest.tail | |
698dcdb6 | 18002 | while : |
10f2d63a | 18003 | do |
698dcdb6 VZ |
18004 | ac_lines=`grep -c . conftest.vals` |
18005 | # grep -c gives empty output for an empty file on some AIX systems. | |
18006 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
18007 | # Write a limited-size here document to conftest.frag. | |
18008 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
18009 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 18010 | echo 'CEOF |
698dcdb6 VZ |
18011 | sed -f conftest.frag conftest.in > conftest.out |
18012 | rm -f conftest.in | |
18013 | mv conftest.out conftest.in | |
18014 | ' >> $CONFIG_STATUS | |
18015 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
18016 | rm -f conftest.vals | |
18017 | mv conftest.tail conftest.vals | |
10f2d63a | 18018 | done |
698dcdb6 VZ |
18019 | rm -f conftest.vals |
18020 | ||
18021 | cat >> $CONFIG_STATUS <<\EOF | |
18022 | rm -f conftest.frag conftest.h | |
18023 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
18024 | cat conftest.in >> conftest.h | |
18025 | rm -f conftest.in | |
18026 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
18027 | echo "$ac_file is unchanged" | |
18028 | rm -f conftest.h | |
10f2d63a | 18029 | else |
698dcdb6 VZ |
18030 | # Remove last slash and all that follows it. Not all systems have dirname. |
18031 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 18032 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
18033 | # The file is in a subdirectory. |
18034 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 18035 | fi |
698dcdb6 VZ |
18036 | rm -f $ac_file |
18037 | mv conftest.h $ac_file | |
10f2d63a | 18038 | fi |
698dcdb6 VZ |
18039 | fi; done |
18040 | ||
10f2d63a | 18041 | EOF |
698dcdb6 | 18042 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 18043 | |
1e6feb95 | 18044 | SETUPH_DIR="${SETUPH_DIR}" |
698dcdb6 VZ |
18045 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
18046 | LN_S="${LN_S}" | |
18047 | ||
18048 | ||
18049 | EOF | |
18050 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 18051 | |
6ef41520 | 18052 | if test ! -f wx${TOOLKIT_NAME}-config; then |
991a5759 VZ |
18053 | chmod +x wx-config |
18054 | mv wx-config wx${TOOLKIT_NAME}-config | |
18055 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
18056 | fi | |
665bbe97 | 18057 | |
698dcdb6 | 18058 | |
00cf1208 RR |
18059 | if test ! -d lib; then |
18060 | mkdir lib | |
18061 | fi | |
18062 | if test ! -d lib/wx; then | |
18063 | mkdir lib/wx | |
18064 | fi | |
18065 | if test ! -d lib/wx/include; then | |
18066 | mkdir lib/wx/include | |
18067 | fi | |
18068 | if test ! -d lib/wx/include/wx; then | |
18069 | mkdir lib/wx/include/wx | |
18070 | fi | |
f6bcfd97 BP |
18071 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
18072 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
18073 | fi |
18074 | if test -f setup.h; then | |
066b00aa | 18075 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 18076 | fi |
07eb77a6 | 18077 | |
698dcdb6 | 18078 | |
10f2d63a VZ |
18079 | if test ! -d include; then |
18080 | mkdir include | |
18081 | fi | |
18082 | if test ! -d include/wx; then | |
18083 | mkdir include/wx | |
18084 | fi | |
1e6feb95 VZ |
18085 | if test ! -d include/wx/${SETUPH_DIR}; then |
18086 | mkdir include/wx/${SETUPH_DIR} | |
10f2d63a | 18087 | fi |
afc31813 | 18088 | if test -f setup.h; then |
1e6feb95 | 18089 | cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h |
afc31813 | 18090 | fi |
665bbe97 | 18091 | |
698dcdb6 VZ |
18092 | |
18093 | exit 0 | |
10f2d63a VZ |
18094 | EOF |
18095 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
18096 | rm -fr confdefs* $ac_clean_files |
18097 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 18098 | |
2224580a VZ |
18099 | if test "$no_recursion" != yes; then |
18100 | ||
18101 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
18102 | ac_sub_configure_args= | |
18103 | ac_prev= | |
18104 | for ac_arg in $ac_configure_args; do | |
18105 | if test -n "$ac_prev"; then | |
18106 | ac_prev= | |
18107 | continue | |
18108 | fi | |
698dcdb6 | 18109 | case "$ac_arg" in |
2224580a VZ |
18110 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
18111 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18112 | ac_prev=cache_file ;; | |
18113 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 18114 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
18115 | ;; |
18116 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18117 | ac_prev=srcdir ;; | |
18118 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18119 | ;; | |
18120 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
18121 | esac | |
18122 | done | |
18123 | ||
698dcdb6 | 18124 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
18125 | |
18126 | # Do not complain, so a configure script can configure whichever | |
18127 | # parts of a large source tree are present. | |
698dcdb6 VZ |
18128 | if test ! -d $srcdir/$ac_config_dir; then |
18129 | continue | |
18130 | fi | |
18131 | ||
18132 | echo configuring in $ac_config_dir | |
2224580a | 18133 | |
698dcdb6 | 18134 | case "$srcdir" in |
2224580a VZ |
18135 | .) ;; |
18136 | *) | |
698dcdb6 VZ |
18137 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
18138 | else | |
18139 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
18140 | fi | |
18141 | ;; | |
2224580a VZ |
18142 | esac |
18143 | ||
18144 | ac_popdir=`pwd` | |
698dcdb6 | 18145 | cd $ac_config_dir |
2224580a | 18146 | |
698dcdb6 VZ |
18147 | # A "../" for each directory in /$ac_config_dir. |
18148 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 18149 | |
698dcdb6 | 18150 | case "$srcdir" in |
2224580a VZ |
18151 | .) # No --srcdir option. We are building in place. |
18152 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
18153 | /*) # Absolute path. |
18154 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 18155 | *) # Relative path. |
698dcdb6 | 18156 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
18157 | esac |
18158 | ||
18159 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
18160 | if test -f $ac_sub_srcdir/configure; then |
18161 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
18162 | elif test -f $ac_sub_srcdir/configure.in; then |
18163 | ac_sub_configure=$ac_configure | |
18164 | else | |
698dcdb6 | 18165 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
18166 | ac_sub_configure= |
18167 | fi | |
18168 | ||
18169 | # The recursion is here. | |
18170 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 18171 | |
2224580a | 18172 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
18173 | case "$cache_file" in |
18174 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 18175 | *) # Relative path. |
698dcdb6 | 18176 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 18177 | esac |
698dcdb6 VZ |
18178 | case "$ac_given_INSTALL" in |
18179 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18180 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
18181 | esac | |
2224580a | 18182 | |
698dcdb6 | 18183 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 18184 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
18185 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
18186 | then : | |
18187 | else | |
18188 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
18189 | fi | |
2224580a VZ |
18190 | fi |
18191 | ||
18192 | cd $ac_popdir | |
18193 | done | |
18194 | fi | |
18195 | ||
698dcdb6 | 18196 |