]>
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" |
698dcdb6 | 324 | ac_help="$ac_help |
8168de4c | 325 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" |
1e6feb95 | 326 | ac_help="$ac_help |
8168de4c | 327 | --enable-miniframe use wxMiniFrame class" |
698dcdb6 | 328 | ac_help="$ac_help |
8168de4c | 329 | --enable-html use wxHTML sub-library" |
698dcdb6 | 330 | ac_help="$ac_help |
8168de4c | 331 | --enable-tooltips use wxToolTip class" |
698dcdb6 | 332 | ac_help="$ac_help |
8168de4c | 333 | --enable-splines use spline drawing code" |
698dcdb6 | 334 | ac_help="$ac_help |
8168de4c | 335 | --enable-validators use wxValidator and derived classes" |
698dcdb6 | 336 | ac_help="$ac_help |
8168de4c | 337 | --enable-busyinfo use wxBusyInfo" |
698dcdb6 | 338 | ac_help="$ac_help |
8168de4c | 339 | --enable-joystick compile in joystick support (Linux only)" |
698dcdb6 | 340 | ac_help="$ac_help |
8168de4c | 341 | --enable-metafiles use wxMetaFile (Windows only)" |
24fd6d87 VZ |
342 | ac_help="$ac_help |
343 | --enable-dragimage use wxDragImage" | |
1e6feb95 | 344 | ac_help="$ac_help |
8168de4c | 345 | --enable-image use wxImage class" |
698dcdb6 | 346 | ac_help="$ac_help |
8168de4c | 347 | --enable-gif use gif images (GIF file format)" |
698dcdb6 | 348 | ac_help="$ac_help |
8168de4c | 349 | --enable-pcx use pcx images (PCX file format)" |
698dcdb6 | 350 | ac_help="$ac_help |
8168de4c | 351 | --enable-pnm use pnm images (PNM file format)" |
698dcdb6 | 352 | ac_help="$ac_help |
8168de4c | 353 | --enable-xpm use xpm images (XPM file format)" |
698dcdb6 VZ |
354 | ac_help="$ac_help |
355 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
356 | ac_help="$ac_help | |
357 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
358 | ac_help="$ac_help | |
359 | --disable-gtktest Do not try to compile and run a test GTK program" | |
360 | ac_help="$ac_help | |
361 | --with-x use the X Window System" | |
10f2d63a VZ |
362 | |
363 | # Initialize some variables set by options. | |
364 | # The variables have the same names as the options, with | |
365 | # dashes changed to underlines. | |
698dcdb6 VZ |
366 | build=NONE |
367 | cache_file=./config.cache | |
10f2d63a | 368 | exec_prefix=NONE |
698dcdb6 | 369 | host=NONE |
10f2d63a | 370 | no_create= |
698dcdb6 | 371 | nonopt=NONE |
10f2d63a VZ |
372 | no_recursion= |
373 | prefix=NONE | |
374 | program_prefix=NONE | |
375 | program_suffix=NONE | |
376 | program_transform_name=s,x,x, | |
377 | silent= | |
378 | site= | |
379 | srcdir= | |
698dcdb6 | 380 | target=NONE |
10f2d63a VZ |
381 | verbose= |
382 | x_includes=NONE | |
383 | x_libraries=NONE | |
384 | bindir='${exec_prefix}/bin' | |
385 | sbindir='${exec_prefix}/sbin' | |
386 | libexecdir='${exec_prefix}/libexec' | |
387 | datadir='${prefix}/share' | |
388 | sysconfdir='${prefix}/etc' | |
389 | sharedstatedir='${prefix}/com' | |
390 | localstatedir='${prefix}/var' | |
391 | libdir='${exec_prefix}/lib' | |
392 | includedir='${prefix}/include' | |
393 | oldincludedir='/usr/include' | |
394 | infodir='${prefix}/info' | |
395 | mandir='${prefix}/man' | |
396 | ||
698dcdb6 VZ |
397 | # Initialize some other variables. |
398 | subdirs= | |
399 | MFLAGS= MAKEFLAGS= | |
400 | SHELL=${CONFIG_SHELL-/bin/sh} | |
401 | # Maximum number of lines to put in a shell here document. | |
402 | ac_max_here_lines=12 | |
10f2d63a VZ |
403 | |
404 | ac_prev= | |
405 | for ac_option | |
406 | do | |
698dcdb6 | 407 | |
10f2d63a VZ |
408 | # If the previous option needs an argument, assign it. |
409 | if test -n "$ac_prev"; then | |
410 | eval "$ac_prev=\$ac_option" | |
411 | ac_prev= | |
412 | continue | |
413 | fi | |
414 | ||
698dcdb6 VZ |
415 | case "$ac_option" in |
416 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
417 | *) ac_optarg= ;; | |
418 | esac | |
10f2d63a VZ |
419 | |
420 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
421 | ||
698dcdb6 | 422 | case "$ac_option" in |
10f2d63a VZ |
423 | |
424 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
425 | ac_prev=bindir ;; | |
426 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 427 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
428 | |
429 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 430 | ac_prev=build ;; |
10f2d63a | 431 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 432 | build="$ac_optarg" ;; |
10f2d63a VZ |
433 | |
434 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
435 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
436 | ac_prev=cache_file ;; | |
437 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
438 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 439 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
440 | |
441 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
442 | ac_prev=datadir ;; | |
443 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
444 | | --da=*) | |
698dcdb6 | 445 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
446 | |
447 | -disable-* | --disable-*) | |
698dcdb6 | 448 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 449 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
450 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
451 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
452 | fi | |
453 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
454 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
455 | |
456 | -enable-* | --enable-*) | |
698dcdb6 | 457 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 458 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
459 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
460 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
461 | fi | |
462 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
463 | case "$ac_option" in | |
464 | *=*) ;; | |
10f2d63a VZ |
465 | *) ac_optarg=yes ;; |
466 | esac | |
698dcdb6 | 467 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
468 | |
469 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
470 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
471 | | --exec | --exe | --ex) | |
472 | ac_prev=exec_prefix ;; | |
473 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
474 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
475 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 476 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
477 | |
478 | -gas | --gas | --ga | --g) | |
479 | # Obsolete; use --with-gas. | |
480 | with_gas=yes ;; | |
481 | ||
698dcdb6 VZ |
482 | -help | --help | --hel | --he) |
483 | # Omit some internal or obsolete options to make the list less imposing. | |
484 | # This message is too long to be a string in the A/UX 3.1 sh. | |
485 | cat << EOF | |
486 | Usage: configure [options] [host] | |
487 | Options: [defaults in brackets after descriptions] | |
488 | Configuration: | |
489 | --cache-file=FILE cache test results in FILE | |
490 | --help print this message | |
491 | --no-create do not create output files | |
492 | --quiet, --silent do not print \`checking...' messages | |
493 | --version print the version of autoconf that created configure | |
494 | Directory and file names: | |
495 | --prefix=PREFIX install architecture-independent files in PREFIX | |
496 | [$ac_default_prefix] | |
497 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
498 | [same as prefix] | |
499 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
500 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
501 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
502 | --datadir=DIR read-only architecture-independent data in DIR | |
503 | [PREFIX/share] | |
504 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
505 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
506 | [PREFIX/com] | |
507 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
508 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
509 | --includedir=DIR C header files in DIR [PREFIX/include] | |
510 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
511 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
512 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
513 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
514 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
515 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
516 | --program-transform-name=PROGRAM | |
517 | run sed PROGRAM on installed program names | |
518 | EOF | |
519 | cat << EOF | |
520 | Host type: | |
521 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
522 | --host=HOST configure for HOST [guessed] | |
523 | --target=TARGET configure for TARGET [TARGET=HOST] | |
524 | Features and packages: | |
525 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
526 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
527 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
528 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
529 | --x-includes=DIR X include files are in DIR | |
530 | --x-libraries=DIR X library files are in DIR | |
531 | EOF | |
532 | if test -n "$ac_help"; then | |
533 | echo "--enable and --with options recognized:$ac_help" | |
534 | fi | |
535 | exit 0 ;; | |
10f2d63a VZ |
536 | |
537 | -host | --host | --hos | --ho) | |
698dcdb6 | 538 | ac_prev=host ;; |
10f2d63a | 539 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 540 | host="$ac_optarg" ;; |
10f2d63a VZ |
541 | |
542 | -includedir | --includedir | --includedi | --included | --include \ | |
543 | | --includ | --inclu | --incl | --inc) | |
544 | ac_prev=includedir ;; | |
545 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
546 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 547 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
548 | |
549 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
550 | ac_prev=infodir ;; | |
551 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 552 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
553 | |
554 | -libdir | --libdir | --libdi | --libd) | |
555 | ac_prev=libdir ;; | |
556 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 557 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
558 | |
559 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
560 | | --libexe | --libex | --libe) | |
561 | ac_prev=libexecdir ;; | |
562 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
563 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 564 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
565 | |
566 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
567 | | --localstate | --localstat | --localsta | --localst \ | |
568 | | --locals | --local | --loca | --loc | --lo) | |
569 | ac_prev=localstatedir ;; | |
570 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
571 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
572 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 573 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
574 | |
575 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
576 | ac_prev=mandir ;; | |
577 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 578 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
579 | |
580 | -nfp | --nfp | --nf) | |
581 | # Obsolete; use --without-fp. | |
582 | with_fp=no ;; | |
583 | ||
584 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
585 | | --no-cr | --no-c) | |
586 | no_create=yes ;; | |
587 | ||
588 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
589 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
590 | no_recursion=yes ;; | |
591 | ||
592 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
593 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
594 | | --oldin | --oldi | --old | --ol | --o) | |
595 | ac_prev=oldincludedir ;; | |
596 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
597 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
598 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 599 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
600 | |
601 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
602 | ac_prev=prefix ;; | |
603 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 604 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
605 | |
606 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
607 | | --program-pre | --program-pr | --program-p) | |
608 | ac_prev=program_prefix ;; | |
609 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
610 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 611 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
612 | |
613 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
614 | | --program-suf | --program-su | --program-s) | |
615 | ac_prev=program_suffix ;; | |
616 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
617 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 618 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
619 | |
620 | -program-transform-name | --program-transform-name \ | |
621 | | --program-transform-nam | --program-transform-na \ | |
622 | | --program-transform-n | --program-transform- \ | |
623 | | --program-transform | --program-transfor \ | |
624 | | --program-transfo | --program-transf \ | |
625 | | --program-trans | --program-tran \ | |
626 | | --progr-tra | --program-tr | --program-t) | |
627 | ac_prev=program_transform_name ;; | |
628 | -program-transform-name=* | --program-transform-name=* \ | |
629 | | --program-transform-nam=* | --program-transform-na=* \ | |
630 | | --program-transform-n=* | --program-transform-=* \ | |
631 | | --program-transform=* | --program-transfor=* \ | |
632 | | --program-transfo=* | --program-transf=* \ | |
633 | | --program-trans=* | --program-tran=* \ | |
634 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 635 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
636 | |
637 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
638 | | -silent | --silent | --silen | --sile | --sil) | |
639 | silent=yes ;; | |
640 | ||
641 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
642 | ac_prev=sbindir ;; | |
643 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
644 | | --sbi=* | --sb=*) | |
698dcdb6 | 645 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
646 | |
647 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
648 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
649 | | --sharedst | --shareds | --shared | --share | --shar \ | |
650 | | --sha | --sh) | |
651 | ac_prev=sharedstatedir ;; | |
652 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
653 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
654 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
655 | | --sha=* | --sh=*) | |
698dcdb6 | 656 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
657 | |
658 | -site | --site | --sit) | |
659 | ac_prev=site ;; | |
660 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 661 | site="$ac_optarg" ;; |
10f2d63a VZ |
662 | |
663 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
664 | ac_prev=srcdir ;; | |
665 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 666 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
667 | |
668 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
669 | | --syscon | --sysco | --sysc | --sys | --sy) | |
670 | ac_prev=sysconfdir ;; | |
671 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
672 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 673 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
674 | |
675 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 676 | ac_prev=target ;; |
10f2d63a | 677 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 678 | target="$ac_optarg" ;; |
10f2d63a VZ |
679 | |
680 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
681 | verbose=yes ;; | |
682 | ||
698dcdb6 VZ |
683 | -version | --version | --versio | --versi | --vers) |
684 | echo "configure generated by autoconf version 2.13" | |
685 | exit 0 ;; | |
10f2d63a VZ |
686 | |
687 | -with-* | --with-*) | |
698dcdb6 | 688 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 689 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
690 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
691 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
692 | fi | |
10f2d63a | 693 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
694 | case "$ac_option" in |
695 | *=*) ;; | |
10f2d63a VZ |
696 | *) ac_optarg=yes ;; |
697 | esac | |
698dcdb6 | 698 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
699 | |
700 | -without-* | --without-*) | |
698dcdb6 | 701 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 702 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
703 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
704 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
705 | fi | |
706 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
707 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
708 | |
709 | --x) | |
710 | # Obsolete; use --with-x. | |
711 | with_x=yes ;; | |
712 | ||
713 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
714 | | --x-incl | --x-inc | --x-in | --x-i) | |
715 | ac_prev=x_includes ;; | |
716 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
717 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 718 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
719 | |
720 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
721 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
722 | ac_prev=x_libraries ;; | |
723 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
724 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 725 | x_libraries="$ac_optarg" ;; |
10f2d63a | 726 | |
698dcdb6 | 727 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
728 | ;; |
729 | ||
730 | *) | |
698dcdb6 VZ |
731 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
732 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
733 | fi | |
734 | if test "x$nonopt" != xNONE; then | |
735 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
736 | fi | |
737 | nonopt="$ac_option" | |
10f2d63a VZ |
738 | ;; |
739 | ||
740 | esac | |
741 | done | |
742 | ||
743 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
744 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
745 | fi | |
746 | ||
747 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
748 | ||
749 | # File descriptor usage: | |
750 | # 0 standard input | |
751 | # 1 file creation | |
752 | # 2 errors and warnings | |
753 | # 3 some systems may open it to /dev/tty | |
754 | # 4 used on the Kubota Titan | |
755 | # 6 checking for... messages and results | |
756 | # 5 compiler messages saved in config.log | |
757 | if test "$silent" = yes; then | |
758 | exec 6>/dev/null | |
759 | else | |
760 | exec 6>&1 | |
10f2d63a | 761 | fi |
698dcdb6 VZ |
762 | exec 5>./config.log |
763 | ||
764 | echo "\ | |
765 | This file contains any messages produced by compilers while | |
766 | running configure, to aid debugging if configure makes a mistake. | |
767 | " 1>&5 | |
10f2d63a | 768 | |
698dcdb6 VZ |
769 | # Strip out --no-create and --no-recursion so they do not pile up. |
770 | # Also quote any args containing shell metacharacters. | |
771 | ac_configure_args= | |
772 | for ac_arg | |
10f2d63a | 773 | do |
698dcdb6 VZ |
774 | case "$ac_arg" in |
775 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
776 | | --no-cr | --no-c) ;; | |
777 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
778 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
779 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
780 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
781 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
782 | esac |
783 | done | |
784 | ||
698dcdb6 VZ |
785 | # NLS nuisances. |
786 | # Only set these to C if already set. These must not be set unconditionally | |
787 | # because not all systems understand e.g. LANG=C (notably SCO). | |
788 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
789 | # Non-C LC_CTYPE values break the ctype check. | |
790 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
791 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
792 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
793 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 794 | |
698dcdb6 VZ |
795 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
796 | rm -rf conftest* confdefs.h | |
797 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
798 | echo > confdefs.h | |
10f2d63a | 799 | |
698dcdb6 VZ |
800 | # A filename unique to this package, relative to the directory that |
801 | # configure is in, which we can look for to find out if srcdir is correct. | |
802 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
803 | |
804 | # Find the source files, if location was not specified. | |
805 | if test -z "$srcdir"; then | |
806 | ac_srcdir_defaulted=yes | |
807 | # Try the directory containing this script, then its parent. | |
808 | ac_prog=$0 | |
698dcdb6 | 809 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
810 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
811 | srcdir=$ac_confdir | |
812 | if test ! -r $srcdir/$ac_unique_file; then | |
813 | srcdir=.. | |
814 | fi | |
815 | else | |
816 | ac_srcdir_defaulted=no | |
817 | fi | |
818 | if test ! -r $srcdir/$ac_unique_file; then | |
819 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 820 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 821 | else |
698dcdb6 | 822 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
823 | fi |
824 | fi | |
698dcdb6 | 825 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
826 | |
827 | # Prefer explicitly selected file to automatically selected ones. | |
828 | if test -z "$CONFIG_SITE"; then | |
829 | if test "x$prefix" != xNONE; then | |
830 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
831 | else | |
832 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
833 | fi | |
834 | fi | |
835 | for ac_site_file in $CONFIG_SITE; do | |
836 | if test -r "$ac_site_file"; then | |
698dcdb6 | 837 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
838 | . "$ac_site_file" |
839 | fi | |
840 | done | |
841 | ||
842 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
843 | echo "loading cache $cache_file" |
844 | . $cache_file | |
10f2d63a | 845 | else |
698dcdb6 VZ |
846 | echo "creating cache $cache_file" |
847 | > $cache_file | |
10f2d63a VZ |
848 | fi |
849 | ||
850 | ac_ext=c | |
698dcdb6 | 851 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 852 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
853 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
854 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
855 | cross_compiling=$ac_cv_prog_cc_cross | |
856 | ||
857 | ac_exeext= | |
858 | ac_objext=o | |
859 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
860 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
861 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
862 | ac_n= ac_c=' | |
863 | ' ac_t=' ' | |
864 | else | |
865 | ac_n=-n ac_c= ac_t= | |
866 | fi | |
10f2d63a | 867 | else |
698dcdb6 | 868 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 869 | fi |
698dcdb6 VZ |
870 | |
871 | ||
10f2d63a | 872 | |
7c66a493 VZ |
873 | ac_aux_dir= |
874 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
875 | if test -f $ac_dir/install-sh; then | |
876 | ac_aux_dir=$ac_dir | |
877 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
878 | break | |
879 | elif test -f $ac_dir/install.sh; then | |
880 | ac_aux_dir=$ac_dir | |
881 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
882 | break | |
883 | fi | |
884 | done | |
885 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 886 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 887 | fi |
698dcdb6 VZ |
888 | ac_config_guess=$ac_aux_dir/config.guess |
889 | ac_config_sub=$ac_aux_dir/config.sub | |
890 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 891 | |
698dcdb6 VZ |
892 | |
893 | # Do some error checking and defaulting for the host and target type. | |
894 | # The inputs are: | |
895 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
896 | # | |
897 | # The rules are: | |
898 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
899 | # same time. | |
900 | # 2. Host defaults to nonopt. | |
901 | # 3. If nonopt is not specified, then host defaults to the current host, | |
902 | # as determined by config.guess. | |
903 | # 4. Target and build default to nonopt. | |
904 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
905 | |
906 | # The aliases save the names the user supplied, while $host etc. | |
907 | # will get canonicalized. | |
698dcdb6 VZ |
908 | case $host---$target---$nonopt in |
909 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
910 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
911 | esac | |
912 | ||
913 | ||
914 | # Make sure we can run config.sub. | |
915 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
916 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
917 | fi | |
918 | ||
919 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
24fd6d87 | 920 | echo "configure:921: checking host system type" >&5 |
698dcdb6 VZ |
921 | |
922 | host_alias=$host | |
923 | case "$host_alias" in | |
924 | NONE) | |
925 | case $nonopt in | |
926 | NONE) | |
927 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
928 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
929 | fi ;; | |
930 | *) host_alias=$nonopt ;; | |
931 | esac ;; | |
932 | esac | |
933 | ||
934 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
935 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
936 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
937 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
938 | echo "$ac_t""$host" 1>&6 | |
939 | ||
940 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
24fd6d87 | 941 | echo "configure:942: checking target system type" >&5 |
698dcdb6 VZ |
942 | |
943 | target_alias=$target | |
944 | case "$target_alias" in | |
945 | NONE) | |
946 | case $nonopt in | |
947 | NONE) target_alias=$host_alias ;; | |
948 | *) target_alias=$nonopt ;; | |
949 | esac ;; | |
950 | esac | |
951 | ||
952 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
953 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
954 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
955 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
956 | echo "$ac_t""$target" 1>&6 | |
957 | ||
958 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
24fd6d87 | 959 | echo "configure:960: checking build system type" >&5 |
698dcdb6 VZ |
960 | |
961 | build_alias=$build | |
962 | case "$build_alias" in | |
963 | NONE) | |
964 | case $nonopt in | |
965 | NONE) build_alias=$host_alias ;; | |
966 | *) build_alias=$nonopt ;; | |
967 | esac ;; | |
968 | esac | |
969 | ||
970 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
971 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
972 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
973 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
974 | echo "$ac_t""$build" 1>&6 | |
975 | ||
976 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
977 | test "$program_prefix$program_suffix$program_transform_name" = \ |
978 | NONENONEs,x,x, && | |
979 | program_prefix=${target_alias}- | |
980 | ||
698dcdb6 VZ |
981 | |
982 | ||
10f2d63a | 983 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 984 | WX_MINOR_VERSION_NUMBER=3 |
665bbe97 | 985 | WX_RELEASE_NUMBER=1 |
10f2d63a | 986 | |
10f2d63a | 987 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 988 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c RL |
989 | |
990 | WX_CURRENT=0 | |
991 | WX_REVISION=0 | |
992 | WX_AGE=0 | |
993 | ||
698dcdb6 VZ |
994 | |
995 | ||
10f2d63a VZ |
996 | USE_UNIX=1 |
997 | USE_WIN32=0 | |
b12915c1 | 998 | USE_BEOS=0 |
1216f52d | 999 | USE_MAC=0 |
b12915c1 | 1000 | |
10f2d63a VZ |
1001 | USE_LINUX= |
1002 | USE_SGI= | |
1003 | USE_HPUX= | |
1004 | USE_SYSV= | |
1005 | USE_SVR4= | |
1006 | USE_AIX= | |
1007 | USE_SUN= | |
1008 | USE_SOLARIS= | |
1009 | USE_SUNOS= | |
1010 | USE_ALPHA= | |
1011 | USE_OSF= | |
1012 | USE_BSD= | |
1013 | USE_FREEBSD= | |
95c8801c | 1014 | USE_OPENBSD= |
f6bcfd97 | 1015 | USE_NETBSD= |
10f2d63a VZ |
1016 | USE_VMS= |
1017 | USE_ULTRIX= | |
1018 | USE_CYGWIN= | |
1019 | USE_MINGW= | |
1020 | USE_DATA_GENERAL= | |
1021 | ||
ab9b9eab VZ |
1022 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1023 | ||
1e6feb95 | 1024 | ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE" |
10f2d63a VZ |
1025 | |
1026 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1027 | DEFAULT_wxUSE_MAC=0 |
1028 | DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1029 | DEFAULT_wxUSE_MOTIF=0 |
1030 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1031 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1032 | DEFAULT_wxUSE_WINE=0 |
10f2d63a VZ |
1033 | |
1034 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1035 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1036 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
10f2d63a VZ |
1037 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1038 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1039 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1040 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
10f2d63a | 1041 | |
d6a55c4b VZ |
1042 | PROGRAM_EXT= |
1043 | ||
10f2d63a VZ |
1044 | case "${host}" in |
1045 | *-hp-hpux* ) | |
1046 | USE_HPUX=1 | |
1047 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1048 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
698dcdb6 | 1049 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1050 | #define __HPUX__ 1 |
1051 | EOF | |
1052 | ||
1053 | ;; | |
1054 | *-*-linux* ) | |
1055 | USE_LINUX=1 | |
698dcdb6 | 1056 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1057 | #define __LINUX__ 1 |
1058 | EOF | |
1059 | ||
1060 | TMP=`uname -m` | |
1061 | if test "x$TMP" = "xalpha"; then | |
1062 | USE_ALPHA=1 | |
698dcdb6 | 1063 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1064 | #define __ALPHA__ 1 |
1065 | EOF | |
1066 | ||
1067 | fi | |
1068 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1069 | ;; | |
1070 | *-*-irix5* | *-*-irix6* ) | |
1071 | USE_SGI=1 | |
1072 | USE_SVR4=1 | |
698dcdb6 | 1073 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1074 | #define __SGI__ 1 |
1075 | EOF | |
1076 | ||
698dcdb6 | 1077 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1078 | #define __SVR4__ 1 |
1079 | EOF | |
1080 | ||
1081 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1082 | ;; | |
1083 | *-*-solaris2* ) | |
1084 | USE_SUN=1 | |
1085 | USE_SOLARIS=1 | |
1086 | USE_SVR4=1 | |
698dcdb6 | 1087 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1088 | #define __SUN__ 1 |
1089 | EOF | |
1090 | ||
698dcdb6 | 1091 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1092 | #define __SOLARIS__ 1 |
1093 | EOF | |
1094 | ||
698dcdb6 | 1095 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1096 | #define __SVR4__ 1 |
1097 | EOF | |
1098 | ||
1099 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1100 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1101 | ;; |
1102 | *-*-sunos4* ) | |
1103 | USE_SUN=1 | |
1104 | USE_SUNOS=1 | |
1105 | USE_BSD=1 | |
698dcdb6 | 1106 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1107 | #define __SUN__ 1 |
1108 | EOF | |
1109 | ||
698dcdb6 | 1110 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1111 | #define __SUNOS__ 1 |
1112 | EOF | |
1113 | ||
698dcdb6 | 1114 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1115 | #define __BSD__ 1 |
1116 | EOF | |
1117 | ||
1118 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1119 | ;; | |
f6bcfd97 | 1120 | *-*-freebsd*) |
10f2d63a VZ |
1121 | USE_BSD=1 |
1122 | USE_FREEBSD=1 | |
698dcdb6 | 1123 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1124 | #define __FREEBSD__ 1 |
1125 | EOF | |
1126 | ||
698dcdb6 | 1127 | cat >> confdefs.h <<\EOF |
10f2d63a | 1128 | #define __BSD__ 1 |
95c8801c VS |
1129 | EOF |
1130 | ||
1131 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1132 | ;; | |
1133 | *-*-openbsd*) | |
1134 | USE_BSD=1 | |
1135 | USE_OPENBSD=1 | |
698dcdb6 | 1136 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1137 | #define __FREEBSD__ 1 |
1138 | EOF | |
1139 | ||
698dcdb6 | 1140 | cat >> confdefs.h <<\EOF |
95c8801c | 1141 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1142 | EOF |
1143 | ||
1144 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1145 | ;; | |
1146 | *-*-netbsd*) | |
1147 | USE_BSD=1 | |
1148 | USE_NETBSD=1 | |
698dcdb6 | 1149 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1150 | #define __FREEBSD__ 1 |
1151 | EOF | |
1152 | ||
698dcdb6 | 1153 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1154 | #define __NETBSD__ 1 |
10f2d63a VZ |
1155 | EOF |
1156 | ||
1157 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1158 | ;; | |
1159 | *-*-osf* ) | |
1160 | USE_ALPHA=1 | |
1161 | USE_OSF=1 | |
698dcdb6 | 1162 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1163 | #define __ALPHA__ 1 |
1164 | EOF | |
1165 | ||
698dcdb6 | 1166 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1167 | #define __OSF__ 1 |
1168 | EOF | |
1169 | ||
1170 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1171 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1172 | ;; |
1173 | *-*-dgux5* ) | |
1174 | USE_ALPHA=1 | |
1175 | USE_SVR4=1 | |
698dcdb6 | 1176 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1177 | #define __ALPHA__ 1 |
1178 | EOF | |
1179 | ||
698dcdb6 | 1180 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1181 | #define __SVR4__ 1 |
1182 | EOF | |
1183 | ||
1184 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1185 | ;; | |
1186 | *-*-sysv5* ) | |
1187 | USE_SYSV=1 | |
1188 | USE_SVR4=1 | |
698dcdb6 | 1189 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1190 | #define __SYSV__ 1 |
1191 | EOF | |
1192 | ||
698dcdb6 | 1193 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1194 | #define __SVR4__ 1 |
1195 | EOF | |
1196 | ||
1197 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1198 | ;; | |
1199 | *-*-aix* ) | |
1200 | USE_AIX=1 | |
1201 | USE_SYSV=1 | |
1202 | USE_SVR4=1 | |
698dcdb6 | 1203 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1204 | #define __AIX__ 1 |
1205 | EOF | |
1206 | ||
698dcdb6 | 1207 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1208 | #define __SYSV__ 1 |
1209 | EOF | |
1210 | ||
698dcdb6 | 1211 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1212 | #define __SVR4__ 1 |
1213 | EOF | |
1214 | ||
1215 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1216 | ;; | |
1217 | ||
1c8183e2 | 1218 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1219 | USE_UNIX=0 |
1220 | USE_WIN32=1 | |
698dcdb6 | 1221 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1222 | #define __WIN32__ 1 |
1223 | EOF | |
1224 | ||
698dcdb6 | 1225 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1226 | #define __WIN95__ 1 |
1227 | EOF | |
1228 | ||
698dcdb6 | 1229 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1230 | #define __WINDOWS__ 1 |
1231 | EOF | |
1232 | ||
698dcdb6 | 1233 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1234 | #define __GNUWIN32__ 1 |
1235 | EOF | |
1236 | ||
698dcdb6 | 1237 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1238 | #define STRICT 1 |
1239 | EOF | |
1240 | ||
698dcdb6 | 1241 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1242 | #define WINVER 0x0400 |
1243 | EOF | |
1244 | ||
cf27ef00 | 1245 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1246 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1247 | ;; | |
1248 | ||
1249 | *-pc-os2_emx ) | |
698dcdb6 | 1250 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1251 | #define __EMX__ 1 |
1252 | EOF | |
1253 | ||
cf27ef00 | 1254 | PROGRAM_EXT=".exe" |
e07802fc | 1255 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1256 | ;; |
1257 | ||
b4085ce6 GD |
1258 | *-*-darwin* ) |
1259 | USE_BSD=1 | |
1260 | USE_MAC=1 | |
698dcdb6 | 1261 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1262 | #define __MAC__ 1 |
1263 | EOF | |
1264 | ||
698dcdb6 | 1265 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1266 | #define __BSD__ 1 |
1267 | EOF | |
1268 | ||
698dcdb6 | 1269 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1270 | #define __UNIX__ 1 |
1271 | EOF | |
1272 | ||
1273 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1274 | ;; | |
1275 | ||
b12915c1 VZ |
1276 | *-*-beos* ) |
1277 | USE_BEOS=1 | |
698dcdb6 | 1278 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1279 | #define __BEOS__ 1 |
1280 | EOF | |
1281 | ||
1282 | ;; | |
1283 | ||
10f2d63a | 1284 | *) |
698dcdb6 | 1285 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1286 | esac |
1287 | ||
1288 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1289 | wxUSE_UNIX=yes |
698dcdb6 | 1290 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1291 | #define __UNIX__ 1 |
1292 | EOF | |
1293 | ||
698dcdb6 | 1294 | |
b12915c1 VZ |
1295 | SRC_SUBDIRS="$SRC_SUBDIRS unix" |
1296 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1297 | fi | |
1298 | ||
1299 | if test "$USE_BEOS" = 1; then | |
1300 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1301 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1302 | fi |
1303 | ||
1304 | if test "$USE_LINUX" = 1; then | |
698dcdb6 | 1305 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 |
24fd6d87 | 1306 | echo "configure:1307: checking for gettext in -lc" >&5 |
698dcdb6 VZ |
1307 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1308 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1309 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 1310 | else |
698dcdb6 VZ |
1311 | ac_save_LIBS="$LIBS" |
1312 | LIBS="-lc $LIBS" | |
1313 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 1314 | #line 1315 "configure" |
698dcdb6 VZ |
1315 | #include "confdefs.h" |
1316 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1317 | /* We use char because int might match the return type of a gcc2 | |
1318 | builtin and then its argument prototype would still apply. */ | |
1319 | char gettext(); | |
10f2d63a | 1320 | |
698dcdb6 VZ |
1321 | int main() { |
1322 | gettext() | |
1323 | ; return 0; } | |
1324 | EOF | |
24fd6d87 | 1325 | if { (eval echo configure:1326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
1326 | rm -rf conftest* |
1327 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 1328 | else |
698dcdb6 VZ |
1329 | echo "configure: failed program was:" >&5 |
1330 | cat conftest.$ac_ext >&5 | |
1331 | rm -rf conftest* | |
1332 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 1333 | fi |
698dcdb6 VZ |
1334 | rm -f conftest* |
1335 | LIBS="$ac_save_LIBS" | |
10f2d63a VZ |
1336 | |
1337 | fi | |
698dcdb6 VZ |
1338 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1339 | echo "$ac_t""yes" 1>&6 | |
1340 | cat >> confdefs.h <<\EOF | |
1341 | #define wxHAVE_GLIBC2 1 | |
1342 | EOF | |
10f2d63a VZ |
1343 | |
1344 | else | |
698dcdb6 | 1345 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
1346 | fi |
1347 | ||
1348 | fi | |
1349 | ||
1e487827 | 1350 | |
1e487827 | 1351 | |
6232543b | 1352 | |
10f2d63a VZ |
1353 | wx_arg_cache_file="configarg.cache" |
1354 | echo "loading argument cache $wx_arg_cache_file" | |
1355 | rm -f ${wx_arg_cache_file}.tmp | |
1356 | touch ${wx_arg_cache_file}.tmp | |
1357 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1358 | |
10f2d63a VZ |
1359 | |
1360 | DEBUG_CONFIGURE=0 | |
1361 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1362 | DEFAULT_wxUSE_UNIVERSAL=no |
1363 | ||
10f2d63a VZ |
1364 | DEFAULT_wxUSE_THREADS=yes |
1365 | ||
1366 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1367 | DEFAULT_wxUSE_BURNT_NAME=no |
1e6feb95 | 1368 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1369 | DEFAULT_wxUSE_PROFILE=no |
1370 | DEFAULT_wxUSE_NO_DEPS=no | |
1371 | DEFAULT_wxUSE_NO_RTTI=no | |
1372 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1373 | DEFAULT_wxUSE_PERMISSIVE=no | |
1374 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1375 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1376 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1377 | DEFAULT_wxUSE_MEM_TRACING=no | |
1378 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1379 | DEFAULT_wxUSE_DMALLOC=no | |
1380 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1381 | ||
1382 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1383 | DEFAULT_wxUSE_LOGWINDOW=no |
1384 | DEFAULT_wxUSE_LOGGUI=no | |
10f2d63a VZ |
1385 | |
1386 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1387 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a VZ |
1388 | |
1389 | DEFAULT_wxUSE_ZLIB=no | |
1390 | DEFAULT_wxUSE_LIBPNG=no | |
1391 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1392 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1393 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1394 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1395 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1396 | |
eb4efbdc | 1397 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1398 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1399 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1400 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1401 | DEFAULT_wxUSE_DATETIME=no | |
1402 | DEFAULT_wxUSE_TIMEDATE=no | |
1403 | DEFAULT_wxUSE_TIMER=no | |
1404 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1405 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1406 | DEFAULT_wxUSE_FFILE=no |
10f2d63a | 1407 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1408 | DEFAULT_wxUSE_WAVE=no |
1409 | DEFAULT_wxUSE_INTL=no | |
1410 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1411 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1412 | DEFAULT_wxUSE_STREAMS=no |
1413 | DEFAULT_wxUSE_SOCKETS=no | |
1414 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1415 | DEFAULT_wxUSE_SERIAL=no | |
1416 | DEFAULT_wxUSE_JOYSTICK=no | |
1417 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1418 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1419 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1420 | |
1421 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1422 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1423 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1424 | ||
1425 | DEFAULT_wxUSE_X_RESOURCES=no | |
1426 | DEFAULT_wxUSE_CLIPBOARD=no | |
1427 | DEFAULT_wxUSE_TOOLTIPS=no | |
1428 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1429 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1430 | DEFAULT_wxUSE_SPLINES=no |
1431 | ||
1432 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1433 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1434 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1435 | ||
1436 | DEFAULT_wxUSE_PROLOGIO=no | |
1437 | DEFAULT_wxUSE_RESOURCES=no | |
1438 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1439 | DEFAULT_wxUSE_IPC=no | |
1440 | DEFAULT_wxUSE_HELP=no | |
1441 | DEFAULT_wxUSE_WXTREE=no | |
1442 | DEFAULT_wxUSE_METAFILE=no | |
1e6feb95 | 1443 | DEFAULT_wxUSE_MIMETYPE=no |
10f2d63a VZ |
1444 | |
1445 | DEFAULT_wxUSE_COMMONDLGS=no | |
1e6feb95 VZ |
1446 | DEFAULT_wxUSE_CHOICEDLG=no |
1447 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1448 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 VZ |
1449 | DEFAULT_wxUSE_FILEDLG=no |
1450 | DEFAULT_wxUSE_FONTDLG=no | |
1451 | DEFAULT_wxUSE_MSGDLG=no | |
1452 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a VZ |
1453 | DEFAULT_wxUSE_TEXTDLG=no |
1454 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1455 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1e6feb95 | 1456 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1457 | DEFAULT_wxUSE_MINIFRAME=no |
1458 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1459 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1460 | DEFAULT_wxUSE_FS_INET=no |
1461 | DEFAULT_wxUSE_FS_ZIP=no | |
1462 | DEFAULT_wxUSE_BUSYINFO=no | |
1463 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1464 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1465 | |
1466 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1467 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1468 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1469 | DEFAULT_wxUSE_CALCTRL=no |
1470 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1471 | DEFAULT_wxUSE_CHECKBOX=no |
1472 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1473 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1474 | DEFAULT_wxUSE_COMBOBOX=no |
1475 | DEFAULT_wxUSE_GAUGE=no | |
1476 | DEFAULT_wxUSE_GRID=no | |
1477 | DEFAULT_wxUSE_NEW_GRID=no | |
1478 | DEFAULT_wxUSE_IMAGLIST=no | |
1479 | DEFAULT_wxUSE_LISTBOX=no | |
1480 | DEFAULT_wxUSE_LISTCTRL=no | |
1481 | DEFAULT_wxUSE_NOTEBOOK=no | |
1482 | DEFAULT_wxUSE_RADIOBOX=no | |
1483 | DEFAULT_wxUSE_RADIOBTN=no | |
1484 | DEFAULT_wxUSE_SASH=no | |
1485 | DEFAULT_wxUSE_SCROLLBAR=no | |
1486 | DEFAULT_wxUSE_SLIDER=no | |
1487 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1488 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1489 | DEFAULT_wxUSE_SPLITTER=no |
1490 | DEFAULT_wxUSE_STATBMP=no | |
1491 | DEFAULT_wxUSE_STATBOX=no | |
1492 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1493 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1494 | DEFAULT_wxUSE_STATUSBAR=yes |
1495 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1496 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1497 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1498 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1499 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1500 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1501 | DEFAULT_wxUSE_TREECTRL=no |
1502 | ||
1503 | DEFAULT_wxUSE_UNICODE=no | |
1504 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1505 | ||
0046ff7c | 1506 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1507 | DEFAULT_wxUSE_GIF=no |
1508 | DEFAULT_wxUSE_PCX=no | |
1509 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1510 | DEFAULT_wxUSE_XPM=no |
10f2d63a | 1511 | else |
1e6feb95 VZ |
1512 | DEFAULT_wxUSE_UNIVERSAL=no |
1513 | ||
10f2d63a VZ |
1514 | DEFAULT_wxUSE_THREADS=yes |
1515 | ||
1516 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1517 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1518 | DEFAULT_wxUSE_OPTIMISE=yes |
1519 | DEFAULT_wxUSE_PROFILE=no | |
1520 | DEFAULT_wxUSE_NO_DEPS=no | |
1521 | DEFAULT_wxUSE_NO_RTTI=no | |
1522 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1523 | DEFAULT_wxUSE_PERMISSIVE=no | |
1524 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1525 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1526 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1527 | DEFAULT_wxUSE_MEM_TRACING=no | |
1528 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1529 | DEFAULT_wxUSE_DMALLOC=no | |
1530 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1531 | ||
1532 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1533 | DEFAULT_wxUSE_LOGWINDOW=yes |
1534 | DEFAULT_wxUSE_LOGGUI=yes | |
10f2d63a VZ |
1535 | |
1536 | DEFAULT_wxUSE_GUI=yes | |
1537 | ||
1538 | DEFAULT_wxUSE_ZLIB=yes | |
1539 | DEFAULT_wxUSE_LIBPNG=yes | |
1540 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1541 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1542 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1543 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1544 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1545 | |
eb4efbdc | 1546 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1547 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1548 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1549 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1550 | DEFAULT_wxUSE_DATETIME=yes | |
1551 | DEFAULT_wxUSE_TIMEDATE=no | |
1552 | DEFAULT_wxUSE_TIMER=yes | |
1553 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1554 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1555 | DEFAULT_wxUSE_FFILE=yes |
10f2d63a | 1556 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1557 | DEFAULT_wxUSE_WAVE=no |
1558 | DEFAULT_wxUSE_INTL=yes | |
1559 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1560 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1561 | DEFAULT_wxUSE_STREAMS=yes |
1562 | DEFAULT_wxUSE_SOCKETS=yes | |
1563 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1564 | DEFAULT_wxUSE_SERIAL=yes | |
1565 | DEFAULT_wxUSE_JOYSTICK=yes | |
1566 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1567 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1568 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1569 | |
1570 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1571 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1572 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1573 | ||
1574 | DEFAULT_wxUSE_X_RESOURCES=no | |
1575 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1576 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1577 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1578 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1579 | DEFAULT_wxUSE_SPLINES=yes |
1580 | ||
1581 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1582 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1583 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1584 | ||
1585 | DEFAULT_wxUSE_PROLOGIO=yes | |
1586 | DEFAULT_wxUSE_RESOURCES=yes | |
1587 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1588 | DEFAULT_wxUSE_IPC=yes | |
1589 | DEFAULT_wxUSE_HELP=yes | |
1590 | DEFAULT_wxUSE_WXTREE=yes | |
1591 | DEFAULT_wxUSE_METAFILE=yes | |
1e6feb95 | 1592 | DEFAULT_wxUSE_MIMETYPE=yes |
10f2d63a VZ |
1593 | |
1594 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1595 | DEFAULT_wxUSE_CHOICEDLG=yes |
1596 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1597 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 VZ |
1598 | DEFAULT_wxUSE_FILEDLG=yes |
1599 | DEFAULT_wxUSE_FONTDLG=yes | |
1600 | DEFAULT_wxUSE_MSGDLG=yes | |
1601 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a VZ |
1602 | DEFAULT_wxUSE_TEXTDLG=yes |
1603 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1604 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1e6feb95 | 1605 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1606 | DEFAULT_wxUSE_MINIFRAME=yes |
1607 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1608 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1609 | DEFAULT_wxUSE_FS_INET=yes |
1610 | DEFAULT_wxUSE_FS_ZIP=yes | |
1611 | DEFAULT_wxUSE_BUSYINFO=yes | |
1612 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1613 | DEFAULT_wxUSE_VALIDATORS=yes | |
1614 | ||
1615 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1616 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1617 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1618 | DEFAULT_wxUSE_CALCTRL=yes |
1619 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1620 | DEFAULT_wxUSE_CHECKBOX=yes |
1621 | DEFAULT_wxUSE_CHECKLST=yes | |
1622 | DEFAULT_wxUSE_CHOICE=yes | |
1623 | DEFAULT_wxUSE_COMBOBOX=yes | |
1624 | DEFAULT_wxUSE_GAUGE=yes | |
1625 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1626 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1627 | DEFAULT_wxUSE_IMAGLIST=yes |
1628 | DEFAULT_wxUSE_LISTBOX=yes | |
1629 | DEFAULT_wxUSE_LISTCTRL=yes | |
1630 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1631 | DEFAULT_wxUSE_RADIOBOX=yes | |
1632 | DEFAULT_wxUSE_RADIOBTN=yes | |
1633 | DEFAULT_wxUSE_SASH=yes | |
1634 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1635 | DEFAULT_wxUSE_SLIDER=yes | |
1636 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1637 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1638 | DEFAULT_wxUSE_SPLITTER=yes |
1639 | DEFAULT_wxUSE_STATBMP=yes | |
1640 | DEFAULT_wxUSE_STATBOX=yes | |
1641 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1642 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1643 | DEFAULT_wxUSE_STATUSBAR=yes |
1644 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1645 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1646 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1647 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1648 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1649 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1650 | DEFAULT_wxUSE_TREECTRL=yes |
1651 | ||
1652 | DEFAULT_wxUSE_UNICODE=no | |
1653 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1654 | ||
0046ff7c | 1655 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1656 | DEFAULT_wxUSE_GIF=yes |
1657 | DEFAULT_wxUSE_PCX=yes | |
1658 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1659 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1660 | fi |
1661 | ||
698dcdb6 VZ |
1662 | |
1663 | ||
10f2d63a VZ |
1664 | for toolkit in `echo $ALL_TOOLKITS`; do |
1665 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1666 | if test "x$LINE" != x ; then | |
1667 | has_toolkit_in_cache=1 | |
1668 | eval "DEFAULT_$LINE" | |
1669 | eval "CACHE_$toolkit=1" | |
1670 | fi | |
1671 | done | |
1672 | ||
698dcdb6 VZ |
1673 | |
1674 | ||
1675 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
24fd6d87 | 1676 | echo "configure:1677: checking for --enable-gui" >&5 |
10f2d63a VZ |
1677 | no_cache=0 |
1678 | # Check whether --enable-gui or --disable-gui was given. | |
1679 | if test "${enable_gui+set}" = set; then | |
1680 | enableval="$enable_gui" | |
698dcdb6 | 1681 | |
10f2d63a VZ |
1682 | if test "$enableval" = yes; then |
1683 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1684 | else | |
1685 | ac_cv_use_gui='wxUSE_GUI=no' | |
1686 | fi | |
698dcdb6 | 1687 | |
10f2d63a | 1688 | else |
698dcdb6 | 1689 | |
10f2d63a VZ |
1690 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1691 | if test "x$LINE" != x ; then | |
1692 | eval "DEFAULT_$LINE" | |
1693 | else | |
1694 | no_cache=1 | |
1695 | fi | |
1696 | ||
1697 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1698 | |
1699 | fi | |
10f2d63a VZ |
1700 | |
1701 | ||
1702 | eval "$ac_cv_use_gui" | |
1703 | if test "$no_cache" != 1; then | |
1704 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1705 | fi | |
1706 | ||
1707 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1708 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1709 | else |
698dcdb6 | 1710 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1711 | fi |
698dcdb6 | 1712 | |
10f2d63a | 1713 | |
b12915c1 | 1714 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1715 | |
1e6feb95 VZ |
1716 | |
1717 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
24fd6d87 | 1718 | echo "configure:1719: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1719 | no_cache=0 |
1720 | # Check whether --enable-universal or --disable-universal was given. | |
1721 | if test "${enable_universal+set}" = set; then | |
1722 | enableval="$enable_universal" | |
1723 | ||
1724 | if test "$enableval" = yes; then | |
1725 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1726 | else | |
1727 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1728 | fi | |
1729 | ||
1730 | else | |
1731 | ||
1732 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1733 | if test "x$LINE" != x ; then | |
1734 | eval "DEFAULT_$LINE" | |
1735 | else | |
1736 | no_cache=1 | |
1737 | fi | |
1738 | ||
1739 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1740 | ||
1741 | fi | |
1742 | ||
1743 | ||
1744 | eval "$ac_cv_use_universal" | |
1745 | if test "$no_cache" != 1; then | |
1746 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1747 | fi | |
1748 | ||
1749 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1750 | echo "$ac_t""yes" 1>&6 | |
1751 | else | |
1752 | echo "$ac_t""no" 1>&6 | |
1753 | fi | |
1754 | ||
10f2d63a VZ |
1755 | # Check whether --with-gtk or --without-gtk was given. |
1756 | if test "${with_gtk+set}" = set; then | |
1757 | withval="$with_gtk" | |
1758 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1759 | fi |
10f2d63a VZ |
1760 | |
1761 | # Check whether --with-motif or --without-motif was given. | |
1762 | if test "${with_motif+set}" = set; then | |
1763 | withval="$with_motif" | |
1764 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1765 | fi |
10f2d63a | 1766 | |
b4085ce6 GD |
1767 | # Check whether --with-mac or --without-mac was given. |
1768 | if test "${with_mac+set}" = set; then | |
1769 | withval="$with_mac" | |
1770 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1771 | fi |
b4085ce6 | 1772 | |
10f2d63a VZ |
1773 | # Check whether --with-wine or --without-wine was given. |
1774 | if test "${with_wine+set}" = set; then | |
1775 | withval="$with_wine" | |
1776 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1777 | fi |
10f2d63a VZ |
1778 | |
1779 | # Check whether --with-cygwin or --without-cygwin was given. | |
1780 | if test "${with_cygwin+set}" = set; then | |
1781 | withval="$with_cygwin" | |
1782 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1783 | fi |
10f2d63a VZ |
1784 | |
1785 | # Check whether --with-mingw or --without-mingw was given. | |
1786 | if test "${with_mingw+set}" = set; then | |
1787 | withval="$with_mingw" | |
1788 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1789 | fi |
10f2d63a | 1790 | |
e07802fc VZ |
1791 | # Check whether --with-pm or --without-pm was given. |
1792 | if test "${with_pm+set}" = set; then | |
1793 | withval="$with_pm" | |
1794 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1795 | fi |
1796 | ||
1e6feb95 VZ |
1797 | # Check whether --with-mgl or --without-mgl was given. |
1798 | if test "${with_mgl+set}" = set; then | |
1799 | withval="$with_mgl" | |
1800 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1801 | fi | |
1802 | ||
10f2d63a | 1803 | |
8168de4c VZ |
1804 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1805 | if test "${enable_gtk2+set}" = set; then | |
1806 | enableval="$enable_gtk2" | |
1807 | wxUSE_GTK2=1 | |
10f2d63a | 1808 | else |
8168de4c | 1809 | wxUSE_GTK2=0 |
698dcdb6 VZ |
1810 | fi |
1811 | ||
703e0a69 | 1812 | |
1e487827 | 1813 | |
698dcdb6 | 1814 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
24fd6d87 | 1815 | echo "configure:1816: checking for --with-libpng" >&5 |
698dcdb6 VZ |
1816 | no_cache=0 |
1817 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1818 | if test "${with_libpng+set}" = set; then |
1819 | withval="$with_libpng" | |
698dcdb6 | 1820 | |
10f2d63a | 1821 | if test "$withval" = yes; then |
b12915c1 | 1822 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1823 | elif test "$withval" = no; then |
b12915c1 | 1824 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1825 | elif test "$withval" = sys; then |
1826 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1827 | else | |
698dcdb6 | 1828 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1829 | fi |
698dcdb6 | 1830 | |
10f2d63a | 1831 | else |
698dcdb6 | 1832 | |
b12915c1 | 1833 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1834 | if test "x$LINE" != x ; then |
1835 | eval "DEFAULT_$LINE" | |
1836 | else | |
1837 | no_cache=1 | |
1838 | fi | |
1839 | ||
b12915c1 | 1840 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1841 | |
1842 | fi | |
10f2d63a VZ |
1843 | |
1844 | ||
b12915c1 | 1845 | eval "$ac_cv_use_libpng" |
10f2d63a | 1846 | if test "$no_cache" != 1; then |
b12915c1 | 1847 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1848 | fi |
1849 | ||
b12915c1 | 1850 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1851 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1852 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1853 | echo "$ac_t""no" 1>&6 |
422107f9 | 1854 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1855 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1856 | else |
698dcdb6 | 1857 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1858 | fi |
698dcdb6 | 1859 | |
10f2d63a | 1860 | |
698dcdb6 | 1861 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
24fd6d87 | 1862 | echo "configure:1863: checking for --with-libjpeg" >&5 |
10f2d63a | 1863 | no_cache=0 |
698dcdb6 | 1864 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1865 | if test "${with_libjpeg+set}" = set; then |
1866 | withval="$with_libjpeg" | |
698dcdb6 | 1867 | |
10f2d63a | 1868 | if test "$withval" = yes; then |
b12915c1 | 1869 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1870 | elif test "$withval" = no; then |
b12915c1 | 1871 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1872 | elif test "$withval" = sys; then |
1873 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1874 | else | |
698dcdb6 | 1875 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1876 | fi |
698dcdb6 | 1877 | |
10f2d63a | 1878 | else |
698dcdb6 | 1879 | |
b12915c1 | 1880 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1881 | if test "x$LINE" != x ; then |
1882 | eval "DEFAULT_$LINE" | |
1883 | else | |
1884 | no_cache=1 | |
1885 | fi | |
1886 | ||
b12915c1 | 1887 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1888 | |
1889 | fi | |
10f2d63a VZ |
1890 | |
1891 | ||
b12915c1 | 1892 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1893 | if test "$no_cache" != 1; then |
b12915c1 | 1894 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1895 | fi |
1896 | ||
b12915c1 | 1897 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1898 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1899 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1900 | echo "$ac_t""no" 1>&6 |
422107f9 | 1901 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1902 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1903 | else |
698dcdb6 | 1904 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1905 | fi |
698dcdb6 | 1906 | |
10f2d63a | 1907 | |
698dcdb6 | 1908 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
24fd6d87 | 1909 | echo "configure:1910: checking for --with-libtiff" >&5 |
10f2d63a | 1910 | no_cache=0 |
698dcdb6 | 1911 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1912 | if test "${with_libtiff+set}" = set; then |
1913 | withval="$with_libtiff" | |
698dcdb6 | 1914 | |
10f2d63a | 1915 | if test "$withval" = yes; then |
b12915c1 | 1916 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1917 | elif test "$withval" = no; then |
b12915c1 | 1918 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1919 | elif test "$withval" = sys; then |
1920 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1921 | else | |
698dcdb6 | 1922 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1923 | fi |
698dcdb6 | 1924 | |
10f2d63a | 1925 | else |
698dcdb6 | 1926 | |
b12915c1 | 1927 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1928 | if test "x$LINE" != x ; then |
1929 | eval "DEFAULT_$LINE" | |
1930 | else | |
1931 | no_cache=1 | |
1932 | fi | |
1933 | ||
b12915c1 | 1934 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1935 | |
1936 | fi | |
10f2d63a VZ |
1937 | |
1938 | ||
b12915c1 | 1939 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1940 | if test "$no_cache" != 1; then |
b12915c1 | 1941 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1942 | fi |
1943 | ||
b12915c1 | 1944 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1945 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1946 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1947 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1948 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1949 | echo "$ac_t""system version" 1>&6 |
0dcf9893 | 1950 | else |
698dcdb6 | 1951 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1952 | fi |
698dcdb6 | 1953 | |
10f2d63a | 1954 | |
698dcdb6 | 1955 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
24fd6d87 | 1956 | echo "configure:1957: checking for --with-freetype" >&5 |
3fed1840 | 1957 | no_cache=0 |
698dcdb6 | 1958 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
1959 | if test "${with_freetype+set}" = set; then |
1960 | withval="$with_freetype" | |
698dcdb6 | 1961 | |
3fed1840 RR |
1962 | if test "$withval" = yes; then |
1963 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1964 | elif test "$withval" = no; then | |
1965 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1966 | elif test "$withval" = sys; then | |
1967 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1968 | else | |
698dcdb6 | 1969 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1970 | fi |
698dcdb6 | 1971 | |
3fed1840 | 1972 | else |
698dcdb6 | 1973 | |
3fed1840 RR |
1974 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
1975 | if test "x$LINE" != x ; then | |
1976 | eval "DEFAULT_$LINE" | |
1977 | else | |
1978 | no_cache=1 | |
1979 | fi | |
1980 | ||
1981 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
1982 | |
1983 | fi | |
3fed1840 RR |
1984 | |
1985 | ||
1986 | eval "$ac_cv_use_freetype" | |
1987 | if test "$no_cache" != 1; then | |
1988 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
1989 | fi | |
1990 | ||
1991 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 1992 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 1993 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 1994 | echo "$ac_t""no" 1>&6 |
3fed1840 | 1995 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 1996 | echo "$ac_t""system version" 1>&6 |
3fed1840 | 1997 | else |
698dcdb6 | 1998 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1999 | fi |
698dcdb6 | 2000 | |
3fed1840 | 2001 | |
698dcdb6 | 2002 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
24fd6d87 | 2003 | echo "configure:2004: checking for --with-opengl" >&5 |
10f2d63a | 2004 | no_cache=0 |
698dcdb6 | 2005 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2006 | if test "${with_opengl+set}" = set; then |
2007 | withval="$with_opengl" | |
698dcdb6 | 2008 | |
10f2d63a | 2009 | if test "$withval" = yes; then |
b12915c1 | 2010 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2011 | else |
b12915c1 | 2012 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2013 | fi |
698dcdb6 | 2014 | |
10f2d63a | 2015 | else |
698dcdb6 | 2016 | |
b12915c1 | 2017 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2018 | if test "x$LINE" != x ; then |
2019 | eval "DEFAULT_$LINE" | |
2020 | else | |
2021 | no_cache=1 | |
2022 | fi | |
2023 | ||
b12915c1 | 2024 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
2025 | |
2026 | fi | |
10f2d63a VZ |
2027 | |
2028 | ||
b12915c1 | 2029 | eval "$ac_cv_use_opengl" |
10f2d63a | 2030 | if test "$no_cache" != 1; then |
b12915c1 | 2031 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2032 | fi |
2033 | ||
b12915c1 | 2034 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 2035 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2036 | else |
698dcdb6 | 2037 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2038 | fi |
698dcdb6 | 2039 | |
10f2d63a | 2040 | |
b12915c1 VZ |
2041 | fi |
2042 | ||
1e487827 | 2043 | |
698dcdb6 | 2044 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
24fd6d87 | 2045 | echo "configure:2046: checking for --with-dmalloc" >&5 |
698dcdb6 VZ |
2046 | no_cache=0 |
2047 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2048 | if test "${with_dmalloc+set}" = set; then |
2049 | withval="$with_dmalloc" | |
698dcdb6 | 2050 | |
c7a2bf27 | 2051 | if test "$withval" = yes; then |
b12915c1 | 2052 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2053 | else |
b12915c1 | 2054 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2055 | fi |
698dcdb6 | 2056 | |
c7a2bf27 | 2057 | else |
698dcdb6 | 2058 | |
b12915c1 | 2059 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2060 | if test "x$LINE" != x ; then |
2061 | eval "DEFAULT_$LINE" | |
2062 | else | |
2063 | no_cache=1 | |
2064 | fi | |
2065 | ||
b12915c1 | 2066 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
2067 | |
2068 | fi | |
c7a2bf27 RR |
2069 | |
2070 | ||
b12915c1 | 2071 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2072 | if test "$no_cache" != 1; then |
b12915c1 | 2073 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2074 | fi |
2075 | ||
b12915c1 | 2076 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 2077 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2078 | else |
698dcdb6 | 2079 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2080 | fi |
698dcdb6 | 2081 | |
c7a2bf27 | 2082 | |
698dcdb6 | 2083 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
24fd6d87 | 2084 | echo "configure:2085: checking for --with-zlib" >&5 |
10f2d63a | 2085 | no_cache=0 |
698dcdb6 | 2086 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2087 | if test "${with_zlib+set}" = set; then |
2088 | withval="$with_zlib" | |
698dcdb6 | 2089 | |
10f2d63a | 2090 | if test "$withval" = yes; then |
b12915c1 | 2091 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2092 | elif test "$withval" = no; then |
b12915c1 | 2093 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2094 | elif test "$withval" = sys; then |
2095 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2096 | else | |
698dcdb6 | 2097 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2098 | fi |
698dcdb6 | 2099 | |
10f2d63a | 2100 | else |
698dcdb6 | 2101 | |
b12915c1 | 2102 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2103 | if test "x$LINE" != x ; then |
2104 | eval "DEFAULT_$LINE" | |
2105 | else | |
2106 | no_cache=1 | |
2107 | fi | |
2108 | ||
b12915c1 | 2109 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
2110 | |
2111 | fi | |
10f2d63a VZ |
2112 | |
2113 | ||
b12915c1 | 2114 | eval "$ac_cv_use_zlib" |
10f2d63a | 2115 | if test "$no_cache" != 1; then |
b12915c1 | 2116 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2117 | fi |
2118 | ||
b12915c1 | 2119 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 2120 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2121 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 2122 | echo "$ac_t""no" 1>&6 |
422107f9 | 2123 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 2124 | echo "$ac_t""system version" 1>&6 |
422107f9 | 2125 | else |
698dcdb6 | 2126 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 2127 | fi |
698dcdb6 | 2128 | |
10f2d63a | 2129 | |
698dcdb6 | 2130 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
24fd6d87 | 2131 | echo "configure:2132: checking for --with-odbc" >&5 |
10f2d63a | 2132 | no_cache=0 |
698dcdb6 | 2133 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2134 | if test "${with_odbc+set}" = set; then |
2135 | withval="$with_odbc" | |
698dcdb6 | 2136 | |
10f2d63a VZ |
2137 | if test "$withval" = yes; then |
2138 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2139 | else | |
2140 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2141 | fi | |
698dcdb6 | 2142 | |
10f2d63a | 2143 | else |
698dcdb6 | 2144 | |
10f2d63a VZ |
2145 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2146 | if test "x$LINE" != x ; then | |
2147 | eval "DEFAULT_$LINE" | |
2148 | else | |
2149 | no_cache=1 | |
2150 | fi | |
2151 | ||
2152 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2153 | |
2154 | fi | |
10f2d63a VZ |
2155 | |
2156 | ||
2157 | eval "$ac_cv_use_odbc" | |
2158 | if test "$no_cache" != 1; then | |
2159 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2160 | fi | |
2161 | ||
2162 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2163 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2164 | else |
698dcdb6 | 2165 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2166 | fi |
698dcdb6 VZ |
2167 | |
2168 | ||
10f2d63a | 2169 | |
698dcdb6 VZ |
2170 | |
2171 | ||
2172 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
24fd6d87 | 2173 | echo "configure:2174: checking for --enable-shared" >&5 |
10f2d63a VZ |
2174 | no_cache=0 |
2175 | # Check whether --enable-shared or --disable-shared was given. | |
2176 | if test "${enable_shared+set}" = set; then | |
2177 | enableval="$enable_shared" | |
698dcdb6 | 2178 | |
10f2d63a VZ |
2179 | if test "$enableval" = yes; then |
2180 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2181 | else | |
2182 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2183 | fi | |
698dcdb6 | 2184 | |
10f2d63a | 2185 | else |
698dcdb6 | 2186 | |
10f2d63a VZ |
2187 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2188 | if test "x$LINE" != x ; then | |
2189 | eval "DEFAULT_$LINE" | |
2190 | else | |
2191 | no_cache=1 | |
2192 | fi | |
2193 | ||
2194 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2195 | |
2196 | fi | |
10f2d63a VZ |
2197 | |
2198 | ||
2199 | eval "$ac_cv_use_shared" | |
2200 | if test "$no_cache" != 1; then | |
2201 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2202 | fi | |
2203 | ||
2204 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2205 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2206 | else |
698dcdb6 | 2207 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2208 | fi |
698dcdb6 | 2209 | |
10f2d63a | 2210 | |
698dcdb6 | 2211 | echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6 |
24fd6d87 | 2212 | echo "configure:2213: checking for --enable-burnt_name" >&5 |
00cf1208 RR |
2213 | no_cache=0 |
2214 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2215 | if test "${enable_burnt_name+set}" = set; then | |
2216 | enableval="$enable_burnt_name" | |
698dcdb6 | 2217 | |
00cf1208 RR |
2218 | if test "$enableval" = yes; then |
2219 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2220 | else | |
2221 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2222 | fi | |
698dcdb6 | 2223 | |
00cf1208 | 2224 | else |
698dcdb6 | 2225 | |
00cf1208 RR |
2226 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` |
2227 | if test "x$LINE" != x ; then | |
2228 | eval "DEFAULT_$LINE" | |
2229 | else | |
2230 | no_cache=1 | |
2231 | fi | |
2232 | ||
2233 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
698dcdb6 VZ |
2234 | |
2235 | fi | |
00cf1208 RR |
2236 | |
2237 | ||
2238 | eval "$ac_cv_use_burnt_name" | |
2239 | if test "$no_cache" != 1; then | |
2240 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2241 | fi | |
2242 | ||
2243 | if test "$wxUSE_BURNT_NAME" = yes; then | |
698dcdb6 | 2244 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2245 | else |
698dcdb6 | 2246 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2247 | fi |
698dcdb6 | 2248 | |
00cf1208 | 2249 | |
698dcdb6 | 2250 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
24fd6d87 | 2251 | echo "configure:2252: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2252 | no_cache=0 |
2253 | # Check whether --enable-optimise or --disable-optimise was given. | |
2254 | if test "${enable_optimise+set}" = set; then | |
2255 | enableval="$enable_optimise" | |
698dcdb6 | 2256 | |
10f2d63a VZ |
2257 | if test "$enableval" = yes; then |
2258 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2259 | else | |
2260 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2261 | fi | |
698dcdb6 | 2262 | |
10f2d63a | 2263 | else |
698dcdb6 | 2264 | |
10f2d63a VZ |
2265 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2266 | if test "x$LINE" != x ; then | |
2267 | eval "DEFAULT_$LINE" | |
2268 | else | |
2269 | no_cache=1 | |
2270 | fi | |
2271 | ||
2272 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2273 | |
2274 | fi | |
10f2d63a VZ |
2275 | |
2276 | ||
2277 | eval "$ac_cv_use_optimise" | |
2278 | if test "$no_cache" != 1; then | |
2279 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2280 | fi | |
2281 | ||
2282 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2283 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2284 | else |
698dcdb6 | 2285 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2286 | fi |
698dcdb6 | 2287 | |
10f2d63a | 2288 | |
698dcdb6 | 2289 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
24fd6d87 | 2290 | echo "configure:2291: checking for --enable-debug" >&5 |
10f2d63a VZ |
2291 | no_cache=0 |
2292 | # Check whether --enable-debug or --disable-debug was given. | |
2293 | if test "${enable_debug+set}" = set; then | |
2294 | enableval="$enable_debug" | |
698dcdb6 | 2295 | |
10f2d63a VZ |
2296 | if test "$enableval" = yes; then |
2297 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2298 | else | |
2299 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2300 | fi | |
698dcdb6 | 2301 | |
10f2d63a | 2302 | else |
698dcdb6 | 2303 | |
10f2d63a VZ |
2304 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2305 | if test "x$LINE" != x ; then | |
2306 | eval "DEFAULT_$LINE" | |
2307 | else | |
2308 | no_cache=1 | |
2309 | fi | |
2310 | ||
2311 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2312 | |
2313 | fi | |
10f2d63a VZ |
2314 | |
2315 | ||
2316 | eval "$ac_cv_use_debug" | |
2317 | if test "$no_cache" != 1; then | |
2318 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2319 | fi | |
2320 | ||
2321 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2322 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2323 | else |
698dcdb6 | 2324 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2325 | fi |
698dcdb6 | 2326 | |
10f2d63a VZ |
2327 | |
2328 | if test "$wxUSE_DEBUG" = "yes"; then | |
2329 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2330 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2331 | elif test "$wxUSE_DEBUG" = "no"; then | |
2332 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2333 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2334 | fi | |
2335 | ||
698dcdb6 VZ |
2336 | |
2337 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
24fd6d87 | 2338 | echo "configure:2339: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2339 | no_cache=0 |
2340 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2341 | if test "${enable_debug_flag+set}" = set; then | |
2342 | enableval="$enable_debug_flag" | |
698dcdb6 | 2343 | |
10f2d63a VZ |
2344 | if test "$enableval" = yes; then |
2345 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2346 | else | |
2347 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2348 | fi | |
698dcdb6 | 2349 | |
10f2d63a | 2350 | else |
698dcdb6 | 2351 | |
10f2d63a VZ |
2352 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2353 | if test "x$LINE" != x ; then | |
2354 | eval "DEFAULT_$LINE" | |
2355 | else | |
2356 | no_cache=1 | |
2357 | fi | |
2358 | ||
2359 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2360 | |
2361 | fi | |
10f2d63a VZ |
2362 | |
2363 | ||
2364 | eval "$ac_cv_use_debug_flag" | |
2365 | if test "$no_cache" != 1; then | |
2366 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2367 | fi | |
2368 | ||
2369 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2370 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2371 | else |
698dcdb6 | 2372 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2373 | fi |
698dcdb6 | 2374 | |
10f2d63a | 2375 | |
698dcdb6 | 2376 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
24fd6d87 | 2377 | echo "configure:2378: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2378 | no_cache=0 |
2379 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2380 | if test "${enable_debug_info+set}" = set; then | |
2381 | enableval="$enable_debug_info" | |
698dcdb6 | 2382 | |
10f2d63a VZ |
2383 | if test "$enableval" = yes; then |
2384 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2385 | else | |
2386 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2387 | fi | |
698dcdb6 | 2388 | |
10f2d63a | 2389 | else |
698dcdb6 | 2390 | |
10f2d63a VZ |
2391 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2392 | if test "x$LINE" != x ; then | |
2393 | eval "DEFAULT_$LINE" | |
2394 | else | |
2395 | no_cache=1 | |
2396 | fi | |
2397 | ||
2398 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2399 | |
2400 | fi | |
10f2d63a VZ |
2401 | |
2402 | ||
2403 | eval "$ac_cv_use_debug_info" | |
2404 | if test "$no_cache" != 1; then | |
2405 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2406 | fi | |
2407 | ||
2408 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2409 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2410 | else |
698dcdb6 | 2411 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2412 | fi |
698dcdb6 | 2413 | |
10f2d63a | 2414 | |
698dcdb6 | 2415 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
24fd6d87 | 2416 | echo "configure:2417: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2417 | no_cache=0 |
2418 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2419 | if test "${enable_debug_gdb+set}" = set; then | |
2420 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2421 | |
10f2d63a VZ |
2422 | if test "$enableval" = yes; then |
2423 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2424 | else | |
2425 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2426 | fi | |
698dcdb6 | 2427 | |
10f2d63a | 2428 | else |
698dcdb6 | 2429 | |
10f2d63a VZ |
2430 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2431 | if test "x$LINE" != x ; then | |
2432 | eval "DEFAULT_$LINE" | |
2433 | else | |
2434 | no_cache=1 | |
2435 | fi | |
2436 | ||
2437 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2438 | |
2439 | fi | |
10f2d63a VZ |
2440 | |
2441 | ||
2442 | eval "$ac_cv_use_debug_gdb" | |
2443 | if test "$no_cache" != 1; then | |
2444 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2445 | fi | |
2446 | ||
2447 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2448 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2449 | else |
698dcdb6 | 2450 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2451 | fi |
698dcdb6 | 2452 | |
10f2d63a | 2453 | |
698dcdb6 | 2454 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
24fd6d87 | 2455 | echo "configure:2456: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2456 | no_cache=0 |
2457 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2458 | if test "${enable_debug_cntxt+set}" = set; then | |
2459 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2460 | |
10f2d63a VZ |
2461 | if test "$enableval" = yes; then |
2462 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2463 | else | |
2464 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2465 | fi | |
698dcdb6 | 2466 | |
10f2d63a | 2467 | else |
698dcdb6 | 2468 | |
10f2d63a VZ |
2469 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2470 | if test "x$LINE" != x ; then | |
2471 | eval "DEFAULT_$LINE" | |
2472 | else | |
2473 | no_cache=1 | |
2474 | fi | |
2475 | ||
2476 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2477 | |
2478 | fi | |
10f2d63a VZ |
2479 | |
2480 | ||
2481 | eval "$ac_cv_use_debug_cntxt" | |
2482 | if test "$no_cache" != 1; then | |
2483 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2484 | fi | |
2485 | ||
2486 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2487 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2488 | else |
698dcdb6 | 2489 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2490 | fi |
698dcdb6 | 2491 | |
10f2d63a | 2492 | |
698dcdb6 | 2493 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
24fd6d87 | 2494 | echo "configure:2495: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2495 | no_cache=0 |
2496 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2497 | if test "${enable_mem_tracing+set}" = set; then | |
2498 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2499 | |
10f2d63a VZ |
2500 | if test "$enableval" = yes; then |
2501 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2502 | else | |
2503 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2504 | fi | |
698dcdb6 | 2505 | |
10f2d63a | 2506 | else |
698dcdb6 | 2507 | |
10f2d63a VZ |
2508 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2509 | if test "x$LINE" != x ; then | |
2510 | eval "DEFAULT_$LINE" | |
2511 | else | |
2512 | no_cache=1 | |
2513 | fi | |
2514 | ||
2515 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2516 | |
2517 | fi | |
10f2d63a VZ |
2518 | |
2519 | ||
2520 | eval "$ac_cv_use_mem_tracing" | |
2521 | if test "$no_cache" != 1; then | |
2522 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2523 | fi | |
2524 | ||
2525 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2526 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2527 | else |
698dcdb6 | 2528 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2529 | fi |
698dcdb6 | 2530 | |
10f2d63a | 2531 | |
698dcdb6 | 2532 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
24fd6d87 | 2533 | echo "configure:2534: checking for --enable-profile" >&5 |
10f2d63a VZ |
2534 | no_cache=0 |
2535 | # Check whether --enable-profile or --disable-profile was given. | |
2536 | if test "${enable_profile+set}" = set; then | |
2537 | enableval="$enable_profile" | |
698dcdb6 | 2538 | |
10f2d63a VZ |
2539 | if test "$enableval" = yes; then |
2540 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2541 | else | |
2542 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2543 | fi | |
698dcdb6 | 2544 | |
10f2d63a | 2545 | else |
698dcdb6 | 2546 | |
10f2d63a VZ |
2547 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2548 | if test "x$LINE" != x ; then | |
2549 | eval "DEFAULT_$LINE" | |
2550 | else | |
2551 | no_cache=1 | |
2552 | fi | |
2553 | ||
2554 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2555 | |
2556 | fi | |
10f2d63a VZ |
2557 | |
2558 | ||
2559 | eval "$ac_cv_use_profile" | |
2560 | if test "$no_cache" != 1; then | |
2561 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2562 | fi | |
2563 | ||
2564 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2565 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2566 | else |
698dcdb6 | 2567 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2568 | fi |
698dcdb6 | 2569 | |
10f2d63a | 2570 | |
698dcdb6 | 2571 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
24fd6d87 | 2572 | echo "configure:2573: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2573 | no_cache=0 |
2574 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2575 | if test "${enable_no_rtti+set}" = set; then | |
2576 | enableval="$enable_no_rtti" | |
698dcdb6 | 2577 | |
10f2d63a VZ |
2578 | if test "$enableval" = yes; then |
2579 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2580 | else | |
2581 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2582 | fi | |
698dcdb6 | 2583 | |
10f2d63a | 2584 | else |
698dcdb6 | 2585 | |
10f2d63a VZ |
2586 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2587 | if test "x$LINE" != x ; then | |
2588 | eval "DEFAULT_$LINE" | |
2589 | else | |
2590 | no_cache=1 | |
2591 | fi | |
2592 | ||
2593 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2594 | |
2595 | fi | |
10f2d63a VZ |
2596 | |
2597 | ||
2598 | eval "$ac_cv_use_no_rtti" | |
2599 | if test "$no_cache" != 1; then | |
2600 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2601 | fi | |
2602 | ||
2603 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2604 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2605 | else |
698dcdb6 | 2606 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2607 | fi |
698dcdb6 | 2608 | |
10f2d63a | 2609 | |
698dcdb6 | 2610 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
24fd6d87 | 2611 | echo "configure:2612: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2612 | no_cache=0 |
2613 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2614 | if test "${enable_no_exceptions+set}" = set; then | |
2615 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2616 | |
10f2d63a VZ |
2617 | if test "$enableval" = yes; then |
2618 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2619 | else | |
2620 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2621 | fi | |
698dcdb6 | 2622 | |
10f2d63a | 2623 | else |
698dcdb6 | 2624 | |
10f2d63a VZ |
2625 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2626 | if test "x$LINE" != x ; then | |
2627 | eval "DEFAULT_$LINE" | |
2628 | else | |
2629 | no_cache=1 | |
2630 | fi | |
2631 | ||
2632 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2633 | |
2634 | fi | |
10f2d63a VZ |
2635 | |
2636 | ||
2637 | eval "$ac_cv_use_no_exceptions" | |
2638 | if test "$no_cache" != 1; then | |
2639 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2640 | fi | |
2641 | ||
2642 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2643 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2644 | else |
698dcdb6 | 2645 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2646 | fi |
698dcdb6 | 2647 | |
10f2d63a | 2648 | |
698dcdb6 | 2649 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
24fd6d87 | 2650 | echo "configure:2651: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2651 | no_cache=0 |
2652 | # Check whether --enable-permissive or --disable-permissive was given. | |
2653 | if test "${enable_permissive+set}" = set; then | |
2654 | enableval="$enable_permissive" | |
698dcdb6 | 2655 | |
10f2d63a VZ |
2656 | if test "$enableval" = yes; then |
2657 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2658 | else | |
2659 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2660 | fi | |
698dcdb6 | 2661 | |
10f2d63a | 2662 | else |
698dcdb6 | 2663 | |
10f2d63a VZ |
2664 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2665 | if test "x$LINE" != x ; then | |
2666 | eval "DEFAULT_$LINE" | |
2667 | else | |
2668 | no_cache=1 | |
2669 | fi | |
2670 | ||
2671 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2672 | |
2673 | fi | |
10f2d63a VZ |
2674 | |
2675 | ||
2676 | eval "$ac_cv_use_permissive" | |
2677 | if test "$no_cache" != 1; then | |
2678 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2679 | fi | |
2680 | ||
2681 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2682 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2683 | else |
698dcdb6 | 2684 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2685 | fi |
698dcdb6 | 2686 | |
10f2d63a | 2687 | |
698dcdb6 | 2688 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
24fd6d87 | 2689 | echo "configure:2690: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2690 | no_cache=0 |
2691 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2692 | if test "${enable_no_deps+set}" = set; then | |
2693 | enableval="$enable_no_deps" | |
698dcdb6 | 2694 | |
10f2d63a VZ |
2695 | if test "$enableval" = yes; then |
2696 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2697 | else | |
2698 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2699 | fi | |
698dcdb6 | 2700 | |
10f2d63a | 2701 | else |
698dcdb6 | 2702 | |
10f2d63a VZ |
2703 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2704 | if test "x$LINE" != x ; then | |
2705 | eval "DEFAULT_$LINE" | |
2706 | else | |
2707 | no_cache=1 | |
2708 | fi | |
2709 | ||
2710 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2711 | |
2712 | fi | |
10f2d63a VZ |
2713 | |
2714 | ||
2715 | eval "$ac_cv_use_no_deps" | |
2716 | if test "$no_cache" != 1; then | |
2717 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2718 | fi | |
2719 | ||
2720 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2721 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2722 | else |
698dcdb6 | 2723 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2724 | fi |
698dcdb6 VZ |
2725 | |
2726 | ||
10f2d63a | 2727 | |
54276ccf | 2728 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
24fd6d87 | 2729 | echo "configure:2730: checking for --enable-compat20" >&5 |
54276ccf VZ |
2730 | no_cache=0 |
2731 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2732 | if test "${enable_compat20+set}" = set; then | |
2733 | enableval="$enable_compat20" | |
2734 | ||
2735 | if test "$enableval" = yes; then | |
2736 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2737 | else | |
2738 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2739 | fi | |
2740 | ||
2741 | else | |
2742 | ||
2743 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2744 | if test "x$LINE" != x ; then | |
2745 | eval "DEFAULT_$LINE" | |
2746 | else | |
2747 | no_cache=1 | |
2748 | fi | |
2749 | ||
2750 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2751 | ||
2752 | fi | |
2753 | ||
2754 | ||
2755 | eval "$ac_cv_use_compat20" | |
2756 | if test "$no_cache" != 1; then | |
2757 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2758 | fi | |
2759 | ||
2760 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2761 | echo "$ac_t""yes" 1>&6 | |
2762 | else | |
2763 | echo "$ac_t""no" 1>&6 | |
2764 | fi | |
2765 | ||
2766 | ||
2767 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
24fd6d87 | 2768 | echo "configure:2769: checking for --enable-compat22" >&5 |
54276ccf VZ |
2769 | no_cache=0 |
2770 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2771 | if test "${enable_compat22+set}" = set; then | |
2772 | enableval="$enable_compat22" | |
2773 | ||
2774 | if test "$enableval" = yes; then | |
2775 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2776 | else | |
2777 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2778 | fi | |
2779 | ||
2780 | else | |
2781 | ||
2782 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
2783 | if test "x$LINE" != x ; then | |
2784 | eval "DEFAULT_$LINE" | |
2785 | else | |
2786 | no_cache=1 | |
2787 | fi | |
2788 | ||
2789 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2790 | ||
2791 | fi | |
2792 | ||
2793 | ||
2794 | eval "$ac_cv_use_compat22" | |
2795 | if test "$no_cache" != 1; then | |
2796 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2797 | fi | |
2798 | ||
2799 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2800 | echo "$ac_t""yes" 1>&6 | |
2801 | else | |
2802 | echo "$ac_t""no" 1>&6 | |
2803 | fi | |
2804 | ||
2805 | ||
2806 | ||
698dcdb6 VZ |
2807 | |
2808 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
24fd6d87 | 2809 | echo "configure:2810: checking for --enable-intl" >&5 |
10f2d63a VZ |
2810 | no_cache=0 |
2811 | # Check whether --enable-intl or --disable-intl was given. | |
2812 | if test "${enable_intl+set}" = set; then | |
2813 | enableval="$enable_intl" | |
698dcdb6 | 2814 | |
10f2d63a VZ |
2815 | if test "$enableval" = yes; then |
2816 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2817 | else | |
2818 | ac_cv_use_intl='wxUSE_INTL=no' | |
2819 | fi | |
698dcdb6 | 2820 | |
10f2d63a | 2821 | else |
698dcdb6 | 2822 | |
10f2d63a VZ |
2823 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2824 | if test "x$LINE" != x ; then | |
2825 | eval "DEFAULT_$LINE" | |
2826 | else | |
2827 | no_cache=1 | |
2828 | fi | |
2829 | ||
2830 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2831 | |
2832 | fi | |
10f2d63a VZ |
2833 | |
2834 | ||
2835 | eval "$ac_cv_use_intl" | |
2836 | if test "$no_cache" != 1; then | |
2837 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2838 | fi | |
2839 | ||
2840 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2841 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2842 | else |
698dcdb6 | 2843 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2844 | fi |
698dcdb6 | 2845 | |
10f2d63a | 2846 | |
698dcdb6 | 2847 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
24fd6d87 | 2848 | echo "configure:2849: checking for --enable-config" >&5 |
10f2d63a VZ |
2849 | no_cache=0 |
2850 | # Check whether --enable-config or --disable-config was given. | |
2851 | if test "${enable_config+set}" = set; then | |
2852 | enableval="$enable_config" | |
698dcdb6 | 2853 | |
10f2d63a VZ |
2854 | if test "$enableval" = yes; then |
2855 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2856 | else | |
2857 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2858 | fi | |
698dcdb6 | 2859 | |
10f2d63a | 2860 | else |
698dcdb6 | 2861 | |
10f2d63a VZ |
2862 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
2863 | if test "x$LINE" != x ; then | |
2864 | eval "DEFAULT_$LINE" | |
2865 | else | |
2866 | no_cache=1 | |
2867 | fi | |
2868 | ||
2869 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
2870 | |
2871 | fi | |
10f2d63a VZ |
2872 | |
2873 | ||
2874 | eval "$ac_cv_use_config" | |
2875 | if test "$no_cache" != 1; then | |
2876 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2877 | fi | |
2878 | ||
2879 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 2880 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2881 | else |
698dcdb6 | 2882 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2883 | fi |
698dcdb6 VZ |
2884 | |
2885 | ||
b12915c1 | 2886 | |
698dcdb6 | 2887 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
24fd6d87 | 2888 | echo "configure:2889: checking for --enable-sockets" >&5 |
10f2d63a VZ |
2889 | no_cache=0 |
2890 | # Check whether --enable-sockets or --disable-sockets was given. | |
2891 | if test "${enable_sockets+set}" = set; then | |
2892 | enableval="$enable_sockets" | |
698dcdb6 | 2893 | |
10f2d63a VZ |
2894 | if test "$enableval" = yes; then |
2895 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2896 | else | |
2897 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2898 | fi | |
698dcdb6 | 2899 | |
10f2d63a | 2900 | else |
698dcdb6 | 2901 | |
10f2d63a VZ |
2902 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
2903 | if test "x$LINE" != x ; then | |
2904 | eval "DEFAULT_$LINE" | |
2905 | else | |
2906 | no_cache=1 | |
2907 | fi | |
2908 | ||
2909 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
2910 | |
2911 | fi | |
10f2d63a VZ |
2912 | |
2913 | ||
2914 | eval "$ac_cv_use_sockets" | |
2915 | if test "$no_cache" != 1; then | |
2916 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2917 | fi | |
2918 | ||
2919 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 2920 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2921 | else |
698dcdb6 | 2922 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2923 | fi |
698dcdb6 | 2924 | |
b12915c1 | 2925 | |
698dcdb6 VZ |
2926 | |
2927 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
24fd6d87 | 2928 | echo "configure:2929: checking for --enable-ipc" >&5 |
10f2d63a | 2929 | no_cache=0 |
eb4efbdc VZ |
2930 | # Check whether --enable-ipc or --disable-ipc was given. |
2931 | if test "${enable_ipc+set}" = set; then | |
2932 | enableval="$enable_ipc" | |
698dcdb6 | 2933 | |
10f2d63a | 2934 | if test "$enableval" = yes; then |
eb4efbdc | 2935 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 2936 | else |
eb4efbdc | 2937 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 2938 | fi |
698dcdb6 | 2939 | |
10f2d63a | 2940 | else |
698dcdb6 | 2941 | |
eb4efbdc | 2942 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
2943 | if test "x$LINE" != x ; then |
2944 | eval "DEFAULT_$LINE" | |
2945 | else | |
2946 | no_cache=1 | |
2947 | fi | |
2948 | ||
eb4efbdc | 2949 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
2950 | |
2951 | fi | |
10f2d63a VZ |
2952 | |
2953 | ||
eb4efbdc | 2954 | eval "$ac_cv_use_ipc" |
10f2d63a | 2955 | if test "$no_cache" != 1; then |
eb4efbdc | 2956 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2957 | fi |
2958 | ||
eb4efbdc | 2959 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 2960 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2961 | else |
698dcdb6 | 2962 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2963 | fi |
698dcdb6 VZ |
2964 | |
2965 | ||
eb4efbdc | 2966 | |
1e6feb95 | 2967 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
24fd6d87 | 2968 | echo "configure:2969: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
2969 | no_cache=0 |
2970 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
2971 | if test "${enable_cmdline+set}" = set; then | |
2972 | enableval="$enable_cmdline" | |
2973 | ||
2974 | if test "$enableval" = yes; then | |
2975 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
2976 | else | |
2977 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
2978 | fi | |
2979 | ||
2980 | else | |
2981 | ||
2982 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
2983 | if test "x$LINE" != x ; then | |
2984 | eval "DEFAULT_$LINE" | |
2985 | else | |
2986 | no_cache=1 | |
2987 | fi | |
2988 | ||
2989 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
2990 | ||
2991 | fi | |
2992 | ||
2993 | ||
2994 | eval "$ac_cv_use_cmdline" | |
2995 | if test "$no_cache" != 1; then | |
2996 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
2997 | fi | |
2998 | ||
2999 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3000 | echo "$ac_t""yes" 1>&6 | |
3001 | else | |
3002 | echo "$ac_t""no" 1>&6 | |
3003 | fi | |
3004 | ||
3005 | ||
3006 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
24fd6d87 | 3007 | echo "configure:3008: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3008 | no_cache=0 |
3009 | # Check whether --enable-datetime or --disable-datetime was given. | |
3010 | if test "${enable_datetime+set}" = set; then | |
3011 | enableval="$enable_datetime" | |
3012 | ||
3013 | if test "$enableval" = yes; then | |
3014 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3015 | else | |
3016 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3017 | fi | |
3018 | ||
3019 | else | |
3020 | ||
3021 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3022 | if test "x$LINE" != x ; then | |
3023 | eval "DEFAULT_$LINE" | |
3024 | else | |
3025 | no_cache=1 | |
3026 | fi | |
3027 | ||
3028 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3029 | ||
3030 | fi | |
3031 | ||
3032 | ||
3033 | eval "$ac_cv_use_datetime" | |
3034 | if test "$no_cache" != 1; then | |
3035 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3036 | fi | |
3037 | ||
3038 | if test "$wxUSE_DATETIME" = yes; then | |
3039 | echo "$ac_t""yes" 1>&6 | |
3040 | else | |
3041 | echo "$ac_t""no" 1>&6 | |
3042 | fi | |
3043 | ||
3044 | ||
3045 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
24fd6d87 | 3046 | echo "configure:3047: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3047 | no_cache=0 |
3048 | # Check whether --enable-timedate or --disable-timedate was given. | |
3049 | if test "${enable_timedate+set}" = set; then | |
3050 | enableval="$enable_timedate" | |
3051 | ||
3052 | if test "$enableval" = yes; then | |
3053 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3054 | else | |
3055 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3056 | fi | |
3057 | ||
3058 | else | |
3059 | ||
3060 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3061 | if test "x$LINE" != x ; then | |
3062 | eval "DEFAULT_$LINE" | |
3063 | else | |
3064 | no_cache=1 | |
3065 | fi | |
3066 | ||
3067 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3068 | ||
3069 | fi | |
3070 | ||
3071 | ||
3072 | eval "$ac_cv_use_timedate" | |
3073 | if test "$no_cache" != 1; then | |
3074 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3075 | fi | |
3076 | ||
3077 | if test "$wxUSE_TIMEDATE" = yes; then | |
3078 | echo "$ac_t""yes" 1>&6 | |
3079 | else | |
3080 | echo "$ac_t""no" 1>&6 | |
3081 | fi | |
3082 | ||
3083 | ||
3084 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
24fd6d87 | 3085 | echo "configure:3086: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3086 | no_cache=0 |
3087 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3088 | if test "${enable_stopwatch+set}" = set; then | |
3089 | enableval="$enable_stopwatch" | |
3090 | ||
3091 | if test "$enableval" = yes; then | |
3092 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3093 | else | |
3094 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3095 | fi | |
3096 | ||
3097 | else | |
3098 | ||
3099 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3100 | if test "x$LINE" != x ; then | |
3101 | eval "DEFAULT_$LINE" | |
3102 | else | |
3103 | no_cache=1 | |
3104 | fi | |
3105 | ||
3106 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3107 | ||
3108 | fi | |
3109 | ||
3110 | ||
3111 | eval "$ac_cv_use_stopwatch" | |
3112 | if test "$no_cache" != 1; then | |
3113 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3114 | fi | |
3115 | ||
3116 | if test "$wxUSE_STOPWATCH" = yes; then | |
3117 | echo "$ac_t""yes" 1>&6 | |
3118 | else | |
3119 | echo "$ac_t""no" 1>&6 | |
3120 | fi | |
3121 | ||
3122 | ||
698dcdb6 | 3123 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
24fd6d87 | 3124 | echo "configure:3125: checking for --enable-dialupman" >&5 |
10f2d63a | 3125 | no_cache=0 |
eb4efbdc VZ |
3126 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3127 | if test "${enable_dialupman+set}" = set; then | |
3128 | enableval="$enable_dialupman" | |
698dcdb6 | 3129 | |
10f2d63a | 3130 | if test "$enableval" = yes; then |
eb4efbdc | 3131 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3132 | else |
eb4efbdc | 3133 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3134 | fi |
698dcdb6 | 3135 | |
10f2d63a | 3136 | else |
698dcdb6 | 3137 | |
eb4efbdc | 3138 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3139 | if test "x$LINE" != x ; then |
3140 | eval "DEFAULT_$LINE" | |
3141 | else | |
3142 | no_cache=1 | |
3143 | fi | |
3144 | ||
eb4efbdc | 3145 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
3146 | |
3147 | fi | |
10f2d63a VZ |
3148 | |
3149 | ||
eb4efbdc | 3150 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3151 | if test "$no_cache" != 1; then |
eb4efbdc | 3152 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3153 | fi |
3154 | ||
eb4efbdc | 3155 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 3156 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3157 | else |
698dcdb6 | 3158 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3159 | fi |
698dcdb6 | 3160 | |
10f2d63a | 3161 | |
698dcdb6 | 3162 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
24fd6d87 | 3163 | echo "configure:3164: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3164 | no_cache=0 |
3165 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3166 | if test "${enable_apple_ieee+set}" = set; then | |
3167 | enableval="$enable_apple_ieee" | |
698dcdb6 | 3168 | |
10f2d63a VZ |
3169 | if test "$enableval" = yes; then |
3170 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3171 | else | |
3172 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3173 | fi | |
698dcdb6 | 3174 | |
10f2d63a | 3175 | else |
698dcdb6 | 3176 | |
10f2d63a VZ |
3177 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3178 | if test "x$LINE" != x ; then | |
3179 | eval "DEFAULT_$LINE" | |
3180 | else | |
3181 | no_cache=1 | |
3182 | fi | |
3183 | ||
3184 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
3185 | |
3186 | fi | |
10f2d63a VZ |
3187 | |
3188 | ||
3189 | eval "$ac_cv_use_apple_ieee" | |
3190 | if test "$no_cache" != 1; then | |
3191 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3192 | fi | |
3193 | ||
3194 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 3195 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3196 | else |
698dcdb6 | 3197 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3198 | fi |
698dcdb6 | 3199 | |
10f2d63a | 3200 | |
1e6feb95 | 3201 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
24fd6d87 | 3202 | echo "configure:3203: checking for --enable-timer" >&5 |
10f2d63a | 3203 | no_cache=0 |
1e6feb95 VZ |
3204 | # Check whether --enable-timer or --disable-timer was given. |
3205 | if test "${enable_timer+set}" = set; then | |
3206 | enableval="$enable_timer" | |
698dcdb6 | 3207 | |
10f2d63a | 3208 | if test "$enableval" = yes; then |
1e6feb95 | 3209 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3210 | else |
1e6feb95 | 3211 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3212 | fi |
698dcdb6 | 3213 | |
10f2d63a | 3214 | else |
698dcdb6 | 3215 | |
1e6feb95 | 3216 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3217 | if test "x$LINE" != x ; then |
3218 | eval "DEFAULT_$LINE" | |
3219 | else | |
3220 | no_cache=1 | |
3221 | fi | |
3222 | ||
1e6feb95 | 3223 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
698dcdb6 VZ |
3224 | |
3225 | fi | |
10f2d63a VZ |
3226 | |
3227 | ||
1e6feb95 | 3228 | eval "$ac_cv_use_timer" |
10f2d63a | 3229 | if test "$no_cache" != 1; then |
1e6feb95 | 3230 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3231 | fi |
3232 | ||
1e6feb95 | 3233 | if test "$wxUSE_TIMER" = yes; then |
698dcdb6 | 3234 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3235 | else |
698dcdb6 | 3236 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3237 | fi |
698dcdb6 | 3238 | |
10f2d63a | 3239 | |
698dcdb6 | 3240 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
24fd6d87 | 3241 | echo "configure:3242: checking for --enable-wave" >&5 |
10f2d63a VZ |
3242 | no_cache=0 |
3243 | # Check whether --enable-wave or --disable-wave was given. | |
3244 | if test "${enable_wave+set}" = set; then | |
3245 | enableval="$enable_wave" | |
698dcdb6 | 3246 | |
10f2d63a VZ |
3247 | if test "$enableval" = yes; then |
3248 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3249 | else | |
3250 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3251 | fi | |
698dcdb6 | 3252 | |
10f2d63a | 3253 | else |
698dcdb6 | 3254 | |
10f2d63a VZ |
3255 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3256 | if test "x$LINE" != x ; then | |
3257 | eval "DEFAULT_$LINE" | |
3258 | else | |
3259 | no_cache=1 | |
3260 | fi | |
3261 | ||
3262 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
3263 | |
3264 | fi | |
10f2d63a VZ |
3265 | |
3266 | ||
3267 | eval "$ac_cv_use_wave" | |
3268 | if test "$no_cache" != 1; then | |
3269 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3270 | fi | |
3271 | ||
3272 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 3273 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3274 | else |
698dcdb6 | 3275 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3276 | fi |
698dcdb6 | 3277 | |
10f2d63a | 3278 | |
698dcdb6 | 3279 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
24fd6d87 | 3280 | echo "configure:3281: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3281 | no_cache=0 |
3282 | # Check whether --enable-fraction or --disable-fraction was given. | |
3283 | if test "${enable_fraction+set}" = set; then | |
3284 | enableval="$enable_fraction" | |
698dcdb6 | 3285 | |
10f2d63a VZ |
3286 | if test "$enableval" = yes; then |
3287 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3288 | else | |
3289 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3290 | fi | |
698dcdb6 | 3291 | |
10f2d63a | 3292 | else |
698dcdb6 | 3293 | |
10f2d63a VZ |
3294 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3295 | if test "x$LINE" != x ; then | |
3296 | eval "DEFAULT_$LINE" | |
3297 | else | |
3298 | no_cache=1 | |
3299 | fi | |
3300 | ||
3301 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
3302 | |
3303 | fi | |
10f2d63a VZ |
3304 | |
3305 | ||
3306 | eval "$ac_cv_use_fraction" | |
3307 | if test "$no_cache" != 1; then | |
3308 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3309 | fi | |
3310 | ||
3311 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 3312 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3313 | else |
698dcdb6 | 3314 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3315 | fi |
698dcdb6 | 3316 | |
10f2d63a | 3317 | |
698dcdb6 | 3318 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
24fd6d87 | 3319 | echo "configure:3320: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3320 | no_cache=0 |
3321 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3322 | if test "${enable_dynlib+set}" = set; then | |
3323 | enableval="$enable_dynlib" | |
698dcdb6 | 3324 | |
10f2d63a VZ |
3325 | if test "$enableval" = yes; then |
3326 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3327 | else | |
3328 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3329 | fi | |
698dcdb6 | 3330 | |
10f2d63a | 3331 | else |
698dcdb6 | 3332 | |
10f2d63a VZ |
3333 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3334 | if test "x$LINE" != x ; then | |
3335 | eval "DEFAULT_$LINE" | |
3336 | else | |
3337 | no_cache=1 | |
3338 | fi | |
3339 | ||
3340 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
3341 | |
3342 | fi | |
10f2d63a VZ |
3343 | |
3344 | ||
3345 | eval "$ac_cv_use_dynlib" | |
3346 | if test "$no_cache" != 1; then | |
3347 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3348 | fi | |
3349 | ||
3350 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 3351 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3352 | else |
698dcdb6 | 3353 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3354 | fi |
698dcdb6 | 3355 | |
10f2d63a | 3356 | |
698dcdb6 | 3357 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
24fd6d87 | 3358 | echo "configure:3359: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3359 | no_cache=0 |
3360 | # Check whether --enable-longlong or --disable-longlong was given. | |
3361 | if test "${enable_longlong+set}" = set; then | |
3362 | enableval="$enable_longlong" | |
698dcdb6 | 3363 | |
10f2d63a VZ |
3364 | if test "$enableval" = yes; then |
3365 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3366 | else | |
3367 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3368 | fi | |
698dcdb6 | 3369 | |
10f2d63a | 3370 | else |
698dcdb6 | 3371 | |
10f2d63a VZ |
3372 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3373 | if test "x$LINE" != x ; then | |
3374 | eval "DEFAULT_$LINE" | |
3375 | else | |
3376 | no_cache=1 | |
3377 | fi | |
3378 | ||
3379 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3380 | |
3381 | fi | |
10f2d63a VZ |
3382 | |
3383 | ||
3384 | eval "$ac_cv_use_longlong" | |
3385 | if test "$no_cache" != 1; then | |
3386 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3387 | fi | |
3388 | ||
3389 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3390 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3391 | else |
698dcdb6 | 3392 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3393 | fi |
698dcdb6 | 3394 | |
10f2d63a | 3395 | |
698dcdb6 | 3396 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
24fd6d87 | 3397 | echo "configure:3398: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3398 | no_cache=0 |
3399 | # Check whether --enable-geometry or --disable-geometry was given. | |
3400 | if test "${enable_geometry+set}" = set; then | |
3401 | enableval="$enable_geometry" | |
698dcdb6 | 3402 | |
e8f65ba6 RR |
3403 | if test "$enableval" = yes; then |
3404 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3405 | else | |
3406 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3407 | fi | |
698dcdb6 | 3408 | |
e8f65ba6 | 3409 | else |
698dcdb6 | 3410 | |
e8f65ba6 RR |
3411 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3412 | if test "x$LINE" != x ; then | |
3413 | eval "DEFAULT_$LINE" | |
3414 | else | |
3415 | no_cache=1 | |
3416 | fi | |
3417 | ||
3418 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3419 | |
3420 | fi | |
e8f65ba6 RR |
3421 | |
3422 | ||
3423 | eval "$ac_cv_use_geometry" | |
3424 | if test "$no_cache" != 1; then | |
3425 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3426 | fi | |
3427 | ||
3428 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3429 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3430 | else |
698dcdb6 | 3431 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3432 | fi |
698dcdb6 | 3433 | |
e8f65ba6 | 3434 | |
698dcdb6 | 3435 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
24fd6d87 | 3436 | echo "configure:3437: checking for --enable-log" >&5 |
10f2d63a VZ |
3437 | no_cache=0 |
3438 | # Check whether --enable-log or --disable-log was given. | |
3439 | if test "${enable_log+set}" = set; then | |
3440 | enableval="$enable_log" | |
698dcdb6 | 3441 | |
10f2d63a VZ |
3442 | if test "$enableval" = yes; then |
3443 | ac_cv_use_log='wxUSE_LOG=yes' | |
3444 | else | |
3445 | ac_cv_use_log='wxUSE_LOG=no' | |
3446 | fi | |
698dcdb6 | 3447 | |
10f2d63a | 3448 | else |
698dcdb6 | 3449 | |
10f2d63a VZ |
3450 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3451 | if test "x$LINE" != x ; then | |
3452 | eval "DEFAULT_$LINE" | |
3453 | else | |
3454 | no_cache=1 | |
3455 | fi | |
3456 | ||
3457 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3458 | |
3459 | fi | |
10f2d63a VZ |
3460 | |
3461 | ||
3462 | eval "$ac_cv_use_log" | |
3463 | if test "$no_cache" != 1; then | |
3464 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3465 | fi | |
3466 | ||
3467 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3468 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3469 | else |
698dcdb6 | 3470 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3471 | fi |
698dcdb6 | 3472 | |
10f2d63a | 3473 | |
698dcdb6 | 3474 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
24fd6d87 | 3475 | echo "configure:3476: checking for --enable-streams" >&5 |
10f2d63a VZ |
3476 | no_cache=0 |
3477 | # Check whether --enable-streams or --disable-streams was given. | |
3478 | if test "${enable_streams+set}" = set; then | |
3479 | enableval="$enable_streams" | |
698dcdb6 | 3480 | |
10f2d63a VZ |
3481 | if test "$enableval" = yes; then |
3482 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3483 | else | |
3484 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3485 | fi | |
698dcdb6 | 3486 | |
10f2d63a | 3487 | else |
698dcdb6 | 3488 | |
10f2d63a VZ |
3489 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3490 | if test "x$LINE" != x ; then | |
3491 | eval "DEFAULT_$LINE" | |
3492 | else | |
3493 | no_cache=1 | |
3494 | fi | |
3495 | ||
3496 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3497 | |
3498 | fi | |
10f2d63a VZ |
3499 | |
3500 | ||
3501 | eval "$ac_cv_use_streams" | |
3502 | if test "$no_cache" != 1; then | |
3503 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3504 | fi | |
3505 | ||
3506 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3507 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3508 | else |
698dcdb6 | 3509 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3510 | fi |
698dcdb6 | 3511 | |
10f2d63a | 3512 | |
698dcdb6 | 3513 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
24fd6d87 | 3514 | echo "configure:3515: checking for --enable-file" >&5 |
10f2d63a VZ |
3515 | no_cache=0 |
3516 | # Check whether --enable-file or --disable-file was given. | |
3517 | if test "${enable_file+set}" = set; then | |
3518 | enableval="$enable_file" | |
698dcdb6 | 3519 | |
10f2d63a VZ |
3520 | if test "$enableval" = yes; then |
3521 | ac_cv_use_file='wxUSE_FILE=yes' | |
3522 | else | |
3523 | ac_cv_use_file='wxUSE_FILE=no' | |
3524 | fi | |
698dcdb6 | 3525 | |
10f2d63a | 3526 | else |
698dcdb6 | 3527 | |
10f2d63a VZ |
3528 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3529 | if test "x$LINE" != x ; then | |
3530 | eval "DEFAULT_$LINE" | |
3531 | else | |
3532 | no_cache=1 | |
3533 | fi | |
3534 | ||
3535 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3536 | |
3537 | fi | |
10f2d63a VZ |
3538 | |
3539 | ||
3540 | eval "$ac_cv_use_file" | |
3541 | if test "$no_cache" != 1; then | |
3542 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3543 | fi | |
3544 | ||
3545 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3546 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3547 | else |
698dcdb6 | 3548 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3549 | fi |
698dcdb6 | 3550 | |
10f2d63a | 3551 | |
1e6feb95 | 3552 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
24fd6d87 | 3553 | echo "configure:3554: checking for --enable-ffile" >&5 |
10f2d63a | 3554 | no_cache=0 |
1e6feb95 VZ |
3555 | # Check whether --enable-ffile or --disable-ffile was given. |
3556 | if test "${enable_ffile+set}" = set; then | |
3557 | enableval="$enable_ffile" | |
698dcdb6 | 3558 | |
10f2d63a | 3559 | if test "$enableval" = yes; then |
1e6feb95 | 3560 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3561 | else |
1e6feb95 | 3562 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3563 | fi |
698dcdb6 | 3564 | |
10f2d63a | 3565 | else |
698dcdb6 | 3566 | |
1e6feb95 | 3567 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3568 | if test "x$LINE" != x ; then |
3569 | eval "DEFAULT_$LINE" | |
3570 | else | |
3571 | no_cache=1 | |
3572 | fi | |
3573 | ||
1e6feb95 | 3574 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
698dcdb6 VZ |
3575 | |
3576 | fi | |
10f2d63a VZ |
3577 | |
3578 | ||
1e6feb95 | 3579 | eval "$ac_cv_use_ffile" |
10f2d63a | 3580 | if test "$no_cache" != 1; then |
1e6feb95 | 3581 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3582 | fi |
3583 | ||
1e6feb95 | 3584 | if test "$wxUSE_FFILE" = yes; then |
698dcdb6 | 3585 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3586 | else |
698dcdb6 | 3587 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3588 | fi |
698dcdb6 | 3589 | |
10f2d63a | 3590 | |
1e6feb95 | 3591 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
24fd6d87 | 3592 | echo "configure:3593: checking for --enable-textfile" >&5 |
10f2d63a | 3593 | no_cache=0 |
1e6feb95 VZ |
3594 | # Check whether --enable-textfile or --disable-textfile was given. |
3595 | if test "${enable_textfile+set}" = set; then | |
3596 | enableval="$enable_textfile" | |
698dcdb6 | 3597 | |
10f2d63a | 3598 | if test "$enableval" = yes; then |
1e6feb95 | 3599 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 3600 | else |
1e6feb95 | 3601 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 3602 | fi |
698dcdb6 | 3603 | |
10f2d63a | 3604 | else |
698dcdb6 | 3605 | |
1e6feb95 | 3606 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3607 | if test "x$LINE" != x ; then |
3608 | eval "DEFAULT_$LINE" | |
3609 | else | |
3610 | no_cache=1 | |
3611 | fi | |
3612 | ||
1e6feb95 | 3613 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
698dcdb6 VZ |
3614 | |
3615 | fi | |
10f2d63a VZ |
3616 | |
3617 | ||
1e6feb95 | 3618 | eval "$ac_cv_use_textfile" |
10f2d63a | 3619 | if test "$no_cache" != 1; then |
1e6feb95 | 3620 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3621 | fi |
3622 | ||
1e6feb95 | 3623 | if test "$wxUSE_TEXTFILE" = yes; then |
698dcdb6 | 3624 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3625 | else |
698dcdb6 | 3626 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3627 | fi |
698dcdb6 | 3628 | |
10f2d63a | 3629 | |
1e6feb95 | 3630 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
24fd6d87 | 3631 | echo "configure:3632: checking for --enable-fontmap" >&5 |
10f2d63a | 3632 | no_cache=0 |
1e6feb95 VZ |
3633 | # Check whether --enable-fontmap or --disable-fontmap was given. |
3634 | if test "${enable_fontmap+set}" = set; then | |
3635 | enableval="$enable_fontmap" | |
698dcdb6 | 3636 | |
10f2d63a | 3637 | if test "$enableval" = yes; then |
1e6feb95 | 3638 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 3639 | else |
1e6feb95 | 3640 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 3641 | fi |
698dcdb6 | 3642 | |
10f2d63a | 3643 | else |
698dcdb6 | 3644 | |
1e6feb95 | 3645 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
3646 | if test "x$LINE" != x ; then |
3647 | eval "DEFAULT_$LINE" | |
3648 | else | |
3649 | no_cache=1 | |
3650 | fi | |
3651 | ||
1e6feb95 | 3652 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
698dcdb6 VZ |
3653 | |
3654 | fi | |
10f2d63a VZ |
3655 | |
3656 | ||
1e6feb95 | 3657 | eval "$ac_cv_use_fontmap" |
10f2d63a | 3658 | if test "$no_cache" != 1; then |
1e6feb95 | 3659 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3660 | fi |
3661 | ||
1e6feb95 | 3662 | if test "$wxUSE_FONTMAP" = yes; then |
698dcdb6 | 3663 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3664 | else |
698dcdb6 | 3665 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3666 | fi |
698dcdb6 | 3667 | |
10f2d63a | 3668 | |
1e6feb95 | 3669 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
24fd6d87 | 3670 | echo "configure:3671: checking for --enable-unicode" >&5 |
10f2d63a | 3671 | no_cache=0 |
1e6feb95 VZ |
3672 | # Check whether --enable-unicode or --disable-unicode was given. |
3673 | if test "${enable_unicode+set}" = set; then | |
3674 | enableval="$enable_unicode" | |
3675 | ||
3676 | if test "$enableval" = yes; then | |
3677 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3678 | else | |
3679 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3680 | fi | |
3681 | ||
3682 | else | |
3683 | ||
3684 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3685 | if test "x$LINE" != x ; then | |
3686 | eval "DEFAULT_$LINE" | |
3687 | else | |
3688 | no_cache=1 | |
3689 | fi | |
3690 | ||
3691 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3692 | ||
3693 | fi | |
3694 | ||
3695 | ||
3696 | eval "$ac_cv_use_unicode" | |
3697 | if test "$no_cache" != 1; then | |
3698 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3699 | fi | |
3700 | ||
3701 | if test "$wxUSE_UNICODE" = yes; then | |
3702 | echo "$ac_t""yes" 1>&6 | |
3703 | else | |
3704 | echo "$ac_t""no" 1>&6 | |
3705 | fi | |
3706 | ||
3707 | ||
3708 | echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6 | |
24fd6d87 | 3709 | echo "configure:3710: checking for --enable-wcsrtombs" >&5 |
1e6feb95 VZ |
3710 | no_cache=0 |
3711 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3712 | if test "${enable_wcsrtombs+set}" = set; then | |
3713 | enableval="$enable_wcsrtombs" | |
3714 | ||
3715 | if test "$enableval" = yes; then | |
3716 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3717 | else | |
3718 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3719 | fi | |
3720 | ||
3721 | else | |
3722 | ||
3723 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3724 | if test "x$LINE" != x ; then | |
3725 | eval "DEFAULT_$LINE" | |
3726 | else | |
3727 | no_cache=1 | |
3728 | fi | |
3729 | ||
3730 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3731 | ||
3732 | fi | |
3733 | ||
3734 | ||
3735 | eval "$ac_cv_use_wcsrtombs" | |
3736 | if test "$no_cache" != 1; then | |
3737 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3738 | fi | |
3739 | ||
3740 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3741 | echo "$ac_t""yes" 1>&6 | |
3742 | else | |
3743 | echo "$ac_t""no" 1>&6 | |
3744 | fi | |
3745 | ||
3746 | ||
3747 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 | |
24fd6d87 | 3748 | echo "configure:3749: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
3749 | no_cache=0 |
3750 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3751 | if test "${enable_wxprintfv+set}" = set; then | |
3752 | enableval="$enable_wxprintfv" | |
3753 | ||
3754 | if test "$enableval" = yes; then | |
10f2d63a VZ |
3755 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
3756 | else | |
3757 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3758 | fi | |
698dcdb6 | 3759 | |
10f2d63a | 3760 | else |
698dcdb6 | 3761 | |
10f2d63a VZ |
3762 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3763 | if test "x$LINE" != x ; then | |
3764 | eval "DEFAULT_$LINE" | |
3765 | else | |
3766 | no_cache=1 | |
3767 | fi | |
3768 | ||
3769 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3770 | |
3771 | fi | |
10f2d63a VZ |
3772 | |
3773 | ||
3774 | eval "$ac_cv_use_wxprintfv" | |
3775 | if test "$no_cache" != 1; then | |
3776 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3777 | fi | |
3778 | ||
3779 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3780 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3781 | else |
698dcdb6 | 3782 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3783 | fi |
698dcdb6 | 3784 | |
10f2d63a | 3785 | |
698dcdb6 | 3786 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
24fd6d87 | 3787 | echo "configure:3788: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
3788 | no_cache=0 |
3789 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3790 | if test "${enable_std_iostreams+set}" = set; then | |
3791 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3792 | |
10f2d63a VZ |
3793 | if test "$enableval" = yes; then |
3794 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3795 | else | |
3796 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3797 | fi | |
698dcdb6 | 3798 | |
10f2d63a | 3799 | else |
698dcdb6 | 3800 | |
10f2d63a VZ |
3801 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3802 | if test "x$LINE" != x ; then | |
3803 | eval "DEFAULT_$LINE" | |
3804 | else | |
3805 | no_cache=1 | |
3806 | fi | |
3807 | ||
3808 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3809 | |
3810 | fi | |
10f2d63a VZ |
3811 | |
3812 | ||
3813 | eval "$ac_cv_use_std_iostreams" | |
3814 | if test "$no_cache" != 1; then | |
3815 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3816 | fi | |
3817 | ||
3818 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3819 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3820 | else |
698dcdb6 | 3821 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3822 | fi |
698dcdb6 | 3823 | |
10f2d63a | 3824 | |
698dcdb6 | 3825 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
24fd6d87 | 3826 | echo "configure:3827: checking for --enable-filesystem" >&5 |
24528b0c VS |
3827 | no_cache=0 |
3828 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3829 | if test "${enable_filesystem+set}" = set; then | |
3830 | enableval="$enable_filesystem" | |
698dcdb6 | 3831 | |
24528b0c VS |
3832 | if test "$enableval" = yes; then |
3833 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3834 | else | |
3835 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3836 | fi | |
698dcdb6 | 3837 | |
24528b0c | 3838 | else |
698dcdb6 | 3839 | |
24528b0c VS |
3840 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3841 | if test "x$LINE" != x ; then | |
3842 | eval "DEFAULT_$LINE" | |
3843 | else | |
3844 | no_cache=1 | |
3845 | fi | |
3846 | ||
3847 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3848 | |
3849 | fi | |
24528b0c VS |
3850 | |
3851 | ||
3852 | eval "$ac_cv_use_filesystem" | |
3853 | if test "$no_cache" != 1; then | |
3854 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3855 | fi | |
3856 | ||
3857 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3858 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3859 | else |
698dcdb6 | 3860 | echo "$ac_t""no" 1>&6 |
24528b0c | 3861 | fi |
698dcdb6 | 3862 | |
24528b0c | 3863 | |
698dcdb6 | 3864 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
24fd6d87 | 3865 | echo "configure:3866: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
3866 | no_cache=0 |
3867 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3868 | if test "${enable_fs_inet+set}" = set; then | |
3869 | enableval="$enable_fs_inet" | |
698dcdb6 | 3870 | |
10f2d63a VZ |
3871 | if test "$enableval" = yes; then |
3872 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3873 | else | |
3874 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3875 | fi | |
698dcdb6 | 3876 | |
10f2d63a | 3877 | else |
698dcdb6 | 3878 | |
10f2d63a VZ |
3879 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3880 | if test "x$LINE" != x ; then | |
3881 | eval "DEFAULT_$LINE" | |
3882 | else | |
3883 | no_cache=1 | |
3884 | fi | |
3885 | ||
3886 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3887 | |
3888 | fi | |
10f2d63a VZ |
3889 | |
3890 | ||
3891 | eval "$ac_cv_use_fs_inet" | |
3892 | if test "$no_cache" != 1; then | |
3893 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3894 | fi | |
3895 | ||
3896 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 3897 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3898 | else |
698dcdb6 | 3899 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3900 | fi |
698dcdb6 | 3901 | |
10f2d63a | 3902 | |
698dcdb6 | 3903 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
24fd6d87 | 3904 | echo "configure:3905: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
3905 | no_cache=0 |
3906 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3907 | if test "${enable_fs_zip+set}" = set; then | |
3908 | enableval="$enable_fs_zip" | |
698dcdb6 | 3909 | |
10f2d63a VZ |
3910 | if test "$enableval" = yes; then |
3911 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3912 | else | |
3913 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3914 | fi | |
698dcdb6 | 3915 | |
10f2d63a | 3916 | else |
698dcdb6 | 3917 | |
10f2d63a VZ |
3918 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
3919 | if test "x$LINE" != x ; then | |
3920 | eval "DEFAULT_$LINE" | |
3921 | else | |
3922 | no_cache=1 | |
3923 | fi | |
3924 | ||
3925 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
3926 | |
3927 | fi | |
10f2d63a VZ |
3928 | |
3929 | ||
3930 | eval "$ac_cv_use_fs_zip" | |
3931 | if test "$no_cache" != 1; then | |
3932 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3933 | fi | |
3934 | ||
3935 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 3936 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3937 | else |
698dcdb6 | 3938 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3939 | fi |
698dcdb6 | 3940 | |
10f2d63a | 3941 | |
698dcdb6 | 3942 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
24fd6d87 | 3943 | echo "configure:3944: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
3944 | no_cache=0 |
3945 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3946 | if test "${enable_zipstream+set}" = set; then | |
3947 | enableval="$enable_zipstream" | |
698dcdb6 | 3948 | |
10f2d63a VZ |
3949 | if test "$enableval" = yes; then |
3950 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3951 | else | |
3952 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3953 | fi | |
698dcdb6 | 3954 | |
10f2d63a | 3955 | else |
698dcdb6 | 3956 | |
10f2d63a VZ |
3957 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3958 | if test "x$LINE" != x ; then | |
3959 | eval "DEFAULT_$LINE" | |
3960 | else | |
3961 | no_cache=1 | |
3962 | fi | |
3963 | ||
3964 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
3965 | |
3966 | fi | |
10f2d63a VZ |
3967 | |
3968 | ||
3969 | eval "$ac_cv_use_zipstream" | |
3970 | if test "$no_cache" != 1; then | |
3971 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3972 | fi | |
3973 | ||
3974 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 3975 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3976 | else |
698dcdb6 | 3977 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3978 | fi |
698dcdb6 | 3979 | |
10f2d63a | 3980 | |
698dcdb6 VZ |
3981 | |
3982 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
24fd6d87 | 3983 | echo "configure:3984: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
3984 | no_cache=0 |
3985 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
3986 | if test "${enable_catch_segvs+set}" = set; then | |
3987 | enableval="$enable_catch_segvs" | |
698dcdb6 | 3988 | |
eb4efbdc VZ |
3989 | if test "$enableval" = yes; then |
3990 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
3991 | else | |
3992 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
3993 | fi | |
698dcdb6 | 3994 | |
eb4efbdc | 3995 | else |
698dcdb6 | 3996 | |
eb4efbdc VZ |
3997 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
3998 | if test "x$LINE" != x ; then | |
3999 | eval "DEFAULT_$LINE" | |
4000 | else | |
4001 | no_cache=1 | |
4002 | fi | |
4003 | ||
4004 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
4005 | |
4006 | fi | |
eb4efbdc VZ |
4007 | |
4008 | ||
4009 | eval "$ac_cv_use_catch_segvs" | |
4010 | if test "$no_cache" != 1; then | |
4011 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4012 | fi | |
4013 | ||
4014 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 4015 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4016 | else |
698dcdb6 | 4017 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4018 | fi |
698dcdb6 | 4019 | |
eb4efbdc | 4020 | |
698dcdb6 | 4021 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
24fd6d87 | 4022 | echo "configure:4023: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4023 | no_cache=0 |
4024 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4025 | if test "${enable_snglinst+set}" = set; then | |
4026 | enableval="$enable_snglinst" | |
698dcdb6 | 4027 | |
4f3c5f06 VZ |
4028 | if test "$enableval" = yes; then |
4029 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4030 | else | |
4031 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4032 | fi | |
698dcdb6 | 4033 | |
4f3c5f06 | 4034 | else |
698dcdb6 | 4035 | |
4f3c5f06 VZ |
4036 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4037 | if test "x$LINE" != x ; then | |
4038 | eval "DEFAULT_$LINE" | |
4039 | else | |
4040 | no_cache=1 | |
4041 | fi | |
4042 | ||
4043 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
4044 | |
4045 | fi | |
4f3c5f06 VZ |
4046 | |
4047 | ||
4048 | eval "$ac_cv_use_snglinst" | |
4049 | if test "$no_cache" != 1; then | |
4050 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4051 | fi | |
4052 | ||
4053 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 4054 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4055 | else |
698dcdb6 | 4056 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4057 | fi |
698dcdb6 VZ |
4058 | |
4059 | ||
eb4efbdc | 4060 | |
1e6feb95 | 4061 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
24fd6d87 | 4062 | echo "configure:4063: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4063 | no_cache=0 |
4064 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4065 | if test "${enable_mimetype+set}" = set; then | |
4066 | enableval="$enable_mimetype" | |
4067 | ||
4068 | if test "$enableval" = yes; then | |
4069 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4070 | else | |
4071 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4072 | fi | |
4073 | ||
4074 | else | |
4075 | ||
4076 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4077 | if test "x$LINE" != x ; then | |
4078 | eval "DEFAULT_$LINE" | |
4079 | else | |
4080 | no_cache=1 | |
4081 | fi | |
4082 | ||
4083 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4084 | ||
4085 | fi | |
4086 | ||
4087 | ||
4088 | eval "$ac_cv_use_mimetype" | |
4089 | if test "$no_cache" != 1; then | |
4090 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4091 | fi | |
4092 | ||
4093 | if test "$wxUSE_MIMETYPE" = yes; then | |
4094 | echo "$ac_t""yes" 1>&6 | |
4095 | else | |
4096 | echo "$ac_t""no" 1>&6 | |
4097 | fi | |
4098 | ||
4099 | ||
4100 | ||
698dcdb6 VZ |
4101 | |
4102 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
24fd6d87 | 4103 | echo "configure:4104: checking for --enable-threads" >&5 |
10f2d63a VZ |
4104 | no_cache=0 |
4105 | # Check whether --enable-threads or --disable-threads was given. | |
4106 | if test "${enable_threads+set}" = set; then | |
4107 | enableval="$enable_threads" | |
698dcdb6 | 4108 | |
10f2d63a VZ |
4109 | if test "$enableval" = yes; then |
4110 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4111 | else | |
4112 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4113 | fi | |
698dcdb6 | 4114 | |
10f2d63a | 4115 | else |
698dcdb6 | 4116 | |
10f2d63a VZ |
4117 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4118 | if test "x$LINE" != x ; then | |
4119 | eval "DEFAULT_$LINE" | |
4120 | else | |
4121 | no_cache=1 | |
4122 | fi | |
4123 | ||
4124 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
4125 | |
4126 | fi | |
10f2d63a VZ |
4127 | |
4128 | ||
4129 | eval "$ac_cv_use_threads" | |
4130 | if test "$no_cache" != 1; then | |
4131 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4132 | fi | |
4133 | ||
4134 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 4135 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4136 | else |
698dcdb6 | 4137 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4138 | fi |
698dcdb6 | 4139 | |
10f2d63a | 4140 | |
698dcdb6 | 4141 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
24fd6d87 | 4142 | echo "configure:4143: checking for --enable-serial" >&5 |
10f2d63a VZ |
4143 | no_cache=0 |
4144 | # Check whether --enable-serial or --disable-serial was given. | |
4145 | if test "${enable_serial+set}" = set; then | |
4146 | enableval="$enable_serial" | |
698dcdb6 | 4147 | |
10f2d63a VZ |
4148 | if test "$enableval" = yes; then |
4149 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4150 | else | |
4151 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4152 | fi | |
698dcdb6 | 4153 | |
10f2d63a | 4154 | else |
698dcdb6 | 4155 | |
10f2d63a VZ |
4156 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
4157 | if test "x$LINE" != x ; then | |
4158 | eval "DEFAULT_$LINE" | |
4159 | else | |
4160 | no_cache=1 | |
4161 | fi | |
4162 | ||
4163 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
4164 | |
4165 | fi | |
10f2d63a VZ |
4166 | |
4167 | ||
4168 | eval "$ac_cv_use_serial" | |
4169 | if test "$no_cache" != 1; then | |
4170 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4171 | fi | |
4172 | ||
4173 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 4174 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4175 | else |
698dcdb6 | 4176 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4177 | fi |
698dcdb6 | 4178 | |
10f2d63a | 4179 | |
b12915c1 VZ |
4180 | if test "$wxUSE_GUI" = "yes"; then |
4181 | ||
698dcdb6 VZ |
4182 | |
4183 | ||
4184 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
24fd6d87 | 4185 | echo "configure:4186: checking for --enable-docview" >&5 |
10f2d63a VZ |
4186 | no_cache=0 |
4187 | # Check whether --enable-docview or --disable-docview was given. | |
4188 | if test "${enable_docview+set}" = set; then | |
4189 | enableval="$enable_docview" | |
698dcdb6 | 4190 | |
10f2d63a VZ |
4191 | if test "$enableval" = yes; then |
4192 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4193 | else | |
4194 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4195 | fi | |
698dcdb6 | 4196 | |
10f2d63a | 4197 | else |
698dcdb6 | 4198 | |
10f2d63a VZ |
4199 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4200 | if test "x$LINE" != x ; then | |
4201 | eval "DEFAULT_$LINE" | |
4202 | else | |
4203 | no_cache=1 | |
4204 | fi | |
4205 | ||
4206 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
4207 | |
4208 | fi | |
10f2d63a VZ |
4209 | |
4210 | ||
4211 | eval "$ac_cv_use_docview" | |
4212 | if test "$no_cache" != 1; then | |
4213 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4214 | fi | |
4215 | ||
4216 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 4217 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4218 | else |
698dcdb6 | 4219 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4220 | fi |
698dcdb6 | 4221 | |
10f2d63a | 4222 | |
698dcdb6 | 4223 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
24fd6d87 | 4224 | echo "configure:4225: checking for --enable-help" >&5 |
10f2d63a VZ |
4225 | no_cache=0 |
4226 | # Check whether --enable-help or --disable-help was given. | |
4227 | if test "${enable_help+set}" = set; then | |
4228 | enableval="$enable_help" | |
698dcdb6 | 4229 | |
10f2d63a VZ |
4230 | if test "$enableval" = yes; then |
4231 | ac_cv_use_help='wxUSE_HELP=yes' | |
4232 | else | |
4233 | ac_cv_use_help='wxUSE_HELP=no' | |
4234 | fi | |
698dcdb6 | 4235 | |
10f2d63a | 4236 | else |
698dcdb6 | 4237 | |
10f2d63a VZ |
4238 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4239 | if test "x$LINE" != x ; then | |
4240 | eval "DEFAULT_$LINE" | |
4241 | else | |
4242 | no_cache=1 | |
4243 | fi | |
4244 | ||
4245 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
4246 | |
4247 | fi | |
10f2d63a VZ |
4248 | |
4249 | ||
4250 | eval "$ac_cv_use_help" | |
4251 | if test "$no_cache" != 1; then | |
4252 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4253 | fi | |
4254 | ||
4255 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 4256 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4257 | else |
698dcdb6 | 4258 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4259 | fi |
698dcdb6 | 4260 | |
10f2d63a | 4261 | |
698dcdb6 | 4262 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
24fd6d87 | 4263 | echo "configure:4264: checking for --enable-constraints" >&5 |
10f2d63a VZ |
4264 | no_cache=0 |
4265 | # Check whether --enable-constraints or --disable-constraints was given. | |
4266 | if test "${enable_constraints+set}" = set; then | |
4267 | enableval="$enable_constraints" | |
698dcdb6 | 4268 | |
10f2d63a VZ |
4269 | if test "$enableval" = yes; then |
4270 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4271 | else | |
4272 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4273 | fi | |
698dcdb6 | 4274 | |
10f2d63a | 4275 | else |
698dcdb6 | 4276 | |
10f2d63a VZ |
4277 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
4278 | if test "x$LINE" != x ; then | |
4279 | eval "DEFAULT_$LINE" | |
4280 | else | |
4281 | no_cache=1 | |
4282 | fi | |
4283 | ||
4284 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
4285 | |
4286 | fi | |
10f2d63a VZ |
4287 | |
4288 | ||
4289 | eval "$ac_cv_use_constraints" | |
4290 | if test "$no_cache" != 1; then | |
4291 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4292 | fi | |
4293 | ||
4294 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 4295 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4296 | else |
698dcdb6 | 4297 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4298 | fi |
698dcdb6 | 4299 | |
10f2d63a | 4300 | |
698dcdb6 | 4301 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
24fd6d87 | 4302 | echo "configure:4303: checking for --enable-printarch" >&5 |
10f2d63a VZ |
4303 | no_cache=0 |
4304 | # Check whether --enable-printarch or --disable-printarch was given. | |
4305 | if test "${enable_printarch+set}" = set; then | |
4306 | enableval="$enable_printarch" | |
698dcdb6 | 4307 | |
10f2d63a VZ |
4308 | if test "$enableval" = yes; then |
4309 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4310 | else | |
4311 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4312 | fi | |
698dcdb6 | 4313 | |
10f2d63a | 4314 | else |
698dcdb6 | 4315 | |
10f2d63a VZ |
4316 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
4317 | if test "x$LINE" != x ; then | |
4318 | eval "DEFAULT_$LINE" | |
4319 | else | |
4320 | no_cache=1 | |
4321 | fi | |
4322 | ||
4323 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
4324 | |
4325 | fi | |
10f2d63a VZ |
4326 | |
4327 | ||
4328 | eval "$ac_cv_use_printarch" | |
4329 | if test "$no_cache" != 1; then | |
4330 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4331 | fi | |
4332 | ||
4333 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 4334 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4335 | else |
698dcdb6 | 4336 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4337 | fi |
698dcdb6 | 4338 | |
10f2d63a | 4339 | |
698dcdb6 | 4340 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
24fd6d87 | 4341 | echo "configure:4342: checking for --enable-mdi" >&5 |
10f2d63a VZ |
4342 | no_cache=0 |
4343 | # Check whether --enable-mdi or --disable-mdi was given. | |
4344 | if test "${enable_mdi+set}" = set; then | |
4345 | enableval="$enable_mdi" | |
698dcdb6 | 4346 | |
10f2d63a VZ |
4347 | if test "$enableval" = yes; then |
4348 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4349 | else | |
4350 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4351 | fi | |
698dcdb6 | 4352 | |
10f2d63a | 4353 | else |
698dcdb6 | 4354 | |
10f2d63a VZ |
4355 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
4356 | if test "x$LINE" != x ; then | |
4357 | eval "DEFAULT_$LINE" | |
4358 | else | |
4359 | no_cache=1 | |
4360 | fi | |
4361 | ||
4362 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
4363 | |
4364 | fi | |
10f2d63a VZ |
4365 | |
4366 | ||
4367 | eval "$ac_cv_use_mdi" | |
4368 | if test "$no_cache" != 1; then | |
4369 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4370 | fi | |
4371 | ||
4372 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 4373 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4374 | else |
698dcdb6 | 4375 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4376 | fi |
698dcdb6 VZ |
4377 | |
4378 | ||
1e6feb95 | 4379 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
24fd6d87 | 4380 | echo "configure:4381: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
4381 | no_cache=0 |
4382 | # Check whether --enable-loggui or --disable-loggui was given. | |
4383 | if test "${enable_loggui+set}" = set; then | |
4384 | enableval="$enable_loggui" | |
4385 | ||
4386 | if test "$enableval" = yes; then | |
4387 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4388 | else | |
4389 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4390 | fi | |
4391 | ||
4392 | else | |
4393 | ||
4394 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4395 | if test "x$LINE" != x ; then | |
4396 | eval "DEFAULT_$LINE" | |
4397 | else | |
4398 | no_cache=1 | |
4399 | fi | |
4400 | ||
4401 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4402 | ||
4403 | fi | |
4404 | ||
4405 | ||
4406 | eval "$ac_cv_use_loggui" | |
4407 | if test "$no_cache" != 1; then | |
4408 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4409 | fi | |
4410 | ||
4411 | if test "$wxUSE_LOGGUI" = yes; then | |
4412 | echo "$ac_t""yes" 1>&6 | |
4413 | else | |
4414 | echo "$ac_t""no" 1>&6 | |
4415 | fi | |
4416 | ||
4417 | ||
4418 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
24fd6d87 | 4419 | echo "configure:4420: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
4420 | no_cache=0 |
4421 | # Check whether --enable-logwin or --disable-logwin was given. | |
4422 | if test "${enable_logwin+set}" = set; then | |
4423 | enableval="$enable_logwin" | |
4424 | ||
4425 | if test "$enableval" = yes; then | |
4426 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4427 | else | |
4428 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4429 | fi | |
4430 | ||
4431 | else | |
4432 | ||
4433 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4434 | if test "x$LINE" != x ; then | |
4435 | eval "DEFAULT_$LINE" | |
4436 | else | |
4437 | no_cache=1 | |
4438 | fi | |
4439 | ||
4440 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4441 | ||
4442 | fi | |
4443 | ||
4444 | ||
4445 | eval "$ac_cv_use_logwin" | |
4446 | if test "$no_cache" != 1; then | |
4447 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4448 | fi | |
4449 | ||
4450 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4451 | echo "$ac_t""yes" 1>&6 | |
4452 | else | |
4453 | echo "$ac_t""no" 1>&6 | |
4454 | fi | |
4455 | ||
4456 | ||
10f2d63a | 4457 | |
698dcdb6 | 4458 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
24fd6d87 | 4459 | echo "configure:4460: checking for --enable-postscript" >&5 |
10f2d63a VZ |
4460 | no_cache=0 |
4461 | # Check whether --enable-postscript or --disable-postscript was given. | |
4462 | if test "${enable_postscript+set}" = set; then | |
4463 | enableval="$enable_postscript" | |
698dcdb6 | 4464 | |
10f2d63a VZ |
4465 | if test "$enableval" = yes; then |
4466 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4467 | else | |
4468 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4469 | fi | |
698dcdb6 | 4470 | |
10f2d63a | 4471 | else |
698dcdb6 | 4472 | |
10f2d63a VZ |
4473 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
4474 | if test "x$LINE" != x ; then | |
4475 | eval "DEFAULT_$LINE" | |
4476 | else | |
4477 | no_cache=1 | |
4478 | fi | |
4479 | ||
4480 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
4481 | |
4482 | fi | |
10f2d63a VZ |
4483 | |
4484 | ||
4485 | eval "$ac_cv_use_postscript" | |
4486 | if test "$no_cache" != 1; then | |
4487 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4488 | fi | |
4489 | ||
4490 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 4491 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4492 | else |
698dcdb6 | 4493 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4494 | fi |
698dcdb6 VZ |
4495 | |
4496 | ||
4497 | ||
10f2d63a | 4498 | |
1e6feb95 | 4499 | |
698dcdb6 | 4500 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
24fd6d87 | 4501 | echo "configure:4502: checking for --enable-prologio" >&5 |
10f2d63a VZ |
4502 | no_cache=0 |
4503 | # Check whether --enable-prologio or --disable-prologio was given. | |
4504 | if test "${enable_prologio+set}" = set; then | |
4505 | enableval="$enable_prologio" | |
698dcdb6 | 4506 | |
10f2d63a VZ |
4507 | if test "$enableval" = yes; then |
4508 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4509 | else | |
4510 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4511 | fi | |
698dcdb6 | 4512 | |
10f2d63a | 4513 | else |
698dcdb6 | 4514 | |
10f2d63a VZ |
4515 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
4516 | if test "x$LINE" != x ; then | |
4517 | eval "DEFAULT_$LINE" | |
4518 | else | |
4519 | no_cache=1 | |
4520 | fi | |
4521 | ||
4522 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
4523 | |
4524 | fi | |
10f2d63a VZ |
4525 | |
4526 | ||
4527 | eval "$ac_cv_use_prologio" | |
4528 | if test "$no_cache" != 1; then | |
4529 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4530 | fi | |
4531 | ||
4532 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 4533 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4534 | else |
698dcdb6 | 4535 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4536 | fi |
698dcdb6 | 4537 | |
10f2d63a | 4538 | |
698dcdb6 | 4539 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
24fd6d87 | 4540 | echo "configure:4541: checking for --enable-resources" >&5 |
10f2d63a VZ |
4541 | no_cache=0 |
4542 | # Check whether --enable-resources or --disable-resources was given. | |
4543 | if test "${enable_resources+set}" = set; then | |
4544 | enableval="$enable_resources" | |
698dcdb6 | 4545 | |
10f2d63a VZ |
4546 | if test "$enableval" = yes; then |
4547 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4548 | else | |
4549 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4550 | fi | |
698dcdb6 | 4551 | |
10f2d63a | 4552 | else |
698dcdb6 | 4553 | |
10f2d63a VZ |
4554 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
4555 | if test "x$LINE" != x ; then | |
4556 | eval "DEFAULT_$LINE" | |
4557 | else | |
4558 | no_cache=1 | |
4559 | fi | |
4560 | ||
4561 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
4562 | |
4563 | fi | |
10f2d63a VZ |
4564 | |
4565 | ||
4566 | eval "$ac_cv_use_resources" | |
4567 | if test "$no_cache" != 1; then | |
4568 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4569 | fi | |
4570 | ||
4571 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4572 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4573 | else |
698dcdb6 | 4574 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4575 | fi |
698dcdb6 | 4576 | |
10f2d63a | 4577 | |
698dcdb6 VZ |
4578 | |
4579 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
24fd6d87 | 4580 | echo "configure:4581: checking for --enable-xresources" >&5 |
10f2d63a VZ |
4581 | no_cache=0 |
4582 | # Check whether --enable-xresources or --disable-xresources was given. | |
4583 | if test "${enable_xresources+set}" = set; then | |
4584 | enableval="$enable_xresources" | |
698dcdb6 | 4585 | |
10f2d63a VZ |
4586 | if test "$enableval" = yes; then |
4587 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4588 | else | |
4589 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4590 | fi | |
698dcdb6 | 4591 | |
10f2d63a | 4592 | else |
698dcdb6 | 4593 | |
10f2d63a VZ |
4594 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4595 | if test "x$LINE" != x ; then | |
4596 | eval "DEFAULT_$LINE" | |
4597 | else | |
4598 | no_cache=1 | |
4599 | fi | |
4600 | ||
4601 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4602 | |
4603 | fi | |
10f2d63a VZ |
4604 | |
4605 | ||
4606 | eval "$ac_cv_use_xresources" | |
4607 | if test "$no_cache" != 1; then | |
4608 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4609 | fi | |
4610 | ||
4611 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4612 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4613 | else |
698dcdb6 | 4614 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4615 | fi |
698dcdb6 VZ |
4616 | |
4617 | ||
10f2d63a | 4618 | |
698dcdb6 VZ |
4619 | |
4620 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
24fd6d87 | 4621 | echo "configure:4622: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
4622 | no_cache=0 |
4623 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4624 | if test "${enable_clipboard+set}" = set; then | |
4625 | enableval="$enable_clipboard" | |
698dcdb6 | 4626 | |
10f2d63a VZ |
4627 | if test "$enableval" = yes; then |
4628 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4629 | else | |
4630 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4631 | fi | |
698dcdb6 | 4632 | |
10f2d63a | 4633 | else |
698dcdb6 | 4634 | |
10f2d63a VZ |
4635 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4636 | if test "x$LINE" != x ; then | |
4637 | eval "DEFAULT_$LINE" | |
4638 | else | |
4639 | no_cache=1 | |
4640 | fi | |
4641 | ||
4642 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4643 | |
4644 | fi | |
10f2d63a VZ |
4645 | |
4646 | ||
4647 | eval "$ac_cv_use_clipboard" | |
4648 | if test "$no_cache" != 1; then | |
4649 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4650 | fi | |
4651 | ||
4652 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4653 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4654 | else |
698dcdb6 | 4655 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4656 | fi |
698dcdb6 | 4657 | |
10f2d63a | 4658 | |
698dcdb6 | 4659 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
24fd6d87 | 4660 | echo "configure:4661: checking for --enable-dnd" >&5 |
10f2d63a VZ |
4661 | no_cache=0 |
4662 | # Check whether --enable-dnd or --disable-dnd was given. | |
4663 | if test "${enable_dnd+set}" = set; then | |
4664 | enableval="$enable_dnd" | |
698dcdb6 | 4665 | |
10f2d63a VZ |
4666 | if test "$enableval" = yes; then |
4667 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4668 | else | |
4669 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4670 | fi | |
698dcdb6 | 4671 | |
10f2d63a | 4672 | else |
698dcdb6 | 4673 | |
10f2d63a VZ |
4674 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4675 | if test "x$LINE" != x ; then | |
4676 | eval "DEFAULT_$LINE" | |
4677 | else | |
4678 | no_cache=1 | |
4679 | fi | |
4680 | ||
4681 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4682 | |
4683 | fi | |
10f2d63a VZ |
4684 | |
4685 | ||
4686 | eval "$ac_cv_use_dnd" | |
4687 | if test "$no_cache" != 1; then | |
4688 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4689 | fi | |
4690 | ||
4691 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4692 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4693 | else |
698dcdb6 | 4694 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4695 | fi |
698dcdb6 | 4696 | |
10f2d63a | 4697 | |
698dcdb6 | 4698 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
24fd6d87 | 4699 | echo "configure:4700: checking for --enable-metafile" >&5 |
b64f0a5f RL |
4700 | no_cache=0 |
4701 | # Check whether --enable-metafile or --disable-metafile was given. | |
4702 | if test "${enable_metafile+set}" = set; then | |
4703 | enableval="$enable_metafile" | |
698dcdb6 | 4704 | |
b64f0a5f RL |
4705 | if test "$enableval" = yes; then |
4706 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4707 | else | |
4708 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4709 | fi | |
698dcdb6 | 4710 | |
b64f0a5f | 4711 | else |
698dcdb6 | 4712 | |
b64f0a5f RL |
4713 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4714 | if test "x$LINE" != x ; then | |
4715 | eval "DEFAULT_$LINE" | |
4716 | else | |
4717 | no_cache=1 | |
4718 | fi | |
4719 | ||
4720 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4721 | |
4722 | fi | |
b64f0a5f RL |
4723 | |
4724 | ||
4725 | eval "$ac_cv_use_metafile" | |
4726 | if test "$no_cache" != 1; then | |
4727 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4728 | fi | |
4729 | ||
4730 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4731 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4732 | else |
698dcdb6 | 4733 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 4734 | fi |
698dcdb6 VZ |
4735 | |
4736 | ||
10f2d63a | 4737 | |
698dcdb6 | 4738 | echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6 |
24fd6d87 | 4739 | echo "configure:4740: checking for --enable-wxtree" >&5 |
10f2d63a VZ |
4740 | no_cache=0 |
4741 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
4742 | if test "${enable_wxtree+set}" = set; then | |
4743 | enableval="$enable_wxtree" | |
698dcdb6 | 4744 | |
10f2d63a VZ |
4745 | if test "$enableval" = yes; then |
4746 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
4747 | else | |
4748 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
4749 | fi | |
698dcdb6 | 4750 | |
10f2d63a | 4751 | else |
698dcdb6 | 4752 | |
10f2d63a VZ |
4753 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` |
4754 | if test "x$LINE" != x ; then | |
4755 | eval "DEFAULT_$LINE" | |
4756 | else | |
4757 | no_cache=1 | |
4758 | fi | |
4759 | ||
4760 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
698dcdb6 VZ |
4761 | |
4762 | fi | |
10f2d63a VZ |
4763 | |
4764 | ||
4765 | eval "$ac_cv_use_wxtree" | |
4766 | if test "$no_cache" != 1; then | |
4767 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
4768 | fi | |
4769 | ||
4770 | if test "$wxUSE_WXTREE" = yes; then | |
698dcdb6 | 4771 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4772 | else |
698dcdb6 | 4773 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4774 | fi |
698dcdb6 | 4775 | |
10f2d63a | 4776 | |
698dcdb6 VZ |
4777 | |
4778 | ||
4779 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
24fd6d87 | 4780 | echo "configure:4781: checking for --enable-controls" >&5 |
10f2d63a VZ |
4781 | no_cache=0 |
4782 | # Check whether --enable-controls or --disable-controls was given. | |
4783 | if test "${enable_controls+set}" = set; then | |
4784 | enableval="$enable_controls" | |
698dcdb6 | 4785 | |
10f2d63a VZ |
4786 | if test "$enableval" = yes; then |
4787 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4788 | else | |
4789 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4790 | fi | |
698dcdb6 | 4791 | |
10f2d63a | 4792 | else |
698dcdb6 | 4793 | |
10f2d63a VZ |
4794 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
4795 | if test "x$LINE" != x ; then | |
4796 | eval "DEFAULT_$LINE" | |
4797 | else | |
4798 | no_cache=1 | |
4799 | fi | |
4800 | ||
4801 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
4802 | |
4803 | fi | |
10f2d63a VZ |
4804 | |
4805 | ||
4806 | eval "$ac_cv_use_controls" | |
4807 | if test "$no_cache" != 1; then | |
4808 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
4809 | fi | |
4810 | ||
4811 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 4812 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4813 | else |
698dcdb6 | 4814 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4815 | fi |
698dcdb6 | 4816 | |
10f2d63a VZ |
4817 | |
4818 | if test "$wxUSE_CONTROLS" = "yes"; then | |
4819 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
4820 | DEFAULT_wxUSE_BMPBUTTON=yes |
4821 | DEFAULT_wxUSE_BUTTON=yes | |
4822 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4823 | DEFAULT_wxUSE_CARET=yes |
4824 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
4825 | DEFAULT_wxUSE_CHECKBOX=yes |
4826 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4827 | DEFAULT_wxUSE_CHOICE=yes | |
4828 | DEFAULT_wxUSE_GAUGE=yes | |
4829 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 4830 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
4831 | DEFAULT_wxUSE_IMAGLIST=yes |
4832 | DEFAULT_wxUSE_LISTBOX=yes | |
4833 | DEFAULT_wxUSE_LISTCTRL=yes | |
4834 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4835 | DEFAULT_wxUSE_RADIOBOX=yes | |
4836 | DEFAULT_wxUSE_RADIOBTN=yes | |
4837 | DEFAULT_wxUSE_SASH=yes | |
4838 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4839 | DEFAULT_wxUSE_SLIDER=yes | |
4840 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 4841 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
4842 | DEFAULT_wxUSE_SPLITTER=yes |
4843 | DEFAULT_wxUSE_STATBMP=yes | |
4844 | DEFAULT_wxUSE_STATBOX=yes | |
4845 | DEFAULT_wxUSE_STATLINE=yes | |
4846 | DEFAULT_wxUSE_STATUSBAR=yes | |
4847 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 4848 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 4849 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
4850 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
4851 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
4852 | DEFAULT_wxUSE_TOOLTIPS=yes |
4853 | DEFAULT_wxUSE_TREECTRL=yes | |
4854 | elif test "$wxUSE_CONTROLS" = "no"; then | |
4855 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
4856 | DEFAULT_wxUSE_BMPBUTTON=no |
4857 | DEFAULT_wxUSE_BUTTON=no | |
4858 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
4859 | DEFAULT_wxUSE_CARET=no |
4860 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
4861 | DEFAULT_wxUSE_CHECKBOX=no |
4862 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
4863 | DEFAULT_wxUSE_CHOICE=no | |
4864 | DEFAULT_wxUSE_GAUGE=no | |
4865 | DEFAULT_wxUSE_GRID=no | |
4866 | DEFAULT_wxUSE_NEW_GRID=no | |
4867 | DEFAULT_wxUSE_IMAGLIST=no | |
4868 | DEFAULT_wxUSE_LISTBOX=no | |
4869 | DEFAULT_wxUSE_LISTCTRL=no | |
4870 | DEFAULT_wxUSE_NOTEBOOK=no | |
4871 | DEFAULT_wxUSE_RADIOBOX=no | |
4872 | DEFAULT_wxUSE_RADIOBTN=no | |
4873 | DEFAULT_wxUSE_SASH=no | |
4874 | DEFAULT_wxUSE_SCROLLBAR=no | |
4875 | DEFAULT_wxUSE_SLIDER=no | |
4876 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 4877 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
4878 | DEFAULT_wxUSE_SPLITTER=no |
4879 | DEFAULT_wxUSE_STATBMP=no | |
4880 | DEFAULT_wxUSE_STATBOX=no | |
4881 | DEFAULT_wxUSE_STATLINE=no | |
4882 | DEFAULT_wxUSE_STATUSBAR=no | |
4883 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 4884 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 4885 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
4886 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
4887 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
4888 | DEFAULT_wxUSE_TOOLTIPS=no |
4889 | DEFAULT_wxUSE_TREECTRL=no | |
4890 | fi | |
4891 | ||
698dcdb6 VZ |
4892 | |
4893 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
24fd6d87 | 4894 | echo "configure:4895: checking for --enable-accel" >&5 |
10f2d63a VZ |
4895 | no_cache=0 |
4896 | # Check whether --enable-accel or --disable-accel was given. | |
4897 | if test "${enable_accel+set}" = set; then | |
4898 | enableval="$enable_accel" | |
698dcdb6 | 4899 | |
10f2d63a VZ |
4900 | if test "$enableval" = yes; then |
4901 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
4902 | else | |
4903 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
4904 | fi | |
698dcdb6 | 4905 | |
10f2d63a | 4906 | else |
698dcdb6 | 4907 | |
10f2d63a VZ |
4908 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
4909 | if test "x$LINE" != x ; then | |
4910 | eval "DEFAULT_$LINE" | |
4911 | else | |
4912 | no_cache=1 | |
4913 | fi | |
4914 | ||
4915 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
4916 | |
4917 | fi | |
10f2d63a VZ |
4918 | |
4919 | ||
4920 | eval "$ac_cv_use_accel" | |
4921 | if test "$no_cache" != 1; then | |
4922 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
4923 | fi | |
4924 | ||
4925 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 4926 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4927 | else |
698dcdb6 | 4928 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4929 | fi |
698dcdb6 | 4930 | |
10f2d63a | 4931 | |
1e6feb95 | 4932 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
24fd6d87 | 4933 | echo "configure:4934: checking for --enable-button" >&5 |
10f2d63a | 4934 | no_cache=0 |
1e6feb95 VZ |
4935 | # Check whether --enable-button or --disable-button was given. |
4936 | if test "${enable_button+set}" = set; then | |
4937 | enableval="$enable_button" | |
698dcdb6 | 4938 | |
10f2d63a | 4939 | if test "$enableval" = yes; then |
1e6feb95 | 4940 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 4941 | else |
1e6feb95 | 4942 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 4943 | fi |
698dcdb6 | 4944 | |
10f2d63a | 4945 | else |
698dcdb6 | 4946 | |
1e6feb95 | 4947 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
4948 | if test "x$LINE" != x ; then |
4949 | eval "DEFAULT_$LINE" | |
4950 | else | |
4951 | no_cache=1 | |
4952 | fi | |
4953 | ||
1e6feb95 | 4954 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
698dcdb6 VZ |
4955 | |
4956 | fi | |
10f2d63a VZ |
4957 | |
4958 | ||
1e6feb95 | 4959 | eval "$ac_cv_use_button" |
10f2d63a | 4960 | if test "$no_cache" != 1; then |
1e6feb95 | 4961 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4962 | fi |
4963 | ||
1e6feb95 | 4964 | if test "$wxUSE_BUTTON" = yes; then |
698dcdb6 | 4965 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4966 | else |
698dcdb6 | 4967 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4968 | fi |
698dcdb6 | 4969 | |
10f2d63a | 4970 | |
698dcdb6 | 4971 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
24fd6d87 | 4972 | echo "configure:4973: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
4973 | no_cache=0 |
4974 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4975 | if test "${enable_bmpbutton+set}" = set; then | |
4976 | enableval="$enable_bmpbutton" | |
698dcdb6 | 4977 | |
10f2d63a VZ |
4978 | if test "$enableval" = yes; then |
4979 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4980 | else | |
4981 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4982 | fi | |
698dcdb6 | 4983 | |
10f2d63a | 4984 | else |
698dcdb6 | 4985 | |
10f2d63a VZ |
4986 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
4987 | if test "x$LINE" != x ; then | |
4988 | eval "DEFAULT_$LINE" | |
4989 | else | |
4990 | no_cache=1 | |
4991 | fi | |
4992 | ||
4993 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
4994 | |
4995 | fi | |
10f2d63a VZ |
4996 | |
4997 | ||
4998 | eval "$ac_cv_use_bmpbutton" | |
4999 | if test "$no_cache" != 1; then | |
5000 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5001 | fi | |
5002 | ||
5003 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 5004 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5005 | else |
698dcdb6 | 5006 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5007 | fi |
698dcdb6 | 5008 | |
10f2d63a | 5009 | |
1e6feb95 | 5010 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
24fd6d87 | 5011 | echo "configure:5012: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5012 | no_cache=0 |
5013 | # Check whether --enable-calendar or --disable-calendar was given. | |
5014 | if test "${enable_calendar+set}" = set; then | |
5015 | enableval="$enable_calendar" | |
5016 | ||
5017 | if test "$enableval" = yes; then | |
5018 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5019 | else | |
5020 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5021 | fi | |
5022 | ||
5023 | else | |
5024 | ||
5025 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5026 | if test "x$LINE" != x ; then | |
5027 | eval "DEFAULT_$LINE" | |
5028 | else | |
5029 | no_cache=1 | |
5030 | fi | |
5031 | ||
5032 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5033 | ||
5034 | fi | |
5035 | ||
5036 | ||
5037 | eval "$ac_cv_use_calendar" | |
5038 | if test "$no_cache" != 1; then | |
5039 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5040 | fi | |
5041 | ||
5042 | if test "$wxUSE_CALCTRL" = yes; then | |
5043 | echo "$ac_t""yes" 1>&6 | |
5044 | else | |
5045 | echo "$ac_t""no" 1>&6 | |
5046 | fi | |
5047 | ||
5048 | ||
5049 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
24fd6d87 | 5050 | echo "configure:5051: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5051 | no_cache=0 |
5052 | # Check whether --enable-caret or --disable-caret was given. | |
5053 | if test "${enable_caret+set}" = set; then | |
5054 | enableval="$enable_caret" | |
5055 | ||
5056 | if test "$enableval" = yes; then | |
5057 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5058 | else | |
5059 | ac_cv_use_caret='wxUSE_CARET=no' | |
5060 | fi | |
5061 | ||
5062 | else | |
5063 | ||
5064 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5065 | if test "x$LINE" != x ; then | |
5066 | eval "DEFAULT_$LINE" | |
5067 | else | |
5068 | no_cache=1 | |
5069 | fi | |
5070 | ||
5071 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5072 | ||
5073 | fi | |
5074 | ||
5075 | ||
5076 | eval "$ac_cv_use_caret" | |
5077 | if test "$no_cache" != 1; then | |
5078 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5079 | fi | |
5080 | ||
5081 | if test "$wxUSE_CARET" = yes; then | |
5082 | echo "$ac_t""yes" 1>&6 | |
5083 | else | |
5084 | echo "$ac_t""no" 1>&6 | |
5085 | fi | |
5086 | ||
5087 | ||
698dcdb6 | 5088 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
24fd6d87 | 5089 | echo "configure:5090: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5090 | no_cache=0 |
5091 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5092 | if test "${enable_checkbox+set}" = set; then | |
5093 | enableval="$enable_checkbox" | |
698dcdb6 | 5094 | |
10f2d63a VZ |
5095 | if test "$enableval" = yes; then |
5096 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5097 | else | |
5098 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5099 | fi | |
698dcdb6 | 5100 | |
10f2d63a | 5101 | else |
698dcdb6 | 5102 | |
10f2d63a VZ |
5103 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5104 | if test "x$LINE" != x ; then | |
5105 | eval "DEFAULT_$LINE" | |
5106 | else | |
5107 | no_cache=1 | |
5108 | fi | |
5109 | ||
5110 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
5111 | |
5112 | fi | |
10f2d63a VZ |
5113 | |
5114 | ||
5115 | eval "$ac_cv_use_checkbox" | |
5116 | if test "$no_cache" != 1; then | |
5117 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5118 | fi | |
5119 | ||
5120 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 5121 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5122 | else |
698dcdb6 | 5123 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5124 | fi |
698dcdb6 | 5125 | |
10f2d63a | 5126 | |
698dcdb6 | 5127 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
24fd6d87 | 5128 | echo "configure:5129: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5129 | no_cache=0 |
5130 | # Check whether --enable-checklst or --disable-checklst was given. | |
5131 | if test "${enable_checklst+set}" = set; then | |
5132 | enableval="$enable_checklst" | |
698dcdb6 | 5133 | |
10f2d63a VZ |
5134 | if test "$enableval" = yes; then |
5135 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5136 | else | |
5137 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5138 | fi | |
698dcdb6 | 5139 | |
10f2d63a | 5140 | else |
698dcdb6 | 5141 | |
10f2d63a VZ |
5142 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5143 | if test "x$LINE" != x ; then | |
5144 | eval "DEFAULT_$LINE" | |
5145 | else | |
5146 | no_cache=1 | |
5147 | fi | |
5148 | ||
5149 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
5150 | |
5151 | fi | |
10f2d63a VZ |
5152 | |
5153 | ||
5154 | eval "$ac_cv_use_checklst" | |
5155 | if test "$no_cache" != 1; then | |
5156 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5157 | fi | |
5158 | ||
5159 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 5160 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5161 | else |
698dcdb6 | 5162 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5163 | fi |
698dcdb6 | 5164 | |
10f2d63a | 5165 | |
698dcdb6 | 5166 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
24fd6d87 | 5167 | echo "configure:5168: checking for --enable-choice" >&5 |
10f2d63a VZ |
5168 | no_cache=0 |
5169 | # Check whether --enable-choice or --disable-choice was given. | |
5170 | if test "${enable_choice+set}" = set; then | |
5171 | enableval="$enable_choice" | |
698dcdb6 | 5172 | |
10f2d63a VZ |
5173 | if test "$enableval" = yes; then |
5174 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5175 | else | |
5176 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5177 | fi | |
698dcdb6 | 5178 | |
10f2d63a | 5179 | else |
698dcdb6 | 5180 | |
10f2d63a VZ |
5181 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5182 | if test "x$LINE" != x ; then | |
5183 | eval "DEFAULT_$LINE" | |
5184 | else | |
5185 | no_cache=1 | |
5186 | fi | |
5187 | ||
5188 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
5189 | |
5190 | fi | |
10f2d63a VZ |
5191 | |
5192 | ||
5193 | eval "$ac_cv_use_choice" | |
5194 | if test "$no_cache" != 1; then | |
5195 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5196 | fi | |
5197 | ||
5198 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 5199 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5200 | else |
698dcdb6 | 5201 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5202 | fi |
698dcdb6 | 5203 | |
10f2d63a | 5204 | |
698dcdb6 | 5205 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
24fd6d87 | 5206 | echo "configure:5207: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5207 | no_cache=0 |
5208 | # Check whether --enable-combobox or --disable-combobox was given. | |
5209 | if test "${enable_combobox+set}" = set; then | |
5210 | enableval="$enable_combobox" | |
698dcdb6 | 5211 | |
10f2d63a VZ |
5212 | if test "$enableval" = yes; then |
5213 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5214 | else | |
5215 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5216 | fi | |
698dcdb6 | 5217 | |
10f2d63a | 5218 | else |
698dcdb6 | 5219 | |
10f2d63a VZ |
5220 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
5221 | if test "x$LINE" != x ; then | |
5222 | eval "DEFAULT_$LINE" | |
5223 | else | |
5224 | no_cache=1 | |
5225 | fi | |
5226 | ||
5227 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
5228 | |
5229 | fi | |
10f2d63a VZ |
5230 | |
5231 | ||
5232 | eval "$ac_cv_use_combobox" | |
5233 | if test "$no_cache" != 1; then | |
5234 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5235 | fi | |
5236 | ||
5237 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 5238 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5239 | else |
698dcdb6 | 5240 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5241 | fi |
698dcdb6 | 5242 | |
10f2d63a | 5243 | |
698dcdb6 | 5244 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
24fd6d87 | 5245 | echo "configure:5246: checking for --enable-gauge" >&5 |
10f2d63a VZ |
5246 | no_cache=0 |
5247 | # Check whether --enable-gauge or --disable-gauge was given. | |
5248 | if test "${enable_gauge+set}" = set; then | |
5249 | enableval="$enable_gauge" | |
698dcdb6 | 5250 | |
10f2d63a VZ |
5251 | if test "$enableval" = yes; then |
5252 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5253 | else | |
5254 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5255 | fi | |
698dcdb6 | 5256 | |
10f2d63a | 5257 | else |
698dcdb6 | 5258 | |
10f2d63a VZ |
5259 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
5260 | if test "x$LINE" != x ; then | |
5261 | eval "DEFAULT_$LINE" | |
5262 | else | |
5263 | no_cache=1 | |
5264 | fi | |
5265 | ||
5266 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
5267 | |
5268 | fi | |
10f2d63a VZ |
5269 | |
5270 | ||
5271 | eval "$ac_cv_use_gauge" | |
5272 | if test "$no_cache" != 1; then | |
5273 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5274 | fi | |
5275 | ||
5276 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 5277 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5278 | else |
698dcdb6 | 5279 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5280 | fi |
698dcdb6 | 5281 | |
10f2d63a | 5282 | |
698dcdb6 | 5283 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
24fd6d87 | 5284 | echo "configure:5285: checking for --enable-grid" >&5 |
10f2d63a VZ |
5285 | no_cache=0 |
5286 | # Check whether --enable-grid or --disable-grid was given. | |
5287 | if test "${enable_grid+set}" = set; then | |
5288 | enableval="$enable_grid" | |
698dcdb6 | 5289 | |
10f2d63a VZ |
5290 | if test "$enableval" = yes; then |
5291 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5292 | else | |
5293 | ac_cv_use_grid='wxUSE_GRID=no' | |
5294 | fi | |
698dcdb6 | 5295 | |
10f2d63a | 5296 | else |
698dcdb6 | 5297 | |
10f2d63a VZ |
5298 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
5299 | if test "x$LINE" != x ; then | |
5300 | eval "DEFAULT_$LINE" | |
5301 | else | |
5302 | no_cache=1 | |
5303 | fi | |
5304 | ||
5305 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
5306 | |
5307 | fi | |
10f2d63a VZ |
5308 | |
5309 | ||
5310 | eval "$ac_cv_use_grid" | |
5311 | if test "$no_cache" != 1; then | |
5312 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5313 | fi | |
5314 | ||
5315 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 5316 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5317 | else |
698dcdb6 | 5318 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5319 | fi |
698dcdb6 | 5320 | |
10f2d63a | 5321 | |
698dcdb6 | 5322 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
24fd6d87 | 5323 | echo "configure:5324: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
5324 | no_cache=0 |
5325 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5326 | if test "${enable_newgrid+set}" = set; then | |
5327 | enableval="$enable_newgrid" | |
698dcdb6 | 5328 | |
10f2d63a VZ |
5329 | if test "$enableval" = yes; then |
5330 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5331 | else | |
5332 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5333 | fi | |
698dcdb6 | 5334 | |
10f2d63a | 5335 | else |
698dcdb6 | 5336 | |
10f2d63a VZ |
5337 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
5338 | if test "x$LINE" != x ; then | |
5339 | eval "DEFAULT_$LINE" | |
5340 | else | |
5341 | no_cache=1 | |
5342 | fi | |
5343 | ||
5344 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
5345 | |
5346 | fi | |
10f2d63a VZ |
5347 | |
5348 | ||
5349 | eval "$ac_cv_use_newgrid" | |
5350 | if test "$no_cache" != 1; then | |
5351 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5352 | fi | |
5353 | ||
5354 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 5355 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5356 | else |
698dcdb6 | 5357 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5358 | fi |
698dcdb6 | 5359 | |
10f2d63a | 5360 | |
698dcdb6 | 5361 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
24fd6d87 | 5362 | echo "configure:5363: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
5363 | no_cache=0 |
5364 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5365 | if test "${enable_imaglist+set}" = set; then | |
5366 | enableval="$enable_imaglist" | |
698dcdb6 | 5367 | |
10f2d63a VZ |
5368 | if test "$enableval" = yes; then |
5369 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5370 | else | |
5371 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5372 | fi | |
698dcdb6 | 5373 | |
10f2d63a | 5374 | else |
698dcdb6 | 5375 | |
10f2d63a VZ |
5376 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
5377 | if test "x$LINE" != x ; then | |
5378 | eval "DEFAULT_$LINE" | |
5379 | else | |
5380 | no_cache=1 | |
5381 | fi | |
5382 | ||
5383 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
5384 | |
5385 | fi | |
10f2d63a VZ |
5386 | |
5387 | ||
5388 | eval "$ac_cv_use_imaglist" | |
5389 | if test "$no_cache" != 1; then | |
5390 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5391 | fi | |
5392 | ||
5393 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 5394 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5395 | else |
698dcdb6 | 5396 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5397 | fi |
698dcdb6 | 5398 | |
10f2d63a | 5399 | |
698dcdb6 | 5400 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
24fd6d87 | 5401 | echo "configure:5402: checking for --enable-listbox" >&5 |
10f2d63a VZ |
5402 | no_cache=0 |
5403 | # Check whether --enable-listbox or --disable-listbox was given. | |
5404 | if test "${enable_listbox+set}" = set; then | |
5405 | enableval="$enable_listbox" | |
698dcdb6 | 5406 | |
10f2d63a VZ |
5407 | if test "$enableval" = yes; then |
5408 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5409 | else | |
5410 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5411 | fi | |
698dcdb6 | 5412 | |
10f2d63a | 5413 | else |
698dcdb6 | 5414 | |
10f2d63a VZ |
5415 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
5416 | if test "x$LINE" != x ; then | |
5417 | eval "DEFAULT_$LINE" | |
5418 | else | |
5419 | no_cache=1 | |
5420 | fi | |
5421 | ||
5422 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
5423 | |
5424 | fi | |
10f2d63a VZ |
5425 | |
5426 | ||
5427 | eval "$ac_cv_use_listbox" | |
5428 | if test "$no_cache" != 1; then | |
5429 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5430 | fi | |
5431 | ||
5432 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 5433 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5434 | else |
698dcdb6 | 5435 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5436 | fi |
698dcdb6 | 5437 | |
10f2d63a | 5438 | |
698dcdb6 | 5439 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
24fd6d87 | 5440 | echo "configure:5441: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
5441 | no_cache=0 |
5442 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5443 | if test "${enable_listctrl+set}" = set; then | |
5444 | enableval="$enable_listctrl" | |
698dcdb6 | 5445 | |
10f2d63a VZ |
5446 | if test "$enableval" = yes; then |
5447 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5448 | else | |
5449 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5450 | fi | |
698dcdb6 | 5451 | |
10f2d63a | 5452 | else |
698dcdb6 | 5453 | |
10f2d63a VZ |
5454 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
5455 | if test "x$LINE" != x ; then | |
5456 | eval "DEFAULT_$LINE" | |
5457 | else | |
5458 | no_cache=1 | |
5459 | fi | |
5460 | ||
5461 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
5462 | |
5463 | fi | |
10f2d63a VZ |
5464 | |
5465 | ||
5466 | eval "$ac_cv_use_listctrl" | |
5467 | if test "$no_cache" != 1; then | |
5468 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5469 | fi | |
5470 | ||
5471 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 5472 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5473 | else |
698dcdb6 | 5474 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5475 | fi |
698dcdb6 | 5476 | |
10f2d63a | 5477 | |
698dcdb6 | 5478 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
24fd6d87 | 5479 | echo "configure:5480: checking for --enable-notebook" >&5 |
10f2d63a VZ |
5480 | no_cache=0 |
5481 | # Check whether --enable-notebook or --disable-notebook was given. | |
5482 | if test "${enable_notebook+set}" = set; then | |
5483 | enableval="$enable_notebook" | |
698dcdb6 | 5484 | |
10f2d63a VZ |
5485 | if test "$enableval" = yes; then |
5486 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5487 | else | |
5488 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5489 | fi | |
698dcdb6 | 5490 | |
10f2d63a | 5491 | else |
698dcdb6 | 5492 | |
10f2d63a VZ |
5493 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
5494 | if test "x$LINE" != x ; then | |
5495 | eval "DEFAULT_$LINE" | |
5496 | else | |
5497 | no_cache=1 | |
5498 | fi | |
5499 | ||
5500 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
5501 | |
5502 | fi | |
10f2d63a VZ |
5503 | |
5504 | ||
5505 | eval "$ac_cv_use_notebook" | |
5506 | if test "$no_cache" != 1; then | |
5507 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5508 | fi | |
5509 | ||
5510 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 5511 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5512 | else |
698dcdb6 | 5513 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5514 | fi |
698dcdb6 | 5515 | |
10f2d63a | 5516 | |
698dcdb6 | 5517 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
24fd6d87 | 5518 | echo "configure:5519: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
5519 | no_cache=0 |
5520 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5521 | if test "${enable_radiobox+set}" = set; then | |
5522 | enableval="$enable_radiobox" | |
698dcdb6 | 5523 | |
10f2d63a VZ |
5524 | if test "$enableval" = yes; then |
5525 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5526 | else | |
5527 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5528 | fi | |
698dcdb6 | 5529 | |
10f2d63a | 5530 | else |
698dcdb6 | 5531 | |
10f2d63a VZ |
5532 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
5533 | if test "x$LINE" != x ; then | |
5534 | eval "DEFAULT_$LINE" | |
5535 | else | |
5536 | no_cache=1 | |
5537 | fi | |
5538 | ||
5539 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
5540 | |
5541 | fi | |
10f2d63a VZ |
5542 | |
5543 | ||
5544 | eval "$ac_cv_use_radiobox" | |
5545 | if test "$no_cache" != 1; then | |
5546 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5547 | fi | |
5548 | ||
5549 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 5550 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5551 | else |
698dcdb6 | 5552 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5553 | fi |
698dcdb6 | 5554 | |
10f2d63a | 5555 | |
698dcdb6 | 5556 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
24fd6d87 | 5557 | echo "configure:5558: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
5558 | no_cache=0 |
5559 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5560 | if test "${enable_radiobtn+set}" = set; then | |
5561 | enableval="$enable_radiobtn" | |
698dcdb6 | 5562 | |
10f2d63a VZ |
5563 | if test "$enableval" = yes; then |
5564 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5565 | else | |
5566 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5567 | fi | |
698dcdb6 | 5568 | |
10f2d63a | 5569 | else |
698dcdb6 | 5570 | |
10f2d63a VZ |
5571 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
5572 | if test "x$LINE" != x ; then | |
5573 | eval "DEFAULT_$LINE" | |
5574 | else | |
5575 | no_cache=1 | |
5576 | fi | |
5577 | ||
5578 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
5579 | |
5580 | fi | |
10f2d63a VZ |
5581 | |
5582 | ||
5583 | eval "$ac_cv_use_radiobtn" | |
5584 | if test "$no_cache" != 1; then | |
5585 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5586 | fi | |
5587 | ||
5588 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 5589 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5590 | else |
698dcdb6 | 5591 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5592 | fi |
698dcdb6 | 5593 | |
10f2d63a | 5594 | |
698dcdb6 | 5595 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
24fd6d87 | 5596 | echo "configure:5597: checking for --enable-sash" >&5 |
10f2d63a VZ |
5597 | no_cache=0 |
5598 | # Check whether --enable-sash or --disable-sash was given. | |
5599 | if test "${enable_sash+set}" = set; then | |
5600 | enableval="$enable_sash" | |
698dcdb6 | 5601 | |
10f2d63a VZ |
5602 | if test "$enableval" = yes; then |
5603 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5604 | else | |
5605 | ac_cv_use_sash='wxUSE_SASH=no' | |
5606 | fi | |
698dcdb6 | 5607 | |
10f2d63a | 5608 | else |
698dcdb6 | 5609 | |
10f2d63a VZ |
5610 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
5611 | if test "x$LINE" != x ; then | |
5612 | eval "DEFAULT_$LINE" | |
5613 | else | |
5614 | no_cache=1 | |
5615 | fi | |
5616 | ||
5617 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
5618 | |
5619 | fi | |
10f2d63a VZ |
5620 | |
5621 | ||
5622 | eval "$ac_cv_use_sash" | |
5623 | if test "$no_cache" != 1; then | |
5624 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5625 | fi | |
5626 | ||
5627 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 5628 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5629 | else |
698dcdb6 | 5630 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5631 | fi |
698dcdb6 | 5632 | |
10f2d63a | 5633 | |
698dcdb6 | 5634 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
24fd6d87 | 5635 | echo "configure:5636: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
5636 | no_cache=0 |
5637 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5638 | if test "${enable_scrollbar+set}" = set; then | |
5639 | enableval="$enable_scrollbar" | |
698dcdb6 | 5640 | |
10f2d63a VZ |
5641 | if test "$enableval" = yes; then |
5642 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5643 | else | |
5644 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5645 | fi | |
698dcdb6 | 5646 | |
10f2d63a | 5647 | else |
698dcdb6 | 5648 | |
10f2d63a VZ |
5649 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
5650 | if test "x$LINE" != x ; then | |
5651 | eval "DEFAULT_$LINE" | |
5652 | else | |
5653 | no_cache=1 | |
5654 | fi | |
5655 | ||
5656 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5657 | |
5658 | fi | |
10f2d63a VZ |
5659 | |
5660 | ||
5661 | eval "$ac_cv_use_scrollbar" | |
5662 | if test "$no_cache" != 1; then | |
5663 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5664 | fi | |
5665 | ||
5666 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5667 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5668 | else |
698dcdb6 | 5669 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5670 | fi |
698dcdb6 | 5671 | |
10f2d63a | 5672 | |
698dcdb6 | 5673 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
24fd6d87 | 5674 | echo "configure:5675: checking for --enable-slider" >&5 |
10f2d63a VZ |
5675 | no_cache=0 |
5676 | # Check whether --enable-slider or --disable-slider was given. | |
5677 | if test "${enable_slider+set}" = set; then | |
5678 | enableval="$enable_slider" | |
698dcdb6 | 5679 | |
10f2d63a VZ |
5680 | if test "$enableval" = yes; then |
5681 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5682 | else | |
5683 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5684 | fi | |
698dcdb6 | 5685 | |
10f2d63a | 5686 | else |
698dcdb6 | 5687 | |
10f2d63a VZ |
5688 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5689 | if test "x$LINE" != x ; then | |
5690 | eval "DEFAULT_$LINE" | |
5691 | else | |
5692 | no_cache=1 | |
5693 | fi | |
5694 | ||
5695 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
5696 | |
5697 | fi | |
10f2d63a VZ |
5698 | |
5699 | ||
5700 | eval "$ac_cv_use_slider" | |
5701 | if test "$no_cache" != 1; then | |
5702 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5703 | fi | |
5704 | ||
5705 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 5706 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5707 | else |
698dcdb6 | 5708 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5709 | fi |
698dcdb6 | 5710 | |
10f2d63a | 5711 | |
698dcdb6 | 5712 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
24fd6d87 | 5713 | echo "configure:5714: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
5714 | no_cache=0 |
5715 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5716 | if test "${enable_spinbtn+set}" = set; then | |
5717 | enableval="$enable_spinbtn" | |
698dcdb6 | 5718 | |
10f2d63a VZ |
5719 | if test "$enableval" = yes; then |
5720 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5721 | else | |
5722 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5723 | fi | |
698dcdb6 | 5724 | |
10f2d63a | 5725 | else |
698dcdb6 | 5726 | |
10f2d63a VZ |
5727 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
5728 | if test "x$LINE" != x ; then | |
5729 | eval "DEFAULT_$LINE" | |
5730 | else | |
5731 | no_cache=1 | |
5732 | fi | |
5733 | ||
5734 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
5735 | |
5736 | fi | |
10f2d63a VZ |
5737 | |
5738 | ||
5739 | eval "$ac_cv_use_spinbtn" | |
5740 | if test "$no_cache" != 1; then | |
5741 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5742 | fi | |
5743 | ||
5744 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 5745 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5746 | else |
698dcdb6 | 5747 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5748 | fi |
698dcdb6 | 5749 | |
10f2d63a | 5750 | |
698dcdb6 | 5751 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
24fd6d87 | 5752 | echo "configure:5753: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
5753 | no_cache=0 |
5754 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5755 | if test "${enable_spinctrl+set}" = set; then | |
5756 | enableval="$enable_spinctrl" | |
698dcdb6 | 5757 | |
56cfaa52 RR |
5758 | if test "$enableval" = yes; then |
5759 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5760 | else | |
5761 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
5762 | fi | |
698dcdb6 | 5763 | |
56cfaa52 | 5764 | else |
698dcdb6 | 5765 | |
56cfaa52 RR |
5766 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
5767 | if test "x$LINE" != x ; then | |
5768 | eval "DEFAULT_$LINE" | |
5769 | else | |
5770 | no_cache=1 | |
5771 | fi | |
5772 | ||
5773 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
5774 | |
5775 | fi | |
56cfaa52 RR |
5776 | |
5777 | ||
5778 | eval "$ac_cv_use_spinctrl" | |
5779 | if test "$no_cache" != 1; then | |
5780 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
5781 | fi | |
5782 | ||
5783 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 5784 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 5785 | else |
698dcdb6 | 5786 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 5787 | fi |
698dcdb6 | 5788 | |
56cfaa52 | 5789 | |
698dcdb6 | 5790 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
24fd6d87 | 5791 | echo "configure:5792: checking for --enable-splitter" >&5 |
10f2d63a VZ |
5792 | no_cache=0 |
5793 | # Check whether --enable-splitter or --disable-splitter was given. | |
5794 | if test "${enable_splitter+set}" = set; then | |
5795 | enableval="$enable_splitter" | |
698dcdb6 | 5796 | |
10f2d63a VZ |
5797 | if test "$enableval" = yes; then |
5798 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
5799 | else | |
5800 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
5801 | fi | |
698dcdb6 | 5802 | |
10f2d63a | 5803 | else |
698dcdb6 | 5804 | |
10f2d63a VZ |
5805 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
5806 | if test "x$LINE" != x ; then | |
5807 | eval "DEFAULT_$LINE" | |
5808 | else | |
5809 | no_cache=1 | |
5810 | fi | |
5811 | ||
5812 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
5813 | |
5814 | fi | |
10f2d63a VZ |
5815 | |
5816 | ||
5817 | eval "$ac_cv_use_splitter" | |
5818 | if test "$no_cache" != 1; then | |
5819 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
5820 | fi | |
5821 | ||
5822 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 5823 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5824 | else |
698dcdb6 | 5825 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5826 | fi |
698dcdb6 | 5827 | |
10f2d63a | 5828 | |
698dcdb6 | 5829 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
24fd6d87 | 5830 | echo "configure:5831: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
5831 | no_cache=0 |
5832 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
5833 | if test "${enable_statbmp+set}" = set; then | |
5834 | enableval="$enable_statbmp" | |
698dcdb6 | 5835 | |
10f2d63a VZ |
5836 | if test "$enableval" = yes; then |
5837 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
5838 | else | |
5839 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
5840 | fi | |
698dcdb6 | 5841 | |
10f2d63a | 5842 | else |
698dcdb6 | 5843 | |
10f2d63a VZ |
5844 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
5845 | if test "x$LINE" != x ; then | |
5846 | eval "DEFAULT_$LINE" | |
5847 | else | |
5848 | no_cache=1 | |
5849 | fi | |
5850 | ||
5851 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
5852 | |
5853 | fi | |
10f2d63a VZ |
5854 | |
5855 | ||
5856 | eval "$ac_cv_use_statbmp" | |
5857 | if test "$no_cache" != 1; then | |
5858 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
5859 | fi | |
5860 | ||
5861 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 5862 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5863 | else |
698dcdb6 | 5864 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5865 | fi |
698dcdb6 | 5866 | |
10f2d63a | 5867 | |
698dcdb6 | 5868 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
24fd6d87 | 5869 | echo "configure:5870: checking for --enable-statbox" >&5 |
10f2d63a VZ |
5870 | no_cache=0 |
5871 | # Check whether --enable-statbox or --disable-statbox was given. | |
5872 | if test "${enable_statbox+set}" = set; then | |
5873 | enableval="$enable_statbox" | |
698dcdb6 | 5874 | |
10f2d63a VZ |
5875 | if test "$enableval" = yes; then |
5876 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
5877 | else | |
5878 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
5879 | fi | |
698dcdb6 | 5880 | |
10f2d63a | 5881 | else |
698dcdb6 | 5882 | |
10f2d63a VZ |
5883 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
5884 | if test "x$LINE" != x ; then | |
5885 | eval "DEFAULT_$LINE" | |
5886 | else | |
5887 | no_cache=1 | |
5888 | fi | |
5889 | ||
5890 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
5891 | |
5892 | fi | |
10f2d63a VZ |
5893 | |
5894 | ||
5895 | eval "$ac_cv_use_statbox" | |
5896 | if test "$no_cache" != 1; then | |
5897 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
5898 | fi | |
5899 | ||
5900 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 5901 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5902 | else |
698dcdb6 | 5903 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5904 | fi |
698dcdb6 | 5905 | |
10f2d63a | 5906 | |
698dcdb6 | 5907 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
24fd6d87 | 5908 | echo "configure:5909: checking for --enable-statline" >&5 |
10f2d63a VZ |
5909 | no_cache=0 |
5910 | # Check whether --enable-statline or --disable-statline was given. | |
5911 | if test "${enable_statline+set}" = set; then | |
5912 | enableval="$enable_statline" | |
698dcdb6 | 5913 | |
10f2d63a VZ |
5914 | if test "$enableval" = yes; then |
5915 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
5916 | else | |
5917 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
5918 | fi | |
698dcdb6 | 5919 | |
10f2d63a | 5920 | else |
698dcdb6 | 5921 | |
10f2d63a VZ |
5922 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
5923 | if test "x$LINE" != x ; then | |
5924 | eval "DEFAULT_$LINE" | |
5925 | else | |
5926 | no_cache=1 | |
5927 | fi | |
5928 | ||
5929 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
5930 | |
5931 | fi | |
10f2d63a VZ |
5932 | |
5933 | ||
5934 | eval "$ac_cv_use_statline" | |
5935 | if test "$no_cache" != 1; then | |
5936 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
5937 | fi | |
5938 | ||
5939 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 5940 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5941 | else |
698dcdb6 | 5942 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5943 | fi |
698dcdb6 | 5944 | |
10f2d63a | 5945 | |
1e6feb95 | 5946 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
24fd6d87 | 5947 | echo "configure:5948: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
5948 | no_cache=0 |
5949 | # Check whether --enable-stattext or --disable-stattext was given. | |
5950 | if test "${enable_stattext+set}" = set; then | |
5951 | enableval="$enable_stattext" | |
5952 | ||
5953 | if test "$enableval" = yes; then | |
5954 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
5955 | else | |
5956 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
5957 | fi | |
5958 | ||
5959 | else | |
5960 | ||
5961 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
5962 | if test "x$LINE" != x ; then | |
5963 | eval "DEFAULT_$LINE" | |
5964 | else | |
5965 | no_cache=1 | |
5966 | fi | |
5967 | ||
5968 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
5969 | ||
5970 | fi | |
5971 | ||
5972 | ||
5973 | eval "$ac_cv_use_stattext" | |
5974 | if test "$no_cache" != 1; then | |
5975 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
5976 | fi | |
5977 | ||
5978 | if test "$wxUSE_STATTEXT" = yes; then | |
5979 | echo "$ac_t""yes" 1>&6 | |
5980 | else | |
5981 | echo "$ac_t""no" 1>&6 | |
5982 | fi | |
5983 | ||
5984 | ||
698dcdb6 | 5985 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
24fd6d87 | 5986 | echo "configure:5987: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
5987 | no_cache=0 |
5988 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
5989 | if test "${enable_statusbar+set}" = set; then | |
5990 | enableval="$enable_statusbar" | |
698dcdb6 | 5991 | |
10f2d63a VZ |
5992 | if test "$enableval" = yes; then |
5993 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
5994 | else | |
5995 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
5996 | fi | |
698dcdb6 | 5997 | |
10f2d63a | 5998 | else |
698dcdb6 | 5999 | |
10f2d63a VZ |
6000 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6001 | if test "x$LINE" != x ; then | |
6002 | eval "DEFAULT_$LINE" | |
6003 | else | |
6004 | no_cache=1 | |
6005 | fi | |
6006 | ||
6007 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
6008 | |
6009 | fi | |
10f2d63a VZ |
6010 | |
6011 | ||
6012 | eval "$ac_cv_use_statusbar" | |
6013 | if test "$no_cache" != 1; then | |
6014 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6015 | fi | |
6016 | ||
6017 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 6018 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6019 | else |
698dcdb6 | 6020 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6021 | fi |
698dcdb6 | 6022 | |
10f2d63a | 6023 | |
698dcdb6 | 6024 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
24fd6d87 | 6025 | echo "configure:6026: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6026 | no_cache=0 |
6027 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6028 | if test "${enable_tabdialog+set}" = set; then | |
6029 | enableval="$enable_tabdialog" | |
698dcdb6 | 6030 | |
10f2d63a VZ |
6031 | if test "$enableval" = yes; then |
6032 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6033 | else | |
6034 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6035 | fi | |
698dcdb6 | 6036 | |
10f2d63a | 6037 | else |
698dcdb6 | 6038 | |
10f2d63a VZ |
6039 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6040 | if test "x$LINE" != x ; then | |
6041 | eval "DEFAULT_$LINE" | |
6042 | else | |
6043 | no_cache=1 | |
6044 | fi | |
6045 | ||
6046 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
6047 | |
6048 | fi | |
10f2d63a VZ |
6049 | |
6050 | ||
6051 | eval "$ac_cv_use_tabdialog" | |
6052 | if test "$no_cache" != 1; then | |
6053 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6054 | fi | |
6055 | ||
6056 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 6057 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6058 | else |
698dcdb6 | 6059 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6060 | fi |
698dcdb6 | 6061 | |
10f2d63a | 6062 | |
1e6feb95 | 6063 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
24fd6d87 | 6064 | echo "configure:6065: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6065 | no_cache=0 |
6066 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6067 | if test "${enable_textctrl+set}" = set; then | |
6068 | enableval="$enable_textctrl" | |
6069 | ||
6070 | if test "$enableval" = yes; then | |
6071 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6072 | else | |
6073 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6074 | fi | |
6075 | ||
6076 | else | |
6077 | ||
6078 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6079 | if test "x$LINE" != x ; then | |
6080 | eval "DEFAULT_$LINE" | |
6081 | else | |
6082 | no_cache=1 | |
6083 | fi | |
6084 | ||
6085 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6086 | ||
6087 | fi | |
6088 | ||
6089 | ||
6090 | eval "$ac_cv_use_textctrl" | |
6091 | if test "$no_cache" != 1; then | |
6092 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6093 | fi | |
6094 | ||
6095 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6096 | echo "$ac_t""yes" 1>&6 | |
6097 | else | |
6098 | echo "$ac_t""no" 1>&6 | |
6099 | fi | |
6100 | ||
6101 | ||
698dcdb6 | 6102 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
24fd6d87 | 6103 | echo "configure:6104: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6104 | no_cache=0 |
6105 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6106 | if test "${enable_togglebtn+set}" = set; then | |
6107 | enableval="$enable_togglebtn" | |
698dcdb6 | 6108 | |
1db8dc4a VZ |
6109 | if test "$enableval" = yes; then |
6110 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6111 | else | |
6112 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6113 | fi | |
698dcdb6 | 6114 | |
1db8dc4a | 6115 | else |
698dcdb6 | 6116 | |
1db8dc4a VZ |
6117 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6118 | if test "x$LINE" != x ; then | |
6119 | eval "DEFAULT_$LINE" | |
6120 | else | |
6121 | no_cache=1 | |
6122 | fi | |
6123 | ||
6124 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
6125 | |
6126 | fi | |
1db8dc4a VZ |
6127 | |
6128 | ||
6129 | eval "$ac_cv_use_togglebtn" | |
6130 | if test "$no_cache" != 1; then | |
6131 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6132 | fi | |
6133 | ||
6134 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 6135 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6136 | else |
698dcdb6 | 6137 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6138 | fi |
698dcdb6 | 6139 | |
1db8dc4a | 6140 | |
698dcdb6 | 6141 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
24fd6d87 | 6142 | echo "configure:6143: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6143 | no_cache=0 |
6144 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6145 | if test "${enable_toolbar+set}" = set; then | |
6146 | enableval="$enable_toolbar" | |
698dcdb6 | 6147 | |
10f2d63a VZ |
6148 | if test "$enableval" = yes; then |
6149 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6150 | else | |
6151 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6152 | fi | |
698dcdb6 | 6153 | |
10f2d63a | 6154 | else |
698dcdb6 | 6155 | |
10f2d63a VZ |
6156 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6157 | if test "x$LINE" != x ; then | |
6158 | eval "DEFAULT_$LINE" | |
6159 | else | |
6160 | no_cache=1 | |
6161 | fi | |
6162 | ||
6163 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
6164 | |
6165 | fi | |
10f2d63a VZ |
6166 | |
6167 | ||
6168 | eval "$ac_cv_use_toolbar" | |
6169 | if test "$no_cache" != 1; then | |
6170 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6171 | fi | |
6172 | ||
6173 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 6174 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6175 | else |
698dcdb6 | 6176 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6177 | fi |
698dcdb6 | 6178 | |
10f2d63a | 6179 | |
698dcdb6 | 6180 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
24fd6d87 | 6181 | echo "configure:6182: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
6182 | no_cache=0 |
6183 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6184 | if test "${enable_tbarnative+set}" = set; then | |
6185 | enableval="$enable_tbarnative" | |
698dcdb6 | 6186 | |
360d6699 VZ |
6187 | if test "$enableval" = yes; then |
6188 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6189 | else | |
6190 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6191 | fi | |
698dcdb6 | 6192 | |
360d6699 | 6193 | else |
698dcdb6 | 6194 | |
360d6699 VZ |
6195 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
6196 | if test "x$LINE" != x ; then | |
6197 | eval "DEFAULT_$LINE" | |
6198 | else | |
6199 | no_cache=1 | |
6200 | fi | |
6201 | ||
6202 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
6203 | |
6204 | fi | |
360d6699 VZ |
6205 | |
6206 | ||
6207 | eval "$ac_cv_use_tbarnative" | |
6208 | if test "$no_cache" != 1; then | |
6209 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6210 | fi | |
6211 | ||
6212 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 6213 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6214 | else |
698dcdb6 | 6215 | echo "$ac_t""no" 1>&6 |
360d6699 | 6216 | fi |
698dcdb6 | 6217 | |
360d6699 | 6218 | |
698dcdb6 | 6219 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
24fd6d87 | 6220 | echo "configure:6221: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
6221 | no_cache=0 |
6222 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6223 | if test "${enable_tbarsmpl+set}" = set; then | |
6224 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 6225 | |
360d6699 VZ |
6226 | if test "$enableval" = yes; then |
6227 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6228 | else | |
6229 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6230 | fi | |
698dcdb6 | 6231 | |
360d6699 | 6232 | else |
698dcdb6 | 6233 | |
360d6699 VZ |
6234 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
6235 | if test "x$LINE" != x ; then | |
6236 | eval "DEFAULT_$LINE" | |
6237 | else | |
6238 | no_cache=1 | |
6239 | fi | |
6240 | ||
6241 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
6242 | |
6243 | fi | |
360d6699 VZ |
6244 | |
6245 | ||
6246 | eval "$ac_cv_use_tbarsmpl" | |
6247 | if test "$no_cache" != 1; then | |
6248 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6249 | fi | |
6250 | ||
6251 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 6252 | echo "$ac_t""yes" 1>&6 |
360d6699 | 6253 | else |
698dcdb6 | 6254 | echo "$ac_t""no" 1>&6 |
360d6699 | 6255 | fi |
698dcdb6 | 6256 | |
360d6699 | 6257 | |
698dcdb6 | 6258 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
24fd6d87 | 6259 | echo "configure:6260: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
6260 | no_cache=0 |
6261 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6262 | if test "${enable_treectrl+set}" = set; then | |
6263 | enableval="$enable_treectrl" | |
698dcdb6 | 6264 | |
10f2d63a VZ |
6265 | if test "$enableval" = yes; then |
6266 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6267 | else | |
6268 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6269 | fi | |
698dcdb6 | 6270 | |
10f2d63a | 6271 | else |
698dcdb6 | 6272 | |
10f2d63a VZ |
6273 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
6274 | if test "x$LINE" != x ; then | |
6275 | eval "DEFAULT_$LINE" | |
6276 | else | |
6277 | no_cache=1 | |
6278 | fi | |
6279 | ||
6280 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
6281 | |
6282 | fi | |
10f2d63a VZ |
6283 | |
6284 | ||
1e6feb95 VZ |
6285 | eval "$ac_cv_use_treectrl" |
6286 | if test "$no_cache" != 1; then | |
6287 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6288 | fi | |
6289 | ||
6290 | if test "$wxUSE_TREECTRL" = yes; then | |
6291 | echo "$ac_t""yes" 1>&6 | |
6292 | else | |
6293 | echo "$ac_t""no" 1>&6 | |
6294 | fi | |
6295 | ||
6296 | ||
6297 | ||
6298 | ||
6299 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
24fd6d87 | 6300 | echo "configure:6301: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
6301 | no_cache=0 |
6302 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6303 | if test "${enable_commondlg+set}" = set; then | |
6304 | enableval="$enable_commondlg" | |
6305 | ||
6306 | if test "$enableval" = yes; then | |
6307 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6308 | else | |
6309 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6310 | fi | |
6311 | ||
6312 | else | |
6313 | ||
6314 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6315 | if test "x$LINE" != x ; then | |
6316 | eval "DEFAULT_$LINE" | |
6317 | else | |
6318 | no_cache=1 | |
6319 | fi | |
6320 | ||
6321 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6322 | ||
6323 | fi | |
6324 | ||
6325 | ||
6326 | eval "$ac_cv_use_commondlg" | |
6327 | if test "$no_cache" != 1; then | |
6328 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6329 | fi | |
6330 | ||
6331 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6332 | echo "$ac_t""yes" 1>&6 | |
6333 | else | |
6334 | echo "$ac_t""no" 1>&6 | |
6335 | fi | |
6336 | ||
6337 | ||
6338 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
24fd6d87 | 6339 | echo "configure:6340: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
6340 | no_cache=0 |
6341 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6342 | if test "${enable_choicedlg+set}" = set; then | |
6343 | enableval="$enable_choicedlg" | |
6344 | ||
6345 | if test "$enableval" = yes; then | |
6346 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6347 | else | |
6348 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6349 | fi | |
6350 | ||
6351 | else | |
6352 | ||
6353 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6354 | if test "x$LINE" != x ; then | |
6355 | eval "DEFAULT_$LINE" | |
6356 | else | |
6357 | no_cache=1 | |
6358 | fi | |
6359 | ||
6360 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6361 | ||
6362 | fi | |
6363 | ||
6364 | ||
6365 | eval "$ac_cv_use_choicedlg" | |
6366 | if test "$no_cache" != 1; then | |
6367 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6368 | fi | |
6369 | ||
6370 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6371 | echo "$ac_t""yes" 1>&6 | |
6372 | else | |
6373 | echo "$ac_t""no" 1>&6 | |
6374 | fi | |
6375 | ||
6376 | ||
6377 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
24fd6d87 | 6378 | echo "configure:6379: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
6379 | no_cache=0 |
6380 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6381 | if test "${enable_coldlg+set}" = set; then | |
6382 | enableval="$enable_coldlg" | |
6383 | ||
6384 | if test "$enableval" = yes; then | |
6385 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6386 | else | |
6387 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6388 | fi | |
6389 | ||
6390 | else | |
6391 | ||
6392 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6393 | if test "x$LINE" != x ; then | |
6394 | eval "DEFAULT_$LINE" | |
6395 | else | |
6396 | no_cache=1 | |
6397 | fi | |
6398 | ||
6399 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6400 | ||
6401 | fi | |
6402 | ||
6403 | ||
6404 | eval "$ac_cv_use_coldlg" | |
6405 | if test "$no_cache" != 1; then | |
6406 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6407 | fi | |
6408 | ||
6409 | if test "$wxUSE_COLOURDLG" = yes; then | |
6410 | echo "$ac_t""yes" 1>&6 | |
6411 | else | |
6412 | echo "$ac_t""no" 1>&6 | |
6413 | fi | |
6414 | ||
6415 | ||
6416 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
24fd6d87 | 6417 | echo "configure:6418: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
6418 | no_cache=0 |
6419 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6420 | if test "${enable_filedlg+set}" = set; then | |
6421 | enableval="$enable_filedlg" | |
6422 | ||
6423 | if test "$enableval" = yes; then | |
6424 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6425 | else | |
6426 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6427 | fi | |
6428 | ||
6429 | else | |
6430 | ||
6431 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6432 | if test "x$LINE" != x ; then | |
6433 | eval "DEFAULT_$LINE" | |
6434 | else | |
6435 | no_cache=1 | |
6436 | fi | |
6437 | ||
6438 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6439 | ||
6440 | fi | |
6441 | ||
6442 | ||
6443 | eval "$ac_cv_use_filedlg" | |
6444 | if test "$no_cache" != 1; then | |
6445 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6446 | fi | |
6447 | ||
6448 | if test "$wxUSE_FILEDLG" = yes; then | |
6449 | echo "$ac_t""yes" 1>&6 | |
6450 | else | |
6451 | echo "$ac_t""no" 1>&6 | |
6452 | fi | |
6453 | ||
6454 | ||
6455 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 | |
24fd6d87 | 6456 | echo "configure:6457: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
6457 | no_cache=0 |
6458 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6459 | if test "${enable_fontdlg+set}" = set; then | |
6460 | enableval="$enable_fontdlg" | |
6461 | ||
6462 | if test "$enableval" = yes; then | |
6463 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6464 | else | |
6465 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6466 | fi | |
6467 | ||
6468 | else | |
6469 | ||
6470 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6471 | if test "x$LINE" != x ; then | |
6472 | eval "DEFAULT_$LINE" | |
6473 | else | |
6474 | no_cache=1 | |
6475 | fi | |
6476 | ||
6477 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6478 | ||
6479 | fi | |
6480 | ||
6481 | ||
6482 | eval "$ac_cv_use_fontdlg" | |
6483 | if test "$no_cache" != 1; then | |
6484 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6485 | fi | |
6486 | ||
6487 | if test "$wxUSE_FONTDLG" = yes; then | |
6488 | echo "$ac_t""yes" 1>&6 | |
6489 | else | |
6490 | echo "$ac_t""no" 1>&6 | |
6491 | fi | |
6492 | ||
6493 | ||
6494 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
24fd6d87 | 6495 | echo "configure:6496: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
6496 | no_cache=0 |
6497 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6498 | if test "${enable_dirdlg+set}" = set; then | |
6499 | enableval="$enable_dirdlg" | |
6500 | ||
6501 | if test "$enableval" = yes; then | |
6502 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6503 | else | |
6504 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6505 | fi | |
6506 | ||
6507 | else | |
6508 | ||
6509 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6510 | if test "x$LINE" != x ; then | |
6511 | eval "DEFAULT_$LINE" | |
6512 | else | |
6513 | no_cache=1 | |
6514 | fi | |
6515 | ||
6516 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6517 | ||
6518 | fi | |
6519 | ||
6520 | ||
6521 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 6522 | if test "$no_cache" != 1; then |
1e6feb95 | 6523 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6524 | fi |
6525 | ||
1e6feb95 | 6526 | if test "$wxUSE_DIRDLG" = yes; then |
698dcdb6 | 6527 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6528 | else |
698dcdb6 | 6529 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6530 | fi |
698dcdb6 VZ |
6531 | |
6532 | ||
1e6feb95 | 6533 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
24fd6d87 | 6534 | echo "configure:6535: checking for --enable-msgdlg" >&5 |
10f2d63a | 6535 | no_cache=0 |
1e6feb95 VZ |
6536 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
6537 | if test "${enable_msgdlg+set}" = set; then | |
6538 | enableval="$enable_msgdlg" | |
698dcdb6 | 6539 | |
10f2d63a | 6540 | if test "$enableval" = yes; then |
1e6feb95 | 6541 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 6542 | else |
1e6feb95 | 6543 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 6544 | fi |
698dcdb6 | 6545 | |
10f2d63a | 6546 | else |
698dcdb6 | 6547 | |
1e6feb95 | 6548 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6549 | if test "x$LINE" != x ; then |
6550 | eval "DEFAULT_$LINE" | |
6551 | else | |
6552 | no_cache=1 | |
6553 | fi | |
6554 | ||
1e6feb95 | 6555 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
698dcdb6 VZ |
6556 | |
6557 | fi | |
10f2d63a VZ |
6558 | |
6559 | ||
1e6feb95 | 6560 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 6561 | if test "$no_cache" != 1; then |
1e6feb95 | 6562 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6563 | fi |
6564 | ||
1e6feb95 | 6565 | if test "$wxUSE_MSGDLG" = yes; then |
698dcdb6 | 6566 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6567 | else |
698dcdb6 | 6568 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6569 | fi |
698dcdb6 | 6570 | |
10f2d63a | 6571 | |
1e6feb95 | 6572 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
24fd6d87 | 6573 | echo "configure:6574: checking for --enable-numberdlg" >&5 |
10f2d63a | 6574 | no_cache=0 |
1e6feb95 VZ |
6575 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
6576 | if test "${enable_numberdlg+set}" = set; then | |
6577 | enableval="$enable_numberdlg" | |
698dcdb6 | 6578 | |
10f2d63a | 6579 | if test "$enableval" = yes; then |
1e6feb95 | 6580 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 6581 | else |
1e6feb95 | 6582 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 6583 | fi |
698dcdb6 | 6584 | |
10f2d63a | 6585 | else |
698dcdb6 | 6586 | |
1e6feb95 | 6587 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
6588 | if test "x$LINE" != x ; then |
6589 | eval "DEFAULT_$LINE" | |
6590 | else | |
6591 | no_cache=1 | |
6592 | fi | |
6593 | ||
1e6feb95 | 6594 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
698dcdb6 VZ |
6595 | |
6596 | fi | |
10f2d63a VZ |
6597 | |
6598 | ||
1e6feb95 | 6599 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 6600 | if test "$no_cache" != 1; then |
1e6feb95 | 6601 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6602 | fi |
6603 | ||
1e6feb95 | 6604 | if test "$wxUSE_NUMBERDLG" = yes; then |
698dcdb6 | 6605 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6606 | else |
698dcdb6 | 6607 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6608 | fi |
698dcdb6 | 6609 | |
10f2d63a | 6610 | |
698dcdb6 | 6611 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
24fd6d87 | 6612 | echo "configure:6613: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
6613 | no_cache=0 |
6614 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
6615 | if test "${enable_textdlg+set}" = set; then | |
6616 | enableval="$enable_textdlg" | |
698dcdb6 | 6617 | |
10f2d63a VZ |
6618 | if test "$enableval" = yes; then |
6619 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
6620 | else | |
6621 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
6622 | fi | |
698dcdb6 | 6623 | |
10f2d63a | 6624 | else |
698dcdb6 | 6625 | |
10f2d63a VZ |
6626 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
6627 | if test "x$LINE" != x ; then | |
6628 | eval "DEFAULT_$LINE" | |
6629 | else | |
6630 | no_cache=1 | |
6631 | fi | |
6632 | ||
6633 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
6634 | |
6635 | fi | |
10f2d63a VZ |
6636 | |
6637 | ||
6638 | eval "$ac_cv_use_textdlg" | |
6639 | if test "$no_cache" != 1; then | |
6640 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
6641 | fi | |
6642 | ||
6643 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 6644 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6645 | else |
698dcdb6 | 6646 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6647 | fi |
698dcdb6 | 6648 | |
10f2d63a | 6649 | |
698dcdb6 | 6650 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
24fd6d87 | 6651 | echo "configure:6652: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
6652 | no_cache=0 |
6653 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
6654 | if test "${enable_tipdlg+set}" = set; then | |
6655 | enableval="$enable_tipdlg" | |
698dcdb6 | 6656 | |
10f2d63a VZ |
6657 | if test "$enableval" = yes; then |
6658 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
6659 | else | |
6660 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
6661 | fi | |
698dcdb6 | 6662 | |
10f2d63a | 6663 | else |
698dcdb6 | 6664 | |
10f2d63a VZ |
6665 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
6666 | if test "x$LINE" != x ; then | |
6667 | eval "DEFAULT_$LINE" | |
6668 | else | |
6669 | no_cache=1 | |
6670 | fi | |
6671 | ||
6672 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
6673 | |
6674 | fi | |
10f2d63a VZ |
6675 | |
6676 | ||
6677 | eval "$ac_cv_use_tipdlg" | |
6678 | if test "$no_cache" != 1; then | |
6679 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
6680 | fi | |
6681 | ||
6682 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 6683 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6684 | else |
698dcdb6 | 6685 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6686 | fi |
698dcdb6 | 6687 | |
10f2d63a | 6688 | |
698dcdb6 | 6689 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
24fd6d87 | 6690 | echo "configure:6691: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
6691 | no_cache=0 |
6692 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
6693 | if test "${enable_progressdlg+set}" = set; then | |
6694 | enableval="$enable_progressdlg" | |
698dcdb6 | 6695 | |
10f2d63a VZ |
6696 | if test "$enableval" = yes; then |
6697 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
6698 | else | |
6699 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
6700 | fi | |
698dcdb6 | 6701 | |
10f2d63a | 6702 | else |
698dcdb6 | 6703 | |
10f2d63a VZ |
6704 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
6705 | if test "x$LINE" != x ; then | |
6706 | eval "DEFAULT_$LINE" | |
6707 | else | |
6708 | no_cache=1 | |
6709 | fi | |
6710 | ||
6711 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
6712 | |
6713 | fi | |
10f2d63a VZ |
6714 | |
6715 | ||
6716 | eval "$ac_cv_use_progressdlg" | |
6717 | if test "$no_cache" != 1; then | |
6718 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
6719 | fi | |
6720 | ||
6721 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 6722 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6723 | else |
698dcdb6 | 6724 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6725 | fi |
698dcdb6 | 6726 | |
10f2d63a | 6727 | |
1e6feb95 | 6728 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 |
24fd6d87 | 6729 | echo "configure:6730: checking for --enable-menus" >&5 |
1e6feb95 VZ |
6730 | no_cache=0 |
6731 | # Check whether --enable-menus or --disable-menus was given. | |
6732 | if test "${enable_menus+set}" = set; then | |
6733 | enableval="$enable_menus" | |
6734 | ||
6735 | if test "$enableval" = yes; then | |
6736 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
6737 | else | |
6738 | ac_cv_use_menus='wxUSE_MENUS=no' | |
6739 | fi | |
6740 | ||
6741 | else | |
6742 | ||
6743 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
6744 | if test "x$LINE" != x ; then | |
6745 | eval "DEFAULT_$LINE" | |
6746 | else | |
6747 | no_cache=1 | |
6748 | fi | |
6749 | ||
6750 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
6751 | ||
6752 | fi | |
6753 | ||
6754 | ||
6755 | eval "$ac_cv_use_menus" | |
6756 | if test "$no_cache" != 1; then | |
6757 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
6758 | fi | |
6759 | ||
6760 | if test "$wxUSE_MENUS" = yes; then | |
6761 | echo "$ac_t""yes" 1>&6 | |
6762 | else | |
6763 | echo "$ac_t""no" 1>&6 | |
6764 | fi | |
6765 | ||
6766 | ||
698dcdb6 | 6767 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
24fd6d87 | 6768 | echo "configure:6769: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
6769 | no_cache=0 |
6770 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
6771 | if test "${enable_miniframe+set}" = set; then | |
6772 | enableval="$enable_miniframe" | |
698dcdb6 | 6773 | |
10f2d63a VZ |
6774 | if test "$enableval" = yes; then |
6775 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
6776 | else | |
6777 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
6778 | fi | |
698dcdb6 | 6779 | |
10f2d63a | 6780 | else |
698dcdb6 | 6781 | |
10f2d63a VZ |
6782 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
6783 | if test "x$LINE" != x ; then | |
6784 | eval "DEFAULT_$LINE" | |
6785 | else | |
6786 | no_cache=1 | |
6787 | fi | |
6788 | ||
6789 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
6790 | |
6791 | fi | |
10f2d63a VZ |
6792 | |
6793 | ||
6794 | eval "$ac_cv_use_miniframe" | |
6795 | if test "$no_cache" != 1; then | |
6796 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
6797 | fi | |
6798 | ||
6799 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 6800 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6801 | else |
698dcdb6 | 6802 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6803 | fi |
698dcdb6 | 6804 | |
10f2d63a | 6805 | |
698dcdb6 | 6806 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
24fd6d87 | 6807 | echo "configure:6808: checking for --enable-html" >&5 |
10f2d63a VZ |
6808 | no_cache=0 |
6809 | # Check whether --enable-html or --disable-html was given. | |
6810 | if test "${enable_html+set}" = set; then | |
6811 | enableval="$enable_html" | |
698dcdb6 | 6812 | |
10f2d63a VZ |
6813 | if test "$enableval" = yes; then |
6814 | ac_cv_use_html='wxUSE_HTML=yes' | |
6815 | else | |
6816 | ac_cv_use_html='wxUSE_HTML=no' | |
6817 | fi | |
698dcdb6 | 6818 | |
10f2d63a | 6819 | else |
698dcdb6 | 6820 | |
10f2d63a VZ |
6821 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
6822 | if test "x$LINE" != x ; then | |
6823 | eval "DEFAULT_$LINE" | |
6824 | else | |
6825 | no_cache=1 | |
6826 | fi | |
6827 | ||
6828 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
698dcdb6 VZ |
6829 | |
6830 | fi | |
10f2d63a VZ |
6831 | |
6832 | ||
6833 | eval "$ac_cv_use_html" | |
6834 | if test "$no_cache" != 1; then | |
6835 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6836 | fi | |
6837 | ||
6838 | if test "$wxUSE_HTML" = yes; then | |
698dcdb6 | 6839 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6840 | else |
698dcdb6 | 6841 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6842 | fi |
698dcdb6 | 6843 | |
10f2d63a | 6844 | |
698dcdb6 | 6845 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
24fd6d87 | 6846 | echo "configure:6847: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
6847 | no_cache=0 |
6848 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
6849 | if test "${enable_tooltips+set}" = set; then | |
6850 | enableval="$enable_tooltips" | |
698dcdb6 | 6851 | |
10f2d63a VZ |
6852 | if test "$enableval" = yes; then |
6853 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
6854 | else | |
6855 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
6856 | fi | |
698dcdb6 | 6857 | |
10f2d63a | 6858 | else |
698dcdb6 | 6859 | |
10f2d63a VZ |
6860 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
6861 | if test "x$LINE" != x ; then | |
6862 | eval "DEFAULT_$LINE" | |
6863 | else | |
6864 | no_cache=1 | |
6865 | fi | |
6866 | ||
6867 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
6868 | |
6869 | fi | |
10f2d63a VZ |
6870 | |
6871 | ||
6872 | eval "$ac_cv_use_tooltips" | |
6873 | if test "$no_cache" != 1; then | |
6874 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
6875 | fi | |
6876 | ||
6877 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 6878 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6879 | else |
698dcdb6 | 6880 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6881 | fi |
698dcdb6 | 6882 | |
10f2d63a | 6883 | |
698dcdb6 | 6884 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
24fd6d87 | 6885 | echo "configure:6886: checking for --enable-splines" >&5 |
10f2d63a VZ |
6886 | no_cache=0 |
6887 | # Check whether --enable-splines or --disable-splines was given. | |
6888 | if test "${enable_splines+set}" = set; then | |
6889 | enableval="$enable_splines" | |
698dcdb6 | 6890 | |
10f2d63a VZ |
6891 | if test "$enableval" = yes; then |
6892 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
6893 | else | |
6894 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
6895 | fi | |
698dcdb6 | 6896 | |
10f2d63a | 6897 | else |
698dcdb6 | 6898 | |
10f2d63a VZ |
6899 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
6900 | if test "x$LINE" != x ; then | |
6901 | eval "DEFAULT_$LINE" | |
6902 | else | |
6903 | no_cache=1 | |
6904 | fi | |
6905 | ||
6906 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
6907 | |
6908 | fi | |
10f2d63a VZ |
6909 | |
6910 | ||
6911 | eval "$ac_cv_use_splines" | |
6912 | if test "$no_cache" != 1; then | |
6913 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
6914 | fi | |
6915 | ||
6916 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 6917 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6918 | else |
698dcdb6 | 6919 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6920 | fi |
698dcdb6 | 6921 | |
10f2d63a | 6922 | |
698dcdb6 | 6923 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
24fd6d87 | 6924 | echo "configure:6925: checking for --enable-validators" >&5 |
10f2d63a VZ |
6925 | no_cache=0 |
6926 | # Check whether --enable-validators or --disable-validators was given. | |
6927 | if test "${enable_validators+set}" = set; then | |
6928 | enableval="$enable_validators" | |
698dcdb6 | 6929 | |
10f2d63a VZ |
6930 | if test "$enableval" = yes; then |
6931 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
6932 | else | |
6933 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
6934 | fi | |
698dcdb6 | 6935 | |
10f2d63a | 6936 | else |
698dcdb6 | 6937 | |
10f2d63a VZ |
6938 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
6939 | if test "x$LINE" != x ; then | |
6940 | eval "DEFAULT_$LINE" | |
6941 | else | |
6942 | no_cache=1 | |
6943 | fi | |
6944 | ||
6945 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
6946 | |
6947 | fi | |
10f2d63a VZ |
6948 | |
6949 | ||
6950 | eval "$ac_cv_use_validators" | |
6951 | if test "$no_cache" != 1; then | |
6952 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
6953 | fi | |
6954 | ||
6955 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 6956 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6957 | else |
698dcdb6 | 6958 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6959 | fi |
698dcdb6 | 6960 | |
10f2d63a | 6961 | |
698dcdb6 | 6962 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
24fd6d87 | 6963 | echo "configure:6964: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
6964 | no_cache=0 |
6965 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
6966 | if test "${enable_busyinfo+set}" = set; then | |
6967 | enableval="$enable_busyinfo" | |
698dcdb6 | 6968 | |
10f2d63a VZ |
6969 | if test "$enableval" = yes; then |
6970 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
6971 | else | |
6972 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
6973 | fi | |
698dcdb6 | 6974 | |
10f2d63a | 6975 | else |
698dcdb6 | 6976 | |
10f2d63a VZ |
6977 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
6978 | if test "x$LINE" != x ; then | |
6979 | eval "DEFAULT_$LINE" | |
6980 | else | |
6981 | no_cache=1 | |
6982 | fi | |
6983 | ||
6984 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
6985 | |
6986 | fi | |
10f2d63a VZ |
6987 | |
6988 | ||
6989 | eval "$ac_cv_use_busyinfo" | |
6990 | if test "$no_cache" != 1; then | |
6991 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
6992 | fi | |
6993 | ||
6994 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 6995 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6996 | else |
698dcdb6 | 6997 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6998 | fi |
698dcdb6 | 6999 | |
10f2d63a | 7000 | |
698dcdb6 | 7001 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
24fd6d87 | 7002 | echo "configure:7003: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7003 | no_cache=0 |
7004 | # Check whether --enable-joystick or --disable-joystick was given. | |
7005 | if test "${enable_joystick+set}" = set; then | |
7006 | enableval="$enable_joystick" | |
698dcdb6 | 7007 | |
f6bcfd97 BP |
7008 | if test "$enableval" = yes; then |
7009 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7010 | else | |
7011 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7012 | fi | |
698dcdb6 | 7013 | |
f6bcfd97 | 7014 | else |
698dcdb6 | 7015 | |
f6bcfd97 BP |
7016 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7017 | if test "x$LINE" != x ; then | |
7018 | eval "DEFAULT_$LINE" | |
7019 | else | |
7020 | no_cache=1 | |
7021 | fi | |
7022 | ||
7023 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
7024 | |
7025 | fi | |
f6bcfd97 BP |
7026 | |
7027 | ||
7028 | eval "$ac_cv_use_joystick" | |
7029 | if test "$no_cache" != 1; then | |
7030 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7031 | fi | |
7032 | ||
7033 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 7034 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 7035 | else |
698dcdb6 | 7036 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 7037 | fi |
698dcdb6 VZ |
7038 | |
7039 | ||
1e6feb95 | 7040 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
24fd6d87 | 7041 | echo "configure:7042: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
7042 | no_cache=0 |
7043 | # Check whether --enable-metafile or --disable-metafile was given. | |
7044 | if test "${enable_metafile+set}" = set; then | |
7045 | enableval="$enable_metafile" | |
7046 | ||
7047 | if test "$enableval" = yes; then | |
7048 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7049 | else | |
7050 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7051 | fi | |
7052 | ||
7053 | else | |
7054 | ||
7055 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7056 | if test "x$LINE" != x ; then | |
7057 | eval "DEFAULT_$LINE" | |
7058 | else | |
7059 | no_cache=1 | |
7060 | fi | |
7061 | ||
7062 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7063 | ||
7064 | fi | |
7065 | ||
7066 | ||
7067 | eval "$ac_cv_use_metafile" | |
7068 | if test "$no_cache" != 1; then | |
7069 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7070 | fi | |
7071 | ||
7072 | if test "$wxUSE_METAFILE" = yes; then | |
7073 | echo "$ac_t""yes" 1>&6 | |
7074 | else | |
7075 | echo "$ac_t""no" 1>&6 | |
7076 | fi | |
7077 | ||
7078 | ||
24fd6d87 VZ |
7079 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
7080 | echo "configure:7081: checking for --enable-dragimage" >&5 | |
7081 | no_cache=0 | |
7082 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7083 | if test "${enable_dragimage+set}" = set; then | |
7084 | enableval="$enable_dragimage" | |
7085 | ||
7086 | if test "$enableval" = yes; then | |
7087 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7088 | else | |
7089 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7090 | fi | |
7091 | ||
7092 | else | |
7093 | ||
7094 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7095 | if test "x$LINE" != x ; then | |
7096 | eval "DEFAULT_$LINE" | |
7097 | else | |
7098 | no_cache=1 | |
7099 | fi | |
7100 | ||
7101 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7102 | ||
7103 | fi | |
7104 | ||
7105 | ||
7106 | eval "$ac_cv_use_dragimage" | |
7107 | if test "$no_cache" != 1; then | |
7108 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7109 | fi | |
7110 | ||
7111 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7112 | echo "$ac_t""yes" 1>&6 | |
7113 | else | |
7114 | echo "$ac_t""no" 1>&6 | |
7115 | fi | |
7116 | ||
7117 | ||
10f2d63a | 7118 | |
698dcdb6 VZ |
7119 | |
7120 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
24fd6d87 | 7121 | echo "configure:7122: checking for --enable-image" >&5 |
0046ff7c VS |
7122 | no_cache=0 |
7123 | # Check whether --enable-image or --disable-image was given. | |
7124 | if test "${enable_image+set}" = set; then | |
7125 | enableval="$enable_image" | |
698dcdb6 | 7126 | |
0046ff7c VS |
7127 | if test "$enableval" = yes; then |
7128 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7129 | else | |
7130 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7131 | fi | |
698dcdb6 | 7132 | |
0046ff7c | 7133 | else |
698dcdb6 | 7134 | |
0046ff7c VS |
7135 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
7136 | if test "x$LINE" != x ; then | |
7137 | eval "DEFAULT_$LINE" | |
7138 | else | |
7139 | no_cache=1 | |
7140 | fi | |
7141 | ||
7142 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
7143 | |
7144 | fi | |
0046ff7c VS |
7145 | |
7146 | ||
7147 | eval "$ac_cv_use_image" | |
7148 | if test "$no_cache" != 1; then | |
7149 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7150 | fi | |
7151 | ||
7152 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 7153 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7154 | else |
698dcdb6 | 7155 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7156 | fi |
698dcdb6 | 7157 | |
0046ff7c | 7158 | |
698dcdb6 | 7159 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
24fd6d87 | 7160 | echo "configure:7161: checking for --enable-gif" >&5 |
10f2d63a VZ |
7161 | no_cache=0 |
7162 | # Check whether --enable-gif or --disable-gif was given. | |
7163 | if test "${enable_gif+set}" = set; then | |
7164 | enableval="$enable_gif" | |
698dcdb6 | 7165 | |
10f2d63a VZ |
7166 | if test "$enableval" = yes; then |
7167 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7168 | else | |
7169 | ac_cv_use_gif='wxUSE_GIF=no' | |
7170 | fi | |
698dcdb6 | 7171 | |
10f2d63a | 7172 | else |
698dcdb6 | 7173 | |
10f2d63a VZ |
7174 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
7175 | if test "x$LINE" != x ; then | |
7176 | eval "DEFAULT_$LINE" | |
7177 | else | |
7178 | no_cache=1 | |
7179 | fi | |
7180 | ||
7181 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
7182 | |
7183 | fi | |
10f2d63a VZ |
7184 | |
7185 | ||
7186 | eval "$ac_cv_use_gif" | |
7187 | if test "$no_cache" != 1; then | |
7188 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7189 | fi | |
7190 | ||
7191 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 7192 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7193 | else |
698dcdb6 | 7194 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7195 | fi |
698dcdb6 | 7196 | |
10f2d63a | 7197 | |
698dcdb6 | 7198 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
24fd6d87 | 7199 | echo "configure:7200: checking for --enable-pcx" >&5 |
10f2d63a VZ |
7200 | no_cache=0 |
7201 | # Check whether --enable-pcx or --disable-pcx was given. | |
7202 | if test "${enable_pcx+set}" = set; then | |
7203 | enableval="$enable_pcx" | |
698dcdb6 | 7204 | |
10f2d63a VZ |
7205 | if test "$enableval" = yes; then |
7206 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7207 | else | |
7208 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7209 | fi | |
698dcdb6 | 7210 | |
10f2d63a | 7211 | else |
698dcdb6 | 7212 | |
10f2d63a VZ |
7213 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
7214 | if test "x$LINE" != x ; then | |
7215 | eval "DEFAULT_$LINE" | |
7216 | else | |
7217 | no_cache=1 | |
7218 | fi | |
7219 | ||
7220 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
7221 | |
7222 | fi | |
10f2d63a VZ |
7223 | |
7224 | ||
7225 | eval "$ac_cv_use_pcx" | |
7226 | if test "$no_cache" != 1; then | |
7227 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7228 | fi | |
7229 | ||
7230 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 7231 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7232 | else |
698dcdb6 | 7233 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7234 | fi |
698dcdb6 | 7235 | |
10f2d63a | 7236 | |
698dcdb6 | 7237 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
24fd6d87 | 7238 | echo "configure:7239: checking for --enable-pnm" >&5 |
10f2d63a VZ |
7239 | no_cache=0 |
7240 | # Check whether --enable-pnm or --disable-pnm was given. | |
7241 | if test "${enable_pnm+set}" = set; then | |
7242 | enableval="$enable_pnm" | |
698dcdb6 | 7243 | |
10f2d63a VZ |
7244 | if test "$enableval" = yes; then |
7245 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7246 | else | |
7247 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7248 | fi | |
698dcdb6 | 7249 | |
10f2d63a | 7250 | else |
698dcdb6 | 7251 | |
10f2d63a VZ |
7252 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
7253 | if test "x$LINE" != x ; then | |
7254 | eval "DEFAULT_$LINE" | |
7255 | else | |
7256 | no_cache=1 | |
7257 | fi | |
7258 | ||
7259 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
7260 | |
7261 | fi | |
10f2d63a VZ |
7262 | |
7263 | ||
7264 | eval "$ac_cv_use_pnm" | |
7265 | if test "$no_cache" != 1; then | |
7266 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7267 | fi | |
7268 | ||
7269 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 7270 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7271 | else |
698dcdb6 | 7272 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7273 | fi |
698dcdb6 | 7274 | |
10f2d63a | 7275 | |
698dcdb6 | 7276 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
24fd6d87 | 7277 | echo "configure:7278: checking for --enable-pnm" >&5 |
0046ff7c VS |
7278 | no_cache=0 |
7279 | # Check whether --enable-pnm or --disable-pnm was given. | |
7280 | if test "${enable_pnm+set}" = set; then | |
7281 | enableval="$enable_pnm" | |
698dcdb6 | 7282 | |
0046ff7c VS |
7283 | if test "$enableval" = yes; then |
7284 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7285 | else | |
7286 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7287 | fi | |
698dcdb6 | 7288 | |
0046ff7c | 7289 | else |
698dcdb6 | 7290 | |
0046ff7c VS |
7291 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
7292 | if test "x$LINE" != x ; then | |
7293 | eval "DEFAULT_$LINE" | |
7294 | else | |
7295 | no_cache=1 | |
7296 | fi | |
7297 | ||
7298 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
7299 | |
7300 | fi | |
0046ff7c VS |
7301 | |
7302 | ||
7303 | eval "$ac_cv_use_pnm" | |
7304 | if test "$no_cache" != 1; then | |
7305 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7306 | fi | |
7307 | ||
7308 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 7309 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 7310 | else |
698dcdb6 | 7311 | echo "$ac_t""no" 1>&6 |
0046ff7c | 7312 | fi |
698dcdb6 | 7313 | |
0046ff7c | 7314 | |
b12915c1 VZ |
7315 | fi |
7316 | ||
698dcdb6 | 7317 | |
10f2d63a VZ |
7318 | echo "saving argument cache $wx_arg_cache_file" |
7319 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 7320 | |
10f2d63a | 7321 | |
698dcdb6 VZ |
7322 | |
7323 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
24fd6d87 | 7324 | echo "configure:7325: checking for toolkit" >&5 |
10f2d63a VZ |
7325 | |
7326 | if test "$wxUSE_GUI" = "yes"; then | |
7327 | ||
b12915c1 | 7328 | if test "$USE_BEOS" = 1; then |
698dcdb6 | 7329 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
b12915c1 VZ |
7330 | fi |
7331 | ||
10f2d63a VZ |
7332 | if test "$TOOLKIT_GIVEN" = 1; then |
7333 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7334 | var=wxUSE_$toolkit | |
7335 | eval "value=\$${var}" | |
7336 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7337 | done | |
7338 | else | |
7339 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7340 | if test "$has_toolkit_in_cache" != 1; then | |
7341 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7342 | else | |
7343 | var=DEFAULT_wxUSE_$toolkit | |
7344 | fi | |
7345 | eval "wxUSE_$toolkit=\$${var}" | |
7346 | done | |
7347 | fi | |
7348 | ||
1e6feb95 | 7349 | 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 | 7350 | |
ec14dd32 VZ |
7351 | case "${host}" in |
7352 | *-pc-os2_emx ) | |
7353 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7354 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7355 | LEX_STEM="lexyy" | |
7356 | ;; | |
7357 | *) | |
7358 | PATH_IFS=':' | |
7359 | LEX_STEM="lex.yy" | |
7360 | ;; | |
7361 | esac | |
10f2d63a VZ |
7362 | |
7363 | case "$NUM_TOOLKITS" in | |
7364 | 1) | |
7365 | ;; | |
7366 | 0) | |
698dcdb6 | 7367 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } |
10f2d63a VZ |
7368 | ;; |
7369 | *) | |
698dcdb6 | 7370 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } |
10f2d63a VZ |
7371 | esac |
7372 | ||
7373 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7374 | var=wxUSE_$toolkit | |
7375 | eval "value=\$${var}" | |
7376 | if test "x$value" != x; then | |
7377 | cache_var=CACHE_$toolkit | |
7378 | eval "cache=\$${cache_var}" | |
7379 | if test "$cache" = 1; then | |
7380 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7381 | fi | |
7382 | if test "$value" = 1; then | |
8168de4c VZ |
7383 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` |
7384 | echo "$ac_t""$toolkit_echo" 1>&6 | |
10f2d63a VZ |
7385 | fi |
7386 | fi | |
7387 | done | |
7388 | ||
7389 | else | |
cf27ef00 | 7390 | PATH_IFS=':' |
698dcdb6 | 7391 | echo "$ac_t""base only" 1>&6 |
10f2d63a VZ |
7392 | fi |
7393 | ||
698dcdb6 VZ |
7394 | |
7395 | cat > confcache <<\EOF | |
10f2d63a VZ |
7396 | # This file is a shell script that caches the results of configure |
7397 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7398 | # scripts and configure runs. It is not useful on other systems. |
7399 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7400 | # |
698dcdb6 VZ |
7401 | # By default, configure uses ./config.cache as the cache file, |
7402 | # creating it if it does not exist already. You can give configure | |
7403 | # the --cache-file=FILE option to use a different cache file; that is | |
7404 | # what configure does when it calls configure scripts in | |
7405 | # subdirectories, so they share the cache. | |
7406 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7407 | # config.status only pays attention to the cache file if you give it the | |
7408 | # --recheck option to rerun configure. | |
10f2d63a | 7409 | # |
698dcdb6 | 7410 | EOF |
10f2d63a VZ |
7411 | # The following way of writing the cache mishandles newlines in values, |
7412 | # but we know of no workaround that is simple, portable, and efficient. | |
7413 | # So, don't put newlines in cache variables' values. | |
7414 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7415 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7416 | (set) 2>&1 | |
7417 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7418 | *ac_space=\ *) | |
7419 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7420 | # turns \\\\ into \\, and sed turns \\ into \). | |
7421 | sed -n \ | |
7422 | -e "s/'/'\\\\''/g" \ | |
7423 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7424 | ;; | |
7425 | *) | |
7426 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7427 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7428 | ;; | |
7429 | esac >> confcache | |
7430 | if cmp -s $cache_file confcache; then | |
7431 | : | |
7432 | else | |
10f2d63a | 7433 | if test -w $cache_file; then |
698dcdb6 VZ |
7434 | echo "updating cache $cache_file" |
7435 | cat confcache > $cache_file | |
10f2d63a VZ |
7436 | else |
7437 | echo "not updating unwritable cache $cache_file" | |
7438 | fi | |
7439 | fi | |
7440 | rm -f confcache | |
7441 | ||
698dcdb6 | 7442 | |
e59890c3 | 7443 | if test "$build" != "$host" ; then |
10f2d63a VZ |
7444 | CC=$host_alias-gcc |
7445 | CXX=$host_alias-c++ | |
7446 | AR=$host_alias-ar | |
7447 | RANLIB=$host_alias-ranlib | |
7448 | DLLTOOL=$host_alias-dlltool | |
32832908 | 7449 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
7450 | LD=$host_alias-ld |
7451 | NM=$host_alias-nm | |
7452 | STRIP=$host_alias-strip | |
10f2d63a VZ |
7453 | fi |
7454 | ||
698dcdb6 | 7455 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 7456 | set dummy gcc; ac_word=$2 |
698dcdb6 | 7457 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
24fd6d87 | 7458 | echo "configure:7459: checking for $ac_word" >&5 |
698dcdb6 VZ |
7459 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7460 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
7461 | else |
7462 | if test -n "$CC"; then | |
7463 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 7464 | else |
698dcdb6 VZ |
7465 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7466 | ac_dummy="$PATH" | |
7467 | for ac_dir in $ac_dummy; do | |
7468 | test -z "$ac_dir" && ac_dir=. | |
7469 | if test -f $ac_dir/$ac_word; then | |
7470 | ac_cv_prog_CC="gcc" | |
7471 | break | |
7472 | fi | |
7473 | done | |
7474 | IFS="$ac_save_ifs" | |
10f2d63a | 7475 | fi |
6232543b | 7476 | fi |
698dcdb6 | 7477 | CC="$ac_cv_prog_CC" |
6232543b | 7478 | if test -n "$CC"; then |
698dcdb6 | 7479 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7480 | else |
698dcdb6 | 7481 | echo "$ac_t""no" 1>&6 |
1e487827 | 7482 | fi |
6232543b | 7483 | |
1e487827 VS |
7484 | if test -z "$CC"; then |
7485 | # Extract the first word of "cc", so it can be a program name with args. | |
7486 | set dummy cc; ac_word=$2 | |
698dcdb6 | 7487 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
24fd6d87 | 7488 | echo "configure:7489: checking for $ac_word" >&5 |
698dcdb6 VZ |
7489 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7490 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7491 | else |
7492 | if test -n "$CC"; then | |
7493 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7494 | else | |
698dcdb6 | 7495 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 7496 | ac_prog_rejected=no |
698dcdb6 VZ |
7497 | ac_dummy="$PATH" |
7498 | for ac_dir in $ac_dummy; do | |
7499 | test -z "$ac_dir" && ac_dir=. | |
7500 | if test -f $ac_dir/$ac_word; then | |
7501 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7502 | ac_prog_rejected=yes | |
7503 | continue | |
7504 | fi | |
7505 | ac_cv_prog_CC="cc" | |
7506 | break | |
7507 | fi | |
7508 | done | |
7509 | IFS="$ac_save_ifs" | |
1e487827 VS |
7510 | if test $ac_prog_rejected = yes; then |
7511 | # We found a bogon in the path, so make sure we never use it. | |
7512 | set dummy $ac_cv_prog_CC | |
7513 | shift | |
698dcdb6 | 7514 | if test $# -gt 0; then |
1e487827 VS |
7515 | # We chose a different compiler from the bogus one. |
7516 | # However, it has the same basename, so the bogon will be chosen | |
7517 | # first if we set CC to just the basename; use the full file name. | |
7518 | shift | |
698dcdb6 | 7519 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
7520 | shift |
7521 | ac_cv_prog_CC="$@" | |
703e0a69 | 7522 | fi |
1e487827 VS |
7523 | fi |
7524 | fi | |
7525 | fi | |
698dcdb6 | 7526 | CC="$ac_cv_prog_CC" |
1e487827 | 7527 | if test -n "$CC"; then |
698dcdb6 | 7528 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 7529 | else |
698dcdb6 | 7530 | echo "$ac_t""no" 1>&6 |
703e0a69 | 7531 | fi |
1e487827 | 7532 | |
698dcdb6 VZ |
7533 | if test -z "$CC"; then |
7534 | case "`uname -s`" in | |
7535 | *win32* | *WIN32*) | |
7536 | # Extract the first word of "cl", so it can be a program name with args. | |
7537 | set dummy cl; ac_word=$2 | |
7538 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24fd6d87 | 7539 | echo "configure:7540: checking for $ac_word" >&5 |
698dcdb6 VZ |
7540 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
7541 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
7542 | else |
7543 | if test -n "$CC"; then | |
7544 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 7545 | else |
698dcdb6 VZ |
7546 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7547 | ac_dummy="$PATH" | |
7548 | for ac_dir in $ac_dummy; do | |
7549 | test -z "$ac_dir" && ac_dir=. | |
7550 | if test -f $ac_dir/$ac_word; then | |
7551 | ac_cv_prog_CC="cl" | |
7552 | break | |
7553 | fi | |
7554 | done | |
7555 | IFS="$ac_save_ifs" | |
703e0a69 | 7556 | fi |
1e487827 | 7557 | fi |
698dcdb6 | 7558 | CC="$ac_cv_prog_CC" |
1e487827 | 7559 | if test -n "$CC"; then |
698dcdb6 | 7560 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 7561 | else |
698dcdb6 | 7562 | echo "$ac_t""no" 1>&6 |
1e487827 | 7563 | fi |
698dcdb6 VZ |
7564 | ;; |
7565 | esac | |
7566 | fi | |
7567 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
7568 | fi |
7569 | ||
698dcdb6 | 7570 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
24fd6d87 | 7571 | echo "configure:7572: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1e487827 | 7572 | |
698dcdb6 VZ |
7573 | ac_ext=c |
7574 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7575 | ac_cpp='$CPP $CPPFLAGS' | |
7576 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7577 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7578 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 7579 | |
698dcdb6 | 7580 | cat > conftest.$ac_ext << EOF |
1e487827 | 7581 | |
24fd6d87 | 7582 | #line 7583 "configure" |
1e487827 VS |
7583 | #include "confdefs.h" |
7584 | ||
698dcdb6 VZ |
7585 | main(){return(0);} |
7586 | EOF | |
24fd6d87 | 7587 | if { (eval echo configure:7588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7588 | ac_cv_prog_cc_works=yes |
7589 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7590 | if (./conftest; exit) 2>/dev/null; then | |
7591 | ac_cv_prog_cc_cross=no | |
7592 | else | |
7593 | ac_cv_prog_cc_cross=yes | |
7594 | fi | |
7595 | else | |
7596 | echo "configure: failed program was:" >&5 | |
7597 | cat conftest.$ac_ext >&5 | |
7598 | ac_cv_prog_cc_works=no | |
7599 | fi | |
7600 | rm -fr conftest* | |
7601 | ac_ext=c | |
7602 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7603 | ac_cpp='$CPP $CPPFLAGS' | |
7604 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7605 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7606 | cross_compiling=$ac_cv_prog_cc_cross | |
7607 | ||
7608 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
7609 | if test $ac_cv_prog_cc_works = no; then | |
7610 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
7611 | fi | |
7612 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
24fd6d87 | 7613 | echo "configure:7614: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7614 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
7615 | cross_compiling=$ac_cv_prog_cc_cross | |
7616 | ||
7617 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
24fd6d87 | 7618 | echo "configure:7619: checking whether we are using GNU C" >&5 |
698dcdb6 VZ |
7619 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
7620 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7621 | else | |
7622 | cat > conftest.c <<EOF | |
7623 | #ifdef __GNUC__ | |
7624 | yes; | |
1e487827 | 7625 | #endif |
698dcdb6 | 7626 | EOF |
24fd6d87 | 7627 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7628 | ac_cv_prog_gcc=yes |
7629 | else | |
7630 | ac_cv_prog_gcc=no | |
7631 | fi | |
7632 | fi | |
1e487827 | 7633 | |
698dcdb6 | 7634 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 7635 | |
698dcdb6 VZ |
7636 | if test $ac_cv_prog_gcc = yes; then |
7637 | GCC=yes | |
7638 | else | |
7639 | GCC= | |
7640 | fi | |
1e487827 | 7641 | |
698dcdb6 VZ |
7642 | ac_test_CFLAGS="${CFLAGS+set}" |
7643 | ac_save_CFLAGS="$CFLAGS" | |
7644 | CFLAGS= | |
7645 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
24fd6d87 | 7646 | echo "configure:7647: checking whether ${CC-cc} accepts -g" >&5 |
698dcdb6 VZ |
7647 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
7648 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7649 | else | |
7650 | echo 'void f(){}' > conftest.c | |
7651 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
7652 | ac_cv_prog_cc_g=yes |
7653 | else | |
698dcdb6 | 7654 | ac_cv_prog_cc_g=no |
10f2d63a | 7655 | fi |
698dcdb6 VZ |
7656 | rm -f conftest* |
7657 | ||
10f2d63a | 7658 | fi |
698dcdb6 VZ |
7659 | |
7660 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 7661 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 7662 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
7663 | elif test $ac_cv_prog_cc_g = yes; then |
7664 | if test "$GCC" = yes; then | |
7665 | CFLAGS="-g -O2" | |
7666 | else | |
7667 | CFLAGS="-g" | |
7668 | fi | |
7669 | else | |
7670 | if test "$GCC" = yes; then | |
7671 | CFLAGS="-O2" | |
7672 | else | |
7673 | CFLAGS= | |
7674 | fi | |
7675 | fi | |
7676 | ||
7677 | ||
7678 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
7679 | ||
698dcdb6 | 7680 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
24fd6d87 | 7681 | echo "configure:7682: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
7682 | # On Suns, sometimes $CPP names a directory. |
7683 | if test -n "$CPP" && test -d "$CPP"; then | |
7684 | CPP= | |
7685 | fi | |
7686 | if test -z "$CPP"; then | |
698dcdb6 VZ |
7687 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
7688 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7689 | else | |
7690 | # This must be in double quotes, not single quotes, because CPP may get | |
7691 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
7692 | CPP="${CC-cc} -E" | |
10f2d63a | 7693 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
7694 | # not just through cpp. |
7695 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 7696 | #line 7697 "configure" |
10f2d63a VZ |
7697 | #include "confdefs.h" |
7698 | #include <assert.h> | |
698dcdb6 VZ |
7699 | Syntax Error |
7700 | EOF | |
7701 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 7702 | { (eval echo configure:7703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7703 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7704 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7705 | : |
7706 | else | |
698dcdb6 VZ |
7707 | echo "$ac_err" >&5 |
7708 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7709 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7710 | rm -rf conftest* |
7711 | CPP="${CC-cc} -E -traditional-cpp" | |
7712 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 7713 | #line 7714 "configure" |
10f2d63a | 7714 | #include "confdefs.h" |
698dcdb6 VZ |
7715 | #include <assert.h> |
7716 | Syntax Error | |
7717 | EOF | |
7718 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 7719 | { (eval echo configure:7720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7720 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7721 | if test -z "$ac_err"; then | |
7722 | : | |
10f2d63a | 7723 | else |
698dcdb6 VZ |
7724 | echo "$ac_err" >&5 |
7725 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7726 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7727 | rm -rf conftest* |
7728 | CPP="${CC-cc} -nologo -E" | |
7729 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 7730 | #line 7731 "configure" |
10f2d63a VZ |
7731 | #include "confdefs.h" |
7732 | #include <assert.h> | |
698dcdb6 VZ |
7733 | Syntax Error |
7734 | EOF | |
7735 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 7736 | { (eval echo configure:7737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7737 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7738 | if test -z "$ac_err"; then | |
10f2d63a VZ |
7739 | : |
7740 | else | |
698dcdb6 VZ |
7741 | echo "$ac_err" >&5 |
7742 | echo "configure: failed program was:" >&5 | |
10f2d63a | 7743 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7744 | rm -rf conftest* |
7745 | CPP=/lib/cpp | |
10f2d63a | 7746 | fi |
698dcdb6 | 7747 | rm -f conftest* |
10f2d63a | 7748 | fi |
698dcdb6 | 7749 | rm -f conftest* |
703e0a69 | 7750 | fi |
698dcdb6 VZ |
7751 | rm -f conftest* |
7752 | ac_cv_prog_CPP="$CPP" | |
7753 | fi | |
7754 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 7755 | else |
698dcdb6 | 7756 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 7757 | fi |
698dcdb6 | 7758 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a VZ |
7759 | |
7760 | ||
698dcdb6 VZ |
7761 | if test $ac_cv_prog_gcc = yes; then |
7762 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
24fd6d87 | 7763 | echo "configure:7764: checking whether ${CC-cc} needs -traditional" >&5 |
698dcdb6 VZ |
7764 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
7765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7766 | else |
7767 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 | 7768 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 7769 | #line 7770 "configure" |
10f2d63a VZ |
7770 | #include "confdefs.h" |
7771 | #include <sgtty.h> | |
7772 | Autoconf TIOCGETP | |
698dcdb6 | 7773 | EOF |
10f2d63a VZ |
7774 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7775 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7776 | rm -rf conftest* |
10f2d63a VZ |
7777 | ac_cv_prog_gcc_traditional=yes |
7778 | else | |
698dcdb6 | 7779 | rm -rf conftest* |
10f2d63a VZ |
7780 | ac_cv_prog_gcc_traditional=no |
7781 | fi | |
7782 | rm -f conftest* | |
7783 | ||
698dcdb6 | 7784 | |
10f2d63a | 7785 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 | 7786 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 7787 | #line 7788 "configure" |
10f2d63a VZ |
7788 | #include "confdefs.h" |
7789 | #include <termio.h> | |
7790 | Autoconf TCGETA | |
698dcdb6 | 7791 | EOF |
10f2d63a VZ |
7792 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7793 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 7794 | rm -rf conftest* |
10f2d63a VZ |
7795 | ac_cv_prog_gcc_traditional=yes |
7796 | fi | |
7797 | rm -f conftest* | |
7798 | ||
7799 | fi | |
7800 | fi | |
698dcdb6 VZ |
7801 | |
7802 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
7803 | if test $ac_cv_prog_gcc_traditional = yes; then |
7804 | CC="$CC -traditional" | |
7805 | fi | |
7806 | fi | |
7807 | ||
703e0a69 | 7808 | |
698dcdb6 VZ |
7809 | |
7810 | ac_ext=C | |
7811 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 7812 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
7813 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
7814 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7815 | cross_compiling=$ac_cv_prog_cxx_cross | |
7816 | ||
7817 | ||
7818 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
7819 | do | |
7820 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7821 | set dummy $ac_prog; ac_word=$2 | |
7822 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24fd6d87 | 7823 | echo "configure:7824: checking for $ac_word" >&5 |
698dcdb6 VZ |
7824 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
7825 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7826 | else |
7827 | if test -n "$CXX"; then | |
7828 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
7829 | else | |
698dcdb6 VZ |
7830 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7831 | ac_dummy="$PATH" | |
7832 | for ac_dir in $ac_dummy; do | |
7833 | test -z "$ac_dir" && ac_dir=. | |
7834 | if test -f $ac_dir/$ac_word; then | |
7835 | ac_cv_prog_CXX="$ac_prog" | |
7836 | break | |
7837 | fi | |
7838 | done | |
7839 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
7840 | fi |
7841 | fi | |
698dcdb6 | 7842 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 7843 | if test -n "$CXX"; then |
698dcdb6 | 7844 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 7845 | else |
698dcdb6 | 7846 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
7847 | fi |
7848 | ||
698dcdb6 | 7849 | test -n "$CXX" && break |
10f2d63a | 7850 | done |
698dcdb6 | 7851 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
7852 | |
7853 | ||
698dcdb6 | 7854 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
24fd6d87 | 7855 | echo "configure:7856: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a | 7856 | |
698dcdb6 VZ |
7857 | ac_ext=C |
7858 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7859 | ac_cpp='$CXXCPP $CPPFLAGS' | |
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 | |
703e0a69 | 7863 | |
698dcdb6 VZ |
7864 | cat > conftest.$ac_ext << EOF |
7865 | ||
24fd6d87 | 7866 | #line 7867 "configure" |
10f2d63a VZ |
7867 | #include "confdefs.h" |
7868 | ||
698dcdb6 VZ |
7869 | int main(){return(0);} |
7870 | EOF | |
24fd6d87 | 7871 | if { (eval echo configure:7872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
7872 | ac_cv_prog_cxx_works=yes |
7873 | # If we can't run a trivial program, we are probably using a cross compiler. | |
7874 | if (./conftest; exit) 2>/dev/null; then | |
7875 | ac_cv_prog_cxx_cross=no | |
7876 | else | |
7877 | ac_cv_prog_cxx_cross=yes | |
7878 | fi | |
7879 | else | |
7880 | echo "configure: failed program was:" >&5 | |
7881 | cat conftest.$ac_ext >&5 | |
7882 | ac_cv_prog_cxx_works=no | |
7883 | fi | |
7884 | rm -fr conftest* | |
7885 | ac_ext=C | |
7886 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7887 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7888 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7889 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7890 | cross_compiling=$ac_cv_prog_cxx_cross | |
7891 | ||
7892 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
7893 | if test $ac_cv_prog_cxx_works = no; then | |
7894 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
7895 | fi | |
7896 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
24fd6d87 | 7897 | echo "configure:7898: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
698dcdb6 VZ |
7898 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
7899 | cross_compiling=$ac_cv_prog_cxx_cross | |
7900 | ||
7901 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
24fd6d87 | 7902 | echo "configure:7903: checking whether we are using GNU C++" >&5 |
698dcdb6 VZ |
7903 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
7904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7905 | else | |
7906 | cat > conftest.C <<EOF | |
7907 | #ifdef __GNUC__ | |
7908 | yes; | |
10f2d63a | 7909 | #endif |
698dcdb6 | 7910 | EOF |
24fd6d87 | 7911 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
698dcdb6 VZ |
7912 | ac_cv_prog_gxx=yes |
7913 | else | |
7914 | ac_cv_prog_gxx=no | |
7915 | fi | |
7916 | fi | |
10f2d63a | 7917 | |
698dcdb6 | 7918 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 7919 | |
698dcdb6 VZ |
7920 | if test $ac_cv_prog_gxx = yes; then |
7921 | GXX=yes | |
7922 | else | |
7923 | GXX= | |
7924 | fi | |
10f2d63a | 7925 | |
698dcdb6 VZ |
7926 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
7927 | ac_save_CXXFLAGS="$CXXFLAGS" | |
7928 | CXXFLAGS= | |
7929 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
24fd6d87 | 7930 | echo "configure:7931: checking whether ${CXX-g++} accepts -g" >&5 |
698dcdb6 VZ |
7931 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
7932 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7933 | else | |
7934 | echo 'void f(){}' > conftest.cc | |
7935 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
7936 | ac_cv_prog_cxx_g=yes |
7937 | else | |
698dcdb6 | 7938 | ac_cv_prog_cxx_g=no |
10f2d63a | 7939 | fi |
698dcdb6 VZ |
7940 | rm -f conftest* |
7941 | ||
10f2d63a | 7942 | fi |
698dcdb6 VZ |
7943 | |
7944 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 7945 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 7946 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
7947 | elif test $ac_cv_prog_cxx_g = yes; then |
7948 | if test "$GXX" = yes; then | |
7949 | CXXFLAGS="-g -O2" | |
7950 | else | |
7951 | CXXFLAGS="-g" | |
7952 | fi | |
7953 | else | |
7954 | if test "$GXX" = yes; then | |
7955 | CXXFLAGS="-O2" | |
7956 | else | |
7957 | CXXFLAGS= | |
7958 | fi | |
7959 | fi | |
7960 | ||
7961 | ||
698dcdb6 | 7962 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
24fd6d87 | 7963 | echo "configure:7964: checking how to run the C++ preprocessor" >&5 |
1e487827 | 7964 | if test -z "$CXXCPP"; then |
698dcdb6 VZ |
7965 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
7966 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 7967 | else |
698dcdb6 VZ |
7968 | ac_ext=C |
7969 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7970 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7971 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7972 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7973 | cross_compiling=$ac_cv_prog_cxx_cross | |
7974 | CXXCPP="${CXX-g++} -E" | |
7975 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 7976 | #line 7977 "configure" |
1e487827 | 7977 | #include "confdefs.h" |
698dcdb6 VZ |
7978 | #include <stdlib.h> |
7979 | EOF | |
7980 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 7981 | { (eval echo configure:7982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
7982 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7983 | if test -z "$ac_err"; then | |
1e487827 VS |
7984 | : |
7985 | else | |
698dcdb6 VZ |
7986 | echo "$ac_err" >&5 |
7987 | echo "configure: failed program was:" >&5 | |
1e487827 | 7988 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
7989 | rm -rf conftest* |
7990 | CXXCPP=/lib/cpp | |
1e487827 | 7991 | fi |
698dcdb6 VZ |
7992 | rm -f conftest* |
7993 | ac_cv_prog_CXXCPP="$CXXCPP" | |
7994 | ac_ext=C | |
7995 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
7996 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7997 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
7998 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
7999 | cross_compiling=$ac_cv_prog_cxx_cross | |
1e487827 | 8000 | fi |
1e487827 | 8001 | fi |
698dcdb6 VZ |
8002 | CXXCPP="$ac_cv_prog_CXXCPP" |
8003 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e487827 | 8004 | |
10f2d63a VZ |
8005 | |
8006 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
8007 | ||
8008 | ac_ext=c | |
698dcdb6 | 8009 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 8010 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
8011 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
8012 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8013 | cross_compiling=$ac_cv_prog_cc_cross | |
8014 | ||
8015 | ||
8016 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8017 | set dummy ranlib; ac_word=$2 | |
8018 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24fd6d87 | 8019 | echo "configure:8020: checking for $ac_word" >&5 |
698dcdb6 VZ |
8020 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
8021 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8022 | else |
8023 | if test -n "$RANLIB"; then | |
8024 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8025 | else | |
698dcdb6 VZ |
8026 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8027 | ac_dummy="$PATH" | |
8028 | for ac_dir in $ac_dummy; do | |
8029 | test -z "$ac_dir" && ac_dir=. | |
8030 | if test -f $ac_dir/$ac_word; then | |
8031 | ac_cv_prog_RANLIB="ranlib" | |
8032 | break | |
8033 | fi | |
8034 | done | |
8035 | IFS="$ac_save_ifs" | |
8036 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
8037 | fi |
8038 | fi | |
698dcdb6 | 8039 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 8040 | if test -n "$RANLIB"; then |
698dcdb6 | 8041 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 8042 | else |
698dcdb6 | 8043 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8044 | fi |
8045 | ||
8046 | ||
8047 | # Extract the first word of "ar", so it can be a program name with args. | |
8048 | set dummy ar; ac_word=$2 | |
698dcdb6 | 8049 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
24fd6d87 | 8050 | echo "configure:8051: checking for $ac_word" >&5 |
698dcdb6 VZ |
8051 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
8052 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8053 | else |
8054 | if test -n "$AR"; then | |
8055 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8056 | else | |
698dcdb6 VZ |
8057 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8058 | ac_dummy="$PATH" | |
8059 | for ac_dir in $ac_dummy; do | |
8060 | test -z "$ac_dir" && ac_dir=. | |
8061 | if test -f $ac_dir/$ac_word; then | |
8062 | ac_cv_prog_AR="ar" | |
8063 | break | |
8064 | fi | |
8065 | done | |
8066 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8067 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
8068 | fi | |
8069 | fi | |
698dcdb6 | 8070 | AR="$ac_cv_prog_AR" |
10f2d63a | 8071 | if test -n "$AR"; then |
698dcdb6 | 8072 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 8073 | else |
698dcdb6 | 8074 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8075 | fi |
8076 | ||
698dcdb6 | 8077 | |
10f2d63a VZ |
8078 | # Find a good install program. We prefer a C program (faster), |
8079 | # so one script is as good as another. But avoid the broken or | |
8080 | # incompatible versions: | |
8081 | # SysV /etc/install, /usr/sbin/install | |
8082 | # SunOS /usr/etc/install | |
8083 | # IRIX /sbin/install | |
8084 | # AIX /bin/install | |
8085 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8086 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8087 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8088 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 | 8089 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
24fd6d87 | 8090 | echo "configure:8091: checking for a BSD compatible install" >&5 |
10f2d63a | 8091 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
8092 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
8093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8094 | else |
698dcdb6 | 8095 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
8096 | for ac_dir in $PATH; do |
8097 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
8098 | case "$ac_dir/" in |
8099 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
8100 | *) |
8101 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8102 | # Don't use installbsd from OSF since it installs stuff as root | |
8103 | # by default. | |
8104 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 8105 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 8106 | if test $ac_prog = install && |
698dcdb6 | 8107 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
8108 | # AIX install. It has an incompatible calling convention. |
8109 | : | |
8110 | else | |
8111 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8112 | break 2 | |
8113 | fi | |
8114 | fi | |
8115 | done | |
8116 | ;; | |
8117 | esac | |
8118 | done | |
698dcdb6 | 8119 | IFS="$ac_save_IFS" |
10f2d63a VZ |
8120 | |
8121 | fi | |
8122 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 8123 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
8124 | else |
8125 | # As a last resort, use the slow shell script. We don't cache a | |
8126 | # path for INSTALL within a source directory, because that will | |
8127 | # break other packages using the cache if that directory is | |
8128 | # removed, or if the path is relative. | |
698dcdb6 | 8129 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
8130 | fi |
8131 | fi | |
698dcdb6 | 8132 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
8133 | |
8134 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8135 | # It thinks the first close brace ends the variable substitution. | |
8136 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8137 | ||
698dcdb6 | 8138 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
8139 | |
8140 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8141 | ||
698dcdb6 | 8142 | |
10f2d63a VZ |
8143 | # Extract the first word of "strip", so it can be a program name with args. |
8144 | set dummy strip; ac_word=$2 | |
698dcdb6 | 8145 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
24fd6d87 | 8146 | echo "configure:8147: checking for $ac_word" >&5 |
698dcdb6 VZ |
8147 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
8148 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8149 | else |
8150 | if test -n "$STRIP"; then | |
8151 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8152 | else | |
698dcdb6 VZ |
8153 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8154 | ac_dummy="$PATH" | |
8155 | for ac_dir in $ac_dummy; do | |
8156 | test -z "$ac_dir" && ac_dir=. | |
8157 | if test -f $ac_dir/$ac_word; then | |
8158 | ac_cv_prog_STRIP="strip" | |
8159 | break | |
8160 | fi | |
8161 | done | |
8162 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8163 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
8164 | fi | |
8165 | fi | |
698dcdb6 | 8166 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 8167 | if test -n "$STRIP"; then |
698dcdb6 | 8168 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 8169 | else |
698dcdb6 | 8170 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8171 | fi |
8172 | ||
698dcdb6 VZ |
8173 | |
8174 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
24fd6d87 | 8175 | echo "configure:8176: checking make for VPATH support" >&5 |
10f2d63a VZ |
8176 | cat - << EOF > confMake |
8177 | check : file | |
8178 | cp \$? \$@ | |
8179 | cp \$? final_file | |
8180 | EOF | |
8181 | ||
8182 | if test ! -d sub ; then | |
8183 | mkdir sub | |
8184 | fi | |
8185 | echo dummy > sub/file | |
f6bcfd97 | 8186 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
8187 | RESULT=$? |
8188 | rm -f sub/file check final_file confMake | |
8189 | rmdir sub | |
8190 | if test "$RESULT" = 0; then | |
698dcdb6 | 8191 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8192 | else |
698dcdb6 VZ |
8193 | echo "$ac_t""no" 1>&6 |
8194 | { echo "configure: error: | |
1e487827 VS |
8195 | You need a make-utility that is able to use the variable |
8196 | VPATH correctly. | |
8197 | If your version of make does not support VPATH correctly, | |
8198 | please install GNU-make (possibly as gmake), and start | |
8199 | configure with the following command: | |
8200 | export MAKE=gmake; ./configure for sh-type shells | |
8201 | setenv MAKE gmake; ./configure for csh-type shells | |
8202 | Also please do remember to use gmake in this case every time | |
8203 | you are trying to compile. | |
698dcdb6 | 8204 | " 1>&2; exit 1; } |
10f2d63a VZ |
8205 | fi |
8206 | ||
8207 | for ac_prog in 'bison -y' byacc | |
8208 | do | |
698dcdb6 | 8209 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 8210 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 | 8211 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
24fd6d87 | 8212 | echo "configure:8213: checking for $ac_word" >&5 |
698dcdb6 VZ |
8213 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
8214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8215 | else |
8216 | if test -n "$YACC"; then | |
8217 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8218 | else | |
698dcdb6 VZ |
8219 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8220 | ac_dummy="$PATH" | |
8221 | for ac_dir in $ac_dummy; do | |
8222 | test -z "$ac_dir" && ac_dir=. | |
8223 | if test -f $ac_dir/$ac_word; then | |
8224 | ac_cv_prog_YACC="$ac_prog" | |
8225 | break | |
8226 | fi | |
8227 | done | |
8228 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8229 | fi |
8230 | fi | |
698dcdb6 | 8231 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 8232 | if test -n "$YACC"; then |
698dcdb6 | 8233 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 8234 | else |
698dcdb6 | 8235 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8236 | fi |
8237 | ||
698dcdb6 | 8238 | test -n "$YACC" && break |
10f2d63a VZ |
8239 | done |
8240 | test -n "$YACC" || YACC="yacc" | |
8241 | ||
698dcdb6 VZ |
8242 | |
8243 | # Extract the first word of "flex", so it can be a program name with args. | |
8244 | set dummy flex; ac_word=$2 | |
8245 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
24fd6d87 | 8246 | echo "configure:8247: checking for $ac_word" >&5 |
698dcdb6 VZ |
8247 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
8248 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8249 | else |
8250 | if test -n "$LEX"; then | |
8251 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8252 | else | |
698dcdb6 VZ |
8253 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8254 | ac_dummy="$PATH" | |
8255 | for ac_dir in $ac_dummy; do | |
8256 | test -z "$ac_dir" && ac_dir=. | |
8257 | if test -f $ac_dir/$ac_word; then | |
8258 | ac_cv_prog_LEX="flex" | |
8259 | break | |
8260 | fi | |
8261 | done | |
8262 | IFS="$ac_save_ifs" | |
8263 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
8264 | fi |
8265 | fi | |
698dcdb6 | 8266 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 8267 | if test -n "$LEX"; then |
698dcdb6 | 8268 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 8269 | else |
698dcdb6 | 8270 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8271 | fi |
8272 | ||
8273 | if test -z "$LEXLIB" | |
8274 | then | |
698dcdb6 VZ |
8275 | case "$LEX" in |
8276 | flex*) ac_lib=fl ;; | |
8277 | *) ac_lib=l ;; | |
8278 | esac | |
8279 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
24fd6d87 | 8280 | echo "configure:8281: checking for yywrap in -l$ac_lib" >&5 |
698dcdb6 VZ |
8281 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
8282 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8283 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284 | else | |
8285 | ac_save_LIBS="$LIBS" | |
8286 | LIBS="-l$ac_lib $LIBS" | |
8287 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 8288 | #line 8289 "configure" |
10f2d63a VZ |
8289 | #include "confdefs.h" |
8290 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8291 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8292 | builtin and then its argument prototype would still apply. */ |
8293 | char yywrap(); | |
10f2d63a | 8294 | |
698dcdb6 VZ |
8295 | int main() { |
8296 | yywrap() | |
8297 | ; return 0; } | |
8298 | EOF | |
24fd6d87 | 8299 | if { (eval echo configure:8300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
8300 | rm -rf conftest* |
8301 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 8302 | else |
698dcdb6 VZ |
8303 | echo "configure: failed program was:" >&5 |
8304 | cat conftest.$ac_ext >&5 | |
8305 | rm -rf conftest* | |
8306 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 8307 | fi |
698dcdb6 VZ |
8308 | rm -f conftest* |
8309 | LIBS="$ac_save_LIBS" | |
8310 | ||
10f2d63a | 8311 | fi |
698dcdb6 VZ |
8312 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
8313 | echo "$ac_t""yes" 1>&6 | |
8314 | LEXLIB="-l$ac_lib" | |
8315 | else | |
8316 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
8317 | fi |
8318 | ||
8319 | fi | |
8320 | ||
8321 | ||
698dcdb6 | 8322 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
24fd6d87 | 8323 | echo "configure:8324: checking whether ln -s works" >&5 |
698dcdb6 VZ |
8324 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
8325 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8326 | else |
698dcdb6 VZ |
8327 | rm -f conftestdata |
8328 | if ln -s X conftestdata 2>/dev/null | |
8329 | then | |
8330 | rm -f conftestdata | |
8331 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 8332 | else |
698dcdb6 | 8333 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
8334 | fi |
8335 | fi | |
698dcdb6 VZ |
8336 | LN_S="$ac_cv_prog_LN_S" |
8337 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8338 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 8339 | else |
698dcdb6 | 8340 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8341 | fi |
8342 | ||
8343 | ||
8344 | ||
8345 | SEARCH_INCLUDE="\ | |
8346 | /usr/local/include \ | |
8347 | \ | |
8348 | /usr/Motif-1.2/include \ | |
8349 | /usr/Motif-2.1/include \ | |
8350 | \ | |
8351 | /usr/include/Motif1.2 \ | |
8352 | /opt/xpm/include/X11 \ | |
8353 | /opt/GBxpm/include/ \ | |
8354 | /opt/GBxpm/X11/include/ \ | |
8355 | \ | |
8356 | /usr/Motif1.2/include \ | |
8357 | /usr/dt/include \ | |
afc31813 VZ |
8358 | /usr/openwin/include \ |
8359 | \ | |
10f2d63a VZ |
8360 | /usr/include/Xm \ |
8361 | \ | |
8362 | /usr/X11R6/include \ | |
afc31813 | 8363 | /usr/X11R6.4/include \ |
10f2d63a VZ |
8364 | /usr/X11R5/include \ |
8365 | /usr/X11R4/include \ | |
8366 | \ | |
10f2d63a VZ |
8367 | /usr/include/X11R6 \ |
8368 | /usr/include/X11R5 \ | |
8369 | /usr/include/X11R4 \ | |
8370 | \ | |
8371 | /usr/local/X11R6/include \ | |
8372 | /usr/local/X11R5/include \ | |
8373 | /usr/local/X11R4/include \ | |
8374 | \ | |
8375 | /usr/local/include/X11R6 \ | |
8376 | /usr/local/include/X11R5 \ | |
8377 | /usr/local/include/X11R4 \ | |
8378 | \ | |
8379 | /usr/X11/include \ | |
8380 | /usr/include/X11 \ | |
8381 | /usr/local/X11/include \ | |
8382 | /usr/local/include/X11 \ | |
8383 | \ | |
8384 | /usr/X386/include \ | |
8385 | /usr/x386/include \ | |
8386 | /usr/XFree86/include/X11 \ | |
8387 | \ | |
cf27ef00 | 8388 | X:/XFree86/include \ |
ec14dd32 VZ |
8389 | X:/XFree86/include/X11 \ |
8390 | \ | |
10f2d63a VZ |
8391 | /usr/include/gtk \ |
8392 | /usr/local/include/gtk \ | |
8393 | /usr/include/glib \ | |
8394 | /usr/local/include/glib \ | |
8395 | \ | |
8396 | /usr/include/qt \ | |
8397 | /usr/local/include/qt \ | |
8398 | \ | |
8399 | /usr/include/windows \ | |
8400 | /usr/include/wine \ | |
8401 | /usr/local/include/wine \ | |
8402 | \ | |
8403 | /usr/unsupported/include \ | |
8404 | /usr/athena/include \ | |
8405 | /usr/local/x11r5/include \ | |
8406 | /usr/lpp/Xamples/include \ | |
8407 | \ | |
10f2d63a | 8408 | /usr/openwin/share/include \ |
928b5c08 VZ |
8409 | \ |
8410 | /usr/include" | |
10f2d63a VZ |
8411 | |
8412 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8413 | ||
698dcdb6 VZ |
8414 | |
8415 | cat > confcache <<\EOF | |
10f2d63a VZ |
8416 | # This file is a shell script that caches the results of configure |
8417 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
8418 | # scripts and configure runs. It is not useful on other systems. |
8419 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8420 | # |
698dcdb6 VZ |
8421 | # By default, configure uses ./config.cache as the cache file, |
8422 | # creating it if it does not exist already. You can give configure | |
8423 | # the --cache-file=FILE option to use a different cache file; that is | |
8424 | # what configure does when it calls configure scripts in | |
8425 | # subdirectories, so they share the cache. | |
8426 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8427 | # config.status only pays attention to the cache file if you give it the | |
8428 | # --recheck option to rerun configure. | |
10f2d63a | 8429 | # |
698dcdb6 | 8430 | EOF |
10f2d63a VZ |
8431 | # The following way of writing the cache mishandles newlines in values, |
8432 | # but we know of no workaround that is simple, portable, and efficient. | |
8433 | # So, don't put newlines in cache variables' values. | |
8434 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8435 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
8436 | (set) 2>&1 | |
8437 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8438 | *ac_space=\ *) | |
8439 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8440 | # turns \\\\ into \\, and sed turns \\ into \). | |
8441 | sed -n \ | |
8442 | -e "s/'/'\\\\''/g" \ | |
8443 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8444 | ;; | |
8445 | *) | |
8446 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8447 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8448 | ;; | |
8449 | esac >> confcache | |
8450 | if cmp -s $cache_file confcache; then | |
8451 | : | |
8452 | else | |
10f2d63a | 8453 | if test -w $cache_file; then |
698dcdb6 VZ |
8454 | echo "updating cache $cache_file" |
8455 | cat confcache > $cache_file | |
10f2d63a VZ |
8456 | else |
8457 | echo "not updating unwritable cache $cache_file" | |
8458 | fi | |
8459 | fi | |
8460 | rm -f confcache | |
8461 | ||
698dcdb6 VZ |
8462 | |
8463 | ||
dad6c0ea VZ |
8464 | AFMINSTALL= |
8465 | ||
10f2d63a | 8466 | if test "$wxUSE_GUI" = "yes"; then |
1e6feb95 | 8467 | USE_GUI=1 |
10f2d63a | 8468 | |
1e6feb95 VZ |
8469 | TOOLKIT= |
8470 | TOOLKIT_INCLUDE= | |
10f2d63a | 8471 | |
1e6feb95 VZ |
8472 | GUI_TK_LIBRARY= |
8473 | GUI_TK_LINK= | |
10f2d63a | 8474 | |
1e6feb95 VZ |
8475 | WXGTK12= |
8476 | WXGTK127= | |
8477 | WXGTK20= | |
10f2d63a | 8478 | |
1e6feb95 | 8479 | WXWINE= |
10f2d63a | 8480 | |
1e6feb95 VZ |
8481 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
8482 | if test "$cross_compiling" = "yes" ; then | |
8483 | echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2 | |
8484 | else | |
8485 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
24fd6d87 | 8486 | echo "configure:8487: checking for Windows headers" >&5 |
1e6feb95 | 8487 | |
10f2d63a VZ |
8488 | ac_find_includes= |
8489 | for ac_dir in $SEARCH_INCLUDE; | |
8490 | do | |
8491 | if test -f "$ac_dir/windows.h"; then | |
8492 | ac_find_includes=$ac_dir | |
8493 | break | |
8494 | fi | |
8495 | done | |
8496 | ||
1e6feb95 VZ |
8497 | if test "$ac_find_includes" != "" ; then |
8498 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8499 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
8500 | else | |
8501 | echo "$ac_t""no" 1>&6 | |
8502 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
8503 | fi | |
10f2d63a | 8504 | fi |
10f2d63a | 8505 | |
1e6feb95 VZ |
8506 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" |
8507 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
f6bcfd97 | 8508 | |
1e6feb95 VZ |
8509 | if test "$wxUSE_ODBC" = "yes" ; then |
8510 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
8511 | fi | |
10f2d63a | 8512 | |
1e6feb95 VZ |
8513 | if test "$wxUSE_MINGW" = 1; then |
8514 | LDFLAGS="$LDFLAGS -mwindows" | |
8515 | fi | |
32832908 | 8516 | |
1e6feb95 VZ |
8517 | TOOLKIT=MSW |
8518 | GUIDIST=MSW_DIST | |
32832908 | 8519 | |
1e6feb95 VZ |
8520 | RCINCSWITCH="--include-dir" |
8521 | RCDEFSWITCH="--define" | |
8522 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
8523 | RCINPUTSWITCH="-i" | |
8524 | RCOUTPUTSWITCH="-o" | |
8525 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
32832908 | 8526 | |
1e6feb95 VZ |
8527 | RESPROGRAM="\$(RES_PROGRAM)" |
8528 | fi | |
10f2d63a | 8529 | |
1e6feb95 | 8530 | if test "$wxUSE_GTK" = 1; then |
8168de4c | 8531 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
24fd6d87 | 8532 | echo "configure:8533: checking for GTK+ version" >&5 |
8168de4c VZ |
8533 | |
8534 | gtk_version_cached=1 | |
8535 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
8536 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8537 | else | |
8538 | ||
8539 | gtk_version_cached=0 | |
8540 | echo "$ac_t""""" 1>&6 | |
8541 | ||
8542 | wx_cv_lib_gtk= | |
8543 | if test "x$wxUSE_GTK2" = "xyes"; then | |
8544 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
6f72b082 OK |
8545 | if test "${with_gtk_prefix+set}" = set; then |
8546 | withval="$with_gtk_prefix" | |
8547 | gtk_config_prefix="$withval" | |
8548 | else | |
8549 | gtk_config_prefix="" | |
698dcdb6 | 8550 | fi |
6f72b082 OK |
8551 | |
8552 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
8553 | if test "${with_gtk_exec_prefix+set}" = set; then | |
8554 | withval="$with_gtk_exec_prefix" | |
8555 | gtk_config_exec_prefix="$withval" | |
8556 | else | |
8557 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
8558 | fi |
8559 | ||
6f72b082 OK |
8560 | # Check whether --enable-gtktest or --disable-gtktest was given. |
8561 | if test "${enable_gtktest+set}" = set; then | |
8562 | enableval="$enable_gtktest" | |
698dcdb6 | 8563 | : |
6f72b082 OK |
8564 | else |
8565 | enable_gtktest=yes | |
698dcdb6 VZ |
8566 | fi |
8567 | ||
6f72b082 | 8568 | |
8168de4c | 8569 | for module in . |
6f72b082 OK |
8570 | do |
8571 | case "$module" in | |
8168de4c | 8572 | gthread) |
6f72b082 OK |
8573 | gtk_config_args="$gtk_config_args gthread" |
8574 | ;; | |
8575 | esac | |
8576 | done | |
8577 | ||
8578 | if test x$gtk_config_exec_prefix != x ; then | |
8579 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8580 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8581 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
8582 | fi | |
8583 | fi | |
8584 | if test x$gtk_config_prefix != x ; then | |
8585 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8586 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
8587 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
8588 | fi | |
8589 | fi | |
8590 | ||
8591 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
8592 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 | 8593 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
24fd6d87 | 8594 | echo "configure:8595: checking for $ac_word" >&5 |
698dcdb6 VZ |
8595 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
8596 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 8597 | else |
698dcdb6 VZ |
8598 | case "$GTK_CONFIG_2_0" in |
8599 | /*) | |
6f72b082 OK |
8600 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
8601 | ;; | |
698dcdb6 VZ |
8602 | ?:/*) |
8603 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
8604 | ;; | |
6f72b082 | 8605 | *) |
698dcdb6 VZ |
8606 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8607 | ac_dummy="$PATH" | |
8608 | for ac_dir in $ac_dummy; do | |
8609 | test -z "$ac_dir" && ac_dir=. | |
8610 | if test -f $ac_dir/$ac_word; then | |
8611 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
8612 | break | |
8613 | fi | |
8614 | done | |
8615 | IFS="$ac_save_ifs" | |
6f72b082 OK |
8616 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
8617 | ;; | |
8618 | esac | |
8619 | fi | |
698dcdb6 | 8620 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 8621 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 8622 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 8623 | else |
698dcdb6 | 8624 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8625 | fi |
8626 | ||
8627 | min_gtk_version=1.3.1 | |
698dcdb6 | 8628 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
24fd6d87 | 8629 | echo "configure:8630: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
8630 | no_gtk="" |
8631 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
8632 | no_gtk=yes | |
8633 | else | |
8634 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
8635 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
8636 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8637 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
8638 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8639 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
8640 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
8641 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
8642 | if test "x$enable_gtktest" = "xyes" ; then | |
8643 | ac_save_CFLAGS="$CFLAGS" | |
8644 | ac_save_LIBS="$LIBS" | |
8645 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8646 | LIBS="$GTK_LIBS $LIBS" | |
8647 | rm -f conf.gtktest | |
8648 | if test "$cross_compiling" = yes; then | |
8649 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8650 | else | |
698dcdb6 | 8651 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 8652 | #line 8653 "configure" |
6f72b082 OK |
8653 | #include "confdefs.h" |
8654 | ||
8655 | #include <gtk/gtk.h> | |
8656 | #include <stdio.h> | |
8657 | #include <stdlib.h> | |
8658 | ||
8168de4c | 8659 | int |
6f72b082 OK |
8660 | main () |
8661 | { | |
8662 | int major, minor, micro; | |
8663 | char *tmp_version; | |
8664 | ||
8665 | system ("touch conf.gtktest"); | |
8666 | ||
8667 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
8668 | tmp_version = g_strdup("$min_gtk_version"); | |
8669 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
8670 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8671 | exit(1); | |
8672 | } | |
8673 | ||
8674 | if ((gtk_major_version != $gtk_config_major_version) || | |
8675 | (gtk_minor_version != $gtk_config_minor_version) || | |
8676 | (gtk_micro_version != $gtk_config_micro_version)) | |
8677 | { | |
8168de4c | 8678 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
8679 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
8680 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8681 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
8682 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
8683 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
8684 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
8685 | printf("*** required on your system.\n"); | |
8686 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
8687 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
8688 | printf("*** before re-running configure\n"); | |
8168de4c | 8689 | } |
6f72b082 OK |
8690 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
8691 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
8168de4c | 8692 | (gtk_minor_version != GTK_MINOR_VERSION) || |
6f72b082 OK |
8693 | (gtk_micro_version != GTK_MICRO_VERSION)) |
8694 | { | |
8695 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
8168de4c | 8696 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
6f72b082 | 8697 | printf("*** library (version %d.%d.%d)\n", |
8168de4c | 8698 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
6f72b082 OK |
8699 | } |
8700 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
8701 | else | |
8702 | { | |
8703 | if ((gtk_major_version > major) || | |
8704 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8705 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
8706 | { | |
8707 | return 0; | |
8708 | } | |
8709 | else | |
8710 | { | |
8711 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
8712 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
8713 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
8168de4c | 8714 | major, minor, micro); |
6f72b082 OK |
8715 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
8716 | printf("***\n"); | |
8717 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
8718 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
8719 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
8720 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
8721 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
8722 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
8723 | printf("*** so that the correct libraries are found at run-time))\n"); | |
8724 | } | |
8725 | } | |
8726 | return 1; | |
8727 | } | |
8728 | ||
698dcdb6 | 8729 | EOF |
24fd6d87 | 8730 | if { (eval echo configure:8731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 8731 | then |
6f72b082 OK |
8732 | : |
8733 | else | |
698dcdb6 VZ |
8734 | echo "configure: failed program was:" >&5 |
8735 | cat conftest.$ac_ext >&5 | |
8736 | rm -fr conftest* | |
8737 | no_gtk=yes | |
6f72b082 | 8738 | fi |
698dcdb6 | 8739 | rm -fr conftest* |
6f72b082 | 8740 | fi |
698dcdb6 | 8741 | |
6f72b082 OK |
8742 | CFLAGS="$ac_save_CFLAGS" |
8743 | LIBS="$ac_save_LIBS" | |
8744 | fi | |
8745 | fi | |
8746 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 8747 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
8168de4c | 8748 | wx_cv_lib_gtk=2.0 |
6f72b082 | 8749 | else |
698dcdb6 | 8750 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
8751 | if test "$GTK_CONFIG_2_0" = "no" ; then |
8752 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
8753 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
8754 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
8755 | echo "*** full path to gtk-config-2.0." | |
8756 | else | |
8757 | if test -f conf.gtktest ; then | |
8758 | : | |
8759 | else | |
8760 | echo "*** Could not run GTK test program, checking why..." | |
8761 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8762 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 | 8763 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 8764 | #line 8765 "configure" |
6f72b082 OK |
8765 | #include "confdefs.h" |
8766 | ||
8767 | #include <gtk/gtk.h> | |
8768 | #include <stdio.h> | |
8769 | ||
698dcdb6 VZ |
8770 | int main() { |
8771 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
8772 | ; return 0; } | |
8773 | EOF | |
24fd6d87 | 8774 | if { (eval echo configure:8775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 8775 | rm -rf conftest* |
6f72b082 OK |
8776 | echo "*** The test program compiled, but did not run. This usually means" |
8777 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
8778 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
8779 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
8780 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
8781 | echo "*** is required on your system" | |
8168de4c | 8782 | echo "***" |
6f72b082 OK |
8783 | echo "*** If you have an old version installed, it is best to remove it, although" |
8784 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
8785 | echo "***" | |
8786 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
8787 | echo "*** came with the system with the command" | |
8788 | echo "***" | |
698dcdb6 | 8789 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 8790 | else |
698dcdb6 VZ |
8791 | echo "configure: failed program was:" >&5 |
8792 | cat conftest.$ac_ext >&5 | |
8793 | rm -rf conftest* | |
8794 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
8795 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
8796 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 8797 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 8798 | fi |
698dcdb6 | 8799 | rm -f conftest* |
6f72b082 OK |
8800 | CFLAGS="$ac_save_CFLAGS" |
8801 | LIBS="$ac_save_LIBS" | |
8802 | fi | |
8803 | fi | |
8804 | GTK_CFLAGS="" | |
8805 | GTK_LIBS="" | |
8168de4c VZ |
8806 | gthread |
8807 | fi | |
8808 | ||
8809 | ||
8810 | rm -f conf.gtktest | |
8811 | ||
8812 | fi | |
8813 | ||
8814 | if test -z "$wx_cv_lib_gtk"; then | |
8815 | ||
10f2d63a VZ |
8816 | if test x$gtk_config_exec_prefix != x ; then |
8817 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8818 | if test x${GTK_CONFIG+set} != xset ; then | |
8819 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
8820 | fi | |
8821 | fi | |
8822 | if test x$gtk_config_prefix != x ; then | |
8823 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8824 | if test x${GTK_CONFIG+set} != xset ; then | |
8825 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
8826 | fi | |
8827 | fi | |
8828 | ||
8829 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
8830 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 8831 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
24fd6d87 | 8832 | echo "configure:8833: checking for $ac_word" >&5 |
698dcdb6 VZ |
8833 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
8834 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 8835 | else |
698dcdb6 VZ |
8836 | case "$GTK_CONFIG" in |
8837 | /*) | |
f6bcfd97 BP |
8838 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
8839 | ;; | |
698dcdb6 VZ |
8840 | ?:/*) |
8841 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
8842 | ;; | |
f6bcfd97 | 8843 | *) |
698dcdb6 VZ |
8844 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8845 | ac_dummy="$PATH" | |
8846 | for ac_dir in $ac_dummy; do | |
8847 | test -z "$ac_dir" && ac_dir=. | |
8848 | if test -f $ac_dir/$ac_word; then | |
8849 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
8850 | break | |
8851 | fi | |
8852 | done | |
8853 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
8854 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
8855 | ;; | |
8856 | esac | |
8857 | fi | |
698dcdb6 | 8858 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 8859 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 8860 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 8861 | else |
698dcdb6 | 8862 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
8863 | fi |
8864 | ||
8865 | min_gtk_version=1.2.7 | |
698dcdb6 | 8866 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
24fd6d87 | 8867 | echo "configure:8868: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
8868 | no_gtk="" |
8869 | if test "$GTK_CONFIG" != "no" ; then | |
8870 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
8871 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
8872 | ac_save_CFLAGS="$CFLAGS" | |
8873 | ac_save_LIBS="$LIBS" | |
8874 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
8875 | LIBS="$LIBS $GTK_LIBS" | |
8876 | if test "$cross_compiling" = yes; then | |
8877 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
8878 | else | |
698dcdb6 | 8879 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 8880 | #line 8881 "configure" |
f6bcfd97 BP |
8881 | #include "confdefs.h" |
8882 | ||
8883 | #include <gtk/gtk.h> | |
8884 | #include <gtk/gtkfeatures.h> | |
8885 | #include <stdio.h> | |
8886 | #include <stdlib.h> | |
8887 | ||
8888 | int | |
8889 | main () | |
8890 | { | |
8891 | int major, minor, micro; | |
8892 | ||
8893 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
8894 | printf("%s, bad version string\n", "$min_gtk_version"); | |
8895 | exit(1); | |
8896 | } | |
8897 | ||
8898 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
8899 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
8900 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
8901 | printf("Headers vs. library version mismatch!\n"); | |
8902 | exit(1); | |
8903 | } | |
8904 | ||
8905 | if (gtk_minor_version == 1) return FALSE; | |
8906 | ||
8907 | return !((gtk_major_version > major) || | |
8908 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
8909 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
8910 | } | |
8911 | ||
698dcdb6 | 8912 | EOF |
24fd6d87 | 8913 | if { (eval echo configure:8914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 8914 | then |
f6bcfd97 BP |
8915 | : |
8916 | else | |
698dcdb6 VZ |
8917 | echo "configure: failed program was:" >&5 |
8918 | cat conftest.$ac_ext >&5 | |
8919 | rm -fr conftest* | |
8920 | no_gtk=yes | |
f6bcfd97 | 8921 | fi |
698dcdb6 | 8922 | rm -fr conftest* |
f6bcfd97 | 8923 | fi |
698dcdb6 | 8924 | |
f6bcfd97 BP |
8925 | CFLAGS="$ac_save_CFLAGS" |
8926 | LIBS="$ac_save_LIBS" | |
8927 | else | |
8928 | no_gtk=yes | |
8929 | fi | |
8930 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 8931 | echo "$ac_t""yes" 1>&6 |
8168de4c | 8932 | wx_cv_lib_gtk=1.2.7 |
f6bcfd97 | 8933 | else |
698dcdb6 | 8934 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
8935 | GTK_CFLAGS="" |
8936 | GTK_LIBS="" | |
8937 | : | |
8938 | fi | |
698dcdb6 VZ |
8939 | |
8940 | ||
f6bcfd97 | 8941 | |
8168de4c VZ |
8942 | fi |
8943 | ||
8944 | if test -z "$wx_cv_lib_gtk"; then | |
8945 | ||
f6bcfd97 BP |
8946 | if test x$gtk_config_exec_prefix != x ; then |
8947 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
8948 | if test x${GTK_CONFIG+set} != xset ; then | |
8949 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
8950 | fi | |
8951 | fi | |
8952 | if test x$gtk_config_prefix != x ; then | |
8953 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
8954 | if test x${GTK_CONFIG+set} != xset ; then | |
8955 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
8956 | fi | |
8957 | fi | |
8958 | ||
8959 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
8960 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 | 8961 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
24fd6d87 | 8962 | echo "configure:8963: checking for $ac_word" >&5 |
698dcdb6 VZ |
8963 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
8964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 8965 | else |
698dcdb6 VZ |
8966 | case "$GTK_CONFIG" in |
8967 | /*) | |
10f2d63a VZ |
8968 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
8969 | ;; | |
698dcdb6 VZ |
8970 | ?:/*) |
8971 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
8972 | ;; | |
10f2d63a | 8973 | *) |
698dcdb6 VZ |
8974 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8975 | ac_dummy="$PATH" | |
8976 | for ac_dir in $ac_dummy; do | |
8977 | test -z "$ac_dir" && ac_dir=. | |
8978 | if test -f $ac_dir/$ac_word; then | |
8979 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
8980 | break | |
8981 | fi | |
8982 | done | |
8983 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8984 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
8985 | ;; | |
8986 | esac | |
8987 | fi | |
698dcdb6 | 8988 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 8989 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 8990 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 8991 | else |
698dcdb6 | 8992 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8993 | fi |
8994 | ||
04165bec | 8995 | min_gtk_version=1.2.3 |
698dcdb6 | 8996 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
24fd6d87 | 8997 | echo "configure:8998: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
8998 | no_gtk="" |
8999 | if test "$GTK_CONFIG" != "no" ; then | |
9000 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 9001 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
9002 | ac_save_CFLAGS="$CFLAGS" |
9003 | ac_save_LIBS="$LIBS" | |
9004 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9005 | LIBS="$LIBS $GTK_LIBS" | |
9006 | if test "$cross_compiling" = yes; then | |
9007 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9008 | else | |
698dcdb6 | 9009 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 9010 | #line 9011 "configure" |
10f2d63a VZ |
9011 | #include "confdefs.h" |
9012 | ||
9013 | #include <gtk/gtk.h> | |
f49f2b0c | 9014 | #include <gtk/gtkfeatures.h> |
10f2d63a | 9015 | #include <stdio.h> |
32832908 | 9016 | #include <stdlib.h> |
10f2d63a VZ |
9017 | |
9018 | int | |
9019 | main () | |
9020 | { | |
9021 | int major, minor, micro; | |
9022 | ||
9023 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
9024 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9025 | exit(1); | |
9026 | } | |
9027 | ||
f49f2b0c RR |
9028 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
9029 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
9030 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
9031 | printf("Headers vs. library version mismatch!\n"); | |
9032 | exit(1); | |
9033 | } | |
9034 | ||
10f2d63a VZ |
9035 | if (gtk_minor_version == 1) return FALSE; |
9036 | ||
9037 | return !((gtk_major_version > major) || | |
9038 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9039 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
9040 | } | |
9041 | ||
698dcdb6 | 9042 | EOF |
24fd6d87 | 9043 | if { (eval echo configure:9044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 9044 | then |
10f2d63a VZ |
9045 | : |
9046 | else | |
698dcdb6 VZ |
9047 | echo "configure: failed program was:" >&5 |
9048 | cat conftest.$ac_ext >&5 | |
9049 | rm -fr conftest* | |
9050 | no_gtk=yes | |
10f2d63a | 9051 | fi |
698dcdb6 | 9052 | rm -fr conftest* |
10f2d63a | 9053 | fi |
698dcdb6 | 9054 | |
10f2d63a VZ |
9055 | CFLAGS="$ac_save_CFLAGS" |
9056 | LIBS="$ac_save_LIBS" | |
9057 | else | |
9058 | no_gtk=yes | |
9059 | fi | |
9060 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 9061 | echo "$ac_t""yes" 1>&6 |
8168de4c | 9062 | wx_cv_lib_gtk=1.2.3 |
10f2d63a | 9063 | else |
698dcdb6 | 9064 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9065 | GTK_CFLAGS="" |
9066 | GTK_LIBS="" | |
7e99ad86 | 9067 | : |
10f2d63a | 9068 | fi |
698dcdb6 VZ |
9069 | |
9070 | ||
10f2d63a | 9071 | |
8168de4c VZ |
9072 | fi |
9073 | ||
9074 | if test -z "$wx_cv_lib_gtk"; then | |
9075 | wx_cv_lib_gtk=none | |
138be253 VZ |
9076 | else |
9077 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
9078 | wx_cv_libs_gtk=$GTK_LIBS | |
8168de4c VZ |
9079 | fi |
9080 | ||
1e6feb95 | 9081 | |
8168de4c | 9082 | fi |
703e0a69 | 9083 | |
698dcdb6 | 9084 | |
8168de4c VZ |
9085 | if test "$gtk_version_cached" = 1; then |
9086 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
1e6feb95 | 9087 | fi |
698dcdb6 | 9088 | |
8168de4c VZ |
9089 | case "$wx_cv_lib_gtk" in |
9090 | 2.0) WXGTK20=1 | |
9091 | ;; | |
9092 | 1.2.7) WXGTK127=1 | |
9093 | ;; | |
9094 | 1.2.3) WXGTK12=1 | |
9095 | ;; | |
9096 | *) { echo "configure: error: | |
9097 | Please check that gtk-config is in path, the directory | |
9098 | where GTK+ libraries are installed (returned by | |
9099 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
9100 | equivalent variable and GTK+ is version 1.2.3 or above. | |
9101 | " 1>&2; exit 1; } | |
9102 | ;; | |
9103 | esac | |
2224580a | 9104 | |
138be253 | 9105 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
11dfaa5f | 9106 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" |
698dcdb6 | 9107 | |
1e6feb95 VZ |
9108 | AFMINSTALL=afminstall |
9109 | TOOLKIT=GTK | |
9110 | GUIDIST=GTK_DIST | |
7ec2881a | 9111 | |
1e6feb95 | 9112 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
24fd6d87 | 9113 | echo "configure:9114: checking for gdk_im_open in -lgdk" >&5 |
698dcdb6 VZ |
9114 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
9115 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9116 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 9117 | else |
698dcdb6 | 9118 | ac_save_LIBS="$LIBS" |
7ec2881a | 9119 | LIBS="-lgdk $LIBS" |
698dcdb6 | 9120 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 9121 | #line 9122 "configure" |
7ec2881a RR |
9122 | #include "confdefs.h" |
9123 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9124 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9125 | builtin and then its argument prototype would still apply. */ |
9126 | char gdk_im_open(); | |
9127 | ||
9128 | int main() { | |
9129 | gdk_im_open() | |
9130 | ; return 0; } | |
9131 | EOF | |
24fd6d87 | 9132 | if { (eval echo configure:9133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9133 | rm -rf conftest* |
9134 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9135 | else | |
9136 | echo "configure: failed program was:" >&5 | |
9137 | cat conftest.$ac_ext >&5 | |
9138 | rm -rf conftest* | |
9139 | eval "ac_cv_lib_$ac_lib_var=no" | |
9140 | fi | |
9141 | rm -f conftest* | |
9142 | LIBS="$ac_save_LIBS" | |
9143 | ||
9144 | fi | |
9145 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9146 | echo "$ac_t""yes" 1>&6 | |
9147 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
9148 | #define HAVE_XIM 1 |
9149 | EOF | |
9150 | ||
698dcdb6 VZ |
9151 | else |
9152 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
9153 | fi |
9154 | ||
1e6feb95 | 9155 | fi |
10f2d63a | 9156 | |
1e6feb95 VZ |
9157 | if test "$wxUSE_MGL" = 1; then |
9158 | ||
9159 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
24fd6d87 | 9160 | echo "configure:9161: checking for SciTech MGL library" >&5 |
1e6feb95 VZ |
9161 | if test "x$MGL_ROOT" = x ; then |
9162 | echo "$ac_t""not found" 1>&6 | |
9163 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
9164 | else | |
9165 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
9166 | fi | |
9167 | ||
9168 | MGL_OS=linux/gcc/glibc | |
9169 | MGL_LIB_TYPE="" | |
9170 | ||
9171 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
9172 | if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then | |
9173 | MGL_LIB_TYPE=debug | |
9174 | fi | |
9175 | fi | |
9176 | if test "x$MGL_LIB_TYPE" = x ; then | |
9177 | if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then | |
9178 | MGL_LIB_TYPE=release | |
9179 | else | |
9180 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
9181 | fi | |
9182 | fi | |
9183 | ||
9184 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
9185 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm" | |
9186 | ||
9187 | AFMINSTALL=afminstall | |
9188 | TOOLKIT=MGL | |
9189 | GUIDIST=MGL_DIST | |
9190 | fi | |
9191 | ||
9192 | if test "$wxUSE_WINE" = 1; then | |
9193 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
24fd6d87 | 9194 | echo "configure:9195: checking for WINE includes" >&5 |
1e6feb95 | 9195 | |
10f2d63a VZ |
9196 | ac_find_includes= |
9197 | for ac_dir in $SEARCH_INCLUDE; | |
9198 | do | |
9199 | if test -f "$ac_dir/windows.h"; then | |
9200 | ac_find_includes=$ac_dir | |
9201 | break | |
9202 | fi | |
9203 | done | |
9204 | ||
1e6feb95 VZ |
9205 | if test "$ac_find_includes" != "" ; then |
9206 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
9207 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
9208 | else | |
9209 | echo "$ac_t""no" 1>&6 | |
9210 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9211 | fi | |
10f2d63a | 9212 | |
1e6feb95 VZ |
9213 | XPM_LINK="" |
9214 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
24fd6d87 | 9215 | echo "configure:9216: checking for Xpm library" >&5 |
1e6feb95 | 9216 | |
10f2d63a VZ |
9217 | ac_find_libraries= |
9218 | for ac_dir in $SEARCH_LIB; | |
9219 | do | |
9220 | for ac_extension in a so sl; do | |
9221 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
9222 | ac_find_libraries=$ac_dir | |
9223 | break 2 | |
9224 | fi | |
9225 | done | |
9226 | done | |
9227 | ||
1e6feb95 VZ |
9228 | if test "$ac_find_libraries" != "" ; then |
9229 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
9230 | XPM_LINK="-lXpm" | |
9231 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
9232 | #define wxHAVE_LIB_XPM 1 |
9233 | EOF | |
9234 | ||
1e6feb95 VZ |
9235 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
9236 | else | |
9237 | echo "$ac_t""no" 1>&6 | |
9238 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9239 | fi | |
10f2d63a | 9240 | |
1e6feb95 VZ |
9241 | MESA_LINK="" |
9242 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
24fd6d87 | 9243 | echo "configure:9244: checking for Mesa library" >&5 |
1e6feb95 | 9244 | |
10f2d63a VZ |
9245 | ac_find_libraries= |
9246 | for ac_dir in $SEARCH_LIB; | |
9247 | do | |
9248 | for ac_extension in a so sl; do | |
9249 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
9250 | ac_find_libraries=$ac_dir | |
9251 | break 2 | |
9252 | fi | |
9253 | done | |
9254 | done | |
9255 | ||
1e6feb95 VZ |
9256 | if test "$ac_find_libraries" != "" ; then |
9257 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
9258 | MESA_LINK="-lMesaGL" | |
9259 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
9260 | else | |
9261 | { echo "configure: error: no" 1>&2; exit 1; } | |
9262 | fi | |
10f2d63a | 9263 | |
1e6feb95 VZ |
9264 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
9265 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
9266 | WXWINE=1 | |
9267 | TOOLKIT=MSW | |
9268 | GUIDIST=MSW_DIST | |
9269 | fi | |
698dcdb6 | 9270 | |
1e6feb95 VZ |
9271 | |
9272 | # If we find X, set shell vars x_includes and x_libraries to the | |
698dcdb6 VZ |
9273 | # paths, otherwise set no_x=yes. |
9274 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
9275 | # --without-x overrides everything else, but does not touch the cache. | |
9276 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
24fd6d87 | 9277 | echo "configure:9278: checking for X" >&5 |
ab9b9eab VZ |
9278 | |
9279 | # Check whether --with-x or --without-x was given. | |
9280 | if test "${with_x+set}" = set; then | |
9281 | withval="$with_x" | |
698dcdb6 VZ |
9282 | : |
9283 | fi | |
ba337fe7 | 9284 | |
ab9b9eab VZ |
9285 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9286 | if test "x$with_x" = xno; then | |
9287 | # The user explicitly disabled X. | |
9288 | have_x=disabled | |
9289 | else | |
9290 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
9291 | # Both variables are already set. | |
9292 | have_x=yes | |
9293 | else | |
698dcdb6 VZ |
9294 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
9295 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
9296 | else |
9297 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
9298 | ac_x_includes=NO ac_x_libraries=NO |
9299 | rm -fr conftestdir | |
9300 | if mkdir conftestdir; then | |
9301 | cd conftestdir | |
ab9b9eab | 9302 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 9303 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
9304 | acfindx: |
9305 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
9306 | EOF | |
9307 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
9308 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
9309 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
9310 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 9311 | for ac_extension in a so sl; do |
ab9b9eab | 9312 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 9313 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 9314 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
9315 | fi |
9316 | done | |
ab9b9eab VZ |
9317 | # Screen out bogus values from the imake configuration. They are |
9318 | # bogus both because they are the default anyway, and because | |
9319 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 9320 | case "$ac_im_incroot" in |
ab9b9eab | 9321 | /usr/include) ;; |
698dcdb6 | 9322 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 9323 | esac |
698dcdb6 | 9324 | case "$ac_im_usrlibdir" in |
ab9b9eab | 9325 | /usr/lib | /lib) ;; |
698dcdb6 | 9326 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 9327 | esac |
ba337fe7 | 9328 | fi |
ab9b9eab | 9329 | cd .. |
698dcdb6 | 9330 | rm -fr conftestdir |
ab9b9eab | 9331 | fi |
10f2d63a | 9332 | |
698dcdb6 VZ |
9333 | if test "$ac_x_includes" = NO; then |
9334 | # Guess where to find include files, by looking for this one X11 .h file. | |
9335 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
9336 | ||
ab9b9eab | 9337 | # First, try using that file with no special directory specified. |
698dcdb6 | 9338 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 9339 | #line 9340 "configure" |
ab9b9eab | 9340 | #include "confdefs.h" |
698dcdb6 VZ |
9341 | #include <$x_direct_test_include> |
9342 | EOF | |
9343 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 9344 | { (eval echo configure:9345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
9345 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9346 | if test -z "$ac_err"; then | |
9347 | rm -rf conftest* | |
ab9b9eab VZ |
9348 | # We can compile using X headers with no special include directory. |
9349 | ac_x_includes= | |
9350 | else | |
698dcdb6 VZ |
9351 | echo "$ac_err" >&5 |
9352 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 9353 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9354 | rm -rf conftest* |
9355 | # Look for the header file in a standard set of common directories. | |
9356 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9357 | for ac_dir in \ | |
9358 | /usr/X11/include \ | |
9359 | /usr/X11R6/include \ | |
9360 | /usr/X11R5/include \ | |
9361 | /usr/X11R4/include \ | |
9362 | \ | |
9363 | /usr/include/X11 \ | |
9364 | /usr/include/X11R6 \ | |
9365 | /usr/include/X11R5 \ | |
9366 | /usr/include/X11R4 \ | |
9367 | \ | |
9368 | /usr/local/X11/include \ | |
9369 | /usr/local/X11R6/include \ | |
9370 | /usr/local/X11R5/include \ | |
9371 | /usr/local/X11R4/include \ | |
9372 | \ | |
9373 | /usr/local/include/X11 \ | |
9374 | /usr/local/include/X11R6 \ | |
9375 | /usr/local/include/X11R5 \ | |
9376 | /usr/local/include/X11R4 \ | |
9377 | \ | |
9378 | /usr/X386/include \ | |
9379 | /usr/x386/include \ | |
9380 | /usr/XFree86/include/X11 \ | |
9381 | \ | |
9382 | /usr/include \ | |
9383 | /usr/local/include \ | |
9384 | /usr/unsupported/include \ | |
9385 | /usr/athena/include \ | |
9386 | /usr/local/x11r5/include \ | |
9387 | /usr/lpp/Xamples/include \ | |
9388 | \ | |
9389 | /usr/openwin/include \ | |
9390 | /usr/openwin/share/include \ | |
9391 | ; \ | |
9392 | do | |
9393 | if test -r "$ac_dir/$x_direct_test_include"; then | |
9394 | ac_x_includes=$ac_dir | |
9395 | break | |
9396 | fi | |
9397 | done | |
ab9b9eab | 9398 | fi |
698dcdb6 VZ |
9399 | rm -f conftest* |
9400 | fi # $ac_x_includes = NO | |
10f2d63a | 9401 | |
698dcdb6 | 9402 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 9403 | # Check for the libraries. |
698dcdb6 VZ |
9404 | |
9405 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
9406 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
9407 | ||
ab9b9eab VZ |
9408 | # See if we find them without any special options. |
9409 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
9410 | ac_save_LIBS="$LIBS" |
9411 | LIBS="-l$x_direct_test_library $LIBS" | |
9412 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 9413 | #line 9414 "configure" |
ab9b9eab | 9414 | #include "confdefs.h" |
698dcdb6 VZ |
9415 | |
9416 | int main() { | |
9417 | ${x_direct_test_function}() | |
9418 | ; return 0; } | |
9419 | EOF | |
24fd6d87 | 9420 | if { (eval echo configure:9421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9421 | rm -rf conftest* |
9422 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
9423 | # We can link X programs with no special library path. |
9424 | ac_x_libraries= | |
9425 | else | |
698dcdb6 VZ |
9426 | echo "configure: failed program was:" >&5 |
9427 | cat conftest.$ac_ext >&5 | |
9428 | rm -rf conftest* | |
9429 | LIBS="$ac_save_LIBS" | |
9430 | # First see if replacing the include by lib works. | |
9431 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9432 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
9433 | /usr/X11/lib \ | |
9434 | /usr/X11R6/lib \ | |
9435 | /usr/X11R5/lib \ | |
9436 | /usr/X11R4/lib \ | |
9437 | \ | |
9438 | /usr/lib/X11 \ | |
9439 | /usr/lib/X11R6 \ | |
9440 | /usr/lib/X11R5 \ | |
9441 | /usr/lib/X11R4 \ | |
9442 | \ | |
9443 | /usr/local/X11/lib \ | |
9444 | /usr/local/X11R6/lib \ | |
9445 | /usr/local/X11R5/lib \ | |
9446 | /usr/local/X11R4/lib \ | |
9447 | \ | |
9448 | /usr/local/lib/X11 \ | |
9449 | /usr/local/lib/X11R6 \ | |
9450 | /usr/local/lib/X11R5 \ | |
9451 | /usr/local/lib/X11R4 \ | |
9452 | \ | |
9453 | /usr/X386/lib \ | |
9454 | /usr/x386/lib \ | |
9455 | /usr/XFree86/lib/X11 \ | |
9456 | \ | |
9457 | /usr/lib \ | |
9458 | /usr/local/lib \ | |
9459 | /usr/unsupported/lib \ | |
9460 | /usr/athena/lib \ | |
9461 | /usr/local/x11r5/lib \ | |
9462 | /usr/lpp/Xamples/lib \ | |
9463 | /lib/usr/lib/X11 \ | |
9464 | \ | |
9465 | /usr/openwin/lib \ | |
9466 | /usr/openwin/share/lib \ | |
9467 | ; \ | |
ab9b9eab VZ |
9468 | do |
9469 | for ac_extension in a so sl; do | |
698dcdb6 | 9470 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
9471 | ac_x_libraries=$ac_dir |
9472 | break 2 | |
10f2d63a | 9473 | fi |
10f2d63a | 9474 | done |
ab9b9eab VZ |
9475 | done |
9476 | fi | |
698dcdb6 VZ |
9477 | rm -f conftest* |
9478 | fi # $ac_x_libraries = NO | |
10f2d63a | 9479 | |
698dcdb6 | 9480 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
9481 | # Didn't find X anywhere. Cache the known absence of X. |
9482 | ac_cv_have_x="have_x=no" | |
9483 | else | |
9484 | # Record where we found X for the cache. | |
9485 | ac_cv_have_x="have_x=yes \ | |
9486 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
9487 | fi | |
9488 | fi | |
10f2d63a | 9489 | fi |
ab9b9eab VZ |
9490 | eval "$ac_cv_have_x" |
9491 | fi # $with_x != no | |
10f2d63a | 9492 | |
ab9b9eab | 9493 | if test "$have_x" != yes; then |
698dcdb6 | 9494 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
9495 | no_x=yes |
9496 | else | |
9497 | # If each of the values was on the command line, it overrides each guess. | |
9498 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9499 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9500 | # Update the cache value to reflect the command line values. | |
9501 | ac_cv_have_x="have_x=yes \ | |
9502 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 9503 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 9504 | fi |
10f2d63a | 9505 | |
ab9b9eab VZ |
9506 | if test "$no_x" = yes; then |
9507 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 9508 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
9509 | #define X_DISPLAY_MISSING 1 |
9510 | EOF | |
10f2d63a | 9511 | |
ab9b9eab VZ |
9512 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
9513 | else | |
9514 | if test -n "$x_includes"; then | |
9515 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
9516 | fi |
9517 | ||
ab9b9eab VZ |
9518 | # It would also be nice to do this for all -L options, not just this one. |
9519 | if test -n "$x_libraries"; then | |
9520 | X_LIBS="$X_LIBS -L$x_libraries" | |
9521 | # For Solaris; some versions of Sun CC require a space after -R and | |
9522 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 9523 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 9524 | "SunOS 5"*) |
698dcdb6 | 9525 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
24fd6d87 | 9526 | echo "configure:9527: checking whether -R must be followed by a space" >&5 |
698dcdb6 VZ |
9527 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
9528 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 9529 | #line 9530 "configure" |
ab9b9eab | 9530 | #include "confdefs.h" |
10f2d63a | 9531 | |
698dcdb6 | 9532 | int main() { |
788deba1 | 9533 | |
698dcdb6 VZ |
9534 | ; return 0; } |
9535 | EOF | |
24fd6d87 | 9536 | if { (eval echo configure:9537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9537 | rm -rf conftest* |
ab9b9eab VZ |
9538 | ac_R_nospace=yes |
9539 | else | |
698dcdb6 VZ |
9540 | echo "configure: failed program was:" >&5 |
9541 | cat conftest.$ac_ext >&5 | |
9542 | rm -rf conftest* | |
9543 | ac_R_nospace=no | |
ab9b9eab | 9544 | fi |
698dcdb6 | 9545 | rm -f conftest* |
ab9b9eab | 9546 | if test $ac_R_nospace = yes; then |
698dcdb6 | 9547 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
9548 | X_LIBS="$X_LIBS -R$x_libraries" |
9549 | else | |
9550 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 | 9551 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 9552 | #line 9553 "configure" |
ab9b9eab | 9553 | #include "confdefs.h" |
788deba1 | 9554 | |
698dcdb6 | 9555 | int main() { |
ab9b9eab | 9556 | |
698dcdb6 VZ |
9557 | ; return 0; } |
9558 | EOF | |
24fd6d87 | 9559 | if { (eval echo configure:9560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 | 9560 | rm -rf conftest* |
ab9b9eab VZ |
9561 | ac_R_space=yes |
9562 | else | |
698dcdb6 VZ |
9563 | echo "configure: failed program was:" >&5 |
9564 | cat conftest.$ac_ext >&5 | |
9565 | rm -rf conftest* | |
9566 | ac_R_space=no | |
ab9b9eab | 9567 | fi |
698dcdb6 | 9568 | rm -f conftest* |
ab9b9eab | 9569 | if test $ac_R_space = yes; then |
698dcdb6 | 9570 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
9571 | X_LIBS="$X_LIBS -R $x_libraries" |
9572 | else | |
698dcdb6 | 9573 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
9574 | fi |
9575 | fi | |
698dcdb6 | 9576 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
9577 | esac |
9578 | fi | |
9579 | ||
9580 | # Check for system-dependent libraries X programs must link with. | |
9581 | # Do this before checking for the system-independent R6 libraries | |
9582 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
9583 | ||
9584 | if test "$ISC" = yes; then | |
9585 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
9586 | else | |
698dcdb6 VZ |
9587 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
9588 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 9589 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 | 9590 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
24fd6d87 | 9591 | echo "configure:9592: checking for dnet_ntoa in -ldnet" >&5 |
698dcdb6 VZ |
9592 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9593 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9594 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9595 | else |
698dcdb6 | 9596 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9597 | LIBS="-ldnet $LIBS" |
698dcdb6 | 9598 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 9599 | #line 9600 "configure" |
ab9b9eab VZ |
9600 | #include "confdefs.h" |
9601 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9602 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9603 | builtin and then its argument prototype would still apply. */ |
9604 | char dnet_ntoa(); | |
9605 | ||
9606 | int main() { | |
9607 | dnet_ntoa() | |
9608 | ; return 0; } | |
9609 | EOF | |
24fd6d87 | 9610 | if { (eval echo configure:9611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9611 | rm -rf conftest* |
9612 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9613 | else | |
9614 | echo "configure: failed program was:" >&5 | |
9615 | cat conftest.$ac_ext >&5 | |
9616 | rm -rf conftest* | |
9617 | eval "ac_cv_lib_$ac_lib_var=no" | |
9618 | fi | |
9619 | rm -f conftest* | |
9620 | LIBS="$ac_save_LIBS" | |
9621 | ||
9622 | fi | |
9623 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9624 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9625 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
9626 | else |
9627 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9628 | fi |
9629 | ||
9630 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 | 9631 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
24fd6d87 | 9632 | echo "configure:9633: checking for dnet_ntoa in -ldnet_stub" >&5 |
698dcdb6 VZ |
9633 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
9634 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9635 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9636 | else |
698dcdb6 | 9637 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9638 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 | 9639 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 9640 | #line 9641 "configure" |
ab9b9eab VZ |
9641 | #include "confdefs.h" |
9642 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9643 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9644 | builtin and then its argument prototype would still apply. */ |
9645 | char dnet_ntoa(); | |
9646 | ||
9647 | int main() { | |
9648 | dnet_ntoa() | |
9649 | ; return 0; } | |
9650 | EOF | |
24fd6d87 | 9651 | if { (eval echo configure:9652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9652 | rm -rf conftest* |
9653 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9654 | else | |
9655 | echo "configure: failed program was:" >&5 | |
9656 | cat conftest.$ac_ext >&5 | |
9657 | rm -rf conftest* | |
9658 | eval "ac_cv_lib_$ac_lib_var=no" | |
9659 | fi | |
9660 | rm -f conftest* | |
9661 | LIBS="$ac_save_LIBS" | |
9662 | ||
9663 | fi | |
9664 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9665 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9666 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
9667 | else |
9668 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9669 | fi |
9670 | ||
9671 | fi | |
9672 | ||
9673 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
9674 | # to get the SysV transport functions. | |
698dcdb6 | 9675 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
9676 | # needs -lnsl. |
9677 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
9678 | # on Irix 5.2, according to dickey@clark.net. |
9679 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
24fd6d87 | 9680 | echo "configure:9681: checking for gethostbyname" >&5 |
698dcdb6 VZ |
9681 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
9682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9683 | else | |
9684 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 9685 | #line 9686 "configure" |
ab9b9eab VZ |
9686 | #include "confdefs.h" |
9687 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9688 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
9689 | #include <assert.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 gethostbyname(); | |
9694 | ||
9695 | int main() { | |
ab9b9eab VZ |
9696 | |
9697 | /* The GNU C library defines this for functions which it implements | |
9698 | to always fail with ENOSYS. Some functions are actually named | |
9699 | something starting with __ and the normal name is an alias. */ | |
9700 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
9701 | choke me | |
9702 | #else | |
698dcdb6 | 9703 | gethostbyname(); |
ab9b9eab VZ |
9704 | #endif |
9705 | ||
698dcdb6 VZ |
9706 | ; return 0; } |
9707 | EOF | |
24fd6d87 | 9708 | if { (eval echo configure:9709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9709 | rm -rf conftest* |
9710 | eval "ac_cv_func_gethostbyname=yes" | |
9711 | else | |
9712 | echo "configure: failed program was:" >&5 | |
9713 | cat conftest.$ac_ext >&5 | |
9714 | rm -rf conftest* | |
9715 | eval "ac_cv_func_gethostbyname=no" | |
9716 | fi | |
9717 | rm -f conftest* | |
9718 | fi | |
9719 | ||
9720 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
9721 | echo "$ac_t""yes" 1>&6 | |
9722 | : | |
9723 | else | |
9724 | echo "$ac_t""no" 1>&6 | |
9725 | fi | |
ab9b9eab VZ |
9726 | |
9727 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 | 9728 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
24fd6d87 | 9729 | echo "configure:9730: checking for gethostbyname in -lnsl" >&5 |
698dcdb6 VZ |
9730 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
9731 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9732 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9733 | else |
698dcdb6 | 9734 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9735 | LIBS="-lnsl $LIBS" |
698dcdb6 | 9736 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 9737 | #line 9738 "configure" |
ab9b9eab VZ |
9738 | #include "confdefs.h" |
9739 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9740 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9741 | builtin and then its argument prototype would still apply. */ |
9742 | char gethostbyname(); | |
6232543b | 9743 | |
698dcdb6 VZ |
9744 | int main() { |
9745 | gethostbyname() | |
9746 | ; return 0; } | |
9747 | EOF | |
24fd6d87 | 9748 | if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9749 | rm -rf conftest* |
9750 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 9751 | else |
698dcdb6 VZ |
9752 | echo "configure: failed program was:" >&5 |
9753 | cat conftest.$ac_ext >&5 | |
9754 | rm -rf conftest* | |
9755 | eval "ac_cv_lib_$ac_lib_var=no" | |
9756 | fi | |
9757 | rm -f conftest* | |
9758 | LIBS="$ac_save_LIBS" | |
1e487827 | 9759 | |
698dcdb6 VZ |
9760 | fi |
9761 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9762 | echo "$ac_t""yes" 1>&6 | |
9763 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
9764 | else | |
9765 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9766 | fi |
9767 | ||
9768 | fi | |
9769 | ||
9770 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
9771 | # socket/setsockopt and other routines are undefined under SCO ODT | |
9772 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
9773 | # on later versions), says simon@lia.di.epfl.ch: it contains |
9774 | # gethostby* variants that don't use the nameserver (or something). | |
9775 | # -lsocket must be given before -lnsl if both are needed. | |
9776 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
9777 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
24fd6d87 | 9778 | echo "configure:9779: checking for connect" >&5 |
698dcdb6 VZ |
9779 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
9780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9781 | else | |
9782 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 9783 | #line 9784 "configure" |
ab9b9eab VZ |
9784 | #include "confdefs.h" |
9785 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9786 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
9787 | #include <assert.h> |
9788 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9789 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9790 | builtin and then its argument prototype would still apply. */ |
9791 | char connect(); | |
9792 | ||
9793 | int main() { | |
ab9b9eab VZ |
9794 | |
9795 | /* The GNU C library defines this for functions which it implements | |
9796 | to always fail with ENOSYS. Some functions are actually named | |
9797 | something starting with __ and the normal name is an alias. */ | |
9798 | #if defined (__stub_connect) || defined (__stub___connect) | |
9799 | choke me | |
9800 | #else | |
698dcdb6 | 9801 | connect(); |
ab9b9eab VZ |
9802 | #endif |
9803 | ||
698dcdb6 VZ |
9804 | ; return 0; } |
9805 | EOF | |
24fd6d87 | 9806 | if { (eval echo configure:9807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9807 | rm -rf conftest* |
9808 | eval "ac_cv_func_connect=yes" | |
9809 | else | |
9810 | echo "configure: failed program was:" >&5 | |
9811 | cat conftest.$ac_ext >&5 | |
9812 | rm -rf conftest* | |
9813 | eval "ac_cv_func_connect=no" | |
9814 | fi | |
9815 | rm -f conftest* | |
9816 | fi | |
9817 | ||
9818 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
9819 | echo "$ac_t""yes" 1>&6 | |
9820 | : | |
9821 | else | |
9822 | echo "$ac_t""no" 1>&6 | |
9823 | fi | |
ab9b9eab VZ |
9824 | |
9825 | if test $ac_cv_func_connect = no; then | |
698dcdb6 | 9826 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
24fd6d87 | 9827 | echo "configure:9828: checking for connect in -lsocket" >&5 |
698dcdb6 VZ |
9828 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
9829 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9831 | else |
698dcdb6 | 9832 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9833 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 9834 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 9835 | #line 9836 "configure" |
ab9b9eab VZ |
9836 | #include "confdefs.h" |
9837 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9838 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9839 | builtin and then its argument prototype would still apply. */ |
9840 | char connect(); | |
9841 | ||
9842 | int main() { | |
9843 | connect() | |
9844 | ; return 0; } | |
9845 | EOF | |
24fd6d87 | 9846 | if { (eval echo configure:9847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9847 | rm -rf conftest* |
9848 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9849 | else | |
9850 | echo "configure: failed program was:" >&5 | |
9851 | cat conftest.$ac_ext >&5 | |
9852 | rm -rf conftest* | |
9853 | eval "ac_cv_lib_$ac_lib_var=no" | |
9854 | fi | |
9855 | rm -f conftest* | |
9856 | LIBS="$ac_save_LIBS" | |
9857 | ||
9858 | fi | |
9859 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9860 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9861 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
9862 | else |
9863 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9864 | fi |
9865 | ||
9866 | fi | |
9867 | ||
698dcdb6 VZ |
9868 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
9869 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
24fd6d87 | 9870 | echo "configure:9871: checking for remove" >&5 |
698dcdb6 VZ |
9871 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
9872 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9873 | else |
698dcdb6 | 9874 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 9875 | #line 9876 "configure" |
ab9b9eab VZ |
9876 | #include "confdefs.h" |
9877 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9878 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
9879 | #include <assert.h> |
9880 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9881 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9882 | builtin and then its argument prototype would still apply. */ |
9883 | char remove(); | |
9884 | ||
9885 | int main() { | |
ab9b9eab VZ |
9886 | |
9887 | /* The GNU C library defines this for functions which it implements | |
9888 | to always fail with ENOSYS. Some functions are actually named | |
9889 | something starting with __ and the normal name is an alias. */ | |
9890 | #if defined (__stub_remove) || defined (__stub___remove) | |
9891 | choke me | |
9892 | #else | |
698dcdb6 | 9893 | remove(); |
ab9b9eab VZ |
9894 | #endif |
9895 | ||
698dcdb6 VZ |
9896 | ; return 0; } |
9897 | EOF | |
24fd6d87 | 9898 | if { (eval echo configure:9899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9899 | rm -rf conftest* |
9900 | eval "ac_cv_func_remove=yes" | |
9901 | else | |
9902 | echo "configure: failed program was:" >&5 | |
9903 | cat conftest.$ac_ext >&5 | |
9904 | rm -rf conftest* | |
9905 | eval "ac_cv_func_remove=no" | |
9906 | fi | |
9907 | rm -f conftest* | |
9908 | fi | |
9909 | ||
9910 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
9911 | echo "$ac_t""yes" 1>&6 | |
9912 | : | |
9913 | else | |
9914 | echo "$ac_t""no" 1>&6 | |
9915 | fi | |
ab9b9eab VZ |
9916 | |
9917 | if test $ac_cv_func_remove = no; then | |
698dcdb6 | 9918 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
24fd6d87 | 9919 | echo "configure:9920: checking for remove in -lposix" >&5 |
698dcdb6 VZ |
9920 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
9921 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9922 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9923 | else |
698dcdb6 | 9924 | ac_save_LIBS="$LIBS" |
ab9b9eab | 9925 | LIBS="-lposix $LIBS" |
698dcdb6 | 9926 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 9927 | #line 9928 "configure" |
ab9b9eab VZ |
9928 | #include "confdefs.h" |
9929 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9930 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9931 | builtin and then its argument prototype would still apply. */ |
9932 | char remove(); | |
9933 | ||
9934 | int main() { | |
9935 | remove() | |
9936 | ; return 0; } | |
9937 | EOF | |
24fd6d87 | 9938 | if { (eval echo configure:9939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9939 | rm -rf conftest* |
9940 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9941 | else | |
9942 | echo "configure: failed program was:" >&5 | |
9943 | cat conftest.$ac_ext >&5 | |
9944 | rm -rf conftest* | |
9945 | eval "ac_cv_lib_$ac_lib_var=no" | |
9946 | fi | |
9947 | rm -f conftest* | |
9948 | LIBS="$ac_save_LIBS" | |
9949 | ||
9950 | fi | |
9951 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9952 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 9953 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
9954 | else |
9955 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
9956 | fi |
9957 | ||
9958 | fi | |
9959 | ||
9960 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 | 9961 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
24fd6d87 | 9962 | echo "configure:9963: checking for shmat" >&5 |
698dcdb6 VZ |
9963 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
9964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 9965 | else |
698dcdb6 | 9966 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 9967 | #line 9968 "configure" |
ab9b9eab VZ |
9968 | #include "confdefs.h" |
9969 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 9970 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
9971 | #include <assert.h> |
9972 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9973 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
9974 | builtin and then its argument prototype would still apply. */ |
9975 | char shmat(); | |
9976 | ||
9977 | int main() { | |
ab9b9eab VZ |
9978 | |
9979 | /* The GNU C library defines this for functions which it implements | |
9980 | to always fail with ENOSYS. Some functions are actually named | |
9981 | something starting with __ and the normal name is an alias. */ | |
9982 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
9983 | choke me | |
9984 | #else | |
698dcdb6 | 9985 | shmat(); |
ab9b9eab VZ |
9986 | #endif |
9987 | ||
698dcdb6 VZ |
9988 | ; return 0; } |
9989 | EOF | |
24fd6d87 | 9990 | if { (eval echo configure:9991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
9991 | rm -rf conftest* |
9992 | eval "ac_cv_func_shmat=yes" | |
9993 | else | |
9994 | echo "configure: failed program was:" >&5 | |
9995 | cat conftest.$ac_ext >&5 | |
9996 | rm -rf conftest* | |
9997 | eval "ac_cv_func_shmat=no" | |
9998 | fi | |
9999 | rm -f conftest* | |
10000 | fi | |
10001 | ||
10002 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
10003 | echo "$ac_t""yes" 1>&6 | |
10004 | : | |
10005 | else | |
10006 | echo "$ac_t""no" 1>&6 | |
10007 | fi | |
ab9b9eab VZ |
10008 | |
10009 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 | 10010 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
24fd6d87 | 10011 | echo "configure:10012: checking for shmat in -lipc" >&5 |
698dcdb6 VZ |
10012 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
10013 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10014 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 10015 | else |
698dcdb6 | 10016 | ac_save_LIBS="$LIBS" |
ab9b9eab | 10017 | LIBS="-lipc $LIBS" |
698dcdb6 | 10018 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 10019 | #line 10020 "configure" |
ab9b9eab VZ |
10020 | #include "confdefs.h" |
10021 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10022 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10023 | builtin and then its argument prototype would still apply. */ |
10024 | char shmat(); | |
10025 | ||
10026 | int main() { | |
10027 | shmat() | |
10028 | ; return 0; } | |
10029 | EOF | |
24fd6d87 | 10030 | if { (eval echo configure:10031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10031 | rm -rf conftest* |
10032 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10033 | else | |
10034 | echo "configure: failed program was:" >&5 | |
10035 | cat conftest.$ac_ext >&5 | |
10036 | rm -rf conftest* | |
10037 | eval "ac_cv_lib_$ac_lib_var=no" | |
10038 | fi | |
10039 | rm -f conftest* | |
10040 | LIBS="$ac_save_LIBS" | |
10041 | ||
10042 | fi | |
10043 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10044 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10045 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
10046 | else |
10047 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10048 | fi |
10049 | ||
10050 | fi | |
10051 | fi | |
10052 | ||
10053 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 10054 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
10055 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
10056 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
10057 | # check for ICE first), but we must link in the order -lSM -lICE or | |
10058 | # we get undefined symbols. So assume we have SM if we have ICE. | |
10059 | # These have to be linked with before -lX11, unlike the other | |
10060 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
10061 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
10062 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
24fd6d87 | 10063 | echo "configure:10064: checking for IceConnectionNumber in -lICE" >&5 |
698dcdb6 VZ |
10064 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
10065 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10066 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10067 | else | |
10068 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 10069 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 | 10070 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 10071 | #line 10072 "configure" |
ab9b9eab VZ |
10072 | #include "confdefs.h" |
10073 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10074 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
10075 | builtin and then its argument prototype would still apply. */ |
10076 | char IceConnectionNumber(); | |
10077 | ||
10078 | int main() { | |
10079 | IceConnectionNumber() | |
10080 | ; return 0; } | |
10081 | EOF | |
24fd6d87 | 10082 | if { (eval echo configure:10083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
10083 | rm -rf conftest* |
10084 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10085 | else | |
10086 | echo "configure: failed program was:" >&5 | |
10087 | cat conftest.$ac_ext >&5 | |
10088 | rm -rf conftest* | |
10089 | eval "ac_cv_lib_$ac_lib_var=no" | |
10090 | fi | |
10091 | rm -f conftest* | |
10092 | LIBS="$ac_save_LIBS" | |
10093 | ||
10094 | fi | |
10095 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10096 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 10097 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
10098 | else |
10099 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
10100 | fi |
10101 | ||
698dcdb6 | 10102 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
10103 | |
10104 | fi | |
10105 | ||
1e6feb95 VZ |
10106 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
10107 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 10108 | |
1e6feb95 VZ |
10109 | if test "$wxUSE_MOTIF" = 1; then |
10110 | if test "$no_x" = "yes"; then | |
10111 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
10112 | fi | |
ab9b9eab | 10113 | |
1e6feb95 VZ |
10114 | GUI_TK_LIBRARY="$X_LIBS" |
10115 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
ab9b9eab | 10116 | |
1e6feb95 | 10117 | AFMINSTALL=afminstall |
dad6c0ea | 10118 | |
1e6feb95 VZ |
10119 | |
10120 | COMPILED_X_PROGRAM=0 | |
cd6d6d5b | 10121 | |
1e6feb95 | 10122 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
24fd6d87 | 10123 | echo "configure:10124: checking for Motif/Lesstif headers" >&5 |
1e6feb95 | 10124 | |
ab9b9eab VZ |
10125 | ac_find_includes= |
10126 | for ac_dir in $SEARCH_INCLUDE; | |
10127 | do | |
10128 | if test -f "$ac_dir/Xm/Xm.h"; then | |
10129 | ac_find_includes=$ac_dir | |
10130 | break | |
10131 | fi | |
10132 | done | |
10133 | ||
1e6feb95 VZ |
10134 | if test "$ac_find_includes" != "" ; then |
10135 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
10136 | else | |
10137 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 10138 | #line 10139 "configure" |
cd6d6d5b VZ |
10139 | #include "confdefs.h" |
10140 | ||
1e6feb95 VZ |
10141 | #include <Xm/Xm.h> |
10142 | ||
698dcdb6 | 10143 | int main() { |
cd6d6d5b | 10144 | |
1e6feb95 | 10145 | int version; |
cd6d6d5b | 10146 | |
1e6feb95 VZ |
10147 | version = xmUseVersion; |
10148 | ||
698dcdb6 VZ |
10149 | ; return 0; } |
10150 | EOF | |
24fd6d87 | 10151 | if { (eval echo configure:10152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10152 | rm -rf conftest* |
10153 | ||
1e6feb95 VZ |
10154 | echo "$ac_t""found in default search path" 1>&6 |
10155 | COMPILED_X_PROGRAM=1 | |
10156 | ||
cd6d6d5b | 10157 | else |
698dcdb6 VZ |
10158 | echo "configure: failed program was:" >&5 |
10159 | cat conftest.$ac_ext >&5 | |
10160 | rm -rf conftest* | |
10161 | ||
1e6feb95 VZ |
10162 | echo "$ac_t""no" 1>&6 |
10163 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
10164 | ||
698dcdb6 | 10165 | |
cd6d6d5b | 10166 | fi |
698dcdb6 | 10167 | rm -f conftest* |
1e6feb95 | 10168 | fi |
ab9b9eab | 10169 | |
1e6feb95 VZ |
10170 | if test "$COMPILED_X_PROGRAM" = 0; then |
10171 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
24fd6d87 | 10172 | echo "configure:10173: checking for Motif/Lesstif library" >&5 |
1e6feb95 | 10173 | |
ab9b9eab VZ |
10174 | ac_find_libraries= |
10175 | for ac_dir in $SEARCH_LIB; | |
10176 | do | |
10177 | for ac_extension in a so sl; do | |
10178 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
10179 | ac_find_libraries=$ac_dir | |
10180 | break 2 | |
10181 | fi | |
10182 | done | |
10183 | done | |
10184 | ||
1e6feb95 VZ |
10185 | if test "$ac_find_libraries" != "" ; then |
10186 | ||
ab9b9eab VZ |
10187 | ac_path_to_include=$ac_find_includes |
10188 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
10189 | result=$? | |
10190 | if test $result = 0; then | |
10191 | ac_path_to_include="" | |
10192 | else | |
10193 | ac_path_to_include="-I$ac_find_includes" | |
10194 | fi | |
10195 | ||
1e6feb95 | 10196 | |
ab9b9eab VZ |
10197 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10198 | result=$? | |
10199 | if test $result = 0; then | |
10200 | ac_path_to_link="" | |
10201 | else | |
10202 | ac_path_to_link="-L$ac_find_libraries" | |
10203 | fi | |
10204 | ||
698dcdb6 | 10205 | |
1e6feb95 VZ |
10206 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10207 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
10208 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10209 | else | |
10210 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 10211 | #line 10212 "configure" |
cd6d6d5b | 10212 | #include "confdefs.h" |
ab9b9eab | 10213 | |
1e6feb95 VZ |
10214 | #include <Xm/Xm.h> |
10215 | ||
698dcdb6 | 10216 | int main() { |
ab9b9eab | 10217 | |
1e6feb95 | 10218 | int version; |
ab9b9eab | 10219 | |
1e6feb95 VZ |
10220 | version = xmUseVersion; |
10221 | ||
698dcdb6 VZ |
10222 | ; return 0; } |
10223 | EOF | |
24fd6d87 | 10224 | if { (eval echo configure:10225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10225 | rm -rf conftest* |
10226 | ||
1e6feb95 VZ |
10227 | echo "$ac_t""found in default search path" 1>&6 |
10228 | COMPILED_X_PROGRAM=1 | |
10229 | ||
cd6d6d5b | 10230 | else |
698dcdb6 VZ |
10231 | echo "configure: failed program was:" >&5 |
10232 | cat conftest.$ac_ext >&5 | |
10233 | rm -rf conftest* | |
10234 | ||
1e6feb95 VZ |
10235 | echo "$ac_t""no" 1>&6 |
10236 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
10237 | ||
698dcdb6 | 10238 | |
cd6d6d5b | 10239 | fi |
698dcdb6 | 10240 | rm -f conftest* |
1e6feb95 | 10241 | fi |
cd6d6d5b | 10242 | fi |
ab9b9eab | 10243 | |
1e6feb95 VZ |
10244 | |
10245 | XPM_LINK="" | |
10246 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
24fd6d87 | 10247 | echo "configure:10248: checking for Xpm library" >&5 |
1e6feb95 | 10248 | |
ab9b9eab VZ |
10249 | ac_find_libraries= |
10250 | for ac_dir in $SEARCH_LIB; | |
10251 | do | |
10252 | for ac_extension in a so sl; do | |
10253 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
10254 | ac_find_libraries=$ac_dir | |
10255 | break 2 | |
10256 | fi | |
10257 | done | |
10258 | done | |
10259 | ||
1e6feb95 VZ |
10260 | if test "$ac_find_libraries" != "" ; then |
10261 | ||
ab9b9eab VZ |
10262 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
10263 | result=$? | |
10264 | if test $result = 0; then | |
10265 | ac_path_to_link="" | |
10266 | else | |
10267 | ac_path_to_link="-L$ac_find_libraries" | |
10268 | fi | |
10269 | ||
1e6feb95 VZ |
10270 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
10271 | XPM_LINK="-lXpm " | |
10272 | cat >> confdefs.h <<\EOF | |
ab9b9eab VZ |
10273 | #define wxHAVE_LIB_XPM 1 |
10274 | EOF | |
10275 | ||
1e6feb95 VZ |
10276 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10277 | else | |
10278 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 10279 | #line 10280 "configure" |
cd6d6d5b VZ |
10280 | #include "confdefs.h" |
10281 | ||
1e6feb95 VZ |
10282 | #include <X11/xpm.h> |
10283 | ||
698dcdb6 | 10284 | int main() { |
cd6d6d5b | 10285 | |
1e6feb95 | 10286 | int version; |
cd6d6d5b | 10287 | |
1e6feb95 VZ |
10288 | version = XpmLibraryVersion(); |
10289 | ||
698dcdb6 VZ |
10290 | ; return 0; } |
10291 | EOF | |
24fd6d87 | 10292 | if { (eval echo configure:10293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10293 | rm -rf conftest* |
10294 | ||
1e6feb95 VZ |
10295 | XPM_LINK="-lXpm " |
10296 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
10297 | #define wxHAVE_LIB_XPM 1 |
10298 | EOF | |
10299 | ||
1e6feb95 VZ |
10300 | echo "$ac_t""found in default search path" 1>&6 |
10301 | COMPILED_X_PROGRAM=0 | |
10302 | ||
cd6d6d5b | 10303 | else |
698dcdb6 VZ |
10304 | echo "configure: failed program was:" >&5 |
10305 | cat conftest.$ac_ext >&5 | |
10306 | rm -rf conftest* | |
10307 | ||
1e6feb95 VZ |
10308 | echo "$ac_t""no" 1>&6 |
10309 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10310 | ||
698dcdb6 | 10311 | |
cd6d6d5b | 10312 | fi |
698dcdb6 | 10313 | rm -f conftest* |
1e6feb95 VZ |
10314 | fi |
10315 | ||
10316 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" | |
10317 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
10318 | TOOLKIT=MOTIF | |
10319 | GUIDIST=MOTIF_DIST | |
ab9b9eab VZ |
10320 | fi |
10321 | ||
1e6feb95 VZ |
10322 | if test "$wxUSE_MAC" = 1; then |
10323 | TOOLKIT=MAC | |
10324 | GUIDIST=MACX_DIST | |
10325 | fi | |
10f2d63a | 10326 | |
1e6feb95 VZ |
10327 | if test "$wxUSE_PM" = 1; then |
10328 | TOOLKIT=PM | |
10329 | GUIDIST=GTK_DIST | |
10330 | fi | |
b4085ce6 | 10331 | |
1e6feb95 VZ |
10332 | if test "$TOOLKIT" != "PM" ; then |
10333 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
10334 | else | |
10335 | TOOLKIT_DIR="os2" | |
10336 | fi | |
e07802fc | 10337 | |
1e6feb95 | 10338 | TOOLKIT_NAME="${TOOLKIT_DIR}" |
10f2d63a | 10339 | |
1e6feb95 VZ |
10340 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" |
10341 | ||
10342 | if test "$TOOLKIT_NAME" = "motif"; then | |
10343 | TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
10344 | fi | |
10345 | ||
10346 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10347 | TOOLKIT_NAME="${TOOLKIT_NAME}univ" | |
10348 | UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
10349 | TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}" | |
10350 | SETUPH_DIR="univ" | |
f6bcfd97 | 10351 | else |
1e6feb95 VZ |
10352 | SETUPH_DIR="${TOOLKIT_DIR}" |
10353 | fi | |
10354 | ||
10355 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10356 | TOOLKIT_NAME="${TOOLKIT_NAME}d" | |
f6bcfd97 BP |
10357 | fi |
10358 | ||
2224580a | 10359 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
1e6feb95 VZ |
10360 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10361 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__" | |
10362 | fi | |
10f2d63a | 10363 | |
f6bcfd97 | 10364 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 10365 | |
1e6feb95 VZ |
10366 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10367 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
10368 | else | |
10369 | ALL_OBJECTS="\$(GUIOBJS)" | |
10370 | fi | |
10371 | ||
10372 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
10373 | ||
10374 | if test "$TOOLKIT" != "MSW"; then | |
10375 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
10376 | fi | |
10377 | ||
10378 | if test "$wxUSE_HTML" = "yes"; then | |
10379 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
10380 | fi | |
3fcdd07b | 10381 | |
1e6feb95 VZ |
10382 | if test "$TOOLKIT" != "MSW"; then |
10383 | if test "$wxUSE_ODBC" = "yes" ; then | |
10384 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
10385 | fi | |
3fcdd07b VZ |
10386 | fi |
10387 | ||
d9d8273d | 10388 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 10389 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
10390 | fi |
10391 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
10392 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
10393 | fi | |
10394 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10395 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
10396 | fi | |
10397 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10398 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10399 | fi | |
3fed1840 RR |
10400 | if test "$wxUSE_FREETYPE" = "yes" ; then |
10401 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
10402 | fi | |
2224580a | 10403 | |
1e6feb95 VZ |
10404 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
10405 | ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)" | |
10406 | else | |
10407 | ALL_DEPFILES="\$(GUIDEPS)" | |
10408 | fi | |
10409 | ||
10410 | ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)" | |
10411 | ||
10412 | if test "$TOOLKIT" != "MSW"; then | |
10413 | ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)" | |
10414 | fi | |
10415 | ||
10416 | if test "$wxUSE_HTML" = "yes"; then | |
10417 | ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)" | |
10418 | fi | |
10419 | ||
10420 | PORT_FILES="src/\$(TOOLKITDIR)/files.lst" | |
10421 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
10422 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
10423 | fi | |
2224580a VZ |
10424 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" |
10425 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
10426 | ||
10427 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
10428 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 10429 | else |
dad6c0ea VZ |
10430 | USE_GUI=0 |
10431 | ||
f6bcfd97 BP |
10432 | TOOLKIT_DIR="base" |
10433 | ||
10434 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
10435 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
10436 | else | |
10437 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
10438 | fi | |
10439 | ||
07eb77a6 RL |
10440 | TOOLKIT_DEF="-D__WXBASE__" |
10441 | ||
b4085ce6 GD |
10442 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
10443 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 10444 | |
a20b6d3a VZ |
10445 | if test "$wxUSE_ZLIB" = "yes" ; then |
10446 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
10447 | fi | |
10448 | ||
f6bcfd97 | 10449 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a VZ |
10450 | |
10451 | PORT_FILES="src/files.lst" | |
10452 | RPM_FILES="src/rpmfiles.lst" | |
10453 | RPM_SPEC="wxBase.spec" | |
10454 | ||
10455 | GUIDIST="BASE_DIST" | |
10456 | DISTDIR="wxBase" | |
10f2d63a VZ |
10457 | fi |
10458 | ||
10459 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 10460 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
10461 | |
10462 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 10463 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
10464 | |
10465 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 10466 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
10467 | |
10468 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
10469 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
10470 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
10471 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
10472 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
10473 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
10474 | |
10475 | SHARED_LD= | |
10476 | PIC_FLAG= | |
10477 | WX_ALL= | |
10478 | WX_ALL_INSTALLED= | |
1d62a8b4 | 10479 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 10480 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 10481 | |
698dcdb6 | 10482 | |
10f2d63a VZ |
10483 | if test "$wxUSE_SHARED" = "yes"; then |
10484 | case "${host}" in | |
10485 | *-hp-hpux* ) | |
10486 | if test "$GCC" = yes ; then | |
69ffe1d2 | 10487 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
10488 | PIC_FLAG="-fPIC" |
10489 | else | |
f6bcfd97 BP |
10490 | LDFLAGS="-L/usr/lib" |
10491 | ||
10f2d63a VZ |
10492 | SHARED_LD="${CXX} -b -o" |
10493 | PIC_FLAG="+Z" | |
10494 | fi | |
f6bcfd97 BP |
10495 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
10496 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 10497 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 10498 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
10499 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
10500 | else | |
10501 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
10502 | fi | |
10f2d63a | 10503 | ;; |
b12915c1 VZ |
10504 | |
10505 | *-*-linux* ) | |
10f2d63a VZ |
10506 | SHARED_LD="${CC} -shared -o" |
10507 | PIC_FLAG="-fPIC" | |
00cf1208 | 10508 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 10509 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 10510 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 10511 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 10512 | fi |
c661ecca RR |
10513 | if test "$wxUSE_OPENGL" = "yes"; then |
10514 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10515 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10516 | else | |
10517 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10518 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10519 | fi |
00cf1208 | 10520 | ;; |
10f2d63a VZ |
10521 | *-*-irix5* | *-*-irix6* ) |
10522 | if test "$GCC" = yes ; then | |
10523 | SHARED_LD="${CC} -shared -o" | |
10524 | PIC_FLAG="-fPIC" | |
10525 | else | |
10526 | SHARED_LD="${CXX} -shared -o" | |
10527 | fi | |
c661ecca RR |
10528 | if test "$wxUSE_OPENGL" = "yes"; then |
10529 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10530 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10531 | else | |
10532 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10533 | WX_ALL="CREATE_LINKS" | |
422107f9 | 10534 | fi |
10f2d63a VZ |
10535 | ;; |
10536 | *-*-solaris2* ) | |
10537 | if test "$GCC" = yes ; then | |
10538 | SHARED_LD="${CC} -shared -o" | |
10539 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
10540 | |
10541 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
10542 | else |
10543 | SHARED_LD="${CXX} -G -o" | |
10544 | PIC_FLAG="-KPIC" | |
10545 | fi | |
c661ecca RR |
10546 | if test "$wxUSE_OPENGL" = "yes"; then |
10547 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10548 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10549 | else | |
10550 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10551 | WX_ALL="CREATE_LINKS" | |
10552 | fi | |
10f2d63a VZ |
10553 | ;; |
10554 | *-*-sunos4* ) | |
10555 | SHARED_LD="${CC} -shared -o" | |
10556 | PIC_FLAG="-fPIC" | |
10557 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10558 | WX_ALL="CREATE_LINKS" | |
10559 | ;; | |
95c8801c | 10560 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* ) |
10f2d63a VZ |
10561 | SHARED_LD="${CC} -shared -o" |
10562 | PIC_FLAG="-fPIC" | |
37d403aa JS |
10563 | if test "$wxUSE_OPENGL" = "yes"; then |
10564 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10565 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10566 | else | |
10567 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10568 | WX_ALL="CREATE_LINKS" | |
10569 | fi | |
10f2d63a | 10570 | ;; |
b4085ce6 | 10571 | *-*-darwin* ) |
ea5999b9 GD |
10572 | SHARED_LD="${CXX} -dynamiclib -o" |
10573 | PIC_FLAG="-dynamic -fPIC" | |
b4085ce6 GD |
10574 | if test "$wxUSE_OPENGL" = "yes"; then |
10575 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
10576 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
10577 | else | |
10578 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10579 | WX_ALL="CREATE_LINKS" | |
10580 | fi | |
1e6feb95 VZ |
10581 | WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r" |
10582 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10583 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
10584 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10585 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" | |
10586 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
10587 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
10588 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" | |
10589 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
b4085ce6 | 10590 | ;; |
10f2d63a VZ |
10591 | *-*-osf* ) |
10592 | SHARED_LD="${CXX} -shared -o" | |
10593 | PIC_FLAG="-fPIC" | |
10594 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10595 | WX_ALL="CREATE_LINKS" | |
10596 | ;; | |
10597 | *-*-dgux5* ) | |
10598 | SHARED_LD="${CXX} -shared -o" | |
10599 | PIC_FLAG="-fPIC" | |
10600 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10601 | WX_ALL="CREATE_LINKS" | |
10602 | ;; | |
10603 | *-*-sysv5* ) | |
10604 | SHARED_LD="${CC} -shared -o" | |
10605 | PIC_FLAG="-fPIC" | |
10606 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10607 | WX_ALL="CREATE_LINKS" | |
10608 | ;; | |
10609 | *-*-aix* ) | |
10610 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
10611 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
10612 | ;; | |
1c8183e2 | 10613 | *-*-cygwin* ) |
10f2d63a | 10614 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10615 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10616 | if test "$wxUSE_OPENGL" = "yes"; then |
10617 | WX_ALL_INSTALLED="preinstall_gl" | |
10618 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10619 | else | |
10620 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10621 | fi | |
10f2d63a | 10622 | ;; |
b12915c1 | 10623 | *-*-mingw32* ) |
10f2d63a | 10624 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 10625 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10626 | if test "$wxUSE_OPENGL" = "yes"; then |
10627 | WX_ALL_INSTALLED="preinstall_gl" | |
10628 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10629 | else | |
10630 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10631 | fi | |
10f2d63a VZ |
10632 | ;; |
10633 | *-pc-os2_emx ) | |
e07802fc VZ |
10634 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
10635 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 10636 | ;; |
b12915c1 | 10637 | *-*-beos* ) |
e2b8b066 | 10638 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
10639 | PIC_FLAG="-fPIC" |
10640 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
10641 | WX_ALL="CREATE_LINKS" | |
10642 | ;; | |
10f2d63a | 10643 | *) |
698dcdb6 | 10644 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
10645 | esac |
10646 | ||
10647 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
10648 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 10649 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 10650 | fi |
3711412e | 10651 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
10652 | else |
10653 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 10654 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
10655 | |
10656 | if test "$wxUSE_OPENGL" = "yes"; then | |
10657 | WX_ALL_INSTALLED="preinstall_gl" | |
10658 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
10659 | else | |
10660 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10661 | fi | |
10662 | ||
10663 | if test "$wxUSE_GUI" = "no"; then | |
10664 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
10665 | fi | |
10666 | ||
3711412e | 10667 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
10668 | fi |
10669 | ||
698dcdb6 VZ |
10670 | |
10671 | for ac_hdr in strings.h | |
10f2d63a | 10672 | do |
698dcdb6 VZ |
10673 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10674 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24fd6d87 | 10675 | echo "configure:10676: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10676 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10677 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10678 | else | |
10679 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 10680 | #line 10681 "configure" |
10f2d63a | 10681 | #include "confdefs.h" |
698dcdb6 VZ |
10682 | #include <$ac_hdr> |
10683 | EOF | |
10684 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 10685 | { (eval echo configure:10686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10686 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10687 | if test -z "$ac_err"; then | |
10688 | rm -rf conftest* | |
10689 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10690 | else |
698dcdb6 VZ |
10691 | echo "$ac_err" >&5 |
10692 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10693 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10694 | rm -rf conftest* |
10695 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10696 | fi |
698dcdb6 | 10697 | rm -f conftest* |
10f2d63a | 10698 | fi |
698dcdb6 VZ |
10699 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10700 | echo "$ac_t""yes" 1>&6 | |
10701 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10702 | cat >> confdefs.h <<EOF | |
10703 | #define $ac_tr_hdr 1 | |
10f2d63a | 10704 | EOF |
698dcdb6 VZ |
10705 | |
10706 | else | |
10707 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10708 | fi |
10709 | done | |
10710 | ||
698dcdb6 | 10711 | for ac_hdr in stdlib.h |
9cfadba2 | 10712 | do |
698dcdb6 VZ |
10713 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10714 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24fd6d87 | 10715 | echo "configure:10716: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10716 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10717 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10718 | else | |
10719 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 10720 | #line 10721 "configure" |
9cfadba2 | 10721 | #include "confdefs.h" |
698dcdb6 VZ |
10722 | #include <$ac_hdr> |
10723 | EOF | |
10724 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 10725 | { (eval echo configure:10726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10726 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10727 | if test -z "$ac_err"; then | |
10728 | rm -rf conftest* | |
10729 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10730 | else |
698dcdb6 VZ |
10731 | echo "$ac_err" >&5 |
10732 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 10733 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10734 | rm -rf conftest* |
10735 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 10736 | fi |
698dcdb6 | 10737 | rm -f conftest* |
9cfadba2 | 10738 | fi |
698dcdb6 VZ |
10739 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10740 | echo "$ac_t""yes" 1>&6 | |
10741 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10742 | cat >> confdefs.h <<EOF | |
10743 | #define $ac_tr_hdr 1 | |
9cfadba2 | 10744 | EOF |
698dcdb6 VZ |
10745 | |
10746 | else | |
10747 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
10748 | fi |
10749 | done | |
10f2d63a | 10750 | |
698dcdb6 | 10751 | for ac_hdr in unistd.h |
10f2d63a | 10752 | do |
698dcdb6 VZ |
10753 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10754 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24fd6d87 | 10755 | echo "configure:10756: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10756 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10757 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10758 | else | |
10759 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 10760 | #line 10761 "configure" |
10f2d63a | 10761 | #include "confdefs.h" |
698dcdb6 VZ |
10762 | #include <$ac_hdr> |
10763 | EOF | |
10764 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 10765 | { (eval echo configure:10766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10766 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10767 | if test -z "$ac_err"; then | |
10768 | rm -rf conftest* | |
10769 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 10770 | else |
698dcdb6 VZ |
10771 | echo "$ac_err" >&5 |
10772 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10773 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10774 | rm -rf conftest* |
10775 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10776 | fi |
698dcdb6 | 10777 | rm -f conftest* |
10f2d63a | 10778 | fi |
698dcdb6 VZ |
10779 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10780 | echo "$ac_t""yes" 1>&6 | |
10781 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10782 | cat >> confdefs.h <<EOF | |
10783 | #define $ac_tr_hdr 1 | |
10f2d63a | 10784 | EOF |
698dcdb6 VZ |
10785 | |
10786 | else | |
10787 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10788 | fi |
10789 | done | |
10790 | ||
698dcdb6 | 10791 | for ac_hdr in wchar.h |
10f2d63a | 10792 | do |
698dcdb6 VZ |
10793 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10794 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24fd6d87 | 10795 | echo "configure:10796: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10796 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10797 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10798 | else | |
10799 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 10800 | #line 10801 "configure" |
10f2d63a | 10801 | #include "confdefs.h" |
698dcdb6 VZ |
10802 | #include <$ac_hdr> |
10803 | EOF | |
10804 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 10805 | { (eval echo configure:10806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10806 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10807 | if test -z "$ac_err"; then | |
10808 | rm -rf conftest* | |
10809 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 10810 | else |
698dcdb6 VZ |
10811 | echo "$ac_err" >&5 |
10812 | echo "configure: failed program was:" >&5 | |
6f72b082 | 10813 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10814 | rm -rf conftest* |
10815 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 10816 | fi |
698dcdb6 | 10817 | rm -f conftest* |
6f72b082 | 10818 | fi |
698dcdb6 VZ |
10819 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10820 | echo "$ac_t""yes" 1>&6 | |
10821 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10822 | cat >> confdefs.h <<EOF | |
10823 | #define $ac_tr_hdr 1 | |
6f72b082 | 10824 | EOF |
698dcdb6 VZ |
10825 | |
10826 | else | |
10827 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
10828 | fi |
10829 | done | |
10830 | ||
698dcdb6 | 10831 | for ac_hdr in wcstr.h |
6f72b082 | 10832 | do |
698dcdb6 VZ |
10833 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10834 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24fd6d87 | 10835 | echo "configure:10836: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10836 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10837 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10838 | else | |
10839 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 10840 | #line 10841 "configure" |
6f72b082 | 10841 | #include "confdefs.h" |
698dcdb6 VZ |
10842 | #include <$ac_hdr> |
10843 | EOF | |
10844 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 10845 | { (eval echo configure:10846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10846 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10847 | if test -z "$ac_err"; then | |
10848 | rm -rf conftest* | |
10849 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 10850 | else |
698dcdb6 VZ |
10851 | echo "$ac_err" >&5 |
10852 | echo "configure: failed program was:" >&5 | |
6f72b082 | 10853 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10854 | rm -rf conftest* |
10855 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 10856 | fi |
698dcdb6 | 10857 | rm -f conftest* |
6f72b082 | 10858 | fi |
698dcdb6 VZ |
10859 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10860 | echo "$ac_t""yes" 1>&6 | |
10861 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10862 | cat >> confdefs.h <<EOF | |
10863 | #define $ac_tr_hdr 1 | |
6f72b082 | 10864 | EOF |
698dcdb6 VZ |
10865 | |
10866 | else | |
10867 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
10868 | fi |
10869 | done | |
10870 | ||
698dcdb6 | 10871 | for ac_hdr in fnmatch.h |
6f72b082 | 10872 | do |
698dcdb6 VZ |
10873 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10874 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24fd6d87 | 10875 | echo "configure:10876: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10876 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10878 | else | |
10879 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 10880 | #line 10881 "configure" |
6f72b082 | 10881 | #include "confdefs.h" |
698dcdb6 VZ |
10882 | #include <$ac_hdr> |
10883 | EOF | |
10884 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 10885 | { (eval echo configure:10886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10886 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10887 | if test -z "$ac_err"; then | |
10888 | rm -rf conftest* | |
10889 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10890 | else |
698dcdb6 VZ |
10891 | echo "$ac_err" >&5 |
10892 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10893 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10894 | rm -rf conftest* |
10895 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10896 | fi |
698dcdb6 | 10897 | rm -f conftest* |
10f2d63a | 10898 | fi |
698dcdb6 VZ |
10899 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10900 | echo "$ac_t""yes" 1>&6 | |
10901 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10902 | cat >> confdefs.h <<EOF | |
10903 | #define $ac_tr_hdr 1 | |
10f2d63a | 10904 | EOF |
698dcdb6 VZ |
10905 | |
10906 | else | |
10907 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10908 | fi |
10909 | done | |
10910 | ||
698dcdb6 | 10911 | for ac_hdr in iconv.h |
0fb0dd83 | 10912 | do |
698dcdb6 VZ |
10913 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10914 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24fd6d87 | 10915 | echo "configure:10916: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10916 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10917 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10918 | else | |
10919 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 10920 | #line 10921 "configure" |
0fb0dd83 | 10921 | #include "confdefs.h" |
698dcdb6 VZ |
10922 | #include <$ac_hdr> |
10923 | EOF | |
10924 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 10925 | { (eval echo configure:10926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10926 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10927 | if test -z "$ac_err"; then | |
10928 | rm -rf conftest* | |
10929 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 10930 | else |
698dcdb6 VZ |
10931 | echo "$ac_err" >&5 |
10932 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 10933 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10934 | rm -rf conftest* |
10935 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 10936 | fi |
698dcdb6 | 10937 | rm -f conftest* |
0fb0dd83 | 10938 | fi |
698dcdb6 VZ |
10939 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10940 | echo "$ac_t""yes" 1>&6 | |
10941 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10942 | cat >> confdefs.h <<EOF | |
10943 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 10944 | EOF |
698dcdb6 VZ |
10945 | |
10946 | else | |
10947 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
10948 | fi |
10949 | done | |
10950 | ||
698dcdb6 | 10951 | for ac_hdr in langinfo.h |
1f8ae82f | 10952 | do |
698dcdb6 VZ |
10953 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10954 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24fd6d87 | 10955 | echo "configure:10956: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10956 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10957 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10958 | else | |
10959 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 10960 | #line 10961 "configure" |
1f8ae82f | 10961 | #include "confdefs.h" |
698dcdb6 VZ |
10962 | #include <$ac_hdr> |
10963 | EOF | |
10964 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 10965 | { (eval echo configure:10966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10966 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10967 | if test -z "$ac_err"; then | |
10968 | rm -rf conftest* | |
10969 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 10970 | else |
698dcdb6 VZ |
10971 | echo "$ac_err" >&5 |
10972 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 10973 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10974 | rm -rf conftest* |
10975 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 10976 | fi |
698dcdb6 | 10977 | rm -f conftest* |
1f8ae82f | 10978 | fi |
698dcdb6 VZ |
10979 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10980 | echo "$ac_t""yes" 1>&6 | |
10981 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10982 | cat >> confdefs.h <<EOF | |
10983 | #define $ac_tr_hdr 1 | |
1f8ae82f | 10984 | EOF |
698dcdb6 VZ |
10985 | |
10986 | else | |
10987 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
10988 | fi |
10989 | done | |
10990 | ||
698dcdb6 | 10991 | |
73fd4a60 VZ |
10992 | if test "$wxUSE_GUI" = "yes"; then |
10993 | if test "$wxUSE_UNIX" = "yes"; then | |
698dcdb6 | 10994 | for ac_hdr in X11/XKBlib.h |
10f2d63a | 10995 | do |
698dcdb6 VZ |
10996 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10997 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24fd6d87 | 10998 | echo "configure:10999: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10999 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11000 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11001 | else | |
11002 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 11003 | #line 11004 "configure" |
10f2d63a | 11004 | #include "confdefs.h" |
698dcdb6 VZ |
11005 | #include <$ac_hdr> |
11006 | EOF | |
11007 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 11008 | { (eval echo configure:11009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11009 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11010 | if test -z "$ac_err"; then | |
11011 | rm -rf conftest* | |
11012 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 11013 | else |
698dcdb6 VZ |
11014 | echo "$ac_err" >&5 |
11015 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11016 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
11017 | rm -rf conftest* |
11018 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 11019 | fi |
698dcdb6 | 11020 | rm -f conftest* |
10f2d63a | 11021 | fi |
698dcdb6 VZ |
11022 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11023 | echo "$ac_t""yes" 1>&6 | |
11024 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11025 | cat >> confdefs.h <<EOF | |
11026 | #define $ac_tr_hdr 1 | |
10f2d63a | 11027 | EOF |
698dcdb6 VZ |
11028 | |
11029 | else | |
11030 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11031 | fi |
11032 | done | |
11033 | ||
73fd4a60 | 11034 | fi |
10f2d63a VZ |
11035 | fi |
11036 | ||
698dcdb6 VZ |
11037 | |
11038 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
24fd6d87 | 11039 | echo "configure:11040: checking for ANSI C header files" >&5 |
698dcdb6 VZ |
11040 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
11041 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11042 | else |
698dcdb6 | 11043 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11044 | #line 11045 "configure" |
10f2d63a VZ |
11045 | #include "confdefs.h" |
11046 | #include <stdlib.h> | |
11047 | #include <stdarg.h> | |
11048 | #include <string.h> | |
11049 | #include <float.h> | |
698dcdb6 VZ |
11050 | EOF |
11051 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 11052 | { (eval echo configure:11053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
11053 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11054 | if test -z "$ac_err"; then | |
11055 | rm -rf conftest* | |
10f2d63a VZ |
11056 | ac_cv_header_stdc=yes |
11057 | else | |
698dcdb6 VZ |
11058 | echo "$ac_err" >&5 |
11059 | echo "configure: failed program was:" >&5 | |
10f2d63a | 11060 | cat conftest.$ac_ext >&5 |
698dcdb6 | 11061 | rm -rf conftest* |
10f2d63a VZ |
11062 | ac_cv_header_stdc=no |
11063 | fi | |
698dcdb6 | 11064 | rm -f conftest* |
10f2d63a VZ |
11065 | |
11066 | if test $ac_cv_header_stdc = yes; then | |
11067 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 | 11068 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11069 | #line 11070 "configure" |
10f2d63a VZ |
11070 | #include "confdefs.h" |
11071 | #include <string.h> | |
698dcdb6 | 11072 | EOF |
10f2d63a VZ |
11073 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11074 | egrep "memchr" >/dev/null 2>&1; then | |
11075 | : | |
11076 | else | |
698dcdb6 | 11077 | rm -rf conftest* |
10f2d63a VZ |
11078 | ac_cv_header_stdc=no |
11079 | fi | |
11080 | rm -f conftest* | |
11081 | ||
11082 | fi | |
11083 | ||
11084 | if test $ac_cv_header_stdc = yes; then | |
11085 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 | 11086 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11087 | #line 11088 "configure" |
10f2d63a VZ |
11088 | #include "confdefs.h" |
11089 | #include <stdlib.h> | |
698dcdb6 | 11090 | EOF |
10f2d63a VZ |
11091 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11092 | egrep "free" >/dev/null 2>&1; then | |
11093 | : | |
11094 | else | |
698dcdb6 | 11095 | rm -rf conftest* |
10f2d63a VZ |
11096 | ac_cv_header_stdc=no |
11097 | fi | |
11098 | rm -f conftest* | |
11099 | ||
11100 | fi | |
11101 | ||
11102 | if test $ac_cv_header_stdc = yes; then | |
11103 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 11104 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
11105 | : |
11106 | else | |
698dcdb6 | 11107 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11108 | #line 11109 "configure" |
10f2d63a VZ |
11109 | #include "confdefs.h" |
11110 | #include <ctype.h> | |
698dcdb6 VZ |
11111 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
11112 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 11113 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
11114 | int main () { int i; for (i = 0; i < 256; i++) |
11115 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
11116 | exit (0); } | |
11117 | ||
11118 | EOF | |
24fd6d87 | 11119 | if { (eval echo configure:11120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11120 | then |
10f2d63a VZ |
11121 | : |
11122 | else | |
698dcdb6 VZ |
11123 | echo "configure: failed program was:" >&5 |
11124 | cat conftest.$ac_ext >&5 | |
11125 | rm -fr conftest* | |
11126 | ac_cv_header_stdc=no | |
10f2d63a | 11127 | fi |
698dcdb6 | 11128 | rm -fr conftest* |
10f2d63a | 11129 | fi |
698dcdb6 | 11130 | |
10f2d63a VZ |
11131 | fi |
11132 | fi | |
1e487827 | 11133 | |
698dcdb6 VZ |
11134 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
11135 | if test $ac_cv_header_stdc = yes; then | |
11136 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11137 | #define STDC_HEADERS 1 |
11138 | EOF | |
11139 | ||
11140 | fi | |
11141 | ||
698dcdb6 | 11142 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
24fd6d87 | 11143 | echo "configure:11144: checking for mode_t" >&5 |
698dcdb6 VZ |
11144 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
11145 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11146 | else |
698dcdb6 | 11147 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11148 | #line 11149 "configure" |
1e487827 | 11149 | #include "confdefs.h" |
698dcdb6 VZ |
11150 | #include <sys/types.h> |
11151 | #if STDC_HEADERS | |
11152 | #include <stdlib.h> | |
11153 | #include <stddef.h> | |
11154 | #endif | |
11155 | EOF | |
11156 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11157 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11158 | rm -rf conftest* | |
10f2d63a VZ |
11159 | ac_cv_type_mode_t=yes |
11160 | else | |
698dcdb6 VZ |
11161 | rm -rf conftest* |
11162 | ac_cv_type_mode_t=no | |
703e0a69 | 11163 | fi |
698dcdb6 | 11164 | rm -f conftest* |
1e487827 | 11165 | |
698dcdb6 VZ |
11166 | fi |
11167 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
11168 | if test $ac_cv_type_mode_t = no; then | |
11169 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11170 | #define mode_t int |
11171 | EOF | |
11172 | ||
11173 | fi | |
11174 | ||
698dcdb6 | 11175 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
24fd6d87 | 11176 | echo "configure:11177: checking for off_t" >&5 |
698dcdb6 VZ |
11177 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
11178 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11179 | else |
698dcdb6 | 11180 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11181 | #line 11182 "configure" |
10f2d63a | 11182 | #include "confdefs.h" |
698dcdb6 VZ |
11183 | #include <sys/types.h> |
11184 | #if STDC_HEADERS | |
11185 | #include <stdlib.h> | |
11186 | #include <stddef.h> | |
11187 | #endif | |
11188 | EOF | |
11189 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11190 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11191 | rm -rf conftest* | |
10f2d63a VZ |
11192 | ac_cv_type_off_t=yes |
11193 | else | |
698dcdb6 VZ |
11194 | rm -rf conftest* |
11195 | ac_cv_type_off_t=no | |
703e0a69 | 11196 | fi |
698dcdb6 | 11197 | rm -f conftest* |
1e487827 | 11198 | |
698dcdb6 VZ |
11199 | fi |
11200 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
11201 | if test $ac_cv_type_off_t = no; then | |
11202 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11203 | #define off_t long |
11204 | EOF | |
11205 | ||
11206 | fi | |
11207 | ||
698dcdb6 | 11208 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
24fd6d87 | 11209 | echo "configure:11210: checking for pid_t" >&5 |
698dcdb6 VZ |
11210 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
11211 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11212 | else |
698dcdb6 | 11213 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11214 | #line 11215 "configure" |
10f2d63a | 11215 | #include "confdefs.h" |
698dcdb6 VZ |
11216 | #include <sys/types.h> |
11217 | #if STDC_HEADERS | |
11218 | #include <stdlib.h> | |
11219 | #include <stddef.h> | |
11220 | #endif | |
11221 | EOF | |
11222 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11223 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11224 | rm -rf conftest* | |
10f2d63a VZ |
11225 | ac_cv_type_pid_t=yes |
11226 | else | |
698dcdb6 VZ |
11227 | rm -rf conftest* |
11228 | ac_cv_type_pid_t=no | |
703e0a69 | 11229 | fi |
698dcdb6 | 11230 | rm -f conftest* |
1e487827 | 11231 | |
698dcdb6 VZ |
11232 | fi |
11233 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
11234 | if test $ac_cv_type_pid_t = no; then | |
11235 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11236 | #define pid_t int |
11237 | EOF | |
11238 | ||
11239 | fi | |
11240 | ||
698dcdb6 | 11241 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
24fd6d87 | 11242 | echo "configure:11243: checking for size_t" >&5 |
698dcdb6 VZ |
11243 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
11244 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11245 | else |
698dcdb6 | 11246 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11247 | #line 11248 "configure" |
10f2d63a | 11248 | #include "confdefs.h" |
698dcdb6 VZ |
11249 | #include <sys/types.h> |
11250 | #if STDC_HEADERS | |
11251 | #include <stdlib.h> | |
11252 | #include <stddef.h> | |
11253 | #endif | |
11254 | EOF | |
11255 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11256 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
11257 | rm -rf conftest* | |
10f2d63a VZ |
11258 | ac_cv_type_size_t=yes |
11259 | else | |
698dcdb6 VZ |
11260 | rm -rf conftest* |
11261 | ac_cv_type_size_t=no | |
703e0a69 | 11262 | fi |
698dcdb6 | 11263 | rm -f conftest* |
1e487827 | 11264 | |
698dcdb6 VZ |
11265 | fi |
11266 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
11267 | if test $ac_cv_type_size_t = no; then | |
11268 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11269 | #define size_t unsigned |
11270 | EOF | |
11271 | ||
11272 | fi | |
11273 | ||
698dcdb6 | 11274 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
24fd6d87 | 11275 | echo "configure:11276: checking for uid_t in sys/types.h" >&5 |
698dcdb6 VZ |
11276 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
11277 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11278 | else |
698dcdb6 | 11279 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11280 | #line 11281 "configure" |
10f2d63a VZ |
11281 | #include "confdefs.h" |
11282 | #include <sys/types.h> | |
698dcdb6 | 11283 | EOF |
10f2d63a VZ |
11284 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11285 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 11286 | rm -rf conftest* |
10f2d63a VZ |
11287 | ac_cv_type_uid_t=yes |
11288 | else | |
698dcdb6 | 11289 | rm -rf conftest* |
10f2d63a VZ |
11290 | ac_cv_type_uid_t=no |
11291 | fi | |
11292 | rm -f conftest* | |
11293 | ||
11294 | fi | |
1e487827 | 11295 | |
698dcdb6 VZ |
11296 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
11297 | if test $ac_cv_type_uid_t = no; then | |
11298 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11299 | #define uid_t int |
11300 | EOF | |
11301 | ||
698dcdb6 | 11302 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11303 | #define gid_t int |
11304 | EOF | |
11305 | ||
11306 | fi | |
11307 | ||
1e487827 | 11308 | |
698dcdb6 | 11309 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
24fd6d87 | 11310 | echo "configure:11311: checking for wchar_t" >&5 |
698dcdb6 VZ |
11311 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
11312 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11313 | else | |
11314 | ||
11315 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 11316 | #line 11317 "configure" |
0046ff7c VS |
11317 | #include "confdefs.h" |
11318 | #include <wchar.h> | |
698dcdb6 | 11319 | int main() { |
0046ff7c | 11320 | |
d836ee96 VZ |
11321 | wchar_t wc, *ws; |
11322 | wc = L'a'; | |
11323 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11324 | |
11325 | ; return 0; } | |
11326 | EOF | |
24fd6d87 | 11327 | if { (eval echo configure:11328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11328 | rm -rf conftest* |
1f8ae82f GD |
11329 | wx_cv_type_wchar_t=yes |
11330 | else | |
698dcdb6 VZ |
11331 | echo "configure: failed program was:" >&5 |
11332 | cat conftest.$ac_ext >&5 | |
11333 | rm -rf conftest* | |
11334 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 11335 | #line 11336 "configure" |
1f8ae82f GD |
11336 | #include "confdefs.h" |
11337 | #include <stdlib.h> | |
698dcdb6 | 11338 | int main() { |
1f8ae82f | 11339 | |
d836ee96 VZ |
11340 | wchar_t wc, *ws; |
11341 | wc = L'a'; | |
11342 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
11343 | |
11344 | ; return 0; } | |
11345 | EOF | |
24fd6d87 | 11346 | if { (eval echo configure:11347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11347 | rm -rf conftest* |
0046ff7c VS |
11348 | wx_cv_type_wchar_t=yes |
11349 | else | |
698dcdb6 VZ |
11350 | echo "configure: failed program was:" >&5 |
11351 | cat conftest.$ac_ext >&5 | |
11352 | rm -rf conftest* | |
11353 | wx_cv_type_wchar_t=no | |
0046ff7c | 11354 | fi |
698dcdb6 | 11355 | rm -f conftest* |
d836ee96 | 11356 | |
6232543b | 11357 | fi |
698dcdb6 | 11358 | rm -f conftest* |
703e0a69 | 11359 | |
1e487827 | 11360 | fi |
698dcdb6 VZ |
11361 | |
11362 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
11363 | |
11364 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 11365 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
11366 | #define wxUSE_WCHAR_T 1 |
11367 | EOF | |
11368 | ||
11369 | fi | |
11370 | ||
19af3b06 VZ |
11371 | |
11372 | ac_ext=C | |
11373 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11374 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11375 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11376 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11377 | cross_compiling=$ac_cv_prog_cxx_cross | |
11378 | ||
d836ee96 | 11379 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
24fd6d87 | 11380 | echo "configure:11381: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
11381 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
11382 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11383 | else | |
dd2c8b7c | 11384 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11385 | #line 11386 "configure" |
d836ee96 VZ |
11386 | #include "confdefs.h" |
11387 | #include <stddef.h> | |
11388 | int main() { | |
11389 | ||
dd2c8b7c VZ |
11390 | return 0; } |
11391 | ||
d836ee96 | 11392 | struct Foo { void foo(size_t); void foo(unsigned int); }; |
dd2c8b7c VZ |
11393 | |
11394 | int bar() { | |
d836ee96 VZ |
11395 | |
11396 | ; return 0; } | |
11397 | EOF | |
24fd6d87 | 11398 | if { (eval echo configure:11399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11399 | rm -rf conftest* |
11400 | wx_cv_size_t_is_uint=no | |
11401 | else | |
11402 | echo "configure: failed program was:" >&5 | |
11403 | cat conftest.$ac_ext >&5 | |
11404 | rm -rf conftest* | |
11405 | wx_cv_size_t_is_uint=yes | |
11406 | ||
11407 | fi | |
11408 | rm -f conftest* | |
11409 | ||
11410 | fi | |
11411 | ||
11412 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
11413 | ||
11414 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
11415 | cat >> confdefs.h <<\EOF | |
11416 | #define wxSIZE_T_IS_UINT 1 | |
11417 | EOF | |
11418 | ||
11419 | else | |
11420 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
24fd6d87 | 11421 | echo "configure:11422: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
11422 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
11423 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11424 | else | |
11425 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 11426 | #line 11427 "configure" |
d836ee96 VZ |
11427 | #include "confdefs.h" |
11428 | #include <stddef.h> | |
11429 | int main() { | |
11430 | ||
dd2c8b7c VZ |
11431 | return 0; } |
11432 | ||
d836ee96 | 11433 | struct Foo { void foo(size_t); void foo(unsigned long); }; |
dd2c8b7c VZ |
11434 | |
11435 | int bar() { | |
d836ee96 VZ |
11436 | |
11437 | ; return 0; } | |
11438 | EOF | |
24fd6d87 | 11439 | if { (eval echo configure:11440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
11440 | rm -rf conftest* |
11441 | wx_cv_size_t_is_ulong=no | |
11442 | else | |
11443 | echo "configure: failed program was:" >&5 | |
11444 | cat conftest.$ac_ext >&5 | |
11445 | rm -rf conftest* | |
11446 | wx_cv_size_t_is_ulong=yes | |
11447 | ||
11448 | fi | |
11449 | rm -f conftest* | |
11450 | ||
11451 | fi | |
11452 | ||
11453 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
11454 | ||
11455 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
11456 | cat >> confdefs.h <<\EOF | |
11457 | #define wxSIZE_T_IS_ULONG 1 | |
11458 | EOF | |
11459 | ||
11460 | fi | |
11461 | fi | |
11462 | ||
19af3b06 VZ |
11463 | ac_ext=c |
11464 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11465 | ac_cpp='$CPP $CPPFLAGS' | |
11466 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11467 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11468 | cross_compiling=$ac_cv_prog_cc_cross | |
11469 | ||
11470 | ||
1e487827 | 11471 | |
698dcdb6 | 11472 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
24fd6d87 | 11473 | echo "configure:11474: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
11474 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
11475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11476 | else | |
11477 | ||
11478 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 11479 | #line 11480 "configure" |
b12915c1 VZ |
11480 | #include "confdefs.h" |
11481 | #include <pwd.h> | |
698dcdb6 | 11482 | int main() { |
b12915c1 VZ |
11483 | |
11484 | char *p; | |
11485 | struct passwd *pw; | |
11486 | p = pw->pw_gecos; | |
698dcdb6 VZ |
11487 | |
11488 | ; return 0; } | |
11489 | EOF | |
24fd6d87 | 11490 | if { (eval echo configure:11491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11491 | rm -rf conftest* |
11492 | ||
b12915c1 | 11493 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 11494 | |
b12915c1 | 11495 | else |
698dcdb6 VZ |
11496 | echo "configure: failed program was:" >&5 |
11497 | cat conftest.$ac_ext >&5 | |
11498 | rm -rf conftest* | |
11499 | ||
b12915c1 | 11500 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
11501 | |
11502 | ||
6232543b | 11503 | fi |
698dcdb6 VZ |
11504 | rm -f conftest* |
11505 | ||
703e0a69 | 11506 | |
1e487827 | 11507 | fi |
698dcdb6 VZ |
11508 | |
11509 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 11510 | |
bd3277fe | 11511 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 11512 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
11513 | #define HAVE_PW_GECOS 1 |
11514 | EOF | |
11515 | ||
11516 | fi | |
11517 | ||
698dcdb6 VZ |
11518 | |
11519 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
24fd6d87 | 11520 | echo "configure:11521: checking for working const" >&5 |
698dcdb6 VZ |
11521 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
11522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11523 | else |
698dcdb6 | 11524 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11525 | #line 11526 "configure" |
10f2d63a | 11526 | #include "confdefs.h" |
698dcdb6 VZ |
11527 | |
11528 | int main() { | |
11529 | ||
11530 | /* Ultrix mips cc rejects this. */ | |
11531 | typedef int charset[2]; const charset x; | |
11532 | /* SunOS 4.1.1 cc rejects this. */ | |
11533 | char const *const *ccp; | |
11534 | char **p; | |
11535 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11536 | struct point {int x, y;}; | |
11537 | static struct point const zero = {0,0}; | |
11538 | /* AIX XL C 1.02.0.0 rejects this. | |
11539 | It does not let you subtract one const X* pointer from another in an arm | |
11540 | of an if-expression whose if-part is not a constant expression */ | |
11541 | const char *g = "string"; | |
11542 | ccp = &g + (g ? g-g : 0); | |
11543 | /* HPUX 7.0 cc rejects these. */ | |
11544 | ++ccp; | |
11545 | p = (char**) ccp; | |
11546 | ccp = (char const *const *) p; | |
11547 | { /* SCO 3.2v4 cc rejects this. */ | |
11548 | char *t; | |
11549 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11550 | ||
11551 | *t++ = 0; | |
10f2d63a | 11552 | } |
698dcdb6 VZ |
11553 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
11554 | int x[] = {25, 17}; | |
11555 | const int *foo = &x[0]; | |
11556 | ++foo; | |
703e0a69 | 11557 | } |
698dcdb6 VZ |
11558 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
11559 | typedef const int *iptr; | |
11560 | iptr p = 0; | |
11561 | ++p; | |
6232543b | 11562 | } |
698dcdb6 VZ |
11563 | { /* AIX XL C 1.02.0.0 rejects this saying |
11564 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11565 | struct s { int j; const int *ap[3]; }; | |
11566 | struct s *b; b->j = 5; | |
1e487827 | 11567 | } |
698dcdb6 VZ |
11568 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
11569 | const int foo = 10; | |
11570 | } | |
11571 | ||
11572 | ; return 0; } | |
11573 | EOF | |
24fd6d87 | 11574 | if { (eval echo configure:11575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11575 | rm -rf conftest* |
10f2d63a VZ |
11576 | ac_cv_c_const=yes |
11577 | else | |
698dcdb6 VZ |
11578 | echo "configure: failed program was:" >&5 |
11579 | cat conftest.$ac_ext >&5 | |
11580 | rm -rf conftest* | |
11581 | ac_cv_c_const=no | |
10f2d63a | 11582 | fi |
698dcdb6 | 11583 | rm -f conftest* |
10f2d63a | 11584 | fi |
1e487827 | 11585 | |
698dcdb6 VZ |
11586 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
11587 | if test $ac_cv_c_const = no; then | |
11588 | cat >> confdefs.h <<\EOF | |
11589 | #define const | |
10f2d63a VZ |
11590 | EOF |
11591 | ||
11592 | fi | |
11593 | ||
698dcdb6 | 11594 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
24fd6d87 | 11595 | echo "configure:11596: checking for inline" >&5 |
698dcdb6 VZ |
11596 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
11597 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11598 | else |
11599 | ac_cv_c_inline=no | |
11600 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 11601 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11602 | #line 11603 "configure" |
10f2d63a VZ |
11603 | #include "confdefs.h" |
11604 | ||
698dcdb6 VZ |
11605 | int main() { |
11606 | } $ac_kw foo() { | |
11607 | ; return 0; } | |
11608 | EOF | |
24fd6d87 | 11609 | if { (eval echo configure:11610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11610 | rm -rf conftest* |
10f2d63a VZ |
11611 | ac_cv_c_inline=$ac_kw; break |
11612 | else | |
698dcdb6 VZ |
11613 | echo "configure: failed program was:" >&5 |
11614 | cat conftest.$ac_ext >&5 | |
10f2d63a | 11615 | fi |
698dcdb6 | 11616 | rm -f conftest* |
10f2d63a VZ |
11617 | done |
11618 | ||
11619 | fi | |
698dcdb6 VZ |
11620 | |
11621 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
11622 | case "$ac_cv_c_inline" in | |
10f2d63a | 11623 | inline | yes) ;; |
698dcdb6 VZ |
11624 | no) cat >> confdefs.h <<\EOF |
11625 | #define inline | |
10f2d63a VZ |
11626 | EOF |
11627 | ;; | |
698dcdb6 | 11628 | *) cat >> confdefs.h <<EOF |
10f2d63a VZ |
11629 | #define inline $ac_cv_c_inline |
11630 | EOF | |
11631 | ;; | |
11632 | esac | |
11633 | ||
698dcdb6 VZ |
11634 | |
11635 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
24fd6d87 | 11636 | echo "configure:11637: checking size of char" >&5 |
698dcdb6 VZ |
11637 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
11638 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b | 11639 | else |
1e487827 | 11640 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11641 | ac_cv_sizeof_char=1 |
1e487827 | 11642 | else |
698dcdb6 | 11643 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11644 | #line 11645 "configure" |
1e487827 | 11645 | #include "confdefs.h" |
698dcdb6 VZ |
11646 | #include <stdio.h> |
11647 | main() | |
1e487827 | 11648 | { |
698dcdb6 VZ |
11649 | FILE *f=fopen("conftestval", "w"); |
11650 | if (!f) exit(1); | |
11651 | fprintf(f, "%d\n", sizeof(char)); | |
11652 | exit(0); | |
1e487827 | 11653 | } |
698dcdb6 | 11654 | EOF |
24fd6d87 | 11655 | if { (eval echo configure:11656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11656 | then |
11657 | ac_cv_sizeof_char=`cat conftestval` | |
1e487827 | 11658 | else |
698dcdb6 VZ |
11659 | echo "configure: failed program was:" >&5 |
11660 | cat conftest.$ac_ext >&5 | |
11661 | rm -fr conftest* | |
1e487827 VS |
11662 | ac_cv_sizeof_char=0 |
11663 | fi | |
698dcdb6 | 11664 | rm -fr conftest* |
1e487827 | 11665 | fi |
10f2d63a | 11666 | |
1e487827 | 11667 | fi |
698dcdb6 VZ |
11668 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
11669 | cat >> confdefs.h <<EOF | |
11670 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
1e487827 | 11671 | EOF |
6232543b | 11672 | |
703e0a69 | 11673 | |
698dcdb6 | 11674 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
24fd6d87 | 11675 | echo "configure:11676: checking size of short" >&5 |
698dcdb6 VZ |
11676 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
11677 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 11678 | else |
1e487827 | 11679 | if test "$cross_compiling" = yes; then |
698dcdb6 | 11680 | ac_cv_sizeof_short=2 |
1e487827 | 11681 | else |
698dcdb6 | 11682 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11683 | #line 11684 "configure" |
1e487827 | 11684 | #include "confdefs.h" |
698dcdb6 VZ |
11685 | #include <stdio.h> |
11686 | main() | |
1e487827 | 11687 | { |
698dcdb6 VZ |
11688 | FILE *f=fopen("conftestval", "w"); |
11689 | if (!f) exit(1); | |
11690 | fprintf(f, "%d\n", sizeof(short)); | |
11691 | exit(0); | |
1e487827 | 11692 | } |
698dcdb6 | 11693 | EOF |
24fd6d87 | 11694 | if { (eval echo configure:11695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11695 | then |
11696 | ac_cv_sizeof_short=`cat conftestval` | |
1e487827 | 11697 | else |
698dcdb6 VZ |
11698 | echo "configure: failed program was:" >&5 |
11699 | cat conftest.$ac_ext >&5 | |
11700 | rm -fr conftest* | |
11701 | ac_cv_sizeof_short=0 | |
1e487827 | 11702 | fi |
698dcdb6 | 11703 | rm -fr conftest* |
1e487827 | 11704 | fi |
698dcdb6 | 11705 | |
1e487827 | 11706 | fi |
698dcdb6 VZ |
11707 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
11708 | cat >> confdefs.h <<EOF | |
11709 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
11710 | EOF | |
11711 | ||
11712 | ||
11713 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
24fd6d87 | 11714 | echo "configure:11715: checking size of int *" >&5 |
698dcdb6 VZ |
11715 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
11716 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11717 | else |
11718 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11719 | ac_cv_sizeof_int_p=4 |
10f2d63a | 11720 | else |
698dcdb6 | 11721 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11722 | #line 11723 "configure" |
10f2d63a | 11723 | #include "confdefs.h" |
698dcdb6 VZ |
11724 | #include <stdio.h> |
11725 | main() | |
10f2d63a | 11726 | { |
698dcdb6 VZ |
11727 | FILE *f=fopen("conftestval", "w"); |
11728 | if (!f) exit(1); | |
11729 | fprintf(f, "%d\n", sizeof(int *)); | |
11730 | exit(0); | |
10f2d63a | 11731 | } |
698dcdb6 | 11732 | EOF |
24fd6d87 | 11733 | if { (eval echo configure:11734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11734 | then |
11735 | ac_cv_sizeof_int_p=`cat conftestval` | |
10f2d63a | 11736 | else |
698dcdb6 VZ |
11737 | echo "configure: failed program was:" >&5 |
11738 | cat conftest.$ac_ext >&5 | |
11739 | rm -fr conftest* | |
11740 | ac_cv_sizeof_int_p=0 | |
6232543b | 11741 | fi |
698dcdb6 | 11742 | rm -fr conftest* |
1e487827 | 11743 | fi |
698dcdb6 | 11744 | |
1e487827 | 11745 | fi |
698dcdb6 VZ |
11746 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 |
11747 | cat >> confdefs.h <<EOF | |
11748 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
11749 | EOF |
11750 | ||
698dcdb6 VZ |
11751 | |
11752 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
24fd6d87 | 11753 | echo "configure:11754: checking size of int" >&5 |
698dcdb6 VZ |
11754 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
11755 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11756 | else |
11757 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11758 | ac_cv_sizeof_int=4 |
703e0a69 | 11759 | else |
698dcdb6 | 11760 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11761 | #line 11762 "configure" |
1e487827 | 11762 | #include "confdefs.h" |
698dcdb6 VZ |
11763 | #include <stdio.h> |
11764 | main() | |
1e487827 | 11765 | { |
698dcdb6 VZ |
11766 | FILE *f=fopen("conftestval", "w"); |
11767 | if (!f) exit(1); | |
11768 | fprintf(f, "%d\n", sizeof(int)); | |
11769 | exit(0); | |
1e487827 | 11770 | } |
698dcdb6 | 11771 | EOF |
24fd6d87 | 11772 | if { (eval echo configure:11773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11773 | then |
11774 | ac_cv_sizeof_int=`cat conftestval` | |
11775 | else | |
11776 | echo "configure: failed program was:" >&5 | |
11777 | cat conftest.$ac_ext >&5 | |
11778 | rm -fr conftest* | |
11779 | ac_cv_sizeof_int=0 | |
703e0a69 | 11780 | fi |
698dcdb6 VZ |
11781 | rm -fr conftest* |
11782 | fi | |
11783 | ||
11784 | fi | |
11785 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
11786 | cat >> confdefs.h <<EOF | |
11787 | #define SIZEOF_INT $ac_cv_sizeof_int | |
11788 | EOF | |
11789 | ||
11790 | ||
11791 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
24fd6d87 | 11792 | echo "configure:11793: checking size of long" >&5 |
698dcdb6 VZ |
11793 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
11794 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11795 | else |
11796 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 11797 | ac_cv_sizeof_long=4 |
10f2d63a | 11798 | else |
698dcdb6 | 11799 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11800 | #line 11801 "configure" |
10f2d63a | 11801 | #include "confdefs.h" |
698dcdb6 VZ |
11802 | #include <stdio.h> |
11803 | main() | |
10f2d63a | 11804 | { |
698dcdb6 VZ |
11805 | FILE *f=fopen("conftestval", "w"); |
11806 | if (!f) exit(1); | |
11807 | fprintf(f, "%d\n", sizeof(long)); | |
11808 | exit(0); | |
10f2d63a | 11809 | } |
698dcdb6 | 11810 | EOF |
24fd6d87 | 11811 | if { (eval echo configure:11812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11812 | then |
11813 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 11814 | else |
698dcdb6 VZ |
11815 | echo "configure: failed program was:" >&5 |
11816 | cat conftest.$ac_ext >&5 | |
11817 | rm -fr conftest* | |
11818 | ac_cv_sizeof_long=0 | |
10f2d63a | 11819 | fi |
698dcdb6 | 11820 | rm -fr conftest* |
10f2d63a | 11821 | fi |
698dcdb6 | 11822 | |
10f2d63a | 11823 | fi |
698dcdb6 VZ |
11824 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
11825 | cat >> confdefs.h <<EOF | |
11826 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
11827 | EOF | |
11828 | ||
11829 | ||
11830 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
24fd6d87 | 11831 | echo "configure:11832: checking size of long long" >&5 |
698dcdb6 VZ |
11832 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
11833 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11834 | else | |
11835 | if test "$cross_compiling" = yes; then | |
11836 | ac_cv_sizeof_long_long=0 | |
11837 | else | |
11838 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 11839 | #line 11840 "configure" |
698dcdb6 VZ |
11840 | #include "confdefs.h" |
11841 | #include <stdio.h> | |
11842 | main() | |
11843 | { | |
11844 | FILE *f=fopen("conftestval", "w"); | |
11845 | if (!f) exit(1); | |
11846 | fprintf(f, "%d\n", sizeof(long long)); | |
11847 | exit(0); | |
11848 | } | |
11849 | EOF | |
24fd6d87 | 11850 | if { (eval echo configure:11851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
11851 | then |
11852 | ac_cv_sizeof_long_long=`cat conftestval` | |
6232543b | 11853 | else |
698dcdb6 VZ |
11854 | echo "configure: failed program was:" >&5 |
11855 | cat conftest.$ac_ext >&5 | |
11856 | rm -fr conftest* | |
6232543b VS |
11857 | ac_cv_sizeof_long_long=0 |
11858 | fi | |
698dcdb6 VZ |
11859 | rm -fr conftest* |
11860 | fi | |
11861 | ||
703e0a69 | 11862 | fi |
698dcdb6 VZ |
11863 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
11864 | cat >> confdefs.h <<EOF | |
10f2d63a VZ |
11865 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
11866 | EOF | |
11867 | ||
1e487827 | 11868 | |
698dcdb6 VZ |
11869 | |
11870 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
24fd6d87 | 11871 | echo "configure:11872: checking size of wchar_t" >&5 |
698dcdb6 VZ |
11872 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
11873 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11874 | else | |
11875 | ||
b93d0d08 VS |
11876 | if test "$cross_compiling" = yes; then |
11877 | wx_cv_sizeof_wchar_t=4 | |
1e6feb95 | 11878 | |
b93d0d08 | 11879 | else |
698dcdb6 | 11880 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11881 | #line 11882 "configure" |
b93d0d08 VS |
11882 | #include "confdefs.h" |
11883 | ||
1e6feb95 VZ |
11884 | #ifdef HAVE_WCHAR_H |
11885 | # include <wchar.h> | |
11886 | #endif | |
11887 | #ifdef HAVE_STDLIB_H | |
11888 | # include <stdlib.h> | |
11889 | #endif | |
11890 | #include <stdio.h> | |
11891 | int main() | |
11892 | { | |
11893 | FILE *f=fopen("conftestval", "w"); | |
11894 | if (!f) exit(1); | |
11895 | fprintf(f, "%i", sizeof(wchar_t)); | |
11896 | exit(0); | |
11897 | } | |
698dcdb6 VZ |
11898 | |
11899 | EOF | |
24fd6d87 | 11900 | if { (eval echo configure:11901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11901 | then |
b93d0d08 VS |
11902 | wx_cv_sizeof_wchar_t=`cat conftestval` |
11903 | else | |
698dcdb6 VZ |
11904 | echo "configure: failed program was:" >&5 |
11905 | cat conftest.$ac_ext >&5 | |
11906 | rm -fr conftest* | |
11907 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 11908 | fi |
698dcdb6 | 11909 | rm -fr conftest* |
b93d0d08 VS |
11910 | fi |
11911 | ||
698dcdb6 | 11912 | |
b93d0d08 VS |
11913 | fi |
11914 | ||
698dcdb6 VZ |
11915 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
11916 | ||
11917 | cat >> confdefs.h <<EOF | |
28c6addc | 11918 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
11919 | EOF |
11920 | ||
698dcdb6 | 11921 | |
698dcdb6 | 11922 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
24fd6d87 | 11923 | echo "configure:11924: checking whether byte ordering is bigendian" >&5 |
698dcdb6 VZ |
11924 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
11925 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
11926 | else |
11927 | ac_cv_c_bigendian=unknown | |
11928 | # See if sys/param.h defines the BYTE_ORDER macro. | |
698dcdb6 | 11929 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11930 | #line 11931 "configure" |
10f2d63a VZ |
11931 | #include "confdefs.h" |
11932 | #include <sys/types.h> | |
11933 | #include <sys/param.h> | |
698dcdb6 | 11934 | int main() { |
10f2d63a VZ |
11935 | |
11936 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
11937 | bogus endian macros | |
11938 | #endif | |
698dcdb6 VZ |
11939 | ; return 0; } |
11940 | EOF | |
24fd6d87 | 11941 | if { (eval echo configure:11942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11942 | rm -rf conftest* |
10f2d63a | 11943 | # It does; now see whether it defined to BIG_ENDIAN or not. |
698dcdb6 | 11944 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11945 | #line 11946 "configure" |
10f2d63a VZ |
11946 | #include "confdefs.h" |
11947 | #include <sys/types.h> | |
11948 | #include <sys/param.h> | |
698dcdb6 | 11949 | int main() { |
10f2d63a VZ |
11950 | |
11951 | #if BYTE_ORDER != BIG_ENDIAN | |
11952 | not big endian | |
11953 | #endif | |
698dcdb6 VZ |
11954 | ; return 0; } |
11955 | EOF | |
24fd6d87 | 11956 | if { (eval echo configure:11957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11957 | rm -rf conftest* |
10f2d63a VZ |
11958 | ac_cv_c_bigendian=yes |
11959 | else | |
698dcdb6 VZ |
11960 | echo "configure: failed program was:" >&5 |
11961 | cat conftest.$ac_ext >&5 | |
11962 | rm -rf conftest* | |
11963 | ac_cv_c_bigendian=no | |
10f2d63a | 11964 | fi |
698dcdb6 | 11965 | rm -f conftest* |
10f2d63a | 11966 | else |
698dcdb6 VZ |
11967 | echo "configure: failed program was:" >&5 |
11968 | cat conftest.$ac_ext >&5 | |
10f2d63a | 11969 | fi |
698dcdb6 | 11970 | rm -f conftest* |
10f2d63a VZ |
11971 | if test $ac_cv_c_bigendian = unknown; then |
11972 | if test "$cross_compiling" = yes; then | |
11973 | ac_cv_c_bigendian=unknown | |
11974 | else | |
698dcdb6 | 11975 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 11976 | #line 11977 "configure" |
10f2d63a VZ |
11977 | #include "confdefs.h" |
11978 | main () { | |
11979 | /* Are we little or big endian? From Harbison&Steele. */ | |
11980 | union | |
11981 | { | |
11982 | long l; | |
11983 | char c[sizeof (long)]; | |
11984 | } u; | |
11985 | u.l = 1; | |
11986 | exit (u.c[sizeof (long) - 1] == 1); | |
11987 | } | |
698dcdb6 | 11988 | EOF |
24fd6d87 | 11989 | if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 11990 | then |
10f2d63a VZ |
11991 | ac_cv_c_bigendian=no |
11992 | else | |
698dcdb6 VZ |
11993 | echo "configure: failed program was:" >&5 |
11994 | cat conftest.$ac_ext >&5 | |
11995 | rm -fr conftest* | |
11996 | ac_cv_c_bigendian=yes | |
10f2d63a | 11997 | fi |
698dcdb6 | 11998 | rm -fr conftest* |
10f2d63a | 11999 | fi |
698dcdb6 | 12000 | |
10f2d63a VZ |
12001 | fi |
12002 | fi | |
698dcdb6 VZ |
12003 | |
12004 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10f2d63a | 12005 | if test $ac_cv_c_bigendian = unknown; then |
698dcdb6 | 12006 | 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 |
12007 | fi |
12008 | if test $ac_cv_c_bigendian = yes; then | |
698dcdb6 | 12009 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12010 | #define WORDS_BIGENDIAN 1 |
12011 | EOF | |
12012 | ||
12013 | fi | |
12014 | ||
698dcdb6 VZ |
12015 | |
12016 | ||
10f2d63a | 12017 | if test "$cross_compiling" = "yes"; then |
698dcdb6 | 12018 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12019 | #define wxUSE_IOSTREAMH 1 |
12020 | EOF | |
12021 | ||
12022 | else | |
698dcdb6 VZ |
12023 | |
12024 | ac_ext=C | |
12025 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12026 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12027 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12028 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12029 | cross_compiling=$ac_cv_prog_cxx_cross | |
12030 | ||
703e0a69 | 12031 | |
698dcdb6 | 12032 | for ac_hdr in iostream |
10f2d63a | 12033 | do |
698dcdb6 VZ |
12034 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12035 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24fd6d87 | 12036 | echo "configure:12037: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12037 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12038 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12039 | else | |
12040 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 12041 | #line 12042 "configure" |
10f2d63a | 12042 | #include "confdefs.h" |
698dcdb6 VZ |
12043 | #include <$ac_hdr> |
12044 | EOF | |
12045 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 12046 | { (eval echo configure:12047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12047 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12048 | if test -z "$ac_err"; then | |
12049 | rm -rf conftest* | |
12050 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 12051 | else |
698dcdb6 VZ |
12052 | echo "$ac_err" >&5 |
12053 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12054 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12055 | rm -rf conftest* |
12056 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12057 | fi |
698dcdb6 | 12058 | rm -f conftest* |
10f2d63a | 12059 | fi |
698dcdb6 VZ |
12060 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12061 | echo "$ac_t""yes" 1>&6 | |
12062 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12063 | cat >> confdefs.h <<EOF | |
12064 | #define $ac_tr_hdr 1 | |
10f2d63a | 12065 | EOF |
698dcdb6 VZ |
12066 | |
12067 | else | |
12068 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12069 | fi |
12070 | done | |
12071 | ||
698dcdb6 | 12072 | |
57fe5ed0 VZ |
12073 | if test "$ac_cv_header_iostream" = "yes" ; then |
12074 | : | |
12075 | else | |
698dcdb6 | 12076 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12077 | #define wxUSE_IOSTREAMH 1 |
12078 | EOF | |
12079 | ||
10f2d63a VZ |
12080 | fi |
12081 | ||
12082 | ac_ext=c | |
698dcdb6 | 12083 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12084 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12085 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12086 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12087 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a VZ |
12088 | |
12089 | fi | |
12090 | ||
703e0a69 | 12091 | |
698dcdb6 VZ |
12092 | |
12093 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
24fd6d87 | 12094 | echo "configure:12095: checking if C++ compiler supports bool" >&5 |
698dcdb6 VZ |
12095 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
12096 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12097 | else | |
12098 | ||
12099 | ||
12100 | ac_ext=C | |
12101 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12102 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12103 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12104 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12105 | cross_compiling=$ac_cv_prog_cxx_cross | |
10f2d63a | 12106 | |
698dcdb6 VZ |
12107 | |
12108 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 12109 | #line 12110 "configure" |
10f2d63a VZ |
12110 | #include "confdefs.h" |
12111 | ||
698dcdb6 VZ |
12112 | |
12113 | int main() { | |
10f2d63a VZ |
12114 | |
12115 | bool b = true; | |
12116 | ||
12117 | return 0; | |
698dcdb6 VZ |
12118 | |
12119 | ; return 0; } | |
12120 | EOF | |
24fd6d87 | 12121 | if { (eval echo configure:12122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12122 | rm -rf conftest* |
12123 | ||
10f2d63a | 12124 | wx_cv_cpp_bool=yes |
698dcdb6 | 12125 | |
10f2d63a | 12126 | else |
698dcdb6 VZ |
12127 | echo "configure: failed program was:" >&5 |
12128 | cat conftest.$ac_ext >&5 | |
12129 | rm -rf conftest* | |
12130 | ||
10f2d63a | 12131 | wx_cv_cpp_bool=no |
698dcdb6 VZ |
12132 | |
12133 | ||
10f2d63a | 12134 | fi |
698dcdb6 | 12135 | rm -f conftest* |
10f2d63a VZ |
12136 | |
12137 | ac_ext=c | |
698dcdb6 | 12138 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12139 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12140 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12141 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12142 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12143 | |
698dcdb6 | 12144 | |
10f2d63a | 12145 | fi |
698dcdb6 VZ |
12146 | |
12147 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10f2d63a VZ |
12148 | |
12149 | if test "$wx_cv_cpp_bool" = "yes"; then | |
698dcdb6 | 12150 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12151 | #define HAVE_BOOL 1 |
12152 | EOF | |
12153 | ||
12154 | fi | |
12155 | ||
1e487827 | 12156 | |
698dcdb6 | 12157 | |
698dcdb6 | 12158 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 |
24fd6d87 | 12159 | echo "configure:12160: checking for wcslen in -lc" >&5 |
698dcdb6 VZ |
12160 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
12161 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12163 | else |
698dcdb6 | 12164 | ac_save_LIBS="$LIBS" |
10f2d63a | 12165 | LIBS="-lc $LIBS" |
698dcdb6 | 12166 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 12167 | #line 12168 "configure" |
10f2d63a VZ |
12168 | #include "confdefs.h" |
12169 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12170 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12171 | builtin and then its argument prototype would still apply. */ |
12172 | char wcslen(); | |
12173 | ||
12174 | int main() { | |
12175 | wcslen() | |
12176 | ; return 0; } | |
12177 | EOF | |
24fd6d87 | 12178 | if { (eval echo configure:12179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12179 | rm -rf conftest* |
12180 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12181 | else | |
12182 | echo "configure: failed program was:" >&5 | |
12183 | cat conftest.$ac_ext >&5 | |
12184 | rm -rf conftest* | |
12185 | eval "ac_cv_lib_$ac_lib_var=no" | |
12186 | fi | |
12187 | rm -f conftest* | |
12188 | LIBS="$ac_save_LIBS" | |
12189 | ||
12190 | fi | |
12191 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12192 | echo "$ac_t""yes" 1>&6 | |
12193 | ||
12194 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12195 | #define HAVE_WCSLEN 1 |
12196 | EOF | |
12197 | ||
12198 | WCHAR_LINK="" | |
698dcdb6 | 12199 | |
10f2d63a | 12200 | else |
698dcdb6 | 12201 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12202 | |
698dcdb6 | 12203 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
24fd6d87 | 12204 | echo "configure:12205: checking for wcslen in -lw" >&5 |
698dcdb6 VZ |
12205 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
12206 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12208 | else |
698dcdb6 | 12209 | ac_save_LIBS="$LIBS" |
10f2d63a | 12210 | LIBS="-lw $LIBS" |
698dcdb6 | 12211 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 12212 | #line 12213 "configure" |
10f2d63a VZ |
12213 | #include "confdefs.h" |
12214 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12215 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12216 | builtin and then its argument prototype would still apply. */ |
12217 | char wcslen(); | |
12218 | ||
12219 | int main() { | |
12220 | wcslen() | |
12221 | ; return 0; } | |
12222 | EOF | |
24fd6d87 | 12223 | if { (eval echo configure:12224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12224 | rm -rf conftest* |
12225 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12226 | else | |
12227 | echo "configure: failed program was:" >&5 | |
12228 | cat conftest.$ac_ext >&5 | |
12229 | rm -rf conftest* | |
12230 | eval "ac_cv_lib_$ac_lib_var=no" | |
12231 | fi | |
12232 | rm -f conftest* | |
12233 | LIBS="$ac_save_LIBS" | |
12234 | ||
12235 | fi | |
12236 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12237 | echo "$ac_t""yes" 1>&6 | |
12238 | ||
12239 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12240 | #define HAVE_WCSLEN 1 |
12241 | EOF | |
12242 | ||
12243 | WCHAR_LINK="-lw" | |
698dcdb6 VZ |
12244 | |
12245 | else | |
12246 | echo "$ac_t""no" 1>&6 | |
6232543b | 12247 | fi |
10f2d63a | 12248 | |
698dcdb6 | 12249 | |
1e487827 | 12250 | fi |
703e0a69 | 12251 | |
698dcdb6 VZ |
12252 | |
12253 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
24fd6d87 | 12254 | echo "configure:12255: checking for vprintf" >&5 |
698dcdb6 VZ |
12255 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
12256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12257 | else | |
12258 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 12259 | #line 12260 "configure" |
10f2d63a VZ |
12260 | #include "confdefs.h" |
12261 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12262 | which can conflict with char vprintf(); below. */ |
10f2d63a VZ |
12263 | #include <assert.h> |
12264 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12265 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12266 | builtin and then its argument prototype would still apply. */ |
12267 | char vprintf(); | |
12268 | ||
12269 | int main() { | |
10f2d63a VZ |
12270 | |
12271 | /* The GNU C library defines this for functions which it implements | |
12272 | to always fail with ENOSYS. Some functions are actually named | |
12273 | something starting with __ and the normal name is an alias. */ | |
698dcdb6 | 12274 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
10f2d63a VZ |
12275 | choke me |
12276 | #else | |
698dcdb6 | 12277 | vprintf(); |
10f2d63a VZ |
12278 | #endif |
12279 | ||
698dcdb6 VZ |
12280 | ; return 0; } |
12281 | EOF | |
24fd6d87 | 12282 | if { (eval echo configure:12283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12283 | rm -rf conftest* |
12284 | eval "ac_cv_func_vprintf=yes" | |
12285 | else | |
12286 | echo "configure: failed program was:" >&5 | |
12287 | cat conftest.$ac_ext >&5 | |
12288 | rm -rf conftest* | |
12289 | eval "ac_cv_func_vprintf=no" | |
12290 | fi | |
12291 | rm -f conftest* | |
12292 | fi | |
12293 | ||
12294 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
12295 | echo "$ac_t""yes" 1>&6 | |
12296 | cat >> confdefs.h <<\EOF | |
12297 | #define HAVE_VPRINTF 1 | |
12298 | EOF | |
12299 | ||
12300 | else | |
12301 | echo "$ac_t""no" 1>&6 | |
12302 | fi | |
12303 | ||
12304 | if test "$ac_cv_func_vprintf" != yes; then | |
12305 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
24fd6d87 | 12306 | echo "configure:12307: checking for _doprnt" >&5 |
698dcdb6 VZ |
12307 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
12308 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12309 | else | |
12310 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 12311 | #line 12312 "configure" |
10f2d63a VZ |
12312 | #include "confdefs.h" |
12313 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12314 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
12315 | #include <assert.h> |
12316 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12317 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12318 | builtin and then its argument prototype would still apply. */ |
12319 | char _doprnt(); | |
12320 | ||
12321 | int main() { | |
10f2d63a VZ |
12322 | |
12323 | /* The GNU C library defines this for functions which it implements | |
12324 | to always fail with ENOSYS. Some functions are actually named | |
12325 | something starting with __ and the normal name is an alias. */ | |
12326 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
12327 | choke me | |
12328 | #else | |
698dcdb6 | 12329 | _doprnt(); |
10f2d63a VZ |
12330 | #endif |
12331 | ||
698dcdb6 VZ |
12332 | ; return 0; } |
12333 | EOF | |
24fd6d87 | 12334 | if { (eval echo configure:12335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12335 | rm -rf conftest* |
12336 | eval "ac_cv_func__doprnt=yes" | |
12337 | else | |
12338 | echo "configure: failed program was:" >&5 | |
12339 | cat conftest.$ac_ext >&5 | |
12340 | rm -rf conftest* | |
12341 | eval "ac_cv_func__doprnt=no" | |
12342 | fi | |
12343 | rm -f conftest* | |
12344 | fi | |
12345 | ||
12346 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
12347 | echo "$ac_t""yes" 1>&6 | |
12348 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12349 | #define HAVE_DOPRNT 1 |
12350 | EOF | |
12351 | ||
698dcdb6 VZ |
12352 | else |
12353 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12354 | fi |
12355 | ||
12356 | fi | |
12357 | ||
1e487827 | 12358 | |
698dcdb6 VZ |
12359 | |
12360 | ||
12361 | ||
12362 | ||
12363 | ||
12364 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
24fd6d87 | 12365 | echo "configure:12366: checking for vsnprintf" >&5 |
698dcdb6 VZ |
12366 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
12367 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12368 | else | |
12369 | ||
12370 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 12371 | #line 12372 "configure" |
f6bcfd97 BP |
12372 | #include "confdefs.h" |
12373 | ||
12374 | #include <stdio.h> | |
698dcdb6 VZ |
12375 | #include <stdarg.h> |
12376 | ||
12377 | int main() { | |
10f2d63a | 12378 | |
f6bcfd97 | 12379 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 12380 | |
f6bcfd97 BP |
12381 | wx_test_vsnprintf("%s"); |
12382 | return 0; | |
12383 | } | |
12384 | ||
12385 | int wx_test_vsnprintf(const char *fmt, ...) | |
12386 | { | |
12387 | char *s; | |
12388 | ||
12389 | va_list argp; | |
12390 | va_start(argp, fmt); | |
12391 | vsnprintf(s, 42, fmt, argp); | |
12392 | va_end(argp); | |
698dcdb6 VZ |
12393 | |
12394 | ; return 0; } | |
12395 | EOF | |
24fd6d87 | 12396 | if { (eval echo configure:12397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12397 | rm -rf conftest* |
12398 | ||
f6bcfd97 | 12399 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12400 | |
10f2d63a | 12401 | else |
698dcdb6 VZ |
12402 | echo "configure: failed program was:" >&5 |
12403 | cat conftest.$ac_ext >&5 | |
12404 | rm -rf conftest* | |
12405 | ||
12406 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 12407 | #line 12408 "configure" |
c521c494 RL |
12408 | #include "confdefs.h" |
12409 | ||
12410 | #include <stdio.h> | |
12411 | #include <stdarg.h> | |
698dcdb6 VZ |
12412 | |
12413 | int main() { | |
c521c494 RL |
12414 | |
12415 | int wx_test_vsnprintf(const char *, ...); | |
12416 | ||
12417 | wx_test_vsnprintf("%s"); | |
12418 | return 0; | |
12419 | } | |
12420 | ||
12421 | int wx_test_vsnprintf(const char *fmt, ...) | |
12422 | { | |
12423 | char *s; | |
12424 | ||
12425 | va_list argp; | |
12426 | va_start(argp, fmt); | |
12427 | _vsnprintf(s, 42, fmt, argp); | |
12428 | va_end(argp); | |
698dcdb6 VZ |
12429 | |
12430 | ; return 0; } | |
12431 | EOF | |
24fd6d87 | 12432 | if { (eval echo configure:12433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12433 | rm -rf conftest* |
12434 | ||
c521c494 | 12435 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 12436 | |
c521c494 | 12437 | else |
698dcdb6 VZ |
12438 | echo "configure: failed program was:" >&5 |
12439 | cat conftest.$ac_ext >&5 | |
12440 | rm -rf conftest* | |
12441 | ||
c521c494 | 12442 | wx_cv_func_vsnprintf=no |
698dcdb6 | 12443 | |
10f2d63a | 12444 | fi |
698dcdb6 VZ |
12445 | rm -f conftest* |
12446 | ||
6232543b | 12447 | fi |
698dcdb6 | 12448 | rm -f conftest* |
703e0a69 | 12449 | |
1e487827 | 12450 | fi |
698dcdb6 VZ |
12451 | |
12452 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
10f2d63a | 12453 | |
9d8deca0 | 12454 | if test "$wx_cv_func_vsnprintf" = yes; then |
698dcdb6 | 12455 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12456 | #define HAVE_VSNPRINTF 1 |
12457 | EOF | |
12458 | ||
12459 | else | |
698dcdb6 | 12460 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 |
9d8deca0 VZ |
12461 | fi |
12462 | ||
698dcdb6 | 12463 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
24fd6d87 | 12464 | echo "configure:12465: checking for vsscanf" >&5 |
698dcdb6 VZ |
12465 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
12466 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12467 | else |
698dcdb6 VZ |
12468 | |
12469 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 12470 | #line 12471 "configure" |
10f2d63a | 12471 | #include "confdefs.h" |
10f2d63a | 12472 | |
f6bcfd97 BP |
12473 | #include <stdio.h> |
12474 | #include <stdarg.h> | |
698dcdb6 VZ |
12475 | |
12476 | int main() { | |
10f2d63a | 12477 | |
f6bcfd97 | 12478 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 12479 | |
f6bcfd97 BP |
12480 | wx_test_vsscanf("%d"); |
12481 | return 0; | |
10f2d63a VZ |
12482 | } |
12483 | ||
f6bcfd97 | 12484 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 12485 | { |
f6bcfd97 BP |
12486 | va_list argp; |
12487 | va_start(argp, fmt); | |
12488 | vsscanf("42", fmt, argp); | |
12489 | va_end(argp); | |
698dcdb6 VZ |
12490 | |
12491 | ; return 0; } | |
12492 | EOF | |
24fd6d87 | 12493 | if { (eval echo configure:12494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12494 | rm -rf conftest* |
12495 | ||
f6bcfd97 | 12496 | wx_cv_func_vsscanf=yes |
698dcdb6 | 12497 | |
10f2d63a | 12498 | else |
698dcdb6 VZ |
12499 | echo "configure: failed program was:" >&5 |
12500 | cat conftest.$ac_ext >&5 | |
12501 | rm -rf conftest* | |
12502 | ||
f6bcfd97 | 12503 | wx_cv_func_vsscanf=no |
698dcdb6 | 12504 | |
6232543b | 12505 | fi |
698dcdb6 | 12506 | rm -f conftest* |
703e0a69 | 12507 | |
1e487827 | 12508 | fi |
698dcdb6 VZ |
12509 | |
12510 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10f2d63a | 12511 | |
9d8deca0 | 12512 | if test "$wx_cv_func_vsscanf" = yes; then |
698dcdb6 | 12513 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
12514 | #define HAVE_VSSCANF 1 |
12515 | EOF | |
12516 | ||
12517 | fi | |
12518 | ||
95c8801c VS |
12519 | if test "$TOOLKIT" != "MSW"; then |
12520 | ||
12521 | ||
12522 | ||
698dcdb6 VZ |
12523 | ac_ext=C |
12524 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12525 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12526 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12527 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12528 | cross_compiling=$ac_cv_prog_cxx_cross | |
12529 | ||
12530 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
24fd6d87 | 12531 | echo "configure:12532: checking if iconv() takes char**" >&5 |
698dcdb6 VZ |
12532 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
12533 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12534 | else | |
12535 | ||
12536 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 12537 | #line 12538 "configure" |
95c8801c VS |
12538 | #include "confdefs.h" |
12539 | #include <iconv.h> | |
698dcdb6 | 12540 | int main() { |
95c8801c VS |
12541 | |
12542 | char **inbuf, **outbuf; | |
19af3b06 VZ |
12543 | iconv_t cd; |
12544 | size_t insz, outsz; | |
12545 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
698dcdb6 VZ |
12546 | |
12547 | ; return 0; } | |
12548 | EOF | |
24fd6d87 | 12549 | if { (eval echo configure:12550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 12550 | rm -rf conftest* |
95c8801c VS |
12551 | wx_cv_iconv_takes_char=yes |
12552 | else | |
698dcdb6 VZ |
12553 | echo "configure: failed program was:" >&5 |
12554 | cat conftest.$ac_ext >&5 | |
12555 | rm -rf conftest* | |
12556 | wx_cv_iconv_takes_char=no | |
95c8801c | 12557 | fi |
698dcdb6 | 12558 | rm -f conftest* |
95c8801c VS |
12559 | |
12560 | fi | |
698dcdb6 VZ |
12561 | |
12562 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a | 12563 | ac_ext=c |
698dcdb6 | 12564 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 12565 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12566 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12567 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12568 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 12569 | |
95c8801c | 12570 | if test "$wx_cv_iconv_takes_char" = yes ; then |
698dcdb6 | 12571 | cat >> confdefs.h <<\EOF |
95c8801c VS |
12572 | #define WX_ICONV_TAKES_CHAR 1 |
12573 | EOF | |
12574 | ||
12575 | fi | |
10f2d63a | 12576 | |
1e487827 | 12577 | |
698dcdb6 VZ |
12578 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
12579 | for ac_func in sigaction | |
eb4efbdc | 12580 | do |
698dcdb6 | 12581 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 12582 | echo "configure:12583: checking for $ac_func" >&5 |
698dcdb6 VZ |
12583 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12584 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12585 | else | |
12586 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 12587 | #line 12588 "configure" |
eb4efbdc VZ |
12588 | #include "confdefs.h" |
12589 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12590 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
12591 | #include <assert.h> |
12592 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12593 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12594 | builtin and then its argument prototype would still apply. */ |
12595 | char $ac_func(); | |
12596 | ||
12597 | int main() { | |
eb4efbdc VZ |
12598 | |
12599 | /* The GNU C library defines this for functions which it implements | |
12600 | to always fail with ENOSYS. Some functions are actually named | |
12601 | something starting with __ and the normal name is an alias. */ | |
12602 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12603 | choke me | |
12604 | #else | |
698dcdb6 | 12605 | $ac_func(); |
eb4efbdc VZ |
12606 | #endif |
12607 | ||
698dcdb6 | 12608 | ; return 0; } |
eb4efbdc | 12609 | EOF |
24fd6d87 | 12610 | if { (eval echo configure:12611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12611 | rm -rf conftest* |
12612 | eval "ac_cv_func_$ac_func=yes" | |
12613 | else | |
12614 | echo "configure: failed program was:" >&5 | |
12615 | cat conftest.$ac_ext >&5 | |
12616 | rm -rf conftest* | |
12617 | eval "ac_cv_func_$ac_func=no" | |
12618 | fi | |
12619 | rm -f conftest* | |
12620 | fi | |
eb4efbdc | 12621 | |
698dcdb6 VZ |
12622 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12623 | echo "$ac_t""yes" 1>&6 | |
12624 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12625 | cat >> confdefs.h <<EOF | |
12626 | #define $ac_tr_func 1 | |
12627 | EOF | |
12628 | ||
12629 | else | |
12630 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
12631 | fi |
12632 | done | |
12633 | ||
698dcdb6 | 12634 | |
eb4efbdc | 12635 | if test "$ac_cv_func_sigaction" = "no"; then |
698dcdb6 | 12636 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
eb4efbdc VZ |
12637 | wxUSE_ON_FATAL_EXCEPTION=no |
12638 | fi | |
f6bcfd97 BP |
12639 | |
12640 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
698dcdb6 VZ |
12641 | |
12642 | ac_ext=C | |
12643 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 12644 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12645 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12646 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12647 | cross_compiling=$ac_cv_prog_cxx_cross | |
6232543b | 12648 | |
1e487827 | 12649 | |
698dcdb6 | 12650 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
24fd6d87 | 12651 | echo "configure:12652: checking for sa_handler type" >&5 |
698dcdb6 VZ |
12652 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
12653 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12654 | else | |
12655 | ||
12656 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 12657 | #line 12658 "configure" |
f6bcfd97 BP |
12658 | #include "confdefs.h" |
12659 | #include <signal.h> | |
698dcdb6 | 12660 | int main() { |
f6bcfd97 BP |
12661 | |
12662 | extern void testSigHandler(int); | |
12663 | ||
12664 | struct sigaction sa; | |
12665 | sa.sa_handler = testSigHandler; | |
698dcdb6 VZ |
12666 | |
12667 | ; return 0; } | |
12668 | EOF | |
24fd6d87 | 12669 | if { (eval echo configure:12670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12670 | rm -rf conftest* |
12671 | ||
f6bcfd97 | 12672 | wx_cv_type_sa_handler=int |
698dcdb6 | 12673 | |
f6bcfd97 | 12674 | else |
698dcdb6 VZ |
12675 | echo "configure: failed program was:" >&5 |
12676 | cat conftest.$ac_ext >&5 | |
12677 | rm -rf conftest* | |
12678 | ||
f6bcfd97 | 12679 | wx_cv_type_sa_handler=void |
698dcdb6 | 12680 | |
6232543b | 12681 | fi |
698dcdb6 VZ |
12682 | rm -f conftest* |
12683 | ||
1e487827 | 12684 | fi |
698dcdb6 VZ |
12685 | |
12686 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
f6bcfd97 BP |
12687 | |
12688 | ac_ext=c | |
698dcdb6 | 12689 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
f6bcfd97 | 12690 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12691 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12692 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12693 | cross_compiling=$ac_cv_prog_cc_cross | |
12694 | ||
703e0a69 | 12695 | |
698dcdb6 | 12696 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
12697 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
12698 | EOF | |
12699 | ||
12700 | fi | |
eb4efbdc VZ |
12701 | fi |
12702 | ||
10f2d63a VZ |
12703 | for ac_func in vfork |
12704 | do | |
698dcdb6 | 12705 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 12706 | echo "configure:12707: checking for $ac_func" >&5 |
698dcdb6 VZ |
12707 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12708 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12709 | else | |
12710 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 12711 | #line 12712 "configure" |
10f2d63a VZ |
12712 | #include "confdefs.h" |
12713 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12714 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
12715 | #include <assert.h> |
12716 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12717 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12718 | builtin and then its argument prototype would still apply. */ |
12719 | char $ac_func(); | |
12720 | ||
12721 | int main() { | |
10f2d63a VZ |
12722 | |
12723 | /* The GNU C library defines this for functions which it implements | |
12724 | to always fail with ENOSYS. Some functions are actually named | |
12725 | something starting with __ and the normal name is an alias. */ | |
12726 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12727 | choke me | |
12728 | #else | |
698dcdb6 | 12729 | $ac_func(); |
10f2d63a VZ |
12730 | #endif |
12731 | ||
698dcdb6 | 12732 | ; return 0; } |
10f2d63a | 12733 | EOF |
24fd6d87 | 12734 | if { (eval echo configure:12735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12735 | rm -rf conftest* |
12736 | eval "ac_cv_func_$ac_func=yes" | |
12737 | else | |
12738 | echo "configure: failed program was:" >&5 | |
12739 | cat conftest.$ac_ext >&5 | |
12740 | rm -rf conftest* | |
12741 | eval "ac_cv_func_$ac_func=no" | |
12742 | fi | |
12743 | rm -f conftest* | |
12744 | fi | |
270a909e | 12745 | |
698dcdb6 VZ |
12746 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12747 | echo "$ac_t""yes" 1>&6 | |
12748 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12749 | cat >> confdefs.h <<EOF | |
12750 | #define $ac_tr_func 1 | |
12751 | EOF | |
12752 | ||
12753 | else | |
12754 | echo "$ac_t""no" 1>&6 | |
270a909e VZ |
12755 | fi |
12756 | done | |
12757 | ||
1e487827 | 12758 | |
698dcdb6 VZ |
12759 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
12760 | for ac_func in fcntl flock | |
4f3c5f06 | 12761 | do |
698dcdb6 | 12762 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 12763 | echo "configure:12764: checking for $ac_func" >&5 |
698dcdb6 VZ |
12764 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12766 | else | |
12767 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 12768 | #line 12769 "configure" |
4f3c5f06 VZ |
12769 | #include "confdefs.h" |
12770 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12771 | which can conflict with char $ac_func(); below. */ |
4f3c5f06 VZ |
12772 | #include <assert.h> |
12773 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12774 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12775 | builtin and then its argument prototype would still apply. */ |
12776 | char $ac_func(); | |
12777 | ||
12778 | int main() { | |
4f3c5f06 VZ |
12779 | |
12780 | /* The GNU C library defines this for functions which it implements | |
12781 | to always fail with ENOSYS. Some functions are actually named | |
12782 | something starting with __ and the normal name is an alias. */ | |
12783 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12784 | choke me | |
12785 | #else | |
698dcdb6 | 12786 | $ac_func(); |
4f3c5f06 VZ |
12787 | #endif |
12788 | ||
698dcdb6 VZ |
12789 | ; return 0; } |
12790 | EOF | |
24fd6d87 | 12791 | if { (eval echo configure:12792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12792 | rm -rf conftest* |
12793 | eval "ac_cv_func_$ac_func=yes" | |
12794 | else | |
12795 | echo "configure: failed program was:" >&5 | |
12796 | cat conftest.$ac_ext >&5 | |
12797 | rm -rf conftest* | |
12798 | eval "ac_cv_func_$ac_func=no" | |
12799 | fi | |
12800 | rm -f conftest* | |
12801 | fi | |
12802 | ||
12803 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12804 | echo "$ac_t""yes" 1>&6 | |
12805 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12806 | cat >> confdefs.h <<EOF | |
12807 | #define $ac_tr_func 1 | |
4f3c5f06 VZ |
12808 | EOF |
12809 | break | |
698dcdb6 VZ |
12810 | else |
12811 | echo "$ac_t""no" 1>&6 | |
4f3c5f06 VZ |
12812 | fi |
12813 | done | |
12814 | ||
698dcdb6 | 12815 | |
4f3c5f06 | 12816 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
698dcdb6 | 12817 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f3c5f06 VZ |
12818 | wxUSE_SNGLINST_CHECKER=no |
12819 | fi | |
12820 | fi | |
12821 | ||
270a909e VZ |
12822 | for ac_func in timegm |
12823 | do | |
698dcdb6 | 12824 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 12825 | echo "configure:12826: checking for $ac_func" >&5 |
698dcdb6 VZ |
12826 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12828 | else | |
12829 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 12830 | #line 12831 "configure" |
270a909e VZ |
12831 | #include "confdefs.h" |
12832 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12833 | which can conflict with char $ac_func(); below. */ |
270a909e VZ |
12834 | #include <assert.h> |
12835 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12836 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12837 | builtin and then its argument prototype would still apply. */ |
12838 | char $ac_func(); | |
12839 | ||
12840 | int main() { | |
270a909e VZ |
12841 | |
12842 | /* The GNU C library defines this for functions which it implements | |
12843 | to always fail with ENOSYS. Some functions are actually named | |
12844 | something starting with __ and the normal name is an alias. */ | |
12845 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12846 | choke me | |
12847 | #else | |
698dcdb6 | 12848 | $ac_func(); |
270a909e VZ |
12849 | #endif |
12850 | ||
698dcdb6 | 12851 | ; return 0; } |
270a909e | 12852 | EOF |
24fd6d87 | 12853 | if { (eval echo configure:12854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12854 | rm -rf conftest* |
12855 | eval "ac_cv_func_$ac_func=yes" | |
12856 | else | |
12857 | echo "configure: failed program was:" >&5 | |
12858 | cat conftest.$ac_ext >&5 | |
12859 | rm -rf conftest* | |
12860 | eval "ac_cv_func_$ac_func=no" | |
12861 | fi | |
12862 | rm -f conftest* | |
12863 | fi | |
10f2d63a | 12864 | |
698dcdb6 VZ |
12865 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12866 | echo "$ac_t""yes" 1>&6 | |
12867 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12868 | cat >> confdefs.h <<EOF | |
12869 | #define $ac_tr_func 1 | |
12870 | EOF | |
12871 | ||
12872 | else | |
12873 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12874 | fi |
12875 | done | |
12876 | ||
698dcdb6 | 12877 | |
8fd0d89b VZ |
12878 | for ac_func in putenv setenv |
12879 | do | |
698dcdb6 | 12880 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 12881 | echo "configure:12882: checking for $ac_func" >&5 |
698dcdb6 VZ |
12882 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12883 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12884 | else | |
12885 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 12886 | #line 12887 "configure" |
8fd0d89b VZ |
12887 | #include "confdefs.h" |
12888 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12889 | which can conflict with char $ac_func(); below. */ |
8fd0d89b VZ |
12890 | #include <assert.h> |
12891 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12892 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12893 | builtin and then its argument prototype would still apply. */ |
12894 | char $ac_func(); | |
12895 | ||
12896 | int main() { | |
8fd0d89b VZ |
12897 | |
12898 | /* The GNU C library defines this for functions which it implements | |
12899 | to always fail with ENOSYS. Some functions are actually named | |
12900 | something starting with __ and the normal name is an alias. */ | |
12901 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12902 | choke me | |
12903 | #else | |
698dcdb6 | 12904 | $ac_func(); |
8fd0d89b VZ |
12905 | #endif |
12906 | ||
698dcdb6 VZ |
12907 | ; return 0; } |
12908 | EOF | |
24fd6d87 | 12909 | if { (eval echo configure:12910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12910 | rm -rf conftest* |
12911 | eval "ac_cv_func_$ac_func=yes" | |
12912 | else | |
12913 | echo "configure: failed program was:" >&5 | |
12914 | cat conftest.$ac_ext >&5 | |
12915 | rm -rf conftest* | |
12916 | eval "ac_cv_func_$ac_func=no" | |
12917 | fi | |
12918 | rm -f conftest* | |
12919 | fi | |
12920 | ||
12921 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12922 | echo "$ac_t""yes" 1>&6 | |
12923 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12924 | cat >> confdefs.h <<EOF | |
12925 | #define $ac_tr_func 1 | |
8fd0d89b VZ |
12926 | EOF |
12927 | break | |
698dcdb6 VZ |
12928 | else |
12929 | echo "$ac_t""no" 1>&6 | |
8fd0d89b VZ |
12930 | fi |
12931 | done | |
12932 | ||
698dcdb6 | 12933 | |
b12915c1 VZ |
12934 | HAVE_SOME_SLEEP_FUNC=0 |
12935 | if test "$USE_BEOS" = 1; then | |
698dcdb6 | 12936 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
12937 | #define HAVE_SLEEP 1 |
12938 | EOF | |
12939 | ||
12940 | HAVE_SOME_SLEEP_FUNC=1 | |
12941 | fi | |
12942 | ||
b4085ce6 | 12943 | if test "$USE_MAC" = 1; then |
698dcdb6 | 12944 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
12945 | #define HAVE_USLEEP 1 |
12946 | EOF | |
12947 | ||
12948 | HAVE_SOME_SLEEP_FUNC=1 | |
12949 | fi | |
12950 | ||
b12915c1 VZ |
12951 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
12952 | POSIX4_LINK= | |
698dcdb6 | 12953 | for ac_func in nanosleep |
10f2d63a | 12954 | do |
698dcdb6 | 12955 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 12956 | echo "configure:12957: checking for $ac_func" >&5 |
698dcdb6 VZ |
12957 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12958 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12959 | else | |
12960 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 12961 | #line 12962 "configure" |
10f2d63a VZ |
12962 | #include "confdefs.h" |
12963 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12964 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
12965 | #include <assert.h> |
12966 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12967 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12968 | builtin and then its argument prototype would still apply. */ |
12969 | char $ac_func(); | |
12970 | ||
12971 | int main() { | |
10f2d63a VZ |
12972 | |
12973 | /* The GNU C library defines this for functions which it implements | |
12974 | to always fail with ENOSYS. Some functions are actually named | |
12975 | something starting with __ and the normal name is an alias. */ | |
12976 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12977 | choke me | |
12978 | #else | |
698dcdb6 | 12979 | $ac_func(); |
10f2d63a VZ |
12980 | #endif |
12981 | ||
698dcdb6 VZ |
12982 | ; return 0; } |
12983 | EOF | |
24fd6d87 | 12984 | if { (eval echo configure:12985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12985 | rm -rf conftest* |
12986 | eval "ac_cv_func_$ac_func=yes" | |
12987 | else | |
12988 | echo "configure: failed program was:" >&5 | |
12989 | cat conftest.$ac_ext >&5 | |
12990 | rm -rf conftest* | |
12991 | eval "ac_cv_func_$ac_func=no" | |
12992 | fi | |
12993 | rm -f conftest* | |
12994 | fi | |
12995 | ||
12996 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12997 | echo "$ac_t""yes" 1>&6 | |
12998 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12999 | cat >> confdefs.h <<EOF | |
13000 | #define $ac_tr_func 1 | |
13001 | EOF | |
13002 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13003 | #define HAVE_NANOSLEEP 1 |
13004 | EOF | |
13005 | ||
13006 | else | |
698dcdb6 VZ |
13007 | echo "$ac_t""no" 1>&6 |
13008 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
24fd6d87 | 13009 | echo "configure:13010: checking for nanosleep in -lposix4" >&5 |
698dcdb6 VZ |
13010 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
13011 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13013 | else |
698dcdb6 | 13014 | ac_save_LIBS="$LIBS" |
10f2d63a | 13015 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13016 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 13017 | #line 13018 "configure" |
10f2d63a VZ |
13018 | #include "confdefs.h" |
13019 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13020 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13021 | builtin and then its argument prototype would still apply. */ |
13022 | char nanosleep(); | |
13023 | ||
13024 | int main() { | |
13025 | nanosleep() | |
13026 | ; return 0; } | |
13027 | EOF | |
24fd6d87 | 13028 | if { (eval echo configure:13029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13029 | rm -rf conftest* |
13030 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13031 | else | |
13032 | echo "configure: failed program was:" >&5 | |
13033 | cat conftest.$ac_ext >&5 | |
13034 | rm -rf conftest* | |
13035 | eval "ac_cv_lib_$ac_lib_var=no" | |
13036 | fi | |
13037 | rm -f conftest* | |
13038 | LIBS="$ac_save_LIBS" | |
13039 | ||
13040 | fi | |
13041 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13042 | echo "$ac_t""yes" 1>&6 | |
13043 | ||
13044 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13045 | #define HAVE_NANOSLEEP 1 |
13046 | EOF | |
13047 | ||
b12915c1 | 13048 | POSIX4_LINK="-lposix4" |
698dcdb6 | 13049 | |
10f2d63a | 13050 | else |
698dcdb6 | 13051 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13052 | |
698dcdb6 | 13053 | for ac_func in usleep |
10f2d63a | 13054 | do |
698dcdb6 | 13055 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 13056 | echo "configure:13057: checking for $ac_func" >&5 |
698dcdb6 VZ |
13057 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13058 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13059 | else | |
13060 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 13061 | #line 13062 "configure" |
10f2d63a VZ |
13062 | #include "confdefs.h" |
13063 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13064 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13065 | #include <assert.h> |
13066 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13067 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13068 | builtin and then its argument prototype would still apply. */ |
13069 | char $ac_func(); | |
13070 | ||
13071 | int main() { | |
10f2d63a VZ |
13072 | |
13073 | /* The GNU C library defines this for functions which it implements | |
13074 | to always fail with ENOSYS. Some functions are actually named | |
13075 | something starting with __ and the normal name is an alias. */ | |
13076 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13077 | choke me | |
13078 | #else | |
698dcdb6 | 13079 | $ac_func(); |
10f2d63a VZ |
13080 | #endif |
13081 | ||
698dcdb6 VZ |
13082 | ; return 0; } |
13083 | EOF | |
24fd6d87 | 13084 | if { (eval echo configure:13085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13085 | rm -rf conftest* |
13086 | eval "ac_cv_func_$ac_func=yes" | |
13087 | else | |
13088 | echo "configure: failed program was:" >&5 | |
13089 | cat conftest.$ac_ext >&5 | |
13090 | rm -rf conftest* | |
13091 | eval "ac_cv_func_$ac_func=no" | |
13092 | fi | |
13093 | rm -f conftest* | |
13094 | fi | |
13095 | ||
13096 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13097 | echo "$ac_t""yes" 1>&6 | |
13098 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13099 | cat >> confdefs.h <<EOF | |
13100 | #define $ac_tr_func 1 | |
13101 | EOF | |
13102 | cat >> confdefs.h <<\EOF | |
b4085ce6 GD |
13103 | #define HAVE_USLEEP 1 |
13104 | EOF | |
13105 | ||
10f2d63a | 13106 | else |
698dcdb6 VZ |
13107 | echo "$ac_t""no" 1>&6 |
13108 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
13109 | ||
10f2d63a VZ |
13110 | fi |
13111 | done | |
13112 | ||
698dcdb6 VZ |
13113 | |
13114 | ||
10f2d63a VZ |
13115 | fi |
13116 | ||
698dcdb6 VZ |
13117 | |
13118 | ||
10f2d63a VZ |
13119 | fi |
13120 | done | |
13121 | ||
b12915c1 | 13122 | fi |
10f2d63a VZ |
13123 | |
13124 | for ac_func in uname gethostname | |
13125 | do | |
698dcdb6 | 13126 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 13127 | echo "configure:13128: checking for $ac_func" >&5 |
698dcdb6 VZ |
13128 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13129 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13130 | else | |
13131 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 13132 | #line 13133 "configure" |
10f2d63a VZ |
13133 | #include "confdefs.h" |
13134 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13135 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13136 | #include <assert.h> |
13137 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13138 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13139 | builtin and then its argument prototype would still apply. */ |
13140 | char $ac_func(); | |
13141 | ||
13142 | int main() { | |
10f2d63a VZ |
13143 | |
13144 | /* The GNU C library defines this for functions which it implements | |
13145 | to always fail with ENOSYS. Some functions are actually named | |
13146 | something starting with __ and the normal name is an alias. */ | |
13147 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13148 | choke me | |
13149 | #else | |
698dcdb6 | 13150 | $ac_func(); |
10f2d63a VZ |
13151 | #endif |
13152 | ||
698dcdb6 VZ |
13153 | ; return 0; } |
13154 | EOF | |
24fd6d87 | 13155 | if { (eval echo configure:13156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13156 | rm -rf conftest* |
13157 | eval "ac_cv_func_$ac_func=yes" | |
13158 | else | |
13159 | echo "configure: failed program was:" >&5 | |
13160 | cat conftest.$ac_ext >&5 | |
13161 | rm -rf conftest* | |
13162 | eval "ac_cv_func_$ac_func=no" | |
13163 | fi | |
13164 | rm -f conftest* | |
13165 | fi | |
13166 | ||
13167 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13168 | echo "$ac_t""yes" 1>&6 | |
13169 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13170 | cat >> confdefs.h <<EOF | |
13171 | #define $ac_tr_func 1 | |
10f2d63a VZ |
13172 | EOF |
13173 | break | |
698dcdb6 VZ |
13174 | else |
13175 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13176 | fi |
13177 | done | |
13178 | ||
698dcdb6 VZ |
13179 | |
13180 | ||
13181 | ac_ext=C | |
13182 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098c7f9 | 13183 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
13184 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13185 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13186 | cross_compiling=$ac_cv_prog_cxx_cross | |
13187 | ||
6098c7f9 | 13188 | |
10f2d63a VZ |
13189 | for ac_func in strtok_r |
13190 | do | |
698dcdb6 | 13191 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 13192 | echo "configure:13193: checking for $ac_func" >&5 |
698dcdb6 VZ |
13193 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13195 | else | |
13196 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 13197 | #line 13198 "configure" |
10f2d63a VZ |
13198 | #include "confdefs.h" |
13199 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13200 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13201 | #include <assert.h> |
13202 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
13203 | #ifdef __cplusplus |
13204 | extern "C" | |
13205 | #endif | |
10f2d63a | 13206 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13207 | builtin and then its argument prototype would still apply. */ |
13208 | char $ac_func(); | |
13209 | ||
13210 | int main() { | |
10f2d63a VZ |
13211 | |
13212 | /* The GNU C library defines this for functions which it implements | |
13213 | to always fail with ENOSYS. Some functions are actually named | |
13214 | something starting with __ and the normal name is an alias. */ | |
13215 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13216 | choke me | |
13217 | #else | |
698dcdb6 | 13218 | $ac_func(); |
10f2d63a VZ |
13219 | #endif |
13220 | ||
698dcdb6 | 13221 | ; return 0; } |
10f2d63a | 13222 | EOF |
24fd6d87 | 13223 | if { (eval echo configure:13224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13224 | rm -rf conftest* |
13225 | eval "ac_cv_func_$ac_func=yes" | |
13226 | else | |
13227 | echo "configure: failed program was:" >&5 | |
13228 | cat conftest.$ac_ext >&5 | |
13229 | rm -rf conftest* | |
13230 | eval "ac_cv_func_$ac_func=no" | |
13231 | fi | |
13232 | rm -f conftest* | |
13233 | fi | |
10f2d63a | 13234 | |
698dcdb6 VZ |
13235 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13236 | echo "$ac_t""yes" 1>&6 | |
13237 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13238 | cat >> confdefs.h <<EOF | |
13239 | #define $ac_tr_func 1 | |
13240 | EOF | |
13241 | ||
13242 | else | |
13243 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13244 | fi |
13245 | done | |
13246 | ||
698dcdb6 | 13247 | |
6098c7f9 | 13248 | ac_ext=c |
698dcdb6 | 13249 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6098c7f9 | 13250 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
13251 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
13252 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13253 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 13254 | |
1e487827 | 13255 | |
698dcdb6 | 13256 | INET_LINK= |
10f2d63a VZ |
13257 | for ac_func in inet_addr |
13258 | do | |
698dcdb6 | 13259 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 13260 | echo "configure:13261: checking for $ac_func" >&5 |
698dcdb6 VZ |
13261 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13263 | else | |
13264 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 13265 | #line 13266 "configure" |
10f2d63a VZ |
13266 | #include "confdefs.h" |
13267 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 VZ |
13268 | which can conflict with char $ac_func(); below. */ |
13269 | #include <assert.h> | |
13270 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10f2d63a | 13271 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
13272 | builtin and then its argument prototype would still apply. */ |
13273 | char $ac_func(); | |
13274 | ||
13275 | int main() { | |
10f2d63a VZ |
13276 | |
13277 | /* The GNU C library defines this for functions which it implements | |
13278 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
13279 | something starting with __ and the normal name is an alias. */ |
13280 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13281 | choke me | |
13282 | #else | |
698dcdb6 | 13283 | $ac_func(); |
1e487827 | 13284 | #endif |
703e0a69 | 13285 | |
698dcdb6 VZ |
13286 | ; return 0; } |
13287 | EOF | |
24fd6d87 | 13288 | if { (eval echo configure:13289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13289 | rm -rf conftest* |
13290 | eval "ac_cv_func_$ac_func=yes" | |
13291 | else | |
13292 | echo "configure: failed program was:" >&5 | |
13293 | cat conftest.$ac_ext >&5 | |
13294 | rm -rf conftest* | |
13295 | eval "ac_cv_func_$ac_func=no" | |
13296 | fi | |
13297 | rm -f conftest* | |
13298 | fi | |
13299 | ||
13300 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13301 | echo "$ac_t""yes" 1>&6 | |
13302 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13303 | cat >> confdefs.h <<EOF | |
13304 | #define $ac_tr_func 1 | |
13305 | EOF | |
13306 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13307 | #define HAVE_INET_ADDR 1 |
13308 | EOF | |
13309 | ||
10f2d63a | 13310 | else |
698dcdb6 VZ |
13311 | echo "$ac_t""no" 1>&6 |
13312 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
24fd6d87 | 13313 | echo "configure:13314: checking for inet_addr in -lnsl" >&5 |
698dcdb6 VZ |
13314 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
13315 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13317 | else |
698dcdb6 | 13318 | ac_save_LIBS="$LIBS" |
c63c7106 | 13319 | LIBS="-lnsl $LIBS" |
698dcdb6 | 13320 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 13321 | #line 13322 "configure" |
c63c7106 VZ |
13322 | #include "confdefs.h" |
13323 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13324 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13325 | builtin and then its argument prototype would still apply. */ |
13326 | char inet_addr(); | |
13327 | ||
13328 | int main() { | |
13329 | inet_addr() | |
13330 | ; return 0; } | |
13331 | EOF | |
24fd6d87 | 13332 | if { (eval echo configure:13333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13333 | rm -rf conftest* |
13334 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13335 | else | |
13336 | echo "configure: failed program was:" >&5 | |
13337 | cat conftest.$ac_ext >&5 | |
13338 | rm -rf conftest* | |
13339 | eval "ac_cv_lib_$ac_lib_var=no" | |
13340 | fi | |
13341 | rm -f conftest* | |
13342 | LIBS="$ac_save_LIBS" | |
13343 | ||
13344 | fi | |
13345 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13346 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
13347 | INET_LINK="nsl" |
13348 | else | |
698dcdb6 VZ |
13349 | echo "$ac_t""no" 1>&6 |
13350 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
24fd6d87 | 13351 | echo "configure:13352: checking for inet_addr in -lresolv" >&5 |
698dcdb6 VZ |
13352 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
13353 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 13355 | else |
698dcdb6 | 13356 | ac_save_LIBS="$LIBS" |
c63c7106 | 13357 | LIBS="-lresolv $LIBS" |
698dcdb6 | 13358 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 13359 | #line 13360 "configure" |
c63c7106 VZ |
13360 | #include "confdefs.h" |
13361 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13362 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13363 | builtin and then its argument prototype would still apply. */ |
13364 | char inet_addr(); | |
13365 | ||
13366 | int main() { | |
13367 | inet_addr() | |
13368 | ; return 0; } | |
13369 | EOF | |
24fd6d87 | 13370 | if { (eval echo configure:13371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13371 | rm -rf conftest* |
13372 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13373 | else | |
13374 | echo "configure: failed program was:" >&5 | |
13375 | cat conftest.$ac_ext >&5 | |
13376 | rm -rf conftest* | |
13377 | eval "ac_cv_lib_$ac_lib_var=no" | |
13378 | fi | |
13379 | rm -f conftest* | |
13380 | LIBS="$ac_save_LIBS" | |
c63c7106 | 13381 | |
6232543b | 13382 | fi |
698dcdb6 VZ |
13383 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
13384 | echo "$ac_t""yes" 1>&6 | |
13385 | INET_LINK="resolv" | |
13386 | ||
13387 | else | |
13388 | echo "$ac_t""no" 1>&6 | |
13389 | fi | |
c63c7106 | 13390 | |
698dcdb6 | 13391 | |
1e487827 | 13392 | fi |
703e0a69 | 13393 | |
698dcdb6 VZ |
13394 | |
13395 | ||
10f2d63a VZ |
13396 | fi |
13397 | done | |
13398 | ||
698dcdb6 | 13399 | |
10f2d63a VZ |
13400 | for ac_func in inet_aton |
13401 | do | |
698dcdb6 | 13402 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 13403 | echo "configure:13404: checking for $ac_func" >&5 |
698dcdb6 VZ |
13404 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13405 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13406 | else | |
13407 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 13408 | #line 13409 "configure" |
10f2d63a VZ |
13409 | #include "confdefs.h" |
13410 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13411 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
13412 | #include <assert.h> |
13413 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13414 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13415 | builtin and then its argument prototype would still apply. */ |
13416 | char $ac_func(); | |
13417 | ||
13418 | int main() { | |
10f2d63a VZ |
13419 | |
13420 | /* The GNU C library defines this for functions which it implements | |
13421 | to always fail with ENOSYS. Some functions are actually named | |
13422 | something starting with __ and the normal name is an alias. */ | |
13423 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13424 | choke me | |
13425 | #else | |
698dcdb6 | 13426 | $ac_func(); |
10f2d63a VZ |
13427 | #endif |
13428 | ||
698dcdb6 VZ |
13429 | ; return 0; } |
13430 | EOF | |
24fd6d87 | 13431 | if { (eval echo configure:13432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13432 | rm -rf conftest* |
13433 | eval "ac_cv_func_$ac_func=yes" | |
13434 | else | |
13435 | echo "configure: failed program was:" >&5 | |
13436 | cat conftest.$ac_ext >&5 | |
13437 | rm -rf conftest* | |
13438 | eval "ac_cv_func_$ac_func=no" | |
13439 | fi | |
13440 | rm -f conftest* | |
13441 | fi | |
13442 | ||
13443 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13444 | echo "$ac_t""yes" 1>&6 | |
13445 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13446 | cat >> confdefs.h <<EOF | |
13447 | #define $ac_tr_func 1 | |
13448 | EOF | |
13449 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
13450 | #define HAVE_INET_ATON 1 |
13451 | EOF | |
13452 | ||
10f2d63a | 13453 | else |
698dcdb6 VZ |
13454 | echo "$ac_t""no" 1>&6 |
13455 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
24fd6d87 | 13456 | echo "configure:13457: checking for inet_aton in -l$INET_LINK" >&5 |
698dcdb6 VZ |
13457 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
13458 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13459 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13460 | else |
698dcdb6 | 13461 | ac_save_LIBS="$LIBS" |
c63c7106 | 13462 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 13463 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 13464 | #line 13465 "configure" |
10f2d63a VZ |
13465 | #include "confdefs.h" |
13466 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13467 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13468 | builtin and then its argument prototype would still apply. */ |
13469 | char inet_aton(); | |
13470 | ||
13471 | int main() { | |
13472 | inet_aton() | |
13473 | ; return 0; } | |
13474 | EOF | |
24fd6d87 | 13475 | if { (eval echo configure:13476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13476 | rm -rf conftest* |
13477 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13478 | else | |
13479 | echo "configure: failed program was:" >&5 | |
13480 | cat conftest.$ac_ext >&5 | |
13481 | rm -rf conftest* | |
13482 | eval "ac_cv_lib_$ac_lib_var=no" | |
13483 | fi | |
13484 | rm -f conftest* | |
13485 | LIBS="$ac_save_LIBS" | |
13486 | ||
13487 | fi | |
13488 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13489 | echo "$ac_t""yes" 1>&6 | |
13490 | cat >> confdefs.h <<\EOF | |
c63c7106 | 13491 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
13492 | EOF |
13493 | ||
698dcdb6 VZ |
13494 | else |
13495 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13496 | fi |
13497 | ||
698dcdb6 | 13498 | |
c63c7106 VZ |
13499 | fi |
13500 | done | |
13501 | ||
698dcdb6 | 13502 | |
c63c7106 | 13503 | if test "x$INET_LINK" != "x"; then |
698dcdb6 | 13504 | cat >> confdefs.h <<\EOF |
c63c7106 VZ |
13505 | #define HAVE_INET_ADDR 1 |
13506 | EOF | |
13507 | ||
13508 | INET_LINK="-l$INET_LINK" | |
13509 | fi | |
10f2d63a VZ |
13510 | |
13511 | fi | |
13512 | ||
698dcdb6 VZ |
13513 | |
13514 | cat > confcache <<\EOF | |
10f2d63a VZ |
13515 | # This file is a shell script that caches the results of configure |
13516 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
13517 | # scripts and configure runs. It is not useful on other systems. |
13518 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 13519 | # |
698dcdb6 VZ |
13520 | # By default, configure uses ./config.cache as the cache file, |
13521 | # creating it if it does not exist already. You can give configure | |
13522 | # the --cache-file=FILE option to use a different cache file; that is | |
13523 | # what configure does when it calls configure scripts in | |
13524 | # subdirectories, so they share the cache. | |
13525 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
13526 | # config.status only pays attention to the cache file if you give it the | |
13527 | # --recheck option to rerun configure. | |
10f2d63a | 13528 | # |
698dcdb6 | 13529 | EOF |
10f2d63a VZ |
13530 | # The following way of writing the cache mishandles newlines in values, |
13531 | # but we know of no workaround that is simple, portable, and efficient. | |
13532 | # So, don't put newlines in cache variables' values. | |
13533 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13534 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
13535 | (set) 2>&1 | |
13536 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13537 | *ac_space=\ *) | |
13538 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
13539 | # turns \\\\ into \\, and sed turns \\ into \). | |
13540 | sed -n \ | |
13541 | -e "s/'/'\\\\''/g" \ | |
13542 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
13543 | ;; | |
13544 | *) | |
13545 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13546 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
13547 | ;; | |
13548 | esac >> confcache | |
13549 | if cmp -s $cache_file confcache; then | |
13550 | : | |
13551 | else | |
10f2d63a | 13552 | if test -w $cache_file; then |
698dcdb6 VZ |
13553 | echo "updating cache $cache_file" |
13554 | cat confcache > $cache_file | |
10f2d63a VZ |
13555 | else |
13556 | echo "not updating unwritable cache $cache_file" | |
13557 | fi | |
13558 | fi | |
13559 | rm -f confcache | |
13560 | ||
698dcdb6 VZ |
13561 | |
13562 | ||
b089607b | 13563 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 13564 | |
698dcdb6 | 13565 | |
10f2d63a VZ |
13566 | THREADS_LINK="" |
13567 | THREADS_OBJ="" | |
13568 | ||
13569 | if test "$wxUSE_THREADS" = "yes" ; then | |
13570 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 13571 | echo "configure: warning: Threads are not supported under WINE" 1>&2 |
10f2d63a | 13572 | wxUSE_THREADS="no" |
b12915c1 | 13573 | elif test "$USE_BEOS" = 1; then |
698dcdb6 | 13574 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 |
b12915c1 | 13575 | wxUSE_THREADS="no" |
10f2d63a VZ |
13576 | fi |
13577 | fi | |
13578 | ||
13579 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13580 | |
186837b0 | 13581 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
13582 | THREADS_LIB=pthreads |
13583 | else | |
13584 | THREADS_LIB=pthread | |
13585 | fi | |
13586 | ||
698dcdb6 | 13587 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
24fd6d87 | 13588 | echo "configure:13589: checking for pthread_create in -l$THREADS_LIB" >&5 |
698dcdb6 VZ |
13589 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
13590 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13592 | else |
698dcdb6 | 13593 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 13594 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 13595 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 13596 | #line 13597 "configure" |
10f2d63a VZ |
13597 | #include "confdefs.h" |
13598 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13599 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13600 | builtin and then its argument prototype would still apply. */ |
13601 | char pthread_create(); | |
13602 | ||
13603 | int main() { | |
13604 | pthread_create() | |
13605 | ; return 0; } | |
13606 | EOF | |
24fd6d87 | 13607 | if { (eval echo configure:13608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13608 | rm -rf conftest* |
13609 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13610 | else | |
13611 | echo "configure: failed program was:" >&5 | |
13612 | cat conftest.$ac_ext >&5 | |
13613 | rm -rf conftest* | |
13614 | eval "ac_cv_lib_$ac_lib_var=no" | |
13615 | fi | |
13616 | rm -f conftest* | |
13617 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13618 | |
698dcdb6 VZ |
13619 | fi |
13620 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13621 | echo "$ac_t""yes" 1>&6 | |
13622 | ||
10f2d63a | 13623 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 13624 | THREADS_LINK=$THREADS_LIB |
698dcdb6 | 13625 | |
10f2d63a | 13626 | else |
698dcdb6 | 13627 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13628 | |
698dcdb6 | 13629 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
24fd6d87 | 13630 | echo "configure:13631: checking for pthread_create in -lc_r" >&5 |
698dcdb6 VZ |
13631 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
13632 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13633 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13634 | else |
698dcdb6 | 13635 | ac_save_LIBS="$LIBS" |
10f2d63a | 13636 | LIBS="-lc_r $LIBS" |
698dcdb6 | 13637 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 13638 | #line 13639 "configure" |
10f2d63a VZ |
13639 | #include "confdefs.h" |
13640 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13641 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13642 | builtin and then its argument prototype would still apply. */ |
13643 | char pthread_create(); | |
13644 | ||
13645 | int main() { | |
13646 | pthread_create() | |
13647 | ; return 0; } | |
13648 | EOF | |
24fd6d87 | 13649 | if { (eval echo configure:13650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13650 | rm -rf conftest* |
13651 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13652 | else | |
13653 | echo "configure: failed program was:" >&5 | |
13654 | cat conftest.$ac_ext >&5 | |
13655 | rm -rf conftest* | |
13656 | eval "ac_cv_lib_$ac_lib_var=no" | |
13657 | fi | |
13658 | rm -f conftest* | |
13659 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13660 | |
698dcdb6 VZ |
13661 | fi |
13662 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13663 | echo "$ac_t""yes" 1>&6 | |
13664 | ||
10f2d63a VZ |
13665 | THREADS_OBJ="threadpsx.lo" |
13666 | THREADS_LINK="c_r" | |
698dcdb6 | 13667 | |
10f2d63a | 13668 | else |
698dcdb6 | 13669 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13670 | |
698dcdb6 VZ |
13671 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
13672 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
24fd6d87 | 13673 | echo "configure:13674: checking for sys/prctl.h" >&5 |
698dcdb6 VZ |
13674 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13676 | else |
698dcdb6 | 13677 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 13678 | #line 13679 "configure" |
10f2d63a VZ |
13679 | #include "confdefs.h" |
13680 | #include <sys/prctl.h> | |
698dcdb6 VZ |
13681 | EOF |
13682 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 13683 | { (eval echo configure:13684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13684 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13685 | if test -z "$ac_err"; then | |
13686 | rm -rf conftest* | |
13687 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13688 | else |
698dcdb6 VZ |
13689 | echo "$ac_err" >&5 |
13690 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13691 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13692 | rm -rf conftest* |
13693 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13694 | fi |
698dcdb6 | 13695 | rm -f conftest* |
10f2d63a | 13696 | fi |
698dcdb6 VZ |
13697 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13698 | echo "$ac_t""yes" 1>&6 | |
13699 | ||
1f8ae82f | 13700 | THREADS_OBJ="threadsgi.lo" |
698dcdb6 VZ |
13701 | |
13702 | else | |
13703 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13704 | fi |
13705 | ||
698dcdb6 | 13706 | |
6232543b | 13707 | fi |
10f2d63a | 13708 | |
698dcdb6 | 13709 | |
1e487827 | 13710 | fi |
703e0a69 | 13711 | |
698dcdb6 | 13712 | |
10f2d63a VZ |
13713 | if test -z "$THREADS_OBJ" ; then |
13714 | wxUSE_THREADS=no | |
698dcdb6 | 13715 | echo "configure: warning: No thread support on this system" 1>&2 |
10f2d63a VZ |
13716 | fi |
13717 | fi | |
13718 | ||
13719 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 13720 | for ac_func in thr_setconcurrency |
70846f0a | 13721 | do |
698dcdb6 | 13722 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 13723 | echo "configure:13724: checking for $ac_func" >&5 |
698dcdb6 VZ |
13724 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13726 | else | |
13727 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 13728 | #line 13729 "configure" |
70846f0a VZ |
13729 | #include "confdefs.h" |
13730 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 13731 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
13732 | #include <assert.h> |
13733 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13734 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13735 | builtin and then its argument prototype would still apply. */ |
13736 | char $ac_func(); | |
13737 | ||
13738 | int main() { | |
70846f0a VZ |
13739 | |
13740 | /* The GNU C library defines this for functions which it implements | |
13741 | to always fail with ENOSYS. Some functions are actually named | |
13742 | something starting with __ and the normal name is an alias. */ | |
13743 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13744 | choke me | |
13745 | #else | |
698dcdb6 | 13746 | $ac_func(); |
70846f0a VZ |
13747 | #endif |
13748 | ||
698dcdb6 | 13749 | ; return 0; } |
70846f0a | 13750 | EOF |
24fd6d87 | 13751 | if { (eval echo configure:13752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13752 | rm -rf conftest* |
13753 | eval "ac_cv_func_$ac_func=yes" | |
13754 | else | |
13755 | echo "configure: failed program was:" >&5 | |
13756 | cat conftest.$ac_ext >&5 | |
13757 | rm -rf conftest* | |
13758 | eval "ac_cv_func_$ac_func=no" | |
13759 | fi | |
13760 | rm -f conftest* | |
13761 | fi | |
70846f0a | 13762 | |
698dcdb6 VZ |
13763 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
13764 | echo "$ac_t""yes" 1>&6 | |
13765 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13766 | cat >> confdefs.h <<EOF | |
13767 | #define $ac_tr_func 1 | |
13768 | EOF | |
13769 | ||
13770 | else | |
13771 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
13772 | fi |
13773 | done | |
13774 | ||
698dcdb6 VZ |
13775 | |
13776 | ||
13777 | for ac_hdr in sched.h | |
10f2d63a | 13778 | do |
698dcdb6 VZ |
13779 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
13780 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24fd6d87 | 13781 | echo "configure:13782: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
13782 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13783 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13784 | else | |
13785 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 13786 | #line 13787 "configure" |
10f2d63a | 13787 | #include "confdefs.h" |
698dcdb6 VZ |
13788 | #include <$ac_hdr> |
13789 | EOF | |
13790 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 13791 | { (eval echo configure:13792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13792 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13793 | if test -z "$ac_err"; then | |
13794 | rm -rf conftest* | |
13795 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13796 | else |
698dcdb6 VZ |
13797 | echo "$ac_err" >&5 |
13798 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13799 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13800 | rm -rf conftest* |
13801 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13802 | fi |
698dcdb6 | 13803 | rm -f conftest* |
10f2d63a | 13804 | fi |
698dcdb6 VZ |
13805 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13806 | echo "$ac_t""yes" 1>&6 | |
13807 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13808 | cat >> confdefs.h <<EOF | |
13809 | #define $ac_tr_hdr 1 | |
10f2d63a | 13810 | EOF |
698dcdb6 VZ |
13811 | |
13812 | else | |
13813 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13814 | fi |
13815 | done | |
13816 | ||
698dcdb6 VZ |
13817 | |
13818 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
24fd6d87 | 13819 | echo "configure:13820: checking for sched_yield in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13820 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
13821 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13822 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13823 | else |
698dcdb6 | 13824 | ac_save_LIBS="$LIBS" |
10f2d63a | 13825 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13826 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 13827 | #line 13828 "configure" |
10f2d63a VZ |
13828 | #include "confdefs.h" |
13829 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13830 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13831 | builtin and then its argument prototype would still apply. */ |
13832 | char sched_yield(); | |
13833 | ||
13834 | int main() { | |
13835 | sched_yield() | |
13836 | ; return 0; } | |
13837 | EOF | |
24fd6d87 | 13838 | if { (eval echo configure:13839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13839 | rm -rf conftest* |
13840 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13841 | else | |
13842 | echo "configure: failed program was:" >&5 | |
13843 | cat conftest.$ac_ext >&5 | |
13844 | rm -rf conftest* | |
13845 | eval "ac_cv_lib_$ac_lib_var=no" | |
13846 | fi | |
13847 | rm -f conftest* | |
13848 | LIBS="$ac_save_LIBS" | |
13849 | ||
13850 | fi | |
13851 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13852 | echo "$ac_t""yes" 1>&6 | |
13853 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13854 | #define HAVE_SCHED_YIELD 1 |
13855 | EOF | |
13856 | ||
13857 | else | |
698dcdb6 VZ |
13858 | echo "$ac_t""no" 1>&6 |
13859 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
24fd6d87 | 13860 | echo "configure:13861: checking for sched_yield in -lposix4" >&5 |
698dcdb6 VZ |
13861 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
13862 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13864 | else |
698dcdb6 | 13865 | ac_save_LIBS="$LIBS" |
1e487827 | 13866 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 13867 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 13868 | #line 13869 "configure" |
10f2d63a VZ |
13869 | #include "confdefs.h" |
13870 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13871 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13872 | builtin and then its argument prototype would still apply. */ |
13873 | char sched_yield(); | |
13874 | ||
13875 | int main() { | |
13876 | sched_yield() | |
13877 | ; return 0; } | |
13878 | EOF | |
24fd6d87 | 13879 | if { (eval echo configure:13880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13880 | rm -rf conftest* |
13881 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13882 | else | |
13883 | echo "configure: failed program was:" >&5 | |
13884 | cat conftest.$ac_ext >&5 | |
13885 | rm -rf conftest* | |
13886 | eval "ac_cv_lib_$ac_lib_var=no" | |
13887 | fi | |
13888 | rm -f conftest* | |
13889 | LIBS="$ac_save_LIBS" | |
13890 | ||
13891 | fi | |
13892 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13893 | echo "$ac_t""yes" 1>&6 | |
13894 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
13895 | #define HAVE_SCHED_YIELD 1 |
13896 | EOF | |
13897 | POSIX4_LINK="-lposix4" | |
13898 | else | |
698dcdb6 VZ |
13899 | echo "$ac_t""no" 1>&6 |
13900 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
13901 | ||
6232543b | 13902 | fi |
10f2d63a | 13903 | |
698dcdb6 | 13904 | |
1e487827 | 13905 | fi |
703e0a69 | 13906 | |
698dcdb6 | 13907 | |
f6bcfd97 | 13908 | HAVE_PRIOR_FUNCS=0 |
698dcdb6 | 13909 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 |
24fd6d87 | 13910 | echo "configure:13911: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13911 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
13912 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13913 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13914 | else |
698dcdb6 | 13915 | ac_save_LIBS="$LIBS" |
10f2d63a | 13916 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13917 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 13918 | #line 13919 "configure" |
10f2d63a VZ |
13919 | #include "confdefs.h" |
13920 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13921 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13922 | builtin and then its argument prototype would still apply. */ |
13923 | char pthread_attr_getschedpolicy(); | |
13924 | ||
13925 | int main() { | |
13926 | pthread_attr_getschedpolicy() | |
13927 | ; return 0; } | |
13928 | EOF | |
24fd6d87 | 13929 | if { (eval echo configure:13930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13930 | rm -rf conftest* |
13931 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13932 | else | |
13933 | echo "configure: failed program was:" >&5 | |
13934 | cat conftest.$ac_ext >&5 | |
13935 | rm -rf conftest* | |
13936 | eval "ac_cv_lib_$ac_lib_var=no" | |
13937 | fi | |
13938 | rm -f conftest* | |
13939 | LIBS="$ac_save_LIBS" | |
13940 | ||
13941 | fi | |
13942 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13943 | echo "$ac_t""yes" 1>&6 | |
13944 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
24fd6d87 | 13945 | echo "configure:13946: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13946 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
13947 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13948 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13949 | else | |
13950 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 13951 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13952 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 13953 | #line 13954 "configure" |
f6bcfd97 BP |
13954 | #include "confdefs.h" |
13955 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13956 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13957 | builtin and then its argument prototype would still apply. */ |
13958 | char pthread_attr_setschedparam(); | |
13959 | ||
13960 | int main() { | |
13961 | pthread_attr_setschedparam() | |
13962 | ; return 0; } | |
13963 | EOF | |
24fd6d87 | 13964 | if { (eval echo configure:13965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13965 | rm -rf conftest* |
13966 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13967 | else | |
13968 | echo "configure: failed program was:" >&5 | |
13969 | cat conftest.$ac_ext >&5 | |
13970 | rm -rf conftest* | |
13971 | eval "ac_cv_lib_$ac_lib_var=no" | |
13972 | fi | |
13973 | rm -f conftest* | |
13974 | LIBS="$ac_save_LIBS" | |
13975 | ||
13976 | fi | |
13977 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13978 | echo "$ac_t""yes" 1>&6 | |
13979 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
24fd6d87 | 13980 | echo "configure:13981: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
13981 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
13982 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13983 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13984 | else | |
13985 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 13986 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 13987 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 13988 | #line 13989 "configure" |
f6bcfd97 BP |
13989 | #include "confdefs.h" |
13990 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13991 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13992 | builtin and then its argument prototype would still apply. */ |
13993 | char sched_get_priority_max(); | |
13994 | ||
13995 | int main() { | |
13996 | sched_get_priority_max() | |
13997 | ; return 0; } | |
13998 | EOF | |
24fd6d87 | 13999 | if { (eval echo configure:14000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14000 | rm -rf conftest* |
14001 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14002 | else | |
14003 | echo "configure: failed program was:" >&5 | |
14004 | cat conftest.$ac_ext >&5 | |
14005 | rm -rf conftest* | |
14006 | eval "ac_cv_lib_$ac_lib_var=no" | |
14007 | fi | |
14008 | rm -f conftest* | |
14009 | LIBS="$ac_save_LIBS" | |
14010 | ||
14011 | fi | |
14012 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14013 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 14014 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 14015 | else |
698dcdb6 VZ |
14016 | echo "$ac_t""no" 1>&6 |
14017 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
24fd6d87 | 14018 | echo "configure:14019: checking for sched_get_priority_max in -lposix4" >&5 |
698dcdb6 VZ |
14019 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
14020 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14021 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 14022 | else |
698dcdb6 | 14023 | ac_save_LIBS="$LIBS" |
1e487827 | 14024 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 14025 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 14026 | #line 14027 "configure" |
10f2d63a | 14027 | #include "confdefs.h" |
6232543b | 14028 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 14029 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
14030 | builtin and then its argument prototype would still apply. */ |
14031 | char sched_get_priority_max(); | |
14032 | ||
14033 | int main() { | |
14034 | sched_get_priority_max() | |
14035 | ; return 0; } | |
14036 | EOF | |
24fd6d87 | 14037 | if { (eval echo configure:14038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14038 | rm -rf conftest* |
14039 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14040 | else | |
14041 | echo "configure: failed program was:" >&5 | |
14042 | cat conftest.$ac_ext >&5 | |
14043 | rm -rf conftest* | |
14044 | eval "ac_cv_lib_$ac_lib_var=no" | |
14045 | fi | |
14046 | rm -f conftest* | |
14047 | LIBS="$ac_save_LIBS" | |
10f2d63a | 14048 | |
698dcdb6 VZ |
14049 | fi |
14050 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14051 | echo "$ac_t""yes" 1>&6 | |
14052 | ||
f6bcfd97 BP |
14053 | HAVE_PRIOR_FUNCS=1 |
14054 | POSIX4_LINK="-lposix4" | |
698dcdb6 VZ |
14055 | |
14056 | else | |
14057 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14058 | fi |
14059 | ||
698dcdb6 | 14060 | |
10f2d63a VZ |
14061 | fi |
14062 | ||
698dcdb6 VZ |
14063 | |
14064 | else | |
14065 | echo "$ac_t""no" 1>&6 | |
6232543b | 14066 | fi |
10f2d63a | 14067 | |
698dcdb6 VZ |
14068 | |
14069 | else | |
14070 | echo "$ac_t""no" 1>&6 | |
1e487827 | 14071 | fi |
703e0a69 | 14072 | |
698dcdb6 | 14073 | |
f6bcfd97 | 14074 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
698dcdb6 | 14075 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
14076 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
14077 | EOF | |
14078 | ||
14079 | else | |
698dcdb6 | 14080 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
f6bcfd97 BP |
14081 | fi |
14082 | ||
698dcdb6 | 14083 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
24fd6d87 | 14084 | echo "configure:14085: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
14085 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
14086 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14087 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14088 | else |
698dcdb6 | 14089 | ac_save_LIBS="$LIBS" |
10f2d63a | 14090 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 14091 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 14092 | #line 14093 "configure" |
10f2d63a VZ |
14093 | #include "confdefs.h" |
14094 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14095 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14096 | builtin and then its argument prototype would still apply. */ |
14097 | char pthread_cancel(); | |
14098 | ||
14099 | int main() { | |
14100 | pthread_cancel() | |
14101 | ; return 0; } | |
14102 | EOF | |
24fd6d87 | 14103 | if { (eval echo configure:14104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14104 | rm -rf conftest* |
14105 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14106 | else | |
14107 | echo "configure: failed program was:" >&5 | |
14108 | cat conftest.$ac_ext >&5 | |
14109 | rm -rf conftest* | |
14110 | eval "ac_cv_lib_$ac_lib_var=no" | |
14111 | fi | |
14112 | rm -f conftest* | |
14113 | LIBS="$ac_save_LIBS" | |
14114 | ||
14115 | fi | |
14116 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14117 | echo "$ac_t""yes" 1>&6 | |
14118 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14119 | #define HAVE_PTHREAD_CANCEL 1 |
14120 | EOF | |
14121 | ||
14122 | else | |
698dcdb6 VZ |
14123 | echo "$ac_t""no" 1>&6 |
14124 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10f2d63a VZ |
14125 | fi |
14126 | ||
1e487827 | 14127 | |
698dcdb6 | 14128 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
24fd6d87 | 14129 | echo "configure:14130: checking for pthread_cleanup_push/pop" >&5 |
698dcdb6 VZ |
14130 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
14131 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14132 | else | |
14133 | ||
14134 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 14135 | #line 14136 "configure" |
10f2d63a VZ |
14136 | #include "confdefs.h" |
14137 | #include <pthread.h> | |
698dcdb6 | 14138 | int main() { |
10f2d63a VZ |
14139 | |
14140 | pthread_cleanup_push(NULL, NULL); | |
14141 | pthread_cleanup_pop(0); | |
698dcdb6 VZ |
14142 | |
14143 | ; return 0; } | |
14144 | EOF | |
24fd6d87 | 14145 | if { (eval echo configure:14146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14146 | rm -rf conftest* |
14147 | ||
10f2d63a | 14148 | wx_cv_func_pthread_cleanup_push=yes |
698dcdb6 | 14149 | |
10f2d63a | 14150 | else |
698dcdb6 VZ |
14151 | echo "configure: failed program was:" >&5 |
14152 | cat conftest.$ac_ext >&5 | |
14153 | rm -rf conftest* | |
14154 | ||
10f2d63a | 14155 | wx_cv_func_pthread_cleanup_push=no |
698dcdb6 | 14156 | |
6232543b | 14157 | fi |
698dcdb6 VZ |
14158 | rm -f conftest* |
14159 | ||
1e487827 | 14160 | fi |
698dcdb6 VZ |
14161 | |
14162 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10f2d63a | 14163 | |
d9b9876f | 14164 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
698dcdb6 | 14165 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14166 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
14167 | EOF | |
14168 | ||
14169 | fi | |
14170 | ||
698dcdb6 VZ |
14171 | |
14172 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
24fd6d87 | 14173 | echo "configure:14174: checking for pthread_mutexattr_t" >&5 |
698dcdb6 VZ |
14174 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
14175 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d9b9876f | 14176 | else |
698dcdb6 VZ |
14177 | |
14178 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 14179 | #line 14180 "configure" |
d9b9876f VZ |
14180 | #include "confdefs.h" |
14181 | #include <pthread.h> | |
698dcdb6 | 14182 | int main() { |
d9b9876f VZ |
14183 | |
14184 | pthread_mutexattr_t attr; | |
14185 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
698dcdb6 VZ |
14186 | |
14187 | ; return 0; } | |
14188 | EOF | |
24fd6d87 | 14189 | if { (eval echo configure:14190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14190 | rm -rf conftest* |
14191 | ||
d9b9876f | 14192 | wx_cv_type_pthread_mutexattr_t=yes |
698dcdb6 | 14193 | |
d9b9876f | 14194 | else |
698dcdb6 VZ |
14195 | echo "configure: failed program was:" >&5 |
14196 | cat conftest.$ac_ext >&5 | |
14197 | rm -rf conftest* | |
14198 | ||
d9b9876f | 14199 | wx_cv_type_pthread_mutexattr_t=no |
698dcdb6 VZ |
14200 | |
14201 | ||
6232543b | 14202 | fi |
698dcdb6 VZ |
14203 | rm -f conftest* |
14204 | ||
1e487827 | 14205 | fi |
698dcdb6 VZ |
14206 | |
14207 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
d9b9876f VZ |
14208 | |
14209 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
698dcdb6 | 14210 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14211 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
14212 | EOF | |
14213 | ||
14214 | else | |
698dcdb6 | 14215 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
24fd6d87 | 14216 | echo "configure:14217: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
698dcdb6 VZ |
14217 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
14218 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14219 | else | |
14220 | ||
14221 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 14222 | #line 14223 "configure" |
d9b9876f VZ |
14223 | #include "confdefs.h" |
14224 | #include <pthread.h> | |
698dcdb6 | 14225 | int main() { |
d9b9876f VZ |
14226 | |
14227 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
698dcdb6 VZ |
14228 | |
14229 | ; return 0; } | |
14230 | EOF | |
24fd6d87 | 14231 | if { (eval echo configure:14232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14232 | rm -rf conftest* |
14233 | ||
d9b9876f | 14234 | wx_cv_type_pthread_rec_mutex_init=yes |
698dcdb6 | 14235 | |
d9b9876f | 14236 | else |
698dcdb6 VZ |
14237 | echo "configure: failed program was:" >&5 |
14238 | cat conftest.$ac_ext >&5 | |
14239 | rm -rf conftest* | |
14240 | ||
d9b9876f | 14241 | wx_cv_type_pthread_rec_mutex_init=no |
698dcdb6 VZ |
14242 | |
14243 | ||
6232543b | 14244 | fi |
698dcdb6 VZ |
14245 | rm -f conftest* |
14246 | ||
1e487827 | 14247 | fi |
698dcdb6 VZ |
14248 | |
14249 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
3765e936 | 14250 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
698dcdb6 | 14251 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
14252 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
14253 | EOF | |
14254 | ||
14255 | else | |
698dcdb6 | 14256 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
d9b9876f VZ |
14257 | fi |
14258 | fi | |
14259 | ||
10f2d63a | 14260 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
14261 | |
14262 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
14263 | CFLAGS="${CFLAGS} -mt" | |
14264 | CXXFLAGS="${CXXFLAGS} -mt" | |
14265 | LDFLAGS="${LDFLAGS} -mt" | |
14266 | fi | |
10f2d63a VZ |
14267 | fi |
14268 | ||
14269 | fi | |
14270 | ||
14271 | if test "$wxUSE_THREADS" = "yes"; then | |
698dcdb6 | 14272 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14273 | #define wxUSE_THREADS 1 |
14274 | EOF | |
14275 | ||
698dcdb6 | 14276 | |
2c6025bc | 14277 | if test "$wxUSE_MAC" = "0"; then |
10f2d63a | 14278 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
14279 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
14280 | fi | |
10f2d63a VZ |
14281 | |
14282 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
14283 | else | |
14284 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
698dcdb6 | 14285 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
24fd6d87 | 14286 | echo "configure:14287: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
14287 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
14288 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
14289 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
698dcdb6 | 14290 | echo "$ac_t""yes" 1>&6 |
ab9b9eab | 14291 | else |
698dcdb6 | 14292 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
14293 | fi |
14294 | fi | |
14295 | fi | |
14296 | ||
6f72b082 | 14297 | if test "$WXGTK20" = 1 ; then |
698dcdb6 | 14298 | cat >> confdefs.h <<EOF |
6f72b082 | 14299 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
14300 | EOF |
14301 | ||
14302 | WXGTK12=1 | |
14303 | fi | |
14304 | ||
10f2d63a | 14305 | if test "$WXGTK12" = 1 ; then |
698dcdb6 | 14306 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
14307 | #define __WXGTK12__ $WXGTK12 |
14308 | EOF | |
14309 | ||
14310 | fi | |
14311 | ||
f6bcfd97 | 14312 | if test "$WXGTK127" = 1 ; then |
698dcdb6 | 14313 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
14314 | #define __WXGTK127__ $WXGTK127 |
14315 | EOF | |
14316 | ||
14317 | fi | |
14318 | ||
10f2d63a VZ |
14319 | if test "$WXWINE" = 1 ; then |
14320 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
14321 | fi | |
14322 | ||
b4085ce6 | 14323 | if test "$wxUSE_MAC" = 1 ; then |
2c6025bc | 14324 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON" |
ea5999b9 | 14325 | CFLAGS="${CFLAGS} -fno-common -fpascal-strings" |
0c451ef3 | 14326 | CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings" |
2f51a9ec GD |
14327 | # Extract the first word of "Rez", so it can be a program name with args. |
14328 | set dummy Rez; ac_word=$2 | |
698dcdb6 | 14329 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
24fd6d87 | 14330 | echo "configure:14331: checking for $ac_word" >&5 |
698dcdb6 VZ |
14331 | if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then |
14332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14333 | else |
14334 | if test -n "$REZ"; then | |
14335 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
14336 | else | |
698dcdb6 VZ |
14337 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14338 | ac_dummy="$PATH" | |
14339 | for ac_dir in $ac_dummy; do | |
14340 | test -z "$ac_dir" && ac_dir=. | |
14341 | if test -f $ac_dir/$ac_word; then | |
14342 | ac_cv_prog_REZ="Rez" | |
14343 | break | |
14344 | fi | |
14345 | done | |
14346 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14347 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
14348 | fi | |
14349 | fi | |
698dcdb6 | 14350 | REZ="$ac_cv_prog_REZ" |
2f51a9ec | 14351 | if test -n "$REZ"; then |
698dcdb6 | 14352 | echo "$ac_t""$REZ" 1>&6 |
2f51a9ec | 14353 | else |
698dcdb6 | 14354 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14355 | fi |
14356 | ||
14357 | # Extract the first word of "Derez", so it can be a program name with args. | |
14358 | set dummy Derez; ac_word=$2 | |
698dcdb6 | 14359 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
24fd6d87 | 14360 | echo "configure:14361: checking for $ac_word" >&5 |
698dcdb6 VZ |
14361 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
14362 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
14363 | else |
14364 | if test -n "$DEREZ"; then | |
14365 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
14366 | else | |
698dcdb6 VZ |
14367 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14368 | ac_dummy="$PATH" | |
14369 | for ac_dir in $ac_dummy; do | |
14370 | test -z "$ac_dir" && ac_dir=. | |
14371 | if test -f $ac_dir/$ac_word; then | |
14372 | ac_cv_prog_DEREZ="Derez" | |
14373 | break | |
14374 | fi | |
14375 | done | |
14376 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
14377 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" |
14378 | fi | |
14379 | fi | |
698dcdb6 | 14380 | DEREZ="$ac_cv_prog_DEREZ" |
2f51a9ec | 14381 | if test -n "$DEREZ"; then |
698dcdb6 | 14382 | echo "$ac_t""$DEREZ" 1>&6 |
2f51a9ec | 14383 | else |
698dcdb6 | 14384 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
14385 | fi |
14386 | ||
14387 | RESCOMP=${REZ} | |
14388 | REZFLAGS="-d __UNIX__ -useDF" | |
14389 | DEREZFLAGS="Carbon.r -useDF" | |
14390 | RESFLAGS="Carbon.r -t APPL" | |
14391 | LIBWXMACRES="\$(LIBWX_MACRES)" | |
14392 | LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)" | |
b4085ce6 GD |
14393 | fi |
14394 | ||
10f2d63a VZ |
14395 | if test "$wxUSE_CYGWIN" = 1 ; then |
14396 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
14397 | fi | |
14398 | ||
14399 | WXDEBUG= | |
14400 | ||
14401 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
14402 | WXDEBUG="-g" | |
14403 | wxUSE_OPTIMISE=no | |
14404 | fi | |
14405 | ||
14406 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
14407 | wxUSE_DEBUG_INFO=yes | |
14408 | WXDEBUG="-ggdb" | |
14409 | fi | |
14410 | ||
14411 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
698dcdb6 | 14412 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14413 | #define WXDEBUG 1 |
14414 | EOF | |
14415 | ||
14416 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
14417 | else | |
14418 | if test "$wxUSE_GTK" = 1 ; then | |
14419 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
14420 | fi | |
14421 | fi | |
14422 | ||
14423 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
698dcdb6 | 14424 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14425 | #define wxUSE_MEMORY_TRACING 1 |
14426 | EOF | |
14427 | ||
698dcdb6 | 14428 | cat >> confdefs.h <<\EOF |
10f2d63a | 14429 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
14430 | EOF |
14431 | ||
698dcdb6 | 14432 | cat >> confdefs.h <<\EOF |
47c13eb7 | 14433 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
14434 | EOF |
14435 | ||
14436 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
14437 | fi | |
14438 | ||
14439 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
14440 | DMALLOC_LINK="-ldmalloc" | |
14441 | fi | |
14442 | ||
14443 | PROFILE= | |
14444 | if test "$wxUSE_PROFILE" = "yes" ; then | |
14445 | PROFILE="-pg" | |
14446 | fi | |
14447 | ||
14448 | DEP_INFO_FLAGS= | |
caa2c79b | 14449 | CODE_GEN_FLAGS= |
0f3f1cbc | 14450 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
14451 | if test "$GCC" = yes ; then |
14452 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 14453 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
14454 | fi |
14455 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 14456 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
14457 | fi |
14458 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 14459 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
14460 | fi |
14461 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
14462 | DEP_INFO_FLAGS="-MMD" | |
14463 | fi | |
14464 | fi | |
14465 | ||
698dcdb6 | 14466 | |
10f2d63a VZ |
14467 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
14468 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
14469 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
14470 | OPTIMISE= | |
14471 | else | |
14472 | if test "$GCC" = yes ; then | |
14473 | OPTIMISE="-O2" | |
14474 | case "${host}" in | |
14475 | i586-*-*|i686-*-* ) | |
14476 | OPTIMISE="${OPTIMISE} " | |
14477 | ;; | |
14478 | esac | |
14479 | else | |
14480 | OPTIMISE="-O" | |
14481 | fi | |
14482 | fi | |
14483 | ||
54276ccf VZ |
14484 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
14485 | cat >> confdefs.h <<\EOF | |
14486 | #define WXWIN_COMPATIBILITY_2 1 | |
14487 | EOF | |
14488 | ||
14489 | ||
14490 | WXWIN_COMPATIBILITY_2_2="yes" | |
14491 | fi | |
14492 | ||
14493 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
14494 | cat >> confdefs.h <<\EOF | |
14495 | #define WXWIN_COMPATIBILITY_2_2 1 | |
14496 | EOF | |
14497 | ||
14498 | fi | |
14499 | ||
698dcdb6 | 14500 | |
10f2d63a | 14501 | ZLIB_INCLUDE= |
422107f9 | 14502 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
698dcdb6 | 14503 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14504 | #define wxUSE_ZLIB 1 |
14505 | EOF | |
14506 | ||
422107f9 VZ |
14507 | if test "$wxUSE_ZLIB" = "yes" ; then |
14508 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
14509 | else | |
14510 | ZLIB_LINK= | |
698dcdb6 VZ |
14511 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
14512 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
24fd6d87 | 14513 | echo "configure:14514: checking for zlib.h" >&5 |
698dcdb6 VZ |
14514 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14515 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14516 | else | |
14517 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 14518 | #line 14519 "configure" |
422107f9 VZ |
14519 | #include "confdefs.h" |
14520 | #include <zlib.h> | |
698dcdb6 VZ |
14521 | EOF |
14522 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 14523 | { (eval echo configure:14524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14524 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14525 | if test -z "$ac_err"; then | |
14526 | rm -rf conftest* | |
14527 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14528 | else |
698dcdb6 VZ |
14529 | echo "$ac_err" >&5 |
14530 | echo "configure: failed program was:" >&5 | |
422107f9 | 14531 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14532 | rm -rf conftest* |
14533 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14534 | fi |
698dcdb6 | 14535 | rm -f conftest* |
422107f9 | 14536 | fi |
698dcdb6 VZ |
14537 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14538 | echo "$ac_t""yes" 1>&6 | |
14539 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
24fd6d87 | 14540 | echo "configure:14541: checking for deflate in -lz" >&5 |
698dcdb6 VZ |
14541 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
14542 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14543 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14544 | else |
698dcdb6 | 14545 | ac_save_LIBS="$LIBS" |
422107f9 | 14546 | LIBS="-lz $LIBS" |
698dcdb6 | 14547 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 14548 | #line 14549 "configure" |
422107f9 VZ |
14549 | #include "confdefs.h" |
14550 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14551 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14552 | builtin and then its argument prototype would still apply. */ |
14553 | char deflate(); | |
14554 | ||
14555 | int main() { | |
14556 | deflate() | |
14557 | ; return 0; } | |
14558 | EOF | |
24fd6d87 | 14559 | if { (eval echo configure:14560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14560 | rm -rf conftest* |
14561 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14562 | else | |
14563 | echo "configure: failed program was:" >&5 | |
14564 | cat conftest.$ac_ext >&5 | |
14565 | rm -rf conftest* | |
14566 | eval "ac_cv_lib_$ac_lib_var=no" | |
14567 | fi | |
14568 | rm -f conftest* | |
14569 | LIBS="$ac_save_LIBS" | |
14570 | ||
14571 | fi | |
14572 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14573 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14574 | ZLIB_LINK="-lz" |
698dcdb6 VZ |
14575 | else |
14576 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14577 | fi |
14578 | ||
698dcdb6 VZ |
14579 | else |
14580 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14581 | fi |
14582 | ||
14583 | if test "x$ZLIB_LINK" = "x" ; then | |
698dcdb6 | 14584 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } |
422107f9 VZ |
14585 | fi |
14586 | fi | |
10f2d63a VZ |
14587 | fi |
14588 | ||
14589 | PNG_INCLUDE= | |
422107f9 | 14590 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
698dcdb6 | 14591 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14592 | #define wxUSE_LIBPNG 1 |
14593 | EOF | |
14594 | ||
41fd4136 | 14595 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
698dcdb6 | 14596 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
422107f9 VZ |
14597 | wxUSE_LIBPNG=yes |
14598 | fi | |
14599 | ||
14600 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
14601 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
14602 | else | |
14603 | PNG_LINK= | |
698dcdb6 VZ |
14604 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
14605 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
24fd6d87 | 14606 | echo "configure:14607: checking for png.h" >&5 |
698dcdb6 VZ |
14607 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14608 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14609 | else | |
14610 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 14611 | #line 14612 "configure" |
422107f9 VZ |
14612 | #include "confdefs.h" |
14613 | #include <png.h> | |
698dcdb6 VZ |
14614 | EOF |
14615 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 14616 | { (eval echo configure:14617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14617 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14618 | if test -z "$ac_err"; then | |
14619 | rm -rf conftest* | |
14620 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 14621 | else |
698dcdb6 VZ |
14622 | echo "$ac_err" >&5 |
14623 | echo "configure: failed program was:" >&5 | |
422107f9 | 14624 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14625 | rm -rf conftest* |
14626 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 14627 | fi |
698dcdb6 | 14628 | rm -f conftest* |
422107f9 | 14629 | fi |
698dcdb6 VZ |
14630 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14631 | echo "$ac_t""yes" 1>&6 | |
14632 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
24fd6d87 | 14633 | echo "configure:14634: checking for png_check_sig in -lpng" >&5 |
698dcdb6 VZ |
14634 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
14635 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14636 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14637 | else |
698dcdb6 | 14638 | ac_save_LIBS="$LIBS" |
422107f9 | 14639 | LIBS="-lpng -lz -lm $LIBS" |
698dcdb6 | 14640 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 14641 | #line 14642 "configure" |
422107f9 VZ |
14642 | #include "confdefs.h" |
14643 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14644 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14645 | builtin and then its argument prototype would still apply. */ |
14646 | char png_check_sig(); | |
14647 | ||
14648 | int main() { | |
14649 | png_check_sig() | |
14650 | ; return 0; } | |
14651 | EOF | |
24fd6d87 | 14652 | if { (eval echo configure:14653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14653 | rm -rf conftest* |
14654 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14655 | else | |
14656 | echo "configure: failed program was:" >&5 | |
14657 | cat conftest.$ac_ext >&5 | |
14658 | rm -rf conftest* | |
14659 | eval "ac_cv_lib_$ac_lib_var=no" | |
14660 | fi | |
14661 | rm -f conftest* | |
14662 | LIBS="$ac_save_LIBS" | |
14663 | ||
14664 | fi | |
14665 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14666 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14667 | PNG_LINK="-lpng" |
698dcdb6 VZ |
14668 | else |
14669 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14670 | fi |
14671 | ||
698dcdb6 VZ |
14672 | |
14673 | else | |
14674 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14675 | fi |
14676 | ||
14677 | if test "x$PNG_LINK" = "x" ; then | |
698dcdb6 | 14678 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
14679 | fi |
14680 | fi | |
14681 | ||
10f2d63a VZ |
14682 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
14683 | fi | |
14684 | ||
14685 | JPEG_INCLUDE= | |
422107f9 | 14686 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
698dcdb6 | 14687 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14688 | #define wxUSE_LIBJPEG 1 |
14689 | EOF | |
14690 | ||
422107f9 VZ |
14691 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
14692 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
14693 | else | |
14694 | JPEG_LINK= | |
463abc64 | 14695 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
24fd6d87 | 14696 | echo "configure:14697: checking for jpeglib.h" >&5 |
463abc64 | 14697 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
698dcdb6 VZ |
14698 | echo $ac_n "(cached) $ac_c" 1>&6 |
14699 | else | |
14700 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 14701 | #line 14702 "configure" |
422107f9 | 14702 | #include "confdefs.h" |
463abc64 VZ |
14703 | |
14704 | #undef HAVE_STDLIB_H | |
14705 | #include <stdio.h> | |
14706 | #include <jpeglib.h> | |
14707 | ||
14708 | int main() { | |
14709 | ||
14710 | ||
14711 | ; return 0; } | |
698dcdb6 | 14712 | EOF |
24fd6d87 | 14713 | if { (eval echo configure:14714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14714 | rm -rf conftest* |
463abc64 | 14715 | ac_cv_header_jpeglib_h=yes |
6232543b | 14716 | else |
698dcdb6 | 14717 | echo "configure: failed program was:" >&5 |
422107f9 | 14718 | cat conftest.$ac_ext >&5 |
698dcdb6 | 14719 | rm -rf conftest* |
463abc64 VZ |
14720 | ac_cv_header_jpeglib_h=no |
14721 | ||
422107f9 | 14722 | fi |
698dcdb6 | 14723 | rm -f conftest* |
463abc64 | 14724 | |
422107f9 | 14725 | fi |
463abc64 VZ |
14726 | |
14727 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
14728 | ||
14729 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
14730 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
24fd6d87 | 14731 | echo "configure:14732: checking for jpeg_read_header in -ljpeg" >&5 |
698dcdb6 VZ |
14732 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
14733 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14734 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 14735 | else |
698dcdb6 | 14736 | ac_save_LIBS="$LIBS" |
422107f9 | 14737 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 14738 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 14739 | #line 14740 "configure" |
422107f9 VZ |
14740 | #include "confdefs.h" |
14741 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14742 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14743 | builtin and then its argument prototype would still apply. */ |
14744 | char jpeg_read_header(); | |
14745 | ||
14746 | int main() { | |
14747 | jpeg_read_header() | |
14748 | ; return 0; } | |
14749 | EOF | |
24fd6d87 | 14750 | if { (eval echo configure:14751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14751 | rm -rf conftest* |
14752 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14753 | else | |
14754 | echo "configure: failed program was:" >&5 | |
14755 | cat conftest.$ac_ext >&5 | |
14756 | rm -rf conftest* | |
14757 | eval "ac_cv_lib_$ac_lib_var=no" | |
14758 | fi | |
14759 | rm -f conftest* | |
14760 | LIBS="$ac_save_LIBS" | |
14761 | ||
14762 | fi | |
14763 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14764 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 14765 | JPEG_LINK="-ljpeg" |
698dcdb6 VZ |
14766 | else |
14767 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
14768 | fi |
14769 | ||
463abc64 | 14770 | fi |
422107f9 VZ |
14771 | |
14772 | if test "x$JPEG_LINK" = "x" ; then | |
698dcdb6 | 14773 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
14774 | fi |
14775 | fi | |
10f2d63a VZ |
14776 | fi |
14777 | ||
c7a2bf27 | 14778 | TIFF_INCLUDE= |
0dcf9893 | 14779 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
698dcdb6 | 14780 | cat >> confdefs.h <<\EOF |
c7a2bf27 RR |
14781 | #define wxUSE_LIBTIFF 1 |
14782 | EOF | |
14783 | ||
665bbe97 | 14784 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
14785 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
14786 | else | |
14787 | TIFF_LINK= | |
698dcdb6 VZ |
14788 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
14789 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
24fd6d87 | 14790 | echo "configure:14791: checking for tiffio.h" >&5 |
698dcdb6 VZ |
14791 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14792 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14793 | else | |
14794 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 14795 | #line 14796 "configure" |
0dcf9893 VZ |
14796 | #include "confdefs.h" |
14797 | #include <tiffio.h> | |
698dcdb6 VZ |
14798 | EOF |
14799 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 14800 | { (eval echo configure:14801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14801 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14802 | if test -z "$ac_err"; then | |
14803 | rm -rf conftest* | |
14804 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 14805 | else |
698dcdb6 VZ |
14806 | echo "$ac_err" >&5 |
14807 | echo "configure: failed program was:" >&5 | |
0dcf9893 | 14808 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14809 | rm -rf conftest* |
14810 | eval "ac_cv_header_$ac_safe=no" | |
0dcf9893 | 14811 | fi |
698dcdb6 | 14812 | rm -f conftest* |
0dcf9893 | 14813 | fi |
698dcdb6 VZ |
14814 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14815 | echo "$ac_t""yes" 1>&6 | |
14816 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
24fd6d87 | 14817 | echo "configure:14818: checking for TIFFError in -ltiff" >&5 |
698dcdb6 VZ |
14818 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
14819 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0dcf9893 | 14821 | else |
698dcdb6 | 14822 | ac_save_LIBS="$LIBS" |
0dcf9893 | 14823 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 14824 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 14825 | #line 14826 "configure" |
0dcf9893 VZ |
14826 | #include "confdefs.h" |
14827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14828 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14829 | builtin and then its argument prototype would still apply. */ |
14830 | char TIFFError(); | |
14831 | ||
14832 | int main() { | |
14833 | TIFFError() | |
14834 | ; return 0; } | |
14835 | EOF | |
24fd6d87 | 14836 | if { (eval echo configure:14837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14837 | rm -rf conftest* |
14838 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14839 | else | |
14840 | echo "configure: failed program was:" >&5 | |
14841 | cat conftest.$ac_ext >&5 | |
14842 | rm -rf conftest* | |
14843 | eval "ac_cv_lib_$ac_lib_var=no" | |
14844 | fi | |
14845 | rm -f conftest* | |
14846 | LIBS="$ac_save_LIBS" | |
14847 | ||
14848 | fi | |
14849 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14850 | echo "$ac_t""yes" 1>&6 | |
0dcf9893 | 14851 | TIFF_LINK="-ltiff" |
698dcdb6 VZ |
14852 | else |
14853 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
14854 | fi |
14855 | ||
698dcdb6 VZ |
14856 | else |
14857 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
14858 | fi |
14859 | ||
14860 | if test "x$TIFF_LINK" = "x" ; then | |
698dcdb6 | 14861 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } |
0dcf9893 VZ |
14862 | fi |
14863 | fi | |
c7a2bf27 RR |
14864 | fi |
14865 | ||
3fed1840 RR |
14866 | FREETYPE_INCLUDE= |
14867 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
698dcdb6 | 14868 | cat >> confdefs.h <<\EOF |
3fed1840 RR |
14869 | #define wxUSE_FREETYPE 1 |
14870 | EOF | |
14871 | ||
14872 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
14873 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
14874 | else | |
14875 | FREETYPE_LINK= | |
698dcdb6 VZ |
14876 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` |
14877 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
24fd6d87 | 14878 | echo "configure:14879: checking for freetype.h" >&5 |
698dcdb6 VZ |
14879 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14880 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14881 | else | |
14882 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 14883 | #line 14884 "configure" |
3fed1840 RR |
14884 | #include "confdefs.h" |
14885 | #include <freetype.h> | |
698dcdb6 VZ |
14886 | EOF |
14887 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 14888 | { (eval echo configure:14889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14889 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14890 | if test -z "$ac_err"; then | |
14891 | rm -rf conftest* | |
14892 | eval "ac_cv_header_$ac_safe=yes" | |
3fed1840 | 14893 | else |
698dcdb6 VZ |
14894 | echo "$ac_err" >&5 |
14895 | echo "configure: failed program was:" >&5 | |
3fed1840 | 14896 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14897 | rm -rf conftest* |
14898 | eval "ac_cv_header_$ac_safe=no" | |
3fed1840 | 14899 | fi |
698dcdb6 | 14900 | rm -f conftest* |
3fed1840 | 14901 | fi |
698dcdb6 VZ |
14902 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14903 | echo "$ac_t""yes" 1>&6 | |
14904 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
24fd6d87 | 14905 | echo "configure:14906: checking for FT_Render_Glyph in -lfreetype" >&5 |
698dcdb6 VZ |
14906 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
14907 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14908 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3fed1840 | 14909 | else |
698dcdb6 | 14910 | ac_save_LIBS="$LIBS" |
3fed1840 | 14911 | LIBS="-lfreetype -lm $LIBS" |
698dcdb6 | 14912 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 14913 | #line 14914 "configure" |
3fed1840 RR |
14914 | #include "confdefs.h" |
14915 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14916 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14917 | builtin and then its argument prototype would still apply. */ |
14918 | char FT_Render_Glyph(); | |
14919 | ||
14920 | int main() { | |
14921 | FT_Render_Glyph() | |
14922 | ; return 0; } | |
14923 | EOF | |
24fd6d87 | 14924 | if { (eval echo configure:14925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14925 | rm -rf conftest* |
14926 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14927 | else | |
14928 | echo "configure: failed program was:" >&5 | |
14929 | cat conftest.$ac_ext >&5 | |
14930 | rm -rf conftest* | |
14931 | eval "ac_cv_lib_$ac_lib_var=no" | |
14932 | fi | |
14933 | rm -f conftest* | |
14934 | LIBS="$ac_save_LIBS" | |
14935 | ||
14936 | fi | |
14937 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14938 | echo "$ac_t""yes" 1>&6 | |
3fed1840 | 14939 | FREETYPE_LINK="-lfreetype" |
698dcdb6 VZ |
14940 | else |
14941 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
14942 | fi |
14943 | ||
698dcdb6 VZ |
14944 | |
14945 | else | |
14946 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
14947 | fi |
14948 | ||
14949 | if test "x$FREETYPE_LINK" = "x" ; then | |
698dcdb6 | 14950 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } |
3fed1840 RR |
14951 | fi |
14952 | fi | |
14953 | fi | |
14954 | ||
10f2d63a | 14955 | if test "$wxUSE_OPENGL" = "yes"; then |
698dcdb6 VZ |
14956 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
14957 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
24fd6d87 | 14958 | echo "configure:14959: checking for GL/gl.h" >&5 |
698dcdb6 VZ |
14959 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14960 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14961 | else | |
14962 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 14963 | #line 14964 "configure" |
10f2d63a VZ |
14964 | #include "confdefs.h" |
14965 | #include <GL/gl.h> | |
698dcdb6 VZ |
14966 | EOF |
14967 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 14968 | { (eval echo configure:14969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14969 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14970 | if test -z "$ac_err"; then | |
14971 | rm -rf conftest* | |
14972 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 14973 | else |
698dcdb6 VZ |
14974 | echo "$ac_err" >&5 |
14975 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14976 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14977 | rm -rf conftest* |
14978 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14979 | fi |
698dcdb6 | 14980 | rm -f conftest* |
10f2d63a | 14981 | fi |
698dcdb6 VZ |
14982 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14983 | echo "$ac_t""yes" 1>&6 | |
14984 | ||
14985 | cat >> confdefs.h <<\EOF | |
bdad4e7e RR |
14986 | #define wxUSE_OPENGL 1 |
14987 | EOF | |
14988 | ||
698dcdb6 | 14989 | cat >> confdefs.h <<\EOF |
bdad4e7e RR |
14990 | #define wxUSE_GLCANVAS 1 |
14991 | EOF | |
14992 | ||
698dcdb6 | 14993 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 |
24fd6d87 | 14994 | echo "configure:14995: checking for glFlush in -lGL" >&5 |
698dcdb6 VZ |
14995 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
14996 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14997 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14998 | else |
698dcdb6 | 14999 | ac_save_LIBS="$LIBS" |
bdad4e7e | 15000 | LIBS="-lGL $LIBS" |
698dcdb6 | 15001 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 15002 | #line 15003 "configure" |
10f2d63a VZ |
15003 | #include "confdefs.h" |
15004 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15005 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15006 | builtin and then its argument prototype would still apply. */ |
15007 | char glFlush(); | |
6232543b | 15008 | |
698dcdb6 VZ |
15009 | int main() { |
15010 | glFlush() | |
15011 | ; return 0; } | |
15012 | EOF | |
24fd6d87 | 15013 | if { (eval echo configure:15014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15014 | rm -rf conftest* |
15015 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15016 | else | |
15017 | echo "configure: failed program was:" >&5 | |
15018 | cat conftest.$ac_ext >&5 | |
15019 | rm -rf conftest* | |
15020 | eval "ac_cv_lib_$ac_lib_var=no" | |
15021 | fi | |
15022 | rm -f conftest* | |
15023 | LIBS="$ac_save_LIBS" | |
1e487827 | 15024 | |
698dcdb6 VZ |
15025 | fi |
15026 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15027 | echo "$ac_t""yes" 1>&6 | |
15028 | ||
15029 | OPENGL_LINK="-lGL -lGLU" | |
15030 | ||
10f2d63a | 15031 | else |
698dcdb6 | 15032 | echo "$ac_t""no" 1>&6 |
10f2d63a | 15033 | |
698dcdb6 | 15034 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
24fd6d87 | 15035 | echo "configure:15036: checking for glFlush in -lMesaGL" >&5 |
698dcdb6 VZ |
15036 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
15037 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15038 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15039 | else |
698dcdb6 | 15040 | ac_save_LIBS="$LIBS" |
10f2d63a | 15041 | LIBS="-lMesaGL $LIBS" |
698dcdb6 | 15042 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 15043 | #line 15044 "configure" |
10f2d63a VZ |
15044 | #include "confdefs.h" |
15045 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15046 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15047 | builtin and then its argument prototype would still apply. */ |
15048 | char glFlush(); | |
15049 | ||
15050 | int main() { | |
15051 | glFlush() | |
15052 | ; return 0; } | |
15053 | EOF | |
24fd6d87 | 15054 | if { (eval echo configure:15055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15055 | rm -rf conftest* |
15056 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15057 | else | |
15058 | echo "configure: failed program was:" >&5 | |
15059 | cat conftest.$ac_ext >&5 | |
15060 | rm -rf conftest* | |
15061 | eval "ac_cv_lib_$ac_lib_var=no" | |
15062 | fi | |
15063 | rm -f conftest* | |
15064 | LIBS="$ac_save_LIBS" | |
10f2d63a | 15065 | |
698dcdb6 VZ |
15066 | fi |
15067 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15068 | echo "$ac_t""yes" 1>&6 | |
15069 | ||
f6bcfd97 | 15070 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
698dcdb6 VZ |
15071 | |
15072 | else | |
15073 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15074 | fi |
15075 | ||
698dcdb6 | 15076 | |
10f2d63a VZ |
15077 | fi |
15078 | ||
698dcdb6 | 15079 | |
10f2d63a | 15080 | else |
698dcdb6 VZ |
15081 | echo "$ac_t""no" 1>&6 |
15082 | wxUSE_OPENGL=0 | |
10f2d63a VZ |
15083 | fi |
15084 | ||
15085 | fi | |
15086 | ||
698dcdb6 | 15087 | |
10f2d63a | 15088 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 15089 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15090 | #define wxUSE_GUI 1 |
15091 | EOF | |
15092 | ||
698dcdb6 | 15093 | |
10f2d63a | 15094 | else |
698dcdb6 | 15095 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15096 | #define wxUSE_NOGUI 1 |
15097 | EOF | |
15098 | ||
15099 | fi | |
15100 | ||
698dcdb6 | 15101 | |
10f2d63a | 15102 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 15103 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15104 | #define wxUSE_UNIX 1 |
15105 | EOF | |
15106 | ||
15107 | fi | |
15108 | ||
698dcdb6 | 15109 | |
10f2d63a | 15110 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 15111 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15112 | #define wxUSE_APPLE_IEEE 1 |
15113 | EOF | |
15114 | ||
15115 | fi | |
15116 | ||
1e6feb95 VZ |
15117 | if test "$wxUSE_TIMER" = "yes"; then |
15118 | cat >> confdefs.h <<\EOF | |
15119 | #define wxUSE_TIMER 1 | |
15120 | EOF | |
15121 | ||
15122 | fi | |
15123 | ||
10f2d63a | 15124 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 15125 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15126 | #define wxUSE_WAVE 1 |
15127 | EOF | |
15128 | ||
15129 | fi | |
15130 | ||
1e6feb95 VZ |
15131 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
15132 | cat >> confdefs.h <<\EOF | |
15133 | #define wxUSE_CMDLINE_PARSER 1 | |
15134 | EOF | |
15135 | ||
15136 | fi | |
15137 | ||
15138 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
15139 | cat >> confdefs.h <<\EOF | |
15140 | #define wxUSE_STOPWATCH 1 | |
15141 | EOF | |
15142 | ||
15143 | fi | |
15144 | ||
15145 | if test "$wxUSE_DATETIME" = "yes"; then | |
15146 | cat >> confdefs.h <<\EOF | |
15147 | #define wxUSE_DATETIME 1 | |
15148 | EOF | |
15149 | ||
15150 | fi | |
15151 | ||
15152 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
15153 | cat >> confdefs.h <<\EOF | |
15154 | #define wxUSE_TIMEDATE 1 | |
15155 | EOF | |
15156 | ||
15157 | fi | |
15158 | ||
10f2d63a | 15159 | if test "$wxUSE_FILE" = "yes"; then |
698dcdb6 | 15160 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15161 | #define wxUSE_FILE 1 |
15162 | EOF | |
15163 | ||
15164 | fi | |
15165 | ||
1e6feb95 VZ |
15166 | if test "$wxUSE_FFILE" = "yes"; then |
15167 | cat >> confdefs.h <<\EOF | |
15168 | #define wxUSE_FFILE 1 | |
15169 | EOF | |
15170 | ||
15171 | fi | |
15172 | ||
24528b0c | 15173 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 15174 | cat >> confdefs.h <<\EOF |
24528b0c VS |
15175 | #define wxUSE_FILESYSTEM 1 |
15176 | EOF | |
15177 | ||
15178 | fi | |
15179 | ||
10f2d63a | 15180 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 15181 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15182 | #define wxUSE_FS_INET 1 |
15183 | EOF | |
15184 | ||
15185 | fi | |
15186 | ||
15187 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 15188 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15189 | #define wxUSE_FS_ZIP 1 |
15190 | EOF | |
15191 | ||
15192 | fi | |
15193 | ||
15194 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 15195 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15196 | #define wxUSE_ZIPSTREAM 1 |
15197 | EOF | |
15198 | ||
15199 | fi | |
15200 | ||
eb4efbdc | 15201 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 15202 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
15203 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
15204 | EOF | |
15205 | ||
15206 | fi | |
15207 | ||
4f3c5f06 | 15208 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 15209 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
15210 | #define wxUSE_SNGLINST_CHECKER 1 |
15211 | EOF | |
15212 | ||
15213 | fi | |
15214 | ||
10f2d63a | 15215 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 15216 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15217 | #define wxUSE_BUSYINFO 1 |
15218 | EOF | |
15219 | ||
15220 | fi | |
15221 | ||
15222 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 15223 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15224 | #define wxUSE_STD_IOSTREAM 1 |
15225 | EOF | |
15226 | ||
15227 | fi | |
15228 | ||
15229 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
15230 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15231 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15232 | else |
698dcdb6 | 15233 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15234 | #define wxUSE_TEXTFILE 1 |
15235 | EOF | |
15236 | ||
15237 | fi | |
15238 | fi | |
15239 | ||
15240 | if test "$wxUSE_CONFIG" = "yes" ; then | |
15241 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 15242 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15243 | else |
698dcdb6 | 15244 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15245 | #define wxUSE_CONFIG 1 |
15246 | EOF | |
15247 | ||
15248 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
15249 | fi | |
15250 | fi | |
15251 | ||
15252 | if test "$wxUSE_INTL" = "yes" ; then | |
15253 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 15254 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 15255 | else |
698dcdb6 | 15256 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15257 | #define wxUSE_INTL 1 |
15258 | EOF | |
15259 | ||
15260 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 15261 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
15262 | fi |
15263 | fi | |
15264 | ||
15265 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 15266 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15267 | #define wxUSE_LOG 1 |
15268 | EOF | |
15269 | ||
d73be714 VZ |
15270 | |
15271 | if test "$wxUSE_LOGGUI" = "yes"; then | |
15272 | cat >> confdefs.h <<\EOF | |
15273 | #define wxUSE_LOGGUI 1 | |
15274 | EOF | |
15275 | ||
15276 | fi | |
15277 | ||
15278 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
15279 | cat >> confdefs.h <<\EOF | |
15280 | #define wxUSE_LOGWINDOW 1 | |
15281 | EOF | |
15282 | ||
15283 | fi | |
10f2d63a VZ |
15284 | fi |
15285 | ||
15286 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 15287 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15288 | #define wxUSE_LONGLONG 1 |
15289 | EOF | |
15290 | ||
15291 | fi | |
15292 | ||
e8f65ba6 | 15293 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 15294 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
15295 | #define wxUSE_GEOMETRY 1 |
15296 | EOF | |
15297 | ||
15298 | fi | |
15299 | ||
10f2d63a | 15300 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 15301 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15302 | #define wxUSE_DIALUP_MANAGER 1 |
15303 | EOF | |
15304 | ||
70f7a477 | 15305 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
15306 | fi |
15307 | ||
15308 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 15309 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15310 | #define wxUSE_STREAMS 1 |
15311 | EOF | |
15312 | ||
15313 | fi | |
15314 | ||
1e487827 | 15315 | |
1e6feb95 | 15316 | if test "$wxUSE_DATETIME" = "yes"; then |
698dcdb6 | 15317 | for ac_func in strptime |
83307f33 | 15318 | do |
698dcdb6 | 15319 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 15320 | echo "configure:15321: checking for $ac_func" >&5 |
698dcdb6 VZ |
15321 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15323 | else | |
15324 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 15325 | #line 15326 "configure" |
83307f33 VZ |
15326 | #include "confdefs.h" |
15327 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15328 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
15329 | #include <assert.h> |
15330 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15331 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15332 | builtin and then its argument prototype would still apply. */ |
15333 | char $ac_func(); | |
15334 | ||
15335 | int main() { | |
83307f33 VZ |
15336 | |
15337 | /* The GNU C library defines this for functions which it implements | |
15338 | to always fail with ENOSYS. Some functions are actually named | |
15339 | something starting with __ and the normal name is an alias. */ | |
15340 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15341 | choke me | |
15342 | #else | |
698dcdb6 | 15343 | $ac_func(); |
83307f33 VZ |
15344 | #endif |
15345 | ||
698dcdb6 | 15346 | ; return 0; } |
83307f33 | 15347 | EOF |
24fd6d87 | 15348 | if { (eval echo configure:15349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15349 | rm -rf conftest* |
15350 | eval "ac_cv_func_$ac_func=yes" | |
15351 | else | |
15352 | echo "configure: failed program was:" >&5 | |
15353 | cat conftest.$ac_ext >&5 | |
15354 | rm -rf conftest* | |
15355 | eval "ac_cv_func_$ac_func=no" | |
15356 | fi | |
15357 | rm -f conftest* | |
15358 | fi | |
83307f33 | 15359 | |
698dcdb6 VZ |
15360 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15361 | echo "$ac_t""yes" 1>&6 | |
15362 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15363 | cat >> confdefs.h <<EOF | |
15364 | #define $ac_tr_func 1 | |
15365 | EOF | |
15366 | ||
15367 | else | |
15368 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
15369 | fi |
15370 | done | |
15371 | ||
1e487827 | 15372 | |
698dcdb6 | 15373 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
24fd6d87 | 15374 | echo "configure:15375: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
15375 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
15376 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15377 | else | |
15378 | ||
15379 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 15380 | #line 15381 "configure" |
360d6699 VZ |
15381 | #include "confdefs.h" |
15382 | ||
b4085ce6 | 15383 | #include <time.h> |
698dcdb6 VZ |
15384 | |
15385 | int main() { | |
360d6699 VZ |
15386 | |
15387 | int tz; | |
15388 | tz = __timezone; | |
698dcdb6 VZ |
15389 | |
15390 | ; return 0; } | |
15391 | EOF | |
24fd6d87 | 15392 | if { (eval echo configure:15393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15393 | rm -rf conftest* |
15394 | ||
360d6699 | 15395 | wx_cv_var_timezone=__timezone |
698dcdb6 | 15396 | |
360d6699 | 15397 | else |
698dcdb6 VZ |
15398 | echo "configure: failed program was:" >&5 |
15399 | cat conftest.$ac_ext >&5 | |
15400 | rm -rf conftest* | |
15401 | ||
15402 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 15403 | #line 15404 "configure" |
360d6699 VZ |
15404 | #include "confdefs.h" |
15405 | ||
b4085ce6 | 15406 | #include <time.h> |
698dcdb6 VZ |
15407 | |
15408 | int main() { | |
360d6699 VZ |
15409 | |
15410 | int tz; | |
15411 | tz = _timezone; | |
698dcdb6 VZ |
15412 | |
15413 | ; return 0; } | |
15414 | EOF | |
24fd6d87 | 15415 | if { (eval echo configure:15416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15416 | rm -rf conftest* |
15417 | ||
360d6699 | 15418 | wx_cv_var_timezone=_timezone |
698dcdb6 | 15419 | |
5357c8e8 | 15420 | else |
698dcdb6 VZ |
15421 | echo "configure: failed program was:" >&5 |
15422 | cat conftest.$ac_ext >&5 | |
15423 | rm -rf conftest* | |
15424 | ||
15425 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 15426 | #line 15427 "configure" |
5357c8e8 VZ |
15427 | #include "confdefs.h" |
15428 | ||
b4085ce6 | 15429 | #include <time.h> |
698dcdb6 VZ |
15430 | |
15431 | int main() { | |
5357c8e8 VZ |
15432 | |
15433 | int tz; | |
15434 | tz = timezone; | |
698dcdb6 VZ |
15435 | |
15436 | ; return 0; } | |
15437 | EOF | |
24fd6d87 | 15438 | if { (eval echo configure:15439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15439 | rm -rf conftest* |
15440 | ||
5357c8e8 | 15441 | wx_cv_var_timezone=timezone |
698dcdb6 | 15442 | |
360d6699 | 15443 | else |
698dcdb6 VZ |
15444 | echo "configure: failed program was:" >&5 |
15445 | cat conftest.$ac_ext >&5 | |
15446 | rm -rf conftest* | |
15447 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
15448 | ||
360d6699 | 15449 | fi |
698dcdb6 VZ |
15450 | rm -f conftest* |
15451 | ||
15452 | ||
360d6699 | 15453 | fi |
698dcdb6 VZ |
15454 | rm -f conftest* |
15455 | ||
15456 | ||
6232543b | 15457 | fi |
698dcdb6 VZ |
15458 | rm -f conftest* |
15459 | ||
15460 | ||
1e487827 | 15461 | fi |
703e0a69 | 15462 | |
698dcdb6 VZ |
15463 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
15464 | ||
15465 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
15466 | #define WX_TIMEZONE $wx_cv_var_timezone |
15467 | EOF | |
15468 | ||
698dcdb6 VZ |
15469 | |
15470 | for ac_func in localtime | |
afc31813 | 15471 | do |
698dcdb6 | 15472 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 15473 | echo "configure:15474: checking for $ac_func" >&5 |
698dcdb6 VZ |
15474 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15476 | else | |
15477 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 15478 | #line 15479 "configure" |
10f2d63a | 15479 | #include "confdefs.h" |
afc31813 | 15480 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 15481 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
15482 | #include <assert.h> |
15483 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15484 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15485 | builtin and then its argument prototype would still apply. */ |
15486 | char $ac_func(); | |
15487 | ||
15488 | int main() { | |
afc31813 VZ |
15489 | |
15490 | /* The GNU C library defines this for functions which it implements | |
15491 | to always fail with ENOSYS. Some functions are actually named | |
15492 | something starting with __ and the normal name is an alias. */ | |
15493 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15494 | choke me | |
15495 | #else | |
698dcdb6 | 15496 | $ac_func(); |
afc31813 VZ |
15497 | #endif |
15498 | ||
698dcdb6 | 15499 | ; return 0; } |
10f2d63a | 15500 | EOF |
24fd6d87 | 15501 | if { (eval echo configure:15502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15502 | rm -rf conftest* |
15503 | eval "ac_cv_func_$ac_func=yes" | |
15504 | else | |
15505 | echo "configure: failed program was:" >&5 | |
15506 | cat conftest.$ac_ext >&5 | |
15507 | rm -rf conftest* | |
15508 | eval "ac_cv_func_$ac_func=no" | |
15509 | fi | |
15510 | rm -f conftest* | |
15511 | fi | |
afc31813 | 15512 | |
698dcdb6 VZ |
15513 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15514 | echo "$ac_t""yes" 1>&6 | |
15515 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15516 | cat >> confdefs.h <<EOF | |
15517 | #define $ac_tr_func 1 | |
15518 | EOF | |
15519 | ||
15520 | else | |
15521 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
15522 | fi |
15523 | done | |
15524 | ||
1e487827 | 15525 | |
698dcdb6 VZ |
15526 | if test "$ac_cv_func_localtime" = "yes"; then |
15527 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
24fd6d87 | 15528 | echo "configure:15529: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
15529 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
15530 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15531 | else | |
15532 | ||
15533 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 15534 | #line 15535 "configure" |
0470b1e6 VZ |
15535 | #include "confdefs.h" |
15536 | ||
b4085ce6 | 15537 | #include <time.h> |
698dcdb6 VZ |
15538 | |
15539 | int main() { | |
0470b1e6 VZ |
15540 | |
15541 | struct tm tm; | |
15542 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
15543 | |
15544 | ; return 0; } | |
15545 | EOF | |
24fd6d87 | 15546 | if { (eval echo configure:15547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
15547 | rm -rf conftest* |
15548 | ||
f03a98d8 | 15549 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 15550 | |
0470b1e6 | 15551 | else |
698dcdb6 VZ |
15552 | echo "configure: failed program was:" >&5 |
15553 | cat conftest.$ac_ext >&5 | |
15554 | rm -rf conftest* | |
15555 | wx_cv_struct_tm_has_gmtoff=no | |
15556 | ||
0470b1e6 | 15557 | fi |
698dcdb6 VZ |
15558 | rm -f conftest* |
15559 | ||
1e487827 | 15560 | fi |
698dcdb6 VZ |
15561 | |
15562 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
15563 | fi |
15564 | ||
15565 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 15566 | cat >> confdefs.h <<\EOF |
6232543b VS |
15567 | #define WX_GMTOFF_IN_TM 1 |
15568 | EOF | |
0470b1e6 | 15569 | |
3fcdd07b VZ |
15570 | fi |
15571 | ||
698dcdb6 | 15572 | for ac_func in gettimeofday ftime |
3fcdd07b | 15573 | do |
698dcdb6 | 15574 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 15575 | echo "configure:15576: checking for $ac_func" >&5 |
698dcdb6 VZ |
15576 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15577 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15578 | else | |
15579 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 15580 | #line 15581 "configure" |
3fcdd07b VZ |
15581 | #include "confdefs.h" |
15582 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15583 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
15584 | #include <assert.h> |
15585 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15586 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15587 | builtin and then its argument prototype would still apply. */ |
15588 | char $ac_func(); | |
15589 | ||
15590 | int main() { | |
3fcdd07b VZ |
15591 | |
15592 | /* The GNU C library defines this for functions which it implements | |
15593 | to always fail with ENOSYS. Some functions are actually named | |
15594 | something starting with __ and the normal name is an alias. */ | |
15595 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15596 | choke me | |
15597 | #else | |
698dcdb6 | 15598 | $ac_func(); |
3fcdd07b VZ |
15599 | #endif |
15600 | ||
698dcdb6 VZ |
15601 | ; return 0; } |
15602 | EOF | |
24fd6d87 | 15603 | if { (eval echo configure:15604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15604 | rm -rf conftest* |
15605 | eval "ac_cv_func_$ac_func=yes" | |
15606 | else | |
15607 | echo "configure: failed program was:" >&5 | |
15608 | cat conftest.$ac_ext >&5 | |
15609 | rm -rf conftest* | |
15610 | eval "ac_cv_func_$ac_func=no" | |
15611 | fi | |
15612 | rm -f conftest* | |
15613 | fi | |
15614 | ||
15615 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15616 | echo "$ac_t""yes" 1>&6 | |
15617 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15618 | cat >> confdefs.h <<EOF | |
15619 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
15620 | EOF |
15621 | break | |
698dcdb6 VZ |
15622 | else |
15623 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
15624 | fi |
15625 | done | |
15626 | ||
afc31813 | 15627 | |
698dcdb6 VZ |
15628 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
15629 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
24fd6d87 | 15630 | echo "configure:15631: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
15631 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
15632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15633 | else | |
15634 | ||
15635 | ||
15636 | ac_ext=C | |
15637 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 15638 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
15639 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15640 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15641 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 15642 | |
698dcdb6 VZ |
15643 | |
15644 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 15645 | #line 15646 "configure" |
10f2d63a | 15646 | #include "confdefs.h" |
afc31813 VZ |
15647 | |
15648 | #include <sys/time.h> | |
15649 | #include <unistd.h> | |
698dcdb6 VZ |
15650 | |
15651 | int main() { | |
afc31813 VZ |
15652 | |
15653 | struct timeval tv; | |
15654 | struct timezone tz; | |
15655 | gettimeofday(&tv, &tz); | |
698dcdb6 VZ |
15656 | |
15657 | ; return 0; } | |
15658 | EOF | |
24fd6d87 | 15659 | if { (eval echo configure:15660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15660 | rm -rf conftest* |
afc31813 | 15661 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 15662 | else |
698dcdb6 VZ |
15663 | echo "configure: failed program was:" >&5 |
15664 | cat conftest.$ac_ext >&5 | |
15665 | rm -rf conftest* | |
15666 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 15667 | #line 15668 "configure" |
10f2d63a | 15668 | #include "confdefs.h" |
afc31813 VZ |
15669 | |
15670 | #include <sys/time.h> | |
15671 | #include <unistd.h> | |
698dcdb6 VZ |
15672 | |
15673 | int main() { | |
afc31813 VZ |
15674 | |
15675 | struct timeval tv; | |
15676 | gettimeofday(&tv); | |
698dcdb6 VZ |
15677 | |
15678 | ; return 0; } | |
15679 | EOF | |
24fd6d87 | 15680 | if { (eval echo configure:15681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15681 | rm -rf conftest* |
afc31813 | 15682 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 15683 | else |
698dcdb6 VZ |
15684 | echo "configure: failed program was:" >&5 |
15685 | cat conftest.$ac_ext >&5 | |
15686 | rm -rf conftest* | |
15687 | wx_cv_func_gettimeofday_has_2_args=unknown | |
15688 | ||
10f2d63a | 15689 | fi |
698dcdb6 VZ |
15690 | rm -f conftest* |
15691 | ||
10f2d63a | 15692 | fi |
698dcdb6 | 15693 | rm -f conftest* |
afc31813 | 15694 | ac_ext=c |
698dcdb6 | 15695 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 15696 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
15697 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15698 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15699 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 15700 | |
698dcdb6 | 15701 | |
afc31813 | 15702 | fi |
698dcdb6 VZ |
15703 | |
15704 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 15705 | |
afc31813 | 15706 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 15707 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15708 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
15709 | EOF | |
15710 | ||
15711 | fi | |
15712 | fi | |
15713 | ||
698dcdb6 | 15714 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15715 | #define wxUSE_TIMEDATE 1 |
15716 | EOF | |
15717 | ||
15718 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
15719 | fi | |
15720 | ||
698dcdb6 | 15721 | |
b089607b VZ |
15722 | if test "$TOOLKIT" != "MSW"; then |
15723 | ||
afc31813 | 15724 | if test "$wxUSE_SOCKETS" = "yes"; then |
698dcdb6 | 15725 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
24fd6d87 | 15726 | echo "configure:15727: checking for socket" >&5 |
698dcdb6 VZ |
15727 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
15728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 15729 | else |
698dcdb6 | 15730 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 15731 | #line 15732 "configure" |
c63c7106 VZ |
15732 | #include "confdefs.h" |
15733 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15734 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
15735 | #include <assert.h> |
15736 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15737 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15738 | builtin and then its argument prototype would still apply. */ |
15739 | char socket(); | |
15740 | ||
15741 | int main() { | |
c63c7106 VZ |
15742 | |
15743 | /* The GNU C library defines this for functions which it implements | |
15744 | to always fail with ENOSYS. Some functions are actually named | |
15745 | something starting with __ and the normal name is an alias. */ | |
15746 | #if defined (__stub_socket) || defined (__stub___socket) | |
15747 | choke me | |
15748 | #else | |
698dcdb6 | 15749 | socket(); |
c63c7106 VZ |
15750 | #endif |
15751 | ||
698dcdb6 VZ |
15752 | ; return 0; } |
15753 | EOF | |
24fd6d87 | 15754 | if { (eval echo configure:15755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15755 | rm -rf conftest* |
15756 | eval "ac_cv_func_socket=yes" | |
15757 | else | |
15758 | echo "configure: failed program was:" >&5 | |
15759 | cat conftest.$ac_ext >&5 | |
15760 | rm -rf conftest* | |
15761 | eval "ac_cv_func_socket=no" | |
15762 | fi | |
15763 | rm -f conftest* | |
15764 | fi | |
15765 | ||
15766 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
15767 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
15768 | : |
15769 | else | |
698dcdb6 VZ |
15770 | echo "$ac_t""no" 1>&6 |
15771 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
24fd6d87 | 15772 | echo "configure:15773: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
15773 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
15774 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 15776 | else |
698dcdb6 | 15777 | ac_save_LIBS="$LIBS" |
c63c7106 | 15778 | LIBS="-lsocket $LIBS" |
698dcdb6 | 15779 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 15780 | #line 15781 "configure" |
c63c7106 VZ |
15781 | #include "confdefs.h" |
15782 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15783 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15784 | builtin and then its argument prototype would still apply. */ |
15785 | char socket(); | |
15786 | ||
15787 | int main() { | |
15788 | socket() | |
15789 | ; return 0; } | |
15790 | EOF | |
24fd6d87 | 15791 | if { (eval echo configure:15792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15792 | rm -rf conftest* |
15793 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15794 | else | |
15795 | echo "configure: failed program was:" >&5 | |
15796 | cat conftest.$ac_ext >&5 | |
15797 | rm -rf conftest* | |
15798 | eval "ac_cv_lib_$ac_lib_var=no" | |
15799 | fi | |
15800 | rm -f conftest* | |
15801 | LIBS="$ac_save_LIBS" | |
15802 | ||
15803 | fi | |
15804 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15805 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 15806 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 15807 | else |
698dcdb6 | 15808 | echo "$ac_t""no" 1>&6 |
afc31813 | 15809 | |
698dcdb6 | 15810 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
afc31813 | 15811 | wxUSE_SOCKETS=no |
698dcdb6 VZ |
15812 | |
15813 | ||
10f2d63a VZ |
15814 | fi |
15815 | ||
698dcdb6 | 15816 | |
6232543b | 15817 | fi |
b089607b | 15818 | |
1e487827 | 15819 | fi |
afc31813 | 15820 | |
51a9faba | 15821 | |
698dcdb6 VZ |
15822 | if test "$wxUSE_SOCKETS" = "yes" ; then |
15823 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
24fd6d87 | 15824 | echo "configure:15825: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
15825 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
15826 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15827 | else | |
15828 | ||
15829 | ||
15830 | ac_ext=C | |
15831 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 15832 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
15833 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15834 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15835 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 15836 | |
698dcdb6 VZ |
15837 | |
15838 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 15839 | #line 15840 "configure" |
afc31813 | 15840 | #include "confdefs.h" |
51a9faba | 15841 | |
3ace2e6d | 15842 | #include <sys/types.h> |
51a9faba | 15843 | #include <sys/socket.h> |
698dcdb6 VZ |
15844 | |
15845 | int main() { | |
51a9faba VZ |
15846 | |
15847 | socklen_t len; | |
15848 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15849 | |
15850 | ; return 0; } | |
15851 | EOF | |
24fd6d87 | 15852 | if { (eval echo configure:15853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15853 | rm -rf conftest* |
51a9faba | 15854 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 15855 | else |
698dcdb6 VZ |
15856 | echo "configure: failed program was:" >&5 |
15857 | cat conftest.$ac_ext >&5 | |
15858 | rm -rf conftest* | |
15859 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 15860 | #line 15861 "configure" |
afc31813 | 15861 | #include "confdefs.h" |
51a9faba | 15862 | |
3ace2e6d | 15863 | #include <sys/types.h> |
51a9faba | 15864 | #include <sys/socket.h> |
698dcdb6 VZ |
15865 | |
15866 | int main() { | |
51a9faba VZ |
15867 | |
15868 | size_t len; | |
15869 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15870 | |
15871 | ; return 0; } | |
15872 | EOF | |
24fd6d87 | 15873 | if { (eval echo configure:15874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15874 | rm -rf conftest* |
51a9faba | 15875 | wx_cv_type_getsockname3=size_t |
afc31813 | 15876 | else |
698dcdb6 VZ |
15877 | echo "configure: failed program was:" >&5 |
15878 | cat conftest.$ac_ext >&5 | |
15879 | rm -rf conftest* | |
15880 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 15881 | #line 15882 "configure" |
afc31813 | 15882 | #include "confdefs.h" |
51a9faba | 15883 | |
3ace2e6d | 15884 | #include <sys/types.h> |
51a9faba | 15885 | #include <sys/socket.h> |
698dcdb6 VZ |
15886 | |
15887 | int main() { | |
51a9faba VZ |
15888 | |
15889 | int len; | |
15890 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
15891 | |
15892 | ; return 0; } | |
15893 | EOF | |
24fd6d87 | 15894 | if { (eval echo configure:15895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 15895 | rm -rf conftest* |
51a9faba | 15896 | wx_cv_type_getsockname3=int |
afc31813 | 15897 | else |
698dcdb6 VZ |
15898 | echo "configure: failed program was:" >&5 |
15899 | cat conftest.$ac_ext >&5 | |
15900 | rm -rf conftest* | |
15901 | wx_cv_type_getsockname3=unknown | |
15902 | ||
afc31813 | 15903 | fi |
698dcdb6 VZ |
15904 | rm -f conftest* |
15905 | ||
afc31813 | 15906 | fi |
698dcdb6 VZ |
15907 | rm -f conftest* |
15908 | ||
afc31813 | 15909 | fi |
698dcdb6 | 15910 | rm -f conftest* |
51a9faba VZ |
15911 | |
15912 | ac_ext=c | |
698dcdb6 | 15913 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 15914 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
15915 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
15916 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
15917 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 15918 | |
698dcdb6 | 15919 | |
51a9faba | 15920 | fi |
698dcdb6 VZ |
15921 | |
15922 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba VZ |
15923 | |
15924 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
15925 | wxUSE_SOCKETS=no | |
698dcdb6 | 15926 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
51a9faba | 15927 | else |
698dcdb6 | 15928 | cat >> confdefs.h <<EOF |
51a9faba VZ |
15929 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
15930 | EOF | |
15931 | ||
15932 | fi | |
15933 | fi | |
afc31813 | 15934 | |
c521c494 RL |
15935 | fi |
15936 | ||
51a9faba | 15937 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 15938 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
15939 | #define wxUSE_SOCKETS 1 |
15940 | EOF | |
15941 | ||
70f7a477 | 15942 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
15943 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
15944 | fi | |
15945 | ||
698dcdb6 | 15946 | |
dc3d889d VZ |
15947 | if test "$wxUSE_GUI" = "yes"; then |
15948 | ||
b089607b VZ |
15949 | if test "$TOOLKIT" != "MSW"; then |
15950 | ||
ceded8b9 | 15951 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 15952 | for ac_hdr in linux/joystick.h |
10f2d63a | 15953 | do |
698dcdb6 VZ |
15954 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
15955 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24fd6d87 | 15956 | echo "configure:15957: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
15957 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15958 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15959 | else | |
15960 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 15961 | #line 15962 "configure" |
10f2d63a | 15962 | #include "confdefs.h" |
698dcdb6 VZ |
15963 | #include <$ac_hdr> |
15964 | EOF | |
15965 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 15966 | { (eval echo configure:15967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15967 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15968 | if test -z "$ac_err"; then | |
15969 | rm -rf conftest* | |
15970 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 15971 | else |
698dcdb6 VZ |
15972 | echo "$ac_err" >&5 |
15973 | echo "configure: failed program was:" >&5 | |
10f2d63a | 15974 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15975 | rm -rf conftest* |
15976 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 15977 | fi |
698dcdb6 | 15978 | rm -f conftest* |
10f2d63a | 15979 | fi |
698dcdb6 VZ |
15980 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15981 | echo "$ac_t""yes" 1>&6 | |
15982 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
15983 | cat >> confdefs.h <<EOF | |
15984 | #define $ac_tr_hdr 1 | |
10f2d63a | 15985 | EOF |
698dcdb6 VZ |
15986 | |
15987 | else | |
15988 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15989 | fi |
15990 | done | |
15991 | ||
b089607b | 15992 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 15993 | wxUSE_JOYSTICK=no |
698dcdb6 | 15994 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
15995 | fi |
15996 | fi | |
15997 | ||
15998 | fi | |
15999 | ||
ceded8b9 | 16000 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 16001 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16002 | #define wxUSE_JOYSTICK 1 |
16003 | EOF | |
16004 | ||
16005 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
16006 | fi |
16007 | ||
dc3d889d VZ |
16008 | fi |
16009 | ||
698dcdb6 | 16010 | |
b089607b VZ |
16011 | if test "$TOOLKIT" != "MSW"; then |
16012 | ||
10f2d63a VZ |
16013 | HAVE_DL_FUNCS=0 |
16014 | HAVE_SHL_FUNCS=0 | |
16015 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
b4085ce6 GD |
16016 | if test "$USE_MAC" = 1; then |
16017 | HAVE_DL_FUNCS=1 | |
16018 | else | |
698dcdb6 | 16019 | for ac_func in dlopen |
10f2d63a | 16020 | do |
698dcdb6 | 16021 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 16022 | echo "configure:16023: checking for $ac_func" >&5 |
698dcdb6 VZ |
16023 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16024 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16025 | else | |
16026 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 16027 | #line 16028 "configure" |
10f2d63a VZ |
16028 | #include "confdefs.h" |
16029 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16030 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16031 | #include <assert.h> |
16032 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16033 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16034 | builtin and then its argument prototype would still apply. */ |
16035 | char $ac_func(); | |
16036 | ||
16037 | int main() { | |
10f2d63a VZ |
16038 | |
16039 | /* The GNU C library defines this for functions which it implements | |
16040 | to always fail with ENOSYS. Some functions are actually named | |
16041 | something starting with __ and the normal name is an alias. */ | |
16042 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16043 | choke me | |
16044 | #else | |
698dcdb6 | 16045 | $ac_func(); |
10f2d63a VZ |
16046 | #endif |
16047 | ||
698dcdb6 VZ |
16048 | ; return 0; } |
16049 | EOF | |
24fd6d87 | 16050 | if { (eval echo configure:16051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16051 | rm -rf conftest* |
16052 | eval "ac_cv_func_$ac_func=yes" | |
16053 | else | |
16054 | echo "configure: failed program was:" >&5 | |
16055 | cat conftest.$ac_ext >&5 | |
16056 | rm -rf conftest* | |
16057 | eval "ac_cv_func_$ac_func=no" | |
16058 | fi | |
16059 | rm -f conftest* | |
16060 | fi | |
16061 | ||
16062 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16063 | echo "$ac_t""yes" 1>&6 | |
16064 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16065 | cat >> confdefs.h <<EOF | |
16066 | #define $ac_tr_func 1 | |
16067 | EOF | |
16068 | ||
16069 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16070 | #define HAVE_DLOPEN 1 |
16071 | EOF | |
16072 | ||
16073 | HAVE_DL_FUNCS=1 | |
698dcdb6 | 16074 | |
10f2d63a | 16075 | else |
698dcdb6 VZ |
16076 | echo "$ac_t""no" 1>&6 |
16077 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
24fd6d87 | 16078 | echo "configure:16079: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
16079 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
16080 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16081 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16082 | else |
698dcdb6 | 16083 | ac_save_LIBS="$LIBS" |
10f2d63a | 16084 | LIBS="-ldl $LIBS" |
698dcdb6 | 16085 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 16086 | #line 16087 "configure" |
10f2d63a VZ |
16087 | #include "confdefs.h" |
16088 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16089 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16090 | builtin and then its argument prototype would still apply. */ |
16091 | char dlopen(); | |
16092 | ||
16093 | int main() { | |
16094 | dlopen() | |
16095 | ; return 0; } | |
16096 | EOF | |
24fd6d87 | 16097 | if { (eval echo configure:16098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16098 | rm -rf conftest* |
16099 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16100 | else | |
16101 | echo "configure: failed program was:" >&5 | |
16102 | cat conftest.$ac_ext >&5 | |
16103 | rm -rf conftest* | |
16104 | eval "ac_cv_lib_$ac_lib_var=no" | |
16105 | fi | |
16106 | rm -f conftest* | |
16107 | LIBS="$ac_save_LIBS" | |
16108 | ||
16109 | fi | |
16110 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16111 | echo "$ac_t""yes" 1>&6 | |
16112 | ||
16113 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16114 | #define HAVE_DLOPEN 1 |
16115 | EOF | |
16116 | ||
16117 | HAVE_DL_FUNCS=1 | |
16118 | LIBS="$LIBS -ldl" | |
698dcdb6 | 16119 | |
10f2d63a | 16120 | else |
698dcdb6 | 16121 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16122 | |
698dcdb6 | 16123 | for ac_func in shl_load |
10f2d63a | 16124 | do |
698dcdb6 | 16125 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 16126 | echo "configure:16127: checking for $ac_func" >&5 |
698dcdb6 VZ |
16127 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16128 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16129 | else | |
16130 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 16131 | #line 16132 "configure" |
10f2d63a VZ |
16132 | #include "confdefs.h" |
16133 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16134 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
16135 | #include <assert.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 $ac_func(); | |
16140 | ||
16141 | int main() { | |
10f2d63a VZ |
16142 | |
16143 | /* The GNU C library defines this for functions which it implements | |
16144 | to always fail with ENOSYS. Some functions are actually named | |
16145 | something starting with __ and the normal name is an alias. */ | |
16146 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16147 | choke me | |
16148 | #else | |
698dcdb6 | 16149 | $ac_func(); |
10f2d63a VZ |
16150 | #endif |
16151 | ||
698dcdb6 VZ |
16152 | ; return 0; } |
16153 | EOF | |
24fd6d87 | 16154 | if { (eval echo configure:16155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16155 | rm -rf conftest* |
16156 | eval "ac_cv_func_$ac_func=yes" | |
16157 | else | |
16158 | echo "configure: failed program was:" >&5 | |
16159 | cat conftest.$ac_ext >&5 | |
16160 | rm -rf conftest* | |
16161 | eval "ac_cv_func_$ac_func=no" | |
16162 | fi | |
16163 | rm -f conftest* | |
16164 | fi | |
16165 | ||
16166 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16167 | echo "$ac_t""yes" 1>&6 | |
16168 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16169 | cat >> confdefs.h <<EOF | |
16170 | #define $ac_tr_func 1 | |
16171 | EOF | |
16172 | ||
16173 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16174 | #define HAVE_SHL_LOAD 1 |
16175 | EOF | |
16176 | ||
16177 | HAVE_SHL_FUNCS=1 | |
698dcdb6 | 16178 | |
10f2d63a | 16179 | else |
698dcdb6 VZ |
16180 | echo "$ac_t""no" 1>&6 |
16181 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
24fd6d87 | 16182 | echo "configure:16183: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
16183 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
16184 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16185 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16186 | else |
698dcdb6 | 16187 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16188 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 16189 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 16190 | #line 16191 "configure" |
f6bcfd97 BP |
16191 | #include "confdefs.h" |
16192 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16193 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16194 | builtin and then its argument prototype would still apply. */ |
16195 | char dld(); | |
16196 | ||
16197 | int main() { | |
16198 | dld() | |
16199 | ; return 0; } | |
16200 | EOF | |
24fd6d87 | 16201 | if { (eval echo configure:16202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16202 | rm -rf conftest* |
16203 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16204 | else | |
16205 | echo "configure: failed program was:" >&5 | |
16206 | cat conftest.$ac_ext >&5 | |
16207 | rm -rf conftest* | |
16208 | eval "ac_cv_lib_$ac_lib_var=no" | |
16209 | fi | |
16210 | rm -f conftest* | |
16211 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 16212 | |
698dcdb6 VZ |
16213 | fi |
16214 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16215 | echo "$ac_t""yes" 1>&6 | |
16216 | ||
f6bcfd97 BP |
16217 | HAVE_SHL_FUNCS=1 |
16218 | LIBS="$LIBS -ldld" | |
698dcdb6 VZ |
16219 | |
16220 | else | |
16221 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16222 | fi |
16223 | ||
698dcdb6 | 16224 | |
10f2d63a VZ |
16225 | fi |
16226 | done | |
16227 | ||
698dcdb6 | 16228 | |
10f2d63a VZ |
16229 | fi |
16230 | ||
698dcdb6 | 16231 | |
10f2d63a VZ |
16232 | fi |
16233 | done | |
16234 | ||
1e487827 | 16235 | |
698dcdb6 VZ |
16236 | if test "$HAVE_DL_FUNCS" = 1; then |
16237 | for ac_func in dlerror | |
f6bcfd97 | 16238 | do |
698dcdb6 | 16239 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
24fd6d87 | 16240 | echo "configure:16241: checking for $ac_func" >&5 |
698dcdb6 VZ |
16241 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16243 | else | |
16244 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 16245 | #line 16246 "configure" |
f6bcfd97 BP |
16246 | #include "confdefs.h" |
16247 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 16248 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
16249 | #include <assert.h> |
16250 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16251 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16252 | builtin and then its argument prototype would still apply. */ |
16253 | char $ac_func(); | |
16254 | ||
16255 | int main() { | |
f6bcfd97 BP |
16256 | |
16257 | /* The GNU C library defines this for functions which it implements | |
16258 | to always fail with ENOSYS. Some functions are actually named | |
16259 | something starting with __ and the normal name is an alias. */ | |
16260 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16261 | choke me | |
16262 | #else | |
698dcdb6 | 16263 | $ac_func(); |
f6bcfd97 BP |
16264 | #endif |
16265 | ||
698dcdb6 VZ |
16266 | ; return 0; } |
16267 | EOF | |
24fd6d87 | 16268 | if { (eval echo configure:16269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16269 | rm -rf conftest* |
16270 | eval "ac_cv_func_$ac_func=yes" | |
16271 | else | |
16272 | echo "configure: failed program was:" >&5 | |
16273 | cat conftest.$ac_ext >&5 | |
16274 | rm -rf conftest* | |
16275 | eval "ac_cv_func_$ac_func=no" | |
16276 | fi | |
16277 | rm -f conftest* | |
16278 | fi | |
16279 | ||
16280 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16281 | echo "$ac_t""yes" 1>&6 | |
16282 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16283 | cat >> confdefs.h <<EOF | |
16284 | #define $ac_tr_func 1 | |
16285 | EOF | |
16286 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16287 | #define HAVE_DLERROR 1 |
16288 | EOF | |
16289 | ||
16290 | else | |
698dcdb6 VZ |
16291 | echo "$ac_t""no" 1>&6 |
16292 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
24fd6d87 | 16293 | echo "configure:16294: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
16294 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
16295 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 16297 | else |
698dcdb6 | 16298 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 16299 | LIBS="-ldl $LIBS" |
698dcdb6 | 16300 | cat > conftest.$ac_ext <<EOF |
24fd6d87 | 16301 | #line 16302 "configure" |
f6bcfd97 BP |
16302 | #include "confdefs.h" |
16303 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16304 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
16305 | builtin and then its argument prototype would still apply. */ |
16306 | char dlerror(); | |
16307 | ||
16308 | int main() { | |
16309 | dlerror() | |
16310 | ; return 0; } | |
16311 | EOF | |
24fd6d87 | 16312 | if { (eval echo configure:16313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
16313 | rm -rf conftest* |
16314 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16315 | else | |
16316 | echo "configure: failed program was:" >&5 | |
16317 | cat conftest.$ac_ext >&5 | |
16318 | rm -rf conftest* | |
16319 | eval "ac_cv_lib_$ac_lib_var=no" | |
16320 | fi | |
16321 | rm -f conftest* | |
16322 | LIBS="$ac_save_LIBS" | |
16323 | ||
16324 | fi | |
16325 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16326 | echo "$ac_t""yes" 1>&6 | |
16327 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
16328 | #define HAVE_DLERROR 1 |
16329 | EOF | |
16330 | ||
698dcdb6 VZ |
16331 | else |
16332 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
16333 | fi |
16334 | ||
16335 | fi | |
16336 | done | |
16337 | ||
16338 | fi | |
b4085ce6 | 16339 | fi |
f6bcfd97 | 16340 | |
10f2d63a VZ |
16341 | if test "$HAVE_DL_FUNCS" = 0; then |
16342 | if test "$HAVE_SHL_FUNCS" = 0; then | |
16343 | if test "$USE_UNIX" = 1; then | |
698dcdb6 | 16344 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
16345 | wxUSE_DYNLIB_CLASS=no |
16346 | else | |
698dcdb6 | 16347 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
16348 | fi |
16349 | fi | |
16350 | fi | |
16351 | fi | |
16352 | ||
b089607b VZ |
16353 | fi |
16354 | ||
10f2d63a | 16355 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
698dcdb6 | 16356 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16357 | #define wxUSE_DYNLIB_CLASS 1 |
16358 | EOF | |
16359 | ||
b12915c1 VZ |
16360 | else |
16361 | wxUSE_ODBC=no | |
16362 | wxUSE_SERIAL=no | |
10f2d63a VZ |
16363 | fi |
16364 | ||
698dcdb6 | 16365 | |
1e6feb95 VZ |
16366 | if test "$wxUSE_FONTMAP" = "yes" ; then |
16367 | cat >> confdefs.h <<\EOF | |
16368 | #define wxUSE_FONTMAP 1 | |
16369 | EOF | |
16370 | ||
16371 | fi | |
16372 | ||
10f2d63a | 16373 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 16374 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16375 | #define wxUSE_UNICODE 1 |
16376 | EOF | |
16377 | ||
16378 | fi | |
16379 | ||
16380 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
698dcdb6 | 16381 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16382 | #define wxUSE_WCSRTOMBS 1 |
16383 | EOF | |
16384 | ||
16385 | fi | |
16386 | ||
16387 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
698dcdb6 | 16388 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16389 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
16390 | EOF | |
16391 | ||
16392 | fi | |
16393 | ||
698dcdb6 | 16394 | |
b12915c1 | 16395 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 16396 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
16397 | #define wxUSE_SERIAL 1 |
16398 | EOF | |
16399 | ||
16400 | fi | |
16401 | ||
698dcdb6 | 16402 | |
10f2d63a VZ |
16403 | IODBC_C_SRC="" |
16404 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 16405 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16406 | #define wxUSE_ODBC 1 |
16407 | EOF | |
16408 | ||
16409 | WXODBCFLAG="-D_IODBC_" | |
16410 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
16411 | fi |
16412 | ||
698dcdb6 | 16413 | |
10f2d63a | 16414 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 16415 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16416 | #define wxUSE_POSTSCRIPT 1 |
16417 | EOF | |
16418 | ||
16419 | fi | |
16420 | ||
698dcdb6 | 16421 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16422 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
16423 | EOF | |
16424 | ||
698dcdb6 VZ |
16425 | |
16426 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
16427 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
16428 | EOF | |
16429 | ||
698dcdb6 VZ |
16430 | |
16431 | ||
10f2d63a | 16432 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 16433 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16434 | #define wxUSE_CONSTRAINTS 1 |
16435 | EOF | |
16436 | ||
16437 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
16438 | fi | |
16439 | ||
16440 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
698dcdb6 | 16441 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16442 | #define wxUSE_MDI_ARCHITECTURE 1 |
16443 | EOF | |
16444 | ||
16445 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
16446 | fi | |
16447 | ||
16448 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 16449 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16450 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
16451 | EOF | |
16452 | ||
16453 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
16454 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
16455 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
16456 | fi | |
16457 | fi | |
16458 | ||
16459 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 16460 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16461 | #define wxUSE_HELP 1 |
16462 | EOF | |
16463 | ||
16464 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
16465 | fi | |
16466 | ||
16467 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
16468 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 16469 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 16470 | else |
698dcdb6 | 16471 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16472 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
16473 | EOF | |
16474 | ||
16475 | fi | |
16476 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
16477 | fi | |
16478 | ||
16479 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 16480 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16481 | #define wxUSE_PROLOGIO 1 |
16482 | EOF | |
16483 | ||
16484 | fi | |
16485 | ||
16486 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
16487 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 16488 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16489 | #define wxUSE_RESOURCES 1 |
16490 | EOF | |
16491 | ||
16492 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
16493 | else | |
698dcdb6 | 16494 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 |
10f2d63a VZ |
16495 | fi |
16496 | fi | |
16497 | ||
16498 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 16499 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16500 | #define wxUSE_X_RESOURCES 1 |
16501 | EOF | |
16502 | ||
16503 | fi | |
16504 | ||
698dcdb6 | 16505 | |
10f2d63a | 16506 | if test "$wxUSE_IPC" = "yes"; then |
eb4efbdc | 16507 | if test "$wxUSE_SOCKETS" != "yes"; then |
698dcdb6 | 16508 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 |
eb4efbdc VZ |
16509 | fi |
16510 | ||
698dcdb6 | 16511 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16512 | #define wxUSE_IPC 1 |
16513 | EOF | |
16514 | ||
16515 | fi | |
16516 | ||
16517 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
698dcdb6 | 16518 | cat >> confdefs.h <<\EOF |
10f2d63a | 16519 | #define wxUSE_CLIPBOARD 1 |
1e6feb95 VZ |
16520 | EOF |
16521 | ||
16522 | cat >> confdefs.h <<\EOF | |
16523 | #define wxUSE_DATAOBJ 1 | |
10f2d63a VZ |
16524 | EOF |
16525 | ||
16526 | fi | |
16527 | ||
16528 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
16529 | if test "$wxUSE_GTK" = 1; then | |
16530 | if test "$WXGTK12" != 1; then | |
698dcdb6 | 16531 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 |
10f2d63a VZ |
16532 | wxUSE_DRAG_AND_DROP=no |
16533 | fi | |
16534 | fi | |
16535 | ||
16536 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 16537 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 |
10f2d63a VZ |
16538 | wxUSE_DRAG_AND_DROP=no |
16539 | fi | |
16540 | ||
2c6025bc | 16541 | if test "$wxUSE_MAC" = 1; then |
698dcdb6 | 16542 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 |
2c6025bc GD |
16543 | wxUSE_DRAG_AND_DROP=no |
16544 | fi | |
16545 | ||
10f2d63a | 16546 | if test "$USE_WIN32" = 1; then |
698dcdb6 VZ |
16547 | |
16548 | for ac_hdr in ole2.h | |
10f2d63a | 16549 | do |
698dcdb6 VZ |
16550 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
16551 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
24fd6d87 | 16552 | echo "configure:16553: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
16553 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
16554 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16555 | else | |
16556 | cat > conftest.$ac_ext <<EOF | |
24fd6d87 | 16557 | #line 16558 "configure" |
10f2d63a | 16558 | #include "confdefs.h" |
698dcdb6 VZ |
16559 | #include <$ac_hdr> |
16560 | EOF | |
16561 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
24fd6d87 | 16562 | { (eval echo configure:16563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
16563 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16564 | if test -z "$ac_err"; then | |
16565 | rm -rf conftest* | |
16566 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 16567 | else |
698dcdb6 VZ |
16568 | echo "$ac_err" >&5 |
16569 | echo "configure: failed program was:" >&5 | |
10f2d63a | 16570 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
16571 | rm -rf conftest* |
16572 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 16573 | fi |
698dcdb6 | 16574 | rm -f conftest* |
10f2d63a | 16575 | fi |
698dcdb6 VZ |
16576 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
16577 | echo "$ac_t""yes" 1>&6 | |
16578 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16579 | cat >> confdefs.h <<EOF | |
16580 | #define $ac_tr_hdr 1 | |
10f2d63a | 16581 | EOF |
698dcdb6 VZ |
16582 | |
16583 | else | |
16584 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
16585 | fi |
16586 | done | |
16587 | ||
698dcdb6 | 16588 | |
57fe5ed0 | 16589 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
c521c494 | 16590 | if test "$GCC" = yes ; then |
b64f0a5f RL |
16591 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
16592 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 16593 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
b64f0a5f RL |
16594 | LIBS="$LIBS -lole32 -luuid" |
16595 | ||
16596 | if test "$wxUSE_METAFILE" = "yes"; then | |
698dcdb6 | 16597 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16598 | #define wxUSE_METAFILE 1 |
16599 | EOF | |
16600 | ||
698dcdb6 | 16601 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
16602 | #define wxUSE_ENH_METAFILE 1 |
16603 | EOF | |
16604 | ||
16605 | fi | |
c521c494 RL |
16606 | fi |
16607 | else | |
698dcdb6 | 16608 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 |
10f2d63a VZ |
16609 | wxUSE_DRAG_AND_DROP=no |
16610 | fi | |
16611 | fi | |
16612 | ||
16613 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
698dcdb6 | 16614 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16615 | #define wxUSE_DRAG_AND_DROP 1 |
16616 | EOF | |
16617 | ||
16618 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
16619 | fi | |
16620 | ||
16621 | fi | |
16622 | ||
16623 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 16624 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16625 | #define wxUSE_SPLINES 1 |
16626 | EOF | |
16627 | ||
16628 | fi | |
16629 | ||
698dcdb6 | 16630 | |
1e6feb95 VZ |
16631 | USES_CONTROLS=0 |
16632 | if test "$wxUSE_CONTROLS" = "yes"; then | |
16633 | USES_CONTROLS=1 | |
16634 | fi | |
16635 | ||
10f2d63a | 16636 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 16637 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16638 | #define wxUSE_ACCEL 1 |
16639 | EOF | |
16640 | ||
1e6feb95 VZ |
16641 | USES_CONTROLS=1 |
16642 | fi | |
16643 | ||
16644 | if test "$wxUSE_BUTTON" = "yes"; then | |
16645 | cat >> confdefs.h <<\EOF | |
16646 | #define wxUSE_BUTTON 1 | |
16647 | EOF | |
16648 | ||
16649 | USES_CONTROLS=1 | |
16650 | fi | |
16651 | ||
16652 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
16653 | cat >> confdefs.h <<\EOF | |
16654 | #define wxUSE_BMPBUTTON 1 | |
16655 | EOF | |
16656 | ||
16657 | USES_CONTROLS=1 | |
16658 | fi | |
16659 | ||
16660 | if test "$wxUSE_CALCTRL" = "yes"; then | |
16661 | cat >> confdefs.h <<\EOF | |
16662 | #define wxUSE_CALENDARCTRL 1 | |
16663 | EOF | |
16664 | ||
16665 | USES_CONTROLS=1 | |
16666 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
16667 | fi |
16668 | ||
16669 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 16670 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16671 | #define wxUSE_CARET 1 |
16672 | EOF | |
16673 | ||
1e6feb95 | 16674 | USES_CONTROLS=1 |
10f2d63a VZ |
16675 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
16676 | fi | |
16677 | ||
16678 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 16679 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16680 | #define wxUSE_COMBOBOX 1 |
16681 | EOF | |
16682 | ||
1e6feb95 | 16683 | USES_CONTROLS=1 |
10f2d63a VZ |
16684 | fi |
16685 | ||
16686 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 16687 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16688 | #define wxUSE_CHOICE 1 |
16689 | EOF | |
16690 | ||
1e6feb95 | 16691 | USES_CONTROLS=1 |
10f2d63a VZ |
16692 | fi |
16693 | ||
16694 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 16695 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16696 | #define wxUSE_CHECKBOX 1 |
16697 | EOF | |
16698 | ||
1e6feb95 | 16699 | USES_CONTROLS=1 |
10f2d63a VZ |
16700 | fi |
16701 | ||
16702 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 16703 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16704 | #define wxUSE_CHECKLISTBOX 1 |
16705 | EOF | |
16706 | ||
1e6feb95 | 16707 | USES_CONTROLS=1 |
10f2d63a VZ |
16708 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
16709 | fi | |
16710 | ||
16711 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 16712 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16713 | #define wxUSE_GAUGE 1 |
16714 | EOF | |
16715 | ||
1e6feb95 | 16716 | USES_CONTROLS=1 |
10f2d63a VZ |
16717 | fi |
16718 | ||
d6a55c4b VZ |
16719 | if test "$wxUSE_NEW_GRID" = "yes"; then |
16720 | wxUSE_GRID="yes" | |
698dcdb6 | 16721 | cat >> confdefs.h <<\EOF |
d6a55c4b | 16722 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
16723 | EOF |
16724 | ||
1e6feb95 | 16725 | USES_CONTROLS=1 |
d6a55c4b | 16726 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
16727 | fi |
16728 | ||
d6a55c4b | 16729 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 16730 | cat >> confdefs.h <<\EOF |
d6a55c4b | 16731 | #define wxUSE_GRID 1 |
10f2d63a VZ |
16732 | EOF |
16733 | ||
1e6feb95 | 16734 | USES_CONTROLS=1 |
d6a55c4b | 16735 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
16736 | fi |
16737 | ||
16738 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16739 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16740 | #define wxUSE_IMAGLIST 1 |
16741 | EOF | |
16742 | ||
16743 | fi | |
16744 | ||
16745 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 16746 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16747 | #define wxUSE_LISTBOX 1 |
16748 | EOF | |
16749 | ||
1e6feb95 | 16750 | USES_CONTROLS=1 |
10f2d63a VZ |
16751 | fi |
16752 | ||
16753 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
16754 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16755 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16756 | #define wxUSE_LISTCTRL 1 |
16757 | EOF | |
16758 | ||
1e6feb95 | 16759 | USES_CONTROLS=1 |
10f2d63a VZ |
16760 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
16761 | else | |
698dcdb6 | 16762 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
16763 | fi |
16764 | fi | |
16765 | ||
16766 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 16767 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16768 | #define wxUSE_NOTEBOOK 1 |
16769 | EOF | |
16770 | ||
1e6feb95 | 16771 | USES_CONTROLS=1 |
10f2d63a VZ |
16772 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
16773 | fi | |
16774 | ||
16775 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
698dcdb6 | 16776 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16777 | #define wxUSE_RADIOBOX 1 |
16778 | EOF | |
16779 | ||
1e6feb95 | 16780 | USES_CONTROLS=1 |
10f2d63a VZ |
16781 | fi |
16782 | ||
16783 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 16784 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16785 | #define wxUSE_RADIOBTN 1 |
16786 | EOF | |
16787 | ||
1e6feb95 | 16788 | USES_CONTROLS=1 |
10f2d63a VZ |
16789 | fi |
16790 | ||
16791 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 16792 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16793 | #define wxUSE_SASH 1 |
16794 | EOF | |
16795 | ||
16796 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
16797 | fi | |
16798 | ||
16799 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 16800 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16801 | #define wxUSE_SCROLLBAR 1 |
16802 | EOF | |
16803 | ||
1e6feb95 | 16804 | USES_CONTROLS=1 |
741a9306 | 16805 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
16806 | fi |
16807 | ||
16808 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 16809 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16810 | #define wxUSE_SLIDER 1 |
16811 | EOF | |
16812 | ||
1e6feb95 | 16813 | USES_CONTROLS=1 |
10f2d63a VZ |
16814 | fi |
16815 | ||
16816 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 16817 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16818 | #define wxUSE_SPINBTN 1 |
16819 | EOF | |
16820 | ||
1e6feb95 | 16821 | USES_CONTROLS=1 |
10f2d63a VZ |
16822 | fi |
16823 | ||
56cfaa52 | 16824 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 16825 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
16826 | #define wxUSE_SPINCTRL 1 |
16827 | EOF | |
16828 | ||
1e6feb95 | 16829 | USES_CONTROLS=1 |
56cfaa52 RR |
16830 | fi |
16831 | ||
10f2d63a | 16832 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 16833 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16834 | #define wxUSE_SPLITTER 1 |
16835 | EOF | |
16836 | ||
16837 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
16838 | fi | |
16839 | ||
16840 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 16841 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16842 | #define wxUSE_STATBMP 1 |
16843 | EOF | |
16844 | ||
1e6feb95 | 16845 | USES_CONTROLS=1 |
10f2d63a VZ |
16846 | fi |
16847 | ||
16848 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 16849 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16850 | #define wxUSE_STATBOX 1 |
16851 | EOF | |
16852 | ||
1e6feb95 VZ |
16853 | USES_CONTROLS=1 |
16854 | fi | |
16855 | ||
16856 | if test "$wxUSE_STATTEXT" = "yes"; then | |
16857 | cat >> confdefs.h <<\EOF | |
16858 | #define wxUSE_STATTEXT 1 | |
16859 | EOF | |
16860 | ||
16861 | USES_CONTROLS=1 | |
10f2d63a VZ |
16862 | fi |
16863 | ||
16864 | if test "$wxUSE_STATLINE" = "yes"; then | |
16865 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 16866 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 16867 | else |
698dcdb6 | 16868 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16869 | #define wxUSE_STATLINE 1 |
16870 | EOF | |
16871 | ||
1e6feb95 | 16872 | USES_CONTROLS=1 |
10f2d63a VZ |
16873 | fi |
16874 | fi | |
16875 | ||
16876 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 16877 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16878 | #define wxUSE_STATUSBAR 1 |
16879 | EOF | |
16880 | ||
1e6feb95 | 16881 | USES_CONTROLS=1 |
698dcdb6 | 16882 | |
2286341c | 16883 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
16884 | fi |
16885 | ||
16886 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 16887 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16888 | #define wxUSE_TAB_DIALOG 1 |
16889 | EOF | |
16890 | ||
16891 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
16892 | fi | |
16893 | ||
1e6feb95 VZ |
16894 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
16895 | cat >> confdefs.h <<\EOF | |
16896 | #define wxUSE_TEXTCTRL 1 | |
16897 | EOF | |
16898 | ||
16899 | USES_CONTROLS=1 | |
16900 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
16901 | fi | |
16902 | ||
1db8dc4a | 16903 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
a45d7ab7 GD |
16904 | if test "$wxUSE_MAC" = 1; then |
16905 | echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2 | |
16906 | wxUSE_TOGGLEBTN=no | |
16907 | fi | |
16908 | ||
16909 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
16910 | cat >> confdefs.h <<\EOF | |
1db8dc4a VZ |
16911 | #define wxUSE_TOGGLEBTN 1 |
16912 | EOF | |
16913 | ||
1e6feb95 | 16914 | USES_CONTROLS=1 |
a45d7ab7 | 16915 | fi |
1db8dc4a VZ |
16916 | fi |
16917 | ||
360d6699 | 16918 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 16919 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
16920 | #define wxUSE_TOOLBAR_SIMPLE 1 |
16921 | EOF | |
16922 | ||
16923 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 16924 | USES_CONTROLS=1 |
360d6699 VZ |
16925 | fi |
16926 | ||
10f2d63a | 16927 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 16928 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16929 | #define wxUSE_TOOLBAR 1 |
16930 | EOF | |
16931 | ||
1e6feb95 | 16932 | USES_CONTROLS=1 |
698dcdb6 | 16933 | |
360d6699 VZ |
16934 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
16935 | wxUSE_TOOLBAR_NATIVE="yes" | |
16936 | fi | |
16937 | ||
1e6feb95 VZ |
16938 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
16939 | cat >> confdefs.h <<\EOF | |
360d6699 VZ |
16940 | #define wxUSE_TOOLBAR_NATIVE 1 |
16941 | EOF | |
16942 | ||
1e6feb95 VZ |
16943 | USES_CONTROLS=1 |
16944 | fi | |
16945 | ||
16946 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
16947 | fi |
16948 | ||
10f2d63a VZ |
16949 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
16950 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 16951 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
16952 | else |
16953 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 16954 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 16955 | else |
698dcdb6 | 16956 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16957 | #define wxUSE_TOOLTIPS 1 |
16958 | EOF | |
16959 | ||
16960 | fi | |
16961 | fi | |
16962 | fi | |
16963 | ||
16964 | if test "$wxUSE_TREECTRL" = "yes"; then | |
16965 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 16966 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
16967 | #define wxUSE_TREECTRL 1 |
16968 | EOF | |
16969 | ||
1e6feb95 | 16970 | USES_CONTROLS=1 |
10f2d63a VZ |
16971 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
16972 | else | |
698dcdb6 | 16973 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
16974 | fi |
16975 | fi | |
16976 | ||
1e6feb95 VZ |
16977 | if test "$USES_CONTROLS" = 1; then |
16978 | cat >> confdefs.h <<\EOF | |
16979 | #define wxUSE_CONTROLS 1 | |
10f2d63a VZ |
16980 | EOF |
16981 | ||
10f2d63a VZ |
16982 | fi |
16983 | ||
1e6feb95 VZ |
16984 | |
16985 | ||
24fd6d87 VZ |
16986 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
16987 | cat >> confdefs.h <<\EOF | |
16988 | #define wxUSE_DRAGIMAGE 1 | |
16989 | EOF | |
16990 | ||
16991 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
16992 | fi | |
16993 | ||
1e6feb95 | 16994 | if test "$wxUSE_MENUS" = "yes"; then |
698dcdb6 | 16995 | cat >> confdefs.h <<\EOF |
1e6feb95 | 16996 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
16997 | EOF |
16998 | ||
1e6feb95 | 16999 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
17000 | fi |
17001 | ||
1e6feb95 VZ |
17002 | if test "$wxUSE_METAFILE" = "yes"; then |
17003 | cat >> confdefs.h <<\EOF | |
17004 | #define wxUSE_METAFILE 1 | |
10f2d63a VZ |
17005 | EOF |
17006 | ||
10f2d63a VZ |
17007 | fi |
17008 | ||
1e6feb95 VZ |
17009 | if test "$wxUSE_MIMETYPE" = "yes"; then |
17010 | cat >> confdefs.h <<\EOF | |
17011 | #define wxUSE_MIMETYPE 1 | |
10f2d63a VZ |
17012 | EOF |
17013 | ||
10f2d63a VZ |
17014 | fi |
17015 | ||
17016 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
698dcdb6 | 17017 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17018 | #define wxUSE_MINIFRAME 1 |
17019 | EOF | |
17020 | ||
17021 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
17022 | fi | |
17023 | ||
17024 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 17025 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
17026 | #define wxUSE_HTML 1 |
17027 | EOF | |
17028 | ||
17029 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
17030 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
17031 | fi | |
17032 | ||
17033 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 17034 | cat >> confdefs.h <<\EOF |
1e487827 VS |
17035 | #define wxUSE_VALIDATORS 1 |
17036 | EOF | |
703e0a69 | 17037 | |
698dcdb6 VZ |
17038 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
17039 | fi | |
17040 | ||
17041 | if test "$wxUSE_IMAGE" = "yes" ; then | |
17042 | cat >> confdefs.h <<\EOF | |
17043 | #define wxUSE_IMAGE 1 | |
17044 | EOF | |
17045 | ||
17046 | fi | |
17047 | ||
17048 | if test "$wxUSE_GIF" = "yes" ; then | |
17049 | cat >> confdefs.h <<\EOF | |
17050 | #define wxUSE_GIF 1 | |
17051 | EOF | |
17052 | ||
17053 | fi | |
17054 | ||
17055 | if test "$wxUSE_PCX" = "yes" ; then | |
17056 | cat >> confdefs.h <<\EOF | |
17057 | #define wxUSE_PCX 1 | |
17058 | EOF | |
17059 | ||
17060 | fi | |
17061 | ||
17062 | if test "$wxUSE_PNM" = "yes" ; then | |
17063 | cat >> confdefs.h <<\EOF | |
17064 | #define wxUSE_PNM 1 | |
17065 | EOF | |
17066 | ||
17067 | fi | |
17068 | ||
17069 | if test "$wxUSE_XPM" = "yes" ; then | |
17070 | cat >> confdefs.h <<\EOF | |
17071 | #define wxUSE_XPM 1 | |
17072 | EOF | |
17073 | ||
17074 | fi | |
17075 | ||
17076 | ||
1e6feb95 VZ |
17077 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
17078 | cat >> confdefs.h <<\EOF | |
17079 | #define wxUSE_CHOICEDLG 1 | |
17080 | EOF | |
17081 | ||
17082 | fi | |
17083 | ||
17084 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
17085 | cat >> confdefs.h <<\EOF | |
17086 | #define wxUSE_COLOURDLG 1 | |
17087 | EOF | |
17088 | ||
17089 | fi | |
17090 | ||
17091 | if test "$wxUSE_FILEDLG" = "yes"; then | |
17092 | cat >> confdefs.h <<\EOF | |
17093 | #define wxUSE_FILEDLG 1 | |
17094 | EOF | |
17095 | ||
17096 | fi | |
17097 | ||
17098 | if test "$wxUSE_FONTDLG" = "yes"; then | |
17099 | cat >> confdefs.h <<\EOF | |
17100 | #define wxUSE_FONTDLG 1 | |
17101 | EOF | |
17102 | ||
17103 | fi | |
17104 | ||
17105 | if test "$wxUSE_DIRDLG" = "yes"; then | |
17106 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17107 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
17108 | else | |
17109 | if test "$wxUSE_TREECTRL" != "yes"; then | |
17110 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
17111 | else | |
17112 | cat >> confdefs.h <<\EOF | |
17113 | #define wxUSE_DIRDLG 1 | |
17114 | EOF | |
17115 | ||
17116 | fi | |
17117 | fi | |
17118 | fi | |
17119 | ||
17120 | if test "$wxUSE_MSGDLG" = "yes"; then | |
17121 | cat >> confdefs.h <<\EOF | |
17122 | #define wxUSE_MSGDLG 1 | |
17123 | EOF | |
17124 | ||
17125 | fi | |
17126 | ||
17127 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
17128 | cat >> confdefs.h <<\EOF | |
17129 | #define wxUSE_NUMBERDLG 1 | |
17130 | EOF | |
17131 | ||
17132 | fi | |
17133 | ||
17134 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
17135 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17136 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
17137 | else | |
17138 | cat >> confdefs.h <<\EOF | |
17139 | #define wxUSE_PROGRESSDLG 1 | |
17140 | EOF | |
17141 | ||
17142 | fi | |
17143 | fi | |
17144 | ||
17145 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
17146 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17147 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
17148 | else | |
17149 | cat >> confdefs.h <<\EOF | |
17150 | #define wxUSE_STARTUP_TIPS 1 | |
17151 | EOF | |
17152 | ||
17153 | fi | |
17154 | fi | |
17155 | ||
17156 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
17157 | cat >> confdefs.h <<\EOF | |
17158 | #define wxUSE_TEXTDLG 1 | |
17159 | EOF | |
17160 | ||
17161 | fi | |
17162 | ||
17163 | ||
698dcdb6 VZ |
17164 | if test "$cross_compiling" = "yes"; then |
17165 | OSINFO="\"$host\"" | |
17166 | else | |
17167 | OSINFO=`uname -s -r -m` | |
17168 | OSINFO="\"$OSINFO\"" | |
17169 | fi | |
17170 | ||
17171 | cat >> confdefs.h <<EOF | |
17172 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
17173 | EOF | |
17174 | ||
17175 | ||
17176 | ||
17177 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" | |
17178 | OPENGL_LIBS="$OPENGL_LINK" | |
17179 | ||
17180 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
17181 | if test "$USE_MAC" = 1 ; then | |
17182 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" | |
17183 | fi | |
17184 | if test "$wxUSE_GUI" = "yes"; then | |
17185 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
17186 | fi | |
17187 | ||
17188 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
17189 | ||
17190 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
17191 | ||
17192 | if test "$wxUSE_GTK" = 1; then | |
17193 | WXCONFIG_INCLUDE="" | |
17194 | else | |
17195 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
17196 | fi | |
17197 | ||
17198 | if test "$GXX" = yes ; then | |
17199 | CXXWARNINGS="-Wall" | |
17200 | fi | |
17201 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
17202 | ||
17203 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
17204 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
17205 | ||
17206 | LDFLAGS="$LDFLAGS $PROFILE" | |
17207 | ||
17208 | if test "$wxUSE_GUI" = "yes"; then | |
17209 | ||
24fd6d87 | 17210 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ |
1e6feb95 VZ |
17211 | drawing dynamic event font fractal image \ |
17212 | minimal richedit widgets" | |
17213 | ||
17214 | if test "$wxUSE_UNIVERSAL" = "yes" ; then | |
17215 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" | |
17216 | fi | |
698dcdb6 VZ |
17217 | |
17218 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
17219 | else | |
17220 | SAMPLES_SUBDIRS="" | |
17221 | fi | |
17222 | ||
17223 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
17224 | ||
17225 | ||
17226 | ||
17227 | ||
17228 | ||
17229 | ||
17230 | ||
17231 | ||
17232 | ||
17233 | ||
17234 | ||
17235 | ||
17236 | ||
17237 | ||
17238 | ||
17239 | ||
17240 | ||
17241 | ||
17242 | ||
17243 | ||
17244 | ||
17245 | ||
17246 | ||
17247 | ||
17248 | ||
17249 | ||
17250 | ||
17251 | ||
17252 | ||
17253 | ||
17254 | ||
17255 | ||
17256 | ||
17257 | ||
17258 | ||
17259 | ||
17260 | ||
17261 | ||
17262 | ||
17263 | ||
17264 | ||
17265 | ||
17266 | ||
17267 | ||
17268 | ||
17269 | ||
17270 | ||
17271 | ||
17272 | ||
17273 | ||
17274 | ||
17275 | ||
17276 | ||
17277 | ||
17278 | ||
17279 | ||
17280 | ||
17281 | ||
17282 | ||
17283 | ||
17284 | ||
17285 | ||
17286 | ||
17287 | ||
17288 | ||
17289 | ||
17290 | ||
32832908 VZ |
17291 | |
17292 | ||
17293 | ||
17294 | ||
17295 | ||
17296 | ||
17297 | ||
2224580a | 17298 | |
dad6c0ea | 17299 | |
f6bcfd97 BP |
17300 | |
17301 | ||
17302 | ||
2f51a9ec GD |
17303 | |
17304 | ||
17305 | ||
17306 | ||
17307 | ||
17308 | ||
f6bcfd97 | 17309 | |
dad6c0ea | 17310 | |
caa2c79b | 17311 | |
3711412e | 17312 | |
1e6feb95 VZ |
17313 | |
17314 | ||
0f3f1cbc | 17315 | |
10f2d63a VZ |
17316 | |
17317 | ||
698dcdb6 | 17318 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
24fd6d87 | 17319 | echo "configure:17320: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
17320 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
17321 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
17322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17323 | else |
698dcdb6 | 17324 | cat > conftestmake <<\EOF |
10f2d63a VZ |
17325 | all: |
17326 | @echo 'ac_maketemp="${MAKE}"' | |
17327 | EOF | |
17328 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 17329 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
17330 | if test -n "$ac_maketemp"; then |
17331 | eval ac_cv_prog_make_${ac_make}_set=yes | |
17332 | else | |
17333 | eval ac_cv_prog_make_${ac_make}_set=no | |
17334 | fi | |
698dcdb6 | 17335 | rm -f conftestmake |
10f2d63a VZ |
17336 | fi |
17337 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 17338 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
17339 | SET_MAKE= |
17340 | else | |
698dcdb6 | 17341 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
17342 | SET_MAKE="MAKE=${MAKE-make}" |
17343 | fi | |
17344 | ||
698dcdb6 | 17345 | |
00cf1208 RR |
17346 | if test -d include; then |
17347 | if test -d include/wx; then | |
1e6feb95 VZ |
17348 | if test -d include/wx/${SETUPH_DIR}; then |
17349 | if test -f include/wx/${SETUPH_DIR}/setup.h; then | |
17350 | mv -f include/wx/${SETUPH_DIR}/setup.h setup.h | |
00cf1208 RR |
17351 | fi |
17352 | fi | |
17353 | fi | |
17354 | fi | |
665bbe97 | 17355 | |
698dcdb6 | 17356 | |
10f2d63a | 17357 | |
2224580a | 17358 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 17359 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
17360 | wx_cv_path_ifs=$PATH_IFS |
17361 | wx_cv_program_ext=$PROGRAM_EXT | |
17362 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 17363 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 VS |
17364 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
17365 | wx_cv_target_library wx_cv_target_libtype | |
698dcdb6 | 17366 | subdirs="demos samples utils contrib" |
2224580a VZ |
17367 | |
17368 | fi | |
10f2d63a | 17369 | |
698dcdb6 VZ |
17370 | trap '' 1 2 15 |
17371 | cat > confcache <<\EOF | |
10f2d63a VZ |
17372 | # This file is a shell script that caches the results of configure |
17373 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
17374 | # scripts and configure runs. It is not useful on other systems. |
17375 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 17376 | # |
698dcdb6 VZ |
17377 | # By default, configure uses ./config.cache as the cache file, |
17378 | # creating it if it does not exist already. You can give configure | |
17379 | # the --cache-file=FILE option to use a different cache file; that is | |
17380 | # what configure does when it calls configure scripts in | |
17381 | # subdirectories, so they share the cache. | |
17382 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17383 | # config.status only pays attention to the cache file if you give it the | |
17384 | # --recheck option to rerun configure. | |
10f2d63a | 17385 | # |
698dcdb6 | 17386 | EOF |
10f2d63a VZ |
17387 | # The following way of writing the cache mishandles newlines in values, |
17388 | # but we know of no workaround that is simple, portable, and efficient. | |
17389 | # So, don't put newlines in cache variables' values. | |
17390 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17391 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
17392 | (set) 2>&1 | |
17393 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17394 | *ac_space=\ *) | |
17395 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17396 | # turns \\\\ into \\, and sed turns \\ into \). | |
17397 | sed -n \ | |
17398 | -e "s/'/'\\\\''/g" \ | |
17399 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17400 | ;; | |
17401 | *) | |
17402 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17403 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17404 | ;; | |
17405 | esac >> confcache | |
17406 | if cmp -s $cache_file confcache; then | |
17407 | : | |
17408 | else | |
10f2d63a | 17409 | if test -w $cache_file; then |
698dcdb6 VZ |
17410 | echo "updating cache $cache_file" |
17411 | cat confcache > $cache_file | |
10f2d63a VZ |
17412 | else |
17413 | echo "not updating unwritable cache $cache_file" | |
17414 | fi | |
17415 | fi | |
17416 | rm -f confcache | |
17417 | ||
698dcdb6 VZ |
17418 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
17419 | ||
10f2d63a VZ |
17420 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
17421 | # Let make expand exec_prefix. | |
17422 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17423 | ||
698dcdb6 VZ |
17424 | # Any assignment to VPATH causes Sun make to only execute |
17425 | # the first set of double-colon rules, so remove it if not needed. | |
17426 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 17427 | if test "x$srcdir" = x.; then |
698dcdb6 | 17428 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
17429 | fi |
17430 | ||
698dcdb6 VZ |
17431 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
17432 | ||
10f2d63a VZ |
17433 | DEFS=-DHAVE_CONFIG_H |
17434 | ||
698dcdb6 | 17435 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 17436 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
17437 | |
17438 | echo creating $CONFIG_STATUS | |
17439 | rm -f $CONFIG_STATUS | |
17440 | cat > $CONFIG_STATUS <<EOF | |
17441 | #! /bin/sh | |
10f2d63a VZ |
17442 | # Generated automatically by configure. |
17443 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
17444 | # This directory was configured as follows, |
17445 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17446 | # | |
17447 | # $0 $ac_configure_args | |
17448 | # | |
10f2d63a | 17449 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 17450 | # configure, is in ./config.log if it exists. |
1e487827 | 17451 | |
698dcdb6 VZ |
17452 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
17453 | for ac_option | |
10f2d63a | 17454 | do |
698dcdb6 | 17455 | case "\$ac_option" in |
10f2d63a | 17456 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
17457 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
17458 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
17459 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
17460 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
17461 | exit 0 ;; | |
17462 | -help | --help | --hel | --he | --h) | |
17463 | echo "\$ac_cs_usage"; exit 0 ;; | |
17464 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
17465 | esac |
17466 | done | |
17467 | ||
698dcdb6 VZ |
17468 | ac_given_srcdir=$srcdir |
17469 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 17470 | |
698dcdb6 VZ |
17471 | trap 'rm -fr `echo " |
17472 | wx-config | |
17473 | src/make.env | |
17474 | src/makeprog.env | |
17475 | src/makelib.env | |
17476 | Makefile | |
17477 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 17478 | EOF |
698dcdb6 | 17479 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 17480 | |
698dcdb6 VZ |
17481 | # Protect against being on the right side of a sed subst in config.status. |
17482 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
17483 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
17484 | $ac_vpsub | |
17485 | $extrasub | |
17486 | s%@SHELL@%$SHELL%g | |
17487 | s%@CFLAGS@%$CFLAGS%g | |
17488 | s%@CPPFLAGS@%$CPPFLAGS%g | |
17489 | s%@CXXFLAGS@%$CXXFLAGS%g | |
17490 | s%@FFLAGS@%$FFLAGS%g | |
17491 | s%@DEFS@%$DEFS%g | |
17492 | s%@LDFLAGS@%$LDFLAGS%g | |
17493 | s%@LIBS@%$LIBS%g | |
17494 | s%@exec_prefix@%$exec_prefix%g | |
17495 | s%@prefix@%$prefix%g | |
17496 | s%@program_transform_name@%$program_transform_name%g | |
17497 | s%@bindir@%$bindir%g | |
17498 | s%@sbindir@%$sbindir%g | |
17499 | s%@libexecdir@%$libexecdir%g | |
17500 | s%@datadir@%$datadir%g | |
17501 | s%@sysconfdir@%$sysconfdir%g | |
17502 | s%@sharedstatedir@%$sharedstatedir%g | |
17503 | s%@localstatedir@%$localstatedir%g | |
17504 | s%@libdir@%$libdir%g | |
17505 | s%@includedir@%$includedir%g | |
17506 | s%@oldincludedir@%$oldincludedir%g | |
17507 | s%@infodir@%$infodir%g | |
17508 | s%@mandir@%$mandir%g | |
17509 | s%@host@%$host%g | |
17510 | s%@host_alias@%$host_alias%g | |
17511 | s%@host_cpu@%$host_cpu%g | |
17512 | s%@host_vendor@%$host_vendor%g | |
17513 | s%@host_os@%$host_os%g | |
17514 | s%@target@%$target%g | |
17515 | s%@target_alias@%$target_alias%g | |
17516 | s%@target_cpu@%$target_cpu%g | |
17517 | s%@target_vendor@%$target_vendor%g | |
17518 | s%@target_os@%$target_os%g | |
17519 | s%@build@%$build%g | |
17520 | s%@build_alias@%$build_alias%g | |
17521 | s%@build_cpu@%$build_cpu%g | |
17522 | s%@build_vendor@%$build_vendor%g | |
17523 | s%@build_os@%$build_os%g | |
17524 | s%@CC@%$CC%g | |
17525 | s%@CPP@%$CPP%g | |
17526 | s%@CXX@%$CXX%g | |
17527 | s%@CXXCPP@%$CXXCPP%g | |
17528 | s%@RANLIB@%$RANLIB%g | |
17529 | s%@AR@%$AR%g | |
17530 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
17531 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
17532 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
17533 | s%@STRIP@%$STRIP%g | |
17534 | s%@YACC@%$YACC%g | |
17535 | s%@LEX@%$LEX%g | |
17536 | s%@LEXLIB@%$LEXLIB%g | |
17537 | s%@LN_S@%$LN_S%g | |
17538 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
698dcdb6 VZ |
17539 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
17540 | s%@GTK_LIBS@%$GTK_LIBS%g | |
8168de4c | 17541 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
698dcdb6 VZ |
17542 | s%@X_CFLAGS@%$X_CFLAGS%g |
17543 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
17544 | s%@X_LIBS@%$X_LIBS%g | |
17545 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
17546 | s%@REZ@%$REZ%g | |
17547 | s%@DEREZ@%$DEREZ%g | |
17548 | s%@LEX_STEM@%$LEX_STEM%g | |
17549 | s%@PATH_IFS@%$PATH_IFS%g | |
17550 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
17551 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
17552 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
17553 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
17554 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
17555 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
17556 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
17557 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
17558 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
17559 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
17560 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
17561 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
17562 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g | |
17563 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
17564 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
17565 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
17566 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
17567 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
17568 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
17569 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
17570 | s%@WX_ALL@%$WX_ALL%g | |
17571 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
17572 | s%@SHARED_LD@%$SHARED_LD%g | |
17573 | s%@PIC_FLAG@%$PIC_FLAG%g | |
17574 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
17575 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
17576 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
17577 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g | |
17578 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g | |
17579 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
17580 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
17581 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
17582 | s%@USE_GUI@%$USE_GUI%g | |
17583 | s%@AFMINSTALL@%$AFMINSTALL%g | |
1e6feb95 | 17584 | s%@SETUPH_DIR@%$SETUPH_DIR%g |
698dcdb6 VZ |
17585 | s%@TOOLKIT@%$TOOLKIT%g |
17586 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
17587 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
17588 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g | |
17589 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
1e6feb95 | 17590 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g |
698dcdb6 VZ |
17591 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
17592 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
17593 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
17594 | s%@GUIDIST@%$GUIDIST%g | |
17595 | s%@PORT_FILES@%$PORT_FILES%g | |
17596 | s%@DISTDIR@%$DISTDIR%g | |
17597 | s%@RPM_SPEC@%$RPM_SPEC%g | |
17598 | s%@RPM_FILES@%$RPM_FILES%g | |
17599 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
17600 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
17601 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
17602 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
17603 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
17604 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
17605 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
17606 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
17607 | s%@EXTRADEFS@%$EXTRADEFS%g | |
17608 | s%@LD_LIBS@%$LD_LIBS%g | |
17609 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g | |
17610 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
17611 | s%@RESPROGRAM@%$RESPROGRAM%g | |
17612 | s%@RESCOMP@%$RESCOMP%g | |
17613 | s%@RESFLAGS@%$RESFLAGS%g | |
17614 | s%@REZFLAGS@%$REZFLAGS%g | |
17615 | s%@DEREZFLAGS@%$DEREZFLAGS%g | |
17616 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
17617 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
17618 | s%@DLLTOOL@%$DLLTOOL%g | |
17619 | s%@AS@%$AS%g | |
17620 | s%@NM@%$NM%g | |
17621 | s%@LD@%$LD%g | |
17622 | s%@MAKEINFO@%$MAKEINFO%g | |
17623 | s%@SET_MAKE@%$SET_MAKE%g | |
17624 | s%@subdirs@%$subdirs%g | |
1e487827 | 17625 | |
1e487827 | 17626 | CEOF |
1e487827 VS |
17627 | EOF |
17628 | ||
698dcdb6 VZ |
17629 | cat >> $CONFIG_STATUS <<\EOF |
17630 | ||
17631 | # Split the substitutions into bite-sized pieces for seds with | |
17632 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
17633 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
17634 | ac_file=1 # Number of current file. | |
17635 | ac_beg=1 # First line for current file. | |
17636 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
17637 | ac_more_lines=: | |
17638 | ac_sed_cmds="" | |
17639 | while $ac_more_lines; do | |
17640 | if test $ac_beg -gt 1; then | |
17641 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
17642 | else | |
17643 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
17644 | fi | |
17645 | if test ! -s conftest.s$ac_file; then | |
17646 | ac_more_lines=false | |
17647 | rm -f conftest.s$ac_file | |
17648 | else | |
17649 | if test -z "$ac_sed_cmds"; then | |
17650 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 17651 | else |
698dcdb6 | 17652 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 17653 | fi |
698dcdb6 VZ |
17654 | ac_file=`expr $ac_file + 1` |
17655 | ac_beg=$ac_end | |
17656 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 17657 | fi |
698dcdb6 VZ |
17658 | done |
17659 | if test -z "$ac_sed_cmds"; then | |
17660 | ac_sed_cmds=cat | |
17661 | fi | |
17662 | EOF | |
10f2d63a | 17663 | |
698dcdb6 VZ |
17664 | cat >> $CONFIG_STATUS <<EOF |
17665 | ||
17666 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
17667 | src/make.env | |
17668 | src/makeprog.env | |
17669 | src/makelib.env | |
17670 | Makefile | |
17671 | "} | |
10f2d63a | 17672 | EOF |
698dcdb6 VZ |
17673 | cat >> $CONFIG_STATUS <<\EOF |
17674 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 17675 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
17676 | case "$ac_file" in |
17677 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17678 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17679 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
17680 | esac |
17681 | ||
698dcdb6 | 17682 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 17683 | |
698dcdb6 VZ |
17684 | # Remove last slash and all that follows it. Not all systems have dirname. |
17685 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
17686 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
17687 | # The file is in a subdirectory. | |
17688 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
17689 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 17690 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 17691 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
17692 | else |
17693 | ac_dir_suffix= ac_dots= | |
17694 | fi | |
17695 | ||
698dcdb6 VZ |
17696 | case "$ac_given_srcdir" in |
17697 | .) srcdir=. | |
17698 | if test -z "$ac_dots"; then top_srcdir=. | |
17699 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
17700 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 17701 | *) # Relative path. |
698dcdb6 VZ |
17702 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
17703 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
17704 | esac |
17705 | ||
698dcdb6 VZ |
17706 | case "$ac_given_INSTALL" in |
17707 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
17708 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
17709 | esac |
17710 | ||
698dcdb6 VZ |
17711 | echo creating "$ac_file" |
17712 | rm -f "$ac_file" | |
17713 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
17714 | case "$ac_file" in | |
17715 | *Makefile*) ac_comsub="1i\\ | |
17716 | # $configure_input" ;; | |
17717 | *) ac_comsub= ;; | |
17718 | esac | |
10f2d63a | 17719 | |
698dcdb6 VZ |
17720 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
17721 | sed -e "$ac_comsub | |
17722 | s%@configure_input@%$configure_input%g | |
17723 | s%@srcdir@%$srcdir%g | |
17724 | s%@top_srcdir@%$top_srcdir%g | |
17725 | s%@INSTALL@%$INSTALL%g | |
17726 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
17727 | fi; done | |
17728 | rm -f conftest.s* | |
10f2d63a VZ |
17729 | |
17730 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
17731 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
17732 | # | |
17733 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
17734 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
17735 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
17736 | ac_dC='\3' | |
17737 | ac_dD='%g' | |
17738 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
17739 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17740 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 17741 | ac_uC=' ' |
698dcdb6 VZ |
17742 | ac_uD='\4%g' |
17743 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
17744 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17745 | ac_eB='$%\1#\2define\3' | |
17746 | ac_eC=' ' | |
17747 | ac_eD='%g' | |
10f2d63a | 17748 | |
698dcdb6 VZ |
17749 | if test "${CONFIG_HEADERS+set}" != set; then |
17750 | EOF | |
17751 | cat >> $CONFIG_STATUS <<EOF | |
17752 | CONFIG_HEADERS="setup.h:setup.h.in" | |
17753 | EOF | |
17754 | cat >> $CONFIG_STATUS <<\EOF | |
17755 | fi | |
17756 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 17757 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
17758 | case "$ac_file" in |
17759 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
17760 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17761 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
17762 | esac |
17763 | ||
698dcdb6 VZ |
17764 | echo creating $ac_file |
17765 | ||
17766 | rm -f conftest.frag conftest.in conftest.out | |
17767 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
17768 | cat $ac_file_inputs > conftest.in | |
17769 | ||
17770 | EOF | |
17771 | ||
17772 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
17773 | # the proper values into config.h.in to produce config.h. And first: | |
17774 | # Protect against being on the right side of a sed subst in config.status. | |
17775 | # Protect against being in an unquoted here document in config.status. | |
17776 | rm -f conftest.vals | |
17777 | cat > conftest.hdr <<\EOF | |
17778 | s/[\\&%]/\\&/g | |
17779 | s%[\\$`]%\\&%g | |
17780 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
17781 | s%ac_d%ac_u%gp | |
17782 | s%ac_u%ac_e%gp | |
17783 | EOF | |
17784 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
17785 | rm -f conftest.hdr | |
10f2d63a VZ |
17786 | |
17787 | # This sed command replaces #undef with comments. This is necessary, for | |
17788 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
17789 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
17790 | cat >> conftest.vals <<\EOF |
17791 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
17792 | EOF |
17793 | ||
698dcdb6 VZ |
17794 | # Break up conftest.vals because some shells have a limit on |
17795 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
17796 | |
17797 | rm -f conftest.tail | |
698dcdb6 | 17798 | while : |
10f2d63a | 17799 | do |
698dcdb6 VZ |
17800 | ac_lines=`grep -c . conftest.vals` |
17801 | # grep -c gives empty output for an empty file on some AIX systems. | |
17802 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
17803 | # Write a limited-size here document to conftest.frag. | |
17804 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
17805 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 17806 | echo 'CEOF |
698dcdb6 VZ |
17807 | sed -f conftest.frag conftest.in > conftest.out |
17808 | rm -f conftest.in | |
17809 | mv conftest.out conftest.in | |
17810 | ' >> $CONFIG_STATUS | |
17811 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
17812 | rm -f conftest.vals | |
17813 | mv conftest.tail conftest.vals | |
10f2d63a | 17814 | done |
698dcdb6 VZ |
17815 | rm -f conftest.vals |
17816 | ||
17817 | cat >> $CONFIG_STATUS <<\EOF | |
17818 | rm -f conftest.frag conftest.h | |
17819 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
17820 | cat conftest.in >> conftest.h | |
17821 | rm -f conftest.in | |
17822 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
17823 | echo "$ac_file is unchanged" | |
17824 | rm -f conftest.h | |
10f2d63a | 17825 | else |
698dcdb6 VZ |
17826 | # Remove last slash and all that follows it. Not all systems have dirname. |
17827 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 17828 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
17829 | # The file is in a subdirectory. |
17830 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 17831 | fi |
698dcdb6 VZ |
17832 | rm -f $ac_file |
17833 | mv conftest.h $ac_file | |
10f2d63a | 17834 | fi |
698dcdb6 VZ |
17835 | fi; done |
17836 | ||
10f2d63a | 17837 | EOF |
698dcdb6 | 17838 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 17839 | |
1e6feb95 | 17840 | SETUPH_DIR="${SETUPH_DIR}" |
698dcdb6 VZ |
17841 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
17842 | LN_S="${LN_S}" | |
17843 | ||
17844 | ||
17845 | EOF | |
17846 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 17847 | |
6ef41520 | 17848 | if test ! -f wx${TOOLKIT_NAME}-config; then |
991a5759 VZ |
17849 | chmod +x wx-config |
17850 | mv wx-config wx${TOOLKIT_NAME}-config | |
17851 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
17852 | fi | |
665bbe97 | 17853 | |
698dcdb6 | 17854 | |
00cf1208 RR |
17855 | if test ! -d lib; then |
17856 | mkdir lib | |
17857 | fi | |
17858 | if test ! -d lib/wx; then | |
17859 | mkdir lib/wx | |
17860 | fi | |
17861 | if test ! -d lib/wx/include; then | |
17862 | mkdir lib/wx/include | |
17863 | fi | |
17864 | if test ! -d lib/wx/include/wx; then | |
17865 | mkdir lib/wx/include/wx | |
17866 | fi | |
f6bcfd97 BP |
17867 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
17868 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
17869 | fi |
17870 | if test -f setup.h; then | |
066b00aa | 17871 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 17872 | fi |
07eb77a6 | 17873 | |
698dcdb6 | 17874 | |
10f2d63a VZ |
17875 | if test ! -d include; then |
17876 | mkdir include | |
17877 | fi | |
17878 | if test ! -d include/wx; then | |
17879 | mkdir include/wx | |
17880 | fi | |
1e6feb95 VZ |
17881 | if test ! -d include/wx/${SETUPH_DIR}; then |
17882 | mkdir include/wx/${SETUPH_DIR} | |
10f2d63a | 17883 | fi |
afc31813 | 17884 | if test -f setup.h; then |
1e6feb95 | 17885 | cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h |
afc31813 | 17886 | fi |
665bbe97 | 17887 | |
698dcdb6 VZ |
17888 | |
17889 | exit 0 | |
10f2d63a VZ |
17890 | EOF |
17891 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
17892 | rm -fr confdefs* $ac_clean_files |
17893 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 17894 | |
2224580a VZ |
17895 | if test "$no_recursion" != yes; then |
17896 | ||
17897 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
17898 | ac_sub_configure_args= | |
17899 | ac_prev= | |
17900 | for ac_arg in $ac_configure_args; do | |
17901 | if test -n "$ac_prev"; then | |
17902 | ac_prev= | |
17903 | continue | |
17904 | fi | |
698dcdb6 | 17905 | case "$ac_arg" in |
2224580a VZ |
17906 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
17907 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
17908 | ac_prev=cache_file ;; | |
17909 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 17910 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
17911 | ;; |
17912 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
17913 | ac_prev=srcdir ;; | |
17914 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
17915 | ;; | |
17916 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
17917 | esac | |
17918 | done | |
17919 | ||
698dcdb6 | 17920 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
17921 | |
17922 | # Do not complain, so a configure script can configure whichever | |
17923 | # parts of a large source tree are present. | |
698dcdb6 VZ |
17924 | if test ! -d $srcdir/$ac_config_dir; then |
17925 | continue | |
17926 | fi | |
17927 | ||
17928 | echo configuring in $ac_config_dir | |
2224580a | 17929 | |
698dcdb6 | 17930 | case "$srcdir" in |
2224580a VZ |
17931 | .) ;; |
17932 | *) | |
698dcdb6 VZ |
17933 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
17934 | else | |
17935 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
17936 | fi | |
17937 | ;; | |
2224580a VZ |
17938 | esac |
17939 | ||
17940 | ac_popdir=`pwd` | |
698dcdb6 | 17941 | cd $ac_config_dir |
2224580a | 17942 | |
698dcdb6 VZ |
17943 | # A "../" for each directory in /$ac_config_dir. |
17944 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 17945 | |
698dcdb6 | 17946 | case "$srcdir" in |
2224580a VZ |
17947 | .) # No --srcdir option. We are building in place. |
17948 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
17949 | /*) # Absolute path. |
17950 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 17951 | *) # Relative path. |
698dcdb6 | 17952 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
17953 | esac |
17954 | ||
17955 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
17956 | if test -f $ac_sub_srcdir/configure; then |
17957 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
17958 | elif test -f $ac_sub_srcdir/configure.in; then |
17959 | ac_sub_configure=$ac_configure | |
17960 | else | |
698dcdb6 | 17961 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
17962 | ac_sub_configure= |
17963 | fi | |
17964 | ||
17965 | # The recursion is here. | |
17966 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 17967 | |
2224580a | 17968 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
17969 | case "$cache_file" in |
17970 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 17971 | *) # Relative path. |
698dcdb6 | 17972 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 17973 | esac |
698dcdb6 VZ |
17974 | case "$ac_given_INSTALL" in |
17975 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
17976 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
17977 | esac | |
2224580a | 17978 | |
698dcdb6 | 17979 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 17980 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
17981 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
17982 | then : | |
17983 | else | |
17984 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
17985 | fi | |
2224580a VZ |
17986 | fi |
17987 | ||
17988 | cd $ac_popdir | |
17989 | done | |
17990 | fi | |
17991 | ||
698dcdb6 | 17992 |