]>
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 |
8168de4c | 201 | --enable-help use help (using external browser at present)" |
698dcdb6 | 202 | ac_help="$ac_help |
8168de4c | 203 | --enable-constraints use layout-constraints system" |
698dcdb6 | 204 | ac_help="$ac_help |
8168de4c | 205 | --enable-printarch use printing architecture" |
698dcdb6 | 206 | ac_help="$ac_help |
8168de4c | 207 | --enable-mdi use multiple document interface architecture" |
698dcdb6 | 208 | ac_help="$ac_help |
8168de4c | 209 | --enable-loggui use standard GUI logger" |
1e6feb95 | 210 | ac_help="$ac_help |
8168de4c | 211 | --enable-logwin use wxLogWindow" |
1e6feb95 | 212 | ac_help="$ac_help |
8168de4c | 213 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" |
698dcdb6 | 214 | ac_help="$ac_help |
8168de4c | 215 | --enable-prologio use Prolog IO library" |
698dcdb6 | 216 | ac_help="$ac_help |
8168de4c | 217 | --enable-resources use wxWindows resources" |
698dcdb6 | 218 | ac_help="$ac_help |
8168de4c | 219 | --enable-xresources use X resources for save (default for gtk+)" |
698dcdb6 | 220 | ac_help="$ac_help |
8168de4c | 221 | --enable-clipboard use wxClipboard classes" |
698dcdb6 | 222 | ac_help="$ac_help |
8168de4c | 223 | --enable-dnd use Drag'n'Drop classes" |
698dcdb6 | 224 | ac_help="$ac_help |
8168de4c | 225 | --enable-metafile use win32 metafiles" |
698dcdb6 | 226 | ac_help="$ac_help |
8168de4c | 227 | --enable-wxtree make wxTree library" |
698dcdb6 | 228 | ac_help="$ac_help |
8168de4c | 229 | --enable-controls use all usual controls" |
698dcdb6 | 230 | ac_help="$ac_help |
8168de4c | 231 | --enable-accel use accelerators" |
698dcdb6 | 232 | ac_help="$ac_help |
8168de4c | 233 | --enable-button use wxButton class" |
698dcdb6 | 234 | ac_help="$ac_help |
8168de4c | 235 | --enable-bmpbutton use wxBitmapButton class" |
698dcdb6 | 236 | ac_help="$ac_help |
8168de4c | 237 | --enable-calendar use wxCalendarCtrl class" |
1e6feb95 | 238 | ac_help="$ac_help |
8168de4c | 239 | --enable-caret use wxCaret class" |
1e6feb95 | 240 | ac_help="$ac_help |
8168de4c | 241 | --enable-checkbox use wxCheckBox class" |
698dcdb6 | 242 | ac_help="$ac_help |
8168de4c | 243 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" |
698dcdb6 | 244 | ac_help="$ac_help |
8168de4c | 245 | --enable-choice use wxChoice class" |
698dcdb6 | 246 | ac_help="$ac_help |
8168de4c | 247 | --enable-combobox use wxComboBox classes" |
698dcdb6 | 248 | ac_help="$ac_help |
8168de4c | 249 | --enable-gauge use wxGauge class" |
698dcdb6 | 250 | ac_help="$ac_help |
8168de4c | 251 | --enable-grid use wxGrid class" |
698dcdb6 | 252 | ac_help="$ac_help |
8168de4c | 253 | --enable-newgrid use new wxGrid class" |
698dcdb6 | 254 | ac_help="$ac_help |
8168de4c | 255 | --enable-imaglist use wxImageList class" |
698dcdb6 | 256 | ac_help="$ac_help |
8168de4c | 257 | --enable-listbox use wxListBox class" |
698dcdb6 | 258 | ac_help="$ac_help |
8168de4c | 259 | --enable-listctrl use wxListCtrl class" |
698dcdb6 | 260 | ac_help="$ac_help |
8168de4c | 261 | --enable-notebook use wxNotebook class" |
698dcdb6 | 262 | ac_help="$ac_help |
8168de4c | 263 | --enable-radiobox use wxRadioBox class" |
698dcdb6 | 264 | ac_help="$ac_help |
8168de4c | 265 | --enable-radiobtn use wxRadioButton class" |
698dcdb6 | 266 | ac_help="$ac_help |
8168de4c | 267 | --enable-sash use wxSashWindow class" |
698dcdb6 | 268 | ac_help="$ac_help |
8168de4c | 269 | --enable-scrollbar use wxScrollBar class and scrollable windows" |
698dcdb6 | 270 | ac_help="$ac_help |
8168de4c | 271 | --enable-slider use wxSlider class" |
698dcdb6 | 272 | ac_help="$ac_help |
8168de4c | 273 | --enable-spinbtn use wxSpinButton class" |
698dcdb6 | 274 | ac_help="$ac_help |
8168de4c | 275 | --enable-spinctrl use wxSpinCtrl class" |
698dcdb6 | 276 | ac_help="$ac_help |
8168de4c | 277 | --enable-splitter use wxSplitterWindow class" |
698dcdb6 | 278 | ac_help="$ac_help |
8168de4c | 279 | --enable-statbmp use wxStaticBitmap class" |
698dcdb6 | 280 | ac_help="$ac_help |
8168de4c | 281 | --enable-statbox use wxStaticBox class" |
698dcdb6 | 282 | ac_help="$ac_help |
8168de4c | 283 | --enable-statline use wxStaticLine class" |
698dcdb6 | 284 | ac_help="$ac_help |
8168de4c | 285 | --enable-stattext use wxStaticText class" |
1e6feb95 | 286 | ac_help="$ac_help |
8168de4c | 287 | --enable-statusbar use wxStatusBar class" |
698dcdb6 | 288 | ac_help="$ac_help |
8168de4c | 289 | --enable-tabdialog use wxTabControl class" |
698dcdb6 | 290 | ac_help="$ac_help |
8168de4c | 291 | --enable-textctrl use wxTextCtrl class" |
1e6feb95 | 292 | ac_help="$ac_help |
8168de4c | 293 | --enable-togglebtn use wxToggleButton class" |
698dcdb6 | 294 | ac_help="$ac_help |
8168de4c | 295 | --enable-toolbar use wxToolBar class" |
698dcdb6 | 296 | ac_help="$ac_help |
8168de4c | 297 | --enable-tbarnative use native wxToolBar class" |
698dcdb6 | 298 | ac_help="$ac_help |
8168de4c | 299 | --enable-tbarsmpl use wxToolBarSimple class" |
698dcdb6 | 300 | ac_help="$ac_help |
8168de4c | 301 | --enable-treectrl use wxTreeCtrl class" |
698dcdb6 | 302 | ac_help="$ac_help |
8168de4c | 303 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" |
698dcdb6 | 304 | ac_help="$ac_help |
8168de4c | 305 | --enable-choicedlg use wxChoiceDialog" |
1e6feb95 | 306 | ac_help="$ac_help |
8168de4c | 307 | --enable-coldlg use wxColourDialog" |
1e6feb95 | 308 | ac_help="$ac_help |
8168de4c | 309 | --enable-filedlg use wxFileDialog" |
1e6feb95 | 310 | ac_help="$ac_help |
8168de4c | 311 | --enable-fontdlg use wxFontDialog" |
1e6feb95 | 312 | ac_help="$ac_help |
8168de4c | 313 | --enable-dirdlg use wxDirDialog" |
698dcdb6 | 314 | ac_help="$ac_help |
8168de4c | 315 | --enable-msgdlg use wxMessageDialog" |
1e6feb95 | 316 | ac_help="$ac_help |
8168de4c | 317 | --enable-numberdlg use wxNumberEntryDialog" |
1e6feb95 | 318 | ac_help="$ac_help |
8168de4c | 319 | --enable-textdlg use wxTextDialog" |
698dcdb6 | 320 | ac_help="$ac_help |
8168de4c | 321 | --enable-tipdlg use startup tips" |
698dcdb6 | 322 | ac_help="$ac_help |
8168de4c | 323 | --enable-progressdlg use wxProgressDialog" |
b1f5d087 VZ |
324 | ac_help="$ac_help |
325 | --enable-wizarddlg use wxWizard" | |
698dcdb6 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-html use wxHTML sub-library" |
698dcdb6 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-splines use spline drawing code" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-joystick compile in joystick support (Linux only)" |
698dcdb6 | 342 | ac_help="$ac_help |
8168de4c | 343 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
344 | ac_help="$ac_help |
345 | --enable-dragimage use wxDragImage" | |
1e6feb95 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-image use wxImage class" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 354 | ac_help="$ac_help |
8168de4c | 355 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
356 | ac_help="$ac_help |
357 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
358 | ac_help="$ac_help | |
359 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
360 | ac_help="$ac_help | |
361 | --disable-gtktest Do not try to compile and run a test GTK program" | |
362 | ac_help="$ac_help | |
363 | --with-x use the X Window System" | |
10f2d63a VZ |
364 | |
365 | # Initialize some variables set by options. | |
366 | # The variables have the same names as the options, with | |
367 | # dashes changed to underlines. | |
698dcdb6 VZ |
368 | build=NONE |
369 | cache_file=./config.cache | |
10f2d63a | 370 | exec_prefix=NONE |
698dcdb6 | 371 | host=NONE |
10f2d63a | 372 | no_create= |
698dcdb6 | 373 | nonopt=NONE |
10f2d63a VZ |
374 | no_recursion= |
375 | prefix=NONE | |
376 | program_prefix=NONE | |
377 | program_suffix=NONE | |
378 | program_transform_name=s,x,x, | |
379 | silent= | |
380 | site= | |
381 | srcdir= | |
698dcdb6 | 382 | target=NONE |
10f2d63a VZ |
383 | verbose= |
384 | x_includes=NONE | |
385 | x_libraries=NONE | |
386 | bindir='${exec_prefix}/bin' | |
387 | sbindir='${exec_prefix}/sbin' | |
388 | libexecdir='${exec_prefix}/libexec' | |
389 | datadir='${prefix}/share' | |
390 | sysconfdir='${prefix}/etc' | |
391 | sharedstatedir='${prefix}/com' | |
392 | localstatedir='${prefix}/var' | |
393 | libdir='${exec_prefix}/lib' | |
394 | includedir='${prefix}/include' | |
395 | oldincludedir='/usr/include' | |
396 | infodir='${prefix}/info' | |
397 | mandir='${prefix}/man' | |
398 | ||
698dcdb6 VZ |
399 | # Initialize some other variables. |
400 | subdirs= | |
401 | MFLAGS= MAKEFLAGS= | |
402 | SHELL=${CONFIG_SHELL-/bin/sh} | |
403 | # Maximum number of lines to put in a shell here document. | |
404 | ac_max_here_lines=12 | |
10f2d63a VZ |
405 | |
406 | ac_prev= | |
407 | for ac_option | |
408 | do | |
698dcdb6 | 409 | |
10f2d63a VZ |
410 | # If the previous option needs an argument, assign it. |
411 | if test -n "$ac_prev"; then | |
412 | eval "$ac_prev=\$ac_option" | |
413 | ac_prev= | |
414 | continue | |
415 | fi | |
416 | ||
698dcdb6 VZ |
417 | case "$ac_option" in |
418 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
419 | *) ac_optarg= ;; | |
420 | esac | |
10f2d63a VZ |
421 | |
422 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
423 | ||
698dcdb6 | 424 | case "$ac_option" in |
10f2d63a VZ |
425 | |
426 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
427 | ac_prev=bindir ;; | |
428 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 429 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
430 | |
431 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 432 | ac_prev=build ;; |
10f2d63a | 433 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 434 | build="$ac_optarg" ;; |
10f2d63a VZ |
435 | |
436 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
437 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
438 | ac_prev=cache_file ;; | |
439 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
440 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 441 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
442 | |
443 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
444 | ac_prev=datadir ;; | |
445 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
446 | | --da=*) | |
698dcdb6 | 447 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
448 | |
449 | -disable-* | --disable-*) | |
698dcdb6 | 450 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 451 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
452 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
453 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
454 | fi | |
455 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
456 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
457 | |
458 | -enable-* | --enable-*) | |
698dcdb6 | 459 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 460 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
461 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
462 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
463 | fi | |
464 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
465 | case "$ac_option" in | |
466 | *=*) ;; | |
10f2d63a VZ |
467 | *) ac_optarg=yes ;; |
468 | esac | |
698dcdb6 | 469 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
470 | |
471 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
472 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
473 | | --exec | --exe | --ex) | |
474 | ac_prev=exec_prefix ;; | |
475 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
476 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
477 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 478 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
479 | |
480 | -gas | --gas | --ga | --g) | |
481 | # Obsolete; use --with-gas. | |
482 | with_gas=yes ;; | |
483 | ||
698dcdb6 VZ |
484 | -help | --help | --hel | --he) |
485 | # Omit some internal or obsolete options to make the list less imposing. | |
486 | # This message is too long to be a string in the A/UX 3.1 sh. | |
487 | cat << EOF | |
488 | Usage: configure [options] [host] | |
489 | Options: [defaults in brackets after descriptions] | |
490 | Configuration: | |
491 | --cache-file=FILE cache test results in FILE | |
492 | --help print this message | |
493 | --no-create do not create output files | |
494 | --quiet, --silent do not print \`checking...' messages | |
495 | --version print the version of autoconf that created configure | |
496 | Directory and file names: | |
497 | --prefix=PREFIX install architecture-independent files in PREFIX | |
498 | [$ac_default_prefix] | |
499 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
500 | [same as prefix] | |
501 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
502 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
503 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
504 | --datadir=DIR read-only architecture-independent data in DIR | |
505 | [PREFIX/share] | |
506 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
507 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
508 | [PREFIX/com] | |
509 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
510 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
511 | --includedir=DIR C header files in DIR [PREFIX/include] | |
512 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
513 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
514 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
515 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
516 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
517 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
518 | --program-transform-name=PROGRAM | |
519 | run sed PROGRAM on installed program names | |
520 | EOF | |
521 | cat << EOF | |
522 | Host type: | |
523 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
524 | --host=HOST configure for HOST [guessed] | |
525 | --target=TARGET configure for TARGET [TARGET=HOST] | |
526 | Features and packages: | |
527 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
528 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
529 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
530 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
531 | --x-includes=DIR X include files are in DIR | |
532 | --x-libraries=DIR X library files are in DIR | |
533 | EOF | |
534 | if test -n "$ac_help"; then | |
535 | echo "--enable and --with options recognized:$ac_help" | |
536 | fi | |
537 | exit 0 ;; | |
10f2d63a VZ |
538 | |
539 | -host | --host | --hos | --ho) | |
698dcdb6 | 540 | ac_prev=host ;; |
10f2d63a | 541 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 542 | host="$ac_optarg" ;; |
10f2d63a VZ |
543 | |
544 | -includedir | --includedir | --includedi | --included | --include \ | |
545 | | --includ | --inclu | --incl | --inc) | |
546 | ac_prev=includedir ;; | |
547 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
548 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 549 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
550 | |
551 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
552 | ac_prev=infodir ;; | |
553 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 554 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
555 | |
556 | -libdir | --libdir | --libdi | --libd) | |
557 | ac_prev=libdir ;; | |
558 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 559 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
560 | |
561 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
562 | | --libexe | --libex | --libe) | |
563 | ac_prev=libexecdir ;; | |
564 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
565 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 566 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
567 | |
568 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
569 | | --localstate | --localstat | --localsta | --localst \ | |
570 | | --locals | --local | --loca | --loc | --lo) | |
571 | ac_prev=localstatedir ;; | |
572 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
573 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
574 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 575 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
576 | |
577 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
578 | ac_prev=mandir ;; | |
579 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 580 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
581 | |
582 | -nfp | --nfp | --nf) | |
583 | # Obsolete; use --without-fp. | |
584 | with_fp=no ;; | |
585 | ||
586 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
587 | | --no-cr | --no-c) | |
588 | no_create=yes ;; | |
589 | ||
590 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
591 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
592 | no_recursion=yes ;; | |
593 | ||
594 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
595 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
596 | | --oldin | --oldi | --old | --ol | --o) | |
597 | ac_prev=oldincludedir ;; | |
598 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
599 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
600 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 601 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
602 | |
603 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
604 | ac_prev=prefix ;; | |
605 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 606 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
607 | |
608 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
609 | | --program-pre | --program-pr | --program-p) | |
610 | ac_prev=program_prefix ;; | |
611 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
612 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 613 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
614 | |
615 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
616 | | --program-suf | --program-su | --program-s) | |
617 | ac_prev=program_suffix ;; | |
618 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
619 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 620 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
621 | |
622 | -program-transform-name | --program-transform-name \ | |
623 | | --program-transform-nam | --program-transform-na \ | |
624 | | --program-transform-n | --program-transform- \ | |
625 | | --program-transform | --program-transfor \ | |
626 | | --program-transfo | --program-transf \ | |
627 | | --program-trans | --program-tran \ | |
628 | | --progr-tra | --program-tr | --program-t) | |
629 | ac_prev=program_transform_name ;; | |
630 | -program-transform-name=* | --program-transform-name=* \ | |
631 | | --program-transform-nam=* | --program-transform-na=* \ | |
632 | | --program-transform-n=* | --program-transform-=* \ | |
633 | | --program-transform=* | --program-transfor=* \ | |
634 | | --program-transfo=* | --program-transf=* \ | |
635 | | --program-trans=* | --program-tran=* \ | |
636 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 637 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
638 | |
639 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
640 | | -silent | --silent | --silen | --sile | --sil) | |
641 | silent=yes ;; | |
642 | ||
643 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
644 | ac_prev=sbindir ;; | |
645 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
646 | | --sbi=* | --sb=*) | |
698dcdb6 | 647 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
648 | |
649 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
650 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
651 | | --sharedst | --shareds | --shared | --share | --shar \ | |
652 | | --sha | --sh) | |
653 | ac_prev=sharedstatedir ;; | |
654 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
655 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
656 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
657 | | --sha=* | --sh=*) | |
698dcdb6 | 658 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
659 | |
660 | -site | --site | --sit) | |
661 | ac_prev=site ;; | |
662 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 663 | site="$ac_optarg" ;; |
10f2d63a VZ |
664 | |
665 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
666 | ac_prev=srcdir ;; | |
667 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 668 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
669 | |
670 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
671 | | --syscon | --sysco | --sysc | --sys | --sy) | |
672 | ac_prev=sysconfdir ;; | |
673 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
674 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 675 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
676 | |
677 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 678 | ac_prev=target ;; |
10f2d63a | 679 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 680 | target="$ac_optarg" ;; |
10f2d63a VZ |
681 | |
682 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
683 | verbose=yes ;; | |
684 | ||
698dcdb6 VZ |
685 | -version | --version | --versio | --versi | --vers) |
686 | echo "configure generated by autoconf version 2.13" | |
687 | exit 0 ;; | |
10f2d63a VZ |
688 | |
689 | -with-* | --with-*) | |
698dcdb6 | 690 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 691 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
692 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
693 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
694 | fi | |
10f2d63a | 695 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
696 | case "$ac_option" in |
697 | *=*) ;; | |
10f2d63a VZ |
698 | *) ac_optarg=yes ;; |
699 | esac | |
698dcdb6 | 700 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
701 | |
702 | -without-* | --without-*) | |
698dcdb6 | 703 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 704 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
705 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
706 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
707 | fi | |
708 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
709 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
710 | |
711 | --x) | |
712 | # Obsolete; use --with-x. | |
713 | with_x=yes ;; | |
714 | ||
715 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
716 | | --x-incl | --x-inc | --x-in | --x-i) | |
717 | ac_prev=x_includes ;; | |
718 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
719 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 720 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
721 | |
722 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
723 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
724 | ac_prev=x_libraries ;; | |
725 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
726 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 727 | x_libraries="$ac_optarg" ;; |
10f2d63a | 728 | |
698dcdb6 | 729 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
730 | ;; |
731 | ||
732 | *) | |
698dcdb6 VZ |
733 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
734 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
735 | fi | |
736 | if test "x$nonopt" != xNONE; then | |
737 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
738 | fi | |
739 | nonopt="$ac_option" | |
10f2d63a VZ |
740 | ;; |
741 | ||
742 | esac | |
743 | done | |
744 | ||
745 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
746 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
747 | fi | |
748 | ||
749 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
750 | ||
751 | # File descriptor usage: | |
752 | # 0 standard input | |
753 | # 1 file creation | |
754 | # 2 errors and warnings | |
755 | # 3 some systems may open it to /dev/tty | |
756 | # 4 used on the Kubota Titan | |
757 | # 6 checking for... messages and results | |
758 | # 5 compiler messages saved in config.log | |
759 | if test "$silent" = yes; then | |
760 | exec 6>/dev/null | |
761 | else | |
762 | exec 6>&1 | |
10f2d63a | 763 | fi |
698dcdb6 VZ |
764 | exec 5>./config.log |
765 | ||
766 | echo "\ | |
767 | This file contains any messages produced by compilers while | |
768 | running configure, to aid debugging if configure makes a mistake. | |
769 | " 1>&5 | |
10f2d63a | 770 | |
698dcdb6 VZ |
771 | # Strip out --no-create and --no-recursion so they do not pile up. |
772 | # Also quote any args containing shell metacharacters. | |
773 | ac_configure_args= | |
774 | for ac_arg | |
10f2d63a | 775 | do |
698dcdb6 VZ |
776 | case "$ac_arg" in |
777 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
778 | | --no-cr | --no-c) ;; | |
779 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
780 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
781 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
782 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
783 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
784 | esac |
785 | done | |
786 | ||
698dcdb6 VZ |
787 | # NLS nuisances. |
788 | # Only set these to C if already set. These must not be set unconditionally | |
789 | # because not all systems understand e.g. LANG=C (notably SCO). | |
790 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
791 | # Non-C LC_CTYPE values break the ctype check. | |
792 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
793 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
794 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
795 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 796 | |
698dcdb6 VZ |
797 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
798 | rm -rf conftest* confdefs.h | |
799 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
800 | echo > confdefs.h | |
10f2d63a | 801 | |
698dcdb6 VZ |
802 | # A filename unique to this package, relative to the directory that |
803 | # configure is in, which we can look for to find out if srcdir is correct. | |
804 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
805 | |
806 | # Find the source files, if location was not specified. | |
807 | if test -z "$srcdir"; then | |
808 | ac_srcdir_defaulted=yes | |
809 | # Try the directory containing this script, then its parent. | |
810 | ac_prog=$0 | |
698dcdb6 | 811 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
812 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
813 | srcdir=$ac_confdir | |
814 | if test ! -r $srcdir/$ac_unique_file; then | |
815 | srcdir=.. | |
816 | fi | |
817 | else | |
818 | ac_srcdir_defaulted=no | |
819 | fi | |
820 | if test ! -r $srcdir/$ac_unique_file; then | |
821 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 822 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 823 | else |
698dcdb6 | 824 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
825 | fi |
826 | fi | |
698dcdb6 | 827 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
828 | |
829 | # Prefer explicitly selected file to automatically selected ones. | |
830 | if test -z "$CONFIG_SITE"; then | |
831 | if test "x$prefix" != xNONE; then | |
832 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
833 | else | |
834 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
835 | fi | |
836 | fi | |
837 | for ac_site_file in $CONFIG_SITE; do | |
838 | if test -r "$ac_site_file"; then | |
698dcdb6 | 839 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
840 | . "$ac_site_file" |
841 | fi | |
842 | done | |
843 | ||
844 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
845 | echo "loading cache $cache_file" |
846 | . $cache_file | |
10f2d63a | 847 | else |
698dcdb6 VZ |
848 | echo "creating cache $cache_file" |
849 | > $cache_file | |
10f2d63a VZ |
850 | fi |
851 | ||
852 | ac_ext=c | |
698dcdb6 | 853 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 854 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
855 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
856 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
857 | cross_compiling=$ac_cv_prog_cc_cross | |
858 | ||
859 | ac_exeext= | |
860 | ac_objext=o | |
861 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
862 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
863 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
864 | ac_n= ac_c=' | |
865 | ' ac_t=' ' | |
866 | else | |
867 | ac_n=-n ac_c= ac_t= | |
868 | fi | |
10f2d63a | 869 | else |
698dcdb6 | 870 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 871 | fi |
698dcdb6 VZ |
872 | |
873 | ||
10f2d63a | 874 | |
7c66a493 VZ |
875 | ac_aux_dir= |
876 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
877 | if test -f $ac_dir/install-sh; then | |
878 | ac_aux_dir=$ac_dir | |
879 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
880 | break | |
881 | elif 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 | fi | |
886 | done | |
887 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 888 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 889 | fi |
698dcdb6 VZ |
890 | ac_config_guess=$ac_aux_dir/config.guess |
891 | ac_config_sub=$ac_aux_dir/config.sub | |
892 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 893 | |
698dcdb6 VZ |
894 | |
895 | # Do some error checking and defaulting for the host and target type. | |
896 | # The inputs are: | |
897 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
898 | # | |
899 | # The rules are: | |
900 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
901 | # same time. | |
902 | # 2. Host defaults to nonopt. | |
903 | # 3. If nonopt is not specified, then host defaults to the current host, | |
904 | # as determined by config.guess. | |
905 | # 4. Target and build default to nonopt. | |
906 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
907 | |
908 | # The aliases save the names the user supplied, while $host etc. | |
909 | # will get canonicalized. | |
698dcdb6 VZ |
910 | case $host---$target---$nonopt in |
911 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
912 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
913 | esac | |
914 | ||
915 | ||
916 | # Make sure we can run config.sub. | |
917 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
918 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
919 | fi | |
920 | ||
921 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
b1f5d087 | 922 | echo "configure:923: checking host system type" >&5 |
698dcdb6 VZ |
923 | |
924 | host_alias=$host | |
925 | case "$host_alias" in | |
926 | NONE) | |
927 | case $nonopt in | |
928 | NONE) | |
929 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
930 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
931 | fi ;; | |
932 | *) host_alias=$nonopt ;; | |
933 | esac ;; | |
934 | esac | |
935 | ||
936 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
937 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
938 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
939 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
940 | echo "$ac_t""$host" 1>&6 | |
941 | ||
942 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
b1f5d087 | 943 | echo "configure:944: checking target system type" >&5 |
698dcdb6 VZ |
944 | |
945 | target_alias=$target | |
946 | case "$target_alias" in | |
947 | NONE) | |
948 | case $nonopt in | |
949 | NONE) target_alias=$host_alias ;; | |
950 | *) target_alias=$nonopt ;; | |
951 | esac ;; | |
952 | esac | |
953 | ||
954 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
955 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
956 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
957 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
958 | echo "$ac_t""$target" 1>&6 | |
959 | ||
960 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
b1f5d087 | 961 | echo "configure:962: checking build system type" >&5 |
698dcdb6 VZ |
962 | |
963 | build_alias=$build | |
964 | case "$build_alias" in | |
965 | NONE) | |
966 | case $nonopt in | |
967 | NONE) build_alias=$host_alias ;; | |
968 | *) build_alias=$nonopt ;; | |
969 | esac ;; | |
970 | esac | |
971 | ||
972 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
973 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
974 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
975 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
976 | echo "$ac_t""$build" 1>&6 | |
977 | ||
978 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
979 | test "$program_prefix$program_suffix$program_transform_name" = \ |
980 | NONENONEs,x,x, && | |
981 | program_prefix=${target_alias}- | |
982 | ||
698dcdb6 VZ |
983 | |
984 | ||
10f2d63a | 985 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 986 | WX_MINOR_VERSION_NUMBER=3 |
6c01ec02 | 987 | WX_RELEASE_NUMBER=2 |
10f2d63a | 988 | |
10f2d63a | 989 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 990 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 991 | |
6c01ec02 | 992 | WX_CURRENT=1 |
6426998c RL |
993 | WX_REVISION=0 |
994 | WX_AGE=0 | |
995 | ||
698dcdb6 VZ |
996 | |
997 | ||
10f2d63a VZ |
998 | USE_UNIX=1 |
999 | USE_WIN32=0 | |
b12915c1 | 1000 | USE_BEOS=0 |
1216f52d | 1001 | USE_MAC=0 |
b12915c1 | 1002 | |
10f2d63a VZ |
1003 | USE_LINUX= |
1004 | USE_SGI= | |
1005 | USE_HPUX= | |
1006 | USE_SYSV= | |
1007 | USE_SVR4= | |
1008 | USE_AIX= | |
1009 | USE_SUN= | |
1010 | USE_SOLARIS= | |
1011 | USE_SUNOS= | |
1012 | USE_ALPHA= | |
1013 | USE_OSF= | |
1014 | USE_BSD= | |
1015 | USE_FREEBSD= | |
95c8801c | 1016 | USE_OPENBSD= |
f6bcfd97 | 1017 | USE_NETBSD= |
10f2d63a VZ |
1018 | USE_VMS= |
1019 | USE_ULTRIX= | |
1020 | USE_CYGWIN= | |
1021 | USE_MINGW= | |
1022 | USE_DATA_GENERAL= | |
1023 | ||
ab9b9eab VZ |
1024 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1025 | ||
1e6feb95 | 1026 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" |
10f2d63a VZ |
1027 | |
1028 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1029 | DEFAULT_wxUSE_MAC=0 |
1030 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1031 | DEFAULT_wxUSE_MOTIF=0 |
1032 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1033 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1034 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1035 | |
1036 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1037 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1038 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1039 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1040 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1041 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1042 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1043 | |
d6a55c4b VZ |
1044 | PROGRAM_EXT= |
1045 | ||
10f2d63a VZ |
1046 | case "${host}" in |
1047 | *-hp-hpux* ) | |
1048 | USE_HPUX=1 | |
1049 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1050 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
698dcdb6 | 1051 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1052 | #define __HPUX__ 1 |
1053 | EOF | |
1054 | ||
1055 | ;; | |
1056 | *-*-linux* ) | |
1057 | USE_LINUX=1 | |
698dcdb6 | 1058 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1059 | #define __LINUX__ 1 |
1060 | EOF | |
1061 | ||
1062 | TMP=`uname -m` | |
1063 | if test "x$TMP" = "xalpha"; then | |
1064 | USE_ALPHA=1 | |
698dcdb6 | 1065 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1066 | #define __ALPHA__ 1 |
1067 | EOF | |
1068 | ||
1069 | fi | |
1070 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1071 | ;; | |
1072 | *-*-irix5* | *-*-irix6* ) | |
1073 | USE_SGI=1 | |
1074 | USE_SVR4=1 | |
698dcdb6 | 1075 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1076 | #define __SGI__ 1 |
1077 | EOF | |
1078 | ||
698dcdb6 | 1079 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1080 | #define __SVR4__ 1 |
1081 | EOF | |
1082 | ||
1083 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1084 | ;; | |
1085 | *-*-solaris2* ) | |
1086 | USE_SUN=1 | |
1087 | USE_SOLARIS=1 | |
1088 | USE_SVR4=1 | |
698dcdb6 | 1089 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1090 | #define __SUN__ 1 |
1091 | EOF | |
1092 | ||
698dcdb6 | 1093 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1094 | #define __SOLARIS__ 1 |
1095 | EOF | |
1096 | ||
698dcdb6 | 1097 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1098 | #define __SVR4__ 1 |
1099 | EOF | |
1100 | ||
1101 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1102 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1103 | ;; |
1104 | *-*-sunos4* ) | |
1105 | USE_SUN=1 | |
1106 | USE_SUNOS=1 | |
1107 | USE_BSD=1 | |
698dcdb6 | 1108 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1109 | #define __SUN__ 1 |
1110 | EOF | |
1111 | ||
698dcdb6 | 1112 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1113 | #define __SUNOS__ 1 |
1114 | EOF | |
1115 | ||
698dcdb6 | 1116 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1117 | #define __BSD__ 1 |
1118 | EOF | |
1119 | ||
1120 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1121 | ;; | |
f6bcfd97 | 1122 | *-*-freebsd*) |
10f2d63a VZ |
1123 | USE_BSD=1 |
1124 | USE_FREEBSD=1 | |
698dcdb6 | 1125 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1126 | #define __FREEBSD__ 1 |
1127 | EOF | |
1128 | ||
698dcdb6 | 1129 | cat >> confdefs.h <<\EOF |
10f2d63a | 1130 | #define __BSD__ 1 |
95c8801c VS |
1131 | EOF |
1132 | ||
1133 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1134 | ;; | |
1135 | *-*-openbsd*) | |
1136 | USE_BSD=1 | |
1137 | USE_OPENBSD=1 | |
698dcdb6 | 1138 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1139 | #define __FREEBSD__ 1 |
1140 | EOF | |
1141 | ||
698dcdb6 | 1142 | cat >> confdefs.h <<\EOF |
95c8801c | 1143 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1144 | EOF |
1145 | ||
1146 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1147 | ;; | |
1148 | *-*-netbsd*) | |
1149 | USE_BSD=1 | |
1150 | USE_NETBSD=1 | |
698dcdb6 | 1151 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1152 | #define __FREEBSD__ 1 |
1153 | EOF | |
1154 | ||
698dcdb6 | 1155 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1156 | #define __NETBSD__ 1 |
10f2d63a VZ |
1157 | EOF |
1158 | ||
1159 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1160 | ;; | |
1161 | *-*-osf* ) | |
1162 | USE_ALPHA=1 | |
1163 | USE_OSF=1 | |
698dcdb6 | 1164 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1165 | #define __ALPHA__ 1 |
1166 | EOF | |
1167 | ||
698dcdb6 | 1168 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1169 | #define __OSF__ 1 |
1170 | EOF | |
1171 | ||
1172 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1173 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1174 | ;; |
1175 | *-*-dgux5* ) | |
1176 | USE_ALPHA=1 | |
1177 | USE_SVR4=1 | |
698dcdb6 | 1178 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1179 | #define __ALPHA__ 1 |
1180 | EOF | |
1181 | ||
698dcdb6 | 1182 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1183 | #define __SVR4__ 1 |
1184 | EOF | |
1185 | ||
1186 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1187 | ;; | |
1188 | *-*-sysv5* ) | |
1189 | USE_SYSV=1 | |
1190 | USE_SVR4=1 | |
698dcdb6 | 1191 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1192 | #define __SYSV__ 1 |
1193 | EOF | |
1194 | ||
698dcdb6 | 1195 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1196 | #define __SVR4__ 1 |
1197 | EOF | |
1198 | ||
1199 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1200 | ;; | |
1201 | *-*-aix* ) | |
1202 | USE_AIX=1 | |
1203 | USE_SYSV=1 | |
1204 | USE_SVR4=1 | |
698dcdb6 | 1205 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1206 | #define __AIX__ 1 |
1207 | EOF | |
1208 | ||
698dcdb6 | 1209 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1210 | #define __SYSV__ 1 |
1211 | EOF | |
1212 | ||
698dcdb6 | 1213 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1214 | #define __SVR4__ 1 |
1215 | EOF | |
1216 | ||
1217 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1218 | ;; | |
1219 | ||
1c8183e2 | 1220 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1221 | USE_UNIX=0 |
1222 | USE_WIN32=1 | |
698dcdb6 | 1223 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1224 | #define __WIN32__ 1 |
1225 | EOF | |
1226 | ||
698dcdb6 | 1227 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1228 | #define __WIN95__ 1 |
1229 | EOF | |
1230 | ||
698dcdb6 | 1231 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1232 | #define __WINDOWS__ 1 |
1233 | EOF | |
1234 | ||
698dcdb6 | 1235 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1236 | #define __GNUWIN32__ 1 |
1237 | EOF | |
1238 | ||
698dcdb6 | 1239 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1240 | #define STRICT 1 |
1241 | EOF | |
1242 | ||
698dcdb6 | 1243 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1244 | #define WINVER 0x0400 |
1245 | EOF | |
1246 | ||
cf27ef00 | 1247 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1248 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1249 | ;; | |
1250 | ||
1251 | *-pc-os2_emx ) | |
698dcdb6 | 1252 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1253 | #define __EMX__ 1 |
1254 | EOF | |
1255 | ||
cf27ef00 | 1256 | PROGRAM_EXT=".exe" |
e07802fc | 1257 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1258 | ;; |
1259 | ||
b4085ce6 GD |
1260 | *-*-darwin* ) |
1261 | USE_BSD=1 | |
1262 | USE_MAC=1 | |
698dcdb6 | 1263 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1264 | #define __MAC__ 1 |
1265 | EOF | |
1266 | ||
698dcdb6 | 1267 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1268 | #define __BSD__ 1 |
1269 | EOF | |
1270 | ||
698dcdb6 | 1271 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1272 | #define __UNIX__ 1 |
1273 | EOF | |
1274 | ||
1275 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1276 | ;; | |
1277 | ||
b12915c1 VZ |
1278 | *-*-beos* ) |
1279 | USE_BEOS=1 | |
698dcdb6 | 1280 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1281 | #define __BEOS__ 1 |
1282 | EOF | |
1283 | ||
1284 | ;; | |
1285 | ||
10f2d63a | 1286 | *) |
698dcdb6 | 1287 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1288 | esac |
1289 | ||
1290 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1291 | wxUSE_UNIX=yes |
698dcdb6 | 1292 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1293 | #define __UNIX__ 1 |
1294 | EOF | |
1295 | ||
698dcdb6 | 1296 | |
b12915c1 VZ |
1297 | SRC_SUBDIRS="$SRC_SUBDIRS unix" |
1298 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1299 | fi | |
1300 | ||
1301 | if test "$USE_BEOS" = 1; then | |
1302 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1303 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1304 | fi |
1305 | ||
1306 | if test "$USE_LINUX" = 1; then | |
698dcdb6 | 1307 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 |
b1f5d087 | 1308 | echo "configure:1309: checking for gettext in -lc" >&5 |
698dcdb6 VZ |
1309 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1310 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1311 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 1312 | else |
698dcdb6 VZ |
1313 | ac_save_LIBS="$LIBS" |
1314 | LIBS="-lc $LIBS" | |
1315 | cat > conftest.$ac_ext <<EOF | |
b1f5d087 | 1316 | #line 1317 "configure" |
698dcdb6 VZ |
1317 | #include "confdefs.h" |
1318 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1319 | /* We use char because int might match the return type of a gcc2 | |
1320 | builtin and then its argument prototype would still apply. */ | |
1321 | char gettext(); | |
10f2d63a | 1322 | |
698dcdb6 VZ |
1323 | int main() { |
1324 | gettext() | |
1325 | ; return 0; } | |
1326 | EOF | |
b1f5d087 | 1327 | if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
1328 | rm -rf conftest* |
1329 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 1330 | else |
698dcdb6 VZ |
1331 | echo "configure: failed program was:" >&5 |
1332 | cat conftest.$ac_ext >&5 | |
1333 | rm -rf conftest* | |
1334 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 1335 | fi |
698dcdb6 VZ |
1336 | rm -f conftest* |
1337 | LIBS="$ac_save_LIBS" | |
10f2d63a VZ |
1338 | |
1339 | fi | |
698dcdb6 VZ |
1340 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1341 | echo "$ac_t""yes" 1>&6 | |
1342 | cat >> confdefs.h <<\EOF | |
1343 | #define wxHAVE_GLIBC2 1 | |
1344 | EOF | |
10f2d63a VZ |
1345 | |
1346 | else | |
698dcdb6 | 1347 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
1348 | fi |
1349 | ||
1350 | fi | |
1351 | ||
1e487827 | 1352 | |
1e487827 | 1353 | |
6232543b | 1354 | |
10f2d63a VZ |
1355 | wx_arg_cache_file="configarg.cache" |
1356 | echo "loading argument cache $wx_arg_cache_file" | |
1357 | rm -f ${wx_arg_cache_file}.tmp | |
1358 | touch ${wx_arg_cache_file}.tmp | |
1359 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1360 | |
10f2d63a VZ |
1361 | |
1362 | DEBUG_CONFIGURE=0 | |
1363 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1364 | DEFAULT_wxUSE_UNIVERSAL=no |
1365 | ||
10f2d63a VZ |
1366 | DEFAULT_wxUSE_THREADS=yes |
1367 | ||
1368 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1369 | DEFAULT_wxUSE_BURNT_NAME=no |
1e6feb95 | 1370 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1371 | DEFAULT_wxUSE_PROFILE=no |
1372 | DEFAULT_wxUSE_NO_DEPS=no | |
1373 | DEFAULT_wxUSE_NO_RTTI=no | |
1374 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1375 | DEFAULT_wxUSE_PERMISSIVE=no | |
1376 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1377 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1378 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1379 | DEFAULT_wxUSE_MEM_TRACING=no | |
1380 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1381 | DEFAULT_wxUSE_DMALLOC=no | |
1382 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1383 | ||
1384 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1385 | DEFAULT_wxUSE_LOGWINDOW=no |
1386 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1387 | |
1388 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1389 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a VZ |
1390 | |
1391 | DEFAULT_wxUSE_ZLIB=no | |
1392 | DEFAULT_wxUSE_LIBPNG=no | |
1393 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1394 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1395 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1396 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1397 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1398 | |
eb4efbdc | 1399 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1400 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1401 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1402 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1403 | DEFAULT_wxUSE_DATETIME=no | |
1404 | DEFAULT_wxUSE_TIMEDATE=no | |
1405 | DEFAULT_wxUSE_TIMER=no | |
1406 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1407 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1408 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1409 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1410 | DEFAULT_wxUSE_WAVE=no |
1411 | DEFAULT_wxUSE_INTL=no | |
1412 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1413 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1414 | DEFAULT_wxUSE_STREAMS=no |
1415 | DEFAULT_wxUSE_SOCKETS=no | |
1416 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1417 | DEFAULT_wxUSE_SERIAL=no | |
1418 | DEFAULT_wxUSE_JOYSTICK=no | |
1419 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1420 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1421 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1422 | |
1423 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1424 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1425 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1426 | ||
1427 | DEFAULT_wxUSE_X_RESOURCES=no | |
1428 | DEFAULT_wxUSE_CLIPBOARD=no | |
1429 | DEFAULT_wxUSE_TOOLTIPS=no | |
1430 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1431 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1432 | DEFAULT_wxUSE_SPLINES=no |
1433 | ||
1434 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1435 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1436 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1437 | ||
1438 | DEFAULT_wxUSE_PROLOGIO=no | |
1439 | DEFAULT_wxUSE_RESOURCES=no | |
1440 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1441 | DEFAULT_wxUSE_IPC=no | |
1442 | DEFAULT_wxUSE_HELP=no | |
1443 | DEFAULT_wxUSE_WXTREE=no | |
1444 | DEFAULT_wxUSE_METAFILE=no | |
1e6feb95 | 1445 | DEFAULT_wxUSE_MIMETYPE=no |
10f2d63a VZ |
1446 | |
1447 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1448 | DEFAULT_wxUSE_CHOICEDLG=no |
1449 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1450 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 VZ |
1451 | DEFAULT_wxUSE_FILEDLG=no |
1452 | DEFAULT_wxUSE_FONTDLG=no | |
1453 | DEFAULT_wxUSE_MSGDLG=no | |
1454 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a VZ |
1455 | DEFAULT_wxUSE_TEXTDLG=no |
1456 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1457 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1458 | DEFAULT_wxUSE_WIZARDDLG=no |
1459 | ||
1e6feb95 | 1460 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1461 | DEFAULT_wxUSE_MINIFRAME=no |
1462 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1463 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1464 | DEFAULT_wxUSE_FS_INET=no |
1465 | DEFAULT_wxUSE_FS_ZIP=no | |
1466 | DEFAULT_wxUSE_BUSYINFO=no | |
1467 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1468 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1469 | |
1470 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1471 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1472 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1473 | DEFAULT_wxUSE_CALCTRL=no |
1474 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1475 | DEFAULT_wxUSE_CHECKBOX=no |
1476 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1477 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1478 | DEFAULT_wxUSE_COMBOBOX=no |
1479 | DEFAULT_wxUSE_GAUGE=no | |
1480 | DEFAULT_wxUSE_GRID=no | |
1481 | DEFAULT_wxUSE_NEW_GRID=no | |
1482 | DEFAULT_wxUSE_IMAGLIST=no | |
1483 | DEFAULT_wxUSE_LISTBOX=no | |
1484 | DEFAULT_wxUSE_LISTCTRL=no | |
1485 | DEFAULT_wxUSE_NOTEBOOK=no | |
1486 | DEFAULT_wxUSE_RADIOBOX=no | |
1487 | DEFAULT_wxUSE_RADIOBTN=no | |
1488 | DEFAULT_wxUSE_SASH=no | |
1489 | DEFAULT_wxUSE_SCROLLBAR=no | |
1490 | DEFAULT_wxUSE_SLIDER=no | |
1491 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1492 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1493 | DEFAULT_wxUSE_SPLITTER=no |
1494 | DEFAULT_wxUSE_STATBMP=no | |
1495 | DEFAULT_wxUSE_STATBOX=no | |
1496 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1497 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1498 | DEFAULT_wxUSE_STATUSBAR=yes |
1499 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1500 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1501 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1502 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1503 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1504 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1505 | DEFAULT_wxUSE_TREECTRL=no |
1506 | ||
1507 | DEFAULT_wxUSE_UNICODE=no | |
1508 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1509 | ||
0046ff7c | 1510 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1511 | DEFAULT_wxUSE_GIF=no |
1512 | DEFAULT_wxUSE_PCX=no | |
1513 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1514 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1515 | else |
1e6feb95 VZ |
1516 | DEFAULT_wxUSE_UNIVERSAL=no |
1517 | ||
10f2d63a VZ |
1518 | DEFAULT_wxUSE_THREADS=yes |
1519 | ||
1520 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1521 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1522 | DEFAULT_wxUSE_OPTIMISE=yes |
1523 | DEFAULT_wxUSE_PROFILE=no | |
1524 | DEFAULT_wxUSE_NO_DEPS=no | |
1525 | DEFAULT_wxUSE_NO_RTTI=no | |
1526 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1527 | DEFAULT_wxUSE_PERMISSIVE=no | |
1528 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1529 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1530 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1531 | DEFAULT_wxUSE_MEM_TRACING=no | |
1532 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1533 | DEFAULT_wxUSE_DMALLOC=no | |
1534 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1535 | ||
1536 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1537 | DEFAULT_wxUSE_LOGWINDOW=yes |
1538 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1539 | |
1540 | DEFAULT_wxUSE_GUI=yes | |
1541 | ||
1542 | DEFAULT_wxUSE_ZLIB=yes | |
1543 | DEFAULT_wxUSE_LIBPNG=yes | |
1544 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1545 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1546 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1547 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1548 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1549 | |
eb4efbdc | 1550 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1551 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1552 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1553 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1554 | DEFAULT_wxUSE_DATETIME=yes | |
1555 | DEFAULT_wxUSE_TIMEDATE=no | |
1556 | DEFAULT_wxUSE_TIMER=yes | |
1557 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1558 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1559 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1560 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1561 | DEFAULT_wxUSE_WAVE=no |
1562 | DEFAULT_wxUSE_INTL=yes | |
1563 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1564 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1565 | DEFAULT_wxUSE_STREAMS=yes |
1566 | DEFAULT_wxUSE_SOCKETS=yes | |
1567 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1568 | DEFAULT_wxUSE_SERIAL=yes | |
1569 | DEFAULT_wxUSE_JOYSTICK=yes | |
1570 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1571 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1572 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1573 | |
1574 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1575 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1576 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1577 | ||
1578 | DEFAULT_wxUSE_X_RESOURCES=no | |
1579 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1580 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1581 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1582 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1583 | DEFAULT_wxUSE_SPLINES=yes |
1584 | ||
1585 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1586 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1587 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1588 | ||
1589 | DEFAULT_wxUSE_PROLOGIO=yes | |
1590 | DEFAULT_wxUSE_RESOURCES=yes | |
1591 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1592 | DEFAULT_wxUSE_IPC=yes | |
1593 | DEFAULT_wxUSE_HELP=yes | |
1594 | DEFAULT_wxUSE_WXTREE=yes | |
1595 | DEFAULT_wxUSE_METAFILE=yes | |
1e6feb95 | 1596 | DEFAULT_wxUSE_MIMETYPE=yes |
10f2d63a VZ |
1597 | |
1598 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1599 | DEFAULT_wxUSE_CHOICEDLG=yes |
1600 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1601 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 VZ |
1602 | DEFAULT_wxUSE_FILEDLG=yes |
1603 | DEFAULT_wxUSE_FONTDLG=yes | |
1604 | DEFAULT_wxUSE_MSGDLG=yes | |
1605 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a VZ |
1606 | DEFAULT_wxUSE_TEXTDLG=yes |
1607 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1608 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1609 | DEFAULT_wxUSE_WIZARDDLG=yes |
1610 | ||
1e6feb95 | 1611 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1612 | DEFAULT_wxUSE_MINIFRAME=yes |
1613 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1614 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1615 | DEFAULT_wxUSE_FS_INET=yes |
1616 | DEFAULT_wxUSE_FS_ZIP=yes | |
1617 | DEFAULT_wxUSE_BUSYINFO=yes | |
1618 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1619 | DEFAULT_wxUSE_VALIDATORS=yes | |
1620 | ||
1621 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1622 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1623 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1624 | DEFAULT_wxUSE_CALCTRL=yes |
1625 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1626 | DEFAULT_wxUSE_CHECKBOX=yes |
1627 | DEFAULT_wxUSE_CHECKLST=yes | |
1628 | DEFAULT_wxUSE_CHOICE=yes | |
1629 | DEFAULT_wxUSE_COMBOBOX=yes | |
1630 | DEFAULT_wxUSE_GAUGE=yes | |
1631 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1632 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1633 | DEFAULT_wxUSE_IMAGLIST=yes |
1634 | DEFAULT_wxUSE_LISTBOX=yes | |
1635 | DEFAULT_wxUSE_LISTCTRL=yes | |
1636 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1637 | DEFAULT_wxUSE_RADIOBOX=yes | |
1638 | DEFAULT_wxUSE_RADIOBTN=yes | |
1639 | DEFAULT_wxUSE_SASH=yes | |
1640 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1641 | DEFAULT_wxUSE_SLIDER=yes | |
1642 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1643 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1644 | DEFAULT_wxUSE_SPLITTER=yes |
1645 | DEFAULT_wxUSE_STATBMP=yes | |
1646 | DEFAULT_wxUSE_STATBOX=yes | |
1647 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1648 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1649 | DEFAULT_wxUSE_STATUSBAR=yes |
1650 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1651 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1652 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1653 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1654 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1655 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1656 | DEFAULT_wxUSE_TREECTRL=yes |
1657 | ||
1658 | DEFAULT_wxUSE_UNICODE=no | |
1659 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1660 | ||
0046ff7c | 1661 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1662 | DEFAULT_wxUSE_GIF=yes |
1663 | DEFAULT_wxUSE_PCX=yes | |
1664 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1665 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1666 | fi |
1667 | ||
698dcdb6 VZ |
1668 | |
1669 | ||
10f2d63a VZ |
1670 | for toolkit in `echo $ALL_TOOLKITS`; do |
1671 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1672 | if test "x$LINE" != x ; then | |
1673 | has_toolkit_in_cache=1 | |
1674 | eval "DEFAULT_$LINE" | |
1675 | eval "CACHE_$toolkit=1" | |
1676 | fi | |
1677 | done | |
1678 | ||
698dcdb6 VZ |
1679 | |
1680 | ||
1681 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
f33f19dd | 1682 | echo "configure:1683: checking for --enable-gui" >&5 |
10f2d63a VZ |
1683 | no_cache=0 |
1684 | # Check whether --enable-gui or --disable-gui was given. | |
1685 | if test "${enable_gui+set}" = set; then | |
1686 | enableval="$enable_gui" | |
698dcdb6 | 1687 | |
10f2d63a VZ |
1688 | if test "$enableval" = yes; then |
1689 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1690 | else | |
1691 | ac_cv_use_gui='wxUSE_GUI=no' | |
1692 | fi | |
698dcdb6 | 1693 | |
10f2d63a | 1694 | else |
698dcdb6 | 1695 | |
10f2d63a VZ |
1696 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1697 | if test "x$LINE" != x ; then | |
1698 | eval "DEFAULT_$LINE" | |
1699 | else | |
1700 | no_cache=1 | |
1701 | fi | |
1702 | ||
1703 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1704 | |
1705 | fi | |
10f2d63a VZ |
1706 | |
1707 | ||
1708 | eval "$ac_cv_use_gui" | |
1709 | if test "$no_cache" != 1; then | |
1710 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1711 | fi | |
1712 | ||
1713 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1714 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1715 | else |
698dcdb6 | 1716 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1717 | fi |
698dcdb6 | 1718 | |
10f2d63a | 1719 | |
b12915c1 | 1720 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1721 | |
1e6feb95 VZ |
1722 | |
1723 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
f33f19dd | 1724 | echo "configure:1725: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1725 | no_cache=0 |
1726 | # Check whether --enable-universal or --disable-universal was given. | |
1727 | if test "${enable_universal+set}" = set; then | |
1728 | enableval="$enable_universal" | |
1729 | ||
1730 | if test "$enableval" = yes; then | |
1731 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1732 | else | |
1733 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1734 | fi | |
1735 | ||
1736 | else | |
1737 | ||
1738 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1739 | if test "x$LINE" != x ; then | |
1740 | eval "DEFAULT_$LINE" | |
1741 | else | |
1742 | no_cache=1 | |
1743 | fi | |
1744 | ||
1745 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1746 | ||
1747 | fi | |
1748 | ||
1749 | ||
1750 | eval "$ac_cv_use_universal" | |
1751 | if test "$no_cache" != 1; then | |
1752 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1753 | fi | |
1754 | ||
1755 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1756 | echo "$ac_t""yes" 1>&6 | |
1757 | else | |
1758 | echo "$ac_t""no" 1>&6 | |
1759 | fi | |
1760 | ||
10f2d63a VZ |
1761 | # Check whether --with-gtk or --without-gtk was given. |
1762 | if test "${with_gtk+set}" = set; then | |
1763 | withval="$with_gtk" | |
1764 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1765 | fi |
10f2d63a VZ |
1766 | |
1767 | # Check whether --with-motif or --without-motif was given. | |
1768 | if test "${with_motif+set}" = set; then | |
1769 | withval="$with_motif" | |
1770 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1771 | fi |
10f2d63a | 1772 | |
b4085ce6 GD |
1773 | # Check whether --with-mac or --without-mac was given. |
1774 | if test "${with_mac+set}" = set; then | |
1775 | withval="$with_mac" | |
1776 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1777 | fi |
b4085ce6 | 1778 | |
10f2d63a VZ |
1779 | # Check whether --with-wine or --without-wine was given. |
1780 | if test "${with_wine+set}" = set; then | |
1781 | withval="$with_wine" | |
1782 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1783 | fi |
10f2d63a VZ |
1784 | |
1785 | # Check whether --with-cygwin or --without-cygwin was given. | |
1786 | if test "${with_cygwin+set}" = set; then | |
1787 | withval="$with_cygwin" | |
1788 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1789 | fi |
10f2d63a VZ |
1790 | |
1791 | # Check whether --with-mingw or --without-mingw was given. | |
1792 | if test "${with_mingw+set}" = set; then | |
1793 | withval="$with_mingw" | |
1794 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1795 | fi |
10f2d63a | 1796 | |
e07802fc VZ |
1797 | # Check whether --with-pm or --without-pm was given. |
1798 | if test "${with_pm+set}" = set; then | |
1799 | withval="$with_pm" | |
1800 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1801 | fi |
1802 | ||
1e6feb95 VZ |
1803 | # Check whether --with-mgl or --without-mgl was given. |
1804 | if test "${with_mgl+set}" = set; then | |
1805 | withval="$with_mgl" | |
1806 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1807 | fi | |
1808 | ||
10f2d63a | 1809 | |
8168de4c VZ |
1810 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1811 | if test "${enable_gtk2+set}" = set; then | |
1812 | enableval="$enable_gtk2" | |
1813 | wxUSE_GTK2=1 | |
10f2d63a | 1814 | else |
8168de4c | 1815 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1816 | fi |
1817 | ||
703e0a69 | 1818 | |
1e487827 | 1819 | |
698dcdb6 | 1820 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
f33f19dd | 1821 | echo "configure:1822: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1822 | no_cache=0 |
1823 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1824 | if test "${with_libpng+set}" = set; then |
1825 | withval="$with_libpng" | |
698dcdb6 | 1826 | |
10f2d63a | 1827 | if test "$withval" = yes; then |
b12915c1 | 1828 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1829 | elif test "$withval" = no; then |
b12915c1 | 1830 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1831 | elif test "$withval" = sys; then |
1832 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1833 | else | |
698dcdb6 | 1834 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1835 | fi |
698dcdb6 | 1836 | |
10f2d63a | 1837 | else |
698dcdb6 | 1838 | |
b12915c1 | 1839 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1840 | if test "x$LINE" != x ; then |
1841 | eval "DEFAULT_$LINE" | |
1842 | else | |
1843 | no_cache=1 | |
1844 | fi | |
1845 | ||
b12915c1 | 1846 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1847 | |
1848 | fi | |
10f2d63a VZ |
1849 | |
1850 | ||
b12915c1 | 1851 | eval "$ac_cv_use_libpng" |
10f2d63a | 1852 | if test "$no_cache" != 1; then |
b12915c1 | 1853 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1854 | fi |
1855 | ||
b12915c1 | 1856 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1857 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1858 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1859 | echo "$ac_t""no" 1>&6 |
422107f9 | 1860 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1861 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1862 | else |
698dcdb6 | 1863 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1864 | fi |
698dcdb6 | 1865 | |
10f2d63a | 1866 | |
698dcdb6 | 1867 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
f33f19dd | 1868 | echo "configure:1869: checking for --with-libjpeg" >&5 |
10f2d63a | 1869 | no_cache=0 |
698dcdb6 | 1870 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1871 | if test "${with_libjpeg+set}" = set; then |
1872 | withval="$with_libjpeg" | |
698dcdb6 | 1873 | |
10f2d63a | 1874 | if test "$withval" = yes; then |
b12915c1 | 1875 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1876 | elif test "$withval" = no; then |
b12915c1 | 1877 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1878 | elif test "$withval" = sys; then |
1879 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1880 | else | |
698dcdb6 | 1881 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1882 | fi |
698dcdb6 | 1883 | |
10f2d63a | 1884 | else |
698dcdb6 | 1885 | |
b12915c1 | 1886 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1887 | if test "x$LINE" != x ; then |
1888 | eval "DEFAULT_$LINE" | |
1889 | else | |
1890 | no_cache=1 | |
1891 | fi | |
1892 | ||
b12915c1 | 1893 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1894 | |
1895 | fi | |
10f2d63a VZ |
1896 | |
1897 | ||
b12915c1 | 1898 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1899 | if test "$no_cache" != 1; then |
b12915c1 | 1900 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1901 | fi |
1902 | ||
b12915c1 | 1903 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1904 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1905 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1906 | echo "$ac_t""no" 1>&6 |
422107f9 | 1907 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1908 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1909 | else |
698dcdb6 | 1910 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1911 | fi |
698dcdb6 | 1912 | |
10f2d63a | 1913 | |
698dcdb6 | 1914 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
f33f19dd | 1915 | echo "configure:1916: checking for --with-libtiff" >&5 |
10f2d63a | 1916 | no_cache=0 |
698dcdb6 | 1917 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1918 | if test "${with_libtiff+set}" = set; then |
1919 | withval="$with_libtiff" | |
698dcdb6 | 1920 | |
10f2d63a | 1921 | if test "$withval" = yes; then |
b12915c1 | 1922 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1923 | elif test "$withval" = no; then |
b12915c1 | 1924 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1925 | elif test "$withval" = sys; then |
1926 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1927 | else | |
698dcdb6 | 1928 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1929 | fi |
698dcdb6 | 1930 | |
10f2d63a | 1931 | else |
698dcdb6 | 1932 | |
b12915c1 | 1933 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1934 | if test "x$LINE" != x ; then |
1935 | eval "DEFAULT_$LINE" | |
1936 | else | |
1937 | no_cache=1 | |
1938 | fi | |
1939 | ||
b12915c1 | 1940 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1941 | |
1942 | fi | |
10f2d63a VZ |
1943 | |
1944 | ||
b12915c1 | 1945 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1946 | if test "$no_cache" != 1; then |
b12915c1 | 1947 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1948 | fi |
1949 | ||
b12915c1 | 1950 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1951 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1952 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1953 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1954 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1955 | echo "$ac_t""system version" 1>&6 |
0dcf9893 | 1956 | else |
698dcdb6 | 1957 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1958 | fi |
698dcdb6 | 1959 | |
10f2d63a | 1960 | |
698dcdb6 | 1961 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
f33f19dd | 1962 | echo "configure:1963: checking for --with-freetype" >&5 |
3fed1840 | 1963 | no_cache=0 |
698dcdb6 | 1964 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
1965 | if test "${with_freetype+set}" = set; then |
1966 | withval="$with_freetype" | |
698dcdb6 | 1967 | |
3fed1840 RR |
1968 | if test "$withval" = yes; then |
1969 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1970 | elif test "$withval" = no; then | |
1971 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1972 | elif test "$withval" = sys; then | |
1973 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1974 | else | |
698dcdb6 | 1975 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1976 | fi |
698dcdb6 | 1977 | |
3fed1840 | 1978 | else |
698dcdb6 | 1979 | |
3fed1840 RR |
1980 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
1981 | if test "x$LINE" != x ; then | |
1982 | eval "DEFAULT_$LINE" | |
1983 | else | |
1984 | no_cache=1 | |
1985 | fi | |
1986 | ||
1987 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
1988 | |
1989 | fi | |
3fed1840 RR |
1990 | |
1991 | ||
1992 | eval "$ac_cv_use_freetype" | |
1993 | if test "$no_cache" != 1; then | |
1994 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
1995 | fi | |
1996 | ||
1997 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 1998 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 1999 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 2000 | echo "$ac_t""no" 1>&6 |
3fed1840 | 2001 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 2002 | echo "$ac_t""system version" 1>&6 |
3fed1840 | 2003 | else |
698dcdb6 | 2004 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 2005 | fi |
698dcdb6 | 2006 | |
3fed1840 | 2007 | |
698dcdb6 | 2008 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
f33f19dd | 2009 | echo "configure:2010: checking for --with-opengl" >&5 |
10f2d63a | 2010 | no_cache=0 |
698dcdb6 | 2011 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2012 | if test "${with_opengl+set}" = set; then |
2013 | withval="$with_opengl" | |
698dcdb6 | 2014 | |
10f2d63a | 2015 | if test "$withval" = yes; then |
b12915c1 | 2016 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2017 | else |
b12915c1 | 2018 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2019 | fi |
698dcdb6 | 2020 | |
10f2d63a | 2021 | else |
698dcdb6 | 2022 | |
b12915c1 | 2023 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2024 | if test "x$LINE" != x ; then |
2025 | eval "DEFAULT_$LINE" | |
2026 | else | |
2027 | no_cache=1 | |
2028 | fi | |
2029 | ||
b12915c1 | 2030 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2031 | |
2032 | fi | |
10f2d63a VZ |
2033 | |
2034 | ||
b12915c1 | 2035 | eval "$ac_cv_use_opengl" |
10f2d63a | 2036 | if test "$no_cache" != 1; then |
b12915c1 | 2037 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2038 | fi |
2039 | ||
b12915c1 | 2040 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2041 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2042 | else |
698dcdb6 | 2043 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2044 | fi |
698dcdb6 | 2045 | |
10f2d63a | 2046 | |
b12915c1 VZ |
2047 | fi |
2048 | ||
1e487827 | 2049 | |
698dcdb6 | 2050 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
f33f19dd | 2051 | echo "configure:2052: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2052 | no_cache=0 |
2053 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2054 | if test "${with_dmalloc+set}" = set; then |
2055 | withval="$with_dmalloc" | |
698dcdb6 | 2056 | |
c7a2bf27 | 2057 | if test "$withval" = yes; then |
b12915c1 | 2058 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2059 | else |
b12915c1 | 2060 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2061 | fi |
698dcdb6 | 2062 | |
c7a2bf27 | 2063 | else |
698dcdb6 | 2064 | |
b12915c1 | 2065 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2066 | if test "x$LINE" != x ; then |
2067 | eval "DEFAULT_$LINE" | |
2068 | else | |
2069 | no_cache=1 | |
2070 | fi | |
2071 | ||
b12915c1 | 2072 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2073 | |
2074 | fi | |
c7a2bf27 RR |
2075 | |
2076 | ||
b12915c1 | 2077 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2078 | if test "$no_cache" != 1; then |
b12915c1 | 2079 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2080 | fi |
2081 | ||
b12915c1 | 2082 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2083 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2084 | else |
698dcdb6 | 2085 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2086 | fi |
698dcdb6 | 2087 | |
c7a2bf27 | 2088 | |
698dcdb6 | 2089 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
f33f19dd | 2090 | echo "configure:2091: checking for --with-zlib" >&5 |
10f2d63a | 2091 | no_cache=0 |
698dcdb6 | 2092 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2093 | if test "${with_zlib+set}" = set; then |
2094 | withval="$with_zlib" | |
698dcdb6 | 2095 | |
10f2d63a | 2096 | if test "$withval" = yes; then |
b12915c1 | 2097 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2098 | elif test "$withval" = no; then |
b12915c1 | 2099 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2100 | elif test "$withval" = sys; then |
2101 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2102 | else | |
698dcdb6 | 2103 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2104 | fi |
698dcdb6 | 2105 | |
10f2d63a | 2106 | else |
698dcdb6 | 2107 | |
b12915c1 | 2108 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2109 | if test "x$LINE" != x ; then |
2110 | eval "DEFAULT_$LINE" | |
2111 | else | |
2112 | no_cache=1 | |
2113 | fi | |
2114 | ||
b12915c1 | 2115 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2116 | |
2117 | fi | |
10f2d63a VZ |
2118 | |
2119 | ||
b12915c1 | 2120 | eval "$ac_cv_use_zlib" |
10f2d63a | 2121 | if test "$no_cache" != 1; then |
b12915c1 | 2122 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2123 | fi |
2124 | ||
b12915c1 | 2125 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2126 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2127 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2128 | echo "$ac_t""no" 1>&6 |
422107f9 | 2129 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2130 | echo "$ac_t""system version" 1>&6 |
422107f9 | 2131 | else |
698dcdb6 | 2132 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2133 | fi |
698dcdb6 | 2134 | |
10f2d63a | 2135 | |
698dcdb6 | 2136 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
f33f19dd | 2137 | echo "configure:2138: checking for --with-odbc" >&5 |
10f2d63a | 2138 | no_cache=0 |
698dcdb6 | 2139 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2140 | if test "${with_odbc+set}" = set; then |
2141 | withval="$with_odbc" | |
698dcdb6 | 2142 | |
10f2d63a VZ |
2143 | if test "$withval" = yes; then |
2144 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2145 | else | |
2146 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2147 | fi | |
698dcdb6 | 2148 | |
10f2d63a | 2149 | else |
698dcdb6 | 2150 | |
10f2d63a VZ |
2151 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2152 | if test "x$LINE" != x ; then | |
2153 | eval "DEFAULT_$LINE" | |
2154 | else | |
2155 | no_cache=1 | |
2156 | fi | |
2157 | ||
2158 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2159 | |
2160 | fi | |
10f2d63a VZ |
2161 | |
2162 | ||
2163 | eval "$ac_cv_use_odbc" | |
2164 | if test "$no_cache" != 1; then | |
2165 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2166 | fi | |
2167 | ||
2168 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2169 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2170 | else |
698dcdb6 | 2171 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2172 | fi |
698dcdb6 VZ |
2173 | |
2174 | ||
10f2d63a | 2175 | |
698dcdb6 VZ |
2176 | |
2177 | ||
2178 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
f33f19dd | 2179 | echo "configure:2180: checking for --enable-shared" >&5 |
10f2d63a VZ |
2180 | no_cache=0 |
2181 | # Check whether --enable-shared or --disable-shared was given. | |
2182 | if test "${enable_shared+set}" = set; then | |
2183 | enableval="$enable_shared" | |
698dcdb6 | 2184 | |
10f2d63a VZ |
2185 | if test "$enableval" = yes; then |
2186 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2187 | else | |
2188 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2189 | fi | |
698dcdb6 | 2190 | |
10f2d63a | 2191 | else |
698dcdb6 | 2192 | |
10f2d63a VZ |
2193 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2194 | if test "x$LINE" != x ; then | |
2195 | eval "DEFAULT_$LINE" | |
2196 | else | |
2197 | no_cache=1 | |
2198 | fi | |
2199 | ||
2200 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2201 | |
2202 | fi | |
10f2d63a VZ |
2203 | |
2204 | ||
2205 | eval "$ac_cv_use_shared" | |
2206 | if test "$no_cache" != 1; then | |
2207 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2208 | fi | |
2209 | ||
2210 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2211 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2212 | else |
698dcdb6 | 2213 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2214 | fi |
698dcdb6 | 2215 | |
10f2d63a | 2216 | |
698dcdb6 | 2217 | echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6 |
f33f19dd | 2218 | echo "configure:2219: checking for --enable-burnt_name" >&5 |
00cf1208 RR |
2219 | no_cache=0 |
2220 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2221 | if test "${enable_burnt_name+set}" = set; then | |
2222 | enableval="$enable_burnt_name" | |
698dcdb6 | 2223 | |
00cf1208 RR |
2224 | if test "$enableval" = yes; then |
2225 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2226 | else | |
2227 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2228 | fi | |
698dcdb6 | 2229 | |
00cf1208 | 2230 | else |
698dcdb6 | 2231 | |
00cf1208 RR |
2232 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` |
2233 | if test "x$LINE" != x ; then | |
2234 | eval "DEFAULT_$LINE" | |
2235 | else | |
2236 | no_cache=1 | |
2237 | fi | |
2238 | ||
2239 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
698dcdb6 VZ |
2240 | |
2241 | fi | |
00cf1208 RR |
2242 | |
2243 | ||
2244 | eval "$ac_cv_use_burnt_name" | |
2245 | if test "$no_cache" != 1; then | |
2246 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2247 | fi | |
2248 | ||
2249 | if test "$wxUSE_BURNT_NAME" = yes; then | |
698dcdb6 | 2250 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2251 | else |
698dcdb6 | 2252 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2253 | fi |
698dcdb6 | 2254 | |
00cf1208 | 2255 | |
698dcdb6 | 2256 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
f33f19dd | 2257 | echo "configure:2258: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2258 | no_cache=0 |
2259 | # Check whether --enable-optimise or --disable-optimise was given. | |
2260 | if test "${enable_optimise+set}" = set; then | |
2261 | enableval="$enable_optimise" | |
698dcdb6 | 2262 | |
10f2d63a VZ |
2263 | if test "$enableval" = yes; then |
2264 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2265 | else | |
2266 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2267 | fi | |
698dcdb6 | 2268 | |
10f2d63a | 2269 | else |
698dcdb6 | 2270 | |
10f2d63a VZ |
2271 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2272 | if test "x$LINE" != x ; then | |
2273 | eval "DEFAULT_$LINE" | |
2274 | else | |
2275 | no_cache=1 | |
2276 | fi | |
2277 | ||
2278 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2279 | |
2280 | fi | |
10f2d63a VZ |
2281 | |
2282 | ||
2283 | eval "$ac_cv_use_optimise" | |
2284 | if test "$no_cache" != 1; then | |
2285 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2286 | fi | |
2287 | ||
2288 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2289 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2290 | else |
698dcdb6 | 2291 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2292 | fi |
698dcdb6 | 2293 | |
10f2d63a | 2294 | |
698dcdb6 | 2295 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
f33f19dd | 2296 | echo "configure:2297: checking for --enable-debug" >&5 |
10f2d63a VZ |
2297 | no_cache=0 |
2298 | # Check whether --enable-debug or --disable-debug was given. | |
2299 | if test "${enable_debug+set}" = set; then | |
2300 | enableval="$enable_debug" | |
698dcdb6 | 2301 | |
10f2d63a VZ |
2302 | if test "$enableval" = yes; then |
2303 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2304 | else | |
2305 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2306 | fi | |
698dcdb6 | 2307 | |
10f2d63a | 2308 | else |
698dcdb6 | 2309 | |
10f2d63a VZ |
2310 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2311 | if test "x$LINE" != x ; then | |
2312 | eval "DEFAULT_$LINE" | |
2313 | else | |
2314 | no_cache=1 | |
2315 | fi | |
2316 | ||
2317 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2318 | |
2319 | fi | |
10f2d63a VZ |
2320 | |
2321 | ||
2322 | eval "$ac_cv_use_debug" | |
2323 | if test "$no_cache" != 1; then | |
2324 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2325 | fi | |
2326 | ||
2327 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2328 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2329 | else |
698dcdb6 | 2330 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2331 | fi |
698dcdb6 | 2332 | |
10f2d63a VZ |
2333 | |
2334 | if test "$wxUSE_DEBUG" = "yes"; then | |
2335 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2336 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2337 | elif test "$wxUSE_DEBUG" = "no"; then | |
2338 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2339 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2340 | fi | |
2341 | ||
698dcdb6 VZ |
2342 | |
2343 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
f33f19dd | 2344 | echo "configure:2345: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2345 | no_cache=0 |
2346 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2347 | if test "${enable_debug_flag+set}" = set; then | |
2348 | enableval="$enable_debug_flag" | |
698dcdb6 | 2349 | |
10f2d63a VZ |
2350 | if test "$enableval" = yes; then |
2351 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2352 | else | |
2353 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2354 | fi | |
698dcdb6 | 2355 | |
10f2d63a | 2356 | else |
698dcdb6 | 2357 | |
10f2d63a VZ |
2358 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2359 | if test "x$LINE" != x ; then | |
2360 | eval "DEFAULT_$LINE" | |
2361 | else | |
2362 | no_cache=1 | |
2363 | fi | |
2364 | ||
2365 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2366 | |
2367 | fi | |
10f2d63a VZ |
2368 | |
2369 | ||
2370 | eval "$ac_cv_use_debug_flag" | |
2371 | if test "$no_cache" != 1; then | |
2372 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2373 | fi | |
2374 | ||
2375 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2376 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2377 | else |
698dcdb6 | 2378 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2379 | fi |
698dcdb6 | 2380 | |
10f2d63a | 2381 | |
698dcdb6 | 2382 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
f33f19dd | 2383 | echo "configure:2384: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2384 | no_cache=0 |
2385 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2386 | if test "${enable_debug_info+set}" = set; then | |
2387 | enableval="$enable_debug_info" | |
698dcdb6 | 2388 | |
10f2d63a VZ |
2389 | if test "$enableval" = yes; then |
2390 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2391 | else | |
2392 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2393 | fi | |
698dcdb6 | 2394 | |
10f2d63a | 2395 | else |
698dcdb6 | 2396 | |
10f2d63a VZ |
2397 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2398 | if test "x$LINE" != x ; then | |
2399 | eval "DEFAULT_$LINE" | |
2400 | else | |
2401 | no_cache=1 | |
2402 | fi | |
2403 | ||
2404 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2405 | |
2406 | fi | |
10f2d63a VZ |
2407 | |
2408 | ||
2409 | eval "$ac_cv_use_debug_info" | |
2410 | if test "$no_cache" != 1; then | |
2411 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2412 | fi | |
2413 | ||
2414 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2415 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2416 | else |
698dcdb6 | 2417 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2418 | fi |
698dcdb6 | 2419 | |
10f2d63a | 2420 | |
698dcdb6 | 2421 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
f33f19dd | 2422 | echo "configure:2423: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2423 | no_cache=0 |
2424 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2425 | if test "${enable_debug_gdb+set}" = set; then | |
2426 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2427 | |
10f2d63a VZ |
2428 | if test "$enableval" = yes; then |
2429 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2430 | else | |
2431 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2432 | fi | |
698dcdb6 | 2433 | |
10f2d63a | 2434 | else |
698dcdb6 | 2435 | |
10f2d63a VZ |
2436 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2437 | if test "x$LINE" != x ; then | |
2438 | eval "DEFAULT_$LINE" | |
2439 | else | |
2440 | no_cache=1 | |
2441 | fi | |
2442 | ||
2443 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2444 | |
2445 | fi | |
10f2d63a VZ |
2446 | |
2447 | ||
2448 | eval "$ac_cv_use_debug_gdb" | |
2449 | if test "$no_cache" != 1; then | |
2450 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2451 | fi | |
2452 | ||
2453 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2454 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2455 | else |
698dcdb6 | 2456 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2457 | fi |
698dcdb6 | 2458 | |
10f2d63a | 2459 | |
698dcdb6 | 2460 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
f33f19dd | 2461 | echo "configure:2462: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2462 | no_cache=0 |
2463 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2464 | if test "${enable_debug_cntxt+set}" = set; then | |
2465 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2466 | |
10f2d63a VZ |
2467 | if test "$enableval" = yes; then |
2468 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2469 | else | |
2470 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2471 | fi | |
698dcdb6 | 2472 | |
10f2d63a | 2473 | else |
698dcdb6 | 2474 | |
10f2d63a VZ |
2475 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2476 | if test "x$LINE" != x ; then | |
2477 | eval "DEFAULT_$LINE" | |
2478 | else | |
2479 | no_cache=1 | |
2480 | fi | |
2481 | ||
2482 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2483 | |
2484 | fi | |
10f2d63a VZ |
2485 | |
2486 | ||
2487 | eval "$ac_cv_use_debug_cntxt" | |
2488 | if test "$no_cache" != 1; then | |
2489 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2490 | fi | |
2491 | ||
2492 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2493 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2494 | else |
698dcdb6 | 2495 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2496 | fi |
698dcdb6 | 2497 | |
10f2d63a | 2498 | |
698dcdb6 | 2499 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
f33f19dd | 2500 | echo "configure:2501: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2501 | no_cache=0 |
2502 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2503 | if test "${enable_mem_tracing+set}" = set; then | |
2504 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2505 | |
10f2d63a VZ |
2506 | if test "$enableval" = yes; then |
2507 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2508 | else | |
2509 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2510 | fi | |
698dcdb6 | 2511 | |
10f2d63a | 2512 | else |
698dcdb6 | 2513 | |
10f2d63a VZ |
2514 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2515 | if test "x$LINE" != x ; then | |
2516 | eval "DEFAULT_$LINE" | |
2517 | else | |
2518 | no_cache=1 | |
2519 | fi | |
2520 | ||
2521 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2522 | |
2523 | fi | |
10f2d63a VZ |
2524 | |
2525 | ||
2526 | eval "$ac_cv_use_mem_tracing" | |
2527 | if test "$no_cache" != 1; then | |
2528 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2529 | fi | |
2530 | ||
2531 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2532 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2533 | else |
698dcdb6 | 2534 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2535 | fi |
698dcdb6 | 2536 | |
10f2d63a | 2537 | |
698dcdb6 | 2538 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
f33f19dd | 2539 | echo "configure:2540: checking for --enable-profile" >&5 |
10f2d63a VZ |
2540 | no_cache=0 |
2541 | # Check whether --enable-profile or --disable-profile was given. | |
2542 | if test "${enable_profile+set}" = set; then | |
2543 | enableval="$enable_profile" | |
698dcdb6 | 2544 | |
10f2d63a VZ |
2545 | if test "$enableval" = yes; then |
2546 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2547 | else | |
2548 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2549 | fi | |
698dcdb6 | 2550 | |
10f2d63a | 2551 | else |
698dcdb6 | 2552 | |
10f2d63a VZ |
2553 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2554 | if test "x$LINE" != x ; then | |
2555 | eval "DEFAULT_$LINE" | |
2556 | else | |
2557 | no_cache=1 | |
2558 | fi | |
2559 | ||
2560 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2561 | |
2562 | fi | |
10f2d63a VZ |
2563 | |
2564 | ||
2565 | eval "$ac_cv_use_profile" | |
2566 | if test "$no_cache" != 1; then | |
2567 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2568 | fi | |
2569 | ||
2570 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2571 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2572 | else |
698dcdb6 | 2573 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2574 | fi |
698dcdb6 | 2575 | |
10f2d63a | 2576 | |
698dcdb6 | 2577 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
f33f19dd | 2578 | echo "configure:2579: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2579 | no_cache=0 |
2580 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2581 | if test "${enable_no_rtti+set}" = set; then | |
2582 | enableval="$enable_no_rtti" | |
698dcdb6 | 2583 | |
10f2d63a VZ |
2584 | if test "$enableval" = yes; then |
2585 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2586 | else | |
2587 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2588 | fi | |
698dcdb6 | 2589 | |
10f2d63a | 2590 | else |
698dcdb6 | 2591 | |
10f2d63a VZ |
2592 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2593 | if test "x$LINE" != x ; then | |
2594 | eval "DEFAULT_$LINE" | |
2595 | else | |
2596 | no_cache=1 | |
2597 | fi | |
2598 | ||
2599 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2600 | |
2601 | fi | |
10f2d63a VZ |
2602 | |
2603 | ||
2604 | eval "$ac_cv_use_no_rtti" | |
2605 | if test "$no_cache" != 1; then | |
2606 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2607 | fi | |
2608 | ||
2609 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2610 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2611 | else |
698dcdb6 | 2612 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2613 | fi |
698dcdb6 | 2614 | |
10f2d63a | 2615 | |
698dcdb6 | 2616 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
f33f19dd | 2617 | echo "configure:2618: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2618 | no_cache=0 |
2619 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2620 | if test "${enable_no_exceptions+set}" = set; then | |
2621 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2622 | |
10f2d63a VZ |
2623 | if test "$enableval" = yes; then |
2624 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2625 | else | |
2626 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2627 | fi | |
698dcdb6 | 2628 | |
10f2d63a | 2629 | else |
698dcdb6 | 2630 | |
10f2d63a VZ |
2631 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2632 | if test "x$LINE" != x ; then | |
2633 | eval "DEFAULT_$LINE" | |
2634 | else | |
2635 | no_cache=1 | |
2636 | fi | |
2637 | ||
2638 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2639 | |
2640 | fi | |
10f2d63a VZ |
2641 | |
2642 | ||
2643 | eval "$ac_cv_use_no_exceptions" | |
2644 | if test "$no_cache" != 1; then | |
2645 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2646 | fi | |
2647 | ||
2648 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2649 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2650 | else |
698dcdb6 | 2651 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2652 | fi |
698dcdb6 | 2653 | |
10f2d63a | 2654 | |
698dcdb6 | 2655 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
f33f19dd | 2656 | echo "configure:2657: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2657 | no_cache=0 |
2658 | # Check whether --enable-permissive or --disable-permissive was given. | |
2659 | if test "${enable_permissive+set}" = set; then | |
2660 | enableval="$enable_permissive" | |
698dcdb6 | 2661 | |
10f2d63a VZ |
2662 | if test "$enableval" = yes; then |
2663 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2664 | else | |
2665 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2666 | fi | |
698dcdb6 | 2667 | |
10f2d63a | 2668 | else |
698dcdb6 | 2669 | |
10f2d63a VZ |
2670 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2671 | if test "x$LINE" != x ; then | |
2672 | eval "DEFAULT_$LINE" | |
2673 | else | |
2674 | no_cache=1 | |
2675 | fi | |
2676 | ||
2677 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2678 | |
2679 | fi | |
10f2d63a VZ |
2680 | |
2681 | ||
2682 | eval "$ac_cv_use_permissive" | |
2683 | if test "$no_cache" != 1; then | |
2684 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2685 | fi | |
2686 | ||
2687 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2688 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2689 | else |
698dcdb6 | 2690 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2691 | fi |
698dcdb6 | 2692 | |
10f2d63a | 2693 | |
698dcdb6 | 2694 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
f33f19dd | 2695 | echo "configure:2696: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2696 | no_cache=0 |
2697 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2698 | if test "${enable_no_deps+set}" = set; then | |
2699 | enableval="$enable_no_deps" | |
698dcdb6 | 2700 | |
10f2d63a VZ |
2701 | if test "$enableval" = yes; then |
2702 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2703 | else | |
2704 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2705 | fi | |
698dcdb6 | 2706 | |
10f2d63a | 2707 | else |
698dcdb6 | 2708 | |
10f2d63a VZ |
2709 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2710 | if test "x$LINE" != x ; then | |
2711 | eval "DEFAULT_$LINE" | |
2712 | else | |
2713 | no_cache=1 | |
2714 | fi | |
2715 | ||
2716 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2717 | |
2718 | fi | |
10f2d63a VZ |
2719 | |
2720 | ||
2721 | eval "$ac_cv_use_no_deps" | |
2722 | if test "$no_cache" != 1; then | |
2723 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2724 | fi | |
2725 | ||
2726 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2727 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2728 | else |
698dcdb6 | 2729 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2730 | fi |
698dcdb6 VZ |
2731 | |
2732 | ||
10f2d63a | 2733 | |
54276ccf | 2734 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
f33f19dd | 2735 | echo "configure:2736: checking for --enable-compat20" >&5 |
54276ccf VZ |
2736 | no_cache=0 |
2737 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2738 | if test "${enable_compat20+set}" = set; then | |
2739 | enableval="$enable_compat20" | |
2740 | ||
2741 | if test "$enableval" = yes; then | |
2742 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2743 | else | |
2744 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2745 | fi | |
2746 | ||
2747 | else | |
2748 | ||
2749 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2750 | if test "x$LINE" != x ; then | |
2751 | eval "DEFAULT_$LINE" | |
2752 | else | |
2753 | no_cache=1 | |
2754 | fi | |
2755 | ||
2756 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2757 | ||
2758 | fi | |
2759 | ||
2760 | ||
2761 | eval "$ac_cv_use_compat20" | |
2762 | if test "$no_cache" != 1; then | |
2763 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2764 | fi | |
2765 | ||
2766 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2767 | echo "$ac_t""yes" 1>&6 | |
2768 | else | |
2769 | echo "$ac_t""no" 1>&6 | |
2770 | fi | |
2771 | ||
2772 | ||
2773 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
f33f19dd | 2774 | echo "configure:2775: checking for --enable-compat22" >&5 |
54276ccf VZ |
2775 | no_cache=0 |
2776 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2777 | if test "${enable_compat22+set}" = set; then | |
2778 | enableval="$enable_compat22" | |
2779 | ||
2780 | if test "$enableval" = yes; then | |
2781 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2782 | else | |
2783 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2784 | fi | |
2785 | ||
2786 | else | |
2787 | ||
2788 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2789 | if test "x$LINE" != x ; then | |
2790 | eval "DEFAULT_$LINE" | |
2791 | else | |
2792 | no_cache=1 | |
2793 | fi | |
2794 | ||
2795 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2796 | ||
2797 | fi | |
2798 | ||
2799 | ||
2800 | eval "$ac_cv_use_compat22" | |
2801 | if test "$no_cache" != 1; then | |
2802 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2803 | fi | |
2804 | ||
2805 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2806 | echo "$ac_t""yes" 1>&6 | |
2807 | else | |
2808 | echo "$ac_t""no" 1>&6 | |
2809 | fi | |
2810 | ||
2811 | ||
2812 | ||
698dcdb6 VZ |
2813 | |
2814 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
f33f19dd | 2815 | echo "configure:2816: checking for --enable-intl" >&5 |
10f2d63a VZ |
2816 | no_cache=0 |
2817 | # Check whether --enable-intl or --disable-intl was given. | |
2818 | if test "${enable_intl+set}" = set; then | |
2819 | enableval="$enable_intl" | |
698dcdb6 | 2820 | |
10f2d63a VZ |
2821 | if test "$enableval" = yes; then |
2822 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2823 | else | |
2824 | ac_cv_use_intl='wxUSE_INTL=no' | |
2825 | fi | |
698dcdb6 | 2826 | |
10f2d63a | 2827 | else |
698dcdb6 | 2828 | |
10f2d63a VZ |
2829 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2830 | if test "x$LINE" != x ; then | |
2831 | eval "DEFAULT_$LINE" | |
2832 | else | |
2833 | no_cache=1 | |
2834 | fi | |
2835 | ||
2836 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2837 | |
2838 | fi | |
10f2d63a VZ |
2839 | |
2840 | ||
2841 | eval "$ac_cv_use_intl" | |
2842 | if test "$no_cache" != 1; then | |
2843 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2844 | fi | |
2845 | ||
2846 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2847 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2848 | else |
698dcdb6 | 2849 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2850 | fi |
698dcdb6 | 2851 | |
10f2d63a | 2852 | |
698dcdb6 | 2853 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
f33f19dd | 2854 | echo "configure:2855: checking for --enable-config" >&5 |
10f2d63a VZ |
2855 | no_cache=0 |
2856 | # Check whether --enable-config or --disable-config was given. | |
2857 | if test "${enable_config+set}" = set; then | |
2858 | enableval="$enable_config" | |
698dcdb6 | 2859 | |
10f2d63a VZ |
2860 | if test "$enableval" = yes; then |
2861 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2862 | else | |
2863 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2864 | fi | |
698dcdb6 | 2865 | |
10f2d63a | 2866 | else |
698dcdb6 | 2867 | |
10f2d63a VZ |
2868 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
2869 | if test "x$LINE" != x ; then | |
2870 | eval "DEFAULT_$LINE" | |
2871 | else | |
2872 | no_cache=1 | |
2873 | fi | |
2874 | ||
2875 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
2876 | |
2877 | fi | |
10f2d63a VZ |
2878 | |
2879 | ||
2880 | eval "$ac_cv_use_config" | |
2881 | if test "$no_cache" != 1; then | |
2882 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2883 | fi | |
2884 | ||
2885 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 2886 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2887 | else |
698dcdb6 | 2888 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2889 | fi |
698dcdb6 VZ |
2890 | |
2891 | ||
b12915c1 | 2892 | |
698dcdb6 | 2893 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
f33f19dd | 2894 | echo "configure:2895: checking for --enable-sockets" >&5 |
10f2d63a VZ |
2895 | no_cache=0 |
2896 | # Check whether --enable-sockets or --disable-sockets was given. | |
2897 | if test "${enable_sockets+set}" = set; then | |
2898 | enableval="$enable_sockets" | |
698dcdb6 | 2899 | |
10f2d63a VZ |
2900 | if test "$enableval" = yes; then |
2901 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2902 | else | |
2903 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2904 | fi | |
698dcdb6 | 2905 | |
10f2d63a | 2906 | else |
698dcdb6 | 2907 | |
10f2d63a VZ |
2908 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
2909 | if test "x$LINE" != x ; then | |
2910 | eval "DEFAULT_$LINE" | |
2911 | else | |
2912 | no_cache=1 | |
2913 | fi | |
2914 | ||
2915 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
2916 | |
2917 | fi | |
10f2d63a VZ |
2918 | |
2919 | ||
2920 | eval "$ac_cv_use_sockets" | |
2921 | if test "$no_cache" != 1; then | |
2922 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2923 | fi | |
2924 | ||
2925 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 2926 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2927 | else |
698dcdb6 | 2928 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2929 | fi |
698dcdb6 | 2930 | |
b12915c1 | 2931 | |
698dcdb6 VZ |
2932 | |
2933 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
f33f19dd | 2934 | echo "configure:2935: checking for --enable-ipc" >&5 |
10f2d63a | 2935 | no_cache=0 |
eb4efbdc VZ |
2936 | # Check whether --enable-ipc or --disable-ipc was given. |
2937 | if test "${enable_ipc+set}" = set; then | |
2938 | enableval="$enable_ipc" | |
698dcdb6 | 2939 | |
10f2d63a | 2940 | if test "$enableval" = yes; then |
eb4efbdc | 2941 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 2942 | else |
eb4efbdc | 2943 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 2944 | fi |
698dcdb6 | 2945 | |
10f2d63a | 2946 | else |
698dcdb6 | 2947 | |
eb4efbdc | 2948 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
2949 | if test "x$LINE" != x ; then |
2950 | eval "DEFAULT_$LINE" | |
2951 | else | |
2952 | no_cache=1 | |
2953 | fi | |
2954 | ||
eb4efbdc | 2955 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
2956 | |
2957 | fi | |
10f2d63a VZ |
2958 | |
2959 | ||
eb4efbdc | 2960 | eval "$ac_cv_use_ipc" |
10f2d63a | 2961 | if test "$no_cache" != 1; then |
eb4efbdc | 2962 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2963 | fi |
2964 | ||
eb4efbdc | 2965 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 2966 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2967 | else |
698dcdb6 | 2968 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2969 | fi |
698dcdb6 VZ |
2970 | |
2971 | ||
eb4efbdc | 2972 | |
1e6feb95 | 2973 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
f33f19dd | 2974 | echo "configure:2975: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
2975 | no_cache=0 |
2976 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
2977 | if test "${enable_cmdline+set}" = set; then | |
2978 | enableval="$enable_cmdline" | |
2979 | ||
2980 | if test "$enableval" = yes; then | |
2981 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
2982 | else | |
2983 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
2984 | fi | |
2985 | ||
2986 | else | |
2987 | ||
2988 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
2989 | if test "x$LINE" != x ; then | |
2990 | eval "DEFAULT_$LINE" | |
2991 | else | |
2992 | no_cache=1 | |
2993 | fi | |
2994 | ||
2995 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
2996 | ||
2997 | fi | |
2998 | ||
2999 | ||
3000 | eval "$ac_cv_use_cmdline" | |
3001 | if test "$no_cache" != 1; then | |
3002 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3003 | fi | |
3004 | ||
3005 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3006 | echo "$ac_t""yes" 1>&6 | |
3007 | else | |
3008 | echo "$ac_t""no" 1>&6 | |
3009 | fi | |
3010 | ||
3011 | ||
3012 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
f33f19dd | 3013 | echo "configure:3014: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3014 | no_cache=0 |
3015 | # Check whether --enable-datetime or --disable-datetime was given. | |
3016 | if test "${enable_datetime+set}" = set; then | |
3017 | enableval="$enable_datetime" | |
3018 | ||
3019 | if test "$enableval" = yes; then | |
3020 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3021 | else | |
3022 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3023 | fi | |
3024 | ||
3025 | else | |
3026 | ||
3027 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3028 | if test "x$LINE" != x ; then | |
3029 | eval "DEFAULT_$LINE" | |
3030 | else | |
3031 | no_cache=1 | |
3032 | fi | |
3033 | ||
3034 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3035 | ||
3036 | fi | |
3037 | ||
3038 | ||
3039 | eval "$ac_cv_use_datetime" | |
3040 | if test "$no_cache" != 1; then | |
3041 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3042 | fi | |
3043 | ||
3044 | if test "$wxUSE_DATETIME" = yes; then | |
3045 | echo "$ac_t""yes" 1>&6 | |
3046 | else | |
3047 | echo "$ac_t""no" 1>&6 | |
3048 | fi | |
3049 | ||
3050 | ||
3051 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
f33f19dd | 3052 | echo "configure:3053: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3053 | no_cache=0 |
3054 | # Check whether --enable-timedate or --disable-timedate was given. | |
3055 | if test "${enable_timedate+set}" = set; then | |
3056 | enableval="$enable_timedate" | |
3057 | ||
3058 | if test "$enableval" = yes; then | |
3059 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3060 | else | |
3061 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3062 | fi | |
3063 | ||
3064 | else | |
3065 | ||
3066 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3067 | if test "x$LINE" != x ; then | |
3068 | eval "DEFAULT_$LINE" | |
3069 | else | |
3070 | no_cache=1 | |
3071 | fi | |
3072 | ||
3073 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3074 | ||
3075 | fi | |
3076 | ||
3077 | ||
3078 | eval "$ac_cv_use_timedate" | |
3079 | if test "$no_cache" != 1; then | |
3080 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3081 | fi | |
3082 | ||
3083 | if test "$wxUSE_TIMEDATE" = yes; then | |
3084 | echo "$ac_t""yes" 1>&6 | |
3085 | else | |
3086 | echo "$ac_t""no" 1>&6 | |
3087 | fi | |
3088 | ||
3089 | ||
3090 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
f33f19dd | 3091 | echo "configure:3092: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3092 | no_cache=0 |
3093 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3094 | if test "${enable_stopwatch+set}" = set; then | |
3095 | enableval="$enable_stopwatch" | |
3096 | ||
3097 | if test "$enableval" = yes; then | |
3098 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3099 | else | |
3100 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3101 | fi | |
3102 | ||
3103 | else | |
3104 | ||
3105 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3106 | if test "x$LINE" != x ; then | |
3107 | eval "DEFAULT_$LINE" | |
3108 | else | |
3109 | no_cache=1 | |
3110 | fi | |
3111 | ||
3112 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3113 | ||
3114 | fi | |
3115 | ||
3116 | ||
3117 | eval "$ac_cv_use_stopwatch" | |
3118 | if test "$no_cache" != 1; then | |
3119 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3120 | fi | |
3121 | ||
3122 | if test "$wxUSE_STOPWATCH" = yes; then | |
3123 | echo "$ac_t""yes" 1>&6 | |
3124 | else | |
3125 | echo "$ac_t""no" 1>&6 | |
3126 | fi | |
3127 | ||
3128 | ||
698dcdb6 | 3129 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
f33f19dd | 3130 | echo "configure:3131: checking for --enable-dialupman" >&5 |
10f2d63a | 3131 | no_cache=0 |
eb4efbdc VZ |
3132 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3133 | if test "${enable_dialupman+set}" = set; then | |
3134 | enableval="$enable_dialupman" | |
698dcdb6 | 3135 | |
10f2d63a | 3136 | if test "$enableval" = yes; then |
eb4efbdc | 3137 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3138 | else |
eb4efbdc | 3139 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3140 | fi |
698dcdb6 | 3141 | |
10f2d63a | 3142 | else |
698dcdb6 | 3143 | |
eb4efbdc | 3144 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3145 | if test "x$LINE" != x ; then |
3146 | eval "DEFAULT_$LINE" | |
3147 | else | |
3148 | no_cache=1 | |
3149 | fi | |
3150 | ||
eb4efbdc | 3151 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3152 | |
3153 | fi | |
10f2d63a VZ |
3154 | |
3155 | ||
eb4efbdc | 3156 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3157 | if test "$no_cache" != 1; then |
eb4efbdc | 3158 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3159 | fi |
3160 | ||
eb4efbdc | 3161 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3162 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3163 | else |
698dcdb6 | 3164 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3165 | fi |
698dcdb6 | 3166 | |
10f2d63a | 3167 | |
698dcdb6 | 3168 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
f33f19dd | 3169 | echo "configure:3170: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3170 | no_cache=0 |
3171 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3172 | if test "${enable_apple_ieee+set}" = set; then | |
3173 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3174 | |
10f2d63a VZ |
3175 | if test "$enableval" = yes; then |
3176 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3177 | else | |
3178 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3179 | fi | |
698dcdb6 | 3180 | |
10f2d63a | 3181 | else |
698dcdb6 | 3182 | |
10f2d63a VZ |
3183 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3184 | if test "x$LINE" != x ; then | |
3185 | eval "DEFAULT_$LINE" | |
3186 | else | |
3187 | no_cache=1 | |
3188 | fi | |
3189 | ||
3190 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3191 | |
3192 | fi | |
10f2d63a VZ |
3193 | |
3194 | ||
3195 | eval "$ac_cv_use_apple_ieee" | |
3196 | if test "$no_cache" != 1; then | |
3197 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3198 | fi | |
3199 | ||
3200 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3201 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3202 | else |
698dcdb6 | 3203 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3204 | fi |
698dcdb6 | 3205 | |
10f2d63a | 3206 | |
1e6feb95 | 3207 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
f33f19dd | 3208 | echo "configure:3209: checking for --enable-timer" >&5 |
10f2d63a | 3209 | no_cache=0 |
1e6feb95 VZ |
3210 | # Check whether --enable-timer or --disable-timer was given. |
3211 | if test "${enable_timer+set}" = set; then | |
3212 | enableval="$enable_timer" | |
698dcdb6 | 3213 | |
10f2d63a | 3214 | if test "$enableval" = yes; then |
1e6feb95 | 3215 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3216 | else |
1e6feb95 | 3217 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3218 | fi |
698dcdb6 | 3219 | |
10f2d63a | 3220 | else |
698dcdb6 | 3221 | |
1e6feb95 | 3222 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3223 | if test "x$LINE" != x ; then |
3224 | eval "DEFAULT_$LINE" | |
3225 | else | |
3226 | no_cache=1 | |
3227 | fi | |
3228 | ||
1e6feb95 | 3229 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3230 | |
3231 | fi | |
10f2d63a VZ |
3232 | |
3233 | ||
1e6feb95 | 3234 | eval "$ac_cv_use_timer" |
10f2d63a | 3235 | if test "$no_cache" != 1; then |
1e6feb95 | 3236 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3237 | fi |
3238 | ||
1e6feb95 | 3239 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3240 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3241 | else |
698dcdb6 | 3242 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3243 | fi |
698dcdb6 | 3244 | |
10f2d63a | 3245 | |
698dcdb6 | 3246 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
f33f19dd | 3247 | echo "configure:3248: checking for --enable-wave" >&5 |
10f2d63a VZ |
3248 | no_cache=0 |
3249 | # Check whether --enable-wave or --disable-wave was given. | |
3250 | if test "${enable_wave+set}" = set; then | |
3251 | enableval="$enable_wave" | |
698dcdb6 | 3252 | |
10f2d63a VZ |
3253 | if test "$enableval" = yes; then |
3254 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3255 | else | |
3256 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3257 | fi | |
698dcdb6 | 3258 | |
10f2d63a | 3259 | else |
698dcdb6 | 3260 | |
10f2d63a VZ |
3261 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3262 | if test "x$LINE" != x ; then | |
3263 | eval "DEFAULT_$LINE" | |
3264 | else | |
3265 | no_cache=1 | |
3266 | fi | |
3267 | ||
3268 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3269 | |
3270 | fi | |
10f2d63a VZ |
3271 | |
3272 | ||
3273 | eval "$ac_cv_use_wave" | |
3274 | if test "$no_cache" != 1; then | |
3275 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3276 | fi | |
3277 | ||
3278 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3279 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3280 | else |
698dcdb6 | 3281 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3282 | fi |
698dcdb6 | 3283 | |
10f2d63a | 3284 | |
698dcdb6 | 3285 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
f33f19dd | 3286 | echo "configure:3287: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3287 | no_cache=0 |
3288 | # Check whether --enable-fraction or --disable-fraction was given. | |
3289 | if test "${enable_fraction+set}" = set; then | |
3290 | enableval="$enable_fraction" | |
698dcdb6 | 3291 | |
10f2d63a VZ |
3292 | if test "$enableval" = yes; then |
3293 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3294 | else | |
3295 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3296 | fi | |
698dcdb6 | 3297 | |
10f2d63a | 3298 | else |
698dcdb6 | 3299 | |
10f2d63a VZ |
3300 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3301 | if test "x$LINE" != x ; then | |
3302 | eval "DEFAULT_$LINE" | |
3303 | else | |
3304 | no_cache=1 | |
3305 | fi | |
3306 | ||
3307 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3308 | |
3309 | fi | |
10f2d63a VZ |
3310 | |
3311 | ||
3312 | eval "$ac_cv_use_fraction" | |
3313 | if test "$no_cache" != 1; then | |
3314 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3315 | fi | |
3316 | ||
3317 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3318 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3319 | else |
698dcdb6 | 3320 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3321 | fi |
698dcdb6 | 3322 | |
10f2d63a | 3323 | |
698dcdb6 | 3324 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
f33f19dd | 3325 | echo "configure:3326: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3326 | no_cache=0 |
3327 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3328 | if test "${enable_dynlib+set}" = set; then | |
3329 | enableval="$enable_dynlib" | |
698dcdb6 | 3330 | |
10f2d63a VZ |
3331 | if test "$enableval" = yes; then |
3332 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3333 | else | |
3334 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3335 | fi | |
698dcdb6 | 3336 | |
10f2d63a | 3337 | else |
698dcdb6 | 3338 | |
10f2d63a VZ |
3339 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3340 | if test "x$LINE" != x ; then | |
3341 | eval "DEFAULT_$LINE" | |
3342 | else | |
3343 | no_cache=1 | |
3344 | fi | |
3345 | ||
3346 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3347 | |
3348 | fi | |
10f2d63a VZ |
3349 | |
3350 | ||
3351 | eval "$ac_cv_use_dynlib" | |
3352 | if test "$no_cache" != 1; then | |
3353 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3354 | fi | |
3355 | ||
3356 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3357 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3358 | else |
698dcdb6 | 3359 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3360 | fi |
698dcdb6 | 3361 | |
10f2d63a | 3362 | |
698dcdb6 | 3363 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
f33f19dd | 3364 | echo "configure:3365: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3365 | no_cache=0 |
3366 | # Check whether --enable-longlong or --disable-longlong was given. | |
3367 | if test "${enable_longlong+set}" = set; then | |
3368 | enableval="$enable_longlong" | |
698dcdb6 | 3369 | |
10f2d63a VZ |
3370 | if test "$enableval" = yes; then |
3371 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3372 | else | |
3373 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3374 | fi | |
698dcdb6 | 3375 | |
10f2d63a | 3376 | else |
698dcdb6 | 3377 | |
10f2d63a VZ |
3378 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3379 | if test "x$LINE" != x ; then | |
3380 | eval "DEFAULT_$LINE" | |
3381 | else | |
3382 | no_cache=1 | |
3383 | fi | |
3384 | ||
3385 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3386 | |
3387 | fi | |
10f2d63a VZ |
3388 | |
3389 | ||
3390 | eval "$ac_cv_use_longlong" | |
3391 | if test "$no_cache" != 1; then | |
3392 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3393 | fi | |
3394 | ||
3395 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3396 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3397 | else |
698dcdb6 | 3398 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3399 | fi |
698dcdb6 | 3400 | |
10f2d63a | 3401 | |
698dcdb6 | 3402 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
f33f19dd | 3403 | echo "configure:3404: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3404 | no_cache=0 |
3405 | # Check whether --enable-geometry or --disable-geometry was given. | |
3406 | if test "${enable_geometry+set}" = set; then | |
3407 | enableval="$enable_geometry" | |
698dcdb6 | 3408 | |
e8f65ba6 RR |
3409 | if test "$enableval" = yes; then |
3410 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3411 | else | |
3412 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3413 | fi | |
698dcdb6 | 3414 | |
e8f65ba6 | 3415 | else |
698dcdb6 | 3416 | |
e8f65ba6 RR |
3417 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3418 | if test "x$LINE" != x ; then | |
3419 | eval "DEFAULT_$LINE" | |
3420 | else | |
3421 | no_cache=1 | |
3422 | fi | |
3423 | ||
3424 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3425 | |
3426 | fi | |
e8f65ba6 RR |
3427 | |
3428 | ||
3429 | eval "$ac_cv_use_geometry" | |
3430 | if test "$no_cache" != 1; then | |
3431 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3432 | fi | |
3433 | ||
3434 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3435 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3436 | else |
698dcdb6 | 3437 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3438 | fi |
698dcdb6 | 3439 | |
e8f65ba6 | 3440 | |
698dcdb6 | 3441 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
f33f19dd | 3442 | echo "configure:3443: checking for --enable-log" >&5 |
10f2d63a VZ |
3443 | no_cache=0 |
3444 | # Check whether --enable-log or --disable-log was given. | |
3445 | if test "${enable_log+set}" = set; then | |
3446 | enableval="$enable_log" | |
698dcdb6 | 3447 | |
10f2d63a VZ |
3448 | if test "$enableval" = yes; then |
3449 | ac_cv_use_log='wxUSE_LOG=yes' | |
3450 | else | |
3451 | ac_cv_use_log='wxUSE_LOG=no' | |
3452 | fi | |
698dcdb6 | 3453 | |
10f2d63a | 3454 | else |
698dcdb6 | 3455 | |
10f2d63a VZ |
3456 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3457 | if test "x$LINE" != x ; then | |
3458 | eval "DEFAULT_$LINE" | |
3459 | else | |
3460 | no_cache=1 | |
3461 | fi | |
3462 | ||
3463 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3464 | |
3465 | fi | |
10f2d63a VZ |
3466 | |
3467 | ||
3468 | eval "$ac_cv_use_log" | |
3469 | if test "$no_cache" != 1; then | |
3470 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3471 | fi | |
3472 | ||
3473 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3474 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3475 | else |
698dcdb6 | 3476 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3477 | fi |
698dcdb6 | 3478 | |
10f2d63a | 3479 | |
698dcdb6 | 3480 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
f33f19dd | 3481 | echo "configure:3482: checking for --enable-streams" >&5 |
10f2d63a VZ |
3482 | no_cache=0 |
3483 | # Check whether --enable-streams or --disable-streams was given. | |
3484 | if test "${enable_streams+set}" = set; then | |
3485 | enableval="$enable_streams" | |
698dcdb6 | 3486 | |
10f2d63a VZ |
3487 | if test "$enableval" = yes; then |
3488 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3489 | else | |
3490 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3491 | fi | |
698dcdb6 | 3492 | |
10f2d63a | 3493 | else |
698dcdb6 | 3494 | |
10f2d63a VZ |
3495 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3496 | if test "x$LINE" != x ; then | |
3497 | eval "DEFAULT_$LINE" | |
3498 | else | |
3499 | no_cache=1 | |
3500 | fi | |
3501 | ||
3502 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3503 | |
3504 | fi | |
10f2d63a VZ |
3505 | |
3506 | ||
3507 | eval "$ac_cv_use_streams" | |
3508 | if test "$no_cache" != 1; then | |
3509 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3510 | fi | |
3511 | ||
3512 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3513 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3514 | else |
698dcdb6 | 3515 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3516 | fi |
698dcdb6 | 3517 | |
10f2d63a | 3518 | |
698dcdb6 | 3519 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
f33f19dd | 3520 | echo "configure:3521: checking for --enable-file" >&5 |
10f2d63a VZ |
3521 | no_cache=0 |
3522 | # Check whether --enable-file or --disable-file was given. | |
3523 | if test "${enable_file+set}" = set; then | |
3524 | enableval="$enable_file" | |
698dcdb6 | 3525 | |
10f2d63a VZ |
3526 | if test "$enableval" = yes; then |
3527 | ac_cv_use_file='wxUSE_FILE=yes' | |
3528 | else | |
3529 | ac_cv_use_file='wxUSE_FILE=no' | |
3530 | fi | |
698dcdb6 | 3531 | |
10f2d63a | 3532 | else |
698dcdb6 | 3533 | |
10f2d63a VZ |
3534 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3535 | if test "x$LINE" != x ; then | |
3536 | eval "DEFAULT_$LINE" | |
3537 | else | |
3538 | no_cache=1 | |
3539 | fi | |
3540 | ||
3541 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3542 | |
3543 | fi | |
10f2d63a VZ |
3544 | |
3545 | ||
3546 | eval "$ac_cv_use_file" | |
3547 | if test "$no_cache" != 1; then | |
3548 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3549 | fi | |
3550 | ||
3551 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3552 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3553 | else |
698dcdb6 | 3554 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3555 | fi |
698dcdb6 | 3556 | |
10f2d63a | 3557 | |
1e6feb95 | 3558 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
f33f19dd | 3559 | echo "configure:3560: checking for --enable-ffile" >&5 |
10f2d63a | 3560 | no_cache=0 |
1e6feb95 VZ |
3561 | # Check whether --enable-ffile or --disable-ffile was given. |
3562 | if test "${enable_ffile+set}" = set; then | |
3563 | enableval="$enable_ffile" | |
698dcdb6 | 3564 | |
10f2d63a | 3565 | if test "$enableval" = yes; then |
1e6feb95 | 3566 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3567 | else |
1e6feb95 | 3568 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3569 | fi |
698dcdb6 | 3570 | |
10f2d63a | 3571 | else |
698dcdb6 | 3572 | |
1e6feb95 | 3573 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3574 | if test "x$LINE" != x ; then |
3575 | eval "DEFAULT_$LINE" | |
3576 | else | |
3577 | no_cache=1 | |
3578 | fi | |
3579 | ||
1e6feb95 | 3580 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3581 | |
3582 | fi | |
10f2d63a VZ |
3583 | |
3584 | ||
1e6feb95 | 3585 | eval "$ac_cv_use_ffile" |
10f2d63a | 3586 | if test "$no_cache" != 1; then |
1e6feb95 | 3587 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3588 | fi |
3589 | ||
1e6feb95 | 3590 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3591 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3592 | else |
698dcdb6 | 3593 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3594 | fi |
698dcdb6 | 3595 | |
10f2d63a | 3596 | |
1e6feb95 | 3597 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
f33f19dd | 3598 | echo "configure:3599: checking for --enable-textfile" >&5 |
10f2d63a | 3599 | no_cache=0 |
1e6feb95 VZ |
3600 | # Check whether --enable-textfile or --disable-textfile was given. |
3601 | if test "${enable_textfile+set}" = set; then | |
3602 | enableval="$enable_textfile" | |
698dcdb6 | 3603 | |
10f2d63a | 3604 | if test "$enableval" = yes; then |
1e6feb95 | 3605 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3606 | else |
1e6feb95 | 3607 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3608 | fi |
698dcdb6 | 3609 | |
10f2d63a | 3610 | else |
698dcdb6 | 3611 | |
1e6feb95 | 3612 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3613 | if test "x$LINE" != x ; then |
3614 | eval "DEFAULT_$LINE" | |
3615 | else | |
3616 | no_cache=1 | |
3617 | fi | |
3618 | ||
1e6feb95 | 3619 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3620 | |
3621 | fi | |
10f2d63a VZ |
3622 | |
3623 | ||
1e6feb95 | 3624 | eval "$ac_cv_use_textfile" |
10f2d63a | 3625 | if test "$no_cache" != 1; then |
1e6feb95 | 3626 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3627 | fi |
3628 | ||
1e6feb95 | 3629 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3630 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3631 | else |
698dcdb6 | 3632 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3633 | fi |
698dcdb6 | 3634 | |
10f2d63a | 3635 | |
1e6feb95 | 3636 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
f33f19dd | 3637 | echo "configure:3638: checking for --enable-fontmap" >&5 |
10f2d63a | 3638 | no_cache=0 |
1e6feb95 VZ |
3639 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3640 | if test "${enable_fontmap+set}" = set; then | |
3641 | enableval="$enable_fontmap" | |
698dcdb6 | 3642 | |
10f2d63a | 3643 | if test "$enableval" = yes; then |
1e6feb95 | 3644 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3645 | else |
1e6feb95 | 3646 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3647 | fi |
698dcdb6 | 3648 | |
10f2d63a | 3649 | else |
698dcdb6 | 3650 | |
1e6feb95 | 3651 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3652 | if test "x$LINE" != x ; then |
3653 | eval "DEFAULT_$LINE" | |
3654 | else | |
3655 | no_cache=1 | |
3656 | fi | |
3657 | ||
1e6feb95 | 3658 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3659 | |
3660 | fi | |
10f2d63a VZ |
3661 | |
3662 | ||
1e6feb95 | 3663 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3664 | if test "$no_cache" != 1; then |
1e6feb95 | 3665 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3666 | fi |
3667 | ||
1e6feb95 | 3668 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3669 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3670 | else |
698dcdb6 | 3671 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3672 | fi |
698dcdb6 | 3673 | |
10f2d63a | 3674 | |
1e6feb95 | 3675 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
f33f19dd | 3676 | echo "configure:3677: checking for --enable-unicode" >&5 |
10f2d63a | 3677 | no_cache=0 |
1e6feb95 VZ |
3678 | # Check whether --enable-unicode or --disable-unicode was given. |
3679 | if test "${enable_unicode+set}" = set; then | |
3680 | enableval="$enable_unicode" | |
3681 | ||
3682 | if test "$enableval" = yes; then | |
3683 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3684 | else | |
3685 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3686 | fi | |
3687 | ||
3688 | else | |
3689 | ||
3690 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3691 | if test "x$LINE" != x ; then | |
3692 | eval "DEFAULT_$LINE" | |
3693 | else | |
3694 | no_cache=1 | |
3695 | fi | |
3696 | ||
3697 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3698 | ||
3699 | fi | |
3700 | ||
3701 | ||
3702 | eval "$ac_cv_use_unicode" | |
3703 | if test "$no_cache" != 1; then | |
3704 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3705 | fi | |
3706 | ||
3707 | if test "$wxUSE_UNICODE" = yes; then | |
3708 | echo "$ac_t""yes" 1>&6 | |
3709 | else | |
3710 | echo "$ac_t""no" 1>&6 | |
3711 | fi | |
3712 | ||
3713 | ||
3714 | echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6 | |
f33f19dd | 3715 | echo "configure:3716: checking for --enable-wcsrtombs" >&5 |
1e6feb95 VZ |
3716 | no_cache=0 |
3717 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3718 | if test "${enable_wcsrtombs+set}" = set; then | |
3719 | enableval="$enable_wcsrtombs" | |
3720 | ||
3721 | if test "$enableval" = yes; then | |
3722 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3723 | else | |
3724 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3725 | fi | |
3726 | ||
3727 | else | |
3728 | ||
3729 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3730 | if test "x$LINE" != x ; then | |
3731 | eval "DEFAULT_$LINE" | |
3732 | else | |
3733 | no_cache=1 | |
3734 | fi | |
3735 | ||
3736 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3737 | ||
3738 | fi | |
3739 | ||
3740 | ||
3741 | eval "$ac_cv_use_wcsrtombs" | |
3742 | if test "$no_cache" != 1; then | |
3743 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3744 | fi | |
3745 | ||
3746 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3747 | echo "$ac_t""yes" 1>&6 | |
3748 | else | |
3749 | echo "$ac_t""no" 1>&6 | |
3750 | fi | |
3751 | ||
3752 | ||
3753 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 | |
f33f19dd | 3754 | echo "configure:3755: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3755 | no_cache=0 |
3756 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3757 | if test "${enable_wxprintfv+set}" = set; then | |
3758 | enableval="$enable_wxprintfv" | |
3759 | ||
3760 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3761 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3762 | else | |
3763 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3764 | fi | |
698dcdb6 | 3765 | |
10f2d63a | 3766 | else |
698dcdb6 | 3767 | |
10f2d63a VZ |
3768 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3769 | if test "x$LINE" != x ; then | |
3770 | eval "DEFAULT_$LINE" | |
3771 | else | |
3772 | no_cache=1 | |
3773 | fi | |
3774 | ||
3775 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3776 | |
3777 | fi | |
10f2d63a VZ |
3778 | |
3779 | ||
3780 | eval "$ac_cv_use_wxprintfv" | |
3781 | if test "$no_cache" != 1; then | |
3782 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3783 | fi | |
3784 | ||
3785 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3786 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3787 | else |
698dcdb6 | 3788 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3789 | fi |
698dcdb6 | 3790 | |
10f2d63a | 3791 | |
698dcdb6 | 3792 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
f33f19dd | 3793 | echo "configure:3794: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3794 | no_cache=0 |
3795 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3796 | if test "${enable_std_iostreams+set}" = set; then | |
3797 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3798 | |
10f2d63a VZ |
3799 | if test "$enableval" = yes; then |
3800 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3801 | else | |
3802 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3803 | fi | |
698dcdb6 | 3804 | |
10f2d63a | 3805 | else |
698dcdb6 | 3806 | |
10f2d63a VZ |
3807 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3808 | if test "x$LINE" != x ; then | |
3809 | eval "DEFAULT_$LINE" | |
3810 | else | |
3811 | no_cache=1 | |
3812 | fi | |
3813 | ||
3814 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3815 | |
3816 | fi | |
10f2d63a VZ |
3817 | |
3818 | ||
3819 | eval "$ac_cv_use_std_iostreams" | |
3820 | if test "$no_cache" != 1; then | |
3821 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3822 | fi | |
3823 | ||
3824 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3825 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3826 | else |
698dcdb6 | 3827 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3828 | fi |
698dcdb6 | 3829 | |
10f2d63a | 3830 | |
698dcdb6 | 3831 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
f33f19dd | 3832 | echo "configure:3833: checking for --enable-filesystem" >&5 |
24528b0c VS |
3833 | no_cache=0 |
3834 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3835 | if test "${enable_filesystem+set}" = set; then | |
3836 | enableval="$enable_filesystem" | |
698dcdb6 | 3837 | |
24528b0c VS |
3838 | if test "$enableval" = yes; then |
3839 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3840 | else | |
3841 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3842 | fi | |
698dcdb6 | 3843 | |
24528b0c | 3844 | else |
698dcdb6 | 3845 | |
24528b0c VS |
3846 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3847 | if test "x$LINE" != x ; then | |
3848 | eval "DEFAULT_$LINE" | |
3849 | else | |
3850 | no_cache=1 | |
3851 | fi | |
3852 | ||
3853 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3854 | |
3855 | fi | |
24528b0c VS |
3856 | |
3857 | ||
3858 | eval "$ac_cv_use_filesystem" | |
3859 | if test "$no_cache" != 1; then | |
3860 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3861 | fi | |
3862 | ||
3863 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3864 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3865 | else |
698dcdb6 | 3866 | echo "$ac_t""no" 1>&6 |
24528b0c | 3867 | fi |
698dcdb6 | 3868 | |
24528b0c | 3869 | |
698dcdb6 | 3870 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
f33f19dd | 3871 | echo "configure:3872: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3872 | no_cache=0 |
3873 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3874 | if test "${enable_fs_inet+set}" = set; then | |
3875 | enableval="$enable_fs_inet" | |
698dcdb6 | 3876 | |
10f2d63a VZ |
3877 | if test "$enableval" = yes; then |
3878 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3879 | else | |
3880 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3881 | fi | |
698dcdb6 | 3882 | |
10f2d63a | 3883 | else |
698dcdb6 | 3884 | |
10f2d63a VZ |
3885 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3886 | if test "x$LINE" != x ; then | |
3887 | eval "DEFAULT_$LINE" | |
3888 | else | |
3889 | no_cache=1 | |
3890 | fi | |
3891 | ||
3892 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3893 | |
3894 | fi | |
10f2d63a VZ |
3895 | |
3896 | ||
3897 | eval "$ac_cv_use_fs_inet" | |
3898 | if test "$no_cache" != 1; then | |
3899 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3900 | fi | |
3901 | ||
3902 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 3903 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3904 | else |
698dcdb6 | 3905 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3906 | fi |
698dcdb6 | 3907 | |
10f2d63a | 3908 | |
698dcdb6 | 3909 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
f33f19dd | 3910 | echo "configure:3911: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
3911 | no_cache=0 |
3912 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3913 | if test "${enable_fs_zip+set}" = set; then | |
3914 | enableval="$enable_fs_zip" | |
698dcdb6 | 3915 | |
10f2d63a VZ |
3916 | if test "$enableval" = yes; then |
3917 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3918 | else | |
3919 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3920 | fi | |
698dcdb6 | 3921 | |
10f2d63a | 3922 | else |
698dcdb6 | 3923 | |
10f2d63a VZ |
3924 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
3925 | if test "x$LINE" != x ; then | |
3926 | eval "DEFAULT_$LINE" | |
3927 | else | |
3928 | no_cache=1 | |
3929 | fi | |
3930 | ||
3931 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
3932 | |
3933 | fi | |
10f2d63a VZ |
3934 | |
3935 | ||
3936 | eval "$ac_cv_use_fs_zip" | |
3937 | if test "$no_cache" != 1; then | |
3938 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3939 | fi | |
3940 | ||
3941 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 3942 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3943 | else |
698dcdb6 | 3944 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3945 | fi |
698dcdb6 | 3946 | |
10f2d63a | 3947 | |
698dcdb6 | 3948 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
f33f19dd | 3949 | echo "configure:3950: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
3950 | no_cache=0 |
3951 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3952 | if test "${enable_zipstream+set}" = set; then | |
3953 | enableval="$enable_zipstream" | |
698dcdb6 | 3954 | |
10f2d63a VZ |
3955 | if test "$enableval" = yes; then |
3956 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3957 | else | |
3958 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3959 | fi | |
698dcdb6 | 3960 | |
10f2d63a | 3961 | else |
698dcdb6 | 3962 | |
10f2d63a VZ |
3963 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3964 | if test "x$LINE" != x ; then | |
3965 | eval "DEFAULT_$LINE" | |
3966 | else | |
3967 | no_cache=1 | |
3968 | fi | |
3969 | ||
3970 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
3971 | |
3972 | fi | |
10f2d63a VZ |
3973 | |
3974 | ||
3975 | eval "$ac_cv_use_zipstream" | |
3976 | if test "$no_cache" != 1; then | |
3977 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3978 | fi | |
3979 | ||
3980 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 3981 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3982 | else |
698dcdb6 | 3983 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3984 | fi |
698dcdb6 | 3985 | |
10f2d63a | 3986 | |
698dcdb6 VZ |
3987 | |
3988 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
f33f19dd | 3989 | echo "configure:3990: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
3990 | no_cache=0 |
3991 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
3992 | if test "${enable_catch_segvs+set}" = set; then | |
3993 | enableval="$enable_catch_segvs" | |
698dcdb6 | 3994 | |
eb4efbdc VZ |
3995 | if test "$enableval" = yes; then |
3996 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
3997 | else | |
3998 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
3999 | fi | |
698dcdb6 | 4000 | |
eb4efbdc | 4001 | else |
698dcdb6 | 4002 | |
eb4efbdc VZ |
4003 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4004 | if test "x$LINE" != x ; then | |
4005 | eval "DEFAULT_$LINE" | |
4006 | else | |
4007 | no_cache=1 | |
4008 | fi | |
4009 | ||
4010 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4011 | |
4012 | fi | |
eb4efbdc VZ |
4013 | |
4014 | ||
4015 | eval "$ac_cv_use_catch_segvs" | |
4016 | if test "$no_cache" != 1; then | |
4017 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4018 | fi | |
4019 | ||
4020 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4021 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4022 | else |
698dcdb6 | 4023 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4024 | fi |
698dcdb6 | 4025 | |
eb4efbdc | 4026 | |
698dcdb6 | 4027 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
f33f19dd | 4028 | echo "configure:4029: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4029 | no_cache=0 |
4030 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4031 | if test "${enable_snglinst+set}" = set; then | |
4032 | enableval="$enable_snglinst" | |
698dcdb6 | 4033 | |
4f3c5f06 VZ |
4034 | if test "$enableval" = yes; then |
4035 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4036 | else | |
4037 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4038 | fi | |
698dcdb6 | 4039 | |
4f3c5f06 | 4040 | else |
698dcdb6 | 4041 | |
4f3c5f06 VZ |
4042 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4043 | if test "x$LINE" != x ; then | |
4044 | eval "DEFAULT_$LINE" | |
4045 | else | |
4046 | no_cache=1 | |
4047 | fi | |
4048 | ||
4049 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4050 | |
4051 | fi | |
4f3c5f06 VZ |
4052 | |
4053 | ||
4054 | eval "$ac_cv_use_snglinst" | |
4055 | if test "$no_cache" != 1; then | |
4056 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4057 | fi | |
4058 | ||
4059 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4060 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4061 | else |
698dcdb6 | 4062 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4063 | fi |
698dcdb6 VZ |
4064 | |
4065 | ||
eb4efbdc | 4066 | |
1e6feb95 | 4067 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
f33f19dd | 4068 | echo "configure:4069: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4069 | no_cache=0 |
4070 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4071 | if test "${enable_mimetype+set}" = set; then | |
4072 | enableval="$enable_mimetype" | |
4073 | ||
4074 | if test "$enableval" = yes; then | |
4075 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4076 | else | |
4077 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4078 | fi | |
4079 | ||
4080 | else | |
4081 | ||
4082 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4083 | if test "x$LINE" != x ; then | |
4084 | eval "DEFAULT_$LINE" | |
4085 | else | |
4086 | no_cache=1 | |
4087 | fi | |
4088 | ||
4089 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4090 | ||
4091 | fi | |
4092 | ||
4093 | ||
4094 | eval "$ac_cv_use_mimetype" | |
4095 | if test "$no_cache" != 1; then | |
4096 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4097 | fi | |
4098 | ||
4099 | if test "$wxUSE_MIMETYPE" = yes; then | |
4100 | echo "$ac_t""yes" 1>&6 | |
4101 | else | |
4102 | echo "$ac_t""no" 1>&6 | |
4103 | fi | |
4104 | ||
4105 | ||
4106 | ||
698dcdb6 VZ |
4107 | |
4108 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
f33f19dd | 4109 | echo "configure:4110: checking for --enable-threads" >&5 |
10f2d63a VZ |
4110 | no_cache=0 |
4111 | # Check whether --enable-threads or --disable-threads was given. | |
4112 | if test "${enable_threads+set}" = set; then | |
4113 | enableval="$enable_threads" | |
698dcdb6 | 4114 | |
10f2d63a VZ |
4115 | if test "$enableval" = yes; then |
4116 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4117 | else | |
4118 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4119 | fi | |
698dcdb6 | 4120 | |
10f2d63a | 4121 | else |
698dcdb6 | 4122 | |
10f2d63a VZ |
4123 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4124 | if test "x$LINE" != x ; then | |
4125 | eval "DEFAULT_$LINE" | |
4126 | else | |
4127 | no_cache=1 | |
4128 | fi | |
4129 | ||
4130 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4131 | |
4132 | fi | |
10f2d63a VZ |
4133 | |
4134 | ||
4135 | eval "$ac_cv_use_threads" | |
4136 | if test "$no_cache" != 1; then | |
4137 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4138 | fi | |
4139 | ||
4140 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4141 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4142 | else |
698dcdb6 | 4143 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4144 | fi |
698dcdb6 | 4145 | |
10f2d63a | 4146 | |
698dcdb6 | 4147 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
f33f19dd | 4148 | echo "configure:4149: checking for --enable-serial" >&5 |
10f2d63a VZ |
4149 | no_cache=0 |
4150 | # Check whether --enable-serial or --disable-serial was given. | |
4151 | if test "${enable_serial+set}" = set; then | |
4152 | enableval="$enable_serial" | |
698dcdb6 | 4153 | |
10f2d63a VZ |
4154 | if test "$enableval" = yes; then |
4155 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4156 | else | |
4157 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4158 | fi | |
698dcdb6 | 4159 | |
10f2d63a | 4160 | else |
698dcdb6 | 4161 | |
10f2d63a VZ |
4162 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4163 | if test "x$LINE" != x ; then | |
4164 | eval "DEFAULT_$LINE" | |
4165 | else | |
4166 | no_cache=1 | |
4167 | fi | |
4168 | ||
4169 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4170 | |
4171 | fi | |
10f2d63a VZ |
4172 | |
4173 | ||
4174 | eval "$ac_cv_use_serial" | |
4175 | if test "$no_cache" != 1; then | |
4176 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4177 | fi | |
4178 | ||
4179 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4180 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4181 | else |
698dcdb6 | 4182 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4183 | fi |
698dcdb6 | 4184 | |
10f2d63a | 4185 | |
b12915c1 VZ |
4186 | if test "$wxUSE_GUI" = "yes"; then |
4187 | ||
698dcdb6 VZ |
4188 | |
4189 | ||
4190 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
f33f19dd | 4191 | echo "configure:4192: checking for --enable-docview" >&5 |
10f2d63a VZ |
4192 | no_cache=0 |
4193 | # Check whether --enable-docview or --disable-docview was given. | |
4194 | if test "${enable_docview+set}" = set; then | |
4195 | enableval="$enable_docview" | |
698dcdb6 | 4196 | |
10f2d63a VZ |
4197 | if test "$enableval" = yes; then |
4198 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4199 | else | |
4200 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4201 | fi | |
698dcdb6 | 4202 | |
10f2d63a | 4203 | else |
698dcdb6 | 4204 | |
10f2d63a VZ |
4205 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4206 | if test "x$LINE" != x ; then | |
4207 | eval "DEFAULT_$LINE" | |
4208 | else | |
4209 | no_cache=1 | |
4210 | fi | |
4211 | ||
4212 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4213 | |
4214 | fi | |
10f2d63a VZ |
4215 | |
4216 | ||
4217 | eval "$ac_cv_use_docview" | |
4218 | if test "$no_cache" != 1; then | |
4219 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4220 | fi | |
4221 | ||
4222 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4223 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4224 | else |
698dcdb6 | 4225 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4226 | fi |
698dcdb6 | 4227 | |
10f2d63a | 4228 | |
698dcdb6 | 4229 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
f33f19dd | 4230 | echo "configure:4231: checking for --enable-help" >&5 |
10f2d63a VZ |
4231 | no_cache=0 |
4232 | # Check whether --enable-help or --disable-help was given. | |
4233 | if test "${enable_help+set}" = set; then | |
4234 | enableval="$enable_help" | |
698dcdb6 | 4235 | |
10f2d63a VZ |
4236 | if test "$enableval" = yes; then |
4237 | ac_cv_use_help='wxUSE_HELP=yes' | |
4238 | else | |
4239 | ac_cv_use_help='wxUSE_HELP=no' | |
4240 | fi | |
698dcdb6 | 4241 | |
10f2d63a | 4242 | else |
698dcdb6 | 4243 | |
10f2d63a VZ |
4244 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4245 | if test "x$LINE" != x ; then | |
4246 | eval "DEFAULT_$LINE" | |
4247 | else | |
4248 | no_cache=1 | |
4249 | fi | |
4250 | ||
4251 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4252 | |
4253 | fi | |
10f2d63a VZ |
4254 | |
4255 | ||
4256 | eval "$ac_cv_use_help" | |
4257 | if test "$no_cache" != 1; then | |
4258 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4259 | fi | |
4260 | ||
4261 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4262 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4263 | else |
698dcdb6 | 4264 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4265 | fi |
698dcdb6 | 4266 | |
10f2d63a | 4267 | |
698dcdb6 | 4268 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
f33f19dd | 4269 | echo "configure:4270: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4270 | no_cache=0 |
4271 | # Check whether --enable-constraints or --disable-constraints was given. | |
4272 | if test "${enable_constraints+set}" = set; then | |
4273 | enableval="$enable_constraints" | |
698dcdb6 | 4274 | |
10f2d63a VZ |
4275 | if test "$enableval" = yes; then |
4276 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4277 | else | |
4278 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4279 | fi | |
698dcdb6 | 4280 | |
10f2d63a | 4281 | else |
698dcdb6 | 4282 | |
10f2d63a VZ |
4283 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4284 | if test "x$LINE" != x ; then | |
4285 | eval "DEFAULT_$LINE" | |
4286 | else | |
4287 | no_cache=1 | |
4288 | fi | |
4289 | ||
4290 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4291 | |
4292 | fi | |
10f2d63a VZ |
4293 | |
4294 | ||
4295 | eval "$ac_cv_use_constraints" | |
4296 | if test "$no_cache" != 1; then | |
4297 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4298 | fi | |
4299 | ||
4300 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4301 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4302 | else |
698dcdb6 | 4303 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4304 | fi |
698dcdb6 | 4305 | |
10f2d63a | 4306 | |
698dcdb6 | 4307 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
f33f19dd | 4308 | echo "configure:4309: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4309 | no_cache=0 |
4310 | # Check whether --enable-printarch or --disable-printarch was given. | |
4311 | if test "${enable_printarch+set}" = set; then | |
4312 | enableval="$enable_printarch" | |
698dcdb6 | 4313 | |
10f2d63a VZ |
4314 | if test "$enableval" = yes; then |
4315 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4316 | else | |
4317 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4318 | fi | |
698dcdb6 | 4319 | |
10f2d63a | 4320 | else |
698dcdb6 | 4321 | |
10f2d63a VZ |
4322 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4323 | if test "x$LINE" != x ; then | |
4324 | eval "DEFAULT_$LINE" | |
4325 | else | |
4326 | no_cache=1 | |
4327 | fi | |
4328 | ||
4329 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4330 | |
4331 | fi | |
10f2d63a VZ |
4332 | |
4333 | ||
4334 | eval "$ac_cv_use_printarch" | |
4335 | if test "$no_cache" != 1; then | |
4336 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4337 | fi | |
4338 | ||
4339 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4340 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4341 | else |
698dcdb6 | 4342 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4343 | fi |
698dcdb6 | 4344 | |
10f2d63a | 4345 | |
698dcdb6 | 4346 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
f33f19dd | 4347 | echo "configure:4348: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4348 | no_cache=0 |
4349 | # Check whether --enable-mdi or --disable-mdi was given. | |
4350 | if test "${enable_mdi+set}" = set; then | |
4351 | enableval="$enable_mdi" | |
698dcdb6 | 4352 | |
10f2d63a VZ |
4353 | if test "$enableval" = yes; then |
4354 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4355 | else | |
4356 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4357 | fi | |
698dcdb6 | 4358 | |
10f2d63a | 4359 | else |
698dcdb6 | 4360 | |
10f2d63a VZ |
4361 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4362 | if test "x$LINE" != x ; then | |
4363 | eval "DEFAULT_$LINE" | |
4364 | else | |
4365 | no_cache=1 | |
4366 | fi | |
4367 | ||
4368 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4369 | |
4370 | fi | |
10f2d63a VZ |
4371 | |
4372 | ||
4373 | eval "$ac_cv_use_mdi" | |
4374 | if test "$no_cache" != 1; then | |
4375 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4376 | fi | |
4377 | ||
4378 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4379 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4380 | else |
698dcdb6 | 4381 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4382 | fi |
698dcdb6 VZ |
4383 | |
4384 | ||
1e6feb95 | 4385 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
f33f19dd | 4386 | echo "configure:4387: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4387 | no_cache=0 |
4388 | # Check whether --enable-loggui or --disable-loggui was given. | |
4389 | if test "${enable_loggui+set}" = set; then | |
4390 | enableval="$enable_loggui" | |
4391 | ||
4392 | if test "$enableval" = yes; then | |
4393 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4394 | else | |
4395 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4396 | fi | |
4397 | ||
4398 | else | |
4399 | ||
4400 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4401 | if test "x$LINE" != x ; then | |
4402 | eval "DEFAULT_$LINE" | |
4403 | else | |
4404 | no_cache=1 | |
4405 | fi | |
4406 | ||
4407 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4408 | ||
4409 | fi | |
4410 | ||
4411 | ||
4412 | eval "$ac_cv_use_loggui" | |
4413 | if test "$no_cache" != 1; then | |
4414 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4415 | fi | |
4416 | ||
4417 | if test "$wxUSE_LOGGUI" = yes; then | |
4418 | echo "$ac_t""yes" 1>&6 | |
4419 | else | |
4420 | echo "$ac_t""no" 1>&6 | |
4421 | fi | |
4422 | ||
4423 | ||
4424 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
f33f19dd | 4425 | echo "configure:4426: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4426 | no_cache=0 |
4427 | # Check whether --enable-logwin or --disable-logwin was given. | |
4428 | if test "${enable_logwin+set}" = set; then | |
4429 | enableval="$enable_logwin" | |
4430 | ||
4431 | if test "$enableval" = yes; then | |
4432 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4433 | else | |
4434 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4435 | fi | |
4436 | ||
4437 | else | |
4438 | ||
4439 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4440 | if test "x$LINE" != x ; then | |
4441 | eval "DEFAULT_$LINE" | |
4442 | else | |
4443 | no_cache=1 | |
4444 | fi | |
4445 | ||
4446 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4447 | ||
4448 | fi | |
4449 | ||
4450 | ||
4451 | eval "$ac_cv_use_logwin" | |
4452 | if test "$no_cache" != 1; then | |
4453 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4454 | fi | |
4455 | ||
4456 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4457 | echo "$ac_t""yes" 1>&6 | |
4458 | else | |
4459 | echo "$ac_t""no" 1>&6 | |
4460 | fi | |
4461 | ||
4462 | ||
10f2d63a | 4463 | |
698dcdb6 | 4464 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
f33f19dd | 4465 | echo "configure:4466: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4466 | no_cache=0 |
4467 | # Check whether --enable-postscript or --disable-postscript was given. | |
4468 | if test "${enable_postscript+set}" = set; then | |
4469 | enableval="$enable_postscript" | |
698dcdb6 | 4470 | |
10f2d63a VZ |
4471 | if test "$enableval" = yes; then |
4472 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4473 | else | |
4474 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4475 | fi | |
698dcdb6 | 4476 | |
10f2d63a | 4477 | else |
698dcdb6 | 4478 | |
10f2d63a VZ |
4479 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4480 | if test "x$LINE" != x ; then | |
4481 | eval "DEFAULT_$LINE" | |
4482 | else | |
4483 | no_cache=1 | |
4484 | fi | |
4485 | ||
4486 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4487 | |
4488 | fi | |
10f2d63a VZ |
4489 | |
4490 | ||
4491 | eval "$ac_cv_use_postscript" | |
4492 | if test "$no_cache" != 1; then | |
4493 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4494 | fi | |
4495 | ||
4496 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4497 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4498 | else |
698dcdb6 | 4499 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4500 | fi |
698dcdb6 VZ |
4501 | |
4502 | ||
4503 | ||
10f2d63a | 4504 | |
1e6feb95 | 4505 | |
698dcdb6 | 4506 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
f33f19dd | 4507 | echo "configure:4508: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4508 | no_cache=0 |
4509 | # Check whether --enable-prologio or --disable-prologio was given. | |
4510 | if test "${enable_prologio+set}" = set; then | |
4511 | enableval="$enable_prologio" | |
698dcdb6 | 4512 | |
10f2d63a VZ |
4513 | if test "$enableval" = yes; then |
4514 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4515 | else | |
4516 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4517 | fi | |
698dcdb6 | 4518 | |
10f2d63a | 4519 | else |
698dcdb6 | 4520 | |
10f2d63a VZ |
4521 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4522 | if test "x$LINE" != x ; then | |
4523 | eval "DEFAULT_$LINE" | |
4524 | else | |
4525 | no_cache=1 | |
4526 | fi | |
4527 | ||
4528 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4529 | |
4530 | fi | |
10f2d63a VZ |
4531 | |
4532 | ||
4533 | eval "$ac_cv_use_prologio" | |
4534 | if test "$no_cache" != 1; then | |
4535 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4536 | fi | |
4537 | ||
4538 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4539 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4540 | else |
698dcdb6 | 4541 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4542 | fi |
698dcdb6 | 4543 | |
10f2d63a | 4544 | |
698dcdb6 | 4545 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
f33f19dd | 4546 | echo "configure:4547: checking for --enable-resources" >&5 |
10f2d63a VZ |
4547 | no_cache=0 |
4548 | # Check whether --enable-resources or --disable-resources was given. | |
4549 | if test "${enable_resources+set}" = set; then | |
4550 | enableval="$enable_resources" | |
698dcdb6 | 4551 | |
10f2d63a VZ |
4552 | if test "$enableval" = yes; then |
4553 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4554 | else | |
4555 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4556 | fi | |
698dcdb6 | 4557 | |
10f2d63a | 4558 | else |
698dcdb6 | 4559 | |
10f2d63a VZ |
4560 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4561 | if test "x$LINE" != x ; then | |
4562 | eval "DEFAULT_$LINE" | |
4563 | else | |
4564 | no_cache=1 | |
4565 | fi | |
4566 | ||
4567 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4568 | |
4569 | fi | |
10f2d63a VZ |
4570 | |
4571 | ||
4572 | eval "$ac_cv_use_resources" | |
4573 | if test "$no_cache" != 1; then | |
4574 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4575 | fi | |
4576 | ||
4577 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4578 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4579 | else |
698dcdb6 | 4580 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4581 | fi |
698dcdb6 | 4582 | |
10f2d63a | 4583 | |
698dcdb6 VZ |
4584 | |
4585 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
f33f19dd | 4586 | echo "configure:4587: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4587 | no_cache=0 |
4588 | # Check whether --enable-xresources or --disable-xresources was given. | |
4589 | if test "${enable_xresources+set}" = set; then | |
4590 | enableval="$enable_xresources" | |
698dcdb6 | 4591 | |
10f2d63a VZ |
4592 | if test "$enableval" = yes; then |
4593 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4594 | else | |
4595 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4596 | fi | |
698dcdb6 | 4597 | |
10f2d63a | 4598 | else |
698dcdb6 | 4599 | |
10f2d63a VZ |
4600 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4601 | if test "x$LINE" != x ; then | |
4602 | eval "DEFAULT_$LINE" | |
4603 | else | |
4604 | no_cache=1 | |
4605 | fi | |
4606 | ||
4607 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4608 | |
4609 | fi | |
10f2d63a VZ |
4610 | |
4611 | ||
4612 | eval "$ac_cv_use_xresources" | |
4613 | if test "$no_cache" != 1; then | |
4614 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4615 | fi | |
4616 | ||
4617 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4618 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4619 | else |
698dcdb6 | 4620 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4621 | fi |
698dcdb6 VZ |
4622 | |
4623 | ||
10f2d63a | 4624 | |
698dcdb6 VZ |
4625 | |
4626 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
f33f19dd | 4627 | echo "configure:4628: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4628 | no_cache=0 |
4629 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4630 | if test "${enable_clipboard+set}" = set; then | |
4631 | enableval="$enable_clipboard" | |
698dcdb6 | 4632 | |
10f2d63a VZ |
4633 | if test "$enableval" = yes; then |
4634 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4635 | else | |
4636 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4637 | fi | |
698dcdb6 | 4638 | |
10f2d63a | 4639 | else |
698dcdb6 | 4640 | |
10f2d63a VZ |
4641 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4642 | if test "x$LINE" != x ; then | |
4643 | eval "DEFAULT_$LINE" | |
4644 | else | |
4645 | no_cache=1 | |
4646 | fi | |
4647 | ||
4648 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4649 | |
4650 | fi | |
10f2d63a VZ |
4651 | |
4652 | ||
4653 | eval "$ac_cv_use_clipboard" | |
4654 | if test "$no_cache" != 1; then | |
4655 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4656 | fi | |
4657 | ||
4658 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4659 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4660 | else |
698dcdb6 | 4661 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4662 | fi |
698dcdb6 | 4663 | |
10f2d63a | 4664 | |
698dcdb6 | 4665 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
f33f19dd | 4666 | echo "configure:4667: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4667 | no_cache=0 |
4668 | # Check whether --enable-dnd or --disable-dnd was given. | |
4669 | if test "${enable_dnd+set}" = set; then | |
4670 | enableval="$enable_dnd" | |
698dcdb6 | 4671 | |
10f2d63a VZ |
4672 | if test "$enableval" = yes; then |
4673 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4674 | else | |
4675 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4676 | fi | |
698dcdb6 | 4677 | |
10f2d63a | 4678 | else |
698dcdb6 | 4679 | |
10f2d63a VZ |
4680 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4681 | if test "x$LINE" != x ; then | |
4682 | eval "DEFAULT_$LINE" | |
4683 | else | |
4684 | no_cache=1 | |
4685 | fi | |
4686 | ||
4687 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4688 | |
4689 | fi | |
10f2d63a VZ |
4690 | |
4691 | ||
4692 | eval "$ac_cv_use_dnd" | |
4693 | if test "$no_cache" != 1; then | |
4694 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4695 | fi | |
4696 | ||
4697 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4698 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4699 | else |
698dcdb6 | 4700 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4701 | fi |
698dcdb6 | 4702 | |
10f2d63a | 4703 | |
698dcdb6 | 4704 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
f33f19dd | 4705 | echo "configure:4706: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4706 | no_cache=0 |
4707 | # Check whether --enable-metafile or --disable-metafile was given. | |
4708 | if test "${enable_metafile+set}" = set; then | |
4709 | enableval="$enable_metafile" | |
698dcdb6 | 4710 | |
b64f0a5f RL |
4711 | if test "$enableval" = yes; then |
4712 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4713 | else | |
4714 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4715 | fi | |
698dcdb6 | 4716 | |
b64f0a5f | 4717 | else |
698dcdb6 | 4718 | |
b64f0a5f RL |
4719 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4720 | if test "x$LINE" != x ; then | |
4721 | eval "DEFAULT_$LINE" | |
4722 | else | |
4723 | no_cache=1 | |
4724 | fi | |
4725 | ||
4726 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4727 | |
4728 | fi | |
b64f0a5f RL |
4729 | |
4730 | ||
4731 | eval "$ac_cv_use_metafile" | |
4732 | if test "$no_cache" != 1; then | |
4733 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4734 | fi | |
4735 | ||
4736 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4737 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4738 | else |
698dcdb6 | 4739 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 4740 | fi |
698dcdb6 VZ |
4741 | |
4742 | ||
10f2d63a | 4743 | |
698dcdb6 | 4744 | echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6 |
f33f19dd | 4745 | echo "configure:4746: checking for --enable-wxtree" >&5 |
10f2d63a VZ |
4746 | no_cache=0 |
4747 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
4748 | if test "${enable_wxtree+set}" = set; then | |
4749 | enableval="$enable_wxtree" | |
698dcdb6 | 4750 | |
10f2d63a VZ |
4751 | if test "$enableval" = yes; then |
4752 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
4753 | else | |
4754 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
4755 | fi | |
698dcdb6 | 4756 | |
10f2d63a | 4757 | else |
698dcdb6 | 4758 | |
10f2d63a VZ |
4759 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` |
4760 | if test "x$LINE" != x ; then | |
4761 | eval "DEFAULT_$LINE" | |
4762 | else | |
4763 | no_cache=1 | |
4764 | fi | |
4765 | ||
4766 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
698dcdb6 VZ |
4767 | |
4768 | fi | |
10f2d63a VZ |
4769 | |
4770 | ||
4771 | eval "$ac_cv_use_wxtree" | |
4772 | if test "$no_cache" != 1; then | |
4773 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
4774 | fi | |
4775 | ||
4776 | if test "$wxUSE_WXTREE" = yes; then | |
698dcdb6 | 4777 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4778 | else |
698dcdb6 | 4779 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4780 | fi |
698dcdb6 | 4781 | |
10f2d63a | 4782 | |
698dcdb6 VZ |
4783 | |
4784 | ||
4785 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
f33f19dd | 4786 | echo "configure:4787: checking for --enable-controls" >&5 |
10f2d63a VZ |
4787 | no_cache=0 |
4788 | # Check whether --enable-controls or --disable-controls was given. | |
4789 | if test "${enable_controls+set}" = set; then | |
4790 | enableval="$enable_controls" | |
698dcdb6 | 4791 | |
10f2d63a VZ |
4792 | if test "$enableval" = yes; then |
4793 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4794 | else | |
4795 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4796 | fi | |
698dcdb6 | 4797 | |
10f2d63a | 4798 | else |
698dcdb6 | 4799 | |
10f2d63a VZ |
4800 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
4801 | if test "x$LINE" != x ; then | |
4802 | eval "DEFAULT_$LINE" | |
4803 | else | |
4804 | no_cache=1 | |
4805 | fi | |
4806 | ||
4807 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
4808 | |
4809 | fi | |
10f2d63a VZ |
4810 | |
4811 | ||
4812 | eval "$ac_cv_use_controls" | |
4813 | if test "$no_cache" != 1; then | |
4814 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
4815 | fi | |
4816 | ||
4817 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 4818 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4819 | else |
698dcdb6 | 4820 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4821 | fi |
698dcdb6 | 4822 | |
10f2d63a VZ |
4823 | |
4824 | if test "$wxUSE_CONTROLS" = "yes"; then | |
4825 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
4826 | DEFAULT_wxUSE_BMPBUTTON=yes |
4827 | DEFAULT_wxUSE_BUTTON=yes | |
4828 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4829 | DEFAULT_wxUSE_CARET=yes |
4830 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
4831 | DEFAULT_wxUSE_CHECKBOX=yes |
4832 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4833 | DEFAULT_wxUSE_CHOICE=yes | |
4834 | DEFAULT_wxUSE_GAUGE=yes | |
4835 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 4836 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
4837 | DEFAULT_wxUSE_IMAGLIST=yes |
4838 | DEFAULT_wxUSE_LISTBOX=yes | |
4839 | DEFAULT_wxUSE_LISTCTRL=yes | |
4840 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4841 | DEFAULT_wxUSE_RADIOBOX=yes | |
4842 | DEFAULT_wxUSE_RADIOBTN=yes | |
4843 | DEFAULT_wxUSE_SASH=yes | |
4844 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4845 | DEFAULT_wxUSE_SLIDER=yes | |
4846 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 4847 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
4848 | DEFAULT_wxUSE_SPLITTER=yes |
4849 | DEFAULT_wxUSE_STATBMP=yes | |
4850 | DEFAULT_wxUSE_STATBOX=yes | |
4851 | DEFAULT_wxUSE_STATLINE=yes | |
4852 | DEFAULT_wxUSE_STATUSBAR=yes | |
4853 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 4854 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 4855 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
4856 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
4857 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
4858 | DEFAULT_wxUSE_TOOLTIPS=yes |
4859 | DEFAULT_wxUSE_TREECTRL=yes | |
4860 | elif test "$wxUSE_CONTROLS" = "no"; then | |
4861 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
4862 | DEFAULT_wxUSE_BMPBUTTON=no |
4863 | DEFAULT_wxUSE_BUTTON=no | |
4864 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4865 | DEFAULT_wxUSE_CARET=no |
4866 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
4867 | DEFAULT_wxUSE_CHECKBOX=no |
4868 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
4869 | DEFAULT_wxUSE_CHOICE=no | |
4870 | DEFAULT_wxUSE_GAUGE=no | |
4871 | DEFAULT_wxUSE_GRID=no | |
4872 | DEFAULT_wxUSE_NEW_GRID=no | |
4873 | DEFAULT_wxUSE_IMAGLIST=no | |
4874 | DEFAULT_wxUSE_LISTBOX=no | |
4875 | DEFAULT_wxUSE_LISTCTRL=no | |
4876 | DEFAULT_wxUSE_NOTEBOOK=no | |
4877 | DEFAULT_wxUSE_RADIOBOX=no | |
4878 | DEFAULT_wxUSE_RADIOBTN=no | |
4879 | DEFAULT_wxUSE_SASH=no | |
4880 | DEFAULT_wxUSE_SCROLLBAR=no | |
4881 | DEFAULT_wxUSE_SLIDER=no | |
4882 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 4883 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
4884 | DEFAULT_wxUSE_SPLITTER=no |
4885 | DEFAULT_wxUSE_STATBMP=no | |
4886 | DEFAULT_wxUSE_STATBOX=no | |
4887 | DEFAULT_wxUSE_STATLINE=no | |
4888 | DEFAULT_wxUSE_STATUSBAR=no | |
4889 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 4890 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 4891 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
4892 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
4893 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
4894 | DEFAULT_wxUSE_TOOLTIPS=no |
4895 | DEFAULT_wxUSE_TREECTRL=no | |
4896 | fi | |
4897 | ||
698dcdb6 VZ |
4898 | |
4899 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
f33f19dd | 4900 | echo "configure:4901: checking for --enable-accel" >&5 |
10f2d63a VZ |
4901 | no_cache=0 |
4902 | # Check whether --enable-accel or --disable-accel was given. | |
4903 | if test "${enable_accel+set}" = set; then | |
4904 | enableval="$enable_accel" | |
698dcdb6 | 4905 | |
10f2d63a VZ |
4906 | if test "$enableval" = yes; then |
4907 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
4908 | else | |
4909 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
4910 | fi | |
698dcdb6 | 4911 | |
10f2d63a | 4912 | else |
698dcdb6 | 4913 | |
10f2d63a VZ |
4914 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
4915 | if test "x$LINE" != x ; then | |
4916 | eval "DEFAULT_$LINE" | |
4917 | else | |
4918 | no_cache=1 | |
4919 | fi | |
4920 | ||
4921 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
4922 | |
4923 | fi | |
10f2d63a VZ |
4924 | |
4925 | ||
4926 | eval "$ac_cv_use_accel" | |
4927 | if test "$no_cache" != 1; then | |
4928 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
4929 | fi | |
4930 | ||
4931 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 4932 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4933 | else |
698dcdb6 | 4934 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4935 | fi |
698dcdb6 | 4936 | |
10f2d63a | 4937 | |
1e6feb95 | 4938 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
f33f19dd | 4939 | echo "configure:4940: checking for --enable-button" >&5 |
10f2d63a | 4940 | no_cache=0 |
1e6feb95 VZ |
4941 | # Check whether --enable-button or --disable-button was given. |
4942 | if test "${enable_button+set}" = set; then | |
4943 | enableval="$enable_button" | |
698dcdb6 | 4944 | |
10f2d63a | 4945 | if test "$enableval" = yes; then |
1e6feb95 | 4946 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 4947 | else |
1e6feb95 | 4948 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 4949 | fi |
698dcdb6 | 4950 | |
10f2d63a | 4951 | else |
698dcdb6 | 4952 | |
1e6feb95 | 4953 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
4954 | if test "x$LINE" != x ; then |
4955 | eval "DEFAULT_$LINE" | |
4956 | else | |
4957 | no_cache=1 | |
4958 | fi | |
4959 | ||
1e6feb95 | 4960 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
4961 | |
4962 | fi | |
10f2d63a VZ |
4963 | |
4964 | ||
1e6feb95 | 4965 | eval "$ac_cv_use_button" |
10f2d63a | 4966 | if test "$no_cache" != 1; then |
1e6feb95 | 4967 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4968 | fi |
4969 | ||
1e6feb95 | 4970 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 4971 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4972 | else |
698dcdb6 | 4973 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4974 | fi |
698dcdb6 | 4975 | |
10f2d63a | 4976 | |
698dcdb6 | 4977 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
f33f19dd | 4978 | echo "configure:4979: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
4979 | no_cache=0 |
4980 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4981 | if test "${enable_bmpbutton+set}" = set; then | |
4982 | enableval="$enable_bmpbutton" | |
698dcdb6 | 4983 | |
10f2d63a VZ |
4984 | if test "$enableval" = yes; then |
4985 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4986 | else | |
4987 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4988 | fi | |
698dcdb6 | 4989 | |
10f2d63a | 4990 | else |
698dcdb6 | 4991 | |
10f2d63a VZ |
4992 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
4993 | if test "x$LINE" != x ; then | |
4994 | eval "DEFAULT_$LINE" | |
4995 | else | |
4996 | no_cache=1 | |
4997 | fi | |
4998 | ||
4999 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
5000 | |
5001 | fi | |
10f2d63a VZ |
5002 | |
5003 | ||
5004 | eval "$ac_cv_use_bmpbutton" | |
5005 | if test "$no_cache" != 1; then | |
5006 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5007 | fi | |
5008 | ||
5009 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5010 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5011 | else |
698dcdb6 | 5012 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5013 | fi |
698dcdb6 | 5014 | |
10f2d63a | 5015 | |
1e6feb95 | 5016 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
f33f19dd | 5017 | echo "configure:5018: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5018 | no_cache=0 |
5019 | # Check whether --enable-calendar or --disable-calendar was given. | |
5020 | if test "${enable_calendar+set}" = set; then | |
5021 | enableval="$enable_calendar" | |
5022 | ||
5023 | if test "$enableval" = yes; then | |
5024 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5025 | else | |
5026 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5027 | fi | |
5028 | ||
5029 | else | |
5030 | ||
5031 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5032 | if test "x$LINE" != x ; then | |
5033 | eval "DEFAULT_$LINE" | |
5034 | else | |
5035 | no_cache=1 | |
5036 | fi | |
5037 | ||
5038 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5039 | ||
5040 | fi | |
5041 | ||
5042 | ||
5043 | eval "$ac_cv_use_calendar" | |
5044 | if test "$no_cache" != 1; then | |
5045 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5046 | fi | |
5047 | ||
5048 | if test "$wxUSE_CALCTRL" = yes; then | |
5049 | echo "$ac_t""yes" 1>&6 | |
5050 | else | |
5051 | echo "$ac_t""no" 1>&6 | |
5052 | fi | |
5053 | ||
5054 | ||
5055 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
f33f19dd | 5056 | echo "configure:5057: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5057 | no_cache=0 |
5058 | # Check whether --enable-caret or --disable-caret was given. | |
5059 | if test "${enable_caret+set}" = set; then | |
5060 | enableval="$enable_caret" | |
5061 | ||
5062 | if test "$enableval" = yes; then | |
5063 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5064 | else | |
5065 | ac_cv_use_caret='wxUSE_CARET=no' | |
5066 | fi | |
5067 | ||
5068 | else | |
5069 | ||
5070 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5071 | if test "x$LINE" != x ; then | |
5072 | eval "DEFAULT_$LINE" | |
5073 | else | |
5074 | no_cache=1 | |
5075 | fi | |
5076 | ||
5077 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5078 | ||
5079 | fi | |
5080 | ||
5081 | ||
5082 | eval "$ac_cv_use_caret" | |
5083 | if test "$no_cache" != 1; then | |
5084 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5085 | fi | |
5086 | ||
5087 | if test "$wxUSE_CARET" = yes; then | |
5088 | echo "$ac_t""yes" 1>&6 | |
5089 | else | |
5090 | echo "$ac_t""no" 1>&6 | |
5091 | fi | |
5092 | ||
5093 | ||
698dcdb6 | 5094 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
f33f19dd | 5095 | echo "configure:5096: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5096 | no_cache=0 |
5097 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5098 | if test "${enable_checkbox+set}" = set; then | |
5099 | enableval="$enable_checkbox" | |
698dcdb6 | 5100 | |
10f2d63a VZ |
5101 | if test "$enableval" = yes; then |
5102 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5103 | else | |
5104 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5105 | fi | |
698dcdb6 | 5106 | |
10f2d63a | 5107 | else |
698dcdb6 | 5108 | |
10f2d63a VZ |
5109 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5110 | if test "x$LINE" != x ; then | |
5111 | eval "DEFAULT_$LINE" | |
5112 | else | |
5113 | no_cache=1 | |
5114 | fi | |
5115 | ||
5116 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5117 | |
5118 | fi | |
10f2d63a VZ |
5119 | |
5120 | ||
5121 | eval "$ac_cv_use_checkbox" | |
5122 | if test "$no_cache" != 1; then | |
5123 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5124 | fi | |
5125 | ||
5126 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5127 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5128 | else |
698dcdb6 | 5129 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5130 | fi |
698dcdb6 | 5131 | |
10f2d63a | 5132 | |
698dcdb6 | 5133 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
f33f19dd | 5134 | echo "configure:5135: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5135 | no_cache=0 |
5136 | # Check whether --enable-checklst or --disable-checklst was given. | |
5137 | if test "${enable_checklst+set}" = set; then | |
5138 | enableval="$enable_checklst" | |
698dcdb6 | 5139 | |
10f2d63a VZ |
5140 | if test "$enableval" = yes; then |
5141 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5142 | else | |
5143 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5144 | fi | |
698dcdb6 | 5145 | |
10f2d63a | 5146 | else |
698dcdb6 | 5147 | |
10f2d63a VZ |
5148 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5149 | if test "x$LINE" != x ; then | |
5150 | eval "DEFAULT_$LINE" | |
5151 | else | |
5152 | no_cache=1 | |
5153 | fi | |
5154 | ||
5155 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5156 | |
5157 | fi | |
10f2d63a VZ |
5158 | |
5159 | ||
5160 | eval "$ac_cv_use_checklst" | |
5161 | if test "$no_cache" != 1; then | |
5162 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5163 | fi | |
5164 | ||
5165 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5166 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5167 | else |
698dcdb6 | 5168 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5169 | fi |
698dcdb6 | 5170 | |
10f2d63a | 5171 | |
698dcdb6 | 5172 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
f33f19dd | 5173 | echo "configure:5174: checking for --enable-choice" >&5 |
10f2d63a VZ |
5174 | no_cache=0 |
5175 | # Check whether --enable-choice or --disable-choice was given. | |
5176 | if test "${enable_choice+set}" = set; then | |
5177 | enableval="$enable_choice" | |
698dcdb6 | 5178 | |
10f2d63a VZ |
5179 | if test "$enableval" = yes; then |
5180 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5181 | else | |
5182 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5183 | fi | |
698dcdb6 | 5184 | |
10f2d63a | 5185 | else |
698dcdb6 | 5186 | |
10f2d63a VZ |
5187 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5188 | if test "x$LINE" != x ; then | |
5189 | eval "DEFAULT_$LINE" | |
5190 | else | |
5191 | no_cache=1 | |
5192 | fi | |
5193 | ||
5194 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5195 | |
5196 | fi | |
10f2d63a VZ |
5197 | |
5198 | ||
5199 | eval "$ac_cv_use_choice" | |
5200 | if test "$no_cache" != 1; then | |
5201 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5202 | fi | |
5203 | ||
5204 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5205 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5206 | else |
698dcdb6 | 5207 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5208 | fi |
698dcdb6 | 5209 | |
10f2d63a | 5210 | |
698dcdb6 | 5211 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
f33f19dd | 5212 | echo "configure:5213: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5213 | no_cache=0 |
5214 | # Check whether --enable-combobox or --disable-combobox was given. | |
5215 | if test "${enable_combobox+set}" = set; then | |
5216 | enableval="$enable_combobox" | |
698dcdb6 | 5217 | |
10f2d63a VZ |
5218 | if test "$enableval" = yes; then |
5219 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5220 | else | |
5221 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5222 | fi | |
698dcdb6 | 5223 | |
10f2d63a | 5224 | else |
698dcdb6 | 5225 | |
10f2d63a VZ |
5226 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5227 | if test "x$LINE" != x ; then | |
5228 | eval "DEFAULT_$LINE" | |
5229 | else | |
5230 | no_cache=1 | |
5231 | fi | |
5232 | ||
5233 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5234 | |
5235 | fi | |
10f2d63a VZ |
5236 | |
5237 | ||
5238 | eval "$ac_cv_use_combobox" | |
5239 | if test "$no_cache" != 1; then | |
5240 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5241 | fi | |
5242 | ||
5243 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5244 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5245 | else |
698dcdb6 | 5246 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5247 | fi |
698dcdb6 | 5248 | |
10f2d63a | 5249 | |
698dcdb6 | 5250 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
f33f19dd | 5251 | echo "configure:5252: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5252 | no_cache=0 |
5253 | # Check whether --enable-gauge or --disable-gauge was given. | |
5254 | if test "${enable_gauge+set}" = set; then | |
5255 | enableval="$enable_gauge" | |
698dcdb6 | 5256 | |
10f2d63a VZ |
5257 | if test "$enableval" = yes; then |
5258 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5259 | else | |
5260 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5261 | fi | |
698dcdb6 | 5262 | |
10f2d63a | 5263 | else |
698dcdb6 | 5264 | |
10f2d63a VZ |
5265 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5266 | if test "x$LINE" != x ; then | |
5267 | eval "DEFAULT_$LINE" | |
5268 | else | |
5269 | no_cache=1 | |
5270 | fi | |
5271 | ||
5272 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5273 | |
5274 | fi | |
10f2d63a VZ |
5275 | |
5276 | ||
5277 | eval "$ac_cv_use_gauge" | |
5278 | if test "$no_cache" != 1; then | |
5279 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5280 | fi | |
5281 | ||
5282 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5283 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5284 | else |
698dcdb6 | 5285 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5286 | fi |
698dcdb6 | 5287 | |
10f2d63a | 5288 | |
698dcdb6 | 5289 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
f33f19dd | 5290 | echo "configure:5291: checking for --enable-grid" >&5 |
10f2d63a VZ |
5291 | no_cache=0 |
5292 | # Check whether --enable-grid or --disable-grid was given. | |
5293 | if test "${enable_grid+set}" = set; then | |
5294 | enableval="$enable_grid" | |
698dcdb6 | 5295 | |
10f2d63a VZ |
5296 | if test "$enableval" = yes; then |
5297 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5298 | else | |
5299 | ac_cv_use_grid='wxUSE_GRID=no' | |
5300 | fi | |
698dcdb6 | 5301 | |
10f2d63a | 5302 | else |
698dcdb6 | 5303 | |
10f2d63a VZ |
5304 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5305 | if test "x$LINE" != x ; then | |
5306 | eval "DEFAULT_$LINE" | |
5307 | else | |
5308 | no_cache=1 | |
5309 | fi | |
5310 | ||
5311 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5312 | |
5313 | fi | |
10f2d63a VZ |
5314 | |
5315 | ||
5316 | eval "$ac_cv_use_grid" | |
5317 | if test "$no_cache" != 1; then | |
5318 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5319 | fi | |
5320 | ||
5321 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5322 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5323 | else |
698dcdb6 | 5324 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5325 | fi |
698dcdb6 | 5326 | |
10f2d63a | 5327 | |
698dcdb6 | 5328 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
f33f19dd | 5329 | echo "configure:5330: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5330 | no_cache=0 |
5331 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5332 | if test "${enable_newgrid+set}" = set; then | |
5333 | enableval="$enable_newgrid" | |
698dcdb6 | 5334 | |
10f2d63a VZ |
5335 | if test "$enableval" = yes; then |
5336 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5337 | else | |
5338 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5339 | fi | |
698dcdb6 | 5340 | |
10f2d63a | 5341 | else |
698dcdb6 | 5342 | |
10f2d63a VZ |
5343 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5344 | if test "x$LINE" != x ; then | |
5345 | eval "DEFAULT_$LINE" | |
5346 | else | |
5347 | no_cache=1 | |
5348 | fi | |
5349 | ||
5350 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5351 | |
5352 | fi | |
10f2d63a VZ |
5353 | |
5354 | ||
5355 | eval "$ac_cv_use_newgrid" | |
5356 | if test "$no_cache" != 1; then | |
5357 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5358 | fi | |
5359 | ||
5360 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5361 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5362 | else |
698dcdb6 | 5363 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5364 | fi |
698dcdb6 | 5365 | |
10f2d63a | 5366 | |
698dcdb6 | 5367 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
f33f19dd | 5368 | echo "configure:5369: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5369 | no_cache=0 |
5370 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5371 | if test "${enable_imaglist+set}" = set; then | |
5372 | enableval="$enable_imaglist" | |
698dcdb6 | 5373 | |
10f2d63a VZ |
5374 | if test "$enableval" = yes; then |
5375 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5376 | else | |
5377 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5378 | fi | |
698dcdb6 | 5379 | |
10f2d63a | 5380 | else |
698dcdb6 | 5381 | |
10f2d63a VZ |
5382 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5383 | if test "x$LINE" != x ; then | |
5384 | eval "DEFAULT_$LINE" | |
5385 | else | |
5386 | no_cache=1 | |
5387 | fi | |
5388 | ||
5389 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5390 | |
5391 | fi | |
10f2d63a VZ |
5392 | |
5393 | ||
5394 | eval "$ac_cv_use_imaglist" | |
5395 | if test "$no_cache" != 1; then | |
5396 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5397 | fi | |
5398 | ||
5399 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5400 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5401 | else |
698dcdb6 | 5402 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5403 | fi |
698dcdb6 | 5404 | |
10f2d63a | 5405 | |
698dcdb6 | 5406 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
f33f19dd | 5407 | echo "configure:5408: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5408 | no_cache=0 |
5409 | # Check whether --enable-listbox or --disable-listbox was given. | |
5410 | if test "${enable_listbox+set}" = set; then | |
5411 | enableval="$enable_listbox" | |
698dcdb6 | 5412 | |
10f2d63a VZ |
5413 | if test "$enableval" = yes; then |
5414 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5415 | else | |
5416 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5417 | fi | |
698dcdb6 | 5418 | |
10f2d63a | 5419 | else |
698dcdb6 | 5420 | |
10f2d63a VZ |
5421 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5422 | if test "x$LINE" != x ; then | |
5423 | eval "DEFAULT_$LINE" | |
5424 | else | |
5425 | no_cache=1 | |
5426 | fi | |
5427 | ||
5428 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5429 | |
5430 | fi | |
10f2d63a VZ |
5431 | |
5432 | ||
5433 | eval "$ac_cv_use_listbox" | |
5434 | if test "$no_cache" != 1; then | |
5435 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5436 | fi | |
5437 | ||
5438 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5439 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5440 | else |
698dcdb6 | 5441 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5442 | fi |
698dcdb6 | 5443 | |
10f2d63a | 5444 | |
698dcdb6 | 5445 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
f33f19dd | 5446 | echo "configure:5447: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5447 | no_cache=0 |
5448 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5449 | if test "${enable_listctrl+set}" = set; then | |
5450 | enableval="$enable_listctrl" | |
698dcdb6 | 5451 | |
10f2d63a VZ |
5452 | if test "$enableval" = yes; then |
5453 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5454 | else | |
5455 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5456 | fi | |
698dcdb6 | 5457 | |
10f2d63a | 5458 | else |
698dcdb6 | 5459 | |
10f2d63a VZ |
5460 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5461 | if test "x$LINE" != x ; then | |
5462 | eval "DEFAULT_$LINE" | |
5463 | else | |
5464 | no_cache=1 | |
5465 | fi | |
5466 | ||
5467 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5468 | |
5469 | fi | |
10f2d63a VZ |
5470 | |
5471 | ||
5472 | eval "$ac_cv_use_listctrl" | |
5473 | if test "$no_cache" != 1; then | |
5474 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5475 | fi | |
5476 | ||
5477 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5478 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5479 | else |
698dcdb6 | 5480 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5481 | fi |
698dcdb6 | 5482 | |
10f2d63a | 5483 | |
698dcdb6 | 5484 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
f33f19dd | 5485 | echo "configure:5486: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5486 | no_cache=0 |
5487 | # Check whether --enable-notebook or --disable-notebook was given. | |
5488 | if test "${enable_notebook+set}" = set; then | |
5489 | enableval="$enable_notebook" | |
698dcdb6 | 5490 | |
10f2d63a VZ |
5491 | if test "$enableval" = yes; then |
5492 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5493 | else | |
5494 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5495 | fi | |
698dcdb6 | 5496 | |
10f2d63a | 5497 | else |
698dcdb6 | 5498 | |
10f2d63a VZ |
5499 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5500 | if test "x$LINE" != x ; then | |
5501 | eval "DEFAULT_$LINE" | |
5502 | else | |
5503 | no_cache=1 | |
5504 | fi | |
5505 | ||
5506 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5507 | |
5508 | fi | |
10f2d63a VZ |
5509 | |
5510 | ||
5511 | eval "$ac_cv_use_notebook" | |
5512 | if test "$no_cache" != 1; then | |
5513 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5514 | fi | |
5515 | ||
5516 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5517 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5518 | else |
698dcdb6 | 5519 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5520 | fi |
698dcdb6 | 5521 | |
10f2d63a | 5522 | |
698dcdb6 | 5523 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
f33f19dd | 5524 | echo "configure:5525: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5525 | no_cache=0 |
5526 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5527 | if test "${enable_radiobox+set}" = set; then | |
5528 | enableval="$enable_radiobox" | |
698dcdb6 | 5529 | |
10f2d63a VZ |
5530 | if test "$enableval" = yes; then |
5531 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5532 | else | |
5533 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5534 | fi | |
698dcdb6 | 5535 | |
10f2d63a | 5536 | else |
698dcdb6 | 5537 | |
10f2d63a VZ |
5538 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5539 | if test "x$LINE" != x ; then | |
5540 | eval "DEFAULT_$LINE" | |
5541 | else | |
5542 | no_cache=1 | |
5543 | fi | |
5544 | ||
5545 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5546 | |
5547 | fi | |
10f2d63a VZ |
5548 | |
5549 | ||
5550 | eval "$ac_cv_use_radiobox" | |
5551 | if test "$no_cache" != 1; then | |
5552 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5553 | fi | |
5554 | ||
5555 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5556 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5557 | else |
698dcdb6 | 5558 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5559 | fi |
698dcdb6 | 5560 | |
10f2d63a | 5561 | |
698dcdb6 | 5562 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
f33f19dd | 5563 | echo "configure:5564: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5564 | no_cache=0 |
5565 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5566 | if test "${enable_radiobtn+set}" = set; then | |
5567 | enableval="$enable_radiobtn" | |
698dcdb6 | 5568 | |
10f2d63a VZ |
5569 | if test "$enableval" = yes; then |
5570 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5571 | else | |
5572 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5573 | fi | |
698dcdb6 | 5574 | |
10f2d63a | 5575 | else |
698dcdb6 | 5576 | |
10f2d63a VZ |
5577 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5578 | if test "x$LINE" != x ; then | |
5579 | eval "DEFAULT_$LINE" | |
5580 | else | |
5581 | no_cache=1 | |
5582 | fi | |
5583 | ||
5584 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5585 | |
5586 | fi | |
10f2d63a VZ |
5587 | |
5588 | ||
5589 | eval "$ac_cv_use_radiobtn" | |
5590 | if test "$no_cache" != 1; then | |
5591 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5592 | fi | |
5593 | ||
5594 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5595 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5596 | else |
698dcdb6 | 5597 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5598 | fi |
698dcdb6 | 5599 | |
10f2d63a | 5600 | |
698dcdb6 | 5601 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
f33f19dd | 5602 | echo "configure:5603: checking for --enable-sash" >&5 |
10f2d63a VZ |
5603 | no_cache=0 |
5604 | # Check whether --enable-sash or --disable-sash was given. | |
5605 | if test "${enable_sash+set}" = set; then | |
5606 | enableval="$enable_sash" | |
698dcdb6 | 5607 | |
10f2d63a VZ |
5608 | if test "$enableval" = yes; then |
5609 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5610 | else | |
5611 | ac_cv_use_sash='wxUSE_SASH=no' | |
5612 | fi | |
698dcdb6 | 5613 | |
10f2d63a | 5614 | else |
698dcdb6 | 5615 | |
10f2d63a VZ |
5616 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5617 | if test "x$LINE" != x ; then | |
5618 | eval "DEFAULT_$LINE" | |
5619 | else | |
5620 | no_cache=1 | |
5621 | fi | |
5622 | ||
5623 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5624 | |
5625 | fi | |
10f2d63a VZ |
5626 | |
5627 | ||
5628 | eval "$ac_cv_use_sash" | |
5629 | if test "$no_cache" != 1; then | |
5630 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5631 | fi | |
5632 | ||
5633 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5634 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5635 | else |
698dcdb6 | 5636 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5637 | fi |
698dcdb6 | 5638 | |
10f2d63a | 5639 | |
698dcdb6 | 5640 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
f33f19dd | 5641 | echo "configure:5642: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5642 | no_cache=0 |
5643 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5644 | if test "${enable_scrollbar+set}" = set; then | |
5645 | enableval="$enable_scrollbar" | |
698dcdb6 | 5646 | |
10f2d63a VZ |
5647 | if test "$enableval" = yes; then |
5648 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5649 | else | |
5650 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5651 | fi | |
698dcdb6 | 5652 | |
10f2d63a | 5653 | else |
698dcdb6 | 5654 | |
10f2d63a VZ |
5655 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5656 | if test "x$LINE" != x ; then | |
5657 | eval "DEFAULT_$LINE" | |
5658 | else | |
5659 | no_cache=1 | |
5660 | fi | |
5661 | ||
5662 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5663 | |
5664 | fi | |
10f2d63a VZ |
5665 | |
5666 | ||
5667 | eval "$ac_cv_use_scrollbar" | |
5668 | if test "$no_cache" != 1; then | |
5669 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5670 | fi | |
5671 | ||
5672 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5673 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5674 | else |
698dcdb6 | 5675 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5676 | fi |
698dcdb6 | 5677 | |
10f2d63a | 5678 | |
698dcdb6 | 5679 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
f33f19dd | 5680 | echo "configure:5681: checking for --enable-slider" >&5 |
10f2d63a VZ |
5681 | no_cache=0 |
5682 | # Check whether --enable-slider or --disable-slider was given. | |
5683 | if test "${enable_slider+set}" = set; then | |
5684 | enableval="$enable_slider" | |
698dcdb6 | 5685 | |
10f2d63a VZ |
5686 | if test "$enableval" = yes; then |
5687 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5688 | else | |
5689 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5690 | fi | |
698dcdb6 | 5691 | |
10f2d63a | 5692 | else |
698dcdb6 | 5693 | |
10f2d63a VZ |
5694 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5695 | if test "x$LINE" != x ; then | |
5696 | eval "DEFAULT_$LINE" | |
5697 | else | |
5698 | no_cache=1 | |
5699 | fi | |
5700 | ||
5701 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
5702 | |
5703 | fi | |
10f2d63a VZ |
5704 | |
5705 | ||
5706 | eval "$ac_cv_use_slider" | |
5707 | if test "$no_cache" != 1; then | |
5708 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5709 | fi | |
5710 | ||
5711 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 5712 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5713 | else |
698dcdb6 | 5714 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5715 | fi |
698dcdb6 | 5716 | |
10f2d63a | 5717 | |
698dcdb6 | 5718 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
f33f19dd | 5719 | echo "configure:5720: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
5720 | no_cache=0 |
5721 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5722 | if test "${enable_spinbtn+set}" = set; then | |
5723 | enableval="$enable_spinbtn" | |
698dcdb6 | 5724 | |
10f2d63a VZ |
5725 | if test "$enableval" = yes; then |
5726 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5727 | else | |
5728 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5729 | fi | |
698dcdb6 | 5730 | |
10f2d63a | 5731 | else |
698dcdb6 | 5732 | |
10f2d63a VZ |
5733 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
5734 | if test "x$LINE" != x ; then | |
5735 | eval "DEFAULT_$LINE" | |
5736 | else | |
5737 | no_cache=1 | |
5738 | fi | |
5739 | ||
5740 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
5741 | |
5742 | fi | |
10f2d63a VZ |
5743 | |
5744 | ||
5745 | eval "$ac_cv_use_spinbtn" | |
5746 | if test "$no_cache" != 1; then | |
5747 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5748 | fi | |
5749 | ||
5750 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 5751 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5752 | else |
698dcdb6 | 5753 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5754 | fi |
698dcdb6 | 5755 | |
10f2d63a | 5756 | |
698dcdb6 | 5757 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
f33f19dd | 5758 | echo "configure:5759: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
5759 | no_cache=0 |
5760 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5761 | if test "${enable_spinctrl+set}" = set; then | |
5762 | enableval="$enable_spinctrl" | |
698dcdb6 | 5763 | |
56cfaa52 RR |
5764 | if test "$enableval" = yes; then |
5765 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5766 | else | |
5767 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
5768 | fi | |
698dcdb6 | 5769 | |
56cfaa52 | 5770 | else |
698dcdb6 | 5771 | |
56cfaa52 RR |
5772 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
5773 | if test "x$LINE" != x ; then | |
5774 | eval "DEFAULT_$LINE" | |
5775 | else | |
5776 | no_cache=1 | |
5777 | fi | |
5778 | ||
5779 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
5780 | |
5781 | fi | |
56cfaa52 RR |
5782 | |
5783 | ||
5784 | eval "$ac_cv_use_spinctrl" | |
5785 | if test "$no_cache" != 1; then | |
5786 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
5787 | fi | |
5788 | ||
5789 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 5790 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 5791 | else |
698dcdb6 | 5792 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 5793 | fi |
698dcdb6 | 5794 | |
56cfaa52 | 5795 | |
698dcdb6 | 5796 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
f33f19dd | 5797 | echo "configure:5798: checking for --enable-splitter" >&5 |
10f2d63a VZ |
5798 | no_cache=0 |
5799 | # Check whether --enable-splitter or --disable-splitter was given. | |
5800 | if test "${enable_splitter+set}" = set; then | |
5801 | enableval="$enable_splitter" | |
698dcdb6 | 5802 | |
10f2d63a VZ |
5803 | if test "$enableval" = yes; then |
5804 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
5805 | else | |
5806 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
5807 | fi | |
698dcdb6 | 5808 | |
10f2d63a | 5809 | else |
698dcdb6 | 5810 | |
10f2d63a VZ |
5811 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
5812 | if test "x$LINE" != x ; then | |
5813 | eval "DEFAULT_$LINE" | |
5814 | else | |
5815 | no_cache=1 | |
5816 | fi | |
5817 | ||
5818 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
5819 | |
5820 | fi | |
10f2d63a VZ |
5821 | |
5822 | ||
5823 | eval "$ac_cv_use_splitter" | |
5824 | if test "$no_cache" != 1; then | |
5825 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
5826 | fi | |
5827 | ||
5828 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 5829 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5830 | else |
698dcdb6 | 5831 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5832 | fi |
698dcdb6 | 5833 | |
10f2d63a | 5834 | |
698dcdb6 | 5835 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
f33f19dd | 5836 | echo "configure:5837: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
5837 | no_cache=0 |
5838 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
5839 | if test "${enable_statbmp+set}" = set; then | |
5840 | enableval="$enable_statbmp" | |
698dcdb6 | 5841 | |
10f2d63a VZ |
5842 | if test "$enableval" = yes; then |
5843 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
5844 | else | |
5845 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
5846 | fi | |
698dcdb6 | 5847 | |
10f2d63a | 5848 | else |
698dcdb6 | 5849 | |
10f2d63a VZ |
5850 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
5851 | if test "x$LINE" != x ; then | |
5852 | eval "DEFAULT_$LINE" | |
5853 | else | |
5854 | no_cache=1 | |
5855 | fi | |
5856 | ||
5857 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
5858 | |
5859 | fi | |
10f2d63a VZ |
5860 | |
5861 | ||
5862 | eval "$ac_cv_use_statbmp" | |
5863 | if test "$no_cache" != 1; then | |
5864 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
5865 | fi | |
5866 | ||
5867 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 5868 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5869 | else |
698dcdb6 | 5870 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5871 | fi |
698dcdb6 | 5872 | |
10f2d63a | 5873 | |
698dcdb6 | 5874 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
f33f19dd | 5875 | echo "configure:5876: checking for --enable-statbox" >&5 |
10f2d63a VZ |
5876 | no_cache=0 |
5877 | # Check whether --enable-statbox or --disable-statbox was given. | |
5878 | if test "${enable_statbox+set}" = set; then | |
5879 | enableval="$enable_statbox" | |
698dcdb6 | 5880 | |
10f2d63a VZ |
5881 | if test "$enableval" = yes; then |
5882 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
5883 | else | |
5884 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
5885 | fi | |
698dcdb6 | 5886 | |
10f2d63a | 5887 | else |
698dcdb6 | 5888 | |
10f2d63a VZ |
5889 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
5890 | if test "x$LINE" != x ; then | |
5891 | eval "DEFAULT_$LINE" | |
5892 | else | |
5893 | no_cache=1 | |
5894 | fi | |
5895 | ||
5896 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
5897 | |
5898 | fi | |
10f2d63a VZ |
5899 | |
5900 | ||
5901 | eval "$ac_cv_use_statbox" | |
5902 | if test "$no_cache" != 1; then | |
5903 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
5904 | fi | |
5905 | ||
5906 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 5907 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5908 | else |
698dcdb6 | 5909 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5910 | fi |
698dcdb6 | 5911 | |
10f2d63a | 5912 | |
698dcdb6 | 5913 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
f33f19dd | 5914 | echo "configure:5915: checking for --enable-statline" >&5 |
10f2d63a VZ |
5915 | no_cache=0 |
5916 | # Check whether --enable-statline or --disable-statline was given. | |
5917 | if test "${enable_statline+set}" = set; then | |
5918 | enableval="$enable_statline" | |
698dcdb6 | 5919 | |
10f2d63a VZ |
5920 | if test "$enableval" = yes; then |
5921 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
5922 | else | |
5923 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
5924 | fi | |
698dcdb6 | 5925 | |
10f2d63a | 5926 | else |
698dcdb6 | 5927 | |
10f2d63a VZ |
5928 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
5929 | if test "x$LINE" != x ; then | |
5930 | eval "DEFAULT_$LINE" | |
5931 | else | |
5932 | no_cache=1 | |
5933 | fi | |
5934 | ||
5935 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
5936 | |
5937 | fi | |
10f2d63a VZ |
5938 | |
5939 | ||
5940 | eval "$ac_cv_use_statline" | |
5941 | if test "$no_cache" != 1; then | |
5942 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
5943 | fi | |
5944 | ||
5945 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 5946 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5947 | else |
698dcdb6 | 5948 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5949 | fi |
698dcdb6 | 5950 | |
10f2d63a | 5951 | |
1e6feb95 | 5952 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
f33f19dd | 5953 | echo "configure:5954: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
5954 | no_cache=0 |
5955 | # Check whether --enable-stattext or --disable-stattext was given. | |
5956 | if test "${enable_stattext+set}" = set; then | |
5957 | enableval="$enable_stattext" | |
5958 | ||
5959 | if test "$enableval" = yes; then | |
5960 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
5961 | else | |
5962 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
5963 | fi | |
5964 | ||
5965 | else | |
5966 | ||
5967 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
5968 | if test "x$LINE" != x ; then | |
5969 | eval "DEFAULT_$LINE" | |
5970 | else | |
5971 | no_cache=1 | |
5972 | fi | |
5973 | ||
5974 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
5975 | ||
5976 | fi | |
5977 | ||
5978 | ||
5979 | eval "$ac_cv_use_stattext" | |
5980 | if test "$no_cache" != 1; then | |
5981 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
5982 | fi | |
5983 | ||
5984 | if test "$wxUSE_STATTEXT" = yes; then | |
5985 | echo "$ac_t""yes" 1>&6 | |
5986 | else | |
5987 | echo "$ac_t""no" 1>&6 | |
5988 | fi | |
5989 | ||
5990 | ||
698dcdb6 | 5991 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
f33f19dd | 5992 | echo "configure:5993: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
5993 | no_cache=0 |
5994 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
5995 | if test "${enable_statusbar+set}" = set; then | |
5996 | enableval="$enable_statusbar" | |
698dcdb6 | 5997 | |
10f2d63a VZ |
5998 | if test "$enableval" = yes; then |
5999 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6000 | else | |
6001 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6002 | fi | |
698dcdb6 | 6003 | |
10f2d63a | 6004 | else |
698dcdb6 | 6005 | |
10f2d63a VZ |
6006 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6007 | if test "x$LINE" != x ; then | |
6008 | eval "DEFAULT_$LINE" | |
6009 | else | |
6010 | no_cache=1 | |
6011 | fi | |
6012 | ||
6013 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6014 | |
6015 | fi | |
10f2d63a VZ |
6016 | |
6017 | ||
6018 | eval "$ac_cv_use_statusbar" | |
6019 | if test "$no_cache" != 1; then | |
6020 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6021 | fi | |
6022 | ||
6023 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6024 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6025 | else |
698dcdb6 | 6026 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6027 | fi |
698dcdb6 | 6028 | |
10f2d63a | 6029 | |
698dcdb6 | 6030 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
f33f19dd | 6031 | echo "configure:6032: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6032 | no_cache=0 |
6033 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6034 | if test "${enable_tabdialog+set}" = set; then | |
6035 | enableval="$enable_tabdialog" | |
698dcdb6 | 6036 | |
10f2d63a VZ |
6037 | if test "$enableval" = yes; then |
6038 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6039 | else | |
6040 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6041 | fi | |
698dcdb6 | 6042 | |
10f2d63a | 6043 | else |
698dcdb6 | 6044 | |
10f2d63a VZ |
6045 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6046 | if test "x$LINE" != x ; then | |
6047 | eval "DEFAULT_$LINE" | |
6048 | else | |
6049 | no_cache=1 | |
6050 | fi | |
6051 | ||
6052 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6053 | |
6054 | fi | |
10f2d63a VZ |
6055 | |
6056 | ||
6057 | eval "$ac_cv_use_tabdialog" | |
6058 | if test "$no_cache" != 1; then | |
6059 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6060 | fi | |
6061 | ||
6062 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6063 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6064 | else |
698dcdb6 | 6065 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6066 | fi |
698dcdb6 | 6067 | |
10f2d63a | 6068 | |
1e6feb95 | 6069 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
f33f19dd | 6070 | echo "configure:6071: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6071 | no_cache=0 |
6072 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6073 | if test "${enable_textctrl+set}" = set; then | |
6074 | enableval="$enable_textctrl" | |
6075 | ||
6076 | if test "$enableval" = yes; then | |
6077 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6078 | else | |
6079 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6080 | fi | |
6081 | ||
6082 | else | |
6083 | ||
6084 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6085 | if test "x$LINE" != x ; then | |
6086 | eval "DEFAULT_$LINE" | |
6087 | else | |
6088 | no_cache=1 | |
6089 | fi | |
6090 | ||
6091 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6092 | ||
6093 | fi | |
6094 | ||
6095 | ||
6096 | eval "$ac_cv_use_textctrl" | |
6097 | if test "$no_cache" != 1; then | |
6098 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6099 | fi | |
6100 | ||
6101 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6102 | echo "$ac_t""yes" 1>&6 | |
6103 | else | |
6104 | echo "$ac_t""no" 1>&6 | |
6105 | fi | |
6106 | ||
6107 | ||
698dcdb6 | 6108 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
f33f19dd | 6109 | echo "configure:6110: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6110 | no_cache=0 |
6111 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6112 | if test "${enable_togglebtn+set}" = set; then | |
6113 | enableval="$enable_togglebtn" | |
698dcdb6 | 6114 | |
1db8dc4a VZ |
6115 | if test "$enableval" = yes; then |
6116 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6117 | else | |
6118 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6119 | fi | |
698dcdb6 | 6120 | |
1db8dc4a | 6121 | else |
698dcdb6 | 6122 | |
1db8dc4a VZ |
6123 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6124 | if test "x$LINE" != x ; then | |
6125 | eval "DEFAULT_$LINE" | |
6126 | else | |
6127 | no_cache=1 | |
6128 | fi | |
6129 | ||
6130 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6131 | |
6132 | fi | |
1db8dc4a VZ |
6133 | |
6134 | ||
6135 | eval "$ac_cv_use_togglebtn" | |
6136 | if test "$no_cache" != 1; then | |
6137 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6138 | fi | |
6139 | ||
6140 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6141 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6142 | else |
698dcdb6 | 6143 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6144 | fi |
698dcdb6 | 6145 | |
1db8dc4a | 6146 | |
698dcdb6 | 6147 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
f33f19dd | 6148 | echo "configure:6149: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6149 | no_cache=0 |
6150 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6151 | if test "${enable_toolbar+set}" = set; then | |
6152 | enableval="$enable_toolbar" | |
698dcdb6 | 6153 | |
10f2d63a VZ |
6154 | if test "$enableval" = yes; then |
6155 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6156 | else | |
6157 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6158 | fi | |
698dcdb6 | 6159 | |
10f2d63a | 6160 | else |
698dcdb6 | 6161 | |
10f2d63a VZ |
6162 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6163 | if test "x$LINE" != x ; then | |
6164 | eval "DEFAULT_$LINE" | |
6165 | else | |
6166 | no_cache=1 | |
6167 | fi | |
6168 | ||
6169 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6170 | |
6171 | fi | |
10f2d63a VZ |
6172 | |
6173 | ||
6174 | eval "$ac_cv_use_toolbar" | |
6175 | if test "$no_cache" != 1; then | |
6176 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6177 | fi | |
6178 | ||
6179 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6180 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6181 | else |
698dcdb6 | 6182 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6183 | fi |
698dcdb6 | 6184 | |
10f2d63a | 6185 | |
698dcdb6 | 6186 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
f33f19dd | 6187 | echo "configure:6188: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6188 | no_cache=0 |
6189 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6190 | if test "${enable_tbarnative+set}" = set; then | |
6191 | enableval="$enable_tbarnative" | |
698dcdb6 | 6192 | |
360d6699 VZ |
6193 | if test "$enableval" = yes; then |
6194 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6195 | else | |
6196 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6197 | fi | |
698dcdb6 | 6198 | |
360d6699 | 6199 | else |
698dcdb6 | 6200 | |
360d6699 VZ |
6201 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6202 | if test "x$LINE" != x ; then | |
6203 | eval "DEFAULT_$LINE" | |
6204 | else | |
6205 | no_cache=1 | |
6206 | fi | |
6207 | ||
6208 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6209 | |
6210 | fi | |
360d6699 VZ |
6211 | |
6212 | ||
6213 | eval "$ac_cv_use_tbarnative" | |
6214 | if test "$no_cache" != 1; then | |
6215 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6216 | fi | |
6217 | ||
6218 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6219 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6220 | else |
698dcdb6 | 6221 | echo "$ac_t""no" 1>&6 |
360d6699 | 6222 | fi |
698dcdb6 | 6223 | |
360d6699 | 6224 | |
698dcdb6 | 6225 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
f33f19dd | 6226 | echo "configure:6227: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6227 | no_cache=0 |
6228 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6229 | if test "${enable_tbarsmpl+set}" = set; then | |
6230 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6231 | |
360d6699 VZ |
6232 | if test "$enableval" = yes; then |
6233 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6234 | else | |
6235 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6236 | fi | |
698dcdb6 | 6237 | |
360d6699 | 6238 | else |
698dcdb6 | 6239 | |
360d6699 VZ |
6240 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6241 | if test "x$LINE" != x ; then | |
6242 | eval "DEFAULT_$LINE" | |
6243 | else | |
6244 | no_cache=1 | |
6245 | fi | |
6246 | ||
6247 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6248 | |
6249 | fi | |
360d6699 VZ |
6250 | |
6251 | ||
6252 | eval "$ac_cv_use_tbarsmpl" | |
6253 | if test "$no_cache" != 1; then | |
6254 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6255 | fi | |
6256 | ||
6257 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6258 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6259 | else |
698dcdb6 | 6260 | echo "$ac_t""no" 1>&6 |
360d6699 | 6261 | fi |
698dcdb6 | 6262 | |
360d6699 | 6263 | |
698dcdb6 | 6264 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
f33f19dd | 6265 | echo "configure:6266: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6266 | no_cache=0 |
6267 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6268 | if test "${enable_treectrl+set}" = set; then | |
6269 | enableval="$enable_treectrl" | |
698dcdb6 | 6270 | |
10f2d63a VZ |
6271 | if test "$enableval" = yes; then |
6272 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6273 | else | |
6274 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6275 | fi | |
698dcdb6 | 6276 | |
10f2d63a | 6277 | else |
698dcdb6 | 6278 | |
10f2d63a VZ |
6279 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6280 | if test "x$LINE" != x ; then | |
6281 | eval "DEFAULT_$LINE" | |
6282 | else | |
6283 | no_cache=1 | |
6284 | fi | |
6285 | ||
6286 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6287 | |
6288 | fi | |
10f2d63a VZ |
6289 | |
6290 | ||
1e6feb95 VZ |
6291 | eval "$ac_cv_use_treectrl" |
6292 | if test "$no_cache" != 1; then | |
6293 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6294 | fi | |
6295 | ||
6296 | if test "$wxUSE_TREECTRL" = yes; then | |
6297 | echo "$ac_t""yes" 1>&6 | |
6298 | else | |
6299 | echo "$ac_t""no" 1>&6 | |
6300 | fi | |
6301 | ||
6302 | ||
6303 | ||
6304 | ||
6305 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
f33f19dd | 6306 | echo "configure:6307: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6307 | no_cache=0 |
6308 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6309 | if test "${enable_commondlg+set}" = set; then | |
6310 | enableval="$enable_commondlg" | |
6311 | ||
6312 | if test "$enableval" = yes; then | |
6313 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6314 | else | |
6315 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6316 | fi | |
6317 | ||
6318 | else | |
6319 | ||
6320 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6321 | if test "x$LINE" != x ; then | |
6322 | eval "DEFAULT_$LINE" | |
6323 | else | |
6324 | no_cache=1 | |
6325 | fi | |
6326 | ||
6327 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6328 | ||
6329 | fi | |
6330 | ||
6331 | ||
6332 | eval "$ac_cv_use_commondlg" | |
6333 | if test "$no_cache" != 1; then | |
6334 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6335 | fi | |
6336 | ||
6337 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6338 | echo "$ac_t""yes" 1>&6 | |
6339 | else | |
6340 | echo "$ac_t""no" 1>&6 | |
6341 | fi | |
6342 | ||
6343 | ||
6344 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
f33f19dd | 6345 | echo "configure:6346: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6346 | no_cache=0 |
6347 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6348 | if test "${enable_choicedlg+set}" = set; then | |
6349 | enableval="$enable_choicedlg" | |
6350 | ||
6351 | if test "$enableval" = yes; then | |
6352 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6353 | else | |
6354 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6355 | fi | |
6356 | ||
6357 | else | |
6358 | ||
6359 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6360 | if test "x$LINE" != x ; then | |
6361 | eval "DEFAULT_$LINE" | |
6362 | else | |
6363 | no_cache=1 | |
6364 | fi | |
6365 | ||
6366 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6367 | ||
6368 | fi | |
6369 | ||
6370 | ||
6371 | eval "$ac_cv_use_choicedlg" | |
6372 | if test "$no_cache" != 1; then | |
6373 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6374 | fi | |
6375 | ||
6376 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6377 | echo "$ac_t""yes" 1>&6 | |
6378 | else | |
6379 | echo "$ac_t""no" 1>&6 | |
6380 | fi | |
6381 | ||
6382 | ||
6383 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
f33f19dd | 6384 | echo "configure:6385: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6385 | no_cache=0 |
6386 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6387 | if test "${enable_coldlg+set}" = set; then | |
6388 | enableval="$enable_coldlg" | |
6389 | ||
6390 | if test "$enableval" = yes; then | |
6391 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6392 | else | |
6393 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6394 | fi | |
6395 | ||
6396 | else | |
6397 | ||
6398 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6399 | if test "x$LINE" != x ; then | |
6400 | eval "DEFAULT_$LINE" | |
6401 | else | |
6402 | no_cache=1 | |
6403 | fi | |
6404 | ||
6405 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6406 | ||
6407 | fi | |
6408 | ||
6409 | ||
6410 | eval "$ac_cv_use_coldlg" | |
6411 | if test "$no_cache" != 1; then | |
6412 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6413 | fi | |
6414 | ||
6415 | if test "$wxUSE_COLOURDLG" = yes; then | |
6416 | echo "$ac_t""yes" 1>&6 | |
6417 | else | |
6418 | echo "$ac_t""no" 1>&6 | |
6419 | fi | |
6420 | ||
6421 | ||
6422 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
f33f19dd | 6423 | echo "configure:6424: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6424 | no_cache=0 |
6425 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6426 | if test "${enable_filedlg+set}" = set; then | |
6427 | enableval="$enable_filedlg" | |
6428 | ||
6429 | if test "$enableval" = yes; then | |
6430 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6431 | else | |
6432 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6433 | fi | |
6434 | ||
6435 | else | |
6436 | ||
6437 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6438 | if test "x$LINE" != x ; then | |
6439 | eval "DEFAULT_$LINE" | |
6440 | else | |
6441 | no_cache=1 | |
6442 | fi | |
6443 | ||
6444 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6445 | ||
6446 | fi | |
6447 | ||
6448 | ||
6449 | eval "$ac_cv_use_filedlg" | |
6450 | if test "$no_cache" != 1; then | |
6451 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6452 | fi | |
6453 | ||
6454 | if test "$wxUSE_FILEDLG" = yes; then | |
6455 | echo "$ac_t""yes" 1>&6 | |
6456 | else | |
6457 | echo "$ac_t""no" 1>&6 | |
6458 | fi | |
6459 | ||
6460 | ||
6461 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 | |
f33f19dd | 6462 | echo "configure:6463: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6463 | no_cache=0 |
6464 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6465 | if test "${enable_fontdlg+set}" = set; then | |
6466 | enableval="$enable_fontdlg" | |
6467 | ||
6468 | if test "$enableval" = yes; then | |
6469 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6470 | else | |
6471 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6472 | fi | |
6473 | ||
6474 | else | |
6475 | ||
6476 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6477 | if test "x$LINE" != x ; then | |
6478 | eval "DEFAULT_$LINE" | |
6479 | else | |
6480 | no_cache=1 | |
6481 | fi | |
6482 | ||
6483 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6484 | ||
6485 | fi | |
6486 | ||
6487 | ||
6488 | eval "$ac_cv_use_fontdlg" | |
6489 | if test "$no_cache" != 1; then | |
6490 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6491 | fi | |
6492 | ||
6493 | if test "$wxUSE_FONTDLG" = yes; then | |
6494 | echo "$ac_t""yes" 1>&6 | |
6495 | else | |
6496 | echo "$ac_t""no" 1>&6 | |
6497 | fi | |
6498 | ||
6499 | ||
6500 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
f33f19dd | 6501 | echo "configure:6502: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6502 | no_cache=0 |
6503 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6504 | if test "${enable_dirdlg+set}" = set; then | |
6505 | enableval="$enable_dirdlg" | |
6506 | ||
6507 | if test "$enableval" = yes; then | |
6508 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6509 | else | |
6510 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6511 | fi | |
6512 | ||
6513 | else | |
6514 | ||
6515 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6516 | if test "x$LINE" != x ; then | |
6517 | eval "DEFAULT_$LINE" | |
6518 | else | |
6519 | no_cache=1 | |
6520 | fi | |
6521 | ||
6522 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6523 | ||
6524 | fi | |
6525 | ||
6526 | ||
6527 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6528 | if test "$no_cache" != 1; then |
1e6feb95 | 6529 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6530 | fi |
6531 | ||
1e6feb95 | 6532 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6533 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6534 | else |
698dcdb6 | 6535 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6536 | fi |
698dcdb6 VZ |
6537 | |
6538 | ||
1e6feb95 | 6539 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
f33f19dd | 6540 | echo "configure:6541: checking for --enable-msgdlg" >&5 |
10f2d63a | 6541 | no_cache=0 |
1e6feb95 VZ |
6542 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6543 | if test "${enable_msgdlg+set}" = set; then | |
6544 | enableval="$enable_msgdlg" | |
698dcdb6 | 6545 | |
10f2d63a | 6546 | if test "$enableval" = yes; then |
1e6feb95 | 6547 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6548 | else |
1e6feb95 | 6549 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6550 | fi |
698dcdb6 | 6551 | |
10f2d63a | 6552 | else |
698dcdb6 | 6553 | |
1e6feb95 | 6554 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6555 | if test "x$LINE" != x ; then |
6556 | eval "DEFAULT_$LINE" | |
6557 | else | |
6558 | no_cache=1 | |
6559 | fi | |
6560 | ||
1e6feb95 | 6561 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6562 | |
6563 | fi | |
10f2d63a VZ |
6564 | |
6565 | ||
1e6feb95 | 6566 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6567 | if test "$no_cache" != 1; then |
1e6feb95 | 6568 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6569 | fi |
6570 | ||
1e6feb95 | 6571 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6572 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6573 | else |
698dcdb6 | 6574 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6575 | fi |
698dcdb6 | 6576 | |
10f2d63a | 6577 | |
1e6feb95 | 6578 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
f33f19dd | 6579 | echo "configure:6580: checking for --enable-numberdlg" >&5 |
10f2d63a | 6580 | no_cache=0 |
1e6feb95 VZ |
6581 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6582 | if test "${enable_numberdlg+set}" = set; then | |
6583 | enableval="$enable_numberdlg" | |
698dcdb6 | 6584 | |
10f2d63a | 6585 | if test "$enableval" = yes; then |
1e6feb95 | 6586 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6587 | else |
1e6feb95 | 6588 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6589 | fi |
698dcdb6 | 6590 | |
10f2d63a | 6591 | else |
698dcdb6 | 6592 | |
1e6feb95 | 6593 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6594 | if test "x$LINE" != x ; then |
6595 | eval "DEFAULT_$LINE" | |
6596 | else | |
6597 | no_cache=1 | |
6598 | fi | |
6599 | ||
1e6feb95 | 6600 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6601 | |
6602 | fi | |
10f2d63a VZ |
6603 | |
6604 | ||
1e6feb95 | 6605 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6606 | if test "$no_cache" != 1; then |
1e6feb95 | 6607 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6608 | fi |
6609 | ||
1e6feb95 | 6610 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6611 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6612 | else |
698dcdb6 | 6613 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6614 | fi |
698dcdb6 | 6615 | |
10f2d63a | 6616 | |
698dcdb6 | 6617 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
f33f19dd | 6618 | echo "configure:6619: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
6619 | no_cache=0 |
6620 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
6621 | if test "${enable_textdlg+set}" = set; then | |
6622 | enableval="$enable_textdlg" | |
698dcdb6 | 6623 | |
10f2d63a VZ |
6624 | if test "$enableval" = yes; then |
6625 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
6626 | else | |
6627 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
6628 | fi | |
698dcdb6 | 6629 | |
10f2d63a | 6630 | else |
698dcdb6 | 6631 | |
10f2d63a VZ |
6632 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
6633 | if test "x$LINE" != x ; then | |
6634 | eval "DEFAULT_$LINE" | |
6635 | else | |
6636 | no_cache=1 | |
6637 | fi | |
6638 | ||
6639 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
6640 | |
6641 | fi | |
10f2d63a VZ |
6642 | |
6643 | ||
6644 | eval "$ac_cv_use_textdlg" | |
6645 | if test "$no_cache" != 1; then | |
6646 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
6647 | fi | |
6648 | ||
6649 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 6650 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6651 | else |
698dcdb6 | 6652 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6653 | fi |
698dcdb6 | 6654 | |
10f2d63a | 6655 | |
698dcdb6 | 6656 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
f33f19dd | 6657 | echo "configure:6658: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
6658 | no_cache=0 |
6659 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
6660 | if test "${enable_tipdlg+set}" = set; then | |
6661 | enableval="$enable_tipdlg" | |
698dcdb6 | 6662 | |
10f2d63a VZ |
6663 | if test "$enableval" = yes; then |
6664 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
6665 | else | |
6666 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
6667 | fi | |
698dcdb6 | 6668 | |
10f2d63a | 6669 | else |
698dcdb6 | 6670 | |
10f2d63a VZ |
6671 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
6672 | if test "x$LINE" != x ; then | |
6673 | eval "DEFAULT_$LINE" | |
6674 | else | |
6675 | no_cache=1 | |
6676 | fi | |
6677 | ||
6678 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
6679 | |
6680 | fi | |
10f2d63a VZ |
6681 | |
6682 | ||
6683 | eval "$ac_cv_use_tipdlg" | |
6684 | if test "$no_cache" != 1; then | |
6685 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
6686 | fi | |
6687 | ||
6688 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 6689 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6690 | else |
698dcdb6 | 6691 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6692 | fi |
698dcdb6 | 6693 | |
10f2d63a | 6694 | |
698dcdb6 | 6695 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
f33f19dd | 6696 | echo "configure:6697: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
6697 | no_cache=0 |
6698 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
6699 | if test "${enable_progressdlg+set}" = set; then | |
6700 | enableval="$enable_progressdlg" | |
698dcdb6 | 6701 | |
10f2d63a VZ |
6702 | if test "$enableval" = yes; then |
6703 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
6704 | else | |
6705 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
6706 | fi | |
698dcdb6 | 6707 | |
10f2d63a | 6708 | else |
698dcdb6 | 6709 | |
10f2d63a VZ |
6710 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
6711 | if test "x$LINE" != x ; then | |
6712 | eval "DEFAULT_$LINE" | |
6713 | else | |
6714 | no_cache=1 | |
6715 | fi | |
6716 | ||
6717 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
6718 | |
6719 | fi | |
10f2d63a VZ |
6720 | |
6721 | ||
6722 | eval "$ac_cv_use_progressdlg" | |
6723 | if test "$no_cache" != 1; then | |
6724 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
6725 | fi | |
6726 | ||
6727 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 6728 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6729 | else |
698dcdb6 | 6730 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6731 | fi |
698dcdb6 | 6732 | |
10f2d63a | 6733 | |
b1f5d087 | 6734 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
f33f19dd | 6735 | echo "configure:6736: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
6736 | no_cache=0 |
6737 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
6738 | if test "${enable_wizarddlg+set}" = set; then | |
6739 | enableval="$enable_wizarddlg" | |
6740 | ||
6741 | if test "$enableval" = yes; then | |
6742 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
6743 | else | |
6744 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
6745 | fi | |
6746 | ||
6747 | else | |
6748 | ||
6749 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
6750 | if test "x$LINE" != x ; then | |
6751 | eval "DEFAULT_$LINE" | |
6752 | else | |
6753 | no_cache=1 | |
6754 | fi | |
6755 | ||
6756 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
6757 | ||
6758 | fi | |
6759 | ||
6760 | ||
6761 | eval "$ac_cv_use_wizarddlg" | |
6762 | if test "$no_cache" != 1; then | |
6763 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
6764 | fi | |
6765 | ||
6766 | if test "$wxUSE_WIZARDDLG" = yes; then | |
6767 | echo "$ac_t""yes" 1>&6 | |
6768 | else | |
6769 | echo "$ac_t""no" 1>&6 | |
6770 | fi | |
6771 | ||
6772 | ||
6773 | ||
6774 | ||
1e6feb95 | 6775 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
f33f19dd | 6776 | echo "configure:6777: checking for --enable-menus" >&5 |
1e6feb95 VZ |
6777 | no_cache=0 |
6778 | # Check whether --enable-menus or --disable-menus was given. | |
6779 | if test "${enable_menus+set}" = set; then | |
6780 | enableval="$enable_menus" | |
6781 | ||
6782 | if test "$enableval" = yes; then | |
6783 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
6784 | else | |
6785 | ac_cv_use_menus='wxUSE_MENUS=no' | |
6786 | fi | |
6787 | ||
6788 | else | |
6789 | ||
6790 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
6791 | if test "x$LINE" != x ; then | |
6792 | eval "DEFAULT_$LINE" | |
6793 | else | |
6794 | no_cache=1 | |
6795 | fi | |
6796 | ||
6797 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
6798 | ||
6799 | fi | |
6800 | ||
6801 | ||
6802 | eval "$ac_cv_use_menus" | |
6803 | if test "$no_cache" != 1; then | |
6804 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
6805 | fi | |
6806 | ||
6807 | if test "$wxUSE_MENUS" = yes; then | |
6808 | echo "$ac_t""yes" 1>&6 | |
6809 | else | |
6810 | echo "$ac_t""no" 1>&6 | |
6811 | fi | |
6812 | ||
6813 | ||
698dcdb6 | 6814 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
f33f19dd | 6815 | echo "configure:6816: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
6816 | no_cache=0 |
6817 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
6818 | if test "${enable_miniframe+set}" = set; then | |
6819 | enableval="$enable_miniframe" | |
698dcdb6 | 6820 | |
10f2d63a VZ |
6821 | if test "$enableval" = yes; then |
6822 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
6823 | else | |
6824 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
6825 | fi | |
698dcdb6 | 6826 | |
10f2d63a | 6827 | else |
698dcdb6 | 6828 | |
10f2d63a VZ |
6829 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
6830 | if test "x$LINE" != x ; then | |
6831 | eval "DEFAULT_$LINE" | |
6832 | else | |
6833 | no_cache=1 | |
6834 | fi | |
6835 | ||
6836 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
6837 | |
6838 | fi | |
10f2d63a VZ |
6839 | |
6840 | ||
6841 | eval "$ac_cv_use_miniframe" | |
6842 | if test "$no_cache" != 1; then | |
6843 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
6844 | fi | |
6845 | ||
6846 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 6847 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6848 | else |
698dcdb6 | 6849 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6850 | fi |
698dcdb6 | 6851 | |
10f2d63a | 6852 | |
698dcdb6 | 6853 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
f33f19dd | 6854 | echo "configure:6855: checking for --enable-html" >&5 |
10f2d63a VZ |
6855 | no_cache=0 |
6856 | # Check whether --enable-html or --disable-html was given. | |
6857 | if test "${enable_html+set}" = set; then | |
6858 | enableval="$enable_html" | |
698dcdb6 | 6859 | |
10f2d63a VZ |
6860 | if test "$enableval" = yes; then |
6861 | ac_cv_use_html='wxUSE_HTML=yes' | |
6862 | else | |
6863 | ac_cv_use_html='wxUSE_HTML=no' | |
6864 | fi | |
698dcdb6 | 6865 | |
10f2d63a | 6866 | else |
698dcdb6 | 6867 | |
10f2d63a VZ |
6868 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
6869 | if test "x$LINE" != x ; then | |
6870 | eval "DEFAULT_$LINE" | |
6871 | else | |
6872 | no_cache=1 | |
6873 | fi | |
6874 | ||
6875 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
698dcdb6 VZ |
6876 | |
6877 | fi | |
10f2d63a VZ |
6878 | |
6879 | ||
6880 | eval "$ac_cv_use_html" | |
6881 | if test "$no_cache" != 1; then | |
6882 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6883 | fi | |
6884 | ||
6885 | if test "$wxUSE_HTML" = yes; then | |
698dcdb6 | 6886 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6887 | else |
698dcdb6 | 6888 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6889 | fi |
698dcdb6 | 6890 | |
10f2d63a | 6891 | |
698dcdb6 | 6892 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
f33f19dd | 6893 | echo "configure:6894: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
6894 | no_cache=0 |
6895 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
6896 | if test "${enable_tooltips+set}" = set; then | |
6897 | enableval="$enable_tooltips" | |
698dcdb6 | 6898 | |
10f2d63a VZ |
6899 | if test "$enableval" = yes; then |
6900 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
6901 | else | |
6902 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
6903 | fi | |
698dcdb6 | 6904 | |
10f2d63a | 6905 | else |
698dcdb6 | 6906 | |
10f2d63a VZ |
6907 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
6908 | if test "x$LINE" != x ; then | |
6909 | eval "DEFAULT_$LINE" | |
6910 | else | |
6911 | no_cache=1 | |
6912 | fi | |
6913 | ||
6914 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
6915 | |
6916 | fi | |
10f2d63a VZ |
6917 | |
6918 | ||
6919 | eval "$ac_cv_use_tooltips" | |
6920 | if test "$no_cache" != 1; then | |
6921 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
6922 | fi | |
6923 | ||
6924 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 6925 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6926 | else |
698dcdb6 | 6927 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6928 | fi |
698dcdb6 | 6929 | |
10f2d63a | 6930 | |
698dcdb6 | 6931 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
f33f19dd | 6932 | echo "configure:6933: checking for --enable-splines" >&5 |
10f2d63a VZ |
6933 | no_cache=0 |
6934 | # Check whether --enable-splines or --disable-splines was given. | |
6935 | if test "${enable_splines+set}" = set; then | |
6936 | enableval="$enable_splines" | |
698dcdb6 | 6937 | |
10f2d63a VZ |
6938 | if test "$enableval" = yes; then |
6939 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
6940 | else | |
6941 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
6942 | fi | |
698dcdb6 | 6943 | |
10f2d63a | 6944 | else |
698dcdb6 | 6945 | |
10f2d63a VZ |
6946 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
6947 | if test "x$LINE" != x ; then | |
6948 | eval "DEFAULT_$LINE" | |
6949 | else | |
6950 | no_cache=1 | |
6951 | fi | |
6952 | ||
6953 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
6954 | |
6955 | fi | |
10f2d63a VZ |
6956 | |
6957 | ||
6958 | eval "$ac_cv_use_splines" | |
6959 | if test "$no_cache" != 1; then | |
6960 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
6961 | fi | |
6962 | ||
6963 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 6964 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6965 | else |
698dcdb6 | 6966 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6967 | fi |
698dcdb6 | 6968 | |
10f2d63a | 6969 | |
698dcdb6 | 6970 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
f33f19dd | 6971 | echo "configure:6972: checking for --enable-validators" >&5 |
10f2d63a VZ |
6972 | no_cache=0 |
6973 | # Check whether --enable-validators or --disable-validators was given. | |
6974 | if test "${enable_validators+set}" = set; then | |
6975 | enableval="$enable_validators" | |
698dcdb6 | 6976 | |
10f2d63a VZ |
6977 | if test "$enableval" = yes; then |
6978 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
6979 | else | |
6980 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
6981 | fi | |
698dcdb6 | 6982 | |
10f2d63a | 6983 | else |
698dcdb6 | 6984 | |
10f2d63a VZ |
6985 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
6986 | if test "x$LINE" != x ; then | |
6987 | eval "DEFAULT_$LINE" | |
6988 | else | |
6989 | no_cache=1 | |
6990 | fi | |
6991 | ||
6992 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
6993 | |
6994 | fi | |
10f2d63a VZ |
6995 | |
6996 | ||
6997 | eval "$ac_cv_use_validators" | |
6998 | if test "$no_cache" != 1; then | |
6999 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7000 | fi | |
7001 | ||
7002 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 7003 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7004 | else |
698dcdb6 | 7005 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7006 | fi |
698dcdb6 | 7007 | |
10f2d63a | 7008 | |
698dcdb6 | 7009 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
f33f19dd | 7010 | echo "configure:7011: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7011 | no_cache=0 |
7012 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7013 | if test "${enable_busyinfo+set}" = set; then | |
7014 | enableval="$enable_busyinfo" | |
698dcdb6 | 7015 | |
10f2d63a VZ |
7016 | if test "$enableval" = yes; then |
7017 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7018 | else | |
7019 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7020 | fi | |
698dcdb6 | 7021 | |
10f2d63a | 7022 | else |
698dcdb6 | 7023 | |
10f2d63a VZ |
7024 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7025 | if test "x$LINE" != x ; then | |
7026 | eval "DEFAULT_$LINE" | |
7027 | else | |
7028 | no_cache=1 | |
7029 | fi | |
7030 | ||
7031 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
7032 | |
7033 | fi | |
10f2d63a VZ |
7034 | |
7035 | ||
7036 | eval "$ac_cv_use_busyinfo" | |
7037 | if test "$no_cache" != 1; then | |
7038 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7039 | fi | |
7040 | ||
7041 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 7042 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7043 | else |
698dcdb6 | 7044 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7045 | fi |
698dcdb6 | 7046 | |
10f2d63a | 7047 | |
698dcdb6 | 7048 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
f33f19dd | 7049 | echo "configure:7050: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7050 | no_cache=0 |
7051 | # Check whether --enable-joystick or --disable-joystick was given. | |
7052 | if test "${enable_joystick+set}" = set; then | |
7053 | enableval="$enable_joystick" | |
698dcdb6 | 7054 | |
f6bcfd97 BP |
7055 | if test "$enableval" = yes; then |
7056 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7057 | else | |
7058 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7059 | fi | |
698dcdb6 | 7060 | |
f6bcfd97 | 7061 | else |
698dcdb6 | 7062 | |
f6bcfd97 BP |
7063 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7064 | if test "x$LINE" != x ; then | |
7065 | eval "DEFAULT_$LINE" | |
7066 | else | |
7067 | no_cache=1 | |
7068 | fi | |
7069 | ||
7070 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7071 | |
7072 | fi | |
f6bcfd97 BP |
7073 | |
7074 | ||
7075 | eval "$ac_cv_use_joystick" | |
7076 | if test "$no_cache" != 1; then | |
7077 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7078 | fi | |
7079 | ||
7080 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7081 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7082 | else |
698dcdb6 | 7083 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7084 | fi |
698dcdb6 VZ |
7085 | |
7086 | ||
1e6feb95 | 7087 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
f33f19dd | 7088 | echo "configure:7089: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7089 | no_cache=0 |
7090 | # Check whether --enable-metafile or --disable-metafile was given. | |
7091 | if test "${enable_metafile+set}" = set; then | |
7092 | enableval="$enable_metafile" | |
7093 | ||
7094 | if test "$enableval" = yes; then | |
7095 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7096 | else | |
7097 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7098 | fi | |
7099 | ||
7100 | else | |
7101 | ||
7102 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7103 | if test "x$LINE" != x ; then | |
7104 | eval "DEFAULT_$LINE" | |
7105 | else | |
7106 | no_cache=1 | |
7107 | fi | |
7108 | ||
7109 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7110 | ||
7111 | fi | |
7112 | ||
7113 | ||
7114 | eval "$ac_cv_use_metafile" | |
7115 | if test "$no_cache" != 1; then | |
7116 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7117 | fi | |
7118 | ||
7119 | if test "$wxUSE_METAFILE" = yes; then | |
7120 | echo "$ac_t""yes" 1>&6 | |
7121 | else | |
7122 | echo "$ac_t""no" 1>&6 | |
7123 | fi | |
7124 | ||
7125 | ||
24fd6d87 | 7126 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
f33f19dd | 7127 | echo "configure:7128: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
7128 | no_cache=0 |
7129 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7130 | if test "${enable_dragimage+set}" = set; then | |
7131 | enableval="$enable_dragimage" | |
7132 | ||
7133 | if test "$enableval" = yes; then | |
7134 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7135 | else | |
7136 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7137 | fi | |
7138 | ||
7139 | else | |
7140 | ||
7141 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7142 | if test "x$LINE" != x ; then | |
7143 | eval "DEFAULT_$LINE" | |
7144 | else | |
7145 | no_cache=1 | |
7146 | fi | |
7147 | ||
7148 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7149 | ||
7150 | fi | |
7151 | ||
7152 | ||
7153 | eval "$ac_cv_use_dragimage" | |
7154 | if test "$no_cache" != 1; then | |
7155 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7156 | fi | |
7157 | ||
7158 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7159 | echo "$ac_t""yes" 1>&6 | |
7160 | else | |
7161 | echo "$ac_t""no" 1>&6 | |
7162 | fi | |
7163 | ||
7164 | ||
10f2d63a | 7165 | |
698dcdb6 VZ |
7166 | |
7167 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
f33f19dd | 7168 | echo "configure:7169: checking for --enable-image" >&5 |
0046ff7c VS |
7169 | no_cache=0 |
7170 | # Check whether --enable-image or --disable-image was given. | |
7171 | if test "${enable_image+set}" = set; then | |
7172 | enableval="$enable_image" | |
698dcdb6 | 7173 | |
0046ff7c VS |
7174 | if test "$enableval" = yes; then |
7175 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7176 | else | |
7177 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7178 | fi | |
698dcdb6 | 7179 | |
0046ff7c | 7180 | else |
698dcdb6 | 7181 | |
0046ff7c VS |
7182 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7183 | if test "x$LINE" != x ; then | |
7184 | eval "DEFAULT_$LINE" | |
7185 | else | |
7186 | no_cache=1 | |
7187 | fi | |
7188 | ||
7189 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7190 | |
7191 | fi | |
0046ff7c VS |
7192 | |
7193 | ||
7194 | eval "$ac_cv_use_image" | |
7195 | if test "$no_cache" != 1; then | |
7196 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7197 | fi | |
7198 | ||
7199 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7200 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7201 | else |
698dcdb6 | 7202 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7203 | fi |
698dcdb6 | 7204 | |
0046ff7c | 7205 | |
698dcdb6 | 7206 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
f33f19dd | 7207 | echo "configure:7208: checking for --enable-gif" >&5 |
10f2d63a VZ |
7208 | no_cache=0 |
7209 | # Check whether --enable-gif or --disable-gif was given. | |
7210 | if test "${enable_gif+set}" = set; then | |
7211 | enableval="$enable_gif" | |
698dcdb6 | 7212 | |
10f2d63a VZ |
7213 | if test "$enableval" = yes; then |
7214 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7215 | else | |
7216 | ac_cv_use_gif='wxUSE_GIF=no' | |
7217 | fi | |
698dcdb6 | 7218 | |
10f2d63a | 7219 | else |
698dcdb6 | 7220 | |
10f2d63a VZ |
7221 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7222 | if test "x$LINE" != x ; then | |
7223 | eval "DEFAULT_$LINE" | |
7224 | else | |
7225 | no_cache=1 | |
7226 | fi | |
7227 | ||
7228 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7229 | |
7230 | fi | |
10f2d63a VZ |
7231 | |
7232 | ||
7233 | eval "$ac_cv_use_gif" | |
7234 | if test "$no_cache" != 1; then | |
7235 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7236 | fi | |
7237 | ||
7238 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7239 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7240 | else |
698dcdb6 | 7241 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7242 | fi |
698dcdb6 | 7243 | |
10f2d63a | 7244 | |
698dcdb6 | 7245 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
f33f19dd | 7246 | echo "configure:7247: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7247 | no_cache=0 |
7248 | # Check whether --enable-pcx or --disable-pcx was given. | |
7249 | if test "${enable_pcx+set}" = set; then | |
7250 | enableval="$enable_pcx" | |
698dcdb6 | 7251 | |
10f2d63a VZ |
7252 | if test "$enableval" = yes; then |
7253 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7254 | else | |
7255 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7256 | fi | |
698dcdb6 | 7257 | |
10f2d63a | 7258 | else |
698dcdb6 | 7259 | |
10f2d63a VZ |
7260 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7261 | if test "x$LINE" != x ; then | |
7262 | eval "DEFAULT_$LINE" | |
7263 | else | |
7264 | no_cache=1 | |
7265 | fi | |
7266 | ||
7267 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7268 | |
7269 | fi | |
10f2d63a VZ |
7270 | |
7271 | ||
7272 | eval "$ac_cv_use_pcx" | |
7273 | if test "$no_cache" != 1; then | |
7274 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7275 | fi | |
7276 | ||
7277 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7278 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7279 | else |
698dcdb6 | 7280 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7281 | fi |
698dcdb6 | 7282 | |
10f2d63a | 7283 | |
698dcdb6 | 7284 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
f33f19dd | 7285 | echo "configure:7286: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7286 | no_cache=0 |
7287 | # Check whether --enable-pnm or --disable-pnm was given. | |
7288 | if test "${enable_pnm+set}" = set; then | |
7289 | enableval="$enable_pnm" | |
698dcdb6 | 7290 | |
10f2d63a VZ |
7291 | if test "$enableval" = yes; then |
7292 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7293 | else | |
7294 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7295 | fi | |
698dcdb6 | 7296 | |
10f2d63a | 7297 | else |
698dcdb6 | 7298 | |
10f2d63a VZ |
7299 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7300 | if test "x$LINE" != x ; then | |
7301 | eval "DEFAULT_$LINE" | |
7302 | else | |
7303 | no_cache=1 | |
7304 | fi | |
7305 | ||
7306 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7307 | |
7308 | fi | |
10f2d63a VZ |
7309 | |
7310 | ||
7311 | eval "$ac_cv_use_pnm" | |
7312 | if test "$no_cache" != 1; then | |
7313 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7314 | fi | |
7315 | ||
7316 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7317 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7318 | else |
698dcdb6 | 7319 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7320 | fi |
698dcdb6 | 7321 | |
10f2d63a | 7322 | |
698dcdb6 | 7323 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
f33f19dd | 7324 | echo "configure:7325: checking for --enable-pnm" >&5 |
0046ff7c VS |
7325 | no_cache=0 |
7326 | # Check whether --enable-pnm or --disable-pnm was given. | |
7327 | if test "${enable_pnm+set}" = set; then | |
7328 | enableval="$enable_pnm" | |
698dcdb6 | 7329 | |
0046ff7c VS |
7330 | if test "$enableval" = yes; then |
7331 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7332 | else | |
7333 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7334 | fi | |
698dcdb6 | 7335 | |
0046ff7c | 7336 | else |
698dcdb6 | 7337 | |
0046ff7c VS |
7338 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7339 | if test "x$LINE" != x ; then | |
7340 | eval "DEFAULT_$LINE" | |
7341 | else | |
7342 | no_cache=1 | |
7343 | fi | |
7344 | ||
7345 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7346 | |
7347 | fi | |
0046ff7c VS |
7348 | |
7349 | ||
7350 | eval "$ac_cv_use_pnm" | |
7351 | if test "$no_cache" != 1; then | |
7352 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7353 | fi | |
7354 | ||
7355 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7356 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7357 | else |
698dcdb6 | 7358 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7359 | fi |
698dcdb6 | 7360 | |
0046ff7c | 7361 | |
b12915c1 VZ |
7362 | fi |
7363 | ||
698dcdb6 | 7364 | |
10f2d63a VZ |
7365 | echo "saving argument cache $wx_arg_cache_file" |
7366 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7367 | |
10f2d63a | 7368 | |
698dcdb6 VZ |
7369 | |
7370 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
f33f19dd | 7371 | echo "configure:7372: checking for toolkit" >&5 |
10f2d63a VZ |
7372 | |
7373 | if test "$wxUSE_GUI" = "yes"; then | |
7374 | ||
b12915c1 | 7375 | if test "$USE_BEOS" = 1; then |
698dcdb6 | 7376 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
b12915c1 VZ |
7377 | fi |
7378 | ||
10f2d63a VZ |
7379 | if test "$TOOLKIT_GIVEN" = 1; then |
7380 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7381 | var=wxUSE_$toolkit | |
7382 | eval "value=\$${var}" | |
7383 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7384 | done | |
7385 | else | |
7386 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7387 | if test "$has_toolkit_in_cache" != 1; then | |
7388 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7389 | else | |
7390 | var=DEFAULT_wxUSE_$toolkit | |
7391 | fi | |
7392 | eval "wxUSE_$toolkit=\$${var}" | |
7393 | done | |
7394 | fi | |
7395 | ||
1e6feb95 | 7396 | 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 | 7397 | |
ec14dd32 VZ |
7398 | case "${host}" in |
7399 | *-pc-os2_emx ) | |
7400 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7401 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7402 | LEX_STEM="lexyy" | |
7403 | ;; | |
7404 | *) | |
7405 | PATH_IFS=':' | |
7406 | LEX_STEM="lex.yy" | |
7407 | ;; | |
7408 | esac | |
10f2d63a VZ |
7409 | |
7410 | case "$NUM_TOOLKITS" in | |
7411 | 1) | |
7412 | ;; | |
7413 | 0) | |
698dcdb6 | 7414 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } |
10f2d63a VZ |
7415 | ;; |
7416 | *) | |
698dcdb6 | 7417 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } |
10f2d63a VZ |
7418 | esac |
7419 | ||
7420 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7421 | var=wxUSE_$toolkit | |
7422 | eval "value=\$${var}" | |
7423 | if test "x$value" != x; then | |
7424 | cache_var=CACHE_$toolkit | |
7425 | eval "cache=\$${cache_var}" | |
7426 | if test "$cache" = 1; then | |
7427 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7428 | fi | |
7429 | if test "$value" = 1; then | |
8168de4c VZ |
7430 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` |
7431 | echo "$ac_t""$toolkit_echo" 1>&6 | |
10f2d63a VZ |
7432 | fi |
7433 | fi | |
7434 | done | |
7435 | ||
7436 | else | |
cf27ef00 | 7437 | PATH_IFS=':' |
698dcdb6 | 7438 | echo "$ac_t""base only" 1>&6 |
10f2d63a VZ |
7439 | fi |
7440 | ||
698dcdb6 VZ |
7441 | |
7442 | cat > confcache <<\EOF | |
10f2d63a VZ |
7443 | # This file is a shell script that caches the results of configure |
7444 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7445 | # scripts and configure runs. It is not useful on other systems. |
7446 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7447 | # |
698dcdb6 VZ |
7448 | # By default, configure uses ./config.cache as the cache file, |
7449 | # creating it if it does not exist already. You can give configure | |
7450 | # the --cache-file=FILE option to use a different cache file; that is | |
7451 | # what configure does when it calls configure scripts in | |
7452 | # subdirectories, so they share the cache. | |
7453 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7454 | # config.status only pays attention to the cache file if you give it the | |
7455 | # --recheck option to rerun configure. | |
10f2d63a | 7456 | # |
698dcdb6 | 7457 | EOF |
10f2d63a VZ |
7458 | # The following way of writing the cache mishandles newlines in values, |
7459 | # but we know of no workaround that is simple, portable, and efficient. | |
7460 | # So, don't put newlines in cache variables' values. | |
7461 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7462 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7463 | (set) 2>&1 | |
7464 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7465 | *ac_space=\ *) | |
7466 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7467 | # turns \\\\ into \\, and sed turns \\ into \). | |
7468 | sed -n \ | |
7469 | -e "s/'/'\\\\''/g" \ | |
7470 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7471 | ;; | |
7472 | *) | |
7473 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7474 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7475 | ;; | |
7476 | esac >> confcache | |
7477 | if cmp -s $cache_file confcache; then | |
7478 | : | |
7479 | else | |
10f2d63a | 7480 | if test -w $cache_file; then |
698dcdb6 VZ |
7481 | echo "updating cache $cache_file" |
7482 | cat confcache > $cache_file | |
10f2d63a VZ |
7483 | else |
7484 | echo "not updating unwritable cache $cache_file" | |
7485 | fi | |
7486 | fi | |
7487 | rm -f confcache | |
7488 | ||
698dcdb6 | 7489 | |
e59890c3 | 7490 | if test "$build" != "$host" ; then |
10f2d63a VZ |
7491 | CC=$host_alias-gcc |
7492 | CXX=$host_alias-c++ | |
7493 | AR=$host_alias-ar | |
7494 | RANLIB=$host_alias-ranlib | |
7495 | DLLTOOL=$host_alias-dlltool | |
32832908 | 7496 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
7497 | LD=$host_alias-ld |
7498 | NM=$host_alias-nm | |
7499 | STRIP=$host_alias-strip | |
10f2d63a VZ |
7500 | fi |
7501 | ||
698dcdb6 | 7502 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7503 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7504 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f33f19dd | 7505 | echo "configure:7506: checking for $ac_word" >&5 |
698dcdb6 VZ |
7506 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7507 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7508 | else |
7509 | if test -n "$CC"; then | |
7510 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7511 | else |
698dcdb6 VZ |
7512 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7513 | ac_dummy="$PATH" | |
7514 | for ac_dir in $ac_dummy; do | |
7515 | test -z "$ac_dir" && ac_dir=. | |
7516 | if test -f $ac_dir/$ac_word; then | |
7517 | ac_cv_prog_CC="gcc" | |
7518 | break | |
7519 | fi | |
7520 | done | |
7521 | IFS="$ac_save_ifs" | |
10f2d63a | 7522 | fi |
6232543b | 7523 | fi |
698dcdb6 | 7524 | CC="$ac_cv_prog_CC" |
6232543b | 7525 | if test -n "$CC"; then |
698dcdb6 | 7526 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7527 | else |
698dcdb6 | 7528 | echo "$ac_t""no" 1>&6 |
1e487827 | 7529 | fi |
6232543b | 7530 | |
1e487827 VS |
7531 | if test -z "$CC"; then |
7532 | # Extract the first word of "cc", so it can be a program name with args. | |
7533 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7534 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f33f19dd | 7535 | echo "configure:7536: checking for $ac_word" >&5 |
698dcdb6 VZ |
7536 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7537 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7538 | else |
7539 | if test -n "$CC"; then | |
7540 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7541 | else | |
698dcdb6 | 7542 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7543 | ac_prog_rejected=no |
698dcdb6 VZ |
7544 | ac_dummy="$PATH" |
7545 | for ac_dir in $ac_dummy; do | |
7546 | test -z "$ac_dir" && ac_dir=. | |
7547 | if test -f $ac_dir/$ac_word; then | |
7548 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7549 | ac_prog_rejected=yes | |
7550 | continue | |
7551 | fi | |
7552 | ac_cv_prog_CC="cc" | |
7553 | break | |
7554 | fi | |
7555 | done | |
7556 | IFS="$ac_save_ifs" | |
1e487827 VS |
7557 | if test $ac_prog_rejected = yes; then |
7558 | # We found a bogon in the path, so make sure we never use it. | |
7559 | set dummy $ac_cv_prog_CC | |
7560 | shift | |
698dcdb6 | 7561 | if test $# -gt 0; then |
1e487827 VS |
7562 | # We chose a different compiler from the bogus one. |
7563 | # However, it has the same basename, so the bogon will be chosen | |
7564 | # first if we set CC to just the basename; use the full file name. | |
7565 | shift | |
698dcdb6 | 7566 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7567 | shift |
7568 | ac_cv_prog_CC="$@" | |
703e0a69 | 7569 | fi |
1e487827 VS |
7570 | fi |
7571 | fi | |
7572 | fi | |
698dcdb6 | 7573 | CC="$ac_cv_prog_CC" |
1e487827 | 7574 | if test -n "$CC"; then |
698dcdb6 | 7575 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 7576 | else |
698dcdb6 | 7577 | echo "$ac_t""no" 1>&6 |
703e0a69 | 7578 | fi |
1e487827 | 7579 | |
698dcdb6 VZ |
7580 | if test -z "$CC"; then |
7581 | case "`uname -s`" in | |
7582 | *win32* | *WIN32*) | |
7583 | # Extract the first word of "cl", so it can be a program name with args. | |
7584 | set dummy cl; ac_word=$2 | |
7585 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f33f19dd | 7586 | echo "configure:7587: checking for $ac_word" >&5 |
698dcdb6 VZ |
7587 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7589 | else |
7590 | if test -n "$CC"; then | |
7591 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 7592 | else |
698dcdb6 VZ |
7593 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7594 | ac_dummy="$PATH" | |
7595 | for ac_dir in $ac_dummy; do | |
7596 | test -z "$ac_dir" && ac_dir=. | |
7597 | if test -f $ac_dir/$ac_word; then | |
7598 | ac_cv_prog_CC="cl" | |
7599 | break | |
7600 | fi | |
7601 | done | |
7602 | IFS="$ac_save_ifs" | |
703e0a69 | 7603 | fi |
1e487827 | 7604 | fi |
698dcdb6 | 7605 | CC="$ac_cv_prog_CC" |
1e487827 | 7606 | if test -n "$CC"; then |
698dcdb6 | 7607 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7608 | else |
698dcdb6 | 7609 | echo "$ac_t""no" 1>&6 |
1e487827 | 7610 | fi |
698dcdb6 VZ |
7611 | ;; |
7612 | esac | |
7613 | fi | |
7614 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
7615 | fi |
7616 | ||
698dcdb6 | 7617 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
f33f19dd | 7618 | echo "configure:7619: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 7619 | |
698dcdb6 VZ |
7620 | ac_ext=c |
7621 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7622 | ac_cpp='$CPP $CPPFLAGS' | |
7623 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7624 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7625 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 7626 | |
698dcdb6 | 7627 | cat > conftest.$ac_ext << EOF |
1e487827 | 7628 | |
f33f19dd | 7629 | #line 7630 "configure" |
1e487827 VS |
7630 | #include "confdefs.h" |
7631 | ||
698dcdb6 VZ |
7632 | main(){return(0);} |
7633 | EOF | |
f33f19dd | 7634 | if { (eval echo configure:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7635 | ac_cv_prog_cc_works=yes |
7636 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7637 | if (./conftest; exit) 2>/dev/null; then | |
7638 | ac_cv_prog_cc_cross=no | |
7639 | else | |
7640 | ac_cv_prog_cc_cross=yes | |
7641 | fi | |
7642 | else | |
7643 | echo "configure: failed program was:" >&5 | |
7644 | cat conftest.$ac_ext >&5 | |
7645 | ac_cv_prog_cc_works=no | |
7646 | fi | |
7647 | rm -fr conftest* | |
7648 | ac_ext=c | |
7649 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7650 | ac_cpp='$CPP $CPPFLAGS' | |
7651 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7652 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7653 | cross_compiling=$ac_cv_prog_cc_cross | |
7654 | ||
7655 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
7656 | if test $ac_cv_prog_cc_works = no; then | |
7657 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
7658 | fi | |
7659 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
f33f19dd | 7660 | echo "configure:7661: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7661 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
7662 | cross_compiling=$ac_cv_prog_cc_cross | |
7663 | ||
7664 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
f33f19dd | 7665 | echo "configure:7666: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
7666 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
7667 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7668 | else | |
7669 | cat > conftest.c <<EOF | |
7670 | #ifdef __GNUC__ | |
7671 | yes; | |
1e487827 | 7672 | #endif |
698dcdb6 | 7673 | EOF |
f33f19dd | 7674 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7675 | ac_cv_prog_gcc=yes |
7676 | else | |
7677 | ac_cv_prog_gcc=no | |
7678 | fi | |
7679 | fi | |
1e487827 | 7680 | |
698dcdb6 | 7681 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 7682 | |
698dcdb6 VZ |
7683 | if test $ac_cv_prog_gcc = yes; then |
7684 | GCC=yes | |
7685 | else | |
7686 | GCC= | |
7687 | fi | |
1e487827 | 7688 | |
698dcdb6 VZ |
7689 | ac_test_CFLAGS="${CFLAGS+set}" |
7690 | ac_save_CFLAGS="$CFLAGS" | |
7691 | CFLAGS= | |
7692 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
f33f19dd | 7693 | echo "configure:7694: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
7694 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
7695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7696 | else | |
7697 | echo 'void f(){}' > conftest.c | |
7698 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
7699 | ac_cv_prog_cc_g=yes |
7700 | else | |
698dcdb6 | 7701 | ac_cv_prog_cc_g=no |
10f2d63a | 7702 | fi |
698dcdb6 VZ |
7703 | rm -f conftest* |
7704 | ||
10f2d63a | 7705 | fi |
698dcdb6 VZ |
7706 | |
7707 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 7708 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 7709 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
7710 | elif test $ac_cv_prog_cc_g = yes; then |
7711 | if test "$GCC" = yes; then | |
7712 | CFLAGS="-g -O2" | |
7713 | else | |
7714 | CFLAGS="-g" | |
7715 | fi | |
7716 | else | |
7717 | if test "$GCC" = yes; then | |
7718 | CFLAGS="-O2" | |
7719 | else | |
7720 | CFLAGS= | |
7721 | fi | |
7722 | fi | |
7723 | ||
7724 | ||
7725 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
7726 | ||
698dcdb6 | 7727 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
f33f19dd | 7728 | echo "configure:7729: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
7729 | # On Suns, sometimes $CPP names a directory. |
7730 | if test -n "$CPP" && test -d "$CPP"; then | |
7731 | CPP= | |
7732 | fi | |
7733 | if test -z "$CPP"; then | |
698dcdb6 VZ |
7734 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
7735 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7736 | else | |
7737 | # This must be in double quotes, not single quotes, because CPP may get | |
7738 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
7739 | CPP="${CC-cc} -E" | |
10f2d63a | 7740 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
7741 | # not just through cpp. |
7742 | cat > conftest.$ac_ext <<EOF | |
f33f19dd | 7743 | #line 7744 "configure" |
10f2d63a VZ |
7744 | #include "confdefs.h" |
7745 | #include <assert.h> | |
698dcdb6 VZ |
7746 | Syntax Error |
7747 | EOF | |
7748 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f33f19dd | 7749 | { (eval echo configure:7750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7750 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7751 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7752 | : |
7753 | else | |
698dcdb6 VZ |
7754 | echo "$ac_err" >&5 |
7755 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7756 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7757 | rm -rf conftest* |
7758 | CPP="${CC-cc} -E -traditional-cpp" | |
7759 | cat > conftest.$ac_ext <<EOF | |
f33f19dd | 7760 | #line 7761 "configure" |
10f2d63a | 7761 | #include "confdefs.h" |
698dcdb6 VZ |
7762 | #include <assert.h> |
7763 | Syntax Error | |
7764 | EOF | |
7765 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f33f19dd | 7766 | { (eval echo configure:7767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7767 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7768 | if test -z "$ac_err"; then | |
7769 | : | |
10f2d63a | 7770 | else |
698dcdb6 VZ |
7771 | echo "$ac_err" >&5 |
7772 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7773 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7774 | rm -rf conftest* |
7775 | CPP="${CC-cc} -nologo -E" | |
7776 | cat > conftest.$ac_ext <<EOF | |
f33f19dd | 7777 | #line 7778 "configure" |
10f2d63a VZ |
7778 | #include "confdefs.h" |
7779 | #include <assert.h> | |
698dcdb6 VZ |
7780 | Syntax Error |
7781 | EOF | |
7782 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f33f19dd | 7783 | { (eval echo configure:7784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7784 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7785 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7786 | : |
7787 | else | |
698dcdb6 VZ |
7788 | echo "$ac_err" >&5 |
7789 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7790 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7791 | rm -rf conftest* |
7792 | CPP=/lib/cpp | |
10f2d63a | 7793 | fi |
698dcdb6 | 7794 | rm -f conftest* |
10f2d63a | 7795 | fi |
698dcdb6 | 7796 | rm -f conftest* |
703e0a69 | 7797 | fi |
698dcdb6 VZ |
7798 | rm -f conftest* |
7799 | ac_cv_prog_CPP="$CPP" | |
7800 | fi | |
7801 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 7802 | else |
698dcdb6 | 7803 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 7804 | fi |
698dcdb6 | 7805 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a VZ |
7806 | |
7807 | ||
698dcdb6 VZ |
7808 | if test $ac_cv_prog_gcc = yes; then |
7809 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
f33f19dd | 7810 | echo "configure:7811: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
7811 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
7812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7813 | else |
7814 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 7815 | cat > conftest.$ac_ext <<EOF |
f33f19dd | 7816 | #line 7817 "configure" |
10f2d63a VZ |
7817 | #include "confdefs.h" |
7818 | #include <sgtty.h> | |
7819 | Autoconf TIOCGETP | |
698dcdb6 | 7820 | EOF |
10f2d63a VZ |
7821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7822 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7823 | rm -rf conftest* |
10f2d63a VZ |
7824 | ac_cv_prog_gcc_traditional=yes |
7825 | else | |
698dcdb6 | 7826 | rm -rf conftest* |
10f2d63a VZ |
7827 | ac_cv_prog_gcc_traditional=no |
7828 | fi | |
7829 | rm -f conftest* | |
7830 | ||
698dcdb6 | 7831 | |
10f2d63a | 7832 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 7833 | cat > conftest.$ac_ext <<EOF |
f33f19dd | 7834 | #line 7835 "configure" |
10f2d63a VZ |
7835 | #include "confdefs.h" |
7836 | #include <termio.h> | |
7837 | Autoconf TCGETA | |
698dcdb6 | 7838 | EOF |
10f2d63a VZ |
7839 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7840 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7841 | rm -rf conftest* |
10f2d63a VZ |
7842 | ac_cv_prog_gcc_traditional=yes |
7843 | fi | |
7844 | rm -f conftest* | |
7845 | ||
7846 | fi | |
7847 | fi | |
698dcdb6 VZ |
7848 | |
7849 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
7850 | if test $ac_cv_prog_gcc_traditional = yes; then |
7851 | CC="$CC -traditional" | |
7852 | fi | |
7853 | fi | |
7854 | ||
703e0a69 | 7855 | |
698dcdb6 VZ |
7856 | |
7857 | ac_ext=C | |
7858 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 7859 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
7860 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
7861 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7862 | cross_compiling=$ac_cv_prog_cxx_cross | |
7863 | ||
7864 | ||
7865 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
7866 | do | |
7867 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7868 | set dummy $ac_prog; ac_word=$2 | |
7869 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f33f19dd | 7870 | echo "configure:7871: checking for $ac_word" >&5 |
698dcdb6 VZ |
7871 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
7872 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7873 | else |
7874 | if test -n "$CXX"; then | |
7875 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
7876 | else | |
698dcdb6 VZ |
7877 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7878 | ac_dummy="$PATH" | |
7879 | for ac_dir in $ac_dummy; do | |
7880 | test -z "$ac_dir" && ac_dir=. | |
7881 | if test -f $ac_dir/$ac_word; then | |
7882 | ac_cv_prog_CXX="$ac_prog" | |
7883 | break | |
7884 | fi | |
7885 | done | |
7886 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
7887 | fi |
7888 | fi | |
698dcdb6 | 7889 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 7890 | if test -n "$CXX"; then |
698dcdb6 | 7891 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 7892 | else |
698dcdb6 | 7893 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
7894 | fi |
7895 | ||
698dcdb6 | 7896 | test -n "$CXX" && break |
10f2d63a | 7897 | done |
698dcdb6 | 7898 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
7899 | |
7900 | ||
698dcdb6 | 7901 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
f33f19dd | 7902 | echo "configure:7903: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 7903 | |
698dcdb6 VZ |
7904 | ac_ext=C |
7905 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7906 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7907 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7908 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7909 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 7910 | |
698dcdb6 VZ |
7911 | cat > conftest.$ac_ext << EOF |
7912 | ||
f33f19dd | 7913 | #line 7914 "configure" |
10f2d63a VZ |
7914 | #include "confdefs.h" |
7915 | ||
698dcdb6 VZ |
7916 | int main(){return(0);} |
7917 | EOF | |
f33f19dd | 7918 | if { (eval echo configure:7919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7919 | ac_cv_prog_cxx_works=yes |
7920 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7921 | if (./conftest; exit) 2>/dev/null; then | |
7922 | ac_cv_prog_cxx_cross=no | |
7923 | else | |
7924 | ac_cv_prog_cxx_cross=yes | |
7925 | fi | |
7926 | else | |
7927 | echo "configure: failed program was:" >&5 | |
7928 | cat conftest.$ac_ext >&5 | |
7929 | ac_cv_prog_cxx_works=no | |
7930 | fi | |
7931 | rm -fr conftest* | |
7932 | ac_ext=C | |
7933 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7934 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7935 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7936 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7937 | cross_compiling=$ac_cv_prog_cxx_cross | |
7938 | ||
7939 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
7940 | if test $ac_cv_prog_cxx_works = no; then | |
7941 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
7942 | fi | |
7943 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
f33f19dd | 7944 | echo "configure:7945: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7945 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
7946 | cross_compiling=$ac_cv_prog_cxx_cross | |
7947 | ||
7948 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
f33f19dd | 7949 | echo "configure:7950: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
7950 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
7951 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7952 | else | |
7953 | cat > conftest.C <<EOF | |
7954 | #ifdef __GNUC__ | |
7955 | yes; | |
10f2d63a | 7956 | #endif |
698dcdb6 | 7957 | EOF |
f33f19dd | 7958 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7959 | ac_cv_prog_gxx=yes |
7960 | else | |
7961 | ac_cv_prog_gxx=no | |
7962 | fi | |
7963 | fi | |
10f2d63a | 7964 | |
698dcdb6 | 7965 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 7966 | |
698dcdb6 VZ |
7967 | if test $ac_cv_prog_gxx = yes; then |
7968 | GXX=yes | |
7969 | else | |
7970 | GXX= | |
7971 | fi | |
10f2d63a | 7972 | |
698dcdb6 VZ |
7973 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
7974 | ac_save_CXXFLAGS="$CXXFLAGS" | |
7975 | CXXFLAGS= | |
7976 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
f33f19dd | 7977 | echo "configure:7978: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
7978 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
7979 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7980 | else | |
7981 | echo 'void f(){}' > conftest.cc | |
7982 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
7983 | ac_cv_prog_cxx_g=yes |
7984 | else | |
698dcdb6 | 7985 | ac_cv_prog_cxx_g=no |
10f2d63a | 7986 | fi |
698dcdb6 VZ |
7987 | rm -f conftest* |
7988 | ||
10f2d63a | 7989 | fi |
698dcdb6 VZ |
7990 | |
7991 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 7992 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 7993 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
7994 | elif test $ac_cv_prog_cxx_g = yes; then |
7995 | if test "$GXX" = yes; then | |
7996 | CXXFLAGS="-g -O2" | |
7997 | else | |
7998 | CXXFLAGS="-g" | |
7999 | fi | |
8000 | else | |
8001 | if test "$GXX" = yes; then | |
8002 | CXXFLAGS="-O2" | |
8003 | else | |
8004 | CXXFLAGS= | |
8005 | fi | |
8006 | fi | |
8007 | ||
8008 | ||
698dcdb6 | 8009 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
f33f19dd | 8010 | echo "configure:8011: checking how to run the C++ preprocessor" >&5 |
1e487827 | 8011 | if test -z "$CXXCPP"; then |
698dcdb6 VZ |
8012 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
8013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 8014 | else |
698dcdb6 VZ |
8015 | ac_ext=C |
8016 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8017 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8018 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8019 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8020 | cross_compiling=$ac_cv_prog_cxx_cross | |
8021 | CXXCPP="${CXX-g++} -E" | |
8022 | cat > conftest.$ac_ext <<EOF | |
f33f19dd | 8023 | #line 8024 "configure" |
1e487827 | 8024 | #include "confdefs.h" |
698dcdb6 VZ |
8025 | #include <stdlib.h> |
8026 | EOF | |
8027 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f33f19dd | 8028 | { (eval echo configure:8029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
8029 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8030 | if test -z "$ac_err"; then | |
1e487827 VS |
8031 | : |
8032 | else | |
698dcdb6 VZ |
8033 | echo "$ac_err" >&5 |
8034 | echo "configure: failed program was:" >&5 | |
1e487827 | 8035 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8036 | rm -rf conftest* |
8037 | CXXCPP=/lib/cpp | |
1e487827 | 8038 | fi |
698dcdb6 VZ |
8039 | rm -f conftest* |
8040 | ac_cv_prog_CXXCPP="$CXXCPP" | |
8041 | ac_ext=C | |
8042 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8043 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8044 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8045 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8046 | cross_compiling=$ac_cv_prog_cxx_cross | |
1e487827 | 8047 | fi |
1e487827 | 8048 | fi |
698dcdb6 VZ |
8049 | CXXCPP="$ac_cv_prog_CXXCPP" |
8050 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e487827 | 8051 | |
10f2d63a VZ |
8052 | |
8053 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
8054 | ||
8055 | ac_ext=c | |
698dcdb6 | 8056 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8057 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8058 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8059 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8060 | cross_compiling=$ac_cv_prog_cc_cross | |
8061 | ||
8062 | ||
8063 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8064 | set dummy ranlib; ac_word=$2 | |
8065 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f33f19dd | 8066 | echo "configure:8067: checking for $ac_word" >&5 |
698dcdb6 VZ |
8067 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8068 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8069 | else |
8070 | if test -n "$RANLIB"; then | |
8071 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8072 | else | |
698dcdb6 VZ |
8073 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8074 | ac_dummy="$PATH" | |
8075 | for ac_dir in $ac_dummy; do | |
8076 | test -z "$ac_dir" && ac_dir=. | |
8077 | if test -f $ac_dir/$ac_word; then | |
8078 | ac_cv_prog_RANLIB="ranlib" | |
8079 | break | |
8080 | fi | |
8081 | done | |
8082 | IFS="$ac_save_ifs" | |
8083 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8084 | fi |
8085 | fi | |
698dcdb6 | 8086 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8087 | if test -n "$RANLIB"; then |
698dcdb6 | 8088 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8089 | else |
698dcdb6 | 8090 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8091 | fi |
8092 | ||
8093 | ||
8094 | # Extract the first word of "ar", so it can be a program name with args. | |
8095 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8096 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f33f19dd | 8097 | echo "configure:8098: checking for $ac_word" >&5 |
698dcdb6 VZ |
8098 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8100 | else |
8101 | if test -n "$AR"; then | |
8102 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8103 | else | |
698dcdb6 VZ |
8104 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8105 | ac_dummy="$PATH" | |
8106 | for ac_dir in $ac_dummy; do | |
8107 | test -z "$ac_dir" && ac_dir=. | |
8108 | if test -f $ac_dir/$ac_word; then | |
8109 | ac_cv_prog_AR="ar" | |
8110 | break | |
8111 | fi | |
8112 | done | |
8113 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8114 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8115 | fi | |
8116 | fi | |
698dcdb6 | 8117 | AR="$ac_cv_prog_AR" |
10f2d63a | 8118 | if test -n "$AR"; then |
698dcdb6 | 8119 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8120 | else |
698dcdb6 | 8121 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8122 | fi |
8123 | ||
698dcdb6 | 8124 | |
10f2d63a VZ |
8125 | # Find a good install program. We prefer a C program (faster), |
8126 | # so one script is as good as another. But avoid the broken or | |
8127 | # incompatible versions: | |
8128 | # SysV /etc/install, /usr/sbin/install | |
8129 | # SunOS /usr/etc/install | |
8130 | # IRIX /sbin/install | |
8131 | # AIX /bin/install | |
8132 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8133 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8134 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8135 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8136 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
f33f19dd | 8137 | echo "configure:8138: checking for a BSD compatible install" >&5 |
10f2d63a | 8138 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8139 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8141 | else |
698dcdb6 | 8142 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8143 | for ac_dir in $PATH; do |
8144 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8145 | case "$ac_dir/" in |
8146 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8147 | *) |
8148 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8149 | # Don't use installbsd from OSF since it installs stuff as root | |
8150 | # by default. | |
8151 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8152 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8153 | if test $ac_prog = install && |
698dcdb6 | 8154 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8155 | # AIX install. It has an incompatible calling convention. |
8156 | : | |
8157 | else | |
8158 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8159 | break 2 | |
8160 | fi | |
8161 | fi | |
8162 | done | |
8163 | ;; | |
8164 | esac | |
8165 | done | |
698dcdb6 | 8166 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8167 | |
8168 | fi | |
8169 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8170 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8171 | else |
8172 | # As a last resort, use the slow shell script. We don't cache a | |
8173 | # path for INSTALL within a source directory, because that will | |
8174 | # break other packages using the cache if that directory is | |
8175 | # removed, or if the path is relative. | |
698dcdb6 | 8176 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8177 | fi |
8178 | fi | |
698dcdb6 | 8179 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8180 | |
8181 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8182 | # It thinks the first close brace ends the variable substitution. | |
8183 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8184 | ||
698dcdb6 | 8185 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8186 | |
8187 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8188 | ||
698dcdb6 | 8189 | |
10f2d63a VZ |
8190 | # Extract the first word of "strip", so it can be a program name with args. |
8191 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8192 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f33f19dd | 8193 | echo "configure:8194: checking for $ac_word" >&5 |
698dcdb6 VZ |
8194 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8196 | else |
8197 | if test -n "$STRIP"; then | |
8198 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8199 | else | |
698dcdb6 VZ |
8200 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8201 | ac_dummy="$PATH" | |
8202 | for ac_dir in $ac_dummy; do | |
8203 | test -z "$ac_dir" && ac_dir=. | |
8204 | if test -f $ac_dir/$ac_word; then | |
8205 | ac_cv_prog_STRIP="strip" | |
8206 | break | |
8207 | fi | |
8208 | done | |
8209 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8210 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8211 | fi | |
8212 | fi | |
698dcdb6 | 8213 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8214 | if test -n "$STRIP"; then |
698dcdb6 | 8215 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8216 | else |
698dcdb6 | 8217 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8218 | fi |
8219 | ||
698dcdb6 VZ |
8220 | |
8221 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
f33f19dd | 8222 | echo "configure:8223: checking make for VPATH support" >&5 |
10f2d63a VZ |
8223 | cat - << EOF > confMake |
8224 | check : file | |
8225 | cp \$? \$@ | |
8226 | cp \$? final_file | |
8227 | EOF | |
8228 | ||
8229 | if test ! -d sub ; then | |
8230 | mkdir sub | |
8231 | fi | |
8232 | echo dummy > sub/file | |
f6bcfd97 | 8233 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8234 | RESULT=$? |
8235 | rm -f sub/file check final_file confMake | |
8236 | rmdir sub | |
8237 | if test "$RESULT" = 0; then | |
698dcdb6 | 8238 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8239 | else |
698dcdb6 VZ |
8240 | echo "$ac_t""no" 1>&6 |
8241 | { echo "configure: error: | |
1e487827 VS |
8242 | You need a make-utility that is able to use the variable |
8243 | VPATH correctly. | |
8244 | If your version of make does not support VPATH correctly, | |
8245 | please install GNU-make (possibly as gmake), and start | |
8246 | configure with the following command: | |
8247 | export MAKE=gmake; ./configure for sh-type shells | |
8248 | setenv MAKE gmake; ./configure for csh-type shells | |
8249 | Also please do remember to use gmake in this case every time | |
8250 | you are trying to compile. | |
698dcdb6 | 8251 | " 1>&2; exit 1; } |
10f2d63a VZ |
8252 | fi |
8253 | ||
8254 | for ac_prog in 'bison -y' byacc | |
8255 | do | |
698dcdb6 | 8256 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8257 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8258 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f33f19dd | 8259 | echo "configure:8260: checking for $ac_word" >&5 |
698dcdb6 VZ |
8260 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8261 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8262 | else |
8263 | if test -n "$YACC"; then | |
8264 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8265 | else | |
698dcdb6 VZ |
8266 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8267 | ac_dummy="$PATH" | |
8268 | for ac_dir in $ac_dummy; do | |
8269 | test -z "$ac_dir" && ac_dir=. | |
8270 | if test -f $ac_dir/$ac_word; then | |
8271 | ac_cv_prog_YACC="$ac_prog" | |
8272 | break | |
8273 | fi | |
8274 | done | |
8275 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8276 | fi |
8277 | fi | |
698dcdb6 | 8278 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8279 | if test -n "$YACC"; then |
698dcdb6 | 8280 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8281 | else |
698dcdb6 | 8282 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8283 | fi |
8284 | ||
698dcdb6 | 8285 | test -n "$YACC" && break |
10f2d63a VZ |
8286 | done |
8287 | test -n "$YACC" || YACC="yacc" | |
8288 | ||
698dcdb6 VZ |
8289 | |
8290 | # Extract the first word of "flex", so it can be a program name with args. | |
8291 | set dummy flex; ac_word=$2 | |
8292 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f33f19dd | 8293 | echo "configure:8294: checking for $ac_word" >&5 |
698dcdb6 VZ |
8294 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8295 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8296 | else |
8297 | if test -n "$LEX"; then | |
8298 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8299 | else | |
698dcdb6 VZ |
8300 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8301 | ac_dummy="$PATH" | |
8302 | for ac_dir in $ac_dummy; do | |
8303 | test -z "$ac_dir" && ac_dir=. | |
8304 | if test -f $ac_dir/$ac_word; then | |
8305 | ac_cv_prog_LEX="flex" | |
8306 | break | |
8307 | fi | |
8308 | done | |
8309 | IFS="$ac_save_ifs" | |
8310 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8311 | fi |
8312 | fi | |
698dcdb6 | 8313 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8314 | if test -n "$LEX"; then |
698dcdb6 | 8315 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8316 | else |
698dcdb6 | 8317 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8318 | fi |
8319 | ||
8320 | if test -z "$LEXLIB" | |
8321 | then | |
698dcdb6 VZ |
8322 | case "$LEX" in |
8323 | flex*) ac_lib=fl ;; | |
8324 | *) ac_lib=l ;; | |
8325 | esac | |
8326 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
f33f19dd | 8327 | echo "configure:8328: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8328 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8329 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8331 | else | |
8332 | ac_save_LIBS="$LIBS" | |
8333 | LIBS="-l$ac_lib $LIBS" | |
8334 | cat > conftest.$ac_ext <<EOF | |
f33f19dd | 8335 | #line 8336 "configure" |
10f2d63a VZ |
8336 | #include "confdefs.h" |
8337 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8338 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8339 | builtin and then its argument prototype would still apply. */ |
8340 | char yywrap(); | |
10f2d63a | 8341 | |
698dcdb6 VZ |
8342 | int main() { |
8343 | yywrap() | |
8344 | ; return 0; } | |
8345 | EOF | |
f33f19dd | 8346 | if { (eval echo configure:8347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8347 | rm -rf conftest* |
8348 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8349 | else |
698dcdb6 VZ |
8350 | echo "configure: failed program was:" >&5 |
8351 | cat conftest.$ac_ext >&5 | |
8352 | rm -rf conftest* | |
8353 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8354 | fi |
698dcdb6 VZ |
8355 | rm -f conftest* |
8356 | LIBS="$ac_save_LIBS" | |
8357 | ||
10f2d63a | 8358 | fi |
698dcdb6 VZ |
8359 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8360 | echo "$ac_t""yes" 1>&6 | |
8361 | LEXLIB="-l$ac_lib" | |
8362 | else | |
8363 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8364 | fi |
8365 | ||
8366 | fi | |
8367 | ||
8368 | ||
698dcdb6 | 8369 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
f33f19dd | 8370 | echo "configure:8371: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8371 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8372 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8373 | else |
698dcdb6 VZ |
8374 | rm -f conftestdata |
8375 | if ln -s X conftestdata 2>/dev/null | |
8376 | then | |
8377 | rm -f conftestdata | |
8378 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8379 | else |
698dcdb6 | 8380 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8381 | fi |
8382 | fi | |
698dcdb6 VZ |
8383 | LN_S="$ac_cv_prog_LN_S" |
8384 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8385 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8386 | else |
698dcdb6 | 8387 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8388 | fi |
8389 | ||
8390 | ||
8391 | ||
8392 | SEARCH_INCLUDE="\ | |
8393 | /usr/local/include \ | |
8394 | \ | |
8395 | /usr/Motif-1.2/include \ | |
8396 | /usr/Motif-2.1/include \ | |
8397 | \ | |
8398 | /usr/include/Motif1.2 \ | |
8399 | /opt/xpm/include/X11 \ | |
8400 | /opt/GBxpm/include/ \ | |
8401 | /opt/GBxpm/X11/include/ \ | |
8402 | \ | |
8403 | /usr/Motif1.2/include \ | |
8404 | /usr/dt/include \ | |
afc31813 VZ |
8405 | /usr/openwin/include \ |
8406 | \ | |
10f2d63a VZ |
8407 | /usr/include/Xm \ |
8408 | \ | |
8409 | /usr/X11R6/include \ | |
afc31813 | 8410 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8411 | /usr/X11R5/include \ |
8412 | /usr/X11R4/include \ | |
8413 | \ | |
10f2d63a VZ |
8414 | /usr/include/X11R6 \ |
8415 | /usr/include/X11R5 \ | |
8416 | /usr/include/X11R4 \ | |
8417 | \ | |
8418 | /usr/local/X11R6/include \ | |
8419 | /usr/local/X11R5/include \ | |
8420 | /usr/local/X11R4/include \ | |
8421 | \ | |
8422 | /usr/local/include/X11R6 \ | |
8423 | /usr/local/include/X11R5 \ | |
8424 | /usr/local/include/X11R4 \ | |
8425 | \ | |
8426 | /usr/X11/include \ | |
8427 | /usr/include/X11 \ | |
8428 | /usr/local/X11/include \ | |
8429 | /usr/local/include/X11 \ | |
8430 | \ | |
8431 | /usr/X386/include \ | |
8432 | /usr/x386/include \ | |
8433 | /usr/XFree86/include/X11 \ | |
8434 | \ | |
cf27ef00 | 8435 | X:/XFree86/include \ |
ec14dd32 VZ |
8436 | X:/XFree86/include/X11 \ |
8437 | \ | |
10f2d63a VZ |
8438 | /usr/include/gtk \ |
8439 | /usr/local/include/gtk \ | |
8440 | /usr/include/glib \ | |
8441 | /usr/local/include/glib \ | |
8442 | \ | |
8443 | /usr/include/qt \ | |
8444 | /usr/local/include/qt \ | |
8445 | \ | |
8446 | /usr/include/windows \ | |
8447 | /usr/include/wine \ | |
8448 | /usr/local/include/wine \ | |
8449 | \ | |
8450 | /usr/unsupported/include \ | |
8451 | /usr/athena/include \ | |
8452 | /usr/local/x11r5/include \ | |
8453 | /usr/lpp/Xamples/include \ | |
8454 | \ | |
10f2d63a | 8455 | /usr/openwin/share/include \ |
928b5c08 VZ |
8456 | \ |
8457 | /usr/include" | |
10f2d63a VZ |
8458 | |
8459 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8460 | ||
698dcdb6 VZ |
8461 | |
8462 | cat > confcache <<\EOF | |
10f2d63a VZ |
8463 | # This file is a shell script that caches the results of configure |
8464 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8465 | # scripts and configure runs. It is not useful on other systems. |
8466 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8467 | # |
698dcdb6 VZ |
8468 | # By default, configure uses ./config.cache as the cache file, |
8469 | # creating it if it does not exist already. You can give configure | |
8470 | # the --cache-file=FILE option to use a different cache file; that is | |
8471 | # what configure does when it calls configure scripts in | |
8472 | # subdirectories, so they share the cache. | |
8473 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8474 | # config.status only pays attention to the cache file if you give it the | |
8475 | # --recheck option to rerun configure. | |
10f2d63a | 8476 | # |
698dcdb6 | 8477 | EOF |
10f2d63a VZ |
8478 | # The following way of writing the cache mishandles newlines in values, |
8479 | # but we know of no workaround that is simple, portable, and efficient. | |
8480 | # So, don't put newlines in cache variables' values. | |
8481 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8482 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8483 | (set) 2>&1 | |
8484 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8485 | *ac_space=\ *) | |
8486 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8487 | # turns \\\\ into \\, and sed turns \\ into \). | |
8488 | sed -n \ | |
8489 | -e "s/'/'\\\\''/g" \ | |
8490 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8491 | ;; | |
8492 | *) | |
8493 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8494 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8495 | ;; | |
8496 | esac >> confcache | |
8497 | if cmp -s $cache_file confcache; then | |
8498 | : | |
8499 | else | |
10f2d63a | 8500 | if test -w $cache_file; then |
698dcdb6 VZ |
8501 | echo "updating cache $cache_file" |
8502 | cat confcache > $cache_file | |
10f2d63a VZ |
8503 | else |
8504 | echo "not updating unwritable cache $cache_file" | |
8505 | fi | |
8506 | fi | |
8507 | rm -f confcache | |
8508 | ||
698dcdb6 VZ |
8509 | |
8510 | ||
dad6c0ea VZ |
8511 | AFMINSTALL= |
8512 | ||
10f2d63a | 8513 | if test "$wxUSE_GUI" = "yes"; then |
1e6feb95 | 8514 | USE_GUI=1 |
10f2d63a | 8515 | |
1e6feb95 VZ |
8516 | TOOLKIT= |
8517 | TOOLKIT_INCLUDE= | |
10f2d63a | 8518 | |
1e6feb95 VZ |
8519 | GUI_TK_LIBRARY= |
8520 | GUI_TK_LINK= | |
10f2d63a | 8521 | |
1e6feb95 VZ |
8522 | WXGTK12= |
8523 | WXGTK127= | |
8524 | WXGTK20= | |
10f2d63a | 8525 | |
1e6feb95 | 8526 | WXWINE= |
10f2d63a | 8527 | |
1e6feb95 VZ |
8528 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
8529 | if test "$cross_compiling" = "yes" ; then | |
8530 | echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2 | |
8531 | else | |
8532 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
f33f19dd | 8533 | echo "configure:8534: checking for Windows headers" >&5 |
1e6feb95 | 8534 | |
10f2d63a VZ |
8535 | ac_find_includes= |
8536 | for ac_dir in $SEARCH_INCLUDE; | |
8537 | do | |
8538 | if test -f "$ac_dir/windows.h"; then | |
8539 | ac_find_includes=$ac_dir | |
8540 | break | |
8541 | fi | |
8542 | done | |
8543 | ||
1e6feb95 VZ |
8544 | if test "$ac_find_includes" != "" ; then |
8545 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8546 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
8547 | else | |
8548 | echo "$ac_t""no" 1>&6 | |
8549 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
8550 | fi | |
10f2d63a | 8551 | fi |
10f2d63a | 8552 | |
1e6feb95 VZ |
8553 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" |
8554 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
f6bcfd97 | 8555 | |
1e6feb95 VZ |
8556 | if test "$wxUSE_ODBC" = "yes" ; then |
8557 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
8558 | fi | |
10f2d63a | 8559 | |
1e6feb95 VZ |
8560 | if test "$wxUSE_MINGW" = 1; then |
8561 | LDFLAGS="$LDFLAGS -mwindows" | |
8562 | fi | |
32832908 | 8563 | |
1e6feb95 VZ |
8564 | TOOLKIT=MSW |
8565 | GUIDIST=MSW_DIST | |
32832908 | 8566 | |
1e6feb95 VZ |
8567 | RCINCSWITCH="--include-dir" |
8568 | RCDEFSWITCH="--define" | |
8569 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
8570 | RCINPUTSWITCH="-i" | |
8571 | RCOUTPUTSWITCH="-o" | |
8572 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
32832908 | 8573 | |
1e6feb95 VZ |
8574 | RESPROGRAM="\$(RES_PROGRAM)" |
8575 | fi | |
10f2d63a | 8576 | |
1e6feb95 | 8577 | if test "$wxUSE_GTK" = 1; then |
8168de4c | 8578 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
f33f19dd | 8579 | echo "configure:8580: checking for GTK+ version" >&5 |
8168de4c VZ |
8580 | |
8581 | gtk_version_cached=1 | |
8582 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
8583 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8584 | else | |
8585 | ||
8586 | gtk_version_cached=0 | |
8587 | echo "$ac_t""""" 1>&6 | |
8588 | ||
8589 | wx_cv_lib_gtk= | |
8590 | if test "x$wxUSE_GTK2" = "xyes"; then | |
8591 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
6f72b082 OK |
8592 | if test "${with_gtk_prefix+set}" = set; then |
8593 | withval="$with_gtk_prefix" | |
8594 | gtk_config_prefix="$withval" | |
8595 | else | |
8596 | gtk_config_prefix="" | |
698dcdb6 | 8597 | fi |
6f72b082 OK |
8598 | |
8599 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
8600 | if test "${with_gtk_exec_prefix+set}" = set; then | |
8601 | withval="$with_gtk_exec_prefix" | |
8602 | gtk_config_exec_prefix="$withval" | |
8603 | else | |
8604 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
8605 | fi |
8606 | ||
6f72b082 OK |
8607 | # Check whether --enable-gtktest or --disable-gtktest was given. |
8608 | if test "${enable_gtktest+set}" = set; then | |
8609 | enableval="$enable_gtktest" | |
698dcdb6 | 8610 | : |
6f72b082 OK |
8611 | else |
8612 | enable_gtktest=yes | |
698dcdb6 VZ |
8613 | fi |
8614 | ||
6f72b082 | 8615 | |
8168de4c | 8616 | for module in . |
6f72b082 OK |
8617 | do |
8618 | case "$module" in | |
8168de4c | 8619 | gthread) |
6f72b082 OK |
8620 | gtk_config_args="$gtk_config_args gthread" |
8621 | ;; | |
8622 | esac | |
8623 | done | |
8624 | ||
8625 | if test x$gtk_config_exec_prefix != x ; then | |
8626 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8627 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8628 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
8629 | fi | |
8630 | fi | |
8631 | if test x$gtk_config_prefix != x ; then | |
8632 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8633 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8634 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
8635 | fi | |
8636 | fi | |
8637 | ||
8638 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
8639 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 8640 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f33f19dd | 8641 | echo "configure:8642: checking for $ac_word" >&5 |
698dcdb6 VZ |
8642 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
8643 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 8644 | else |
698dcdb6 VZ |
8645 | case "$GTK_CONFIG_2_0" in |
8646 | /*) | |
6f72b082 OK |
8647 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
8648 | ;; | |
698dcdb6 VZ |
8649 | ?:/*) |
8650 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
8651 | ;; | |
6f72b082 | 8652 | *) |
698dcdb6 VZ |
8653 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8654 | ac_dummy="$PATH" | |
8655 | for ac_dir in $ac_dummy; do | |
8656 | test -z "$ac_dir" && ac_dir=. | |
8657 | if test -f $ac_dir/$ac_word; then | |
8658 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
8659 | break | |
8660 | fi | |
8661 | done | |
8662 | IFS="$ac_save_ifs" | |
6f72b082 OK |
8663 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
8664 | ;; | |
8665 | esac | |
8666 | fi | |
698dcdb6 | 8667 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 8668 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 8669 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 8670 | else |
698dcdb6 | 8671 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8672 | fi |
8673 | ||
8674 | min_gtk_version=1.3.1 | |
698dcdb6 | 8675 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
f33f19dd | 8676 | echo "configure:8677: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
8677 | no_gtk="" |
8678 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
8679 | no_gtk=yes | |
8680 | else | |
8681 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
8682 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
8683 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8684 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
8685 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8686 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
8687 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8688 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
8689 | if test "x$enable_gtktest" = "xyes" ; then | |
8690 | ac_save_CFLAGS="$CFLAGS" | |
8691 | ac_save_LIBS="$LIBS" | |
8692 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8693 | LIBS="$GTK_LIBS $LIBS" | |
8694 | rm -f conf.gtktest | |
8695 | if test "$cross_compiling" = yes; then | |
8696 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8697 | else | |
698dcdb6 | 8698 | cat > conftest.$ac_ext <<EOF |
f33f19dd | 8699 | #line 8700 "configure" |
6f72b082 OK |
8700 | #include "confdefs.h" |
8701 | ||
8702 | #include <gtk/gtk.h> | |
8703 | #include <stdio.h> | |
8704 | #include <stdlib.h> | |
8705 | ||
8168de4c | 8706 | int |
6f72b082 OK |
8707 | main () |
8708 | { | |
8709 | int major, minor, micro; | |
8710 | char *tmp_version; | |
8711 | ||
8712 | system ("touch conf.gtktest"); | |
8713 | ||
8714 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
8715 | tmp_version = g_strdup("$min_gtk_version"); | |
8716 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
8717 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8718 | exit(1); | |
8719 | } | |
8720 | ||
8721 | if ((gtk_major_version != $gtk_config_major_version) || | |
8722 | (gtk_minor_version != $gtk_config_minor_version) || | |
8723 | (gtk_micro_version != $gtk_config_micro_version)) | |
8724 | { | |
8168de4c | 8725 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
8726 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
8727 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8728 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
8729 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
8730 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
8731 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
8732 | printf("*** required on your system.\n"); | |
8733 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
8734 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
8735 | printf("*** before re-running configure\n"); | |
8168de4c | 8736 | } |
6f72b082 OK |
8737 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
8738 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 8739 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
8740 | (gtk_micro_version != GTK_MICRO_VERSION)) |
8741 | { | |
8742 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 8743 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 8744 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 8745 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
8746 | } |
8747 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
8748 | else | |
8749 | { | |
8750 | if ((gtk_major_version > major) || | |
8751 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8752 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
8753 | { | |
8754 | return 0; | |
8755 | } | |
8756 | else | |
8757 | { | |
8758 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
8759 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8760 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 8761 | major, minor, micro); |
6f72b082 OK |
8762 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
8763 | printf("***\n"); | |
8764 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
8765 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
8766 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
8767 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
8768 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
8769 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
8770 | printf("*** so that the correct libraries are found at run-time))\n"); | |
8771 | } | |
8772 | } | |
8773 | return 1; | |
8774 | } | |
8775 | ||
698dcdb6 | 8776 | EOF |
f33f19dd | 8777 | if { (eval echo configure:8778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 8778 | then |
6f72b082 OK |
8779 | : |
8780 | else | |
698dcdb6 VZ |
8781 | echo "configure: failed program was:" >&5 |
8782 | cat conftest.$ac_ext >&5 | |
8783 | rm -fr conftest* | |
8784 | no_gtk=yes | |
6f72b082 | 8785 | fi |
698dcdb6 | 8786 | rm -fr conftest* |
6f72b082 | 8787 | fi |
698dcdb6 | 8788 | |
6f72b082 OK |
8789 | CFLAGS="$ac_save_CFLAGS" |
8790 | LIBS="$ac_save_LIBS" | |
8791 | fi | |
8792 | fi | |
8793 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 8794 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 8795 | wx_cv_lib_gtk=2.0 |
6f72b082 | 8796 | else |
698dcdb6 | 8797 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8798 | if test "$GTK_CONFIG_2_0" = "no" ; then |
8799 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
8800 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
8801 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
8802 | echo "*** full path to gtk-config-2.0." | |
8803 | else | |
8804 | if test -f conf.gtktest ; then | |
8805 | : | |
8806 | else | |
8807 | echo "*** Could not run GTK test program, checking why..." | |
8808 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8809 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 8810 | cat > conftest.$ac_ext <<EOF |
f33f19dd | 8811 | #line 8812 "configure" |
6f72b082 OK |
8812 | #include "confdefs.h" |
8813 | ||
8814 | #include <gtk/gtk.h> | |
8815 | #include <stdio.h> | |
8816 | ||
698dcdb6 VZ |
8817 | int main() { |
8818 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
8819 | ; return 0; } | |
8820 | EOF | |
f33f19dd | 8821 | if { (eval echo configure:8822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 8822 | rm -rf conftest* |
6f72b082 OK |
8823 | echo "*** The test program compiled, but did not run. This usually means" |
8824 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
8825 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
8826 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
8827 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
8828 | echo "*** is required on your system" | |
8168de4c | 8829 | echo "***" |
6f72b082 OK |
8830 | echo "*** If you have an old version installed, it is best to remove it, although" |
8831 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
8832 | echo "***" | |
8833 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
8834 | echo "*** came with the system with the command" | |
8835 | echo "***" | |
698dcdb6 | 8836 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 8837 | else |
698dcdb6 VZ |
8838 | echo "configure: failed program was:" >&5 |
8839 | cat conftest.$ac_ext >&5 | |
8840 | rm -rf conftest* | |
8841 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
8842 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
8843 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 8844 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 8845 | fi |
698dcdb6 | 8846 | rm -f conftest* |
6f72b082 OK |
8847 | CFLAGS="$ac_save_CFLAGS" |
8848 | LIBS="$ac_save_LIBS" | |
8849 | fi | |
8850 | fi | |
8851 | GTK_CFLAGS="" | |
8852 | GTK_LIBS="" | |
8168de4c VZ |
8853 | gthread |
8854 | fi | |
8855 | ||
8856 | ||
8857 | rm -f conf.gtktest | |
8858 | ||
8859 | fi | |
8860 | ||
8861 | if test -z "$wx_cv_lib_gtk"; then | |
8862 | ||
10f2d63a VZ |
8863 | if test x$gtk_config_exec_prefix != x ; then |
8864 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8865 | if test x${GTK_CONFIG+set} != xset ; then | |
8866 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
8867 | fi | |
8868 | fi | |
8869 | if test x$gtk_config_prefix != x ; then | |
8870 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8871 | if test x${GTK_CONFIG+set} != xset ; then | |
8872 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
8873 | fi | |
8874 | fi | |
8875 | ||
8876 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
8877 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 8878 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f33f19dd | 8879 | echo "configure:8880: checking for $ac_word" >&5 |
698dcdb6 VZ |
8880 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
8881 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 8882 | else |
698dcdb6 VZ |
8883 | case "$GTK_CONFIG" in |
8884 | /*) | |
f6bcfd97 BP |
8885 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
8886 | ;; | |
698dcdb6 VZ |
8887 | ?:/*) |
8888 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
8889 | ;; | |
f6bcfd97 | 8890 | *) |
698dcdb6 VZ |
8891 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8892 | ac_dummy="$PATH" | |
8893 | for ac_dir in $ac_dummy; do | |
8894 | test -z "$ac_dir" && ac_dir=. | |
8895 | if test -f $ac_dir/$ac_word; then | |
8896 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
8897 | break | |
8898 | fi | |
8899 | done | |
8900 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
8901 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
8902 | ;; | |
8903 | esac | |
8904 | fi | |
698dcdb6 | 8905 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 8906 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 8907 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 8908 | else |
698dcdb6 | 8909 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
8910 | fi |
8911 | ||
8912 | min_gtk_version=1.2.7 | |
698dcdb6 | 8913 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
f33f19dd | 8914 | echo "configure:8915: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
8915 | no_gtk="" |
8916 | if test "$GTK_CONFIG" != "no" ; then | |
8917 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
8918 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
8919 | ac_save_CFLAGS="$CFLAGS" | |
8920 | ac_save_LIBS="$LIBS" | |
8921 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8922 | LIBS="$LIBS $GTK_LIBS" | |
8923 | if test "$cross_compiling" = yes; then | |
8924 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8925 | else | |
698dcdb6 | 8926 | cat > conftest.$ac_ext <<EOF |
f33f19dd | 8927 | #line 8928 "configure" |
f6bcfd97 BP |
8928 | #include "confdefs.h" |
8929 | ||
8930 | #include <gtk/gtk.h> | |
8931 | #include <gtk/gtkfeatures.h> | |
8932 | #include <stdio.h> | |
8933 | #include <stdlib.h> | |
8934 | ||
8935 | int | |
8936 | main () | |
8937 | { | |
8938 | int major, minor, micro; | |
8939 | ||
8940 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
8941 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8942 | exit(1); | |
8943 | } | |
8944 | ||
8945 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
8946 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
8947 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
8948 | printf("Headers vs. library version mismatch!\n"); | |
8949 | exit(1); | |
8950 | } | |
8951 | ||
8952 | if (gtk_minor_version == 1) return FALSE; | |
8953 | ||
8954 | return !((gtk_major_version > major) || | |
8955 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8956 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
8957 | } | |
8958 | ||
698dcdb6 | 8959 | EOF |
f33f19dd | 8960 | if { (eval echo configure:8961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 8961 | then |
f6bcfd97 BP |
8962 | : |
8963 | else | |
698dcdb6 VZ |
8964 | echo "configure: failed program was:" >&5 |
8965 | cat conftest.$ac_ext >&5 | |
8966 | rm -fr conftest* | |
8967 | no_gtk=yes | |
f6bcfd97 | 8968 | fi |
698dcdb6 | 8969 | rm -fr conftest* |
f6bcfd97 | 8970 | fi |
698dcdb6 | 8971 | |
f6bcfd97 BP |
8972 | CFLAGS="$ac_save_CFLAGS" |
8973 | LIBS="$ac_save_LIBS" | |
8974 | else | |
8975 | no_gtk=yes | |
8976 | fi | |
8977 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 8978 | echo "$ac_t""yes" 1>&6 |
8168de4c | 8979 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 8980 | else |
698dcdb6 | 8981 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
8982 | GTK_CFLAGS="" |
8983 | GTK_LIBS="" | |
8984 | : | |
8985 | fi | |
698dcdb6 VZ |
8986 | |
8987 | ||
f6bcfd97 | 8988 | |
8168de4c VZ |
8989 | fi |
8990 | ||
8991 | if test -z "$wx_cv_lib_gtk"; then | |
8992 | ||
f6bcfd97 BP |
8993 | if test x$gtk_config_exec_prefix != x ; then |
8994 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8995 | if test x${GTK_CONFIG+set} != xset ; then | |
8996 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
8997 | fi | |
8998 | fi | |
8999 | if test x$gtk_config_prefix != x ; then | |
9000 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9001 | if test x${GTK_CONFIG+set} != xset ; then | |
9002 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9003 | fi | |
9004 | fi | |
9005 | ||
9006 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9007 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 9008 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
f33f19dd | 9009 | echo "configure:9010: checking for $ac_word" >&5 |
698dcdb6 VZ |
9010 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
9011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9012 | else |
698dcdb6 VZ |
9013 | case "$GTK_CONFIG" in |
9014 | /*) | |
10f2d63a VZ |
9015 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
9016 | ;; | |
698dcdb6 VZ |
9017 | ?:/*) |
9018 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
9019 | ;; | |
10f2d63a | 9020 | *) |
698dcdb6 VZ |
9021 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9022 | ac_dummy="$PATH" | |
9023 | for ac_dir in $ac_dummy; do | |
9024 | test -z "$ac_dir" && ac_dir=. | |
9025 | if test -f $ac_dir/$ac_word; then | |
9026 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
9027 | break | |
9028 | fi | |
9029 | done | |
9030 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9031 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
9032 | ;; | |
9033 | esac | |
9034 | fi | |
698dcdb6 | 9035 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 9036 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 9037 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 9038 | else |
698dcdb6 | 9039 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9040 | fi |
9041 | ||
04165bec | 9042 | min_gtk_version=1.2.3 |
698dcdb6 | 9043 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
f33f19dd | 9044 | echo "configure:9045: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
9045 | no_gtk="" |
9046 | if test "$GTK_CONFIG" != "no" ; then | |
9047 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 9048 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
9049 | ac_save_CFLAGS="$CFLAGS" |
9050 | ac_save_LIBS="$LIBS" | |
9051 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9052 | LIBS="$LIBS $GTK_LIBS" | |
9053 | if test "$cross_compiling" = yes; then | |
9054 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9055 | else | |
698dcdb6 | 9056 | cat > conftest.$ac_ext <<EOF |
f33f19dd | 9057 | #line 9058 "configure" |
10f2d63a VZ |
9058 | #include "confdefs.h" |
9059 | ||
9060 | #include <gtk/gtk.h> | |
f49f2b0c | 9061 | #include <gtk/gtkfeatures.h> |
10f2d63a | 9062 | #include <stdio.h> |
32832908 | 9063 | #include <stdlib.h> |
10f2d63a VZ |
9064 | |
9065 | int | |
9066 | main () | |
9067 | { | |
9068 | int major, minor, micro; | |
9069 | ||
9070 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9071 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9072 | exit(1); | |
9073 | } | |
9074 | ||
f49f2b0c RR |
9075 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
9076 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9077 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9078 | printf("Headers vs. library version mismatch!\n"); | |
9079 | exit(1); | |
9080 | } | |
9081 | ||
10f2d63a VZ |
9082 | if (gtk_minor_version == 1) return FALSE; |
9083 | ||
9084 | return !((gtk_major_version > major) || | |
9085 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9086 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9087 | } | |
9088 | ||
698dcdb6 | 9089 | EOF |
f33f19dd | 9090 | if { (eval echo configure:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9091 | then |
10f2d63a VZ |
9092 | : |
9093 | else | |
698dcdb6 VZ |
9094 | echo "configure: failed program was:" >&5 |
9095 | cat conftest.$ac_ext >&5 | |
9096 | rm -fr conftest* | |
9097 | no_gtk=yes | |
10f2d63a | 9098 | fi |
698dcdb6 | 9099 | rm -fr conftest* |
10f2d63a | 9100 | fi |
698dcdb6 | 9101 | |
10f2d63a VZ |
9102 | CFLAGS="$ac_save_CFLAGS" |
9103 | LIBS="$ac_save_LIBS" | |
9104 | else | |
9105 | no_gtk=yes | |
9106 | fi | |
9107 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9108 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9109 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 9110 | else |
698dcdb6 | 9111 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9112 | GTK_CFLAGS="" |
9113 | GTK_LIBS="" | |
7e99ad86 | 9114 | : |
10f2d63a | 9115 | fi |
698dcdb6 VZ |
9116 | |
9117 | ||
10f2d63a | 9118 | |
8168de4c VZ |
9119 | fi |
9120 | ||
9121 | if test -z "$wx_cv_lib_gtk"; then | |
9122 | wx_cv_lib_gtk=none | |
138be253 VZ |
9123 | else |
9124 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
9125 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
9126 | fi |
9127 | ||
1e6feb95 | 9128 | |
8168de4c | 9129 | fi |
703e0a69 | 9130 | |
698dcdb6 | 9131 | |
8168de4c VZ |
9132 | if test "$gtk_version_cached" = 1; then |
9133 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 9134 | fi |
698dcdb6 | 9135 | |
8168de4c VZ |
9136 | case "$wx_cv_lib_gtk" in |
9137 | 2.0) WXGTK20=1 | |
9138 | ;; | |
9139 | 1.2.7) WXGTK127=1 | |
d1a8d972 | 9140 | WXGTK12=1 |
8168de4c VZ |
9141 | ;; |
9142 | 1.2.3) WXGTK12=1 | |
9143 | ;; | |
9144 | *) { echo "configure: error: | |
9145 | Please check that gtk-config is in path, the directory | |
9146 | where GTK+ libraries are installed (returned by | |
9147 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9148 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9149 | " 1>&2; exit 1; } | |
9150 | ;; | |
9151 | esac | |
2224580a | 9152 | |
138be253 | 9153 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 9154 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 9155 | |
1e6feb95 VZ |
9156 | AFMINSTALL=afminstall |
9157 | TOOLKIT=GTK | |
9158 | GUIDIST=GTK_DIST | |
7ec2881a | 9159 | |
1e6feb95 | 9160 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
d1a8d972 | 9161 | echo "configure:9162: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
9162 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
9163 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 9165 | else |
698dcdb6 | 9166 | ac_save_LIBS="$LIBS" |
7ec2881a | 9167 | LIBS="-lgdk $LIBS" |
698dcdb6 | 9168 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 9169 | #line 9170 "configure" |
7ec2881a RR |
9170 | #include "confdefs.h" |
9171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9172 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9173 | builtin and then its argument prototype would still apply. */ |
9174 | char gdk_im_open(); | |
9175 | ||
9176 | int main() { | |
9177 | gdk_im_open() | |
9178 | ; return 0; } | |
9179 | EOF | |
d1a8d972 | 9180 | if { (eval echo configure:9181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9181 | rm -rf conftest* |
9182 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9183 | else | |
9184 | echo "configure: failed program was:" >&5 | |
9185 | cat conftest.$ac_ext >&5 | |
9186 | rm -rf conftest* | |
9187 | eval "ac_cv_lib_$ac_lib_var=no" | |
9188 | fi | |
9189 | rm -f conftest* | |
9190 | LIBS="$ac_save_LIBS" | |
9191 | ||
9192 | fi | |
9193 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9194 | echo "$ac_t""yes" 1>&6 | |
9195 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
9196 | #define HAVE_XIM 1 |
9197 | EOF | |
9198 | ||
698dcdb6 VZ |
9199 | else |
9200 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
9201 | fi |
9202 | ||
1e6feb95 | 9203 | fi |
10f2d63a | 9204 | |
1e6feb95 VZ |
9205 | if test "$wxUSE_MGL" = 1; then |
9206 | ||
9207 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
d1a8d972 | 9208 | echo "configure:9209: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
9209 | if test "x$MGL_ROOT" = x ; then |
9210 | echo "$ac_t""not found" 1>&6 | |
9211 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
9212 | else | |
9213 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
9214 | fi | |
9215 | ||
9216 | MGL_OS=linux/gcc/glibc | |
9217 | MGL_LIB_TYPE="" | |
9218 | ||
9219 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
9220 | if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then | |
9221 | MGL_LIB_TYPE=debug | |
9222 | fi | |
9223 | fi | |
9224 | if test "x$MGL_LIB_TYPE" = x ; then | |
9225 | if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then | |
9226 | MGL_LIB_TYPE=release | |
9227 | else | |
9228 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
9229 | fi | |
9230 | fi | |
9231 | ||
9232 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
9233 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm" | |
9234 | ||
9235 | AFMINSTALL=afminstall | |
9236 | TOOLKIT=MGL | |
9237 | GUIDIST=MGL_DIST | |
9238 | fi | |
9239 | ||
9240 | if test "$wxUSE_WINE" = 1; then | |
9241 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
d1a8d972 | 9242 | echo "configure:9243: checking for WINE includes" >&5 |
1e6feb95 | 9243 | |
10f2d63a VZ |
9244 | ac_find_includes= |
9245 | for ac_dir in $SEARCH_INCLUDE; | |
9246 | do | |
9247 | if test -f "$ac_dir/windows.h"; then | |
9248 | ac_find_includes=$ac_dir | |
9249 | break | |
9250 | fi | |
9251 | done | |
9252 | ||
1e6feb95 VZ |
9253 | if test "$ac_find_includes" != "" ; then |
9254 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
9255 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
9256 | else | |
9257 | echo "$ac_t""no" 1>&6 | |
9258 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9259 | fi | |
10f2d63a | 9260 | |
1e6feb95 VZ |
9261 | XPM_LINK="" |
9262 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
d1a8d972 | 9263 | echo "configure:9264: checking for Xpm library" >&5 |
1e6feb95 | 9264 | |
10f2d63a VZ |
9265 | ac_find_libraries= |
9266 | for ac_dir in $SEARCH_LIB; | |
9267 | do | |
9268 | for ac_extension in a so sl; do | |
9269 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
9270 | ac_find_libraries=$ac_dir | |
9271 | break 2 | |
9272 | fi | |
9273 | done | |
9274 | done | |
9275 | ||
1e6feb95 VZ |
9276 | if test "$ac_find_libraries" != "" ; then |
9277 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
9278 | XPM_LINK="-lXpm" | |
9279 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
9280 | #define wxHAVE_LIB_XPM 1 |
9281 | EOF | |
9282 | ||
1e6feb95 VZ |
9283 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9284 | else | |
9285 | echo "$ac_t""no" 1>&6 | |
9286 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9287 | fi | |
10f2d63a | 9288 | |
1e6feb95 VZ |
9289 | MESA_LINK="" |
9290 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
d1a8d972 | 9291 | echo "configure:9292: checking for Mesa library" >&5 |
1e6feb95 | 9292 | |
10f2d63a VZ |
9293 | ac_find_libraries= |
9294 | for ac_dir in $SEARCH_LIB; | |
9295 | do | |
9296 | for ac_extension in a so sl; do | |
9297 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
9298 | ac_find_libraries=$ac_dir | |
9299 | break 2 | |
9300 | fi | |
9301 | done | |
9302 | done | |
9303 | ||
1e6feb95 VZ |
9304 | if test "$ac_find_libraries" != "" ; then |
9305 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
9306 | MESA_LINK="-lMesaGL" | |
9307 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
9308 | else | |
9309 | { echo "configure: error: no" 1>&2; exit 1; } | |
9310 | fi | |
10f2d63a | 9311 | |
1e6feb95 VZ |
9312 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
9313 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
9314 | WXWINE=1 | |
9315 | TOOLKIT=MSW | |
9316 | GUIDIST=MSW_DIST | |
9317 | fi | |
698dcdb6 | 9318 | |
1e6feb95 VZ |
9319 | |
9320 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
9321 | # paths, otherwise set no_x=yes. |
9322 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
9323 | # --without-x overrides everything else, but does not touch the cache. | |
9324 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
d1a8d972 | 9325 | echo "configure:9326: checking for X" >&5 |
ab9b9eab VZ |
9326 | |
9327 | # Check whether --with-x or --without-x was given. | |
9328 | if test "${with_x+set}" = set; then | |
9329 | withval="$with_x" | |
698dcdb6 VZ |
9330 | : |
9331 | fi | |
ba337fe7 | 9332 | |
ab9b9eab VZ |
9333 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9334 | if test "x$with_x" = xno; then | |
9335 | # The user explicitly disabled X. | |
9336 | have_x=disabled | |
9337 | else | |
9338 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
9339 | # Both variables are already set. | |
9340 | have_x=yes | |
9341 | else | |
698dcdb6 VZ |
9342 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
9343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
9344 | else |
9345 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
9346 | ac_x_includes=NO ac_x_libraries=NO |
9347 | rm -fr conftestdir | |
9348 | if mkdir conftestdir; then | |
9349 | cd conftestdir | |
ab9b9eab | 9350 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 9351 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
9352 | acfindx: |
9353 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
9354 | EOF | |
9355 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
9356 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9357 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
9358 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 9359 | for ac_extension in a so sl; do |
ab9b9eab | 9360 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 9361 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 9362 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
9363 | fi |
9364 | done | |
ab9b9eab VZ |
9365 | # Screen out bogus values from the imake configuration. They are |
9366 | # bogus both because they are the default anyway, and because | |
9367 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 9368 | case "$ac_im_incroot" in |
ab9b9eab | 9369 | /usr/include) ;; |
698dcdb6 | 9370 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 9371 | esac |
698dcdb6 | 9372 | case "$ac_im_usrlibdir" in |
ab9b9eab | 9373 | /usr/lib | /lib) ;; |
698dcdb6 | 9374 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 9375 | esac |
ba337fe7 | 9376 | fi |
ab9b9eab | 9377 | cd .. |
698dcdb6 | 9378 | rm -fr conftestdir |
ab9b9eab | 9379 | fi |
10f2d63a | 9380 | |
698dcdb6 VZ |
9381 | if test "$ac_x_includes" = NO; then |
9382 | # Guess where to find include files, by looking for this one X11 .h file. | |
9383 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
9384 | ||
ab9b9eab | 9385 | # First, try using that file with no special directory specified. |
698dcdb6 | 9386 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 9387 | #line 9388 "configure" |
ab9b9eab | 9388 | #include "confdefs.h" |
698dcdb6 VZ |
9389 | #include <$x_direct_test_include> |
9390 | EOF | |
9391 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 9392 | { (eval echo configure:9393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
9393 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9394 | if test -z "$ac_err"; then | |
9395 | rm -rf conftest* | |
ab9b9eab VZ |
9396 | # We can compile using X headers with no special include directory. |
9397 | ac_x_includes= | |
9398 | else | |
698dcdb6 VZ |
9399 | echo "$ac_err" >&5 |
9400 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 9401 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9402 | rm -rf conftest* |
9403 | # Look for the header file in a standard set of common directories. | |
9404 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9405 | for ac_dir in \ | |
9406 | /usr/X11/include \ | |
9407 | /usr/X11R6/include \ | |
9408 | /usr/X11R5/include \ | |
9409 | /usr/X11R4/include \ | |
9410 | \ | |
9411 | /usr/include/X11 \ | |
9412 | /usr/include/X11R6 \ | |
9413 | /usr/include/X11R5 \ | |
9414 | /usr/include/X11R4 \ | |
9415 | \ | |
9416 | /usr/local/X11/include \ | |
9417 | /usr/local/X11R6/include \ | |
9418 | /usr/local/X11R5/include \ | |
9419 | /usr/local/X11R4/include \ | |
9420 | \ | |
9421 | /usr/local/include/X11 \ | |
9422 | /usr/local/include/X11R6 \ | |
9423 | /usr/local/include/X11R5 \ | |
9424 | /usr/local/include/X11R4 \ | |
9425 | \ | |
9426 | /usr/X386/include \ | |
9427 | /usr/x386/include \ | |
9428 | /usr/XFree86/include/X11 \ | |
9429 | \ | |
9430 | /usr/include \ | |
9431 | /usr/local/include \ | |
9432 | /usr/unsupported/include \ | |
9433 | /usr/athena/include \ | |
9434 | /usr/local/x11r5/include \ | |
9435 | /usr/lpp/Xamples/include \ | |
9436 | \ | |
9437 | /usr/openwin/include \ | |
9438 | /usr/openwin/share/include \ | |
9439 | ; \ | |
9440 | do | |
9441 | if test -r "$ac_dir/$x_direct_test_include"; then | |
9442 | ac_x_includes=$ac_dir | |
9443 | break | |
9444 | fi | |
9445 | done | |
ab9b9eab | 9446 | fi |
698dcdb6 VZ |
9447 | rm -f conftest* |
9448 | fi # $ac_x_includes = NO | |
10f2d63a | 9449 | |
698dcdb6 | 9450 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 9451 | # Check for the libraries. |
698dcdb6 VZ |
9452 | |
9453 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
9454 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
9455 | ||
ab9b9eab VZ |
9456 | # See if we find them without any special options. |
9457 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
9458 | ac_save_LIBS="$LIBS" |
9459 | LIBS="-l$x_direct_test_library $LIBS" | |
9460 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 9461 | #line 9462 "configure" |
ab9b9eab | 9462 | #include "confdefs.h" |
698dcdb6 VZ |
9463 | |
9464 | int main() { | |
9465 | ${x_direct_test_function}() | |
9466 | ; return 0; } | |
9467 | EOF | |
d1a8d972 | 9468 | if { (eval echo configure:9469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9469 | rm -rf conftest* |
9470 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
9471 | # We can link X programs with no special library path. |
9472 | ac_x_libraries= | |
9473 | else | |
698dcdb6 VZ |
9474 | echo "configure: failed program was:" >&5 |
9475 | cat conftest.$ac_ext >&5 | |
9476 | rm -rf conftest* | |
9477 | LIBS="$ac_save_LIBS" | |
9478 | # First see if replacing the include by lib works. | |
9479 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9480 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
9481 | /usr/X11/lib \ | |
9482 | /usr/X11R6/lib \ | |
9483 | /usr/X11R5/lib \ | |
9484 | /usr/X11R4/lib \ | |
9485 | \ | |
9486 | /usr/lib/X11 \ | |
9487 | /usr/lib/X11R6 \ | |
9488 | /usr/lib/X11R5 \ | |
9489 | /usr/lib/X11R4 \ | |
9490 | \ | |
9491 | /usr/local/X11/lib \ | |
9492 | /usr/local/X11R6/lib \ | |
9493 | /usr/local/X11R5/lib \ | |
9494 | /usr/local/X11R4/lib \ | |
9495 | \ | |
9496 | /usr/local/lib/X11 \ | |
9497 | /usr/local/lib/X11R6 \ | |
9498 | /usr/local/lib/X11R5 \ | |
9499 | /usr/local/lib/X11R4 \ | |
9500 | \ | |
9501 | /usr/X386/lib \ | |
9502 | /usr/x386/lib \ | |
9503 | /usr/XFree86/lib/X11 \ | |
9504 | \ | |
9505 | /usr/lib \ | |
9506 | /usr/local/lib \ | |
9507 | /usr/unsupported/lib \ | |
9508 | /usr/athena/lib \ | |
9509 | /usr/local/x11r5/lib \ | |
9510 | /usr/lpp/Xamples/lib \ | |
9511 | /lib/usr/lib/X11 \ | |
9512 | \ | |
9513 | /usr/openwin/lib \ | |
9514 | /usr/openwin/share/lib \ | |
9515 | ; \ | |
ab9b9eab VZ |
9516 | do |
9517 | for ac_extension in a so sl; do | |
698dcdb6 | 9518 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
9519 | ac_x_libraries=$ac_dir |
9520 | break 2 | |
10f2d63a | 9521 | fi |
10f2d63a | 9522 | done |
ab9b9eab VZ |
9523 | done |
9524 | fi | |
698dcdb6 VZ |
9525 | rm -f conftest* |
9526 | fi # $ac_x_libraries = NO | |
10f2d63a | 9527 | |
698dcdb6 | 9528 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
9529 | # Didn't find X anywhere. Cache the known absence of X. |
9530 | ac_cv_have_x="have_x=no" | |
9531 | else | |
9532 | # Record where we found X for the cache. | |
9533 | ac_cv_have_x="have_x=yes \ | |
9534 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
9535 | fi | |
9536 | fi | |
10f2d63a | 9537 | fi |
ab9b9eab VZ |
9538 | eval "$ac_cv_have_x" |
9539 | fi # $with_x != no | |
10f2d63a | 9540 | |
ab9b9eab | 9541 | if test "$have_x" != yes; then |
698dcdb6 | 9542 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
9543 | no_x=yes |
9544 | else | |
9545 | # If each of the values was on the command line, it overrides each guess. | |
9546 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9547 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9548 | # Update the cache value to reflect the command line values. | |
9549 | ac_cv_have_x="have_x=yes \ | |
9550 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 9551 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 9552 | fi |
10f2d63a | 9553 | |
ab9b9eab VZ |
9554 | if test "$no_x" = yes; then |
9555 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 9556 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
9557 | #define X_DISPLAY_MISSING 1 |
9558 | EOF | |
10f2d63a | 9559 | |
ab9b9eab VZ |
9560 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
9561 | else | |
9562 | if test -n "$x_includes"; then | |
9563 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
9564 | fi |
9565 | ||
ab9b9eab VZ |
9566 | # It would also be nice to do this for all -L options, not just this one. |
9567 | if test -n "$x_libraries"; then | |
9568 | X_LIBS="$X_LIBS -L$x_libraries" | |
9569 | # For Solaris; some versions of Sun CC require a space after -R and | |
9570 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 9571 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 9572 | "SunOS 5"*) |
698dcdb6 | 9573 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
d1a8d972 | 9574 | echo "configure:9575: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
9575 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
9576 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 9577 | #line 9578 "configure" |
ab9b9eab | 9578 | #include "confdefs.h" |
10f2d63a | 9579 | |
698dcdb6 | 9580 | int main() { |
788deba1 | 9581 | |
698dcdb6 VZ |
9582 | ; return 0; } |
9583 | EOF | |
d1a8d972 | 9584 | if { (eval echo configure:9585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9585 | rm -rf conftest* |
ab9b9eab VZ |
9586 | ac_R_nospace=yes |
9587 | else | |
698dcdb6 VZ |
9588 | echo "configure: failed program was:" >&5 |
9589 | cat conftest.$ac_ext >&5 | |
9590 | rm -rf conftest* | |
9591 | ac_R_nospace=no | |
ab9b9eab | 9592 | fi |
698dcdb6 | 9593 | rm -f conftest* |
ab9b9eab | 9594 | if test $ac_R_nospace = yes; then |
698dcdb6 | 9595 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
9596 | X_LIBS="$X_LIBS -R$x_libraries" |
9597 | else | |
9598 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 9599 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 9600 | #line 9601 "configure" |
ab9b9eab | 9601 | #include "confdefs.h" |
788deba1 | 9602 | |
698dcdb6 | 9603 | int main() { |
ab9b9eab | 9604 | |
698dcdb6 VZ |
9605 | ; return 0; } |
9606 | EOF | |
d1a8d972 | 9607 | if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9608 | rm -rf conftest* |
ab9b9eab VZ |
9609 | ac_R_space=yes |
9610 | else | |
698dcdb6 VZ |
9611 | echo "configure: failed program was:" >&5 |
9612 | cat conftest.$ac_ext >&5 | |
9613 | rm -rf conftest* | |
9614 | ac_R_space=no | |
ab9b9eab | 9615 | fi |
698dcdb6 | 9616 | rm -f conftest* |
ab9b9eab | 9617 | if test $ac_R_space = yes; then |
698dcdb6 | 9618 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
9619 | X_LIBS="$X_LIBS -R $x_libraries" |
9620 | else | |
698dcdb6 | 9621 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
9622 | fi |
9623 | fi | |
698dcdb6 | 9624 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
9625 | esac |
9626 | fi | |
9627 | ||
9628 | # Check for system-dependent libraries X programs must link with. | |
9629 | # Do this before checking for the system-independent R6 libraries | |
9630 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
9631 | ||
9632 | if test "$ISC" = yes; then | |
9633 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
9634 | else | |
698dcdb6 VZ |
9635 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
9636 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 9637 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 9638 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
d1a8d972 | 9639 | echo "configure:9640: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
9640 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9641 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9642 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9643 | else |
698dcdb6 | 9644 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9645 | LIBS="-ldnet $LIBS" |
698dcdb6 | 9646 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 9647 | #line 9648 "configure" |
ab9b9eab VZ |
9648 | #include "confdefs.h" |
9649 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9650 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9651 | builtin and then its argument prototype would still apply. */ |
9652 | char dnet_ntoa(); | |
9653 | ||
9654 | int main() { | |
9655 | dnet_ntoa() | |
9656 | ; return 0; } | |
9657 | EOF | |
d1a8d972 | 9658 | if { (eval echo configure:9659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9659 | rm -rf conftest* |
9660 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9661 | else | |
9662 | echo "configure: failed program was:" >&5 | |
9663 | cat conftest.$ac_ext >&5 | |
9664 | rm -rf conftest* | |
9665 | eval "ac_cv_lib_$ac_lib_var=no" | |
9666 | fi | |
9667 | rm -f conftest* | |
9668 | LIBS="$ac_save_LIBS" | |
9669 | ||
9670 | fi | |
9671 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9672 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9673 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
9674 | else |
9675 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9676 | fi |
9677 | ||
9678 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 9679 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
d1a8d972 | 9680 | echo "configure:9681: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
9681 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9682 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9683 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9684 | else |
698dcdb6 | 9685 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9686 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 9687 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 9688 | #line 9689 "configure" |
ab9b9eab VZ |
9689 | #include "confdefs.h" |
9690 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9691 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9692 | builtin and then its argument prototype would still apply. */ |
9693 | char dnet_ntoa(); | |
9694 | ||
9695 | int main() { | |
9696 | dnet_ntoa() | |
9697 | ; return 0; } | |
9698 | EOF | |
d1a8d972 | 9699 | if { (eval echo configure:9700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9700 | rm -rf conftest* |
9701 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9702 | else | |
9703 | echo "configure: failed program was:" >&5 | |
9704 | cat conftest.$ac_ext >&5 | |
9705 | rm -rf conftest* | |
9706 | eval "ac_cv_lib_$ac_lib_var=no" | |
9707 | fi | |
9708 | rm -f conftest* | |
9709 | LIBS="$ac_save_LIBS" | |
9710 | ||
9711 | fi | |
9712 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9713 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9714 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
9715 | else |
9716 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9717 | fi |
9718 | ||
9719 | fi | |
9720 | ||
9721 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
9722 | # to get the SysV transport functions. | |
698dcdb6 | 9723 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
9724 | # needs -lnsl. |
9725 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
9726 | # on Irix 5.2, according to dickey@clark.net. |
9727 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
d1a8d972 | 9728 | echo "configure:9729: checking for gethostbyname" >&5 |
698dcdb6 VZ |
9729 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
9730 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9731 | else | |
9732 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 9733 | #line 9734 "configure" |
ab9b9eab VZ |
9734 | #include "confdefs.h" |
9735 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9736 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
9737 | #include <assert.h> |
9738 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9739 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9740 | builtin and then its argument prototype would still apply. */ |
9741 | char gethostbyname(); | |
9742 | ||
9743 | int main() { | |
ab9b9eab VZ |
9744 | |
9745 | /* The GNU C library defines this for functions which it implements | |
9746 | to always fail with ENOSYS. Some functions are actually named | |
9747 | something starting with __ and the normal name is an alias. */ | |
9748 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
9749 | choke me | |
9750 | #else | |
698dcdb6 | 9751 | gethostbyname(); |
ab9b9eab VZ |
9752 | #endif |
9753 | ||
698dcdb6 VZ |
9754 | ; return 0; } |
9755 | EOF | |
d1a8d972 | 9756 | if { (eval echo configure:9757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9757 | rm -rf conftest* |
9758 | eval "ac_cv_func_gethostbyname=yes" | |
9759 | else | |
9760 | echo "configure: failed program was:" >&5 | |
9761 | cat conftest.$ac_ext >&5 | |
9762 | rm -rf conftest* | |
9763 | eval "ac_cv_func_gethostbyname=no" | |
9764 | fi | |
9765 | rm -f conftest* | |
9766 | fi | |
9767 | ||
9768 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
9769 | echo "$ac_t""yes" 1>&6 | |
9770 | : | |
9771 | else | |
9772 | echo "$ac_t""no" 1>&6 | |
9773 | fi | |
ab9b9eab VZ |
9774 | |
9775 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 9776 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
d1a8d972 | 9777 | echo "configure:9778: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
9778 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
9779 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9781 | else |
698dcdb6 | 9782 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9783 | LIBS="-lnsl $LIBS" |
698dcdb6 | 9784 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 9785 | #line 9786 "configure" |
ab9b9eab VZ |
9786 | #include "confdefs.h" |
9787 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9788 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9789 | builtin and then its argument prototype would still apply. */ |
9790 | char gethostbyname(); | |
6232543b | 9791 | |
698dcdb6 VZ |
9792 | int main() { |
9793 | gethostbyname() | |
9794 | ; return 0; } | |
9795 | EOF | |
d1a8d972 | 9796 | if { (eval echo configure:9797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9797 | rm -rf conftest* |
9798 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 9799 | else |
698dcdb6 VZ |
9800 | echo "configure: failed program was:" >&5 |
9801 | cat conftest.$ac_ext >&5 | |
9802 | rm -rf conftest* | |
9803 | eval "ac_cv_lib_$ac_lib_var=no" | |
9804 | fi | |
9805 | rm -f conftest* | |
9806 | LIBS="$ac_save_LIBS" | |
1e487827 | 9807 | |
698dcdb6 VZ |
9808 | fi |
9809 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9810 | echo "$ac_t""yes" 1>&6 | |
9811 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
9812 | else | |
9813 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9814 | fi |
9815 | ||
9816 | fi | |
9817 | ||
9818 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
9819 | # socket/setsockopt and other routines are undefined under SCO ODT | |
9820 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
9821 | # on later versions), says simon@lia.di.epfl.ch: it contains |
9822 | # gethostby* variants that don't use the nameserver (or something). | |
9823 | # -lsocket must be given before -lnsl if both are needed. | |
9824 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
9825 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
d1a8d972 | 9826 | echo "configure:9827: checking for connect" >&5 |
698dcdb6 VZ |
9827 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
9828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9829 | else | |
9830 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 9831 | #line 9832 "configure" |
ab9b9eab VZ |
9832 | #include "confdefs.h" |
9833 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9834 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
9835 | #include <assert.h> |
9836 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9837 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9838 | builtin and then its argument prototype would still apply. */ |
9839 | char connect(); | |
9840 | ||
9841 | int main() { | |
ab9b9eab VZ |
9842 | |
9843 | /* The GNU C library defines this for functions which it implements | |
9844 | to always fail with ENOSYS. Some functions are actually named | |
9845 | something starting with __ and the normal name is an alias. */ | |
9846 | #if defined (__stub_connect) || defined (__stub___connect) | |
9847 | choke me | |
9848 | #else | |
698dcdb6 | 9849 | connect(); |
ab9b9eab VZ |
9850 | #endif |
9851 | ||
698dcdb6 VZ |
9852 | ; return 0; } |
9853 | EOF | |
d1a8d972 | 9854 | if { (eval echo configure:9855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9855 | rm -rf conftest* |
9856 | eval "ac_cv_func_connect=yes" | |
9857 | else | |
9858 | echo "configure: failed program was:" >&5 | |
9859 | cat conftest.$ac_ext >&5 | |
9860 | rm -rf conftest* | |
9861 | eval "ac_cv_func_connect=no" | |
9862 | fi | |
9863 | rm -f conftest* | |
9864 | fi | |
9865 | ||
9866 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
9867 | echo "$ac_t""yes" 1>&6 | |
9868 | : | |
9869 | else | |
9870 | echo "$ac_t""no" 1>&6 | |
9871 | fi | |
ab9b9eab VZ |
9872 | |
9873 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 9874 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
d1a8d972 | 9875 | echo "configure:9876: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
9876 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
9877 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9878 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9879 | else |
698dcdb6 | 9880 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9881 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 9882 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 9883 | #line 9884 "configure" |
ab9b9eab VZ |
9884 | #include "confdefs.h" |
9885 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9886 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9887 | builtin and then its argument prototype would still apply. */ |
9888 | char connect(); | |
9889 | ||
9890 | int main() { | |
9891 | connect() | |
9892 | ; return 0; } | |
9893 | EOF | |
d1a8d972 | 9894 | if { (eval echo configure:9895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9895 | rm -rf conftest* |
9896 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9897 | else | |
9898 | echo "configure: failed program was:" >&5 | |
9899 | cat conftest.$ac_ext >&5 | |
9900 | rm -rf conftest* | |
9901 | eval "ac_cv_lib_$ac_lib_var=no" | |
9902 | fi | |
9903 | rm -f conftest* | |
9904 | LIBS="$ac_save_LIBS" | |
9905 | ||
9906 | fi | |
9907 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9908 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9909 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
9910 | else |
9911 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9912 | fi |
9913 | ||
9914 | fi | |
9915 | ||
698dcdb6 VZ |
9916 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
9917 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
d1a8d972 | 9918 | echo "configure:9919: checking for remove" >&5 |
698dcdb6 VZ |
9919 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
9920 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9921 | else |
698dcdb6 | 9922 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 9923 | #line 9924 "configure" |
ab9b9eab VZ |
9924 | #include "confdefs.h" |
9925 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9926 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
9927 | #include <assert.h> |
9928 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9929 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9930 | builtin and then its argument prototype would still apply. */ |
9931 | char remove(); | |
9932 | ||
9933 | int main() { | |
ab9b9eab VZ |
9934 | |
9935 | /* The GNU C library defines this for functions which it implements | |
9936 | to always fail with ENOSYS. Some functions are actually named | |
9937 | something starting with __ and the normal name is an alias. */ | |
9938 | #if defined (__stub_remove) || defined (__stub___remove) | |
9939 | choke me | |
9940 | #else | |
698dcdb6 | 9941 | remove(); |
ab9b9eab VZ |
9942 | #endif |
9943 | ||
698dcdb6 VZ |
9944 | ; return 0; } |
9945 | EOF | |
d1a8d972 | 9946 | if { (eval echo configure:9947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9947 | rm -rf conftest* |
9948 | eval "ac_cv_func_remove=yes" | |
9949 | else | |
9950 | echo "configure: failed program was:" >&5 | |
9951 | cat conftest.$ac_ext >&5 | |
9952 | rm -rf conftest* | |
9953 | eval "ac_cv_func_remove=no" | |
9954 | fi | |
9955 | rm -f conftest* | |
9956 | fi | |
9957 | ||
9958 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
9959 | echo "$ac_t""yes" 1>&6 | |
9960 | : | |
9961 | else | |
9962 | echo "$ac_t""no" 1>&6 | |
9963 | fi | |
ab9b9eab VZ |
9964 | |
9965 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 9966 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
d1a8d972 | 9967 | echo "configure:9968: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
9968 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
9969 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9970 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9971 | else |
698dcdb6 | 9972 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9973 | LIBS="-lposix $LIBS" |
698dcdb6 | 9974 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 9975 | #line 9976 "configure" |
ab9b9eab VZ |
9976 | #include "confdefs.h" |
9977 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9978 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9979 | builtin and then its argument prototype would still apply. */ |
9980 | char remove(); | |
9981 | ||
9982 | int main() { | |
9983 | remove() | |
9984 | ; return 0; } | |
9985 | EOF | |
d1a8d972 | 9986 | if { (eval echo configure:9987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9987 | rm -rf conftest* |
9988 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9989 | else | |
9990 | echo "configure: failed program was:" >&5 | |
9991 | cat conftest.$ac_ext >&5 | |
9992 | rm -rf conftest* | |
9993 | eval "ac_cv_lib_$ac_lib_var=no" | |
9994 | fi | |
9995 | rm -f conftest* | |
9996 | LIBS="$ac_save_LIBS" | |
9997 | ||
9998 | fi | |
9999 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10000 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10001 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
10002 | else |
10003 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10004 | fi |
10005 | ||
10006 | fi | |
10007 | ||
10008 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 10009 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
d1a8d972 | 10010 | echo "configure:10011: checking for shmat" >&5 |
698dcdb6 VZ |
10011 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
10012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10013 | else |
698dcdb6 | 10014 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 10015 | #line 10016 "configure" |
ab9b9eab VZ |
10016 | #include "confdefs.h" |
10017 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 10018 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
10019 | #include <assert.h> |
10020 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10021 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10022 | builtin and then its argument prototype would still apply. */ |
10023 | char shmat(); | |
10024 | ||
10025 | int main() { | |
ab9b9eab VZ |
10026 | |
10027 | /* The GNU C library defines this for functions which it implements | |
10028 | to always fail with ENOSYS. Some functions are actually named | |
10029 | something starting with __ and the normal name is an alias. */ | |
10030 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
10031 | choke me | |
10032 | #else | |
698dcdb6 | 10033 | shmat(); |
ab9b9eab VZ |
10034 | #endif |
10035 | ||
698dcdb6 VZ |
10036 | ; return 0; } |
10037 | EOF | |
d1a8d972 | 10038 | if { (eval echo configure:10039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10039 | rm -rf conftest* |
10040 | eval "ac_cv_func_shmat=yes" | |
10041 | else | |
10042 | echo "configure: failed program was:" >&5 | |
10043 | cat conftest.$ac_ext >&5 | |
10044 | rm -rf conftest* | |
10045 | eval "ac_cv_func_shmat=no" | |
10046 | fi | |
10047 | rm -f conftest* | |
10048 | fi | |
10049 | ||
10050 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
10051 | echo "$ac_t""yes" 1>&6 | |
10052 | : | |
10053 | else | |
10054 | echo "$ac_t""no" 1>&6 | |
10055 | fi | |
ab9b9eab VZ |
10056 | |
10057 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 10058 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
d1a8d972 | 10059 | echo "configure:10060: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
10060 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
10061 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10063 | else |
698dcdb6 | 10064 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10065 | LIBS="-lipc $LIBS" |
698dcdb6 | 10066 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 10067 | #line 10068 "configure" |
ab9b9eab VZ |
10068 | #include "confdefs.h" |
10069 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10070 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10071 | builtin and then its argument prototype would still apply. */ |
10072 | char shmat(); | |
10073 | ||
10074 | int main() { | |
10075 | shmat() | |
10076 | ; return 0; } | |
10077 | EOF | |
d1a8d972 | 10078 | if { (eval echo configure:10079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10079 | rm -rf conftest* |
10080 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10081 | else | |
10082 | echo "configure: failed program was:" >&5 | |
10083 | cat conftest.$ac_ext >&5 | |
10084 | rm -rf conftest* | |
10085 | eval "ac_cv_lib_$ac_lib_var=no" | |
10086 | fi | |
10087 | rm -f conftest* | |
10088 | LIBS="$ac_save_LIBS" | |
10089 | ||
10090 | fi | |
10091 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10092 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10093 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
10094 | else |
10095 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10096 | fi |
10097 | ||
10098 | fi | |
10099 | fi | |
10100 | ||
10101 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 10102 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
10103 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
10104 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10105 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10106 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10107 | # These have to be linked with before -lX11, unlike the other | |
10108 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
10109 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
10110 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
d1a8d972 | 10111 | echo "configure:10112: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
10112 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
10113 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10114 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10115 | else | |
10116 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 10117 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10118 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 10119 | #line 10120 "configure" |
ab9b9eab VZ |
10120 | #include "confdefs.h" |
10121 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10122 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10123 | builtin and then its argument prototype would still apply. */ |
10124 | char IceConnectionNumber(); | |
10125 | ||
10126 | int main() { | |
10127 | IceConnectionNumber() | |
10128 | ; return 0; } | |
10129 | EOF | |
d1a8d972 | 10130 | if { (eval echo configure:10131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10131 | rm -rf conftest* |
10132 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10133 | else | |
10134 | echo "configure: failed program was:" >&5 | |
10135 | cat conftest.$ac_ext >&5 | |
10136 | rm -rf conftest* | |
10137 | eval "ac_cv_lib_$ac_lib_var=no" | |
10138 | fi | |
10139 | rm -f conftest* | |
10140 | LIBS="$ac_save_LIBS" | |
10141 | ||
10142 | fi | |
10143 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10144 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10145 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
10146 | else |
10147 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10148 | fi |
10149 | ||
698dcdb6 | 10150 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
10151 | |
10152 | fi | |
10153 | ||
1e6feb95 VZ |
10154 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
10155 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 10156 | |
1e6feb95 VZ |
10157 | if test "$wxUSE_MOTIF" = 1; then |
10158 | if test "$no_x" = "yes"; then | |
10159 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
10160 | fi | |
ab9b9eab | 10161 | |
1e6feb95 VZ |
10162 | GUI_TK_LIBRARY="$X_LIBS" |
10163 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
ab9b9eab | 10164 | |
1e6feb95 | 10165 | AFMINSTALL=afminstall |
dad6c0ea | 10166 | |
1e6feb95 VZ |
10167 | |
10168 | COMPILED_X_PROGRAM=0 | |
cd6d6d5b | 10169 | |
1e6feb95 | 10170 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
d1a8d972 | 10171 | echo "configure:10172: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 10172 | |
ab9b9eab VZ |
10173 | ac_find_includes= |
10174 | for ac_dir in $SEARCH_INCLUDE; | |
10175 | do | |
10176 | if test -f "$ac_dir/Xm/Xm.h"; then | |
10177 | ac_find_includes=$ac_dir | |
10178 | break | |
10179 | fi | |
10180 | done | |
10181 | ||
1e6feb95 VZ |
10182 | if test "$ac_find_includes" != "" ; then |
10183 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
10184 | else | |
10185 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 10186 | #line 10187 "configure" |
cd6d6d5b VZ |
10187 | #include "confdefs.h" |
10188 | ||
1e6feb95 VZ |
10189 | #include <Xm/Xm.h> |
10190 | ||
698dcdb6 | 10191 | int main() { |
cd6d6d5b | 10192 | |
1e6feb95 | 10193 | int version; |
cd6d6d5b | 10194 | |
1e6feb95 VZ |
10195 | version = xmUseVersion; |
10196 | ||
698dcdb6 VZ |
10197 | ; return 0; } |
10198 | EOF | |
d1a8d972 | 10199 | if { (eval echo configure:10200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10200 | rm -rf conftest* |
10201 | ||
1e6feb95 VZ |
10202 | echo "$ac_t""found in default search path" 1>&6 |
10203 | COMPILED_X_PROGRAM=1 | |
10204 | ||
cd6d6d5b | 10205 | else |
698dcdb6 VZ |
10206 | echo "configure: failed program was:" >&5 |
10207 | cat conftest.$ac_ext >&5 | |
10208 | rm -rf conftest* | |
10209 | ||
1e6feb95 VZ |
10210 | echo "$ac_t""no" 1>&6 |
10211 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
10212 | ||
698dcdb6 | 10213 | |
cd6d6d5b | 10214 | fi |
698dcdb6 | 10215 | rm -f conftest* |
1e6feb95 | 10216 | fi |
ab9b9eab | 10217 | |
1e6feb95 VZ |
10218 | if test "$COMPILED_X_PROGRAM" = 0; then |
10219 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
d1a8d972 | 10220 | echo "configure:10221: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 10221 | |
ab9b9eab VZ |
10222 | ac_find_libraries= |
10223 | for ac_dir in $SEARCH_LIB; | |
10224 | do | |
10225 | for ac_extension in a so sl; do | |
10226 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
10227 | ac_find_libraries=$ac_dir | |
10228 | break 2 | |
10229 | fi | |
10230 | done | |
10231 | done | |
10232 | ||
1e6feb95 VZ |
10233 | if test "$ac_find_libraries" != "" ; then |
10234 | ||
ab9b9eab VZ |
10235 | ac_path_to_include=$ac_find_includes |
10236 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
10237 | result=$? | |
10238 | if test $result = 0; then | |
10239 | ac_path_to_include="" | |
10240 | else | |
10241 | ac_path_to_include="-I$ac_find_includes" | |
10242 | fi | |
10243 | ||
1e6feb95 | 10244 | |
ab9b9eab VZ |
10245 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10246 | result=$? | |
10247 | if test $result = 0; then | |
10248 | ac_path_to_link="" | |
10249 | else | |
10250 | ac_path_to_link="-L$ac_find_libraries" | |
10251 | fi | |
10252 | ||
698dcdb6 | 10253 | |
1e6feb95 VZ |
10254 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10255 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
10256 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10257 | else | |
10258 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 10259 | #line 10260 "configure" |
cd6d6d5b | 10260 | #include "confdefs.h" |
ab9b9eab | 10261 | |
1e6feb95 VZ |
10262 | #include <Xm/Xm.h> |
10263 | ||
698dcdb6 | 10264 | int main() { |
ab9b9eab | 10265 | |
1e6feb95 | 10266 | int version; |
ab9b9eab | 10267 | |
1e6feb95 VZ |
10268 | version = xmUseVersion; |
10269 | ||
698dcdb6 VZ |
10270 | ; return 0; } |
10271 | EOF | |
d1a8d972 | 10272 | if { (eval echo configure:10273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10273 | rm -rf conftest* |
10274 | ||
1e6feb95 VZ |
10275 | echo "$ac_t""found in default search path" 1>&6 |
10276 | COMPILED_X_PROGRAM=1 | |
10277 | ||
cd6d6d5b | 10278 | else |
698dcdb6 VZ |
10279 | echo "configure: failed program was:" >&5 |
10280 | cat conftest.$ac_ext >&5 | |
10281 | rm -rf conftest* | |
10282 | ||
1e6feb95 VZ |
10283 | echo "$ac_t""no" 1>&6 |
10284 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
10285 | ||
698dcdb6 | 10286 | |
cd6d6d5b | 10287 | fi |
698dcdb6 | 10288 | rm -f conftest* |
1e6feb95 | 10289 | fi |
cd6d6d5b | 10290 | fi |
ab9b9eab | 10291 | |
1e6feb95 VZ |
10292 | |
10293 | XPM_LINK="" | |
10294 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
d1a8d972 | 10295 | echo "configure:10296: checking for Xpm library" >&5 |
1e6feb95 | 10296 | |
ab9b9eab VZ |
10297 | ac_find_libraries= |
10298 | for ac_dir in $SEARCH_LIB; | |
10299 | do | |
10300 | for ac_extension in a so sl; do | |
10301 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
10302 | ac_find_libraries=$ac_dir | |
10303 | break 2 | |
10304 | fi | |
10305 | done | |
10306 | done | |
10307 | ||
1e6feb95 VZ |
10308 | if test "$ac_find_libraries" != "" ; then |
10309 | ||
ab9b9eab VZ |
10310 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10311 | result=$? | |
10312 | if test $result = 0; then | |
10313 | ac_path_to_link="" | |
10314 | else | |
10315 | ac_path_to_link="-L$ac_find_libraries" | |
10316 | fi | |
10317 | ||
1e6feb95 VZ |
10318 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10319 | XPM_LINK="-lXpm " | |
10320 | cat >> confdefs.h <<\EOF | |
ab9b9eab VZ |
10321 | #define wxHAVE_LIB_XPM 1 |
10322 | EOF | |
10323 | ||
1e6feb95 VZ |
10324 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10325 | else | |
10326 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 10327 | #line 10328 "configure" |
cd6d6d5b VZ |
10328 | #include "confdefs.h" |
10329 | ||
1e6feb95 VZ |
10330 | #include <X11/xpm.h> |
10331 | ||
698dcdb6 | 10332 | int main() { |
cd6d6d5b | 10333 | |
1e6feb95 | 10334 | int version; |
cd6d6d5b | 10335 | |
1e6feb95 VZ |
10336 | version = XpmLibraryVersion(); |
10337 | ||
698dcdb6 VZ |
10338 | ; return 0; } |
10339 | EOF | |
d1a8d972 | 10340 | if { (eval echo configure:10341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10341 | rm -rf conftest* |
10342 | ||
1e6feb95 VZ |
10343 | XPM_LINK="-lXpm " |
10344 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
10345 | #define wxHAVE_LIB_XPM 1 |
10346 | EOF | |
10347 | ||
1e6feb95 VZ |
10348 | echo "$ac_t""found in default search path" 1>&6 |
10349 | COMPILED_X_PROGRAM=0 | |
10350 | ||
cd6d6d5b | 10351 | else |
698dcdb6 VZ |
10352 | echo "configure: failed program was:" >&5 |
10353 | cat conftest.$ac_ext >&5 | |
10354 | rm -rf conftest* | |
10355 | ||
1e6feb95 VZ |
10356 | echo "$ac_t""no" 1>&6 |
10357 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10358 | ||
698dcdb6 | 10359 | |
cd6d6d5b | 10360 | fi |
698dcdb6 | 10361 | rm -f conftest* |
1e6feb95 VZ |
10362 | fi |
10363 | ||
10364 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" | |
10365 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
10366 | TOOLKIT=MOTIF | |
10367 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
10368 | fi |
10369 | ||
1e6feb95 VZ |
10370 | if test "$wxUSE_MAC" = 1; then |
10371 | TOOLKIT=MAC | |
10372 | GUIDIST=MACX_DIST | |
10373 | fi | |
10f2d63a | 10374 | |
1e6feb95 VZ |
10375 | if test "$wxUSE_PM" = 1; then |
10376 | TOOLKIT=PM | |
10377 | GUIDIST=GTK_DIST | |
10378 | fi | |
b4085ce6 | 10379 | |
1e6feb95 VZ |
10380 | if test "$TOOLKIT" != "PM" ; then |
10381 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
10382 | else | |
10383 | TOOLKIT_DIR="os2" | |
10384 | fi | |
e07802fc | 10385 | |
1e6feb95 | 10386 | TOOLKIT_NAME="${TOOLKIT_DIR}" |
10f2d63a | 10387 | |
1e6feb95 VZ |
10388 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" |
10389 | ||
10390 | if test "$TOOLKIT_NAME" = "motif"; then | |
10391 | TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
10392 | fi | |
10393 | ||
10394 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10395 | TOOLKIT_NAME="${TOOLKIT_NAME}univ" | |
10396 | UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
10397 | TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}" | |
10398 | SETUPH_DIR="univ" | |
f6bcfd97 | 10399 | else |
1e6feb95 VZ |
10400 | SETUPH_DIR="${TOOLKIT_DIR}" |
10401 | fi | |
10402 | ||
10403 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10404 | TOOLKIT_NAME="${TOOLKIT_NAME}d" | |
f6bcfd97 BP |
10405 | fi |
10406 | ||
2224580a | 10407 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
1e6feb95 VZ |
10408 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10409 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__" | |
10410 | fi | |
10f2d63a | 10411 | |
f6bcfd97 | 10412 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 10413 | |
1e6feb95 VZ |
10414 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10415 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
10416 | else | |
10417 | ALL_OBJECTS="\$(GUIOBJS)" | |
10418 | fi | |
10419 | ||
10420 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
10421 | ||
10422 | if test "$TOOLKIT" != "MSW"; then | |
10423 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
10424 | fi | |
10425 | ||
10426 | if test "$wxUSE_HTML" = "yes"; then | |
10427 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
10428 | fi | |
3fcdd07b | 10429 | |
1e6feb95 VZ |
10430 | if test "$TOOLKIT" != "MSW"; then |
10431 | if test "$wxUSE_ODBC" = "yes" ; then | |
10432 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
10433 | fi | |
3fcdd07b VZ |
10434 | fi |
10435 | ||
d9d8273d | 10436 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 10437 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
10438 | fi |
10439 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
10440 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
10441 | fi | |
10442 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10443 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
10444 | fi | |
10445 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10446 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10447 | fi | |
3fed1840 RR |
10448 | if test "$wxUSE_FREETYPE" = "yes" ; then |
10449 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
10450 | fi | |
2224580a | 10451 | |
1e6feb95 VZ |
10452 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10453 | ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)" | |
10454 | else | |
10455 | ALL_DEPFILES="\$(GUIDEPS)" | |
10456 | fi | |
10457 | ||
10458 | ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)" | |
10459 | ||
10460 | if test "$TOOLKIT" != "MSW"; then | |
10461 | ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)" | |
10462 | fi | |
10463 | ||
10464 | if test "$wxUSE_HTML" = "yes"; then | |
10465 | ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)" | |
10466 | fi | |
10467 | ||
10468 | PORT_FILES="src/\$(TOOLKITDIR)/files.lst" | |
10469 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10470 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
10471 | fi | |
2224580a VZ |
10472 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
10473 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
10474 | ||
10475 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
10476 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 10477 | else |
dad6c0ea VZ |
10478 | USE_GUI=0 |
10479 | ||
f6bcfd97 BP |
10480 | TOOLKIT_DIR="base" |
10481 | ||
10482 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10483 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
10484 | else | |
10485 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
10486 | fi | |
10487 | ||
07eb77a6 RL |
10488 | TOOLKIT_DEF="-D__WXBASE__" |
10489 | ||
b4085ce6 GD |
10490 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
10491 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 10492 | |
a20b6d3a VZ |
10493 | if test "$wxUSE_ZLIB" = "yes" ; then |
10494 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10495 | fi | |
10496 | ||
f6bcfd97 | 10497 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a VZ |
10498 | |
10499 | PORT_FILES="src/files.lst" | |
10500 | RPM_FILES="src/rpmfiles.lst" | |
10501 | RPM_SPEC="wxBase.spec" | |
10502 | ||
10503 | GUIDIST="BASE_DIST" | |
10504 | DISTDIR="wxBase" | |
10f2d63a VZ |
10505 | fi |
10506 | ||
10507 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 10508 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
10509 | |
10510 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 10511 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
10512 | |
10513 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 10514 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
10515 | |
10516 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
10517 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
10518 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
10519 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
10520 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
10521 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
10522 | |
10523 | SHARED_LD= | |
10524 | PIC_FLAG= | |
10525 | WX_ALL= | |
10526 | WX_ALL_INSTALLED= | |
1d62a8b4 | 10527 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 10528 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 10529 | |
698dcdb6 | 10530 | |
10f2d63a VZ |
10531 | if test "$wxUSE_SHARED" = "yes"; then |
10532 | case "${host}" in | |
10533 | *-hp-hpux* ) | |
10534 | if test "$GCC" = yes ; then | |
69ffe1d2 | 10535 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
10536 | PIC_FLAG="-fPIC" |
10537 | else | |
f6bcfd97 BP |
10538 | LDFLAGS="-L/usr/lib" |
10539 | ||
10f2d63a VZ |
10540 | SHARED_LD="${CXX} -b -o" |
10541 | PIC_FLAG="+Z" | |
10542 | fi | |
f6bcfd97 BP |
10543 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
10544 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 10545 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 10546 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
10547 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
10548 | else | |
10549 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
10550 | fi | |
10f2d63a | 10551 | ;; |
b12915c1 VZ |
10552 | |
10553 | *-*-linux* ) | |
10f2d63a VZ |
10554 | SHARED_LD="${CC} -shared -o" |
10555 | PIC_FLAG="-fPIC" | |
00cf1208 | 10556 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 10557 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 10558 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 10559 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 10560 | fi |
c661ecca RR |
10561 | if test "$wxUSE_OPENGL" = "yes"; then |
10562 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10563 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10564 | else | |
10565 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10566 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10567 | fi |
00cf1208 | 10568 | ;; |
10f2d63a VZ |
10569 | *-*-irix5* | *-*-irix6* ) |
10570 | if test "$GCC" = yes ; then | |
10571 | SHARED_LD="${CC} -shared -o" | |
10572 | PIC_FLAG="-fPIC" | |
10573 | else | |
10574 | SHARED_LD="${CXX} -shared -o" | |
10575 | fi | |
c661ecca RR |
10576 | if test "$wxUSE_OPENGL" = "yes"; then |
10577 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10578 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10579 | else | |
10580 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10581 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10582 | fi |
10f2d63a VZ |
10583 | ;; |
10584 | *-*-solaris2* ) | |
10585 | if test "$GCC" = yes ; then | |
10586 | SHARED_LD="${CC} -shared -o" | |
10587 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
10588 | |
10589 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
10590 | else |
10591 | SHARED_LD="${CXX} -G -o" | |
10592 | PIC_FLAG="-KPIC" | |
10593 | fi | |
c661ecca RR |
10594 | if test "$wxUSE_OPENGL" = "yes"; then |
10595 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10596 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10597 | else | |
10598 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10599 | WX_ALL="CREATE_LINKS" | |
10600 | fi | |
10f2d63a VZ |
10601 | ;; |
10602 | *-*-sunos4* ) | |
10603 | SHARED_LD="${CC} -shared -o" | |
10604 | PIC_FLAG="-fPIC" | |
10605 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10606 | WX_ALL="CREATE_LINKS" | |
10607 | ;; | |
95c8801c | 10608 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* ) |
10f2d63a VZ |
10609 | SHARED_LD="${CC} -shared -o" |
10610 | PIC_FLAG="-fPIC" | |
37d403aa JS |
10611 | if test "$wxUSE_OPENGL" = "yes"; then |
10612 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10613 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10614 | else | |
10615 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10616 | WX_ALL="CREATE_LINKS" | |
10617 | fi | |
10f2d63a | 10618 | ;; |
b4085ce6 | 10619 | *-*-darwin* ) |
ea5999b9 GD |
10620 | SHARED_LD="${CXX} -dynamiclib -o" |
10621 | PIC_FLAG="-dynamic -fPIC" | |
b4085ce6 GD |
10622 | if test "$wxUSE_OPENGL" = "yes"; then |
10623 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10624 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10625 | else | |
10626 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10627 | WX_ALL="CREATE_LINKS" | |
10628 | fi | |
1e6feb95 VZ |
10629 | WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r" |
10630 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10631 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10632 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10633 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" | |
10634 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
10635 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10636 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" | |
10637 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
b4085ce6 | 10638 | ;; |
10f2d63a VZ |
10639 | *-*-osf* ) |
10640 | SHARED_LD="${CXX} -shared -o" | |
10641 | PIC_FLAG="-fPIC" | |
10642 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10643 | WX_ALL="CREATE_LINKS" | |
10644 | ;; | |
10645 | *-*-dgux5* ) | |
10646 | SHARED_LD="${CXX} -shared -o" | |
10647 | PIC_FLAG="-fPIC" | |
10648 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10649 | WX_ALL="CREATE_LINKS" | |
10650 | ;; | |
10651 | *-*-sysv5* ) | |
10652 | SHARED_LD="${CC} -shared -o" | |
10653 | PIC_FLAG="-fPIC" | |
10654 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10655 | WX_ALL="CREATE_LINKS" | |
10656 | ;; | |
10657 | *-*-aix* ) | |
10658 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10659 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
10660 | ;; | |
1c8183e2 | 10661 | *-*-cygwin* ) |
10f2d63a | 10662 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10663 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10664 | if test "$wxUSE_OPENGL" = "yes"; then |
10665 | WX_ALL_INSTALLED="preinstall_gl" | |
10666 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10667 | else | |
10668 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10669 | fi | |
10f2d63a | 10670 | ;; |
b12915c1 | 10671 | *-*-mingw32* ) |
10f2d63a | 10672 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10673 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10674 | if test "$wxUSE_OPENGL" = "yes"; then |
10675 | WX_ALL_INSTALLED="preinstall_gl" | |
10676 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10677 | else | |
10678 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10679 | fi | |
10f2d63a VZ |
10680 | ;; |
10681 | *-pc-os2_emx ) | |
e07802fc VZ |
10682 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
10683 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 10684 | ;; |
b12915c1 | 10685 | *-*-beos* ) |
e2b8b066 | 10686 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
10687 | PIC_FLAG="-fPIC" |
10688 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10689 | WX_ALL="CREATE_LINKS" | |
10690 | ;; | |
10f2d63a | 10691 | *) |
698dcdb6 | 10692 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
10693 | esac |
10694 | ||
10695 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
10696 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 10697 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 10698 | fi |
3711412e | 10699 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
10700 | else |
10701 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 10702 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10703 | |
10704 | if test "$wxUSE_OPENGL" = "yes"; then | |
10705 | WX_ALL_INSTALLED="preinstall_gl" | |
10706 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10707 | else | |
10708 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10709 | fi | |
10710 | ||
10711 | if test "$wxUSE_GUI" = "no"; then | |
10712 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
10713 | fi | |
10714 | ||
3711412e | 10715 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
10716 | fi |
10717 | ||
698dcdb6 VZ |
10718 | |
10719 | for ac_hdr in strings.h | |
10f2d63a | 10720 | do |
698dcdb6 VZ |
10721 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10722 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d1a8d972 | 10723 | echo "configure:10724: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10724 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10726 | else | |
10727 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 10728 | #line 10729 "configure" |
10f2d63a | 10729 | #include "confdefs.h" |
698dcdb6 VZ |
10730 | #include <$ac_hdr> |
10731 | EOF | |
10732 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 10733 | { (eval echo configure:10734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10734 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10735 | if test -z "$ac_err"; then | |
10736 | rm -rf conftest* | |
10737 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10738 | else |
698dcdb6 VZ |
10739 | echo "$ac_err" >&5 |
10740 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10741 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10742 | rm -rf conftest* |
10743 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10744 | fi |
698dcdb6 | 10745 | rm -f conftest* |
10f2d63a | 10746 | fi |
698dcdb6 VZ |
10747 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10748 | echo "$ac_t""yes" 1>&6 | |
10749 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10750 | cat >> confdefs.h <<EOF | |
10751 | #define $ac_tr_hdr 1 | |
10f2d63a | 10752 | EOF |
698dcdb6 VZ |
10753 | |
10754 | else | |
10755 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10756 | fi |
10757 | done | |
10758 | ||
698dcdb6 | 10759 | for ac_hdr in stdlib.h |
9cfadba2 | 10760 | do |
698dcdb6 VZ |
10761 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10762 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d1a8d972 | 10763 | echo "configure:10764: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10764 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10766 | else | |
10767 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 10768 | #line 10769 "configure" |
9cfadba2 | 10769 | #include "confdefs.h" |
698dcdb6 VZ |
10770 | #include <$ac_hdr> |
10771 | EOF | |
10772 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 10773 | { (eval echo configure:10774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10774 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10775 | if test -z "$ac_err"; then | |
10776 | rm -rf conftest* | |
10777 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10778 | else |
698dcdb6 VZ |
10779 | echo "$ac_err" >&5 |
10780 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 10781 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10782 | rm -rf conftest* |
10783 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 10784 | fi |
698dcdb6 | 10785 | rm -f conftest* |
9cfadba2 | 10786 | fi |
698dcdb6 VZ |
10787 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10788 | echo "$ac_t""yes" 1>&6 | |
10789 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10790 | cat >> confdefs.h <<EOF | |
10791 | #define $ac_tr_hdr 1 | |
9cfadba2 | 10792 | EOF |
698dcdb6 VZ |
10793 | |
10794 | else | |
10795 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
10796 | fi |
10797 | done | |
10f2d63a | 10798 | |
698dcdb6 | 10799 | for ac_hdr in unistd.h |
10f2d63a | 10800 | do |
698dcdb6 VZ |
10801 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10802 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d1a8d972 | 10803 | echo "configure:10804: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10804 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10805 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10806 | else | |
10807 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 10808 | #line 10809 "configure" |
10f2d63a | 10809 | #include "confdefs.h" |
698dcdb6 VZ |
10810 | #include <$ac_hdr> |
10811 | EOF | |
10812 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 10813 | { (eval echo configure:10814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10814 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10815 | if test -z "$ac_err"; then | |
10816 | rm -rf conftest* | |
10817 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10818 | else |
698dcdb6 VZ |
10819 | echo "$ac_err" >&5 |
10820 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10821 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10822 | rm -rf conftest* |
10823 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10824 | fi |
698dcdb6 | 10825 | rm -f conftest* |
10f2d63a | 10826 | fi |
698dcdb6 VZ |
10827 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10828 | echo "$ac_t""yes" 1>&6 | |
10829 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10830 | cat >> confdefs.h <<EOF | |
10831 | #define $ac_tr_hdr 1 | |
10f2d63a | 10832 | EOF |
698dcdb6 VZ |
10833 | |
10834 | else | |
10835 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10836 | fi |
10837 | done | |
10838 | ||
698dcdb6 | 10839 | for ac_hdr in wchar.h |
10f2d63a | 10840 | do |
698dcdb6 VZ |
10841 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10842 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d1a8d972 | 10843 | echo "configure:10844: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10844 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10845 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10846 | else | |
10847 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 10848 | #line 10849 "configure" |
10f2d63a | 10849 | #include "confdefs.h" |
698dcdb6 VZ |
10850 | #include <$ac_hdr> |
10851 | EOF | |
10852 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 10853 | { (eval echo configure:10854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10854 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10855 | if test -z "$ac_err"; then | |
10856 | rm -rf conftest* | |
10857 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 10858 | else |
698dcdb6 VZ |
10859 | echo "$ac_err" >&5 |
10860 | echo "configure: failed program was:" >&5 | |
6f72b082 | 10861 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10862 | rm -rf conftest* |
10863 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 10864 | fi |
698dcdb6 | 10865 | rm -f conftest* |
6f72b082 | 10866 | fi |
698dcdb6 VZ |
10867 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10868 | echo "$ac_t""yes" 1>&6 | |
10869 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10870 | cat >> confdefs.h <<EOF | |
10871 | #define $ac_tr_hdr 1 | |
6f72b082 | 10872 | EOF |
698dcdb6 VZ |
10873 | |
10874 | else | |
10875 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
10876 | fi |
10877 | done | |
10878 | ||
698dcdb6 | 10879 | for ac_hdr in wcstr.h |
6f72b082 | 10880 | do |
698dcdb6 VZ |
10881 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10882 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d1a8d972 | 10883 | echo "configure:10884: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10884 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10885 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10886 | else | |
10887 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 10888 | #line 10889 "configure" |
6f72b082 | 10889 | #include "confdefs.h" |
698dcdb6 VZ |
10890 | #include <$ac_hdr> |
10891 | EOF | |
10892 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 10893 | { (eval echo configure:10894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10894 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10895 | if test -z "$ac_err"; then | |
10896 | rm -rf conftest* | |
10897 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 10898 | else |
698dcdb6 VZ |
10899 | echo "$ac_err" >&5 |
10900 | echo "configure: failed program was:" >&5 | |
6f72b082 | 10901 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10902 | rm -rf conftest* |
10903 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 10904 | fi |
698dcdb6 | 10905 | rm -f conftest* |
6f72b082 | 10906 | fi |
698dcdb6 VZ |
10907 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10908 | echo "$ac_t""yes" 1>&6 | |
10909 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10910 | cat >> confdefs.h <<EOF | |
10911 | #define $ac_tr_hdr 1 | |
6f72b082 | 10912 | EOF |
698dcdb6 VZ |
10913 | |
10914 | else | |
10915 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
10916 | fi |
10917 | done | |
10918 | ||
698dcdb6 | 10919 | for ac_hdr in fnmatch.h |
6f72b082 | 10920 | do |
698dcdb6 VZ |
10921 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10922 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d1a8d972 | 10923 | echo "configure:10924: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10924 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10925 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10926 | else | |
10927 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 10928 | #line 10929 "configure" |
6f72b082 | 10929 | #include "confdefs.h" |
698dcdb6 VZ |
10930 | #include <$ac_hdr> |
10931 | EOF | |
10932 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 10933 | { (eval echo configure:10934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10934 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10935 | if test -z "$ac_err"; then | |
10936 | rm -rf conftest* | |
10937 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10938 | else |
698dcdb6 VZ |
10939 | echo "$ac_err" >&5 |
10940 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10941 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10942 | rm -rf conftest* |
10943 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10944 | fi |
698dcdb6 | 10945 | rm -f conftest* |
10f2d63a | 10946 | fi |
698dcdb6 VZ |
10947 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10948 | echo "$ac_t""yes" 1>&6 | |
10949 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10950 | cat >> confdefs.h <<EOF | |
10951 | #define $ac_tr_hdr 1 | |
10f2d63a | 10952 | EOF |
698dcdb6 VZ |
10953 | |
10954 | else | |
10955 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10956 | fi |
10957 | done | |
10958 | ||
698dcdb6 | 10959 | for ac_hdr in iconv.h |
0fb0dd83 | 10960 | do |
698dcdb6 VZ |
10961 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10962 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d1a8d972 | 10963 | echo "configure:10964: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10964 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10965 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10966 | else | |
10967 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 10968 | #line 10969 "configure" |
0fb0dd83 | 10969 | #include "confdefs.h" |
698dcdb6 VZ |
10970 | #include <$ac_hdr> |
10971 | EOF | |
10972 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 10973 | { (eval echo configure:10974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10974 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10975 | if test -z "$ac_err"; then | |
10976 | rm -rf conftest* | |
10977 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 10978 | else |
698dcdb6 VZ |
10979 | echo "$ac_err" >&5 |
10980 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 10981 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10982 | rm -rf conftest* |
10983 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 10984 | fi |
698dcdb6 | 10985 | rm -f conftest* |
0fb0dd83 | 10986 | fi |
698dcdb6 VZ |
10987 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10988 | echo "$ac_t""yes" 1>&6 | |
10989 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10990 | cat >> confdefs.h <<EOF | |
10991 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 10992 | EOF |
698dcdb6 VZ |
10993 | |
10994 | else | |
10995 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
10996 | fi |
10997 | done | |
10998 | ||
698dcdb6 | 10999 | for ac_hdr in langinfo.h |
1f8ae82f | 11000 | do |
698dcdb6 VZ |
11001 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11002 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d1a8d972 | 11003 | echo "configure:11004: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11004 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11005 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11006 | else | |
11007 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 11008 | #line 11009 "configure" |
1f8ae82f | 11009 | #include "confdefs.h" |
698dcdb6 VZ |
11010 | #include <$ac_hdr> |
11011 | EOF | |
11012 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 11013 | { (eval echo configure:11014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11014 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11015 | if test -z "$ac_err"; then | |
11016 | rm -rf conftest* | |
11017 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 11018 | else |
698dcdb6 VZ |
11019 | echo "$ac_err" >&5 |
11020 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 11021 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11022 | rm -rf conftest* |
11023 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 11024 | fi |
698dcdb6 | 11025 | rm -f conftest* |
1f8ae82f | 11026 | fi |
698dcdb6 VZ |
11027 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11028 | echo "$ac_t""yes" 1>&6 | |
11029 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11030 | cat >> confdefs.h <<EOF | |
11031 | #define $ac_tr_hdr 1 | |
1f8ae82f | 11032 | EOF |
698dcdb6 VZ |
11033 | |
11034 | else | |
11035 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
11036 | fi |
11037 | done | |
11038 | ||
698dcdb6 | 11039 | |
73fd4a60 VZ |
11040 | if test "$wxUSE_GUI" = "yes"; then |
11041 | if test "$wxUSE_UNIX" = "yes"; then | |
698dcdb6 | 11042 | for ac_hdr in X11/XKBlib.h |
10f2d63a | 11043 | do |
698dcdb6 VZ |
11044 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11045 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d1a8d972 | 11046 | echo "configure:11047: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
11047 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11049 | else | |
11050 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 11051 | #line 11052 "configure" |
10f2d63a | 11052 | #include "confdefs.h" |
698dcdb6 VZ |
11053 | #include <$ac_hdr> |
11054 | EOF | |
11055 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 11056 | { (eval echo configure:11057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11057 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11058 | if test -z "$ac_err"; then | |
11059 | rm -rf conftest* | |
11060 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11061 | else |
698dcdb6 VZ |
11062 | echo "$ac_err" >&5 |
11063 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11064 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11065 | rm -rf conftest* |
11066 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11067 | fi |
698dcdb6 | 11068 | rm -f conftest* |
10f2d63a | 11069 | fi |
698dcdb6 VZ |
11070 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11071 | echo "$ac_t""yes" 1>&6 | |
11072 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11073 | cat >> confdefs.h <<EOF | |
11074 | #define $ac_tr_hdr 1 | |
10f2d63a | 11075 | EOF |
698dcdb6 VZ |
11076 | |
11077 | else | |
11078 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11079 | fi |
11080 | done | |
11081 | ||
73fd4a60 | 11082 | fi |
10f2d63a VZ |
11083 | fi |
11084 | ||
698dcdb6 VZ |
11085 | |
11086 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
d1a8d972 | 11087 | echo "configure:11088: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
11088 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
11089 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11090 | else |
698dcdb6 | 11091 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11092 | #line 11093 "configure" |
10f2d63a VZ |
11093 | #include "confdefs.h" |
11094 | #include <stdlib.h> | |
11095 | #include <stdarg.h> | |
11096 | #include <string.h> | |
11097 | #include <float.h> | |
698dcdb6 VZ |
11098 | EOF |
11099 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 11100 | { (eval echo configure:11101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11101 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11102 | if test -z "$ac_err"; then | |
11103 | rm -rf conftest* | |
10f2d63a VZ |
11104 | ac_cv_header_stdc=yes |
11105 | else | |
698dcdb6 VZ |
11106 | echo "$ac_err" >&5 |
11107 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11108 | cat conftest.$ac_ext >&5 |
698dcdb6 | 11109 | rm -rf conftest* |
10f2d63a VZ |
11110 | ac_cv_header_stdc=no |
11111 | fi | |
698dcdb6 | 11112 | rm -f conftest* |
10f2d63a VZ |
11113 | |
11114 | if test $ac_cv_header_stdc = yes; then | |
11115 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 11116 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11117 | #line 11118 "configure" |
10f2d63a VZ |
11118 | #include "confdefs.h" |
11119 | #include <string.h> | |
698dcdb6 | 11120 | EOF |
10f2d63a VZ |
11121 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11122 | egrep "memchr" >/dev/null 2>&1; then | |
11123 | : | |
11124 | else | |
698dcdb6 | 11125 | rm -rf conftest* |
10f2d63a VZ |
11126 | ac_cv_header_stdc=no |
11127 | fi | |
11128 | rm -f conftest* | |
11129 | ||
11130 | fi | |
11131 | ||
11132 | if test $ac_cv_header_stdc = yes; then | |
11133 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 11134 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11135 | #line 11136 "configure" |
10f2d63a VZ |
11136 | #include "confdefs.h" |
11137 | #include <stdlib.h> | |
698dcdb6 | 11138 | EOF |
10f2d63a VZ |
11139 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11140 | egrep "free" >/dev/null 2>&1; then | |
11141 | : | |
11142 | else | |
698dcdb6 | 11143 | rm -rf conftest* |
10f2d63a VZ |
11144 | ac_cv_header_stdc=no |
11145 | fi | |
11146 | rm -f conftest* | |
11147 | ||
11148 | fi | |
11149 | ||
11150 | if test $ac_cv_header_stdc = yes; then | |
11151 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 11152 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
11153 | : |
11154 | else | |
698dcdb6 | 11155 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11156 | #line 11157 "configure" |
10f2d63a VZ |
11157 | #include "confdefs.h" |
11158 | #include <ctype.h> | |
698dcdb6 VZ |
11159 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
11160 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 11161 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
11162 | int main () { int i; for (i = 0; i < 256; i++) |
11163 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
11164 | exit (0); } | |
11165 | ||
11166 | EOF | |
d1a8d972 | 11167 | if { (eval echo configure:11168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11168 | then |
10f2d63a VZ |
11169 | : |
11170 | else | |
698dcdb6 VZ |
11171 | echo "configure: failed program was:" >&5 |
11172 | cat conftest.$ac_ext >&5 | |
11173 | rm -fr conftest* | |
11174 | ac_cv_header_stdc=no | |
10f2d63a | 11175 | fi |
698dcdb6 | 11176 | rm -fr conftest* |
10f2d63a | 11177 | fi |
698dcdb6 | 11178 | |
10f2d63a VZ |
11179 | fi |
11180 | fi | |
1e487827 | 11181 | |
698dcdb6 VZ |
11182 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
11183 | if test $ac_cv_header_stdc = yes; then | |
11184 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11185 | #define STDC_HEADERS 1 |
11186 | EOF | |
11187 | ||
11188 | fi | |
11189 | ||
698dcdb6 | 11190 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
d1a8d972 | 11191 | echo "configure:11192: checking for mode_t" >&5 |
698dcdb6 VZ |
11192 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
11193 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11194 | else |
698dcdb6 | 11195 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11196 | #line 11197 "configure" |
1e487827 | 11197 | #include "confdefs.h" |
698dcdb6 VZ |
11198 | #include <sys/types.h> |
11199 | #if STDC_HEADERS | |
11200 | #include <stdlib.h> | |
11201 | #include <stddef.h> | |
11202 | #endif | |
11203 | EOF | |
11204 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11205 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11206 | rm -rf conftest* | |
10f2d63a VZ |
11207 | ac_cv_type_mode_t=yes |
11208 | else | |
698dcdb6 VZ |
11209 | rm -rf conftest* |
11210 | ac_cv_type_mode_t=no | |
703e0a69 | 11211 | fi |
698dcdb6 | 11212 | rm -f conftest* |
1e487827 | 11213 | |
698dcdb6 VZ |
11214 | fi |
11215 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
11216 | if test $ac_cv_type_mode_t = no; then | |
11217 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11218 | #define mode_t int |
11219 | EOF | |
11220 | ||
11221 | fi | |
11222 | ||
698dcdb6 | 11223 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
d1a8d972 | 11224 | echo "configure:11225: checking for off_t" >&5 |
698dcdb6 VZ |
11225 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
11226 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11227 | else |
698dcdb6 | 11228 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11229 | #line 11230 "configure" |
10f2d63a | 11230 | #include "confdefs.h" |
698dcdb6 VZ |
11231 | #include <sys/types.h> |
11232 | #if STDC_HEADERS | |
11233 | #include <stdlib.h> | |
11234 | #include <stddef.h> | |
11235 | #endif | |
11236 | EOF | |
11237 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11238 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11239 | rm -rf conftest* | |
10f2d63a VZ |
11240 | ac_cv_type_off_t=yes |
11241 | else | |
698dcdb6 VZ |
11242 | rm -rf conftest* |
11243 | ac_cv_type_off_t=no | |
703e0a69 | 11244 | fi |
698dcdb6 | 11245 | rm -f conftest* |
1e487827 | 11246 | |
698dcdb6 VZ |
11247 | fi |
11248 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
11249 | if test $ac_cv_type_off_t = no; then | |
11250 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11251 | #define off_t long |
11252 | EOF | |
11253 | ||
11254 | fi | |
11255 | ||
698dcdb6 | 11256 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
d1a8d972 | 11257 | echo "configure:11258: checking for pid_t" >&5 |
698dcdb6 VZ |
11258 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
11259 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11260 | else |
698dcdb6 | 11261 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11262 | #line 11263 "configure" |
10f2d63a | 11263 | #include "confdefs.h" |
698dcdb6 VZ |
11264 | #include <sys/types.h> |
11265 | #if STDC_HEADERS | |
11266 | #include <stdlib.h> | |
11267 | #include <stddef.h> | |
11268 | #endif | |
11269 | EOF | |
11270 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11271 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11272 | rm -rf conftest* | |
10f2d63a VZ |
11273 | ac_cv_type_pid_t=yes |
11274 | else | |
698dcdb6 VZ |
11275 | rm -rf conftest* |
11276 | ac_cv_type_pid_t=no | |
703e0a69 | 11277 | fi |
698dcdb6 | 11278 | rm -f conftest* |
1e487827 | 11279 | |
698dcdb6 VZ |
11280 | fi |
11281 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
11282 | if test $ac_cv_type_pid_t = no; then | |
11283 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11284 | #define pid_t int |
11285 | EOF | |
11286 | ||
11287 | fi | |
11288 | ||
698dcdb6 | 11289 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
d1a8d972 | 11290 | echo "configure:11291: checking for size_t" >&5 |
698dcdb6 VZ |
11291 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
11292 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11293 | else |
698dcdb6 | 11294 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11295 | #line 11296 "configure" |
10f2d63a | 11296 | #include "confdefs.h" |
698dcdb6 VZ |
11297 | #include <sys/types.h> |
11298 | #if STDC_HEADERS | |
11299 | #include <stdlib.h> | |
11300 | #include <stddef.h> | |
11301 | #endif | |
11302 | EOF | |
11303 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11304 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11305 | rm -rf conftest* | |
10f2d63a VZ |
11306 | ac_cv_type_size_t=yes |
11307 | else | |
698dcdb6 VZ |
11308 | rm -rf conftest* |
11309 | ac_cv_type_size_t=no | |
703e0a69 | 11310 | fi |
698dcdb6 | 11311 | rm -f conftest* |
1e487827 | 11312 | |
698dcdb6 VZ |
11313 | fi |
11314 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
11315 | if test $ac_cv_type_size_t = no; then | |
11316 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11317 | #define size_t unsigned |
11318 | EOF | |
11319 | ||
11320 | fi | |
11321 | ||
698dcdb6 | 11322 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
d1a8d972 | 11323 | echo "configure:11324: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
11324 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
11325 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11326 | else |
698dcdb6 | 11327 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11328 | #line 11329 "configure" |
10f2d63a VZ |
11329 | #include "confdefs.h" |
11330 | #include <sys/types.h> | |
698dcdb6 | 11331 | EOF |
10f2d63a VZ |
11332 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11333 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 11334 | rm -rf conftest* |
10f2d63a VZ |
11335 | ac_cv_type_uid_t=yes |
11336 | else | |
698dcdb6 | 11337 | rm -rf conftest* |
10f2d63a VZ |
11338 | ac_cv_type_uid_t=no |
11339 | fi | |
11340 | rm -f conftest* | |
11341 | ||
11342 | fi | |
1e487827 | 11343 | |
698dcdb6 VZ |
11344 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
11345 | if test $ac_cv_type_uid_t = no; then | |
11346 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11347 | #define uid_t int |
11348 | EOF | |
11349 | ||
698dcdb6 | 11350 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11351 | #define gid_t int |
11352 | EOF | |
11353 | ||
11354 | fi | |
11355 | ||
1e487827 | 11356 | |
698dcdb6 | 11357 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
d1a8d972 | 11358 | echo "configure:11359: checking for wchar_t" >&5 |
698dcdb6 VZ |
11359 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
11360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11361 | else | |
11362 | ||
11363 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 11364 | #line 11365 "configure" |
0046ff7c VS |
11365 | #include "confdefs.h" |
11366 | #include <wchar.h> | |
698dcdb6 | 11367 | int main() { |
0046ff7c | 11368 | |
d836ee96 VZ |
11369 | wchar_t wc, *ws; |
11370 | wc = L'a'; | |
11371 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11372 | |
11373 | ; return 0; } | |
11374 | EOF | |
d1a8d972 | 11375 | if { (eval echo configure:11376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11376 | rm -rf conftest* |
1f8ae82f GD |
11377 | wx_cv_type_wchar_t=yes |
11378 | else | |
698dcdb6 VZ |
11379 | echo "configure: failed program was:" >&5 |
11380 | cat conftest.$ac_ext >&5 | |
11381 | rm -rf conftest* | |
11382 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 11383 | #line 11384 "configure" |
1f8ae82f GD |
11384 | #include "confdefs.h" |
11385 | #include <stdlib.h> | |
698dcdb6 | 11386 | int main() { |
1f8ae82f | 11387 | |
d836ee96 VZ |
11388 | wchar_t wc, *ws; |
11389 | wc = L'a'; | |
11390 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11391 | |
11392 | ; return 0; } | |
11393 | EOF | |
d1a8d972 | 11394 | if { (eval echo configure:11395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11395 | rm -rf conftest* |
0046ff7c VS |
11396 | wx_cv_type_wchar_t=yes |
11397 | else | |
698dcdb6 VZ |
11398 | echo "configure: failed program was:" >&5 |
11399 | cat conftest.$ac_ext >&5 | |
11400 | rm -rf conftest* | |
11401 | wx_cv_type_wchar_t=no | |
0046ff7c | 11402 | fi |
698dcdb6 | 11403 | rm -f conftest* |
d836ee96 | 11404 | |
6232543b | 11405 | fi |
698dcdb6 | 11406 | rm -f conftest* |
703e0a69 | 11407 | |
1e487827 | 11408 | fi |
698dcdb6 VZ |
11409 | |
11410 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
11411 | |
11412 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 11413 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
11414 | #define wxUSE_WCHAR_T 1 |
11415 | EOF | |
11416 | ||
11417 | fi | |
11418 | ||
19af3b06 VZ |
11419 | |
11420 | ac_ext=C | |
11421 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11422 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11423 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11424 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11425 | cross_compiling=$ac_cv_prog_cxx_cross | |
11426 | ||
d836ee96 | 11427 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
d1a8d972 | 11428 | echo "configure:11429: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
11429 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
11430 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11431 | else | |
dd2c8b7c | 11432 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11433 | #line 11434 "configure" |
d836ee96 VZ |
11434 | #include "confdefs.h" |
11435 | #include <stddef.h> | |
11436 | int main() { | |
11437 | ||
dd2c8b7c VZ |
11438 | return 0; } |
11439 | ||
d836ee96 | 11440 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
11441 | |
11442 | int bar() { | |
d836ee96 VZ |
11443 | |
11444 | ; return 0; } | |
11445 | EOF | |
d1a8d972 | 11446 | if { (eval echo configure:11447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11447 | rm -rf conftest* |
11448 | wx_cv_size_t_is_uint=no | |
11449 | else | |
11450 | echo "configure: failed program was:" >&5 | |
11451 | cat conftest.$ac_ext >&5 | |
11452 | rm -rf conftest* | |
11453 | wx_cv_size_t_is_uint=yes | |
11454 | ||
11455 | fi | |
11456 | rm -f conftest* | |
11457 | ||
11458 | fi | |
11459 | ||
11460 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
11461 | ||
11462 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
11463 | cat >> confdefs.h <<\EOF | |
11464 | #define wxSIZE_T_IS_UINT 1 | |
11465 | EOF | |
11466 | ||
11467 | else | |
11468 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
d1a8d972 | 11469 | echo "configure:11470: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
11470 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
11471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11472 | else | |
11473 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 11474 | #line 11475 "configure" |
d836ee96 VZ |
11475 | #include "confdefs.h" |
11476 | #include <stddef.h> | |
11477 | int main() { | |
11478 | ||
dd2c8b7c VZ |
11479 | return 0; } |
11480 | ||
d836ee96 | 11481 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
11482 | |
11483 | int bar() { | |
d836ee96 VZ |
11484 | |
11485 | ; return 0; } | |
11486 | EOF | |
d1a8d972 | 11487 | if { (eval echo configure:11488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11488 | rm -rf conftest* |
11489 | wx_cv_size_t_is_ulong=no | |
11490 | else | |
11491 | echo "configure: failed program was:" >&5 | |
11492 | cat conftest.$ac_ext >&5 | |
11493 | rm -rf conftest* | |
11494 | wx_cv_size_t_is_ulong=yes | |
11495 | ||
11496 | fi | |
11497 | rm -f conftest* | |
11498 | ||
11499 | fi | |
11500 | ||
11501 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
11502 | ||
11503 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
11504 | cat >> confdefs.h <<\EOF | |
11505 | #define wxSIZE_T_IS_ULONG 1 | |
11506 | EOF | |
11507 | ||
11508 | fi | |
11509 | fi | |
11510 | ||
19af3b06 VZ |
11511 | ac_ext=c |
11512 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11513 | ac_cpp='$CPP $CPPFLAGS' | |
11514 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11515 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11516 | cross_compiling=$ac_cv_prog_cc_cross | |
11517 | ||
11518 | ||
1e487827 | 11519 | |
698dcdb6 | 11520 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
d1a8d972 | 11521 | echo "configure:11522: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
11522 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
11523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11524 | else | |
11525 | ||
11526 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 11527 | #line 11528 "configure" |
b12915c1 VZ |
11528 | #include "confdefs.h" |
11529 | #include <pwd.h> | |
698dcdb6 | 11530 | int main() { |
b12915c1 VZ |
11531 | |
11532 | char *p; | |
11533 | struct passwd *pw; | |
11534 | p = pw->pw_gecos; | |
698dcdb6 VZ |
11535 | |
11536 | ; return 0; } | |
11537 | EOF | |
d1a8d972 | 11538 | if { (eval echo configure:11539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11539 | rm -rf conftest* |
11540 | ||
b12915c1 | 11541 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 11542 | |
b12915c1 | 11543 | else |
698dcdb6 VZ |
11544 | echo "configure: failed program was:" >&5 |
11545 | cat conftest.$ac_ext >&5 | |
11546 | rm -rf conftest* | |
11547 | ||
b12915c1 | 11548 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
11549 | |
11550 | ||
6232543b | 11551 | fi |
698dcdb6 VZ |
11552 | rm -f conftest* |
11553 | ||
703e0a69 | 11554 | |
1e487827 | 11555 | fi |
698dcdb6 VZ |
11556 | |
11557 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 11558 | |
bd3277fe | 11559 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 11560 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
11561 | #define HAVE_PW_GECOS 1 |
11562 | EOF | |
11563 | ||
11564 | fi | |
11565 | ||
698dcdb6 VZ |
11566 | |
11567 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
d1a8d972 | 11568 | echo "configure:11569: checking for working const" >&5 |
698dcdb6 VZ |
11569 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
11570 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11571 | else |
698dcdb6 | 11572 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11573 | #line 11574 "configure" |
10f2d63a | 11574 | #include "confdefs.h" |
698dcdb6 VZ |
11575 | |
11576 | int main() { | |
11577 | ||
11578 | /* Ultrix mips cc rejects this. */ | |
11579 | typedef int charset[2]; const charset x; | |
11580 | /* SunOS 4.1.1 cc rejects this. */ | |
11581 | char const *const *ccp; | |
11582 | char **p; | |
11583 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11584 | struct point {int x, y;}; | |
11585 | static struct point const zero = {0,0}; | |
11586 | /* AIX XL C 1.02.0.0 rejects this. | |
11587 | It does not let you subtract one const X* pointer from another in an arm | |
11588 | of an if-expression whose if-part is not a constant expression */ | |
11589 | const char *g = "string"; | |
11590 | ccp = &g + (g ? g-g : 0); | |
11591 | /* HPUX 7.0 cc rejects these. */ | |
11592 | ++ccp; | |
11593 | p = (char**) ccp; | |
11594 | ccp = (char const *const *) p; | |
11595 | { /* SCO 3.2v4 cc rejects this. */ | |
11596 | char *t; | |
11597 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11598 | ||
11599 | *t++ = 0; | |
10f2d63a | 11600 | } |
698dcdb6 VZ |
11601 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
11602 | int x[] = {25, 17}; | |
11603 | const int *foo = &x[0]; | |
11604 | ++foo; | |
703e0a69 | 11605 | } |
698dcdb6 VZ |
11606 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
11607 | typedef const int *iptr; | |
11608 | iptr p = 0; | |
11609 | ++p; | |
6232543b | 11610 | } |
698dcdb6 VZ |
11611 | { /* AIX XL C 1.02.0.0 rejects this saying |
11612 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11613 | struct s { int j; const int *ap[3]; }; | |
11614 | struct s *b; b->j = 5; | |
1e487827 | 11615 | } |
698dcdb6 VZ |
11616 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
11617 | const int foo = 10; | |
11618 | } | |
11619 | ||
11620 | ; return 0; } | |
11621 | EOF | |
d1a8d972 | 11622 | if { (eval echo configure:11623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11623 | rm -rf conftest* |
10f2d63a VZ |
11624 | ac_cv_c_const=yes |
11625 | else | |
698dcdb6 VZ |
11626 | echo "configure: failed program was:" >&5 |
11627 | cat conftest.$ac_ext >&5 | |
11628 | rm -rf conftest* | |
11629 | ac_cv_c_const=no | |
10f2d63a | 11630 | fi |
698dcdb6 | 11631 | rm -f conftest* |
10f2d63a | 11632 | fi |
1e487827 | 11633 | |
698dcdb6 VZ |
11634 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
11635 | if test $ac_cv_c_const = no; then | |
11636 | cat >> confdefs.h <<\EOF | |
11637 | #define const | |
10f2d63a VZ |
11638 | EOF |
11639 | ||
11640 | fi | |
11641 | ||
698dcdb6 | 11642 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
d1a8d972 | 11643 | echo "configure:11644: checking for inline" >&5 |
698dcdb6 VZ |
11644 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
11645 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11646 | else |
11647 | ac_cv_c_inline=no | |
11648 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 11649 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11650 | #line 11651 "configure" |
10f2d63a VZ |
11651 | #include "confdefs.h" |
11652 | ||
698dcdb6 VZ |
11653 | int main() { |
11654 | } $ac_kw foo() { | |
11655 | ; return 0; } | |
11656 | EOF | |
d1a8d972 | 11657 | if { (eval echo configure:11658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11658 | rm -rf conftest* |
10f2d63a VZ |
11659 | ac_cv_c_inline=$ac_kw; break |
11660 | else | |
698dcdb6 VZ |
11661 | echo "configure: failed program was:" >&5 |
11662 | cat conftest.$ac_ext >&5 | |
10f2d63a | 11663 | fi |
698dcdb6 | 11664 | rm -f conftest* |
10f2d63a VZ |
11665 | done |
11666 | ||
11667 | fi | |
698dcdb6 VZ |
11668 | |
11669 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
11670 | case "$ac_cv_c_inline" in | |
10f2d63a | 11671 | inline | yes) ;; |
698dcdb6 VZ |
11672 | no) cat >> confdefs.h <<\EOF |
11673 | #define inline | |
10f2d63a VZ |
11674 | EOF |
11675 | ;; | |
698dcdb6 | 11676 | *) cat >> confdefs.h <<EOF |
10f2d63a VZ |
11677 | #define inline $ac_cv_c_inline |
11678 | EOF | |
11679 | ;; | |
11680 | esac | |
11681 | ||
698dcdb6 VZ |
11682 | |
11683 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
d1a8d972 | 11684 | echo "configure:11685: checking size of char" >&5 |
698dcdb6 VZ |
11685 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
11686 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b | 11687 | else |
1e487827 | 11688 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11689 | ac_cv_sizeof_char=1 |
1e487827 | 11690 | else |
698dcdb6 | 11691 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11692 | #line 11693 "configure" |
1e487827 | 11693 | #include "confdefs.h" |
698dcdb6 VZ |
11694 | #include <stdio.h> |
11695 | main() | |
1e487827 | 11696 | { |
698dcdb6 VZ |
11697 | FILE *f=fopen("conftestval", "w"); |
11698 | if (!f) exit(1); | |
11699 | fprintf(f, "%d\n", sizeof(char)); | |
11700 | exit(0); | |
1e487827 | 11701 | } |
698dcdb6 | 11702 | EOF |
d1a8d972 | 11703 | if { (eval echo configure:11704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11704 | then |
11705 | ac_cv_sizeof_char=`cat conftestval` | |
1e487827 | 11706 | else |
698dcdb6 VZ |
11707 | echo "configure: failed program was:" >&5 |
11708 | cat conftest.$ac_ext >&5 | |
11709 | rm -fr conftest* | |
1e487827 VS |
11710 | ac_cv_sizeof_char=0 |
11711 | fi | |
698dcdb6 | 11712 | rm -fr conftest* |
1e487827 | 11713 | fi |
10f2d63a | 11714 | |
1e487827 | 11715 | fi |
698dcdb6 VZ |
11716 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
11717 | cat >> confdefs.h <<EOF | |
11718 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
1e487827 | 11719 | EOF |
6232543b | 11720 | |
703e0a69 | 11721 | |
698dcdb6 | 11722 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
d1a8d972 | 11723 | echo "configure:11724: checking size of short" >&5 |
698dcdb6 VZ |
11724 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
11725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11726 | else |
1e487827 | 11727 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11728 | ac_cv_sizeof_short=2 |
1e487827 | 11729 | else |
698dcdb6 | 11730 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11731 | #line 11732 "configure" |
1e487827 | 11732 | #include "confdefs.h" |
698dcdb6 VZ |
11733 | #include <stdio.h> |
11734 | main() | |
1e487827 | 11735 | { |
698dcdb6 VZ |
11736 | FILE *f=fopen("conftestval", "w"); |
11737 | if (!f) exit(1); | |
11738 | fprintf(f, "%d\n", sizeof(short)); | |
11739 | exit(0); | |
1e487827 | 11740 | } |
698dcdb6 | 11741 | EOF |
d1a8d972 | 11742 | if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11743 | then |
11744 | ac_cv_sizeof_short=`cat conftestval` | |
1e487827 | 11745 | else |
698dcdb6 VZ |
11746 | echo "configure: failed program was:" >&5 |
11747 | cat conftest.$ac_ext >&5 | |
11748 | rm -fr conftest* | |
11749 | ac_cv_sizeof_short=0 | |
1e487827 | 11750 | fi |
698dcdb6 | 11751 | rm -fr conftest* |
1e487827 | 11752 | fi |
698dcdb6 | 11753 | |
1e487827 | 11754 | fi |
698dcdb6 VZ |
11755 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
11756 | cat >> confdefs.h <<EOF | |
11757 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
11758 | EOF | |
11759 | ||
11760 | ||
11761 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
d1a8d972 | 11762 | echo "configure:11763: checking size of int *" >&5 |
698dcdb6 VZ |
11763 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
11764 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11765 | else |
11766 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11767 | ac_cv_sizeof_int_p=4 |
10f2d63a | 11768 | else |
698dcdb6 | 11769 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11770 | #line 11771 "configure" |
10f2d63a | 11771 | #include "confdefs.h" |
698dcdb6 VZ |
11772 | #include <stdio.h> |
11773 | main() | |
10f2d63a | 11774 | { |
698dcdb6 VZ |
11775 | FILE *f=fopen("conftestval", "w"); |
11776 | if (!f) exit(1); | |
11777 | fprintf(f, "%d\n", sizeof(int *)); | |
11778 | exit(0); | |
10f2d63a | 11779 | } |
698dcdb6 | 11780 | EOF |
d1a8d972 | 11781 | if { (eval echo configure:11782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11782 | then |
11783 | ac_cv_sizeof_int_p=`cat conftestval` | |
10f2d63a | 11784 | else |
698dcdb6 VZ |
11785 | echo "configure: failed program was:" >&5 |
11786 | cat conftest.$ac_ext >&5 | |
11787 | rm -fr conftest* | |
11788 | ac_cv_sizeof_int_p=0 | |
6232543b | 11789 | fi |
698dcdb6 | 11790 | rm -fr conftest* |
1e487827 | 11791 | fi |
698dcdb6 | 11792 | |
1e487827 | 11793 | fi |
698dcdb6 VZ |
11794 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 |
11795 | cat >> confdefs.h <<EOF | |
11796 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
11797 | EOF |
11798 | ||
698dcdb6 VZ |
11799 | |
11800 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
d1a8d972 | 11801 | echo "configure:11802: checking size of int" >&5 |
698dcdb6 VZ |
11802 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
11803 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11804 | else |
11805 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11806 | ac_cv_sizeof_int=4 |
703e0a69 | 11807 | else |
698dcdb6 | 11808 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11809 | #line 11810 "configure" |
1e487827 | 11810 | #include "confdefs.h" |
698dcdb6 VZ |
11811 | #include <stdio.h> |
11812 | main() | |
1e487827 | 11813 | { |
698dcdb6 VZ |
11814 | FILE *f=fopen("conftestval", "w"); |
11815 | if (!f) exit(1); | |
11816 | fprintf(f, "%d\n", sizeof(int)); | |
11817 | exit(0); | |
1e487827 | 11818 | } |
698dcdb6 | 11819 | EOF |
d1a8d972 | 11820 | if { (eval echo configure:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11821 | then |
11822 | ac_cv_sizeof_int=`cat conftestval` | |
11823 | else | |
11824 | echo "configure: failed program was:" >&5 | |
11825 | cat conftest.$ac_ext >&5 | |
11826 | rm -fr conftest* | |
11827 | ac_cv_sizeof_int=0 | |
703e0a69 | 11828 | fi |
698dcdb6 VZ |
11829 | rm -fr conftest* |
11830 | fi | |
11831 | ||
11832 | fi | |
11833 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
11834 | cat >> confdefs.h <<EOF | |
11835 | #define SIZEOF_INT $ac_cv_sizeof_int | |
11836 | EOF | |
11837 | ||
11838 | ||
11839 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
d1a8d972 | 11840 | echo "configure:11841: checking size of long" >&5 |
698dcdb6 VZ |
11841 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
11842 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11843 | else |
11844 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11845 | ac_cv_sizeof_long=4 |
10f2d63a | 11846 | else |
698dcdb6 | 11847 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11848 | #line 11849 "configure" |
10f2d63a | 11849 | #include "confdefs.h" |
698dcdb6 VZ |
11850 | #include <stdio.h> |
11851 | main() | |
10f2d63a | 11852 | { |
698dcdb6 VZ |
11853 | FILE *f=fopen("conftestval", "w"); |
11854 | if (!f) exit(1); | |
11855 | fprintf(f, "%d\n", sizeof(long)); | |
11856 | exit(0); | |
10f2d63a | 11857 | } |
698dcdb6 | 11858 | EOF |
d1a8d972 | 11859 | if { (eval echo configure:11860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11860 | then |
11861 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 11862 | else |
698dcdb6 VZ |
11863 | echo "configure: failed program was:" >&5 |
11864 | cat conftest.$ac_ext >&5 | |
11865 | rm -fr conftest* | |
11866 | ac_cv_sizeof_long=0 | |
10f2d63a | 11867 | fi |
698dcdb6 | 11868 | rm -fr conftest* |
10f2d63a | 11869 | fi |
698dcdb6 | 11870 | |
10f2d63a | 11871 | fi |
698dcdb6 VZ |
11872 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
11873 | cat >> confdefs.h <<EOF | |
11874 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
11875 | EOF | |
11876 | ||
11877 | ||
11878 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
d1a8d972 | 11879 | echo "configure:11880: checking size of long long" >&5 |
698dcdb6 VZ |
11880 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
11881 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11882 | else | |
11883 | if test "$cross_compiling" = yes; then | |
11884 | ac_cv_sizeof_long_long=0 | |
11885 | else | |
11886 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 11887 | #line 11888 "configure" |
698dcdb6 VZ |
11888 | #include "confdefs.h" |
11889 | #include <stdio.h> | |
11890 | main() | |
11891 | { | |
11892 | FILE *f=fopen("conftestval", "w"); | |
11893 | if (!f) exit(1); | |
11894 | fprintf(f, "%d\n", sizeof(long long)); | |
11895 | exit(0); | |
11896 | } | |
11897 | EOF | |
d1a8d972 | 11898 | if { (eval echo configure:11899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11899 | then |
11900 | ac_cv_sizeof_long_long=`cat conftestval` | |
6232543b | 11901 | else |
698dcdb6 VZ |
11902 | echo "configure: failed program was:" >&5 |
11903 | cat conftest.$ac_ext >&5 | |
11904 | rm -fr conftest* | |
6232543b VS |
11905 | ac_cv_sizeof_long_long=0 |
11906 | fi | |
698dcdb6 VZ |
11907 | rm -fr conftest* |
11908 | fi | |
11909 | ||
703e0a69 | 11910 | fi |
698dcdb6 VZ |
11911 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
11912 | cat >> confdefs.h <<EOF | |
10f2d63a VZ |
11913 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
11914 | EOF | |
11915 | ||
1e487827 | 11916 | |
698dcdb6 VZ |
11917 | |
11918 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
d1a8d972 | 11919 | echo "configure:11920: checking size of wchar_t" >&5 |
698dcdb6 VZ |
11920 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
11921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11922 | else | |
11923 | ||
b93d0d08 VS |
11924 | if test "$cross_compiling" = yes; then |
11925 | wx_cv_sizeof_wchar_t=4 | |
1e6feb95 | 11926 | |
b93d0d08 | 11927 | else |
698dcdb6 | 11928 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11929 | #line 11930 "configure" |
b93d0d08 VS |
11930 | #include "confdefs.h" |
11931 | ||
1e6feb95 VZ |
11932 | #ifdef HAVE_WCHAR_H |
11933 | # include <wchar.h> | |
11934 | #endif | |
11935 | #ifdef HAVE_STDLIB_H | |
11936 | # include <stdlib.h> | |
11937 | #endif | |
11938 | #include <stdio.h> | |
11939 | int main() | |
11940 | { | |
11941 | FILE *f=fopen("conftestval", "w"); | |
11942 | if (!f) exit(1); | |
11943 | fprintf(f, "%i", sizeof(wchar_t)); | |
11944 | exit(0); | |
11945 | } | |
698dcdb6 VZ |
11946 | |
11947 | EOF | |
d1a8d972 | 11948 | if { (eval echo configure:11949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11949 | then |
b93d0d08 VS |
11950 | wx_cv_sizeof_wchar_t=`cat conftestval` |
11951 | else | |
698dcdb6 VZ |
11952 | echo "configure: failed program was:" >&5 |
11953 | cat conftest.$ac_ext >&5 | |
11954 | rm -fr conftest* | |
11955 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 11956 | fi |
698dcdb6 | 11957 | rm -fr conftest* |
b93d0d08 VS |
11958 | fi |
11959 | ||
698dcdb6 | 11960 | |
b93d0d08 VS |
11961 | fi |
11962 | ||
698dcdb6 VZ |
11963 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
11964 | ||
11965 | cat >> confdefs.h <<EOF | |
28c6addc | 11966 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
11967 | EOF |
11968 | ||
698dcdb6 | 11969 | |
698dcdb6 | 11970 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
d1a8d972 | 11971 | echo "configure:11972: checking whether byte ordering is bigendian" >&5 |
698dcdb6 VZ |
11972 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
11973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11974 | else |
11975 | ac_cv_c_bigendian=unknown | |
11976 | # See if sys/param.h defines the BYTE_ORDER macro. | |
698dcdb6 | 11977 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11978 | #line 11979 "configure" |
10f2d63a VZ |
11979 | #include "confdefs.h" |
11980 | #include <sys/types.h> | |
11981 | #include <sys/param.h> | |
698dcdb6 | 11982 | int main() { |
10f2d63a VZ |
11983 | |
11984 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
11985 | bogus endian macros | |
11986 | #endif | |
698dcdb6 VZ |
11987 | ; return 0; } |
11988 | EOF | |
d1a8d972 | 11989 | if { (eval echo configure:11990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11990 | rm -rf conftest* |
10f2d63a | 11991 | # It does; now see whether it defined to BIG_ENDIAN or not. |
698dcdb6 | 11992 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 11993 | #line 11994 "configure" |
10f2d63a VZ |
11994 | #include "confdefs.h" |
11995 | #include <sys/types.h> | |
11996 | #include <sys/param.h> | |
698dcdb6 | 11997 | int main() { |
10f2d63a VZ |
11998 | |
11999 | #if BYTE_ORDER != BIG_ENDIAN | |
12000 | not big endian | |
12001 | #endif | |
698dcdb6 VZ |
12002 | ; return 0; } |
12003 | EOF | |
d1a8d972 | 12004 | if { (eval echo configure:12005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12005 | rm -rf conftest* |
10f2d63a VZ |
12006 | ac_cv_c_bigendian=yes |
12007 | else | |
698dcdb6 VZ |
12008 | echo "configure: failed program was:" >&5 |
12009 | cat conftest.$ac_ext >&5 | |
12010 | rm -rf conftest* | |
12011 | ac_cv_c_bigendian=no | |
10f2d63a | 12012 | fi |
698dcdb6 | 12013 | rm -f conftest* |
10f2d63a | 12014 | else |
698dcdb6 VZ |
12015 | echo "configure: failed program was:" >&5 |
12016 | cat conftest.$ac_ext >&5 | |
10f2d63a | 12017 | fi |
698dcdb6 | 12018 | rm -f conftest* |
10f2d63a VZ |
12019 | if test $ac_cv_c_bigendian = unknown; then |
12020 | if test "$cross_compiling" = yes; then | |
12021 | ac_cv_c_bigendian=unknown | |
12022 | else | |
698dcdb6 | 12023 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 12024 | #line 12025 "configure" |
10f2d63a VZ |
12025 | #include "confdefs.h" |
12026 | main () { | |
12027 | /* Are we little or big endian? From Harbison&Steele. */ | |
12028 | union | |
12029 | { | |
12030 | long l; | |
12031 | char c[sizeof (long)]; | |
12032 | } u; | |
12033 | u.l = 1; | |
12034 | exit (u.c[sizeof (long) - 1] == 1); | |
12035 | } | |
698dcdb6 | 12036 | EOF |
d1a8d972 | 12037 | if { (eval echo configure:12038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 12038 | then |
10f2d63a VZ |
12039 | ac_cv_c_bigendian=no |
12040 | else | |
698dcdb6 VZ |
12041 | echo "configure: failed program was:" >&5 |
12042 | cat conftest.$ac_ext >&5 | |
12043 | rm -fr conftest* | |
12044 | ac_cv_c_bigendian=yes | |
10f2d63a | 12045 | fi |
698dcdb6 | 12046 | rm -fr conftest* |
10f2d63a | 12047 | fi |
698dcdb6 | 12048 | |
10f2d63a VZ |
12049 | fi |
12050 | fi | |
698dcdb6 VZ |
12051 | |
12052 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10f2d63a | 12053 | if test $ac_cv_c_bigendian = unknown; then |
698dcdb6 | 12054 | 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 |
12055 | fi |
12056 | if test $ac_cv_c_bigendian = yes; then | |
698dcdb6 | 12057 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12058 | #define WORDS_BIGENDIAN 1 |
12059 | EOF | |
12060 | ||
12061 | fi | |
12062 | ||
698dcdb6 VZ |
12063 | |
12064 | ||
10f2d63a | 12065 | if test "$cross_compiling" = "yes"; then |
698dcdb6 | 12066 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12067 | #define wxUSE_IOSTREAMH 1 |
12068 | EOF | |
12069 | ||
12070 | else | |
698dcdb6 VZ |
12071 | |
12072 | ac_ext=C | |
12073 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12074 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12075 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12076 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12077 | cross_compiling=$ac_cv_prog_cxx_cross | |
12078 | ||
703e0a69 | 12079 | |
698dcdb6 | 12080 | for ac_hdr in iostream |
10f2d63a | 12081 | do |
698dcdb6 VZ |
12082 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12083 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d1a8d972 | 12084 | echo "configure:12085: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12085 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12087 | else | |
12088 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 12089 | #line 12090 "configure" |
10f2d63a | 12090 | #include "confdefs.h" |
698dcdb6 VZ |
12091 | #include <$ac_hdr> |
12092 | EOF | |
12093 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 12094 | { (eval echo configure:12095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12095 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12096 | if test -z "$ac_err"; then | |
12097 | rm -rf conftest* | |
12098 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12099 | else |
698dcdb6 VZ |
12100 | echo "$ac_err" >&5 |
12101 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12102 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12103 | rm -rf conftest* |
12104 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12105 | fi |
698dcdb6 | 12106 | rm -f conftest* |
10f2d63a | 12107 | fi |
698dcdb6 VZ |
12108 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12109 | echo "$ac_t""yes" 1>&6 | |
12110 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12111 | cat >> confdefs.h <<EOF | |
12112 | #define $ac_tr_hdr 1 | |
10f2d63a | 12113 | EOF |
698dcdb6 VZ |
12114 | |
12115 | else | |
12116 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12117 | fi |
12118 | done | |
12119 | ||
698dcdb6 | 12120 | |
57fe5ed0 VZ |
12121 | if test "$ac_cv_header_iostream" = "yes" ; then |
12122 | : | |
12123 | else | |
698dcdb6 | 12124 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12125 | #define wxUSE_IOSTREAMH 1 |
12126 | EOF | |
12127 | ||
10f2d63a VZ |
12128 | fi |
12129 | ||
12130 | ac_ext=c | |
698dcdb6 | 12131 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12132 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12133 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12134 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12135 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a VZ |
12136 | |
12137 | fi | |
12138 | ||
703e0a69 | 12139 | |
698dcdb6 VZ |
12140 | |
12141 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
d1a8d972 | 12142 | echo "configure:12143: checking if C++ compiler supports bool" >&5 |
698dcdb6 VZ |
12143 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
12144 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12145 | else | |
12146 | ||
12147 | ||
12148 | ac_ext=C | |
12149 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12150 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12151 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12152 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12153 | cross_compiling=$ac_cv_prog_cxx_cross | |
10f2d63a | 12154 | |
698dcdb6 VZ |
12155 | |
12156 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 12157 | #line 12158 "configure" |
10f2d63a VZ |
12158 | #include "confdefs.h" |
12159 | ||
698dcdb6 VZ |
12160 | |
12161 | int main() { | |
10f2d63a VZ |
12162 | |
12163 | bool b = true; | |
12164 | ||
12165 | return 0; | |
698dcdb6 VZ |
12166 | |
12167 | ; return 0; } | |
12168 | EOF | |
d1a8d972 | 12169 | if { (eval echo configure:12170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12170 | rm -rf conftest* |
12171 | ||
10f2d63a | 12172 | wx_cv_cpp_bool=yes |
698dcdb6 | 12173 | |
10f2d63a | 12174 | else |
698dcdb6 VZ |
12175 | echo "configure: failed program was:" >&5 |
12176 | cat conftest.$ac_ext >&5 | |
12177 | rm -rf conftest* | |
12178 | ||
10f2d63a | 12179 | wx_cv_cpp_bool=no |
698dcdb6 VZ |
12180 | |
12181 | ||
10f2d63a | 12182 | fi |
698dcdb6 | 12183 | rm -f conftest* |
10f2d63a VZ |
12184 | |
12185 | ac_ext=c | |
698dcdb6 | 12186 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12187 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12188 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12189 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12190 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12191 | |
698dcdb6 | 12192 | |
10f2d63a | 12193 | fi |
698dcdb6 VZ |
12194 | |
12195 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10f2d63a VZ |
12196 | |
12197 | if test "$wx_cv_cpp_bool" = "yes"; then | |
698dcdb6 | 12198 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12199 | #define HAVE_BOOL 1 |
12200 | EOF | |
12201 | ||
12202 | fi | |
12203 | ||
1e487827 | 12204 | |
698dcdb6 | 12205 | |
698dcdb6 | 12206 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 |
d1a8d972 | 12207 | echo "configure:12208: checking for wcslen in -lc" >&5 |
698dcdb6 VZ |
12208 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
12209 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12210 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12211 | else |
698dcdb6 | 12212 | ac_save_LIBS="$LIBS" |
10f2d63a | 12213 | LIBS="-lc $LIBS" |
698dcdb6 | 12214 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 12215 | #line 12216 "configure" |
10f2d63a VZ |
12216 | #include "confdefs.h" |
12217 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12218 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12219 | builtin and then its argument prototype would still apply. */ |
12220 | char wcslen(); | |
12221 | ||
12222 | int main() { | |
12223 | wcslen() | |
12224 | ; return 0; } | |
12225 | EOF | |
d1a8d972 | 12226 | if { (eval echo configure:12227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12227 | rm -rf conftest* |
12228 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12229 | else | |
12230 | echo "configure: failed program was:" >&5 | |
12231 | cat conftest.$ac_ext >&5 | |
12232 | rm -rf conftest* | |
12233 | eval "ac_cv_lib_$ac_lib_var=no" | |
12234 | fi | |
12235 | rm -f conftest* | |
12236 | LIBS="$ac_save_LIBS" | |
12237 | ||
12238 | fi | |
12239 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12240 | echo "$ac_t""yes" 1>&6 | |
12241 | ||
12242 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12243 | #define HAVE_WCSLEN 1 |
12244 | EOF | |
12245 | ||
12246 | WCHAR_LINK="" | |
698dcdb6 | 12247 | |
10f2d63a | 12248 | else |
698dcdb6 | 12249 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12250 | |
698dcdb6 | 12251 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
d1a8d972 | 12252 | echo "configure:12253: checking for wcslen in -lw" >&5 |
698dcdb6 VZ |
12253 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
12254 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12256 | else |
698dcdb6 | 12257 | ac_save_LIBS="$LIBS" |
10f2d63a | 12258 | LIBS="-lw $LIBS" |
698dcdb6 | 12259 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 12260 | #line 12261 "configure" |
10f2d63a VZ |
12261 | #include "confdefs.h" |
12262 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12263 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12264 | builtin and then its argument prototype would still apply. */ |
12265 | char wcslen(); | |
12266 | ||
12267 | int main() { | |
12268 | wcslen() | |
12269 | ; return 0; } | |
12270 | EOF | |
d1a8d972 | 12271 | if { (eval echo configure:12272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12272 | rm -rf conftest* |
12273 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12274 | else | |
12275 | echo "configure: failed program was:" >&5 | |
12276 | cat conftest.$ac_ext >&5 | |
12277 | rm -rf conftest* | |
12278 | eval "ac_cv_lib_$ac_lib_var=no" | |
12279 | fi | |
12280 | rm -f conftest* | |
12281 | LIBS="$ac_save_LIBS" | |
12282 | ||
12283 | fi | |
12284 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12285 | echo "$ac_t""yes" 1>&6 | |
12286 | ||
12287 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12288 | #define HAVE_WCSLEN 1 |
12289 | EOF | |
12290 | ||
12291 | WCHAR_LINK="-lw" | |
698dcdb6 VZ |
12292 | |
12293 | else | |
12294 | echo "$ac_t""no" 1>&6 | |
6232543b | 12295 | fi |
10f2d63a | 12296 | |
698dcdb6 | 12297 | |
1e487827 | 12298 | fi |
703e0a69 | 12299 | |
698dcdb6 VZ |
12300 | |
12301 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
d1a8d972 | 12302 | echo "configure:12303: checking for vprintf" >&5 |
698dcdb6 VZ |
12303 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
12304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12305 | else | |
12306 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 12307 | #line 12308 "configure" |
10f2d63a VZ |
12308 | #include "confdefs.h" |
12309 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12310 | which can conflict with char vprintf(); below. */ |
10f2d63a VZ |
12311 | #include <assert.h> |
12312 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12313 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12314 | builtin and then its argument prototype would still apply. */ |
12315 | char vprintf(); | |
12316 | ||
12317 | int main() { | |
10f2d63a VZ |
12318 | |
12319 | /* The GNU C library defines this for functions which it implements | |
12320 | to always fail with ENOSYS. Some functions are actually named | |
12321 | something starting with __ and the normal name is an alias. */ | |
698dcdb6 | 12322 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
10f2d63a VZ |
12323 | choke me |
12324 | #else | |
698dcdb6 | 12325 | vprintf(); |
10f2d63a VZ |
12326 | #endif |
12327 | ||
698dcdb6 VZ |
12328 | ; return 0; } |
12329 | EOF | |
d1a8d972 | 12330 | if { (eval echo configure:12331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12331 | rm -rf conftest* |
12332 | eval "ac_cv_func_vprintf=yes" | |
12333 | else | |
12334 | echo "configure: failed program was:" >&5 | |
12335 | cat conftest.$ac_ext >&5 | |
12336 | rm -rf conftest* | |
12337 | eval "ac_cv_func_vprintf=no" | |
12338 | fi | |
12339 | rm -f conftest* | |
12340 | fi | |
12341 | ||
12342 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
12343 | echo "$ac_t""yes" 1>&6 | |
12344 | cat >> confdefs.h <<\EOF | |
12345 | #define HAVE_VPRINTF 1 | |
12346 | EOF | |
12347 | ||
12348 | else | |
12349 | echo "$ac_t""no" 1>&6 | |
12350 | fi | |
12351 | ||
12352 | if test "$ac_cv_func_vprintf" != yes; then | |
12353 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
d1a8d972 | 12354 | echo "configure:12355: checking for _doprnt" >&5 |
698dcdb6 VZ |
12355 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
12356 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12357 | else | |
12358 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 12359 | #line 12360 "configure" |
10f2d63a VZ |
12360 | #include "confdefs.h" |
12361 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12362 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
12363 | #include <assert.h> |
12364 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12365 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12366 | builtin and then its argument prototype would still apply. */ |
12367 | char _doprnt(); | |
12368 | ||
12369 | int main() { | |
10f2d63a VZ |
12370 | |
12371 | /* The GNU C library defines this for functions which it implements | |
12372 | to always fail with ENOSYS. Some functions are actually named | |
12373 | something starting with __ and the normal name is an alias. */ | |
12374 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
12375 | choke me | |
12376 | #else | |
698dcdb6 | 12377 | _doprnt(); |
10f2d63a VZ |
12378 | #endif |
12379 | ||
698dcdb6 VZ |
12380 | ; return 0; } |
12381 | EOF | |
d1a8d972 | 12382 | if { (eval echo configure:12383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12383 | rm -rf conftest* |
12384 | eval "ac_cv_func__doprnt=yes" | |
12385 | else | |
12386 | echo "configure: failed program was:" >&5 | |
12387 | cat conftest.$ac_ext >&5 | |
12388 | rm -rf conftest* | |
12389 | eval "ac_cv_func__doprnt=no" | |
12390 | fi | |
12391 | rm -f conftest* | |
12392 | fi | |
12393 | ||
12394 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
12395 | echo "$ac_t""yes" 1>&6 | |
12396 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12397 | #define HAVE_DOPRNT 1 |
12398 | EOF | |
12399 | ||
698dcdb6 VZ |
12400 | else |
12401 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12402 | fi |
12403 | ||
12404 | fi | |
12405 | ||
1e487827 | 12406 | |
698dcdb6 VZ |
12407 | |
12408 | ||
12409 | ||
12410 | ||
12411 | ||
12412 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
d1a8d972 | 12413 | echo "configure:12414: checking for vsnprintf" >&5 |
698dcdb6 VZ |
12414 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
12415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12416 | else | |
12417 | ||
12418 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 12419 | #line 12420 "configure" |
f6bcfd97 BP |
12420 | #include "confdefs.h" |
12421 | ||
12422 | #include <stdio.h> | |
698dcdb6 VZ |
12423 | #include <stdarg.h> |
12424 | ||
12425 | int main() { | |
10f2d63a | 12426 | |
f6bcfd97 | 12427 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 12428 | |
f6bcfd97 BP |
12429 | wx_test_vsnprintf("%s"); |
12430 | return 0; | |
12431 | } | |
12432 | ||
12433 | int wx_test_vsnprintf(const char *fmt, ...) | |
12434 | { | |
12435 | char *s; | |
12436 | ||
12437 | va_list argp; | |
12438 | va_start(argp, fmt); | |
12439 | vsnprintf(s, 42, fmt, argp); | |
12440 | va_end(argp); | |
698dcdb6 VZ |
12441 | |
12442 | ; return 0; } | |
12443 | EOF | |
d1a8d972 | 12444 | if { (eval echo configure:12445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12445 | rm -rf conftest* |
12446 | ||
f6bcfd97 | 12447 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12448 | |
10f2d63a | 12449 | else |
698dcdb6 VZ |
12450 | echo "configure: failed program was:" >&5 |
12451 | cat conftest.$ac_ext >&5 | |
12452 | rm -rf conftest* | |
12453 | ||
12454 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 12455 | #line 12456 "configure" |
c521c494 RL |
12456 | #include "confdefs.h" |
12457 | ||
12458 | #include <stdio.h> | |
12459 | #include <stdarg.h> | |
698dcdb6 VZ |
12460 | |
12461 | int main() { | |
c521c494 RL |
12462 | |
12463 | int wx_test_vsnprintf(const char *, ...); | |
12464 | ||
12465 | wx_test_vsnprintf("%s"); | |
12466 | return 0; | |
12467 | } | |
12468 | ||
12469 | int wx_test_vsnprintf(const char *fmt, ...) | |
12470 | { | |
12471 | char *s; | |
12472 | ||
12473 | va_list argp; | |
12474 | va_start(argp, fmt); | |
12475 | _vsnprintf(s, 42, fmt, argp); | |
12476 | va_end(argp); | |
698dcdb6 VZ |
12477 | |
12478 | ; return 0; } | |
12479 | EOF | |
d1a8d972 | 12480 | if { (eval echo configure:12481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12481 | rm -rf conftest* |
12482 | ||
c521c494 | 12483 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12484 | |
c521c494 | 12485 | else |
698dcdb6 VZ |
12486 | echo "configure: failed program was:" >&5 |
12487 | cat conftest.$ac_ext >&5 | |
12488 | rm -rf conftest* | |
12489 | ||
c521c494 | 12490 | wx_cv_func_vsnprintf=no |
698dcdb6 | 12491 | |
10f2d63a | 12492 | fi |
698dcdb6 VZ |
12493 | rm -f conftest* |
12494 | ||
6232543b | 12495 | fi |
698dcdb6 | 12496 | rm -f conftest* |
703e0a69 | 12497 | |
1e487827 | 12498 | fi |
698dcdb6 VZ |
12499 | |
12500 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
10f2d63a | 12501 | |
9d8deca0 | 12502 | if test "$wx_cv_func_vsnprintf" = yes; then |
698dcdb6 | 12503 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12504 | #define HAVE_VSNPRINTF 1 |
12505 | EOF | |
12506 | ||
12507 | else | |
698dcdb6 | 12508 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 |
9d8deca0 VZ |
12509 | fi |
12510 | ||
698dcdb6 | 12511 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
d1a8d972 | 12512 | echo "configure:12513: checking for vsscanf" >&5 |
698dcdb6 VZ |
12513 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
12514 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12515 | else |
698dcdb6 VZ |
12516 | |
12517 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 12518 | #line 12519 "configure" |
10f2d63a | 12519 | #include "confdefs.h" |
10f2d63a | 12520 | |
f6bcfd97 BP |
12521 | #include <stdio.h> |
12522 | #include <stdarg.h> | |
698dcdb6 VZ |
12523 | |
12524 | int main() { | |
10f2d63a | 12525 | |
f6bcfd97 | 12526 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 12527 | |
f6bcfd97 BP |
12528 | wx_test_vsscanf("%d"); |
12529 | return 0; | |
10f2d63a VZ |
12530 | } |
12531 | ||
f6bcfd97 | 12532 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 12533 | { |
f6bcfd97 BP |
12534 | va_list argp; |
12535 | va_start(argp, fmt); | |
12536 | vsscanf("42", fmt, argp); | |
12537 | va_end(argp); | |
698dcdb6 VZ |
12538 | |
12539 | ; return 0; } | |
12540 | EOF | |
d1a8d972 | 12541 | if { (eval echo configure:12542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12542 | rm -rf conftest* |
12543 | ||
f6bcfd97 | 12544 | wx_cv_func_vsscanf=yes |
698dcdb6 | 12545 | |
10f2d63a | 12546 | else |
698dcdb6 VZ |
12547 | echo "configure: failed program was:" >&5 |
12548 | cat conftest.$ac_ext >&5 | |
12549 | rm -rf conftest* | |
12550 | ||
f6bcfd97 | 12551 | wx_cv_func_vsscanf=no |
698dcdb6 | 12552 | |
6232543b | 12553 | fi |
698dcdb6 | 12554 | rm -f conftest* |
703e0a69 | 12555 | |
1e487827 | 12556 | fi |
698dcdb6 VZ |
12557 | |
12558 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10f2d63a | 12559 | |
9d8deca0 | 12560 | if test "$wx_cv_func_vsscanf" = yes; then |
698dcdb6 | 12561 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12562 | #define HAVE_VSSCANF 1 |
12563 | EOF | |
12564 | ||
12565 | fi | |
12566 | ||
95c8801c VS |
12567 | if test "$TOOLKIT" != "MSW"; then |
12568 | ||
12569 | ||
12570 | ||
698dcdb6 VZ |
12571 | ac_ext=C |
12572 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12573 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12574 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12575 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12576 | cross_compiling=$ac_cv_prog_cxx_cross | |
12577 | ||
12578 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
d1a8d972 | 12579 | echo "configure:12580: checking if iconv() takes char**" >&5 |
698dcdb6 VZ |
12580 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
12581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12582 | else | |
12583 | ||
12584 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 12585 | #line 12586 "configure" |
95c8801c VS |
12586 | #include "confdefs.h" |
12587 | #include <iconv.h> | |
698dcdb6 | 12588 | int main() { |
95c8801c VS |
12589 | |
12590 | char **inbuf, **outbuf; | |
19af3b06 VZ |
12591 | iconv_t cd; |
12592 | size_t insz, outsz; | |
12593 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
698dcdb6 VZ |
12594 | |
12595 | ; return 0; } | |
12596 | EOF | |
d1a8d972 | 12597 | if { (eval echo configure:12598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12598 | rm -rf conftest* |
95c8801c VS |
12599 | wx_cv_iconv_takes_char=yes |
12600 | else | |
698dcdb6 VZ |
12601 | echo "configure: failed program was:" >&5 |
12602 | cat conftest.$ac_ext >&5 | |
12603 | rm -rf conftest* | |
12604 | wx_cv_iconv_takes_char=no | |
95c8801c | 12605 | fi |
698dcdb6 | 12606 | rm -f conftest* |
95c8801c VS |
12607 | |
12608 | fi | |
698dcdb6 VZ |
12609 | |
12610 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a | 12611 | ac_ext=c |
698dcdb6 | 12612 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12613 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12614 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12615 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12616 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12617 | |
95c8801c | 12618 | if test "$wx_cv_iconv_takes_char" = yes ; then |
698dcdb6 | 12619 | cat >> confdefs.h <<\EOF |
95c8801c VS |
12620 | #define WX_ICONV_TAKES_CHAR 1 |
12621 | EOF | |
12622 | ||
12623 | fi | |
10f2d63a | 12624 | |
1e487827 | 12625 | |
698dcdb6 VZ |
12626 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
12627 | for ac_func in sigaction | |
eb4efbdc | 12628 | do |
698dcdb6 | 12629 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 12630 | echo "configure:12631: checking for $ac_func" >&5 |
698dcdb6 VZ |
12631 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12633 | else | |
12634 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 12635 | #line 12636 "configure" |
eb4efbdc VZ |
12636 | #include "confdefs.h" |
12637 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12638 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
12639 | #include <assert.h> |
12640 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12641 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12642 | builtin and then its argument prototype would still apply. */ |
12643 | char $ac_func(); | |
12644 | ||
12645 | int main() { | |
eb4efbdc VZ |
12646 | |
12647 | /* The GNU C library defines this for functions which it implements | |
12648 | to always fail with ENOSYS. Some functions are actually named | |
12649 | something starting with __ and the normal name is an alias. */ | |
12650 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12651 | choke me | |
12652 | #else | |
698dcdb6 | 12653 | $ac_func(); |
eb4efbdc VZ |
12654 | #endif |
12655 | ||
698dcdb6 | 12656 | ; return 0; } |
eb4efbdc | 12657 | EOF |
d1a8d972 | 12658 | if { (eval echo configure:12659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12659 | rm -rf conftest* |
12660 | eval "ac_cv_func_$ac_func=yes" | |
12661 | else | |
12662 | echo "configure: failed program was:" >&5 | |
12663 | cat conftest.$ac_ext >&5 | |
12664 | rm -rf conftest* | |
12665 | eval "ac_cv_func_$ac_func=no" | |
12666 | fi | |
12667 | rm -f conftest* | |
12668 | fi | |
eb4efbdc | 12669 | |
698dcdb6 VZ |
12670 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12671 | echo "$ac_t""yes" 1>&6 | |
12672 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12673 | cat >> confdefs.h <<EOF | |
12674 | #define $ac_tr_func 1 | |
12675 | EOF | |
12676 | ||
12677 | else | |
12678 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
12679 | fi |
12680 | done | |
12681 | ||
698dcdb6 | 12682 | |
eb4efbdc | 12683 | if test "$ac_cv_func_sigaction" = "no"; then |
698dcdb6 | 12684 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
eb4efbdc VZ |
12685 | wxUSE_ON_FATAL_EXCEPTION=no |
12686 | fi | |
f6bcfd97 BP |
12687 | |
12688 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
698dcdb6 VZ |
12689 | |
12690 | ac_ext=C | |
12691 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12692 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12693 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12694 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12695 | cross_compiling=$ac_cv_prog_cxx_cross | |
6232543b | 12696 | |
1e487827 | 12697 | |
698dcdb6 | 12698 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
d1a8d972 | 12699 | echo "configure:12700: checking for sa_handler type" >&5 |
698dcdb6 VZ |
12700 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
12701 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12702 | else | |
12703 | ||
12704 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 12705 | #line 12706 "configure" |
f6bcfd97 BP |
12706 | #include "confdefs.h" |
12707 | #include <signal.h> | |
698dcdb6 | 12708 | int main() { |
f6bcfd97 BP |
12709 | |
12710 | extern void testSigHandler(int); | |
12711 | ||
12712 | struct sigaction sa; | |
12713 | sa.sa_handler = testSigHandler; | |
698dcdb6 VZ |
12714 | |
12715 | ; return 0; } | |
12716 | EOF | |
d1a8d972 | 12717 | if { (eval echo configure:12718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12718 | rm -rf conftest* |
12719 | ||
f6bcfd97 | 12720 | wx_cv_type_sa_handler=int |
698dcdb6 | 12721 | |
f6bcfd97 | 12722 | else |
698dcdb6 VZ |
12723 | echo "configure: failed program was:" >&5 |
12724 | cat conftest.$ac_ext >&5 | |
12725 | rm -rf conftest* | |
12726 | ||
f6bcfd97 | 12727 | wx_cv_type_sa_handler=void |
698dcdb6 | 12728 | |
6232543b | 12729 | fi |
698dcdb6 VZ |
12730 | rm -f conftest* |
12731 | ||
1e487827 | 12732 | fi |
698dcdb6 VZ |
12733 | |
12734 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
f6bcfd97 BP |
12735 | |
12736 | ac_ext=c | |
698dcdb6 | 12737 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
f6bcfd97 | 12738 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12739 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12740 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12741 | cross_compiling=$ac_cv_prog_cc_cross | |
12742 | ||
703e0a69 | 12743 | |
698dcdb6 | 12744 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
12745 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
12746 | EOF | |
12747 | ||
12748 | fi | |
eb4efbdc VZ |
12749 | fi |
12750 | ||
10f2d63a VZ |
12751 | for ac_func in vfork |
12752 | do | |
698dcdb6 | 12753 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 12754 | echo "configure:12755: checking for $ac_func" >&5 |
698dcdb6 VZ |
12755 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12756 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12757 | else | |
12758 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 12759 | #line 12760 "configure" |
10f2d63a VZ |
12760 | #include "confdefs.h" |
12761 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12762 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
12763 | #include <assert.h> |
12764 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12765 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12766 | builtin and then its argument prototype would still apply. */ |
12767 | char $ac_func(); | |
12768 | ||
12769 | int main() { | |
10f2d63a VZ |
12770 | |
12771 | /* The GNU C library defines this for functions which it implements | |
12772 | to always fail with ENOSYS. Some functions are actually named | |
12773 | something starting with __ and the normal name is an alias. */ | |
12774 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12775 | choke me | |
12776 | #else | |
698dcdb6 | 12777 | $ac_func(); |
10f2d63a VZ |
12778 | #endif |
12779 | ||
698dcdb6 | 12780 | ; return 0; } |
10f2d63a | 12781 | EOF |
d1a8d972 | 12782 | if { (eval echo configure:12783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12783 | rm -rf conftest* |
12784 | eval "ac_cv_func_$ac_func=yes" | |
12785 | else | |
12786 | echo "configure: failed program was:" >&5 | |
12787 | cat conftest.$ac_ext >&5 | |
12788 | rm -rf conftest* | |
12789 | eval "ac_cv_func_$ac_func=no" | |
12790 | fi | |
12791 | rm -f conftest* | |
12792 | fi | |
270a909e | 12793 | |
698dcdb6 VZ |
12794 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12795 | echo "$ac_t""yes" 1>&6 | |
12796 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12797 | cat >> confdefs.h <<EOF | |
12798 | #define $ac_tr_func 1 | |
12799 | EOF | |
12800 | ||
12801 | else | |
12802 | echo "$ac_t""no" 1>&6 | |
270a909e VZ |
12803 | fi |
12804 | done | |
12805 | ||
1e487827 | 12806 | |
698dcdb6 VZ |
12807 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
12808 | for ac_func in fcntl flock | |
4f3c5f06 | 12809 | do |
698dcdb6 | 12810 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 12811 | echo "configure:12812: checking for $ac_func" >&5 |
698dcdb6 VZ |
12812 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12814 | else | |
12815 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 12816 | #line 12817 "configure" |
4f3c5f06 VZ |
12817 | #include "confdefs.h" |
12818 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12819 | which can conflict with char $ac_func(); below. */ |
4f3c5f06 VZ |
12820 | #include <assert.h> |
12821 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12822 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12823 | builtin and then its argument prototype would still apply. */ |
12824 | char $ac_func(); | |
12825 | ||
12826 | int main() { | |
4f3c5f06 VZ |
12827 | |
12828 | /* The GNU C library defines this for functions which it implements | |
12829 | to always fail with ENOSYS. Some functions are actually named | |
12830 | something starting with __ and the normal name is an alias. */ | |
12831 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12832 | choke me | |
12833 | #else | |
698dcdb6 | 12834 | $ac_func(); |
4f3c5f06 VZ |
12835 | #endif |
12836 | ||
698dcdb6 VZ |
12837 | ; return 0; } |
12838 | EOF | |
d1a8d972 | 12839 | if { (eval echo configure:12840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12840 | rm -rf conftest* |
12841 | eval "ac_cv_func_$ac_func=yes" | |
12842 | else | |
12843 | echo "configure: failed program was:" >&5 | |
12844 | cat conftest.$ac_ext >&5 | |
12845 | rm -rf conftest* | |
12846 | eval "ac_cv_func_$ac_func=no" | |
12847 | fi | |
12848 | rm -f conftest* | |
12849 | fi | |
12850 | ||
12851 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12852 | echo "$ac_t""yes" 1>&6 | |
12853 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12854 | cat >> confdefs.h <<EOF | |
12855 | #define $ac_tr_func 1 | |
4f3c5f06 VZ |
12856 | EOF |
12857 | break | |
698dcdb6 VZ |
12858 | else |
12859 | echo "$ac_t""no" 1>&6 | |
4f3c5f06 VZ |
12860 | fi |
12861 | done | |
12862 | ||
698dcdb6 | 12863 | |
4f3c5f06 | 12864 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
698dcdb6 | 12865 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f3c5f06 VZ |
12866 | wxUSE_SNGLINST_CHECKER=no |
12867 | fi | |
12868 | fi | |
12869 | ||
270a909e VZ |
12870 | for ac_func in timegm |
12871 | do | |
698dcdb6 | 12872 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 12873 | echo "configure:12874: checking for $ac_func" >&5 |
698dcdb6 VZ |
12874 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12875 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12876 | else | |
12877 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 12878 | #line 12879 "configure" |
270a909e VZ |
12879 | #include "confdefs.h" |
12880 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12881 | which can conflict with char $ac_func(); below. */ |
270a909e VZ |
12882 | #include <assert.h> |
12883 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12884 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12885 | builtin and then its argument prototype would still apply. */ |
12886 | char $ac_func(); | |
12887 | ||
12888 | int main() { | |
270a909e VZ |
12889 | |
12890 | /* The GNU C library defines this for functions which it implements | |
12891 | to always fail with ENOSYS. Some functions are actually named | |
12892 | something starting with __ and the normal name is an alias. */ | |
12893 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12894 | choke me | |
12895 | #else | |
698dcdb6 | 12896 | $ac_func(); |
270a909e VZ |
12897 | #endif |
12898 | ||
698dcdb6 | 12899 | ; return 0; } |
270a909e | 12900 | EOF |
d1a8d972 | 12901 | if { (eval echo configure:12902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12902 | rm -rf conftest* |
12903 | eval "ac_cv_func_$ac_func=yes" | |
12904 | else | |
12905 | echo "configure: failed program was:" >&5 | |
12906 | cat conftest.$ac_ext >&5 | |
12907 | rm -rf conftest* | |
12908 | eval "ac_cv_func_$ac_func=no" | |
12909 | fi | |
12910 | rm -f conftest* | |
12911 | fi | |
10f2d63a | 12912 | |
698dcdb6 VZ |
12913 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12914 | echo "$ac_t""yes" 1>&6 | |
12915 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12916 | cat >> confdefs.h <<EOF | |
12917 | #define $ac_tr_func 1 | |
12918 | EOF | |
12919 | ||
12920 | else | |
12921 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12922 | fi |
12923 | done | |
12924 | ||
698dcdb6 | 12925 | |
8fd0d89b VZ |
12926 | for ac_func in putenv setenv |
12927 | do | |
698dcdb6 | 12928 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 12929 | echo "configure:12930: checking for $ac_func" >&5 |
698dcdb6 VZ |
12930 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12931 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12932 | else | |
12933 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 12934 | #line 12935 "configure" |
8fd0d89b VZ |
12935 | #include "confdefs.h" |
12936 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12937 | which can conflict with char $ac_func(); below. */ |
8fd0d89b VZ |
12938 | #include <assert.h> |
12939 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12940 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12941 | builtin and then its argument prototype would still apply. */ |
12942 | char $ac_func(); | |
12943 | ||
12944 | int main() { | |
8fd0d89b VZ |
12945 | |
12946 | /* The GNU C library defines this for functions which it implements | |
12947 | to always fail with ENOSYS. Some functions are actually named | |
12948 | something starting with __ and the normal name is an alias. */ | |
12949 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12950 | choke me | |
12951 | #else | |
698dcdb6 | 12952 | $ac_func(); |
8fd0d89b VZ |
12953 | #endif |
12954 | ||
698dcdb6 VZ |
12955 | ; return 0; } |
12956 | EOF | |
d1a8d972 | 12957 | if { (eval echo configure:12958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12958 | rm -rf conftest* |
12959 | eval "ac_cv_func_$ac_func=yes" | |
12960 | else | |
12961 | echo "configure: failed program was:" >&5 | |
12962 | cat conftest.$ac_ext >&5 | |
12963 | rm -rf conftest* | |
12964 | eval "ac_cv_func_$ac_func=no" | |
12965 | fi | |
12966 | rm -f conftest* | |
12967 | fi | |
12968 | ||
12969 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12970 | echo "$ac_t""yes" 1>&6 | |
12971 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12972 | cat >> confdefs.h <<EOF | |
12973 | #define $ac_tr_func 1 | |
8fd0d89b VZ |
12974 | EOF |
12975 | break | |
698dcdb6 VZ |
12976 | else |
12977 | echo "$ac_t""no" 1>&6 | |
8fd0d89b VZ |
12978 | fi |
12979 | done | |
12980 | ||
698dcdb6 | 12981 | |
b12915c1 VZ |
12982 | HAVE_SOME_SLEEP_FUNC=0 |
12983 | if test "$USE_BEOS" = 1; then | |
698dcdb6 | 12984 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
12985 | #define HAVE_SLEEP 1 |
12986 | EOF | |
12987 | ||
12988 | HAVE_SOME_SLEEP_FUNC=1 | |
12989 | fi | |
12990 | ||
b4085ce6 | 12991 | if test "$USE_MAC" = 1; then |
698dcdb6 | 12992 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
12993 | #define HAVE_USLEEP 1 |
12994 | EOF | |
12995 | ||
12996 | HAVE_SOME_SLEEP_FUNC=1 | |
12997 | fi | |
12998 | ||
b12915c1 VZ |
12999 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
13000 | POSIX4_LINK= | |
698dcdb6 | 13001 | for ac_func in nanosleep |
10f2d63a | 13002 | do |
698dcdb6 | 13003 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 13004 | echo "configure:13005: checking for $ac_func" >&5 |
698dcdb6 VZ |
13005 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13007 | else | |
13008 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 13009 | #line 13010 "configure" |
10f2d63a VZ |
13010 | #include "confdefs.h" |
13011 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13012 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13013 | #include <assert.h> |
13014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13015 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13016 | builtin and then its argument prototype would still apply. */ |
13017 | char $ac_func(); | |
13018 | ||
13019 | int main() { | |
10f2d63a VZ |
13020 | |
13021 | /* The GNU C library defines this for functions which it implements | |
13022 | to always fail with ENOSYS. Some functions are actually named | |
13023 | something starting with __ and the normal name is an alias. */ | |
13024 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13025 | choke me | |
13026 | #else | |
698dcdb6 | 13027 | $ac_func(); |
10f2d63a VZ |
13028 | #endif |
13029 | ||
698dcdb6 VZ |
13030 | ; return 0; } |
13031 | EOF | |
d1a8d972 | 13032 | if { (eval echo configure:13033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13033 | rm -rf conftest* |
13034 | eval "ac_cv_func_$ac_func=yes" | |
13035 | else | |
13036 | echo "configure: failed program was:" >&5 | |
13037 | cat conftest.$ac_ext >&5 | |
13038 | rm -rf conftest* | |
13039 | eval "ac_cv_func_$ac_func=no" | |
13040 | fi | |
13041 | rm -f conftest* | |
13042 | fi | |
13043 | ||
13044 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13045 | echo "$ac_t""yes" 1>&6 | |
13046 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13047 | cat >> confdefs.h <<EOF | |
13048 | #define $ac_tr_func 1 | |
13049 | EOF | |
13050 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13051 | #define HAVE_NANOSLEEP 1 |
13052 | EOF | |
13053 | ||
13054 | else | |
698dcdb6 VZ |
13055 | echo "$ac_t""no" 1>&6 |
13056 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
d1a8d972 | 13057 | echo "configure:13058: checking for nanosleep in -lposix4" >&5 |
698dcdb6 VZ |
13058 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
13059 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13060 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13061 | else |
698dcdb6 | 13062 | ac_save_LIBS="$LIBS" |
10f2d63a | 13063 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13064 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 13065 | #line 13066 "configure" |
10f2d63a VZ |
13066 | #include "confdefs.h" |
13067 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13068 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13069 | builtin and then its argument prototype would still apply. */ |
13070 | char nanosleep(); | |
13071 | ||
13072 | int main() { | |
13073 | nanosleep() | |
13074 | ; return 0; } | |
13075 | EOF | |
d1a8d972 | 13076 | if { (eval echo configure:13077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13077 | rm -rf conftest* |
13078 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13079 | else | |
13080 | echo "configure: failed program was:" >&5 | |
13081 | cat conftest.$ac_ext >&5 | |
13082 | rm -rf conftest* | |
13083 | eval "ac_cv_lib_$ac_lib_var=no" | |
13084 | fi | |
13085 | rm -f conftest* | |
13086 | LIBS="$ac_save_LIBS" | |
13087 | ||
13088 | fi | |
13089 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13090 | echo "$ac_t""yes" 1>&6 | |
13091 | ||
13092 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13093 | #define HAVE_NANOSLEEP 1 |
13094 | EOF | |
13095 | ||
b12915c1 | 13096 | POSIX4_LINK="-lposix4" |
698dcdb6 | 13097 | |
10f2d63a | 13098 | else |
698dcdb6 | 13099 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13100 | |
698dcdb6 | 13101 | for ac_func in usleep |
10f2d63a | 13102 | do |
698dcdb6 | 13103 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 13104 | echo "configure:13105: checking for $ac_func" >&5 |
698dcdb6 VZ |
13105 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13106 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13107 | else | |
13108 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 13109 | #line 13110 "configure" |
10f2d63a VZ |
13110 | #include "confdefs.h" |
13111 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13112 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13113 | #include <assert.h> |
13114 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13115 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13116 | builtin and then its argument prototype would still apply. */ |
13117 | char $ac_func(); | |
13118 | ||
13119 | int main() { | |
10f2d63a VZ |
13120 | |
13121 | /* The GNU C library defines this for functions which it implements | |
13122 | to always fail with ENOSYS. Some functions are actually named | |
13123 | something starting with __ and the normal name is an alias. */ | |
13124 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13125 | choke me | |
13126 | #else | |
698dcdb6 | 13127 | $ac_func(); |
10f2d63a VZ |
13128 | #endif |
13129 | ||
698dcdb6 VZ |
13130 | ; return 0; } |
13131 | EOF | |
d1a8d972 | 13132 | if { (eval echo configure:13133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13133 | rm -rf conftest* |
13134 | eval "ac_cv_func_$ac_func=yes" | |
13135 | else | |
13136 | echo "configure: failed program was:" >&5 | |
13137 | cat conftest.$ac_ext >&5 | |
13138 | rm -rf conftest* | |
13139 | eval "ac_cv_func_$ac_func=no" | |
13140 | fi | |
13141 | rm -f conftest* | |
13142 | fi | |
13143 | ||
13144 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13145 | echo "$ac_t""yes" 1>&6 | |
13146 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13147 | cat >> confdefs.h <<EOF | |
13148 | #define $ac_tr_func 1 | |
13149 | EOF | |
13150 | cat >> confdefs.h <<\EOF | |
b4085ce6 GD |
13151 | #define HAVE_USLEEP 1 |
13152 | EOF | |
13153 | ||
10f2d63a | 13154 | else |
698dcdb6 VZ |
13155 | echo "$ac_t""no" 1>&6 |
13156 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
13157 | ||
10f2d63a VZ |
13158 | fi |
13159 | done | |
13160 | ||
698dcdb6 VZ |
13161 | |
13162 | ||
10f2d63a VZ |
13163 | fi |
13164 | ||
698dcdb6 VZ |
13165 | |
13166 | ||
10f2d63a VZ |
13167 | fi |
13168 | done | |
13169 | ||
b12915c1 | 13170 | fi |
10f2d63a VZ |
13171 | |
13172 | for ac_func in uname gethostname | |
13173 | do | |
698dcdb6 | 13174 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 13175 | echo "configure:13176: checking for $ac_func" >&5 |
698dcdb6 VZ |
13176 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13177 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13178 | else | |
13179 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 13180 | #line 13181 "configure" |
10f2d63a VZ |
13181 | #include "confdefs.h" |
13182 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13183 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13184 | #include <assert.h> |
13185 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13186 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13187 | builtin and then its argument prototype would still apply. */ |
13188 | char $ac_func(); | |
13189 | ||
13190 | int main() { | |
10f2d63a VZ |
13191 | |
13192 | /* The GNU C library defines this for functions which it implements | |
13193 | to always fail with ENOSYS. Some functions are actually named | |
13194 | something starting with __ and the normal name is an alias. */ | |
13195 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13196 | choke me | |
13197 | #else | |
698dcdb6 | 13198 | $ac_func(); |
10f2d63a VZ |
13199 | #endif |
13200 | ||
698dcdb6 VZ |
13201 | ; return 0; } |
13202 | EOF | |
d1a8d972 | 13203 | if { (eval echo configure:13204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13204 | rm -rf conftest* |
13205 | eval "ac_cv_func_$ac_func=yes" | |
13206 | else | |
13207 | echo "configure: failed program was:" >&5 | |
13208 | cat conftest.$ac_ext >&5 | |
13209 | rm -rf conftest* | |
13210 | eval "ac_cv_func_$ac_func=no" | |
13211 | fi | |
13212 | rm -f conftest* | |
13213 | fi | |
13214 | ||
13215 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13216 | echo "$ac_t""yes" 1>&6 | |
13217 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13218 | cat >> confdefs.h <<EOF | |
13219 | #define $ac_tr_func 1 | |
10f2d63a VZ |
13220 | EOF |
13221 | break | |
698dcdb6 VZ |
13222 | else |
13223 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13224 | fi |
13225 | done | |
13226 | ||
698dcdb6 VZ |
13227 | |
13228 | ||
13229 | ac_ext=C | |
13230 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098c7f9 | 13231 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13232 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13233 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13234 | cross_compiling=$ac_cv_prog_cxx_cross | |
13235 | ||
6098c7f9 | 13236 | |
10f2d63a VZ |
13237 | for ac_func in strtok_r |
13238 | do | |
698dcdb6 | 13239 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 13240 | echo "configure:13241: checking for $ac_func" >&5 |
698dcdb6 VZ |
13241 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13243 | else | |
13244 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 13245 | #line 13246 "configure" |
10f2d63a VZ |
13246 | #include "confdefs.h" |
13247 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13248 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13249 | #include <assert.h> |
13250 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
13251 | #ifdef __cplusplus |
13252 | extern "C" | |
13253 | #endif | |
10f2d63a | 13254 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13255 | builtin and then its argument prototype would still apply. */ |
13256 | char $ac_func(); | |
13257 | ||
13258 | int main() { | |
10f2d63a VZ |
13259 | |
13260 | /* The GNU C library defines this for functions which it implements | |
13261 | to always fail with ENOSYS. Some functions are actually named | |
13262 | something starting with __ and the normal name is an alias. */ | |
13263 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13264 | choke me | |
13265 | #else | |
698dcdb6 | 13266 | $ac_func(); |
10f2d63a VZ |
13267 | #endif |
13268 | ||
698dcdb6 | 13269 | ; return 0; } |
10f2d63a | 13270 | EOF |
d1a8d972 | 13271 | if { (eval echo configure:13272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13272 | rm -rf conftest* |
13273 | eval "ac_cv_func_$ac_func=yes" | |
13274 | else | |
13275 | echo "configure: failed program was:" >&5 | |
13276 | cat conftest.$ac_ext >&5 | |
13277 | rm -rf conftest* | |
13278 | eval "ac_cv_func_$ac_func=no" | |
13279 | fi | |
13280 | rm -f conftest* | |
13281 | fi | |
10f2d63a | 13282 | |
698dcdb6 VZ |
13283 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13284 | echo "$ac_t""yes" 1>&6 | |
13285 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13286 | cat >> confdefs.h <<EOF | |
13287 | #define $ac_tr_func 1 | |
13288 | EOF | |
13289 | ||
13290 | else | |
13291 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13292 | fi |
13293 | done | |
13294 | ||
698dcdb6 | 13295 | |
6098c7f9 | 13296 | ac_ext=c |
698dcdb6 | 13297 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6098c7f9 | 13298 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13299 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13300 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13301 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 13302 | |
1e487827 | 13303 | |
698dcdb6 | 13304 | INET_LINK= |
10f2d63a VZ |
13305 | for ac_func in inet_addr |
13306 | do | |
698dcdb6 | 13307 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 13308 | echo "configure:13309: checking for $ac_func" >&5 |
698dcdb6 VZ |
13309 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13310 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13311 | else | |
13312 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 13313 | #line 13314 "configure" |
10f2d63a VZ |
13314 | #include "confdefs.h" |
13315 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 VZ |
13316 | which can conflict with char $ac_func(); below. */ |
13317 | #include <assert.h> | |
13318 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10f2d63a | 13319 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13320 | builtin and then its argument prototype would still apply. */ |
13321 | char $ac_func(); | |
13322 | ||
13323 | int main() { | |
10f2d63a VZ |
13324 | |
13325 | /* The GNU C library defines this for functions which it implements | |
13326 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
13327 | something starting with __ and the normal name is an alias. */ |
13328 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13329 | choke me | |
13330 | #else | |
698dcdb6 | 13331 | $ac_func(); |
1e487827 | 13332 | #endif |
703e0a69 | 13333 | |
698dcdb6 VZ |
13334 | ; return 0; } |
13335 | EOF | |
d1a8d972 | 13336 | if { (eval echo configure:13337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13337 | rm -rf conftest* |
13338 | eval "ac_cv_func_$ac_func=yes" | |
13339 | else | |
13340 | echo "configure: failed program was:" >&5 | |
13341 | cat conftest.$ac_ext >&5 | |
13342 | rm -rf conftest* | |
13343 | eval "ac_cv_func_$ac_func=no" | |
13344 | fi | |
13345 | rm -f conftest* | |
13346 | fi | |
13347 | ||
13348 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13349 | echo "$ac_t""yes" 1>&6 | |
13350 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13351 | cat >> confdefs.h <<EOF | |
13352 | #define $ac_tr_func 1 | |
13353 | EOF | |
13354 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13355 | #define HAVE_INET_ADDR 1 |
13356 | EOF | |
13357 | ||
10f2d63a | 13358 | else |
698dcdb6 VZ |
13359 | echo "$ac_t""no" 1>&6 |
13360 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
d1a8d972 | 13361 | echo "configure:13362: checking for inet_addr in -lnsl" >&5 |
698dcdb6 VZ |
13362 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
13363 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13365 | else |
698dcdb6 | 13366 | ac_save_LIBS="$LIBS" |
c63c7106 | 13367 | LIBS="-lnsl $LIBS" |
698dcdb6 | 13368 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 13369 | #line 13370 "configure" |
c63c7106 VZ |
13370 | #include "confdefs.h" |
13371 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13372 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13373 | builtin and then its argument prototype would still apply. */ |
13374 | char inet_addr(); | |
13375 | ||
13376 | int main() { | |
13377 | inet_addr() | |
13378 | ; return 0; } | |
13379 | EOF | |
d1a8d972 | 13380 | if { (eval echo configure:13381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13381 | rm -rf conftest* |
13382 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13383 | else | |
13384 | echo "configure: failed program was:" >&5 | |
13385 | cat conftest.$ac_ext >&5 | |
13386 | rm -rf conftest* | |
13387 | eval "ac_cv_lib_$ac_lib_var=no" | |
13388 | fi | |
13389 | rm -f conftest* | |
13390 | LIBS="$ac_save_LIBS" | |
13391 | ||
13392 | fi | |
13393 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13394 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
13395 | INET_LINK="nsl" |
13396 | else | |
698dcdb6 VZ |
13397 | echo "$ac_t""no" 1>&6 |
13398 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
d1a8d972 | 13399 | echo "configure:13400: checking for inet_addr in -lresolv" >&5 |
698dcdb6 VZ |
13400 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
13401 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13402 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13403 | else |
698dcdb6 | 13404 | ac_save_LIBS="$LIBS" |
c63c7106 | 13405 | LIBS="-lresolv $LIBS" |
698dcdb6 | 13406 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 13407 | #line 13408 "configure" |
c63c7106 VZ |
13408 | #include "confdefs.h" |
13409 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13410 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13411 | builtin and then its argument prototype would still apply. */ |
13412 | char inet_addr(); | |
13413 | ||
13414 | int main() { | |
13415 | inet_addr() | |
13416 | ; return 0; } | |
13417 | EOF | |
d1a8d972 | 13418 | if { (eval echo configure:13419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13419 | rm -rf conftest* |
13420 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13421 | else | |
13422 | echo "configure: failed program was:" >&5 | |
13423 | cat conftest.$ac_ext >&5 | |
13424 | rm -rf conftest* | |
13425 | eval "ac_cv_lib_$ac_lib_var=no" | |
13426 | fi | |
13427 | rm -f conftest* | |
13428 | LIBS="$ac_save_LIBS" | |
c63c7106 | 13429 | |
6232543b | 13430 | fi |
698dcdb6 VZ |
13431 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13432 | echo "$ac_t""yes" 1>&6 | |
13433 | INET_LINK="resolv" | |
13434 | ||
13435 | else | |
13436 | echo "$ac_t""no" 1>&6 | |
13437 | fi | |
c63c7106 | 13438 | |
698dcdb6 | 13439 | |
1e487827 | 13440 | fi |
703e0a69 | 13441 | |
698dcdb6 VZ |
13442 | |
13443 | ||
10f2d63a VZ |
13444 | fi |
13445 | done | |
13446 | ||
698dcdb6 | 13447 | |
10f2d63a VZ |
13448 | for ac_func in inet_aton |
13449 | do | |
698dcdb6 | 13450 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 13451 | echo "configure:13452: checking for $ac_func" >&5 |
698dcdb6 VZ |
13452 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13453 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13454 | else | |
13455 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 13456 | #line 13457 "configure" |
10f2d63a VZ |
13457 | #include "confdefs.h" |
13458 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13459 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13460 | #include <assert.h> |
13461 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13462 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13463 | builtin and then its argument prototype would still apply. */ |
13464 | char $ac_func(); | |
13465 | ||
13466 | int main() { | |
10f2d63a VZ |
13467 | |
13468 | /* The GNU C library defines this for functions which it implements | |
13469 | to always fail with ENOSYS. Some functions are actually named | |
13470 | something starting with __ and the normal name is an alias. */ | |
13471 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13472 | choke me | |
13473 | #else | |
698dcdb6 | 13474 | $ac_func(); |
10f2d63a VZ |
13475 | #endif |
13476 | ||
698dcdb6 VZ |
13477 | ; return 0; } |
13478 | EOF | |
d1a8d972 | 13479 | if { (eval echo configure:13480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13480 | rm -rf conftest* |
13481 | eval "ac_cv_func_$ac_func=yes" | |
13482 | else | |
13483 | echo "configure: failed program was:" >&5 | |
13484 | cat conftest.$ac_ext >&5 | |
13485 | rm -rf conftest* | |
13486 | eval "ac_cv_func_$ac_func=no" | |
13487 | fi | |
13488 | rm -f conftest* | |
13489 | fi | |
13490 | ||
13491 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13492 | echo "$ac_t""yes" 1>&6 | |
13493 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13494 | cat >> confdefs.h <<EOF | |
13495 | #define $ac_tr_func 1 | |
13496 | EOF | |
13497 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13498 | #define HAVE_INET_ATON 1 |
13499 | EOF | |
13500 | ||
10f2d63a | 13501 | else |
698dcdb6 VZ |
13502 | echo "$ac_t""no" 1>&6 |
13503 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
d1a8d972 | 13504 | echo "configure:13505: checking for inet_aton in -l$INET_LINK" >&5 |
698dcdb6 VZ |
13505 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
13506 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13507 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13508 | else |
698dcdb6 | 13509 | ac_save_LIBS="$LIBS" |
c63c7106 | 13510 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 13511 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 13512 | #line 13513 "configure" |
10f2d63a VZ |
13513 | #include "confdefs.h" |
13514 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13515 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13516 | builtin and then its argument prototype would still apply. */ |
13517 | char inet_aton(); | |
13518 | ||
13519 | int main() { | |
13520 | inet_aton() | |
13521 | ; return 0; } | |
13522 | EOF | |
d1a8d972 | 13523 | if { (eval echo configure:13524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13524 | rm -rf conftest* |
13525 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13526 | else | |
13527 | echo "configure: failed program was:" >&5 | |
13528 | cat conftest.$ac_ext >&5 | |
13529 | rm -rf conftest* | |
13530 | eval "ac_cv_lib_$ac_lib_var=no" | |
13531 | fi | |
13532 | rm -f conftest* | |
13533 | LIBS="$ac_save_LIBS" | |
13534 | ||
13535 | fi | |
13536 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13537 | echo "$ac_t""yes" 1>&6 | |
13538 | cat >> confdefs.h <<\EOF | |
c63c7106 | 13539 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
13540 | EOF |
13541 | ||
698dcdb6 VZ |
13542 | else |
13543 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13544 | fi |
13545 | ||
698dcdb6 | 13546 | |
c63c7106 VZ |
13547 | fi |
13548 | done | |
13549 | ||
698dcdb6 | 13550 | |
c63c7106 | 13551 | if test "x$INET_LINK" != "x"; then |
698dcdb6 | 13552 | cat >> confdefs.h <<\EOF |
c63c7106 VZ |
13553 | #define HAVE_INET_ADDR 1 |
13554 | EOF | |
13555 | ||
13556 | INET_LINK="-l$INET_LINK" | |
13557 | fi | |
10f2d63a VZ |
13558 | |
13559 | fi | |
13560 | ||
698dcdb6 VZ |
13561 | |
13562 | cat > confcache <<\EOF | |
10f2d63a VZ |
13563 | # This file is a shell script that caches the results of configure |
13564 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
13565 | # scripts and configure runs. It is not useful on other systems. |
13566 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 13567 | # |
698dcdb6 VZ |
13568 | # By default, configure uses ./config.cache as the cache file, |
13569 | # creating it if it does not exist already. You can give configure | |
13570 | # the --cache-file=FILE option to use a different cache file; that is | |
13571 | # what configure does when it calls configure scripts in | |
13572 | # subdirectories, so they share the cache. | |
13573 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
13574 | # config.status only pays attention to the cache file if you give it the | |
13575 | # --recheck option to rerun configure. | |
10f2d63a | 13576 | # |
698dcdb6 | 13577 | EOF |
10f2d63a VZ |
13578 | # The following way of writing the cache mishandles newlines in values, |
13579 | # but we know of no workaround that is simple, portable, and efficient. | |
13580 | # So, don't put newlines in cache variables' values. | |
13581 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13582 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
13583 | (set) 2>&1 | |
13584 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13585 | *ac_space=\ *) | |
13586 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
13587 | # turns \\\\ into \\, and sed turns \\ into \). | |
13588 | sed -n \ | |
13589 | -e "s/'/'\\\\''/g" \ | |
13590 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
13591 | ;; | |
13592 | *) | |
13593 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13594 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
13595 | ;; | |
13596 | esac >> confcache | |
13597 | if cmp -s $cache_file confcache; then | |
13598 | : | |
13599 | else | |
10f2d63a | 13600 | if test -w $cache_file; then |
698dcdb6 VZ |
13601 | echo "updating cache $cache_file" |
13602 | cat confcache > $cache_file | |
10f2d63a VZ |
13603 | else |
13604 | echo "not updating unwritable cache $cache_file" | |
13605 | fi | |
13606 | fi | |
13607 | rm -f confcache | |
13608 | ||
698dcdb6 VZ |
13609 | |
13610 | ||
b089607b | 13611 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 13612 | |
698dcdb6 | 13613 | |
10f2d63a VZ |
13614 | THREADS_LINK="" |
13615 | THREADS_OBJ="" | |
13616 | ||
13617 | if test "$wxUSE_THREADS" = "yes" ; then | |
13618 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 13619 | echo "configure: warning: Threads are not supported under WINE" 1>&2 |
10f2d63a | 13620 | wxUSE_THREADS="no" |
b12915c1 | 13621 | elif test "$USE_BEOS" = 1; then |
698dcdb6 | 13622 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 |
b12915c1 | 13623 | wxUSE_THREADS="no" |
10f2d63a VZ |
13624 | fi |
13625 | fi | |
13626 | ||
13627 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13628 | |
186837b0 | 13629 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
13630 | THREADS_LIB=pthreads |
13631 | else | |
13632 | THREADS_LIB=pthread | |
13633 | fi | |
13634 | ||
698dcdb6 | 13635 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
d1a8d972 | 13636 | echo "configure:13637: checking for pthread_create in -l$THREADS_LIB" >&5 |
698dcdb6 VZ |
13637 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
13638 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13640 | else |
698dcdb6 | 13641 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 13642 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 13643 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 13644 | #line 13645 "configure" |
10f2d63a VZ |
13645 | #include "confdefs.h" |
13646 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13647 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13648 | builtin and then its argument prototype would still apply. */ |
13649 | char pthread_create(); | |
13650 | ||
13651 | int main() { | |
13652 | pthread_create() | |
13653 | ; return 0; } | |
13654 | EOF | |
d1a8d972 | 13655 | if { (eval echo configure:13656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13656 | rm -rf conftest* |
13657 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13658 | else | |
13659 | echo "configure: failed program was:" >&5 | |
13660 | cat conftest.$ac_ext >&5 | |
13661 | rm -rf conftest* | |
13662 | eval "ac_cv_lib_$ac_lib_var=no" | |
13663 | fi | |
13664 | rm -f conftest* | |
13665 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13666 | |
698dcdb6 VZ |
13667 | fi |
13668 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13669 | echo "$ac_t""yes" 1>&6 | |
13670 | ||
10f2d63a | 13671 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 13672 | THREADS_LINK=$THREADS_LIB |
698dcdb6 | 13673 | |
10f2d63a | 13674 | else |
698dcdb6 | 13675 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13676 | |
698dcdb6 | 13677 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
d1a8d972 | 13678 | echo "configure:13679: checking for pthread_create in -lc_r" >&5 |
698dcdb6 VZ |
13679 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
13680 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13681 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13682 | else |
698dcdb6 | 13683 | ac_save_LIBS="$LIBS" |
10f2d63a | 13684 | LIBS="-lc_r $LIBS" |
698dcdb6 | 13685 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 13686 | #line 13687 "configure" |
10f2d63a VZ |
13687 | #include "confdefs.h" |
13688 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13689 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13690 | builtin and then its argument prototype would still apply. */ |
13691 | char pthread_create(); | |
13692 | ||
13693 | int main() { | |
13694 | pthread_create() | |
13695 | ; return 0; } | |
13696 | EOF | |
d1a8d972 | 13697 | if { (eval echo configure:13698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13698 | rm -rf conftest* |
13699 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13700 | else | |
13701 | echo "configure: failed program was:" >&5 | |
13702 | cat conftest.$ac_ext >&5 | |
13703 | rm -rf conftest* | |
13704 | eval "ac_cv_lib_$ac_lib_var=no" | |
13705 | fi | |
13706 | rm -f conftest* | |
13707 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13708 | |
698dcdb6 VZ |
13709 | fi |
13710 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13711 | echo "$ac_t""yes" 1>&6 | |
13712 | ||
10f2d63a VZ |
13713 | THREADS_OBJ="threadpsx.lo" |
13714 | THREADS_LINK="c_r" | |
698dcdb6 | 13715 | |
10f2d63a | 13716 | else |
698dcdb6 | 13717 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13718 | |
698dcdb6 VZ |
13719 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
13720 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
d1a8d972 | 13721 | echo "configure:13722: checking for sys/prctl.h" >&5 |
698dcdb6 VZ |
13722 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13723 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13724 | else |
698dcdb6 | 13725 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 13726 | #line 13727 "configure" |
10f2d63a VZ |
13727 | #include "confdefs.h" |
13728 | #include <sys/prctl.h> | |
698dcdb6 VZ |
13729 | EOF |
13730 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 13731 | { (eval echo configure:13732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13732 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13733 | if test -z "$ac_err"; then | |
13734 | rm -rf conftest* | |
13735 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13736 | else |
698dcdb6 VZ |
13737 | echo "$ac_err" >&5 |
13738 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13739 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13740 | rm -rf conftest* |
13741 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13742 | fi |
698dcdb6 | 13743 | rm -f conftest* |
10f2d63a | 13744 | fi |
698dcdb6 VZ |
13745 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13746 | echo "$ac_t""yes" 1>&6 | |
13747 | ||
1f8ae82f | 13748 | THREADS_OBJ="threadsgi.lo" |
698dcdb6 VZ |
13749 | |
13750 | else | |
13751 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13752 | fi |
13753 | ||
698dcdb6 | 13754 | |
6232543b | 13755 | fi |
10f2d63a | 13756 | |
698dcdb6 | 13757 | |
1e487827 | 13758 | fi |
703e0a69 | 13759 | |
698dcdb6 | 13760 | |
10f2d63a VZ |
13761 | if test -z "$THREADS_OBJ" ; then |
13762 | wxUSE_THREADS=no | |
698dcdb6 | 13763 | echo "configure: warning: No thread support on this system" 1>&2 |
10f2d63a VZ |
13764 | fi |
13765 | fi | |
13766 | ||
13767 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13768 | for ac_func in thr_setconcurrency |
70846f0a | 13769 | do |
698dcdb6 | 13770 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 13771 | echo "configure:13772: checking for $ac_func" >&5 |
698dcdb6 VZ |
13772 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13774 | else | |
13775 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 13776 | #line 13777 "configure" |
70846f0a VZ |
13777 | #include "confdefs.h" |
13778 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13779 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
13780 | #include <assert.h> |
13781 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13782 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13783 | builtin and then its argument prototype would still apply. */ |
13784 | char $ac_func(); | |
13785 | ||
13786 | int main() { | |
70846f0a VZ |
13787 | |
13788 | /* The GNU C library defines this for functions which it implements | |
13789 | to always fail with ENOSYS. Some functions are actually named | |
13790 | something starting with __ and the normal name is an alias. */ | |
13791 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13792 | choke me | |
13793 | #else | |
698dcdb6 | 13794 | $ac_func(); |
70846f0a VZ |
13795 | #endif |
13796 | ||
698dcdb6 | 13797 | ; return 0; } |
70846f0a | 13798 | EOF |
d1a8d972 | 13799 | if { (eval echo configure:13800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13800 | rm -rf conftest* |
13801 | eval "ac_cv_func_$ac_func=yes" | |
13802 | else | |
13803 | echo "configure: failed program was:" >&5 | |
13804 | cat conftest.$ac_ext >&5 | |
13805 | rm -rf conftest* | |
13806 | eval "ac_cv_func_$ac_func=no" | |
13807 | fi | |
13808 | rm -f conftest* | |
13809 | fi | |
70846f0a | 13810 | |
698dcdb6 VZ |
13811 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13812 | echo "$ac_t""yes" 1>&6 | |
13813 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13814 | cat >> confdefs.h <<EOF | |
13815 | #define $ac_tr_func 1 | |
13816 | EOF | |
13817 | ||
13818 | else | |
13819 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
13820 | fi |
13821 | done | |
13822 | ||
698dcdb6 VZ |
13823 | |
13824 | ||
13825 | for ac_hdr in sched.h | |
10f2d63a | 13826 | do |
698dcdb6 VZ |
13827 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13828 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d1a8d972 | 13829 | echo "configure:13830: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13830 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13831 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13832 | else | |
13833 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 13834 | #line 13835 "configure" |
10f2d63a | 13835 | #include "confdefs.h" |
698dcdb6 VZ |
13836 | #include <$ac_hdr> |
13837 | EOF | |
13838 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 13839 | { (eval echo configure:13840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13840 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13841 | if test -z "$ac_err"; then | |
13842 | rm -rf conftest* | |
13843 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13844 | else |
698dcdb6 VZ |
13845 | echo "$ac_err" >&5 |
13846 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13847 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13848 | rm -rf conftest* |
13849 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13850 | fi |
698dcdb6 | 13851 | rm -f conftest* |
10f2d63a | 13852 | fi |
698dcdb6 VZ |
13853 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13854 | echo "$ac_t""yes" 1>&6 | |
13855 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13856 | cat >> confdefs.h <<EOF | |
13857 | #define $ac_tr_hdr 1 | |
10f2d63a | 13858 | EOF |
698dcdb6 VZ |
13859 | |
13860 | else | |
13861 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13862 | fi |
13863 | done | |
13864 | ||
698dcdb6 VZ |
13865 | |
13866 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d1a8d972 | 13867 | echo "configure:13868: checking for sched_yield in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13868 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
13869 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13871 | else |
698dcdb6 | 13872 | ac_save_LIBS="$LIBS" |
10f2d63a | 13873 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13874 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 13875 | #line 13876 "configure" |
10f2d63a VZ |
13876 | #include "confdefs.h" |
13877 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13878 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13879 | builtin and then its argument prototype would still apply. */ |
13880 | char sched_yield(); | |
13881 | ||
13882 | int main() { | |
13883 | sched_yield() | |
13884 | ; return 0; } | |
13885 | EOF | |
d1a8d972 | 13886 | if { (eval echo configure:13887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13887 | rm -rf conftest* |
13888 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13889 | else | |
13890 | echo "configure: failed program was:" >&5 | |
13891 | cat conftest.$ac_ext >&5 | |
13892 | rm -rf conftest* | |
13893 | eval "ac_cv_lib_$ac_lib_var=no" | |
13894 | fi | |
13895 | rm -f conftest* | |
13896 | LIBS="$ac_save_LIBS" | |
13897 | ||
13898 | fi | |
13899 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13900 | echo "$ac_t""yes" 1>&6 | |
13901 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13902 | #define HAVE_SCHED_YIELD 1 |
13903 | EOF | |
13904 | ||
13905 | else | |
698dcdb6 VZ |
13906 | echo "$ac_t""no" 1>&6 |
13907 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
d1a8d972 | 13908 | echo "configure:13909: checking for sched_yield in -lposix4" >&5 |
698dcdb6 VZ |
13909 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
13910 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13912 | else |
698dcdb6 | 13913 | ac_save_LIBS="$LIBS" |
1e487827 | 13914 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13915 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 13916 | #line 13917 "configure" |
10f2d63a VZ |
13917 | #include "confdefs.h" |
13918 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13919 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13920 | builtin and then its argument prototype would still apply. */ |
13921 | char sched_yield(); | |
13922 | ||
13923 | int main() { | |
13924 | sched_yield() | |
13925 | ; return 0; } | |
13926 | EOF | |
d1a8d972 | 13927 | if { (eval echo configure:13928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13928 | rm -rf conftest* |
13929 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13930 | else | |
13931 | echo "configure: failed program was:" >&5 | |
13932 | cat conftest.$ac_ext >&5 | |
13933 | rm -rf conftest* | |
13934 | eval "ac_cv_lib_$ac_lib_var=no" | |
13935 | fi | |
13936 | rm -f conftest* | |
13937 | LIBS="$ac_save_LIBS" | |
13938 | ||
13939 | fi | |
13940 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13941 | echo "$ac_t""yes" 1>&6 | |
13942 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13943 | #define HAVE_SCHED_YIELD 1 |
13944 | EOF | |
13945 | POSIX4_LINK="-lposix4" | |
13946 | else | |
698dcdb6 VZ |
13947 | echo "$ac_t""no" 1>&6 |
13948 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
13949 | ||
6232543b | 13950 | fi |
10f2d63a | 13951 | |
698dcdb6 | 13952 | |
1e487827 | 13953 | fi |
703e0a69 | 13954 | |
698dcdb6 | 13955 | |
f6bcfd97 | 13956 | HAVE_PRIOR_FUNCS=0 |
698dcdb6 | 13957 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 |
d1a8d972 | 13958 | echo "configure:13959: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13959 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
13960 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13962 | else |
698dcdb6 | 13963 | ac_save_LIBS="$LIBS" |
10f2d63a | 13964 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13965 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 13966 | #line 13967 "configure" |
10f2d63a VZ |
13967 | #include "confdefs.h" |
13968 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13969 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13970 | builtin and then its argument prototype would still apply. */ |
13971 | char pthread_attr_getschedpolicy(); | |
13972 | ||
13973 | int main() { | |
13974 | pthread_attr_getschedpolicy() | |
13975 | ; return 0; } | |
13976 | EOF | |
d1a8d972 | 13977 | if { (eval echo configure:13978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13978 | rm -rf conftest* |
13979 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13980 | else | |
13981 | echo "configure: failed program was:" >&5 | |
13982 | cat conftest.$ac_ext >&5 | |
13983 | rm -rf conftest* | |
13984 | eval "ac_cv_lib_$ac_lib_var=no" | |
13985 | fi | |
13986 | rm -f conftest* | |
13987 | LIBS="$ac_save_LIBS" | |
13988 | ||
13989 | fi | |
13990 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13991 | echo "$ac_t""yes" 1>&6 | |
13992 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d1a8d972 | 13993 | echo "configure:13994: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13994 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
13995 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13997 | else | |
13998 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 13999 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14000 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 14001 | #line 14002 "configure" |
f6bcfd97 BP |
14002 | #include "confdefs.h" |
14003 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14004 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14005 | builtin and then its argument prototype would still apply. */ |
14006 | char pthread_attr_setschedparam(); | |
14007 | ||
14008 | int main() { | |
14009 | pthread_attr_setschedparam() | |
14010 | ; return 0; } | |
14011 | EOF | |
d1a8d972 | 14012 | if { (eval echo configure:14013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14013 | rm -rf conftest* |
14014 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14015 | else | |
14016 | echo "configure: failed program was:" >&5 | |
14017 | cat conftest.$ac_ext >&5 | |
14018 | rm -rf conftest* | |
14019 | eval "ac_cv_lib_$ac_lib_var=no" | |
14020 | fi | |
14021 | rm -f conftest* | |
14022 | LIBS="$ac_save_LIBS" | |
14023 | ||
14024 | fi | |
14025 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14026 | echo "$ac_t""yes" 1>&6 | |
14027 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d1a8d972 | 14028 | echo "configure:14029: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14029 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14030 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14031 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14032 | else | |
14033 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 14034 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14035 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 14036 | #line 14037 "configure" |
f6bcfd97 BP |
14037 | #include "confdefs.h" |
14038 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14039 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14040 | builtin and then its argument prototype would still apply. */ |
14041 | char sched_get_priority_max(); | |
14042 | ||
14043 | int main() { | |
14044 | sched_get_priority_max() | |
14045 | ; return 0; } | |
14046 | EOF | |
d1a8d972 | 14047 | if { (eval echo configure:14048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14048 | rm -rf conftest* |
14049 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14050 | else | |
14051 | echo "configure: failed program was:" >&5 | |
14052 | cat conftest.$ac_ext >&5 | |
14053 | rm -rf conftest* | |
14054 | eval "ac_cv_lib_$ac_lib_var=no" | |
14055 | fi | |
14056 | rm -f conftest* | |
14057 | LIBS="$ac_save_LIBS" | |
14058 | ||
14059 | fi | |
14060 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14061 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 14062 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 14063 | else |
698dcdb6 VZ |
14064 | echo "$ac_t""no" 1>&6 |
14065 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
d1a8d972 | 14066 | echo "configure:14067: checking for sched_get_priority_max in -lposix4" >&5 |
698dcdb6 VZ |
14067 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14068 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14069 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14070 | else |
698dcdb6 | 14071 | ac_save_LIBS="$LIBS" |
1e487827 | 14072 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14073 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 14074 | #line 14075 "configure" |
10f2d63a | 14075 | #include "confdefs.h" |
6232543b | 14076 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 14077 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14078 | builtin and then its argument prototype would still apply. */ |
14079 | char sched_get_priority_max(); | |
14080 | ||
14081 | int main() { | |
14082 | sched_get_priority_max() | |
14083 | ; return 0; } | |
14084 | EOF | |
d1a8d972 | 14085 | if { (eval echo configure:14086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14086 | rm -rf conftest* |
14087 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14088 | else | |
14089 | echo "configure: failed program was:" >&5 | |
14090 | cat conftest.$ac_ext >&5 | |
14091 | rm -rf conftest* | |
14092 | eval "ac_cv_lib_$ac_lib_var=no" | |
14093 | fi | |
14094 | rm -f conftest* | |
14095 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14096 | |
698dcdb6 VZ |
14097 | fi |
14098 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14099 | echo "$ac_t""yes" 1>&6 | |
14100 | ||
f6bcfd97 BP |
14101 | HAVE_PRIOR_FUNCS=1 |
14102 | POSIX4_LINK="-lposix4" | |
698dcdb6 VZ |
14103 | |
14104 | else | |
14105 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14106 | fi |
14107 | ||
698dcdb6 | 14108 | |
10f2d63a VZ |
14109 | fi |
14110 | ||
698dcdb6 VZ |
14111 | |
14112 | else | |
14113 | echo "$ac_t""no" 1>&6 | |
6232543b | 14114 | fi |
10f2d63a | 14115 | |
698dcdb6 VZ |
14116 | |
14117 | else | |
14118 | echo "$ac_t""no" 1>&6 | |
1e487827 | 14119 | fi |
703e0a69 | 14120 | |
698dcdb6 | 14121 | |
f6bcfd97 | 14122 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
698dcdb6 | 14123 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
14124 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
14125 | EOF | |
14126 | ||
14127 | else | |
698dcdb6 | 14128 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
f6bcfd97 BP |
14129 | fi |
14130 | ||
698dcdb6 | 14131 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
d1a8d972 | 14132 | echo "configure:14133: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14133 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
14134 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14135 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14136 | else |
698dcdb6 | 14137 | ac_save_LIBS="$LIBS" |
10f2d63a | 14138 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14139 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 14140 | #line 14141 "configure" |
10f2d63a VZ |
14141 | #include "confdefs.h" |
14142 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14143 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14144 | builtin and then its argument prototype would still apply. */ |
14145 | char pthread_cancel(); | |
14146 | ||
14147 | int main() { | |
14148 | pthread_cancel() | |
14149 | ; return 0; } | |
14150 | EOF | |
d1a8d972 | 14151 | if { (eval echo configure:14152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14152 | rm -rf conftest* |
14153 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14154 | else | |
14155 | echo "configure: failed program was:" >&5 | |
14156 | cat conftest.$ac_ext >&5 | |
14157 | rm -rf conftest* | |
14158 | eval "ac_cv_lib_$ac_lib_var=no" | |
14159 | fi | |
14160 | rm -f conftest* | |
14161 | LIBS="$ac_save_LIBS" | |
14162 | ||
14163 | fi | |
14164 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14165 | echo "$ac_t""yes" 1>&6 | |
14166 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14167 | #define HAVE_PTHREAD_CANCEL 1 |
14168 | EOF | |
14169 | ||
14170 | else | |
698dcdb6 VZ |
14171 | echo "$ac_t""no" 1>&6 |
14172 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10f2d63a VZ |
14173 | fi |
14174 | ||
1e487827 | 14175 | |
698dcdb6 | 14176 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
d1a8d972 | 14177 | echo "configure:14178: checking for pthread_cleanup_push/pop" >&5 |
698dcdb6 VZ |
14178 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
14179 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14180 | else | |
14181 | ||
14182 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 14183 | #line 14184 "configure" |
10f2d63a VZ |
14184 | #include "confdefs.h" |
14185 | #include <pthread.h> | |
698dcdb6 | 14186 | int main() { |
10f2d63a VZ |
14187 | |
14188 | pthread_cleanup_push(NULL, NULL); | |
14189 | pthread_cleanup_pop(0); | |
698dcdb6 VZ |
14190 | |
14191 | ; return 0; } | |
14192 | EOF | |
d1a8d972 | 14193 | if { (eval echo configure:14194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14194 | rm -rf conftest* |
14195 | ||
10f2d63a | 14196 | wx_cv_func_pthread_cleanup_push=yes |
698dcdb6 | 14197 | |
10f2d63a | 14198 | else |
698dcdb6 VZ |
14199 | echo "configure: failed program was:" >&5 |
14200 | cat conftest.$ac_ext >&5 | |
14201 | rm -rf conftest* | |
14202 | ||
10f2d63a | 14203 | wx_cv_func_pthread_cleanup_push=no |
698dcdb6 | 14204 | |
6232543b | 14205 | fi |
698dcdb6 VZ |
14206 | rm -f conftest* |
14207 | ||
1e487827 | 14208 | fi |
698dcdb6 VZ |
14209 | |
14210 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10f2d63a | 14211 | |
d9b9876f | 14212 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
698dcdb6 | 14213 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14214 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
14215 | EOF | |
14216 | ||
14217 | fi | |
14218 | ||
698dcdb6 VZ |
14219 | |
14220 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
d1a8d972 | 14221 | echo "configure:14222: checking for pthread_mutexattr_t" >&5 |
698dcdb6 VZ |
14222 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
14223 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d9b9876f | 14224 | else |
698dcdb6 VZ |
14225 | |
14226 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 14227 | #line 14228 "configure" |
d9b9876f VZ |
14228 | #include "confdefs.h" |
14229 | #include <pthread.h> | |
698dcdb6 | 14230 | int main() { |
d9b9876f VZ |
14231 | |
14232 | pthread_mutexattr_t attr; | |
14233 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
698dcdb6 VZ |
14234 | |
14235 | ; return 0; } | |
14236 | EOF | |
d1a8d972 | 14237 | if { (eval echo configure:14238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14238 | rm -rf conftest* |
14239 | ||
d9b9876f | 14240 | wx_cv_type_pthread_mutexattr_t=yes |
698dcdb6 | 14241 | |
d9b9876f | 14242 | else |
698dcdb6 VZ |
14243 | echo "configure: failed program was:" >&5 |
14244 | cat conftest.$ac_ext >&5 | |
14245 | rm -rf conftest* | |
14246 | ||
d9b9876f | 14247 | wx_cv_type_pthread_mutexattr_t=no |
698dcdb6 VZ |
14248 | |
14249 | ||
6232543b | 14250 | fi |
698dcdb6 VZ |
14251 | rm -f conftest* |
14252 | ||
1e487827 | 14253 | fi |
698dcdb6 VZ |
14254 | |
14255 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
d9b9876f VZ |
14256 | |
14257 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
698dcdb6 | 14258 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14259 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
14260 | EOF | |
14261 | ||
14262 | else | |
698dcdb6 | 14263 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
d1a8d972 | 14264 | echo "configure:14265: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
698dcdb6 VZ |
14265 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
14266 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14267 | else | |
14268 | ||
14269 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 14270 | #line 14271 "configure" |
d9b9876f VZ |
14271 | #include "confdefs.h" |
14272 | #include <pthread.h> | |
698dcdb6 | 14273 | int main() { |
d9b9876f VZ |
14274 | |
14275 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
698dcdb6 VZ |
14276 | |
14277 | ; return 0; } | |
14278 | EOF | |
d1a8d972 | 14279 | if { (eval echo configure:14280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14280 | rm -rf conftest* |
14281 | ||
d9b9876f | 14282 | wx_cv_type_pthread_rec_mutex_init=yes |
698dcdb6 | 14283 | |
d9b9876f | 14284 | else |
698dcdb6 VZ |
14285 | echo "configure: failed program was:" >&5 |
14286 | cat conftest.$ac_ext >&5 | |
14287 | rm -rf conftest* | |
14288 | ||
d9b9876f | 14289 | wx_cv_type_pthread_rec_mutex_init=no |
698dcdb6 VZ |
14290 | |
14291 | ||
6232543b | 14292 | fi |
698dcdb6 VZ |
14293 | rm -f conftest* |
14294 | ||
1e487827 | 14295 | fi |
698dcdb6 VZ |
14296 | |
14297 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
3765e936 | 14298 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
698dcdb6 | 14299 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14300 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
14301 | EOF | |
14302 | ||
14303 | else | |
698dcdb6 | 14304 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
d9b9876f VZ |
14305 | fi |
14306 | fi | |
14307 | ||
10f2d63a | 14308 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
14309 | |
14310 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
14311 | CFLAGS="${CFLAGS} -mt" | |
14312 | CXXFLAGS="${CXXFLAGS} -mt" | |
14313 | LDFLAGS="${LDFLAGS} -mt" | |
14314 | fi | |
10f2d63a VZ |
14315 | fi |
14316 | ||
14317 | fi | |
14318 | ||
14319 | if test "$wxUSE_THREADS" = "yes"; then | |
698dcdb6 | 14320 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14321 | #define wxUSE_THREADS 1 |
14322 | EOF | |
14323 | ||
698dcdb6 | 14324 | |
2c6025bc | 14325 | if test "$wxUSE_MAC" = "0"; then |
10f2d63a | 14326 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
14327 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
14328 | fi | |
10f2d63a VZ |
14329 | |
14330 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
14331 | else | |
14332 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
698dcdb6 | 14333 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
d1a8d972 | 14334 | echo "configure:14335: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
14335 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
14336 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
14337 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
698dcdb6 | 14338 | echo "$ac_t""yes" 1>&6 |
ab9b9eab | 14339 | else |
698dcdb6 | 14340 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
14341 | fi |
14342 | fi | |
14343 | fi | |
14344 | ||
6f72b082 | 14345 | if test "$WXGTK20" = 1 ; then |
698dcdb6 | 14346 | cat >> confdefs.h <<EOF |
6f72b082 | 14347 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
14348 | EOF |
14349 | ||
14350 | WXGTK12=1 | |
14351 | fi | |
14352 | ||
10f2d63a | 14353 | if test "$WXGTK12" = 1 ; then |
698dcdb6 | 14354 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
14355 | #define __WXGTK12__ $WXGTK12 |
14356 | EOF | |
14357 | ||
14358 | fi | |
14359 | ||
f6bcfd97 | 14360 | if test "$WXGTK127" = 1 ; then |
698dcdb6 | 14361 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
14362 | #define __WXGTK127__ $WXGTK127 |
14363 | EOF | |
14364 | ||
14365 | fi | |
14366 | ||
10f2d63a VZ |
14367 | if test "$WXWINE" = 1 ; then |
14368 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
14369 | fi | |
14370 | ||
b4085ce6 | 14371 | if test "$wxUSE_MAC" = 1 ; then |
2c6025bc | 14372 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON" |
ea5999b9 | 14373 | CFLAGS="${CFLAGS} -fno-common -fpascal-strings" |
0c451ef3 | 14374 | CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings" |
2f51a9ec GD |
14375 | # Extract the first word of "Rez", so it can be a program name with args. |
14376 | set dummy Rez; ac_word=$2 | |
698dcdb6 | 14377 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d1a8d972 | 14378 | echo "configure:14379: checking for $ac_word" >&5 |
698dcdb6 VZ |
14379 | if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then |
14380 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14381 | else |
14382 | if test -n "$REZ"; then | |
14383 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
14384 | else | |
698dcdb6 VZ |
14385 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14386 | ac_dummy="$PATH" | |
14387 | for ac_dir in $ac_dummy; do | |
14388 | test -z "$ac_dir" && ac_dir=. | |
14389 | if test -f $ac_dir/$ac_word; then | |
14390 | ac_cv_prog_REZ="Rez" | |
14391 | break | |
14392 | fi | |
14393 | done | |
14394 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14395 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
14396 | fi | |
14397 | fi | |
698dcdb6 | 14398 | REZ="$ac_cv_prog_REZ" |
2f51a9ec | 14399 | if test -n "$REZ"; then |
698dcdb6 | 14400 | echo "$ac_t""$REZ" 1>&6 |
2f51a9ec | 14401 | else |
698dcdb6 | 14402 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14403 | fi |
14404 | ||
14405 | # Extract the first word of "Derez", so it can be a program name with args. | |
14406 | set dummy Derez; ac_word=$2 | |
698dcdb6 | 14407 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
d1a8d972 | 14408 | echo "configure:14409: checking for $ac_word" >&5 |
698dcdb6 VZ |
14409 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
14410 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14411 | else |
14412 | if test -n "$DEREZ"; then | |
14413 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
14414 | else | |
698dcdb6 VZ |
14415 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14416 | ac_dummy="$PATH" | |
14417 | for ac_dir in $ac_dummy; do | |
14418 | test -z "$ac_dir" && ac_dir=. | |
14419 | if test -f $ac_dir/$ac_word; then | |
14420 | ac_cv_prog_DEREZ="Derez" | |
14421 | break | |
14422 | fi | |
14423 | done | |
14424 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14425 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" |
14426 | fi | |
14427 | fi | |
698dcdb6 | 14428 | DEREZ="$ac_cv_prog_DEREZ" |
2f51a9ec | 14429 | if test -n "$DEREZ"; then |
698dcdb6 | 14430 | echo "$ac_t""$DEREZ" 1>&6 |
2f51a9ec | 14431 | else |
698dcdb6 | 14432 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14433 | fi |
14434 | ||
14435 | RESCOMP=${REZ} | |
14436 | REZFLAGS="-d __UNIX__ -useDF" | |
14437 | DEREZFLAGS="Carbon.r -useDF" | |
14438 | RESFLAGS="Carbon.r -t APPL" | |
14439 | LIBWXMACRES="\$(LIBWX_MACRES)" | |
14440 | LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)" | |
b4085ce6 GD |
14441 | fi |
14442 | ||
10f2d63a VZ |
14443 | if test "$wxUSE_CYGWIN" = 1 ; then |
14444 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
14445 | fi | |
14446 | ||
14447 | WXDEBUG= | |
14448 | ||
14449 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
14450 | WXDEBUG="-g" | |
14451 | wxUSE_OPTIMISE=no | |
14452 | fi | |
14453 | ||
14454 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
14455 | wxUSE_DEBUG_INFO=yes | |
14456 | WXDEBUG="-ggdb" | |
14457 | fi | |
14458 | ||
14459 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
698dcdb6 | 14460 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14461 | #define WXDEBUG 1 |
14462 | EOF | |
14463 | ||
14464 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
14465 | else | |
14466 | if test "$wxUSE_GTK" = 1 ; then | |
14467 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
14468 | fi | |
14469 | fi | |
14470 | ||
14471 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
698dcdb6 | 14472 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14473 | #define wxUSE_MEMORY_TRACING 1 |
14474 | EOF | |
14475 | ||
698dcdb6 | 14476 | cat >> confdefs.h <<\EOF |
10f2d63a | 14477 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
14478 | EOF |
14479 | ||
698dcdb6 | 14480 | cat >> confdefs.h <<\EOF |
47c13eb7 | 14481 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
14482 | EOF |
14483 | ||
14484 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
14485 | fi | |
14486 | ||
14487 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
14488 | DMALLOC_LINK="-ldmalloc" | |
14489 | fi | |
14490 | ||
14491 | PROFILE= | |
14492 | if test "$wxUSE_PROFILE" = "yes" ; then | |
14493 | PROFILE="-pg" | |
14494 | fi | |
14495 | ||
14496 | DEP_INFO_FLAGS= | |
caa2c79b | 14497 | CODE_GEN_FLAGS= |
0f3f1cbc | 14498 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
14499 | if test "$GCC" = yes ; then |
14500 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 14501 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
14502 | fi |
14503 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 14504 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
14505 | fi |
14506 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 14507 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
14508 | fi |
14509 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
14510 | DEP_INFO_FLAGS="-MMD" | |
14511 | fi | |
14512 | fi | |
14513 | ||
698dcdb6 | 14514 | |
10f2d63a VZ |
14515 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
14516 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
14517 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
14518 | OPTIMISE= | |
14519 | else | |
14520 | if test "$GCC" = yes ; then | |
14521 | OPTIMISE="-O2" | |
14522 | case "${host}" in | |
14523 | i586-*-*|i686-*-* ) | |
14524 | OPTIMISE="${OPTIMISE} " | |
14525 | ;; | |
14526 | esac | |
14527 | else | |
14528 | OPTIMISE="-O" | |
14529 | fi | |
14530 | fi | |
14531 | ||
54276ccf VZ |
14532 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
14533 | cat >> confdefs.h <<\EOF | |
14534 | #define WXWIN_COMPATIBILITY_2 1 | |
14535 | EOF | |
14536 | ||
14537 | ||
14538 | WXWIN_COMPATIBILITY_2_2="yes" | |
14539 | fi | |
14540 | ||
14541 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
14542 | cat >> confdefs.h <<\EOF | |
14543 | #define WXWIN_COMPATIBILITY_2_2 1 | |
14544 | EOF | |
14545 | ||
14546 | fi | |
14547 | ||
698dcdb6 | 14548 | |
10f2d63a | 14549 | ZLIB_INCLUDE= |
422107f9 | 14550 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
698dcdb6 | 14551 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14552 | #define wxUSE_ZLIB 1 |
14553 | EOF | |
14554 | ||
422107f9 VZ |
14555 | if test "$wxUSE_ZLIB" = "yes" ; then |
14556 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
14557 | else | |
14558 | ZLIB_LINK= | |
698dcdb6 VZ |
14559 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
14560 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
d1a8d972 | 14561 | echo "configure:14562: checking for zlib.h" >&5 |
698dcdb6 VZ |
14562 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14563 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14564 | else | |
14565 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 14566 | #line 14567 "configure" |
422107f9 VZ |
14567 | #include "confdefs.h" |
14568 | #include <zlib.h> | |
698dcdb6 VZ |
14569 | EOF |
14570 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 14571 | { (eval echo configure:14572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14572 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14573 | if test -z "$ac_err"; then | |
14574 | rm -rf conftest* | |
14575 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14576 | else |
698dcdb6 VZ |
14577 | echo "$ac_err" >&5 |
14578 | echo "configure: failed program was:" >&5 | |
422107f9 | 14579 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14580 | rm -rf conftest* |
14581 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14582 | fi |
698dcdb6 | 14583 | rm -f conftest* |
422107f9 | 14584 | fi |
698dcdb6 VZ |
14585 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14586 | echo "$ac_t""yes" 1>&6 | |
14587 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
d1a8d972 | 14588 | echo "configure:14589: checking for deflate in -lz" >&5 |
698dcdb6 VZ |
14589 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
14590 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14592 | else |
698dcdb6 | 14593 | ac_save_LIBS="$LIBS" |
422107f9 | 14594 | LIBS="-lz $LIBS" |
698dcdb6 | 14595 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 14596 | #line 14597 "configure" |
422107f9 VZ |
14597 | #include "confdefs.h" |
14598 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14599 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14600 | builtin and then its argument prototype would still apply. */ |
14601 | char deflate(); | |
14602 | ||
14603 | int main() { | |
14604 | deflate() | |
14605 | ; return 0; } | |
14606 | EOF | |
d1a8d972 | 14607 | if { (eval echo configure:14608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14608 | rm -rf conftest* |
14609 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14610 | else | |
14611 | echo "configure: failed program was:" >&5 | |
14612 | cat conftest.$ac_ext >&5 | |
14613 | rm -rf conftest* | |
14614 | eval "ac_cv_lib_$ac_lib_var=no" | |
14615 | fi | |
14616 | rm -f conftest* | |
14617 | LIBS="$ac_save_LIBS" | |
14618 | ||
14619 | fi | |
14620 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14621 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14622 | ZLIB_LINK="-lz" |
698dcdb6 VZ |
14623 | else |
14624 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14625 | fi |
14626 | ||
698dcdb6 VZ |
14627 | else |
14628 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14629 | fi |
14630 | ||
14631 | if test "x$ZLIB_LINK" = "x" ; then | |
698dcdb6 | 14632 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } |
422107f9 VZ |
14633 | fi |
14634 | fi | |
10f2d63a VZ |
14635 | fi |
14636 | ||
14637 | PNG_INCLUDE= | |
422107f9 | 14638 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
698dcdb6 | 14639 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14640 | #define wxUSE_LIBPNG 1 |
14641 | EOF | |
14642 | ||
41fd4136 | 14643 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
698dcdb6 | 14644 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
422107f9 VZ |
14645 | wxUSE_LIBPNG=yes |
14646 | fi | |
14647 | ||
14648 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
14649 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
14650 | else | |
14651 | PNG_LINK= | |
698dcdb6 VZ |
14652 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
14653 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
d1a8d972 | 14654 | echo "configure:14655: checking for png.h" >&5 |
698dcdb6 VZ |
14655 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14657 | else | |
14658 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 14659 | #line 14660 "configure" |
422107f9 VZ |
14660 | #include "confdefs.h" |
14661 | #include <png.h> | |
698dcdb6 VZ |
14662 | EOF |
14663 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 14664 | { (eval echo configure:14665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14665 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14666 | if test -z "$ac_err"; then | |
14667 | rm -rf conftest* | |
14668 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14669 | else |
698dcdb6 VZ |
14670 | echo "$ac_err" >&5 |
14671 | echo "configure: failed program was:" >&5 | |
422107f9 | 14672 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14673 | rm -rf conftest* |
14674 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14675 | fi |
698dcdb6 | 14676 | rm -f conftest* |
422107f9 | 14677 | fi |
698dcdb6 VZ |
14678 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14679 | echo "$ac_t""yes" 1>&6 | |
14680 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
d1a8d972 | 14681 | echo "configure:14682: checking for png_check_sig in -lpng" >&5 |
698dcdb6 VZ |
14682 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
14683 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14685 | else |
698dcdb6 | 14686 | ac_save_LIBS="$LIBS" |
422107f9 | 14687 | LIBS="-lpng -lz -lm $LIBS" |
698dcdb6 | 14688 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 14689 | #line 14690 "configure" |
422107f9 VZ |
14690 | #include "confdefs.h" |
14691 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14692 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14693 | builtin and then its argument prototype would still apply. */ |
14694 | char png_check_sig(); | |
14695 | ||
14696 | int main() { | |
14697 | png_check_sig() | |
14698 | ; return 0; } | |
14699 | EOF | |
d1a8d972 | 14700 | if { (eval echo configure:14701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14701 | rm -rf conftest* |
14702 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14703 | else | |
14704 | echo "configure: failed program was:" >&5 | |
14705 | cat conftest.$ac_ext >&5 | |
14706 | rm -rf conftest* | |
14707 | eval "ac_cv_lib_$ac_lib_var=no" | |
14708 | fi | |
14709 | rm -f conftest* | |
14710 | LIBS="$ac_save_LIBS" | |
14711 | ||
14712 | fi | |
14713 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14714 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14715 | PNG_LINK="-lpng" |
698dcdb6 VZ |
14716 | else |
14717 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14718 | fi |
14719 | ||
698dcdb6 VZ |
14720 | |
14721 | else | |
14722 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14723 | fi |
14724 | ||
14725 | if test "x$PNG_LINK" = "x" ; then | |
698dcdb6 | 14726 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
14727 | fi |
14728 | fi | |
14729 | ||
10f2d63a VZ |
14730 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
14731 | fi | |
14732 | ||
14733 | JPEG_INCLUDE= | |
422107f9 | 14734 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
698dcdb6 | 14735 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14736 | #define wxUSE_LIBJPEG 1 |
14737 | EOF | |
14738 | ||
422107f9 VZ |
14739 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
14740 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
14741 | else | |
14742 | JPEG_LINK= | |
463abc64 | 14743 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
d1a8d972 | 14744 | echo "configure:14745: checking for jpeglib.h" >&5 |
463abc64 | 14745 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
698dcdb6 VZ |
14746 | echo $ac_n "(cached) $ac_c" 1>&6 |
14747 | else | |
14748 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 14749 | #line 14750 "configure" |
422107f9 | 14750 | #include "confdefs.h" |
463abc64 VZ |
14751 | |
14752 | #undef HAVE_STDLIB_H | |
14753 | #include <stdio.h> | |
14754 | #include <jpeglib.h> | |
14755 | ||
14756 | int main() { | |
14757 | ||
14758 | ||
14759 | ; return 0; } | |
698dcdb6 | 14760 | EOF |
d1a8d972 | 14761 | if { (eval echo configure:14762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14762 | rm -rf conftest* |
463abc64 | 14763 | ac_cv_header_jpeglib_h=yes |
6232543b | 14764 | else |
698dcdb6 | 14765 | echo "configure: failed program was:" >&5 |
422107f9 | 14766 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14767 | rm -rf conftest* |
463abc64 VZ |
14768 | ac_cv_header_jpeglib_h=no |
14769 | ||
422107f9 | 14770 | fi |
698dcdb6 | 14771 | rm -f conftest* |
463abc64 | 14772 | |
422107f9 | 14773 | fi |
463abc64 VZ |
14774 | |
14775 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
14776 | ||
14777 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
14778 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
d1a8d972 | 14779 | echo "configure:14780: checking for jpeg_read_header in -ljpeg" >&5 |
698dcdb6 VZ |
14780 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
14781 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14782 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14783 | else |
698dcdb6 | 14784 | ac_save_LIBS="$LIBS" |
422107f9 | 14785 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 14786 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 14787 | #line 14788 "configure" |
422107f9 VZ |
14788 | #include "confdefs.h" |
14789 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14790 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14791 | builtin and then its argument prototype would still apply. */ |
14792 | char jpeg_read_header(); | |
14793 | ||
14794 | int main() { | |
14795 | jpeg_read_header() | |
14796 | ; return 0; } | |
14797 | EOF | |
d1a8d972 | 14798 | if { (eval echo configure:14799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14799 | rm -rf conftest* |
14800 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14801 | else | |
14802 | echo "configure: failed program was:" >&5 | |
14803 | cat conftest.$ac_ext >&5 | |
14804 | rm -rf conftest* | |
14805 | eval "ac_cv_lib_$ac_lib_var=no" | |
14806 | fi | |
14807 | rm -f conftest* | |
14808 | LIBS="$ac_save_LIBS" | |
14809 | ||
14810 | fi | |
14811 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14812 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14813 | JPEG_LINK="-ljpeg" |
698dcdb6 VZ |
14814 | else |
14815 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14816 | fi |
14817 | ||
463abc64 | 14818 | fi |
422107f9 VZ |
14819 | |
14820 | if test "x$JPEG_LINK" = "x" ; then | |
698dcdb6 | 14821 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
14822 | fi |
14823 | fi | |
10f2d63a VZ |
14824 | fi |
14825 | ||
c7a2bf27 | 14826 | TIFF_INCLUDE= |
0dcf9893 | 14827 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
698dcdb6 | 14828 | cat >> confdefs.h <<\EOF |
c7a2bf27 RR |
14829 | #define wxUSE_LIBTIFF 1 |
14830 | EOF | |
14831 | ||
665bbe97 | 14832 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
14833 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
14834 | else | |
14835 | TIFF_LINK= | |
698dcdb6 VZ |
14836 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
14837 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
d1a8d972 | 14838 | echo "configure:14839: checking for tiffio.h" >&5 |
698dcdb6 VZ |
14839 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14840 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14841 | else | |
14842 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 14843 | #line 14844 "configure" |
0dcf9893 VZ |
14844 | #include "confdefs.h" |
14845 | #include <tiffio.h> | |
698dcdb6 VZ |
14846 | EOF |
14847 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 14848 | { (eval echo configure:14849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14849 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14850 | if test -z "$ac_err"; then | |
14851 | rm -rf conftest* | |
14852 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14853 | else |
698dcdb6 VZ |
14854 | echo "$ac_err" >&5 |
14855 | echo "configure: failed program was:" >&5 | |
0dcf9893 | 14856 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14857 | rm -rf conftest* |
14858 | eval "ac_cv_header_$ac_safe=no" | |
0dcf9893 | 14859 | fi |
698dcdb6 | 14860 | rm -f conftest* |
0dcf9893 | 14861 | fi |
698dcdb6 VZ |
14862 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14863 | echo "$ac_t""yes" 1>&6 | |
14864 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
d1a8d972 | 14865 | echo "configure:14866: checking for TIFFError in -ltiff" >&5 |
698dcdb6 VZ |
14866 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
14867 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14868 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0dcf9893 | 14869 | else |
698dcdb6 | 14870 | ac_save_LIBS="$LIBS" |
0dcf9893 | 14871 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 14872 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 14873 | #line 14874 "configure" |
0dcf9893 VZ |
14874 | #include "confdefs.h" |
14875 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14876 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14877 | builtin and then its argument prototype would still apply. */ |
14878 | char TIFFError(); | |
14879 | ||
14880 | int main() { | |
14881 | TIFFError() | |
14882 | ; return 0; } | |
14883 | EOF | |
d1a8d972 | 14884 | if { (eval echo configure:14885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14885 | rm -rf conftest* |
14886 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14887 | else | |
14888 | echo "configure: failed program was:" >&5 | |
14889 | cat conftest.$ac_ext >&5 | |
14890 | rm -rf conftest* | |
14891 | eval "ac_cv_lib_$ac_lib_var=no" | |
14892 | fi | |
14893 | rm -f conftest* | |
14894 | LIBS="$ac_save_LIBS" | |
14895 | ||
14896 | fi | |
14897 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14898 | echo "$ac_t""yes" 1>&6 | |
0dcf9893 | 14899 | TIFF_LINK="-ltiff" |
698dcdb6 VZ |
14900 | else |
14901 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
14902 | fi |
14903 | ||
698dcdb6 VZ |
14904 | else |
14905 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
14906 | fi |
14907 | ||
14908 | if test "x$TIFF_LINK" = "x" ; then | |
698dcdb6 | 14909 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } |
0dcf9893 VZ |
14910 | fi |
14911 | fi | |
c7a2bf27 RR |
14912 | fi |
14913 | ||
3fed1840 RR |
14914 | FREETYPE_INCLUDE= |
14915 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
698dcdb6 | 14916 | cat >> confdefs.h <<\EOF |
3fed1840 RR |
14917 | #define wxUSE_FREETYPE 1 |
14918 | EOF | |
14919 | ||
14920 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
14921 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
14922 | else | |
14923 | FREETYPE_LINK= | |
698dcdb6 VZ |
14924 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` |
14925 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
d1a8d972 | 14926 | echo "configure:14927: checking for freetype.h" >&5 |
698dcdb6 VZ |
14927 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14928 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14929 | else | |
14930 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 14931 | #line 14932 "configure" |
3fed1840 RR |
14932 | #include "confdefs.h" |
14933 | #include <freetype.h> | |
698dcdb6 VZ |
14934 | EOF |
14935 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 14936 | { (eval echo configure:14937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14937 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14938 | if test -z "$ac_err"; then | |
14939 | rm -rf conftest* | |
14940 | eval "ac_cv_header_$ac_safe=yes" | |
3fed1840 | 14941 | else |
698dcdb6 VZ |
14942 | echo "$ac_err" >&5 |
14943 | echo "configure: failed program was:" >&5 | |
3fed1840 | 14944 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14945 | rm -rf conftest* |
14946 | eval "ac_cv_header_$ac_safe=no" | |
3fed1840 | 14947 | fi |
698dcdb6 | 14948 | rm -f conftest* |
3fed1840 | 14949 | fi |
698dcdb6 VZ |
14950 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14951 | echo "$ac_t""yes" 1>&6 | |
14952 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
d1a8d972 | 14953 | echo "configure:14954: checking for FT_Render_Glyph in -lfreetype" >&5 |
698dcdb6 VZ |
14954 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
14955 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14956 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3fed1840 | 14957 | else |
698dcdb6 | 14958 | ac_save_LIBS="$LIBS" |
3fed1840 | 14959 | LIBS="-lfreetype -lm $LIBS" |
698dcdb6 | 14960 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 14961 | #line 14962 "configure" |
3fed1840 RR |
14962 | #include "confdefs.h" |
14963 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14964 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14965 | builtin and then its argument prototype would still apply. */ |
14966 | char FT_Render_Glyph(); | |
14967 | ||
14968 | int main() { | |
14969 | FT_Render_Glyph() | |
14970 | ; return 0; } | |
14971 | EOF | |
d1a8d972 | 14972 | if { (eval echo configure:14973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14973 | rm -rf conftest* |
14974 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14975 | else | |
14976 | echo "configure: failed program was:" >&5 | |
14977 | cat conftest.$ac_ext >&5 | |
14978 | rm -rf conftest* | |
14979 | eval "ac_cv_lib_$ac_lib_var=no" | |
14980 | fi | |
14981 | rm -f conftest* | |
14982 | LIBS="$ac_save_LIBS" | |
14983 | ||
14984 | fi | |
14985 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14986 | echo "$ac_t""yes" 1>&6 | |
3fed1840 | 14987 | FREETYPE_LINK="-lfreetype" |
698dcdb6 VZ |
14988 | else |
14989 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
14990 | fi |
14991 | ||
698dcdb6 VZ |
14992 | |
14993 | else | |
14994 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
14995 | fi |
14996 | ||
14997 | if test "x$FREETYPE_LINK" = "x" ; then | |
698dcdb6 | 14998 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } |
3fed1840 RR |
14999 | fi |
15000 | fi | |
15001 | fi | |
15002 | ||
10f2d63a | 15003 | if test "$wxUSE_OPENGL" = "yes"; then |
698dcdb6 VZ |
15004 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15005 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
d1a8d972 | 15006 | echo "configure:15007: checking for GL/gl.h" >&5 |
698dcdb6 VZ |
15007 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15008 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15009 | else | |
15010 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 15011 | #line 15012 "configure" |
10f2d63a VZ |
15012 | #include "confdefs.h" |
15013 | #include <GL/gl.h> | |
698dcdb6 VZ |
15014 | EOF |
15015 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 15016 | { (eval echo configure:15017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15017 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15018 | if test -z "$ac_err"; then | |
15019 | rm -rf conftest* | |
15020 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 15021 | else |
698dcdb6 VZ |
15022 | echo "$ac_err" >&5 |
15023 | echo "configure: failed program was:" >&5 | |
10f2d63a | 15024 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15025 | rm -rf conftest* |
15026 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 15027 | fi |
698dcdb6 | 15028 | rm -f conftest* |
10f2d63a | 15029 | fi |
698dcdb6 VZ |
15030 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15031 | echo "$ac_t""yes" 1>&6 | |
15032 | ||
15033 | cat >> confdefs.h <<\EOF | |
bdad4e7e RR |
15034 | #define wxUSE_OPENGL 1 |
15035 | EOF | |
15036 | ||
698dcdb6 | 15037 | cat >> confdefs.h <<\EOF |
bdad4e7e RR |
15038 | #define wxUSE_GLCANVAS 1 |
15039 | EOF | |
15040 | ||
698dcdb6 | 15041 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 |
d1a8d972 | 15042 | echo "configure:15043: checking for glFlush in -lGL" >&5 |
698dcdb6 VZ |
15043 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
15044 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15046 | else |
698dcdb6 | 15047 | ac_save_LIBS="$LIBS" |
bdad4e7e | 15048 | LIBS="-lGL $LIBS" |
698dcdb6 | 15049 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 15050 | #line 15051 "configure" |
10f2d63a VZ |
15051 | #include "confdefs.h" |
15052 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15053 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15054 | builtin and then its argument prototype would still apply. */ |
15055 | char glFlush(); | |
6232543b | 15056 | |
698dcdb6 VZ |
15057 | int main() { |
15058 | glFlush() | |
15059 | ; return 0; } | |
15060 | EOF | |
d1a8d972 | 15061 | if { (eval echo configure:15062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15062 | rm -rf conftest* |
15063 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15064 | else | |
15065 | echo "configure: failed program was:" >&5 | |
15066 | cat conftest.$ac_ext >&5 | |
15067 | rm -rf conftest* | |
15068 | eval "ac_cv_lib_$ac_lib_var=no" | |
15069 | fi | |
15070 | rm -f conftest* | |
15071 | LIBS="$ac_save_LIBS" | |
1e487827 | 15072 | |
698dcdb6 VZ |
15073 | fi |
15074 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15075 | echo "$ac_t""yes" 1>&6 | |
15076 | ||
15077 | OPENGL_LINK="-lGL -lGLU" | |
15078 | ||
10f2d63a | 15079 | else |
698dcdb6 | 15080 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15081 | |
698dcdb6 | 15082 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
d1a8d972 | 15083 | echo "configure:15084: checking for glFlush in -lMesaGL" >&5 |
698dcdb6 VZ |
15084 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
15085 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15087 | else |
698dcdb6 | 15088 | ac_save_LIBS="$LIBS" |
10f2d63a | 15089 | LIBS="-lMesaGL $LIBS" |
698dcdb6 | 15090 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 15091 | #line 15092 "configure" |
10f2d63a VZ |
15092 | #include "confdefs.h" |
15093 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15094 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15095 | builtin and then its argument prototype would still apply. */ |
15096 | char glFlush(); | |
15097 | ||
15098 | int main() { | |
15099 | glFlush() | |
15100 | ; return 0; } | |
15101 | EOF | |
d1a8d972 | 15102 | if { (eval echo configure:15103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15103 | rm -rf conftest* |
15104 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15105 | else | |
15106 | echo "configure: failed program was:" >&5 | |
15107 | cat conftest.$ac_ext >&5 | |
15108 | rm -rf conftest* | |
15109 | eval "ac_cv_lib_$ac_lib_var=no" | |
15110 | fi | |
15111 | rm -f conftest* | |
15112 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15113 | |
698dcdb6 VZ |
15114 | fi |
15115 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15116 | echo "$ac_t""yes" 1>&6 | |
15117 | ||
f6bcfd97 | 15118 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
698dcdb6 VZ |
15119 | |
15120 | else | |
15121 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15122 | fi |
15123 | ||
698dcdb6 | 15124 | |
10f2d63a VZ |
15125 | fi |
15126 | ||
698dcdb6 | 15127 | |
10f2d63a | 15128 | else |
698dcdb6 VZ |
15129 | echo "$ac_t""no" 1>&6 |
15130 | wxUSE_OPENGL=0 | |
10f2d63a VZ |
15131 | fi |
15132 | ||
15133 | fi | |
15134 | ||
698dcdb6 | 15135 | |
10f2d63a | 15136 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 15137 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15138 | #define wxUSE_GUI 1 |
15139 | EOF | |
15140 | ||
698dcdb6 | 15141 | |
10f2d63a | 15142 | else |
698dcdb6 | 15143 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15144 | #define wxUSE_NOGUI 1 |
15145 | EOF | |
15146 | ||
15147 | fi | |
15148 | ||
698dcdb6 | 15149 | |
10f2d63a | 15150 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 15151 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15152 | #define wxUSE_UNIX 1 |
15153 | EOF | |
15154 | ||
15155 | fi | |
15156 | ||
698dcdb6 | 15157 | |
10f2d63a | 15158 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 15159 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15160 | #define wxUSE_APPLE_IEEE 1 |
15161 | EOF | |
15162 | ||
15163 | fi | |
15164 | ||
1e6feb95 VZ |
15165 | if test "$wxUSE_TIMER" = "yes"; then |
15166 | cat >> confdefs.h <<\EOF | |
15167 | #define wxUSE_TIMER 1 | |
15168 | EOF | |
15169 | ||
15170 | fi | |
15171 | ||
10f2d63a | 15172 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 15173 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15174 | #define wxUSE_WAVE 1 |
15175 | EOF | |
15176 | ||
15177 | fi | |
15178 | ||
1e6feb95 VZ |
15179 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
15180 | cat >> confdefs.h <<\EOF | |
15181 | #define wxUSE_CMDLINE_PARSER 1 | |
15182 | EOF | |
15183 | ||
15184 | fi | |
15185 | ||
15186 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
15187 | cat >> confdefs.h <<\EOF | |
15188 | #define wxUSE_STOPWATCH 1 | |
15189 | EOF | |
15190 | ||
15191 | fi | |
15192 | ||
15193 | if test "$wxUSE_DATETIME" = "yes"; then | |
15194 | cat >> confdefs.h <<\EOF | |
15195 | #define wxUSE_DATETIME 1 | |
15196 | EOF | |
15197 | ||
15198 | fi | |
15199 | ||
15200 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
15201 | cat >> confdefs.h <<\EOF | |
15202 | #define wxUSE_TIMEDATE 1 | |
15203 | EOF | |
15204 | ||
15205 | fi | |
15206 | ||
10f2d63a | 15207 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 15208 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15209 | #define wxUSE_FILE 1 |
15210 | EOF | |
15211 | ||
15212 | fi | |
15213 | ||
1e6feb95 VZ |
15214 | if test "$wxUSE_FFILE" = "yes"; then |
15215 | cat >> confdefs.h <<\EOF | |
15216 | #define wxUSE_FFILE 1 | |
15217 | EOF | |
15218 | ||
15219 | fi | |
15220 | ||
24528b0c | 15221 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 15222 | cat >> confdefs.h <<\EOF |
24528b0c VS |
15223 | #define wxUSE_FILESYSTEM 1 |
15224 | EOF | |
15225 | ||
15226 | fi | |
15227 | ||
10f2d63a | 15228 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 15229 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15230 | #define wxUSE_FS_INET 1 |
15231 | EOF | |
15232 | ||
15233 | fi | |
15234 | ||
15235 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 15236 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15237 | #define wxUSE_FS_ZIP 1 |
15238 | EOF | |
15239 | ||
15240 | fi | |
15241 | ||
15242 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 15243 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15244 | #define wxUSE_ZIPSTREAM 1 |
15245 | EOF | |
15246 | ||
15247 | fi | |
15248 | ||
eb4efbdc | 15249 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 15250 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
15251 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
15252 | EOF | |
15253 | ||
15254 | fi | |
15255 | ||
4f3c5f06 | 15256 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 15257 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
15258 | #define wxUSE_SNGLINST_CHECKER 1 |
15259 | EOF | |
15260 | ||
15261 | fi | |
15262 | ||
10f2d63a | 15263 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 15264 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15265 | #define wxUSE_BUSYINFO 1 |
15266 | EOF | |
15267 | ||
15268 | fi | |
15269 | ||
15270 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 15271 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15272 | #define wxUSE_STD_IOSTREAM 1 |
15273 | EOF | |
15274 | ||
15275 | fi | |
15276 | ||
15277 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
15278 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15279 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15280 | else |
698dcdb6 | 15281 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15282 | #define wxUSE_TEXTFILE 1 |
15283 | EOF | |
15284 | ||
15285 | fi | |
15286 | fi | |
15287 | ||
15288 | if test "$wxUSE_CONFIG" = "yes" ; then | |
15289 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 15290 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15291 | else |
698dcdb6 | 15292 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15293 | #define wxUSE_CONFIG 1 |
15294 | EOF | |
15295 | ||
15296 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
15297 | fi | |
15298 | fi | |
15299 | ||
15300 | if test "$wxUSE_INTL" = "yes" ; then | |
15301 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15302 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15303 | else |
698dcdb6 | 15304 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15305 | #define wxUSE_INTL 1 |
15306 | EOF | |
15307 | ||
15308 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 15309 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
15310 | fi |
15311 | fi | |
15312 | ||
15313 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 15314 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15315 | #define wxUSE_LOG 1 |
15316 | EOF | |
15317 | ||
d73be714 VZ |
15318 | |
15319 | if test "$wxUSE_LOGGUI" = "yes"; then | |
15320 | cat >> confdefs.h <<\EOF | |
15321 | #define wxUSE_LOGGUI 1 | |
15322 | EOF | |
15323 | ||
15324 | fi | |
15325 | ||
15326 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
15327 | cat >> confdefs.h <<\EOF | |
15328 | #define wxUSE_LOGWINDOW 1 | |
15329 | EOF | |
15330 | ||
15331 | fi | |
10f2d63a VZ |
15332 | fi |
15333 | ||
15334 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 15335 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15336 | #define wxUSE_LONGLONG 1 |
15337 | EOF | |
15338 | ||
15339 | fi | |
15340 | ||
e8f65ba6 | 15341 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 15342 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
15343 | #define wxUSE_GEOMETRY 1 |
15344 | EOF | |
15345 | ||
15346 | fi | |
15347 | ||
10f2d63a | 15348 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 15349 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15350 | #define wxUSE_DIALUP_MANAGER 1 |
15351 | EOF | |
15352 | ||
70f7a477 | 15353 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
15354 | fi |
15355 | ||
15356 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 15357 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15358 | #define wxUSE_STREAMS 1 |
15359 | EOF | |
15360 | ||
15361 | fi | |
15362 | ||
1e487827 | 15363 | |
1e6feb95 | 15364 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 15365 | for ac_func in strptime |
83307f33 | 15366 | do |
698dcdb6 | 15367 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 15368 | echo "configure:15369: checking for $ac_func" >&5 |
698dcdb6 VZ |
15369 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15370 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15371 | else | |
15372 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 15373 | #line 15374 "configure" |
83307f33 VZ |
15374 | #include "confdefs.h" |
15375 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15376 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
15377 | #include <assert.h> |
15378 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15379 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15380 | builtin and then its argument prototype would still apply. */ |
15381 | char $ac_func(); | |
15382 | ||
15383 | int main() { | |
83307f33 VZ |
15384 | |
15385 | /* The GNU C library defines this for functions which it implements | |
15386 | to always fail with ENOSYS. Some functions are actually named | |
15387 | something starting with __ and the normal name is an alias. */ | |
15388 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15389 | choke me | |
15390 | #else | |
698dcdb6 | 15391 | $ac_func(); |
83307f33 VZ |
15392 | #endif |
15393 | ||
698dcdb6 | 15394 | ; return 0; } |
83307f33 | 15395 | EOF |
d1a8d972 | 15396 | if { (eval echo configure:15397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15397 | rm -rf conftest* |
15398 | eval "ac_cv_func_$ac_func=yes" | |
15399 | else | |
15400 | echo "configure: failed program was:" >&5 | |
15401 | cat conftest.$ac_ext >&5 | |
15402 | rm -rf conftest* | |
15403 | eval "ac_cv_func_$ac_func=no" | |
15404 | fi | |
15405 | rm -f conftest* | |
15406 | fi | |
83307f33 | 15407 | |
698dcdb6 VZ |
15408 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15409 | echo "$ac_t""yes" 1>&6 | |
15410 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15411 | cat >> confdefs.h <<EOF | |
15412 | #define $ac_tr_func 1 | |
15413 | EOF | |
15414 | ||
15415 | else | |
15416 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
15417 | fi |
15418 | done | |
15419 | ||
1e487827 | 15420 | |
698dcdb6 | 15421 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
d1a8d972 | 15422 | echo "configure:15423: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
15423 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
15424 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15425 | else | |
15426 | ||
15427 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 15428 | #line 15429 "configure" |
360d6699 VZ |
15429 | #include "confdefs.h" |
15430 | ||
b4085ce6 | 15431 | #include <time.h> |
698dcdb6 VZ |
15432 | |
15433 | int main() { | |
360d6699 VZ |
15434 | |
15435 | int tz; | |
15436 | tz = __timezone; | |
698dcdb6 VZ |
15437 | |
15438 | ; return 0; } | |
15439 | EOF | |
d1a8d972 | 15440 | if { (eval echo configure:15441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15441 | rm -rf conftest* |
15442 | ||
360d6699 | 15443 | wx_cv_var_timezone=__timezone |
698dcdb6 | 15444 | |
360d6699 | 15445 | else |
698dcdb6 VZ |
15446 | echo "configure: failed program was:" >&5 |
15447 | cat conftest.$ac_ext >&5 | |
15448 | rm -rf conftest* | |
15449 | ||
15450 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 15451 | #line 15452 "configure" |
360d6699 VZ |
15452 | #include "confdefs.h" |
15453 | ||
b4085ce6 | 15454 | #include <time.h> |
698dcdb6 VZ |
15455 | |
15456 | int main() { | |
360d6699 VZ |
15457 | |
15458 | int tz; | |
15459 | tz = _timezone; | |
698dcdb6 VZ |
15460 | |
15461 | ; return 0; } | |
15462 | EOF | |
d1a8d972 | 15463 | if { (eval echo configure:15464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15464 | rm -rf conftest* |
15465 | ||
360d6699 | 15466 | wx_cv_var_timezone=_timezone |
698dcdb6 | 15467 | |
5357c8e8 | 15468 | else |
698dcdb6 VZ |
15469 | echo "configure: failed program was:" >&5 |
15470 | cat conftest.$ac_ext >&5 | |
15471 | rm -rf conftest* | |
15472 | ||
15473 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 15474 | #line 15475 "configure" |
5357c8e8 VZ |
15475 | #include "confdefs.h" |
15476 | ||
b4085ce6 | 15477 | #include <time.h> |
698dcdb6 VZ |
15478 | |
15479 | int main() { | |
5357c8e8 VZ |
15480 | |
15481 | int tz; | |
15482 | tz = timezone; | |
698dcdb6 VZ |
15483 | |
15484 | ; return 0; } | |
15485 | EOF | |
d1a8d972 | 15486 | if { (eval echo configure:15487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15487 | rm -rf conftest* |
15488 | ||
5357c8e8 | 15489 | wx_cv_var_timezone=timezone |
698dcdb6 | 15490 | |
360d6699 | 15491 | else |
698dcdb6 VZ |
15492 | echo "configure: failed program was:" >&5 |
15493 | cat conftest.$ac_ext >&5 | |
15494 | rm -rf conftest* | |
15495 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
15496 | ||
360d6699 | 15497 | fi |
698dcdb6 VZ |
15498 | rm -f conftest* |
15499 | ||
15500 | ||
360d6699 | 15501 | fi |
698dcdb6 VZ |
15502 | rm -f conftest* |
15503 | ||
15504 | ||
6232543b | 15505 | fi |
698dcdb6 VZ |
15506 | rm -f conftest* |
15507 | ||
15508 | ||
1e487827 | 15509 | fi |
703e0a69 | 15510 | |
698dcdb6 VZ |
15511 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
15512 | ||
15513 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
15514 | #define WX_TIMEZONE $wx_cv_var_timezone |
15515 | EOF | |
15516 | ||
698dcdb6 VZ |
15517 | |
15518 | for ac_func in localtime | |
afc31813 | 15519 | do |
698dcdb6 | 15520 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 15521 | echo "configure:15522: checking for $ac_func" >&5 |
698dcdb6 VZ |
15522 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15524 | else | |
15525 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 15526 | #line 15527 "configure" |
10f2d63a | 15527 | #include "confdefs.h" |
afc31813 | 15528 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 15529 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
15530 | #include <assert.h> |
15531 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15532 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15533 | builtin and then its argument prototype would still apply. */ |
15534 | char $ac_func(); | |
15535 | ||
15536 | int main() { | |
afc31813 VZ |
15537 | |
15538 | /* The GNU C library defines this for functions which it implements | |
15539 | to always fail with ENOSYS. Some functions are actually named | |
15540 | something starting with __ and the normal name is an alias. */ | |
15541 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15542 | choke me | |
15543 | #else | |
698dcdb6 | 15544 | $ac_func(); |
afc31813 VZ |
15545 | #endif |
15546 | ||
698dcdb6 | 15547 | ; return 0; } |
10f2d63a | 15548 | EOF |
d1a8d972 | 15549 | if { (eval echo configure:15550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15550 | rm -rf conftest* |
15551 | eval "ac_cv_func_$ac_func=yes" | |
15552 | else | |
15553 | echo "configure: failed program was:" >&5 | |
15554 | cat conftest.$ac_ext >&5 | |
15555 | rm -rf conftest* | |
15556 | eval "ac_cv_func_$ac_func=no" | |
15557 | fi | |
15558 | rm -f conftest* | |
15559 | fi | |
afc31813 | 15560 | |
698dcdb6 VZ |
15561 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15562 | echo "$ac_t""yes" 1>&6 | |
15563 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15564 | cat >> confdefs.h <<EOF | |
15565 | #define $ac_tr_func 1 | |
15566 | EOF | |
15567 | ||
15568 | else | |
15569 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
15570 | fi |
15571 | done | |
15572 | ||
1e487827 | 15573 | |
698dcdb6 VZ |
15574 | if test "$ac_cv_func_localtime" = "yes"; then |
15575 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
d1a8d972 | 15576 | echo "configure:15577: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
15577 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
15578 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15579 | else | |
15580 | ||
15581 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 15582 | #line 15583 "configure" |
0470b1e6 VZ |
15583 | #include "confdefs.h" |
15584 | ||
b4085ce6 | 15585 | #include <time.h> |
698dcdb6 VZ |
15586 | |
15587 | int main() { | |
0470b1e6 VZ |
15588 | |
15589 | struct tm tm; | |
15590 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
15591 | |
15592 | ; return 0; } | |
15593 | EOF | |
d1a8d972 | 15594 | if { (eval echo configure:15595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15595 | rm -rf conftest* |
15596 | ||
f03a98d8 | 15597 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 15598 | |
0470b1e6 | 15599 | else |
698dcdb6 VZ |
15600 | echo "configure: failed program was:" >&5 |
15601 | cat conftest.$ac_ext >&5 | |
15602 | rm -rf conftest* | |
15603 | wx_cv_struct_tm_has_gmtoff=no | |
15604 | ||
0470b1e6 | 15605 | fi |
698dcdb6 VZ |
15606 | rm -f conftest* |
15607 | ||
1e487827 | 15608 | fi |
698dcdb6 VZ |
15609 | |
15610 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
15611 | fi |
15612 | ||
15613 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 15614 | cat >> confdefs.h <<\EOF |
6232543b VS |
15615 | #define WX_GMTOFF_IN_TM 1 |
15616 | EOF | |
0470b1e6 | 15617 | |
3fcdd07b VZ |
15618 | fi |
15619 | ||
698dcdb6 | 15620 | for ac_func in gettimeofday ftime |
3fcdd07b | 15621 | do |
698dcdb6 | 15622 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 15623 | echo "configure:15624: checking for $ac_func" >&5 |
698dcdb6 VZ |
15624 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15625 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15626 | else | |
15627 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 15628 | #line 15629 "configure" |
3fcdd07b VZ |
15629 | #include "confdefs.h" |
15630 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15631 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
15632 | #include <assert.h> |
15633 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15634 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15635 | builtin and then its argument prototype would still apply. */ |
15636 | char $ac_func(); | |
15637 | ||
15638 | int main() { | |
3fcdd07b VZ |
15639 | |
15640 | /* The GNU C library defines this for functions which it implements | |
15641 | to always fail with ENOSYS. Some functions are actually named | |
15642 | something starting with __ and the normal name is an alias. */ | |
15643 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15644 | choke me | |
15645 | #else | |
698dcdb6 | 15646 | $ac_func(); |
3fcdd07b VZ |
15647 | #endif |
15648 | ||
698dcdb6 VZ |
15649 | ; return 0; } |
15650 | EOF | |
d1a8d972 | 15651 | if { (eval echo configure:15652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15652 | rm -rf conftest* |
15653 | eval "ac_cv_func_$ac_func=yes" | |
15654 | else | |
15655 | echo "configure: failed program was:" >&5 | |
15656 | cat conftest.$ac_ext >&5 | |
15657 | rm -rf conftest* | |
15658 | eval "ac_cv_func_$ac_func=no" | |
15659 | fi | |
15660 | rm -f conftest* | |
15661 | fi | |
15662 | ||
15663 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15664 | echo "$ac_t""yes" 1>&6 | |
15665 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15666 | cat >> confdefs.h <<EOF | |
15667 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
15668 | EOF |
15669 | break | |
698dcdb6 VZ |
15670 | else |
15671 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
15672 | fi |
15673 | done | |
15674 | ||
afc31813 | 15675 | |
698dcdb6 VZ |
15676 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
15677 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
d1a8d972 | 15678 | echo "configure:15679: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
15679 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
15680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15681 | else | |
15682 | ||
15683 | ||
15684 | ac_ext=C | |
15685 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 15686 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
15687 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15688 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15689 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 15690 | |
698dcdb6 VZ |
15691 | |
15692 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 15693 | #line 15694 "configure" |
10f2d63a | 15694 | #include "confdefs.h" |
afc31813 VZ |
15695 | |
15696 | #include <sys/time.h> | |
15697 | #include <unistd.h> | |
698dcdb6 VZ |
15698 | |
15699 | int main() { | |
afc31813 VZ |
15700 | |
15701 | struct timeval tv; | |
15702 | struct timezone tz; | |
15703 | gettimeofday(&tv, &tz); | |
698dcdb6 VZ |
15704 | |
15705 | ; return 0; } | |
15706 | EOF | |
d1a8d972 | 15707 | if { (eval echo configure:15708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15708 | rm -rf conftest* |
afc31813 | 15709 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 15710 | else |
698dcdb6 VZ |
15711 | echo "configure: failed program was:" >&5 |
15712 | cat conftest.$ac_ext >&5 | |
15713 | rm -rf conftest* | |
15714 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 15715 | #line 15716 "configure" |
10f2d63a | 15716 | #include "confdefs.h" |
afc31813 VZ |
15717 | |
15718 | #include <sys/time.h> | |
15719 | #include <unistd.h> | |
698dcdb6 VZ |
15720 | |
15721 | int main() { | |
afc31813 VZ |
15722 | |
15723 | struct timeval tv; | |
15724 | gettimeofday(&tv); | |
698dcdb6 VZ |
15725 | |
15726 | ; return 0; } | |
15727 | EOF | |
d1a8d972 | 15728 | if { (eval echo configure:15729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15729 | rm -rf conftest* |
afc31813 | 15730 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 15731 | else |
698dcdb6 VZ |
15732 | echo "configure: failed program was:" >&5 |
15733 | cat conftest.$ac_ext >&5 | |
15734 | rm -rf conftest* | |
15735 | wx_cv_func_gettimeofday_has_2_args=unknown | |
15736 | ||
10f2d63a | 15737 | fi |
698dcdb6 VZ |
15738 | rm -f conftest* |
15739 | ||
10f2d63a | 15740 | fi |
698dcdb6 | 15741 | rm -f conftest* |
afc31813 | 15742 | ac_ext=c |
698dcdb6 | 15743 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 15744 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
15745 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15746 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15747 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 15748 | |
698dcdb6 | 15749 | |
afc31813 | 15750 | fi |
698dcdb6 VZ |
15751 | |
15752 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 15753 | |
afc31813 | 15754 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 15755 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15756 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
15757 | EOF | |
15758 | ||
15759 | fi | |
15760 | fi | |
15761 | ||
698dcdb6 | 15762 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15763 | #define wxUSE_TIMEDATE 1 |
15764 | EOF | |
15765 | ||
15766 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
15767 | fi | |
15768 | ||
698dcdb6 | 15769 | |
b089607b VZ |
15770 | if test "$TOOLKIT" != "MSW"; then |
15771 | ||
afc31813 | 15772 | if test "$wxUSE_SOCKETS" = "yes"; then |
698dcdb6 | 15773 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
d1a8d972 | 15774 | echo "configure:15775: checking for socket" >&5 |
698dcdb6 VZ |
15775 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
15776 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 15777 | else |
698dcdb6 | 15778 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 15779 | #line 15780 "configure" |
c63c7106 VZ |
15780 | #include "confdefs.h" |
15781 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15782 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
15783 | #include <assert.h> |
15784 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15785 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15786 | builtin and then its argument prototype would still apply. */ |
15787 | char socket(); | |
15788 | ||
15789 | int main() { | |
c63c7106 VZ |
15790 | |
15791 | /* The GNU C library defines this for functions which it implements | |
15792 | to always fail with ENOSYS. Some functions are actually named | |
15793 | something starting with __ and the normal name is an alias. */ | |
15794 | #if defined (__stub_socket) || defined (__stub___socket) | |
15795 | choke me | |
15796 | #else | |
698dcdb6 | 15797 | socket(); |
c63c7106 VZ |
15798 | #endif |
15799 | ||
698dcdb6 VZ |
15800 | ; return 0; } |
15801 | EOF | |
d1a8d972 | 15802 | if { (eval echo configure:15803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15803 | rm -rf conftest* |
15804 | eval "ac_cv_func_socket=yes" | |
15805 | else | |
15806 | echo "configure: failed program was:" >&5 | |
15807 | cat conftest.$ac_ext >&5 | |
15808 | rm -rf conftest* | |
15809 | eval "ac_cv_func_socket=no" | |
15810 | fi | |
15811 | rm -f conftest* | |
15812 | fi | |
15813 | ||
15814 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
15815 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
15816 | : |
15817 | else | |
698dcdb6 VZ |
15818 | echo "$ac_t""no" 1>&6 |
15819 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
d1a8d972 | 15820 | echo "configure:15821: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
15821 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
15822 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15823 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 15824 | else |
698dcdb6 | 15825 | ac_save_LIBS="$LIBS" |
c63c7106 | 15826 | LIBS="-lsocket $LIBS" |
698dcdb6 | 15827 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 15828 | #line 15829 "configure" |
c63c7106 VZ |
15829 | #include "confdefs.h" |
15830 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15831 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15832 | builtin and then its argument prototype would still apply. */ |
15833 | char socket(); | |
15834 | ||
15835 | int main() { | |
15836 | socket() | |
15837 | ; return 0; } | |
15838 | EOF | |
d1a8d972 | 15839 | if { (eval echo configure:15840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15840 | rm -rf conftest* |
15841 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15842 | else | |
15843 | echo "configure: failed program was:" >&5 | |
15844 | cat conftest.$ac_ext >&5 | |
15845 | rm -rf conftest* | |
15846 | eval "ac_cv_lib_$ac_lib_var=no" | |
15847 | fi | |
15848 | rm -f conftest* | |
15849 | LIBS="$ac_save_LIBS" | |
15850 | ||
15851 | fi | |
15852 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15853 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 15854 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 15855 | else |
698dcdb6 | 15856 | echo "$ac_t""no" 1>&6 |
afc31813 | 15857 | |
698dcdb6 | 15858 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
afc31813 | 15859 | wxUSE_SOCKETS=no |
698dcdb6 VZ |
15860 | |
15861 | ||
10f2d63a VZ |
15862 | fi |
15863 | ||
698dcdb6 | 15864 | |
6232543b | 15865 | fi |
b089607b | 15866 | |
1e487827 | 15867 | fi |
afc31813 | 15868 | |
51a9faba | 15869 | |
698dcdb6 VZ |
15870 | if test "$wxUSE_SOCKETS" = "yes" ; then |
15871 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
d1a8d972 | 15872 | echo "configure:15873: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
15873 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
15874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15875 | else | |
15876 | ||
15877 | ||
15878 | ac_ext=C | |
15879 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 15880 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
15881 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15882 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15883 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 15884 | |
698dcdb6 VZ |
15885 | |
15886 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 15887 | #line 15888 "configure" |
afc31813 | 15888 | #include "confdefs.h" |
51a9faba | 15889 | |
3ace2e6d | 15890 | #include <sys/types.h> |
51a9faba | 15891 | #include <sys/socket.h> |
698dcdb6 VZ |
15892 | |
15893 | int main() { | |
51a9faba VZ |
15894 | |
15895 | socklen_t len; | |
15896 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15897 | |
15898 | ; return 0; } | |
15899 | EOF | |
d1a8d972 | 15900 | if { (eval echo configure:15901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15901 | rm -rf conftest* |
51a9faba | 15902 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 15903 | else |
698dcdb6 VZ |
15904 | echo "configure: failed program was:" >&5 |
15905 | cat conftest.$ac_ext >&5 | |
15906 | rm -rf conftest* | |
15907 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 15908 | #line 15909 "configure" |
afc31813 | 15909 | #include "confdefs.h" |
51a9faba | 15910 | |
3ace2e6d | 15911 | #include <sys/types.h> |
51a9faba | 15912 | #include <sys/socket.h> |
698dcdb6 VZ |
15913 | |
15914 | int main() { | |
51a9faba VZ |
15915 | |
15916 | size_t len; | |
15917 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15918 | |
15919 | ; return 0; } | |
15920 | EOF | |
d1a8d972 | 15921 | if { (eval echo configure:15922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15922 | rm -rf conftest* |
51a9faba | 15923 | wx_cv_type_getsockname3=size_t |
afc31813 | 15924 | else |
698dcdb6 VZ |
15925 | echo "configure: failed program was:" >&5 |
15926 | cat conftest.$ac_ext >&5 | |
15927 | rm -rf conftest* | |
15928 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 15929 | #line 15930 "configure" |
afc31813 | 15930 | #include "confdefs.h" |
51a9faba | 15931 | |
3ace2e6d | 15932 | #include <sys/types.h> |
51a9faba | 15933 | #include <sys/socket.h> |
698dcdb6 VZ |
15934 | |
15935 | int main() { | |
51a9faba VZ |
15936 | |
15937 | int len; | |
15938 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15939 | |
15940 | ; return 0; } | |
15941 | EOF | |
d1a8d972 | 15942 | if { (eval echo configure:15943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15943 | rm -rf conftest* |
51a9faba | 15944 | wx_cv_type_getsockname3=int |
afc31813 | 15945 | else |
698dcdb6 VZ |
15946 | echo "configure: failed program was:" >&5 |
15947 | cat conftest.$ac_ext >&5 | |
15948 | rm -rf conftest* | |
15949 | wx_cv_type_getsockname3=unknown | |
15950 | ||
afc31813 | 15951 | fi |
698dcdb6 VZ |
15952 | rm -f conftest* |
15953 | ||
afc31813 | 15954 | fi |
698dcdb6 VZ |
15955 | rm -f conftest* |
15956 | ||
afc31813 | 15957 | fi |
698dcdb6 | 15958 | rm -f conftest* |
51a9faba VZ |
15959 | |
15960 | ac_ext=c | |
698dcdb6 | 15961 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 15962 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
15963 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15964 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15965 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 15966 | |
698dcdb6 | 15967 | |
51a9faba | 15968 | fi |
698dcdb6 VZ |
15969 | |
15970 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba VZ |
15971 | |
15972 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
15973 | wxUSE_SOCKETS=no | |
698dcdb6 | 15974 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
51a9faba | 15975 | else |
698dcdb6 | 15976 | cat >> confdefs.h <<EOF |
51a9faba VZ |
15977 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
15978 | EOF | |
15979 | ||
15980 | fi | |
15981 | fi | |
afc31813 | 15982 | |
c521c494 RL |
15983 | fi |
15984 | ||
51a9faba | 15985 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 15986 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15987 | #define wxUSE_SOCKETS 1 |
15988 | EOF | |
15989 | ||
70f7a477 | 15990 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
15991 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
15992 | fi | |
15993 | ||
698dcdb6 | 15994 | |
dc3d889d VZ |
15995 | if test "$wxUSE_GUI" = "yes"; then |
15996 | ||
b089607b VZ |
15997 | if test "$TOOLKIT" != "MSW"; then |
15998 | ||
ceded8b9 | 15999 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16000 | for ac_hdr in linux/joystick.h |
10f2d63a | 16001 | do |
698dcdb6 VZ |
16002 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16003 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d1a8d972 | 16004 | echo "configure:16005: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16005 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16007 | else | |
16008 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 16009 | #line 16010 "configure" |
10f2d63a | 16010 | #include "confdefs.h" |
698dcdb6 VZ |
16011 | #include <$ac_hdr> |
16012 | EOF | |
16013 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 16014 | { (eval echo configure:16015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16015 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16016 | if test -z "$ac_err"; then | |
16017 | rm -rf conftest* | |
16018 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 16019 | else |
698dcdb6 VZ |
16020 | echo "$ac_err" >&5 |
16021 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16022 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16023 | rm -rf conftest* |
16024 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16025 | fi |
698dcdb6 | 16026 | rm -f conftest* |
10f2d63a | 16027 | fi |
698dcdb6 VZ |
16028 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16029 | echo "$ac_t""yes" 1>&6 | |
16030 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16031 | cat >> confdefs.h <<EOF | |
16032 | #define $ac_tr_hdr 1 | |
10f2d63a | 16033 | EOF |
698dcdb6 VZ |
16034 | |
16035 | else | |
16036 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16037 | fi |
16038 | done | |
16039 | ||
b089607b | 16040 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 16041 | wxUSE_JOYSTICK=no |
698dcdb6 | 16042 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
16043 | fi |
16044 | fi | |
16045 | ||
16046 | fi | |
16047 | ||
ceded8b9 | 16048 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16049 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16050 | #define wxUSE_JOYSTICK 1 |
16051 | EOF | |
16052 | ||
16053 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
16054 | fi |
16055 | ||
dc3d889d VZ |
16056 | fi |
16057 | ||
698dcdb6 | 16058 | |
b089607b VZ |
16059 | if test "$TOOLKIT" != "MSW"; then |
16060 | ||
10f2d63a VZ |
16061 | HAVE_DL_FUNCS=0 |
16062 | HAVE_SHL_FUNCS=0 | |
16063 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
b4085ce6 GD |
16064 | if test "$USE_MAC" = 1; then |
16065 | HAVE_DL_FUNCS=1 | |
16066 | else | |
698dcdb6 | 16067 | for ac_func in dlopen |
10f2d63a | 16068 | do |
698dcdb6 | 16069 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 16070 | echo "configure:16071: checking for $ac_func" >&5 |
698dcdb6 VZ |
16071 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16072 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16073 | else | |
16074 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 16075 | #line 16076 "configure" |
10f2d63a VZ |
16076 | #include "confdefs.h" |
16077 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16078 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16079 | #include <assert.h> |
16080 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16081 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16082 | builtin and then its argument prototype would still apply. */ |
16083 | char $ac_func(); | |
16084 | ||
16085 | int main() { | |
10f2d63a VZ |
16086 | |
16087 | /* The GNU C library defines this for functions which it implements | |
16088 | to always fail with ENOSYS. Some functions are actually named | |
16089 | something starting with __ and the normal name is an alias. */ | |
16090 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16091 | choke me | |
16092 | #else | |
698dcdb6 | 16093 | $ac_func(); |
10f2d63a VZ |
16094 | #endif |
16095 | ||
698dcdb6 VZ |
16096 | ; return 0; } |
16097 | EOF | |
d1a8d972 | 16098 | if { (eval echo configure:16099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16099 | rm -rf conftest* |
16100 | eval "ac_cv_func_$ac_func=yes" | |
16101 | else | |
16102 | echo "configure: failed program was:" >&5 | |
16103 | cat conftest.$ac_ext >&5 | |
16104 | rm -rf conftest* | |
16105 | eval "ac_cv_func_$ac_func=no" | |
16106 | fi | |
16107 | rm -f conftest* | |
16108 | fi | |
16109 | ||
16110 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16111 | echo "$ac_t""yes" 1>&6 | |
16112 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16113 | cat >> confdefs.h <<EOF | |
16114 | #define $ac_tr_func 1 | |
16115 | EOF | |
16116 | ||
16117 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16118 | #define HAVE_DLOPEN 1 |
16119 | EOF | |
16120 | ||
16121 | HAVE_DL_FUNCS=1 | |
698dcdb6 | 16122 | |
10f2d63a | 16123 | else |
698dcdb6 VZ |
16124 | echo "$ac_t""no" 1>&6 |
16125 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
d1a8d972 | 16126 | echo "configure:16127: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
16127 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16128 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16129 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16130 | else |
698dcdb6 | 16131 | ac_save_LIBS="$LIBS" |
10f2d63a | 16132 | LIBS="-ldl $LIBS" |
698dcdb6 | 16133 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 16134 | #line 16135 "configure" |
10f2d63a VZ |
16135 | #include "confdefs.h" |
16136 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16137 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16138 | builtin and then its argument prototype would still apply. */ |
16139 | char dlopen(); | |
16140 | ||
16141 | int main() { | |
16142 | dlopen() | |
16143 | ; return 0; } | |
16144 | EOF | |
d1a8d972 | 16145 | if { (eval echo configure:16146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16146 | rm -rf conftest* |
16147 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16148 | else | |
16149 | echo "configure: failed program was:" >&5 | |
16150 | cat conftest.$ac_ext >&5 | |
16151 | rm -rf conftest* | |
16152 | eval "ac_cv_lib_$ac_lib_var=no" | |
16153 | fi | |
16154 | rm -f conftest* | |
16155 | LIBS="$ac_save_LIBS" | |
16156 | ||
16157 | fi | |
16158 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16159 | echo "$ac_t""yes" 1>&6 | |
16160 | ||
16161 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16162 | #define HAVE_DLOPEN 1 |
16163 | EOF | |
16164 | ||
16165 | HAVE_DL_FUNCS=1 | |
16166 | LIBS="$LIBS -ldl" | |
698dcdb6 | 16167 | |
10f2d63a | 16168 | else |
698dcdb6 | 16169 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16170 | |
698dcdb6 | 16171 | for ac_func in shl_load |
10f2d63a | 16172 | do |
698dcdb6 | 16173 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 16174 | echo "configure:16175: checking for $ac_func" >&5 |
698dcdb6 VZ |
16175 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16176 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16177 | else | |
16178 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 16179 | #line 16180 "configure" |
10f2d63a VZ |
16180 | #include "confdefs.h" |
16181 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16182 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16183 | #include <assert.h> |
16184 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16185 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16186 | builtin and then its argument prototype would still apply. */ |
16187 | char $ac_func(); | |
16188 | ||
16189 | int main() { | |
10f2d63a VZ |
16190 | |
16191 | /* The GNU C library defines this for functions which it implements | |
16192 | to always fail with ENOSYS. Some functions are actually named | |
16193 | something starting with __ and the normal name is an alias. */ | |
16194 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16195 | choke me | |
16196 | #else | |
698dcdb6 | 16197 | $ac_func(); |
10f2d63a VZ |
16198 | #endif |
16199 | ||
698dcdb6 VZ |
16200 | ; return 0; } |
16201 | EOF | |
d1a8d972 | 16202 | if { (eval echo configure:16203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16203 | rm -rf conftest* |
16204 | eval "ac_cv_func_$ac_func=yes" | |
16205 | else | |
16206 | echo "configure: failed program was:" >&5 | |
16207 | cat conftest.$ac_ext >&5 | |
16208 | rm -rf conftest* | |
16209 | eval "ac_cv_func_$ac_func=no" | |
16210 | fi | |
16211 | rm -f conftest* | |
16212 | fi | |
16213 | ||
16214 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16215 | echo "$ac_t""yes" 1>&6 | |
16216 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16217 | cat >> confdefs.h <<EOF | |
16218 | #define $ac_tr_func 1 | |
16219 | EOF | |
16220 | ||
16221 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16222 | #define HAVE_SHL_LOAD 1 |
16223 | EOF | |
16224 | ||
16225 | HAVE_SHL_FUNCS=1 | |
698dcdb6 | 16226 | |
10f2d63a | 16227 | else |
698dcdb6 VZ |
16228 | echo "$ac_t""no" 1>&6 |
16229 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
d1a8d972 | 16230 | echo "configure:16231: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
16231 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
16232 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16233 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16234 | else |
698dcdb6 | 16235 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16236 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 16237 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 16238 | #line 16239 "configure" |
f6bcfd97 BP |
16239 | #include "confdefs.h" |
16240 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16241 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16242 | builtin and then its argument prototype would still apply. */ |
16243 | char dld(); | |
16244 | ||
16245 | int main() { | |
16246 | dld() | |
16247 | ; return 0; } | |
16248 | EOF | |
d1a8d972 | 16249 | if { (eval echo configure:16250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16250 | rm -rf conftest* |
16251 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16252 | else | |
16253 | echo "configure: failed program was:" >&5 | |
16254 | cat conftest.$ac_ext >&5 | |
16255 | rm -rf conftest* | |
16256 | eval "ac_cv_lib_$ac_lib_var=no" | |
16257 | fi | |
16258 | rm -f conftest* | |
16259 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 16260 | |
698dcdb6 VZ |
16261 | fi |
16262 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16263 | echo "$ac_t""yes" 1>&6 | |
16264 | ||
f6bcfd97 BP |
16265 | HAVE_SHL_FUNCS=1 |
16266 | LIBS="$LIBS -ldld" | |
698dcdb6 VZ |
16267 | |
16268 | else | |
16269 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16270 | fi |
16271 | ||
698dcdb6 | 16272 | |
10f2d63a VZ |
16273 | fi |
16274 | done | |
16275 | ||
698dcdb6 | 16276 | |
10f2d63a VZ |
16277 | fi |
16278 | ||
698dcdb6 | 16279 | |
10f2d63a VZ |
16280 | fi |
16281 | done | |
16282 | ||
1e487827 | 16283 | |
698dcdb6 VZ |
16284 | if test "$HAVE_DL_FUNCS" = 1; then |
16285 | for ac_func in dlerror | |
f6bcfd97 | 16286 | do |
698dcdb6 | 16287 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
d1a8d972 | 16288 | echo "configure:16289: checking for $ac_func" >&5 |
698dcdb6 VZ |
16289 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16290 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16291 | else | |
16292 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 16293 | #line 16294 "configure" |
f6bcfd97 BP |
16294 | #include "confdefs.h" |
16295 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16296 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
16297 | #include <assert.h> |
16298 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16299 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16300 | builtin and then its argument prototype would still apply. */ |
16301 | char $ac_func(); | |
16302 | ||
16303 | int main() { | |
f6bcfd97 BP |
16304 | |
16305 | /* The GNU C library defines this for functions which it implements | |
16306 | to always fail with ENOSYS. Some functions are actually named | |
16307 | something starting with __ and the normal name is an alias. */ | |
16308 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16309 | choke me | |
16310 | #else | |
698dcdb6 | 16311 | $ac_func(); |
f6bcfd97 BP |
16312 | #endif |
16313 | ||
698dcdb6 VZ |
16314 | ; return 0; } |
16315 | EOF | |
d1a8d972 | 16316 | if { (eval echo configure:16317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16317 | rm -rf conftest* |
16318 | eval "ac_cv_func_$ac_func=yes" | |
16319 | else | |
16320 | echo "configure: failed program was:" >&5 | |
16321 | cat conftest.$ac_ext >&5 | |
16322 | rm -rf conftest* | |
16323 | eval "ac_cv_func_$ac_func=no" | |
16324 | fi | |
16325 | rm -f conftest* | |
16326 | fi | |
16327 | ||
16328 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16329 | echo "$ac_t""yes" 1>&6 | |
16330 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16331 | cat >> confdefs.h <<EOF | |
16332 | #define $ac_tr_func 1 | |
16333 | EOF | |
16334 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16335 | #define HAVE_DLERROR 1 |
16336 | EOF | |
16337 | ||
16338 | else | |
698dcdb6 VZ |
16339 | echo "$ac_t""no" 1>&6 |
16340 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
d1a8d972 | 16341 | echo "configure:16342: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
16342 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
16343 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16344 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16345 | else |
698dcdb6 | 16346 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16347 | LIBS="-ldl $LIBS" |
698dcdb6 | 16348 | cat > conftest.$ac_ext <<EOF |
d1a8d972 | 16349 | #line 16350 "configure" |
f6bcfd97 BP |
16350 | #include "confdefs.h" |
16351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16352 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16353 | builtin and then its argument prototype would still apply. */ |
16354 | char dlerror(); | |
16355 | ||
16356 | int main() { | |
16357 | dlerror() | |
16358 | ; return 0; } | |
16359 | EOF | |
d1a8d972 | 16360 | if { (eval echo configure:16361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16361 | rm -rf conftest* |
16362 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16363 | else | |
16364 | echo "configure: failed program was:" >&5 | |
16365 | cat conftest.$ac_ext >&5 | |
16366 | rm -rf conftest* | |
16367 | eval "ac_cv_lib_$ac_lib_var=no" | |
16368 | fi | |
16369 | rm -f conftest* | |
16370 | LIBS="$ac_save_LIBS" | |
16371 | ||
16372 | fi | |
16373 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16374 | echo "$ac_t""yes" 1>&6 | |
16375 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16376 | #define HAVE_DLERROR 1 |
16377 | EOF | |
16378 | ||
698dcdb6 VZ |
16379 | else |
16380 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16381 | fi |
16382 | ||
16383 | fi | |
16384 | done | |
16385 | ||
16386 | fi | |
b4085ce6 | 16387 | fi |
f6bcfd97 | 16388 | |
10f2d63a VZ |
16389 | if test "$HAVE_DL_FUNCS" = 0; then |
16390 | if test "$HAVE_SHL_FUNCS" = 0; then | |
16391 | if test "$USE_UNIX" = 1; then | |
698dcdb6 | 16392 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
16393 | wxUSE_DYNLIB_CLASS=no |
16394 | else | |
698dcdb6 | 16395 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
16396 | fi |
16397 | fi | |
16398 | fi | |
16399 | fi | |
16400 | ||
b089607b VZ |
16401 | fi |
16402 | ||
10f2d63a | 16403 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
698dcdb6 | 16404 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16405 | #define wxUSE_DYNLIB_CLASS 1 |
16406 | EOF | |
16407 | ||
b12915c1 VZ |
16408 | else |
16409 | wxUSE_ODBC=no | |
16410 | wxUSE_SERIAL=no | |
10f2d63a VZ |
16411 | fi |
16412 | ||
698dcdb6 | 16413 | |
1e6feb95 VZ |
16414 | if test "$wxUSE_FONTMAP" = "yes" ; then |
16415 | cat >> confdefs.h <<\EOF | |
16416 | #define wxUSE_FONTMAP 1 | |
16417 | EOF | |
16418 | ||
16419 | fi | |
16420 | ||
10f2d63a | 16421 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 16422 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16423 | #define wxUSE_UNICODE 1 |
16424 | EOF | |
16425 | ||
16426 | fi | |
16427 | ||
16428 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
698dcdb6 | 16429 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16430 | #define wxUSE_WCSRTOMBS 1 |
16431 | EOF | |
16432 | ||
16433 | fi | |
16434 | ||
16435 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
698dcdb6 | 16436 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16437 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
16438 | EOF | |
16439 | ||
16440 | fi | |
16441 | ||
698dcdb6 | 16442 | |
b12915c1 | 16443 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 16444 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
16445 | #define wxUSE_SERIAL 1 |
16446 | EOF | |
16447 | ||
16448 | fi | |
16449 | ||
698dcdb6 | 16450 | |
10f2d63a VZ |
16451 | IODBC_C_SRC="" |
16452 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 16453 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16454 | #define wxUSE_ODBC 1 |
16455 | EOF | |
16456 | ||
16457 | WXODBCFLAG="-D_IODBC_" | |
16458 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
16459 | fi |
16460 | ||
698dcdb6 | 16461 | |
10f2d63a | 16462 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 16463 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16464 | #define wxUSE_POSTSCRIPT 1 |
16465 | EOF | |
16466 | ||
16467 | fi | |
16468 | ||
698dcdb6 | 16469 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16470 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
16471 | EOF | |
16472 | ||
698dcdb6 VZ |
16473 | |
16474 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16475 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
16476 | EOF | |
16477 | ||
698dcdb6 VZ |
16478 | |
16479 | ||
10f2d63a | 16480 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 16481 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16482 | #define wxUSE_CONSTRAINTS 1 |
16483 | EOF | |
16484 | ||
16485 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
16486 | fi | |
16487 | ||
16488 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
698dcdb6 | 16489 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16490 | #define wxUSE_MDI_ARCHITECTURE 1 |
16491 | EOF | |
16492 | ||
16493 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
16494 | fi | |
16495 | ||
16496 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 16497 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16498 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
16499 | EOF | |
16500 | ||
16501 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
16502 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
16503 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
16504 | fi | |
16505 | fi | |
16506 | ||
16507 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 16508 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16509 | #define wxUSE_HELP 1 |
16510 | EOF | |
16511 | ||
16512 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
16513 | fi | |
16514 | ||
16515 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
16516 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 16517 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 16518 | else |
698dcdb6 | 16519 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16520 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
16521 | EOF | |
16522 | ||
16523 | fi | |
16524 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
16525 | fi | |
16526 | ||
16527 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 16528 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16529 | #define wxUSE_PROLOGIO 1 |
16530 | EOF | |
16531 | ||
16532 | fi | |
16533 | ||
16534 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
16535 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 16536 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16537 | #define wxUSE_RESOURCES 1 |
16538 | EOF | |
16539 | ||
16540 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
16541 | else | |
698dcdb6 | 16542 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 |
10f2d63a VZ |
16543 | fi |
16544 | fi | |
16545 | ||
16546 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 16547 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16548 | #define wxUSE_X_RESOURCES 1 |
16549 | EOF | |
16550 | ||
16551 | fi | |
16552 | ||
698dcdb6 | 16553 | |
10f2d63a | 16554 | if test "$wxUSE_IPC" = "yes"; then |
eb4efbdc | 16555 | if test "$wxUSE_SOCKETS" != "yes"; then |
698dcdb6 | 16556 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 |
eb4efbdc VZ |
16557 | fi |
16558 | ||
698dcdb6 | 16559 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16560 | #define wxUSE_IPC 1 |
16561 | EOF | |
16562 | ||
16563 | fi | |
16564 | ||
16565 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
698dcdb6 | 16566 | cat >> confdefs.h <<\EOF |
10f2d63a | 16567 | #define wxUSE_CLIPBOARD 1 |
1e6feb95 VZ |
16568 | EOF |
16569 | ||
16570 | cat >> confdefs.h <<\EOF | |
16571 | #define wxUSE_DATAOBJ 1 | |
10f2d63a VZ |
16572 | EOF |
16573 | ||
16574 | fi | |
16575 | ||
16576 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
16577 | if test "$wxUSE_GTK" = 1; then | |
16578 | if test "$WXGTK12" != 1; then | |
698dcdb6 | 16579 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 |
10f2d63a VZ |
16580 | wxUSE_DRAG_AND_DROP=no |
16581 | fi | |
16582 | fi | |
16583 | ||
16584 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 16585 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 |
10f2d63a VZ |
16586 | wxUSE_DRAG_AND_DROP=no |
16587 | fi | |
16588 | ||
2c6025bc | 16589 | if test "$wxUSE_MAC" = 1; then |
698dcdb6 | 16590 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 |
2c6025bc GD |
16591 | wxUSE_DRAG_AND_DROP=no |
16592 | fi | |
16593 | ||
10f2d63a | 16594 | if test "$USE_WIN32" = 1; then |
698dcdb6 VZ |
16595 | |
16596 | for ac_hdr in ole2.h | |
10f2d63a | 16597 | do |
698dcdb6 VZ |
16598 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16599 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d1a8d972 | 16600 | echo "configure:16601: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16601 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16602 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16603 | else | |
16604 | cat > conftest.$ac_ext <<EOF | |
d1a8d972 | 16605 | #line 16606 "configure" |
10f2d63a | 16606 | #include "confdefs.h" |
698dcdb6 VZ |
16607 | #include <$ac_hdr> |
16608 | EOF | |
16609 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d1a8d972 | 16610 | { (eval echo configure:16611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16611 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16612 | if test -z "$ac_err"; then | |
16613 | rm -rf conftest* | |
16614 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 16615 | else |
698dcdb6 VZ |
16616 | echo "$ac_err" >&5 |
16617 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16618 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16619 | rm -rf conftest* |
16620 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16621 | fi |
698dcdb6 | 16622 | rm -f conftest* |
10f2d63a | 16623 | fi |
698dcdb6 VZ |
16624 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16625 | echo "$ac_t""yes" 1>&6 | |
16626 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16627 | cat >> confdefs.h <<EOF | |
16628 | #define $ac_tr_hdr 1 | |
10f2d63a | 16629 | EOF |
698dcdb6 VZ |
16630 | |
16631 | else | |
16632 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16633 | fi |
16634 | done | |
16635 | ||
698dcdb6 | 16636 | |
57fe5ed0 | 16637 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
c521c494 | 16638 | if test "$GCC" = yes ; then |
b64f0a5f RL |
16639 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
16640 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 16641 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
b64f0a5f RL |
16642 | LIBS="$LIBS -lole32 -luuid" |
16643 | ||
16644 | if test "$wxUSE_METAFILE" = "yes"; then | |
698dcdb6 | 16645 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16646 | #define wxUSE_METAFILE 1 |
16647 | EOF | |
16648 | ||
698dcdb6 | 16649 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16650 | #define wxUSE_ENH_METAFILE 1 |
16651 | EOF | |
16652 | ||
16653 | fi | |
c521c494 RL |
16654 | fi |
16655 | else | |
698dcdb6 | 16656 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 |
10f2d63a VZ |
16657 | wxUSE_DRAG_AND_DROP=no |
16658 | fi | |
16659 | fi | |
16660 | ||
16661 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
698dcdb6 | 16662 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16663 | #define wxUSE_DRAG_AND_DROP 1 |
16664 | EOF | |
16665 | ||
16666 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
16667 | fi | |
16668 | ||
16669 | fi | |
16670 | ||
16671 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 16672 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16673 | #define wxUSE_SPLINES 1 |
16674 | EOF | |
16675 | ||
16676 | fi | |
16677 | ||
698dcdb6 | 16678 | |
1e6feb95 VZ |
16679 | USES_CONTROLS=0 |
16680 | if test "$wxUSE_CONTROLS" = "yes"; then | |
16681 | USES_CONTROLS=1 | |
16682 | fi | |
16683 | ||
10f2d63a | 16684 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 16685 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16686 | #define wxUSE_ACCEL 1 |
16687 | EOF | |
16688 | ||
1e6feb95 VZ |
16689 | USES_CONTROLS=1 |
16690 | fi | |
16691 | ||
16692 | if test "$wxUSE_BUTTON" = "yes"; then | |
16693 | cat >> confdefs.h <<\EOF | |
16694 | #define wxUSE_BUTTON 1 | |
16695 | EOF | |
16696 | ||
16697 | USES_CONTROLS=1 | |
16698 | fi | |
16699 | ||
16700 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
16701 | cat >> confdefs.h <<\EOF | |
16702 | #define wxUSE_BMPBUTTON 1 | |
16703 | EOF | |
16704 | ||
16705 | USES_CONTROLS=1 | |
16706 | fi | |
16707 | ||
16708 | if test "$wxUSE_CALCTRL" = "yes"; then | |
16709 | cat >> confdefs.h <<\EOF | |
16710 | #define wxUSE_CALENDARCTRL 1 | |
16711 | EOF | |
16712 | ||
16713 | USES_CONTROLS=1 | |
16714 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
16715 | fi |
16716 | ||
16717 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 16718 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16719 | #define wxUSE_CARET 1 |
16720 | EOF | |
16721 | ||
1e6feb95 | 16722 | USES_CONTROLS=1 |
10f2d63a VZ |
16723 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
16724 | fi | |
16725 | ||
16726 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 16727 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16728 | #define wxUSE_COMBOBOX 1 |
16729 | EOF | |
16730 | ||
1e6feb95 | 16731 | USES_CONTROLS=1 |
10f2d63a VZ |
16732 | fi |
16733 | ||
16734 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 16735 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16736 | #define wxUSE_CHOICE 1 |
16737 | EOF | |
16738 | ||
1e6feb95 | 16739 | USES_CONTROLS=1 |
10f2d63a VZ |
16740 | fi |
16741 | ||
16742 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 16743 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16744 | #define wxUSE_CHECKBOX 1 |
16745 | EOF | |
16746 | ||
1e6feb95 | 16747 | USES_CONTROLS=1 |
10f2d63a VZ |
16748 | fi |
16749 | ||
16750 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 16751 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16752 | #define wxUSE_CHECKLISTBOX 1 |
16753 | EOF | |
16754 | ||
1e6feb95 | 16755 | USES_CONTROLS=1 |
10f2d63a VZ |
16756 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
16757 | fi | |
16758 | ||
16759 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 16760 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16761 | #define wxUSE_GAUGE 1 |
16762 | EOF | |
16763 | ||
1e6feb95 | 16764 | USES_CONTROLS=1 |
10f2d63a VZ |
16765 | fi |
16766 | ||
d6a55c4b VZ |
16767 | if test "$wxUSE_NEW_GRID" = "yes"; then |
16768 | wxUSE_GRID="yes" | |
698dcdb6 | 16769 | cat >> confdefs.h <<\EOF |
d6a55c4b | 16770 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
16771 | EOF |
16772 | ||
1e6feb95 | 16773 | USES_CONTROLS=1 |
d6a55c4b | 16774 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
16775 | fi |
16776 | ||
d6a55c4b | 16777 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 16778 | cat >> confdefs.h <<\EOF |
d6a55c4b | 16779 | #define wxUSE_GRID 1 |
10f2d63a VZ |
16780 | EOF |
16781 | ||
1e6feb95 | 16782 | USES_CONTROLS=1 |
d6a55c4b | 16783 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
16784 | fi |
16785 | ||
16786 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16787 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16788 | #define wxUSE_IMAGLIST 1 |
16789 | EOF | |
16790 | ||
16791 | fi | |
16792 | ||
16793 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 16794 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16795 | #define wxUSE_LISTBOX 1 |
16796 | EOF | |
16797 | ||
1e6feb95 | 16798 | USES_CONTROLS=1 |
10f2d63a VZ |
16799 | fi |
16800 | ||
16801 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
16802 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16803 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16804 | #define wxUSE_LISTCTRL 1 |
16805 | EOF | |
16806 | ||
1e6feb95 | 16807 | USES_CONTROLS=1 |
10f2d63a VZ |
16808 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
16809 | else | |
698dcdb6 | 16810 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
16811 | fi |
16812 | fi | |
16813 | ||
16814 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 16815 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16816 | #define wxUSE_NOTEBOOK 1 |
16817 | EOF | |
16818 | ||
1e6feb95 | 16819 | USES_CONTROLS=1 |
10f2d63a VZ |
16820 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
16821 | fi | |
16822 | ||
16823 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
698dcdb6 | 16824 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16825 | #define wxUSE_RADIOBOX 1 |
16826 | EOF | |
16827 | ||
1e6feb95 | 16828 | USES_CONTROLS=1 |
10f2d63a VZ |
16829 | fi |
16830 | ||
16831 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 16832 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16833 | #define wxUSE_RADIOBTN 1 |
16834 | EOF | |
16835 | ||
1e6feb95 | 16836 | USES_CONTROLS=1 |
10f2d63a VZ |
16837 | fi |
16838 | ||
16839 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 16840 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16841 | #define wxUSE_SASH 1 |
16842 | EOF | |
16843 | ||
16844 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
16845 | fi | |
16846 | ||
16847 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 16848 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16849 | #define wxUSE_SCROLLBAR 1 |
16850 | EOF | |
16851 | ||
1e6feb95 | 16852 | USES_CONTROLS=1 |
741a9306 | 16853 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
16854 | fi |
16855 | ||
16856 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 16857 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16858 | #define wxUSE_SLIDER 1 |
16859 | EOF | |
16860 | ||
1e6feb95 | 16861 | USES_CONTROLS=1 |
10f2d63a VZ |
16862 | fi |
16863 | ||
16864 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 16865 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16866 | #define wxUSE_SPINBTN 1 |
16867 | EOF | |
16868 | ||
1e6feb95 | 16869 | USES_CONTROLS=1 |
10f2d63a VZ |
16870 | fi |
16871 | ||
56cfaa52 | 16872 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 16873 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
16874 | #define wxUSE_SPINCTRL 1 |
16875 | EOF | |
16876 | ||
1e6feb95 | 16877 | USES_CONTROLS=1 |
56cfaa52 RR |
16878 | fi |
16879 | ||
10f2d63a | 16880 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 16881 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16882 | #define wxUSE_SPLITTER 1 |
16883 | EOF | |
16884 | ||
16885 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
16886 | fi | |
16887 | ||
16888 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 16889 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16890 | #define wxUSE_STATBMP 1 |
16891 | EOF | |
16892 | ||
1e6feb95 | 16893 | USES_CONTROLS=1 |
10f2d63a VZ |
16894 | fi |
16895 | ||
16896 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 16897 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16898 | #define wxUSE_STATBOX 1 |
16899 | EOF | |
16900 | ||
1e6feb95 VZ |
16901 | USES_CONTROLS=1 |
16902 | fi | |
16903 | ||
16904 | if test "$wxUSE_STATTEXT" = "yes"; then | |
16905 | cat >> confdefs.h <<\EOF | |
16906 | #define wxUSE_STATTEXT 1 | |
16907 | EOF | |
16908 | ||
16909 | USES_CONTROLS=1 | |
10f2d63a VZ |
16910 | fi |
16911 | ||
16912 | if test "$wxUSE_STATLINE" = "yes"; then | |
16913 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 16914 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 16915 | else |
698dcdb6 | 16916 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16917 | #define wxUSE_STATLINE 1 |
16918 | EOF | |
16919 | ||
1e6feb95 | 16920 | USES_CONTROLS=1 |
10f2d63a VZ |
16921 | fi |
16922 | fi | |
16923 | ||
16924 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 16925 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16926 | #define wxUSE_STATUSBAR 1 |
16927 | EOF | |
16928 | ||
1e6feb95 | 16929 | USES_CONTROLS=1 |
698dcdb6 | 16930 | |
2286341c | 16931 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
16932 | fi |
16933 | ||
16934 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 16935 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16936 | #define wxUSE_TAB_DIALOG 1 |
16937 | EOF | |
16938 | ||
16939 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
16940 | fi | |
16941 | ||
1e6feb95 VZ |
16942 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
16943 | cat >> confdefs.h <<\EOF | |
16944 | #define wxUSE_TEXTCTRL 1 | |
16945 | EOF | |
16946 | ||
16947 | USES_CONTROLS=1 | |
16948 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
16949 | fi | |
16950 | ||
1db8dc4a | 16951 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
a45d7ab7 GD |
16952 | if test "$wxUSE_MAC" = 1; then |
16953 | echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2 | |
16954 | wxUSE_TOGGLEBTN=no | |
16955 | fi | |
16956 | ||
16957 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
16958 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
16959 | #define wxUSE_TOGGLEBTN 1 |
16960 | EOF | |
16961 | ||
1e6feb95 | 16962 | USES_CONTROLS=1 |
a45d7ab7 | 16963 | fi |
1db8dc4a VZ |
16964 | fi |
16965 | ||
360d6699 | 16966 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 16967 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
16968 | #define wxUSE_TOOLBAR_SIMPLE 1 |
16969 | EOF | |
16970 | ||
16971 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 16972 | USES_CONTROLS=1 |
360d6699 VZ |
16973 | fi |
16974 | ||
10f2d63a | 16975 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 16976 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16977 | #define wxUSE_TOOLBAR 1 |
16978 | EOF | |
16979 | ||
1e6feb95 | 16980 | USES_CONTROLS=1 |
698dcdb6 | 16981 | |
360d6699 VZ |
16982 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
16983 | wxUSE_TOOLBAR_NATIVE="yes" | |
16984 | fi | |
16985 | ||
1e6feb95 VZ |
16986 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
16987 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
16988 | #define wxUSE_TOOLBAR_NATIVE 1 |
16989 | EOF | |
16990 | ||
1e6feb95 VZ |
16991 | USES_CONTROLS=1 |
16992 | fi | |
16993 | ||
16994 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
16995 | fi |
16996 | ||
10f2d63a VZ |
16997 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
16998 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 16999 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
17000 | else |
17001 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 17002 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 17003 | else |
698dcdb6 | 17004 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17005 | #define wxUSE_TOOLTIPS 1 |
17006 | EOF | |
17007 | ||
17008 | fi | |
17009 | fi | |
17010 | fi | |
17011 | ||
17012 | if test "$wxUSE_TREECTRL" = "yes"; then | |
17013 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 17014 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17015 | #define wxUSE_TREECTRL 1 |
17016 | EOF | |
17017 | ||
1e6feb95 | 17018 | USES_CONTROLS=1 |
10f2d63a VZ |
17019 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
17020 | else | |
698dcdb6 | 17021 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
17022 | fi |
17023 | fi | |
17024 | ||
1e6feb95 VZ |
17025 | if test "$USES_CONTROLS" = 1; then |
17026 | cat >> confdefs.h <<\EOF | |
17027 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
17028 | EOF |
17029 | ||
10f2d63a VZ |
17030 | fi |
17031 | ||
1e6feb95 VZ |
17032 | |
17033 | ||
24fd6d87 VZ |
17034 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
17035 | cat >> confdefs.h <<\EOF | |
17036 | #define wxUSE_DRAGIMAGE 1 | |
17037 | EOF | |
17038 | ||
17039 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
17040 | fi | |
17041 | ||
1e6feb95 | 17042 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 17043 | cat >> confdefs.h <<\EOF |
1e6feb95 | 17044 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
17045 | EOF |
17046 | ||
1e6feb95 | 17047 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
17048 | fi |
17049 | ||
1e6feb95 VZ |
17050 | if test "$wxUSE_METAFILE" = "yes"; then |
17051 | cat >> confdefs.h <<\EOF | |
17052 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
17053 | EOF |
17054 | ||
10f2d63a VZ |
17055 | fi |
17056 | ||
1e6feb95 VZ |
17057 | if test "$wxUSE_MIMETYPE" = "yes"; then |
17058 | cat >> confdefs.h <<\EOF | |
17059 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
17060 | EOF |
17061 | ||
10f2d63a VZ |
17062 | fi |
17063 | ||
17064 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
698dcdb6 | 17065 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17066 | #define wxUSE_MINIFRAME 1 |
17067 | EOF | |
17068 | ||
17069 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
17070 | fi | |
17071 | ||
17072 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 17073 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17074 | #define wxUSE_HTML 1 |
17075 | EOF | |
17076 | ||
17077 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
17078 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
17079 | fi | |
17080 | ||
17081 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 17082 | cat >> confdefs.h <<\EOF |
1e487827 VS |
17083 | #define wxUSE_VALIDATORS 1 |
17084 | EOF | |
703e0a69 | 17085 | |
698dcdb6 VZ |
17086 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
17087 | fi | |
17088 | ||
17089 | if test "$wxUSE_IMAGE" = "yes" ; then | |
17090 | cat >> confdefs.h <<\EOF | |
17091 | #define wxUSE_IMAGE 1 | |
17092 | EOF | |
17093 | ||
17094 | fi | |
17095 | ||
17096 | if test "$wxUSE_GIF" = "yes" ; then | |
17097 | cat >> confdefs.h <<\EOF | |
17098 | #define wxUSE_GIF 1 | |
17099 | EOF | |
17100 | ||
17101 | fi | |
17102 | ||
17103 | if test "$wxUSE_PCX" = "yes" ; then | |
17104 | cat >> confdefs.h <<\EOF | |
17105 | #define wxUSE_PCX 1 | |
17106 | EOF | |
17107 | ||
17108 | fi | |
17109 | ||
17110 | if test "$wxUSE_PNM" = "yes" ; then | |
17111 | cat >> confdefs.h <<\EOF | |
17112 | #define wxUSE_PNM 1 | |
17113 | EOF | |
17114 | ||
17115 | fi | |
17116 | ||
17117 | if test "$wxUSE_XPM" = "yes" ; then | |
17118 | cat >> confdefs.h <<\EOF | |
17119 | #define wxUSE_XPM 1 | |
17120 | EOF | |
17121 | ||
17122 | fi | |
17123 | ||
17124 | ||
1e6feb95 VZ |
17125 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
17126 | cat >> confdefs.h <<\EOF | |
17127 | #define wxUSE_CHOICEDLG 1 | |
17128 | EOF | |
17129 | ||
17130 | fi | |
17131 | ||
17132 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
17133 | cat >> confdefs.h <<\EOF | |
17134 | #define wxUSE_COLOURDLG 1 | |
17135 | EOF | |
17136 | ||
17137 | fi | |
17138 | ||
17139 | if test "$wxUSE_FILEDLG" = "yes"; then | |
17140 | cat >> confdefs.h <<\EOF | |
17141 | #define wxUSE_FILEDLG 1 | |
17142 | EOF | |
17143 | ||
17144 | fi | |
17145 | ||
17146 | if test "$wxUSE_FONTDLG" = "yes"; then | |
17147 | cat >> confdefs.h <<\EOF | |
17148 | #define wxUSE_FONTDLG 1 | |
17149 | EOF | |
17150 | ||
17151 | fi | |
17152 | ||
17153 | if test "$wxUSE_DIRDLG" = "yes"; then | |
17154 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17155 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
17156 | else | |
17157 | if test "$wxUSE_TREECTRL" != "yes"; then | |
17158 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
17159 | else | |
17160 | cat >> confdefs.h <<\EOF | |
17161 | #define wxUSE_DIRDLG 1 | |
17162 | EOF | |
17163 | ||
17164 | fi | |
17165 | fi | |
17166 | fi | |
17167 | ||
17168 | if test "$wxUSE_MSGDLG" = "yes"; then | |
17169 | cat >> confdefs.h <<\EOF | |
17170 | #define wxUSE_MSGDLG 1 | |
17171 | EOF | |
17172 | ||
17173 | fi | |
17174 | ||
17175 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
17176 | cat >> confdefs.h <<\EOF | |
17177 | #define wxUSE_NUMBERDLG 1 | |
17178 | EOF | |
17179 | ||
17180 | fi | |
17181 | ||
17182 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
17183 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17184 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
17185 | else | |
17186 | cat >> confdefs.h <<\EOF | |
17187 | #define wxUSE_PROGRESSDLG 1 | |
17188 | EOF | |
17189 | ||
17190 | fi | |
17191 | fi | |
17192 | ||
17193 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
17194 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17195 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
17196 | else | |
17197 | cat >> confdefs.h <<\EOF | |
17198 | #define wxUSE_STARTUP_TIPS 1 | |
17199 | EOF | |
17200 | ||
17201 | fi | |
17202 | fi | |
17203 | ||
17204 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
17205 | cat >> confdefs.h <<\EOF | |
17206 | #define wxUSE_TEXTDLG 1 | |
17207 | EOF | |
17208 | ||
17209 | fi | |
17210 | ||
b1f5d087 VZ |
17211 | if test "$wxUSE_WIZARDDLG" = "yes"; then |
17212 | cat >> confdefs.h <<\EOF | |
17213 | #define wxUSE_WIZARDDLG 1 | |
17214 | EOF | |
17215 | ||
17216 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
17217 | fi | |
17218 | ||
1e6feb95 | 17219 | |
698dcdb6 VZ |
17220 | if test "$cross_compiling" = "yes"; then |
17221 | OSINFO="\"$host\"" | |
17222 | else | |
17223 | OSINFO=`uname -s -r -m` | |
17224 | OSINFO="\"$OSINFO\"" | |
17225 | fi | |
17226 | ||
17227 | cat >> confdefs.h <<EOF | |
17228 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
17229 | EOF | |
17230 | ||
17231 | ||
17232 | ||
17233 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" | |
17234 | OPENGL_LIBS="$OPENGL_LINK" | |
17235 | ||
17236 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
17237 | if test "$USE_MAC" = 1 ; then | |
17238 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" | |
17239 | fi | |
17240 | if test "$wxUSE_GUI" = "yes"; then | |
17241 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
17242 | fi | |
17243 | ||
17244 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
17245 | ||
17246 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
17247 | ||
17248 | if test "$wxUSE_GTK" = 1; then | |
17249 | WXCONFIG_INCLUDE="" | |
17250 | else | |
17251 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
17252 | fi | |
17253 | ||
17254 | if test "$GXX" = yes ; then | |
17255 | CXXWARNINGS="-Wall" | |
17256 | fi | |
17257 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
17258 | ||
17259 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
17260 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
17261 | ||
17262 | LDFLAGS="$LDFLAGS $PROFILE" | |
17263 | ||
17264 | if test "$wxUSE_GUI" = "yes"; then | |
17265 | ||
24fd6d87 | 17266 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ |
1e6feb95 VZ |
17267 | drawing dynamic event font fractal image \ |
17268 | minimal richedit widgets" | |
17269 | ||
17270 | if test "$wxUSE_UNIVERSAL" = "yes" ; then | |
17271 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" | |
17272 | fi | |
698dcdb6 VZ |
17273 | |
17274 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
17275 | else | |
17276 | SAMPLES_SUBDIRS="" | |
17277 | fi | |
17278 | ||
17279 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
17280 | ||
17281 | ||
17282 | ||
17283 | ||
17284 | ||
17285 | ||
17286 | ||
17287 | ||
17288 | ||
17289 | ||
17290 | ||
17291 | ||
17292 | ||
17293 | ||
17294 | ||
17295 | ||
17296 | ||
17297 | ||
17298 | ||
17299 | ||
17300 | ||
17301 | ||
17302 | ||
17303 | ||
17304 | ||
17305 | ||
17306 | ||
17307 | ||
17308 | ||
17309 | ||
17310 | ||
17311 | ||
17312 | ||
17313 | ||
17314 | ||
17315 | ||
17316 | ||
17317 | ||
17318 | ||
17319 | ||
17320 | ||
17321 | ||
17322 | ||
17323 | ||
17324 | ||
17325 | ||
17326 | ||
17327 | ||
17328 | ||
17329 | ||
17330 | ||
17331 | ||
17332 | ||
17333 | ||
17334 | ||
17335 | ||
17336 | ||
17337 | ||
17338 | ||
17339 | ||
17340 | ||
17341 | ||
17342 | ||
17343 | ||
17344 | ||
17345 | ||
17346 | ||
32832908 VZ |
17347 | |
17348 | ||
17349 | ||
17350 | ||
17351 | ||
17352 | ||
17353 | ||
2224580a | 17354 | |
dad6c0ea | 17355 | |
f6bcfd97 BP |
17356 | |
17357 | ||
17358 | ||
2f51a9ec GD |
17359 | |
17360 | ||
17361 | ||
17362 | ||
17363 | ||
17364 | ||
f6bcfd97 | 17365 | |
dad6c0ea | 17366 | |
caa2c79b | 17367 | |
3711412e | 17368 | |
1e6feb95 VZ |
17369 | |
17370 | ||
0f3f1cbc | 17371 | |
10f2d63a VZ |
17372 | |
17373 | ||
698dcdb6 | 17374 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
d1a8d972 | 17375 | echo "configure:17376: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
17376 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
17377 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
17378 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17379 | else |
698dcdb6 | 17380 | cat > conftestmake <<\EOF |
10f2d63a VZ |
17381 | all: |
17382 | @echo 'ac_maketemp="${MAKE}"' | |
17383 | EOF | |
17384 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 17385 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
17386 | if test -n "$ac_maketemp"; then |
17387 | eval ac_cv_prog_make_${ac_make}_set=yes | |
17388 | else | |
17389 | eval ac_cv_prog_make_${ac_make}_set=no | |
17390 | fi | |
698dcdb6 | 17391 | rm -f conftestmake |
10f2d63a VZ |
17392 | fi |
17393 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 17394 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
17395 | SET_MAKE= |
17396 | else | |
698dcdb6 | 17397 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
17398 | SET_MAKE="MAKE=${MAKE-make}" |
17399 | fi | |
17400 | ||
698dcdb6 | 17401 | |
00cf1208 RR |
17402 | if test -d include; then |
17403 | if test -d include/wx; then | |
1e6feb95 VZ |
17404 | if test -d include/wx/${SETUPH_DIR}; then |
17405 | if test -f include/wx/${SETUPH_DIR}/setup.h; then | |
17406 | mv -f include/wx/${SETUPH_DIR}/setup.h setup.h | |
00cf1208 RR |
17407 | fi |
17408 | fi | |
17409 | fi | |
17410 | fi | |
665bbe97 | 17411 | |
698dcdb6 | 17412 | |
10f2d63a | 17413 | |
2224580a | 17414 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 17415 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
17416 | wx_cv_path_ifs=$PATH_IFS |
17417 | wx_cv_program_ext=$PROGRAM_EXT | |
17418 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 17419 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 VS |
17420 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
17421 | wx_cv_target_library wx_cv_target_libtype | |
698dcdb6 | 17422 | subdirs="demos samples utils contrib" |
2224580a VZ |
17423 | |
17424 | fi | |
10f2d63a | 17425 | |
698dcdb6 VZ |
17426 | trap '' 1 2 15 |
17427 | cat > confcache <<\EOF | |
10f2d63a VZ |
17428 | # This file is a shell script that caches the results of configure |
17429 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
17430 | # scripts and configure runs. It is not useful on other systems. |
17431 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 17432 | # |
698dcdb6 VZ |
17433 | # By default, configure uses ./config.cache as the cache file, |
17434 | # creating it if it does not exist already. You can give configure | |
17435 | # the --cache-file=FILE option to use a different cache file; that is | |
17436 | # what configure does when it calls configure scripts in | |
17437 | # subdirectories, so they share the cache. | |
17438 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17439 | # config.status only pays attention to the cache file if you give it the | |
17440 | # --recheck option to rerun configure. | |
10f2d63a | 17441 | # |
698dcdb6 | 17442 | EOF |
10f2d63a VZ |
17443 | # The following way of writing the cache mishandles newlines in values, |
17444 | # but we know of no workaround that is simple, portable, and efficient. | |
17445 | # So, don't put newlines in cache variables' values. | |
17446 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17447 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
17448 | (set) 2>&1 | |
17449 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17450 | *ac_space=\ *) | |
17451 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17452 | # turns \\\\ into \\, and sed turns \\ into \). | |
17453 | sed -n \ | |
17454 | -e "s/'/'\\\\''/g" \ | |
17455 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17456 | ;; | |
17457 | *) | |
17458 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17459 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17460 | ;; | |
17461 | esac >> confcache | |
17462 | if cmp -s $cache_file confcache; then | |
17463 | : | |
17464 | else | |
10f2d63a | 17465 | if test -w $cache_file; then |
698dcdb6 VZ |
17466 | echo "updating cache $cache_file" |
17467 | cat confcache > $cache_file | |
10f2d63a VZ |
17468 | else |
17469 | echo "not updating unwritable cache $cache_file" | |
17470 | fi | |
17471 | fi | |
17472 | rm -f confcache | |
17473 | ||
698dcdb6 VZ |
17474 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
17475 | ||
10f2d63a VZ |
17476 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17477 | # Let make expand exec_prefix. | |
17478 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17479 | ||
698dcdb6 VZ |
17480 | # Any assignment to VPATH causes Sun make to only execute |
17481 | # the first set of double-colon rules, so remove it if not needed. | |
17482 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 17483 | if test "x$srcdir" = x.; then |
698dcdb6 | 17484 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
17485 | fi |
17486 | ||
698dcdb6 VZ |
17487 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
17488 | ||
10f2d63a VZ |
17489 | DEFS=-DHAVE_CONFIG_H |
17490 | ||
698dcdb6 | 17491 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 17492 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
17493 | |
17494 | echo creating $CONFIG_STATUS | |
17495 | rm -f $CONFIG_STATUS | |
17496 | cat > $CONFIG_STATUS <<EOF | |
17497 | #! /bin/sh | |
10f2d63a VZ |
17498 | # Generated automatically by configure. |
17499 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
17500 | # This directory was configured as follows, |
17501 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17502 | # | |
17503 | # $0 $ac_configure_args | |
17504 | # | |
10f2d63a | 17505 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 17506 | # configure, is in ./config.log if it exists. |
1e487827 | 17507 | |
698dcdb6 VZ |
17508 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
17509 | for ac_option | |
10f2d63a | 17510 | do |
698dcdb6 | 17511 | case "\$ac_option" in |
10f2d63a | 17512 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
17513 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
17514 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
17515 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
17516 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
17517 | exit 0 ;; | |
17518 | -help | --help | --hel | --he | --h) | |
17519 | echo "\$ac_cs_usage"; exit 0 ;; | |
17520 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
17521 | esac |
17522 | done | |
17523 | ||
698dcdb6 VZ |
17524 | ac_given_srcdir=$srcdir |
17525 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 17526 | |
698dcdb6 VZ |
17527 | trap 'rm -fr `echo " |
17528 | wx-config | |
17529 | src/make.env | |
17530 | src/makeprog.env | |
17531 | src/makelib.env | |
17532 | Makefile | |
17533 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 17534 | EOF |
698dcdb6 | 17535 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 17536 | |
698dcdb6 VZ |
17537 | # Protect against being on the right side of a sed subst in config.status. |
17538 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
17539 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
17540 | $ac_vpsub | |
17541 | $extrasub | |
17542 | s%@SHELL@%$SHELL%g | |
17543 | s%@CFLAGS@%$CFLAGS%g | |
17544 | s%@CPPFLAGS@%$CPPFLAGS%g | |
17545 | s%@CXXFLAGS@%$CXXFLAGS%g | |
17546 | s%@FFLAGS@%$FFLAGS%g | |
17547 | s%@DEFS@%$DEFS%g | |
17548 | s%@LDFLAGS@%$LDFLAGS%g | |
17549 | s%@LIBS@%$LIBS%g | |
17550 | s%@exec_prefix@%$exec_prefix%g | |
17551 | s%@prefix@%$prefix%g | |
17552 | s%@program_transform_name@%$program_transform_name%g | |
17553 | s%@bindir@%$bindir%g | |
17554 | s%@sbindir@%$sbindir%g | |
17555 | s%@libexecdir@%$libexecdir%g | |
17556 | s%@datadir@%$datadir%g | |
17557 | s%@sysconfdir@%$sysconfdir%g | |
17558 | s%@sharedstatedir@%$sharedstatedir%g | |
17559 | s%@localstatedir@%$localstatedir%g | |
17560 | s%@libdir@%$libdir%g | |
17561 | s%@includedir@%$includedir%g | |
17562 | s%@oldincludedir@%$oldincludedir%g | |
17563 | s%@infodir@%$infodir%g | |
17564 | s%@mandir@%$mandir%g | |
17565 | s%@host@%$host%g | |
17566 | s%@host_alias@%$host_alias%g | |
17567 | s%@host_cpu@%$host_cpu%g | |
17568 | s%@host_vendor@%$host_vendor%g | |
17569 | s%@host_os@%$host_os%g | |
17570 | s%@target@%$target%g | |
17571 | s%@target_alias@%$target_alias%g | |
17572 | s%@target_cpu@%$target_cpu%g | |
17573 | s%@target_vendor@%$target_vendor%g | |
17574 | s%@target_os@%$target_os%g | |
17575 | s%@build@%$build%g | |
17576 | s%@build_alias@%$build_alias%g | |
17577 | s%@build_cpu@%$build_cpu%g | |
17578 | s%@build_vendor@%$build_vendor%g | |
17579 | s%@build_os@%$build_os%g | |
17580 | s%@CC@%$CC%g | |
17581 | s%@CPP@%$CPP%g | |
17582 | s%@CXX@%$CXX%g | |
17583 | s%@CXXCPP@%$CXXCPP%g | |
17584 | s%@RANLIB@%$RANLIB%g | |
17585 | s%@AR@%$AR%g | |
17586 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
17587 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
17588 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
17589 | s%@STRIP@%$STRIP%g | |
17590 | s%@YACC@%$YACC%g | |
17591 | s%@LEX@%$LEX%g | |
17592 | s%@LEXLIB@%$LEXLIB%g | |
17593 | s%@LN_S@%$LN_S%g | |
17594 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
17595 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
17596 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 17597 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
17598 | s%@X_CFLAGS@%$X_CFLAGS%g |
17599 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
17600 | s%@X_LIBS@%$X_LIBS%g | |
17601 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
17602 | s%@REZ@%$REZ%g | |
17603 | s%@DEREZ@%$DEREZ%g | |
17604 | s%@LEX_STEM@%$LEX_STEM%g | |
17605 | s%@PATH_IFS@%$PATH_IFS%g | |
17606 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
17607 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
17608 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
17609 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
17610 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
17611 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
17612 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
17613 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
17614 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
17615 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
17616 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
17617 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
17618 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g | |
17619 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
17620 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
17621 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
17622 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
17623 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
17624 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
17625 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
17626 | s%@WX_ALL@%$WX_ALL%g | |
17627 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
17628 | s%@SHARED_LD@%$SHARED_LD%g | |
17629 | s%@PIC_FLAG@%$PIC_FLAG%g | |
17630 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
17631 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
17632 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
17633 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g | |
17634 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g | |
17635 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
17636 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
17637 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
17638 | s%@USE_GUI@%$USE_GUI%g | |
17639 | s%@AFMINSTALL@%$AFMINSTALL%g | |
1e6feb95 | 17640 | s%@SETUPH_DIR@%$SETUPH_DIR%g |
698dcdb6 VZ |
17641 | s%@TOOLKIT@%$TOOLKIT%g |
17642 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
17643 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
17644 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g | |
17645 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
1e6feb95 | 17646 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
698dcdb6 VZ |
17647 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
17648 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
17649 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
17650 | s%@GUIDIST@%$GUIDIST%g | |
17651 | s%@PORT_FILES@%$PORT_FILES%g | |
17652 | s%@DISTDIR@%$DISTDIR%g | |
17653 | s%@RPM_SPEC@%$RPM_SPEC%g | |
17654 | s%@RPM_FILES@%$RPM_FILES%g | |
17655 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
17656 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
17657 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
17658 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
17659 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
17660 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
17661 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
17662 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
17663 | s%@EXTRADEFS@%$EXTRADEFS%g | |
17664 | s%@LD_LIBS@%$LD_LIBS%g | |
17665 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g | |
17666 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
17667 | s%@RESPROGRAM@%$RESPROGRAM%g | |
17668 | s%@RESCOMP@%$RESCOMP%g | |
17669 | s%@RESFLAGS@%$RESFLAGS%g | |
17670 | s%@REZFLAGS@%$REZFLAGS%g | |
17671 | s%@DEREZFLAGS@%$DEREZFLAGS%g | |
17672 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
17673 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
17674 | s%@DLLTOOL@%$DLLTOOL%g | |
17675 | s%@AS@%$AS%g | |
17676 | s%@NM@%$NM%g | |
17677 | s%@LD@%$LD%g | |
17678 | s%@MAKEINFO@%$MAKEINFO%g | |
17679 | s%@SET_MAKE@%$SET_MAKE%g | |
17680 | s%@subdirs@%$subdirs%g | |
1e487827 | 17681 | |
1e487827 | 17682 | CEOF |
1e487827 VS |
17683 | EOF |
17684 | ||
698dcdb6 VZ |
17685 | cat >> $CONFIG_STATUS <<\EOF |
17686 | ||
17687 | # Split the substitutions into bite-sized pieces for seds with | |
17688 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
17689 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
17690 | ac_file=1 # Number of current file. | |
17691 | ac_beg=1 # First line for current file. | |
17692 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
17693 | ac_more_lines=: | |
17694 | ac_sed_cmds="" | |
17695 | while $ac_more_lines; do | |
17696 | if test $ac_beg -gt 1; then | |
17697 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
17698 | else | |
17699 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
17700 | fi | |
17701 | if test ! -s conftest.s$ac_file; then | |
17702 | ac_more_lines=false | |
17703 | rm -f conftest.s$ac_file | |
17704 | else | |
17705 | if test -z "$ac_sed_cmds"; then | |
17706 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 17707 | else |
698dcdb6 | 17708 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 17709 | fi |
698dcdb6 VZ |
17710 | ac_file=`expr $ac_file + 1` |
17711 | ac_beg=$ac_end | |
17712 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 17713 | fi |
698dcdb6 VZ |
17714 | done |
17715 | if test -z "$ac_sed_cmds"; then | |
17716 | ac_sed_cmds=cat | |
17717 | fi | |
17718 | EOF | |
10f2d63a | 17719 | |
698dcdb6 VZ |
17720 | cat >> $CONFIG_STATUS <<EOF |
17721 | ||
17722 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
17723 | src/make.env | |
17724 | src/makeprog.env | |
17725 | src/makelib.env | |
17726 | Makefile | |
17727 | "} | |
10f2d63a | 17728 | EOF |
698dcdb6 VZ |
17729 | cat >> $CONFIG_STATUS <<\EOF |
17730 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 17731 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
17732 | case "$ac_file" in |
17733 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17734 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17735 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
17736 | esac |
17737 | ||
698dcdb6 | 17738 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 17739 | |
698dcdb6 VZ |
17740 | # Remove last slash and all that follows it. Not all systems have dirname. |
17741 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
17742 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
17743 | # The file is in a subdirectory. | |
17744 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
17745 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 17746 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 17747 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
17748 | else |
17749 | ac_dir_suffix= ac_dots= | |
17750 | fi | |
17751 | ||
698dcdb6 VZ |
17752 | case "$ac_given_srcdir" in |
17753 | .) srcdir=. | |
17754 | if test -z "$ac_dots"; then top_srcdir=. | |
17755 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
17756 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 17757 | *) # Relative path. |
698dcdb6 VZ |
17758 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
17759 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
17760 | esac |
17761 | ||
698dcdb6 VZ |
17762 | case "$ac_given_INSTALL" in |
17763 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
17764 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
17765 | esac |
17766 | ||
698dcdb6 VZ |
17767 | echo creating "$ac_file" |
17768 | rm -f "$ac_file" | |
17769 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
17770 | case "$ac_file" in | |
17771 | *Makefile*) ac_comsub="1i\\ | |
17772 | # $configure_input" ;; | |
17773 | *) ac_comsub= ;; | |
17774 | esac | |
10f2d63a | 17775 | |
698dcdb6 VZ |
17776 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
17777 | sed -e "$ac_comsub | |
17778 | s%@configure_input@%$configure_input%g | |
17779 | s%@srcdir@%$srcdir%g | |
17780 | s%@top_srcdir@%$top_srcdir%g | |
17781 | s%@INSTALL@%$INSTALL%g | |
17782 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
17783 | fi; done | |
17784 | rm -f conftest.s* | |
10f2d63a VZ |
17785 | |
17786 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
17787 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
17788 | # | |
17789 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
17790 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
17791 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
17792 | ac_dC='\3' | |
17793 | ac_dD='%g' | |
17794 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
17795 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17796 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 17797 | ac_uC=' ' |
698dcdb6 VZ |
17798 | ac_uD='\4%g' |
17799 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
17800 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17801 | ac_eB='$%\1#\2define\3' | |
17802 | ac_eC=' ' | |
17803 | ac_eD='%g' | |
10f2d63a | 17804 | |
698dcdb6 VZ |
17805 | if test "${CONFIG_HEADERS+set}" != set; then |
17806 | EOF | |
17807 | cat >> $CONFIG_STATUS <<EOF | |
17808 | CONFIG_HEADERS="setup.h:setup.h.in" | |
17809 | EOF | |
17810 | cat >> $CONFIG_STATUS <<\EOF | |
17811 | fi | |
17812 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 17813 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
17814 | case "$ac_file" in |
17815 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17816 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17817 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
17818 | esac |
17819 | ||
698dcdb6 VZ |
17820 | echo creating $ac_file |
17821 | ||
17822 | rm -f conftest.frag conftest.in conftest.out | |
17823 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
17824 | cat $ac_file_inputs > conftest.in | |
17825 | ||
17826 | EOF | |
17827 | ||
17828 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
17829 | # the proper values into config.h.in to produce config.h. And first: | |
17830 | # Protect against being on the right side of a sed subst in config.status. | |
17831 | # Protect against being in an unquoted here document in config.status. | |
17832 | rm -f conftest.vals | |
17833 | cat > conftest.hdr <<\EOF | |
17834 | s/[\\&%]/\\&/g | |
17835 | s%[\\$`]%\\&%g | |
17836 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
17837 | s%ac_d%ac_u%gp | |
17838 | s%ac_u%ac_e%gp | |
17839 | EOF | |
17840 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
17841 | rm -f conftest.hdr | |
10f2d63a VZ |
17842 | |
17843 | # This sed command replaces #undef with comments. This is necessary, for | |
17844 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
17845 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
17846 | cat >> conftest.vals <<\EOF |
17847 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
17848 | EOF |
17849 | ||
698dcdb6 VZ |
17850 | # Break up conftest.vals because some shells have a limit on |
17851 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
17852 | |
17853 | rm -f conftest.tail | |
698dcdb6 | 17854 | while : |
10f2d63a | 17855 | do |
698dcdb6 VZ |
17856 | ac_lines=`grep -c . conftest.vals` |
17857 | # grep -c gives empty output for an empty file on some AIX systems. | |
17858 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
17859 | # Write a limited-size here document to conftest.frag. | |
17860 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
17861 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 17862 | echo 'CEOF |
698dcdb6 VZ |
17863 | sed -f conftest.frag conftest.in > conftest.out |
17864 | rm -f conftest.in | |
17865 | mv conftest.out conftest.in | |
17866 | ' >> $CONFIG_STATUS | |
17867 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
17868 | rm -f conftest.vals | |
17869 | mv conftest.tail conftest.vals | |
10f2d63a | 17870 | done |
698dcdb6 VZ |
17871 | rm -f conftest.vals |
17872 | ||
17873 | cat >> $CONFIG_STATUS <<\EOF | |
17874 | rm -f conftest.frag conftest.h | |
17875 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
17876 | cat conftest.in >> conftest.h | |
17877 | rm -f conftest.in | |
17878 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
17879 | echo "$ac_file is unchanged" | |
17880 | rm -f conftest.h | |
10f2d63a | 17881 | else |
698dcdb6 VZ |
17882 | # Remove last slash and all that follows it. Not all systems have dirname. |
17883 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 17884 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
17885 | # The file is in a subdirectory. |
17886 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 17887 | fi |
698dcdb6 VZ |
17888 | rm -f $ac_file |
17889 | mv conftest.h $ac_file | |
10f2d63a | 17890 | fi |
698dcdb6 VZ |
17891 | fi; done |
17892 | ||
10f2d63a | 17893 | EOF |
698dcdb6 | 17894 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 17895 | |
1e6feb95 | 17896 | SETUPH_DIR="${SETUPH_DIR}" |
698dcdb6 VZ |
17897 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
17898 | LN_S="${LN_S}" | |
17899 | ||
17900 | ||
17901 | EOF | |
17902 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 17903 | |
6ef41520 | 17904 | if test ! -f wx${TOOLKIT_NAME}-config; then |
991a5759 VZ |
17905 | chmod +x wx-config |
17906 | mv wx-config wx${TOOLKIT_NAME}-config | |
17907 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
17908 | fi | |
665bbe97 | 17909 | |
698dcdb6 | 17910 | |
00cf1208 RR |
17911 | if test ! -d lib; then |
17912 | mkdir lib | |
17913 | fi | |
17914 | if test ! -d lib/wx; then | |
17915 | mkdir lib/wx | |
17916 | fi | |
17917 | if test ! -d lib/wx/include; then | |
17918 | mkdir lib/wx/include | |
17919 | fi | |
17920 | if test ! -d lib/wx/include/wx; then | |
17921 | mkdir lib/wx/include/wx | |
17922 | fi | |
f6bcfd97 BP |
17923 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
17924 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
17925 | fi |
17926 | if test -f setup.h; then | |
066b00aa | 17927 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 17928 | fi |
07eb77a6 | 17929 | |
698dcdb6 | 17930 | |
10f2d63a VZ |
17931 | if test ! -d include; then |
17932 | mkdir include | |
17933 | fi | |
17934 | if test ! -d include/wx; then | |
17935 | mkdir include/wx | |
17936 | fi | |
1e6feb95 VZ |
17937 | if test ! -d include/wx/${SETUPH_DIR}; then |
17938 | mkdir include/wx/${SETUPH_DIR} | |
10f2d63a | 17939 | fi |
afc31813 | 17940 | if test -f setup.h; then |
1e6feb95 | 17941 | cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h |
afc31813 | 17942 | fi |
665bbe97 | 17943 | |
698dcdb6 VZ |
17944 | |
17945 | exit 0 | |
10f2d63a VZ |
17946 | EOF |
17947 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
17948 | rm -fr confdefs* $ac_clean_files |
17949 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 17950 | |
2224580a VZ |
17951 | if test "$no_recursion" != yes; then |
17952 | ||
17953 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
17954 | ac_sub_configure_args= | |
17955 | ac_prev= | |
17956 | for ac_arg in $ac_configure_args; do | |
17957 | if test -n "$ac_prev"; then | |
17958 | ac_prev= | |
17959 | continue | |
17960 | fi | |
698dcdb6 | 17961 | case "$ac_arg" in |
2224580a VZ |
17962 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
17963 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
17964 | ac_prev=cache_file ;; | |
17965 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 17966 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
17967 | ;; |
17968 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
17969 | ac_prev=srcdir ;; | |
17970 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
17971 | ;; | |
17972 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
17973 | esac | |
17974 | done | |
17975 | ||
698dcdb6 | 17976 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
17977 | |
17978 | # Do not complain, so a configure script can configure whichever | |
17979 | # parts of a large source tree are present. | |
698dcdb6 VZ |
17980 | if test ! -d $srcdir/$ac_config_dir; then |
17981 | continue | |
17982 | fi | |
17983 | ||
17984 | echo configuring in $ac_config_dir | |
2224580a | 17985 | |
698dcdb6 | 17986 | case "$srcdir" in |
2224580a VZ |
17987 | .) ;; |
17988 | *) | |
698dcdb6 VZ |
17989 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
17990 | else | |
17991 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
17992 | fi | |
17993 | ;; | |
2224580a VZ |
17994 | esac |
17995 | ||
17996 | ac_popdir=`pwd` | |
698dcdb6 | 17997 | cd $ac_config_dir |
2224580a | 17998 | |
698dcdb6 VZ |
17999 | # A "../" for each directory in /$ac_config_dir. |
18000 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 18001 | |
698dcdb6 | 18002 | case "$srcdir" in |
2224580a VZ |
18003 | .) # No --srcdir option. We are building in place. |
18004 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
18005 | /*) # Absolute path. |
18006 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 18007 | *) # Relative path. |
698dcdb6 | 18008 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
18009 | esac |
18010 | ||
18011 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
18012 | if test -f $ac_sub_srcdir/configure; then |
18013 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
18014 | elif test -f $ac_sub_srcdir/configure.in; then |
18015 | ac_sub_configure=$ac_configure | |
18016 | else | |
698dcdb6 | 18017 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
18018 | ac_sub_configure= |
18019 | fi | |
18020 | ||
18021 | # The recursion is here. | |
18022 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 18023 | |
2224580a | 18024 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
18025 | case "$cache_file" in |
18026 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 18027 | *) # Relative path. |
698dcdb6 | 18028 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 18029 | esac |
698dcdb6 VZ |
18030 | case "$ac_given_INSTALL" in |
18031 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18032 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
18033 | esac | |
2224580a | 18034 | |
698dcdb6 | 18035 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 18036 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
18037 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
18038 | then : | |
18039 | else | |
18040 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
18041 | fi | |
2224580a VZ |
18042 | fi |
18043 | ||
18044 | cd $ac_popdir | |
18045 | done | |
18046 | fi | |
18047 | ||
698dcdb6 | 18048 |