home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2240.zip / wxWindows-2.4.0 / configure < prev    next >
Text File  |  2003-01-04  |  717KB  |  23,247 lines

  1. #! /bin/sh
  2.  
  3. # From configure.in Id: configure.in
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  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.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. # Configure paths for GTK+
  63. # Owen Taylor     1997-2001
  64.  
  65.  
  66.  
  67. # Configure paths for GTK+
  68. # Owen Taylor     97-11-3
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77. # Guess values for system-dependent variables and create Makefiles.
  78. # Generated automatically using autoconf version 2.13 
  79. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  80. #
  81. # This configure script is free software; the Free Software Foundation
  82. # gives unlimited permission to copy, distribute and modify it.
  83.  
  84. # Defaults:
  85. ac_help=
  86. ac_default_prefix=/usr/local
  87. # Any additions from configure.in:
  88. ac_help="$ac_help
  89.   --enable-gui            use GUI classes"
  90. ac_help="$ac_help
  91.   --enable-universal      use wxWindows GUI controls instead of native ones"
  92. ac_help="$ac_help
  93.   --with-gtk              use GTK+"
  94. ac_help="$ac_help
  95.   --with-motif            use Motif/Lesstif"
  96. ac_help="$ac_help
  97.   --with-mac              use Mac OS X"
  98. ac_help="$ac_help
  99.   --with-wine             use WINE"
  100. ac_help="$ac_help
  101.   --with-msw              use MS-Windows"
  102. ac_help="$ac_help
  103.   --with-pm               use OS/2 Presentation Manager"
  104. ac_help="$ac_help
  105.   --with-mgl              use SciTech MGL"
  106. ac_help="$ac_help
  107.   --with-microwin         use MicroWindows"
  108. ac_help="$ac_help
  109.   --with-x11              use X11"
  110. ac_help="$ac_help
  111.   --enable-nanox          use NanoX"
  112. ac_help="$ac_help
  113.   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)"
  114. ac_help="$ac_help
  115.   --with-libpng           use libpng (PNG image format)"
  116. ac_help="$ac_help
  117.   --with-libjpeg          use libjpeg (JPEG file format)"
  118. ac_help="$ac_help
  119.   --with-libtiff          use libtiff (TIFF file format)"
  120. ac_help="$ac_help
  121.   --with-opengl           use OpenGL (or Mesa)"
  122. ac_help="$ac_help
  123.   --with-dmalloc          use dmalloc library (http://dmalloc.com/)"
  124. ac_help="$ac_help
  125.   --with-regex            enable support for wxRegEx class"
  126. ac_help="$ac_help
  127.   --with-zlib             use zlib for LZW compression"
  128. ac_help="$ac_help
  129.   --with-odbc             use the IODBC and wxODBC classes"
  130. ac_help="$ac_help
  131.   --enable-shared         create shared library code"
  132. ac_help="$ac_help
  133.   --enable-soname         set the DT_SONAME field in ELF shared libraries"
  134. ac_help="$ac_help
  135.   --enable-optimise       create optimised code"
  136. ac_help="$ac_help
  137.   --enable-debug          same as debug_flag and debug_info"
  138. ac_help="$ac_help
  139.   --enable-precomp        enable use of precompiled headers (Mac OS X/Darwin)"
  140. ac_help="$ac_help
  141.   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)"
  142. ac_help="$ac_help
  143.   --enable-debug_info     create code with debugging information"
  144. ac_help="$ac_help
  145.   --enable-debug_gdb      create code with extra GDB debugging information"
  146. ac_help="$ac_help
  147.   --enable-debug_cntxt    use wxDebugContext"
  148. ac_help="$ac_help
  149.   --enable-mem_tracing    create code with memory tracing"
  150. ac_help="$ac_help
  151.   --enable-profile        create code with profiling information"
  152. ac_help="$ac_help
  153.   --enable-no_rtti        create code without RTTI information"
  154. ac_help="$ac_help
  155.   --enable-no_exceptions  create code without C++ exceptions handling"
  156. ac_help="$ac_help
  157.   --enable-permissive     compile code disregarding strict ANSI"
  158. ac_help="$ac_help
  159.   --enable-no_deps        create code without dependency information"
  160. ac_help="$ac_help
  161.   --enable-compat20       enable wxWindows 2.0 compatibility"
  162. ac_help="$ac_help
  163.   --disable-compat22      disable wxWindows 2.2 compatibility"
  164. ac_help="$ac_help
  165.   --enable-rpath=DIR      output the rpath flag from wx-config"
  166. ac_help="$ac_help
  167.   --enable-intl           use internationalization system"
  168. ac_help="$ac_help
  169.   --enable-config         use wxConfig (and derived) classes"
  170. ac_help="$ac_help
  171.   --enable-protocols      use wxProtocol and derived classes"
  172. ac_help="$ac_help
  173.   --enable-ftp            use wxFTP (requires wxProtocol"
  174. ac_help="$ac_help
  175.   --enable-http           use wxHTTP (requires wxProtocol"
  176. ac_help="$ac_help
  177.   --enable-fileproto      use wxFileProto class (requires wxProtocol"
  178. ac_help="$ac_help
  179.   --enable-sockets        use socket/network classes"
  180. ac_help="$ac_help
  181.   --enable-ole            use OLE classes"
  182. ac_help="$ac_help
  183.   --enable-dataobj        use data object classes"
  184. ac_help="$ac_help
  185.   --enable-ipc            use interprocess communication (wxSocket etc.)"
  186. ac_help="$ac_help
  187.   --enable-cmdline        use wxCmdLineParser class"
  188. ac_help="$ac_help
  189.   --enable-datetime       use wxDateTime class"
  190. ac_help="$ac_help
  191.   --enable-timedate       use obsolete wxDate/wxTime classes"
  192. ac_help="$ac_help
  193.   --enable-stopwatch      use wxStopWatch class"
  194. ac_help="$ac_help
  195.   --enable-dialupman      use dialup network classes"
  196. ac_help="$ac_help
  197.   --enable-apple_ieee     use the Apple IEEE codec"
  198. ac_help="$ac_help
  199.   --enable-timer          use wxTimer class"
  200. ac_help="$ac_help
  201.   --enable-wave           use wxWave class"
  202. ac_help="$ac_help
  203.   --enable-fraction       use wxFraction class"
  204. ac_help="$ac_help
  205.   --enable-dynlib         use wxLibrary class for DLL loading"
  206. ac_help="$ac_help
  207.   --enable-dynamicloader  use (new) wxDynamicLibrary class"
  208. ac_help="$ac_help
  209.   --enable-longlong       use wxLongLong class"
  210. ac_help="$ac_help
  211.   --enable-geometry       use geometry class"
  212. ac_help="$ac_help
  213.   --enable-log            use logging system"
  214. ac_help="$ac_help
  215.   --enable-streams        use wxStream etc classes"
  216. ac_help="$ac_help
  217.   --enable-file           use wxFile classes"
  218. ac_help="$ac_help
  219.   --enable-ffile          use wxFFile classes"
  220. ac_help="$ac_help
  221.   --enable-textbuf        use wxTextBuffer class"
  222. ac_help="$ac_help
  223.   --enable-textfile       use wxTextFile class"
  224. ac_help="$ac_help
  225.   --enable-fontmap        use font encodings conversion classes"
  226. ac_help="$ac_help
  227.   --enable-unicode        compile wxString with Unicode support"
  228. ac_help="$ac_help
  229.   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)"
  230. ac_help="$ac_help
  231.   --enable-wxprintfv      use wxWindows implementation of vprintf()"
  232. ac_help="$ac_help
  233.   --enable-std_iostreams  use standard C++ stream classes"
  234. ac_help="$ac_help
  235.   --enable-filesystem     use virtual file systems classes"
  236. ac_help="$ac_help
  237.   --enable-fs_inet        use virtual HTTP/FTP filesystems"
  238. ac_help="$ac_help
  239.   --enable-fs_zip         use virtual ZIP filesystems"
  240. ac_help="$ac_help
  241.   --enable-zipstream      use wxZipInputStream"
  242. ac_help="$ac_help
  243.   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException"
  244. ac_help="$ac_help
  245.   --enable-snglinst       use wxSingleInstanceChecker class"
  246. ac_help="$ac_help
  247.   --enable-mimetype       use wxMimeTypesManager"
  248. ac_help="$ac_help
  249.   --enable-sysoptions     use wxSystemOptions"
  250. ac_help="$ac_help
  251.   --enable-url            use wxURL class"
  252. ac_help="$ac_help
  253.   --enable-protocol       use wxProtocol class"
  254. ac_help="$ac_help
  255.   --enable-protocol-http  HTTP support in wxProtocol"
  256. ac_help="$ac_help
  257.   --enable-protocol-ftp   FTP support in wxProtocol"
  258. ac_help="$ac_help
  259.   --enable-protocol-file  FILE support in wxProtocol"
  260. ac_help="$ac_help
  261.   --enable-threads        use threads"
  262. ac_help="$ac_help
  263.   --enable-docview        use document view architecture"
  264. ac_help="$ac_help
  265.   --enable-help           use help subsystem"
  266. ac_help="$ac_help
  267.   --enable-mshtmlhelp     use MS HTML Help (win32)"
  268. ac_help="$ac_help
  269.   --enable-html           use wxHTML sub-library"
  270. ac_help="$ac_help
  271.   --enable-htmlhelp       use wxHTML-based help"
  272. ac_help="$ac_help
  273.   --enable-constraints    use layout-constraints system"
  274. ac_help="$ac_help
  275.   --enable-printarch      use printing architecture"
  276. ac_help="$ac_help
  277.   --enable-mdi            use multiple document interface architecture"
  278. ac_help="$ac_help
  279.   --enable-loggui         use standard GUI logger"
  280. ac_help="$ac_help
  281.   --enable-logwin         use wxLogWindow"
  282. ac_help="$ac_help
  283.   --enable-logdialog      use wxLogDialog"
  284. ac_help="$ac_help
  285.   --enable-postscript     use wxPostscriptDC device context (default for gtk+)"
  286. ac_help="$ac_help
  287.   --enable-prologio       use Prolog IO library"
  288. ac_help="$ac_help
  289.   --enable-resources      use wxWindows resources"
  290. ac_help="$ac_help
  291.   --enable-xresources     use X resources for save (default for gtk+)"
  292. ac_help="$ac_help
  293.   --enable-clipboard      use wxClipboard classes"
  294. ac_help="$ac_help
  295.   --enable-dnd            use Drag'n'Drop classes"
  296. ac_help="$ac_help
  297.   --enable-metafile       use win32 metafiles"
  298. ac_help="$ac_help
  299.   --enable-treelayout     use wxTreeLayout classes"
  300. ac_help="$ac_help
  301.   --enable-controls       use all usual controls"
  302. ac_help="$ac_help
  303.   --enable-accel          use accelerators"
  304. ac_help="$ac_help
  305.   --enable-button         use wxButton class"
  306. ac_help="$ac_help
  307.   --enable-bmpbutton      use wxBitmapButton class"
  308. ac_help="$ac_help
  309.   --enable-calendar       use wxCalendarCtrl class"
  310. ac_help="$ac_help
  311.   --enable-caret          use wxCaret class"
  312. ac_help="$ac_help
  313.   --enable-checkbox       use wxCheckBox class"
  314. ac_help="$ac_help
  315.   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class"
  316. ac_help="$ac_help
  317.   --enable-choice         use wxChoice class"
  318. ac_help="$ac_help
  319.   --enable-combobox       use wxComboBox classes"
  320. ac_help="$ac_help
  321.   --enable-gauge          use wxGauge class"
  322. ac_help="$ac_help
  323.   --enable-grid           use wxGrid class"
  324. ac_help="$ac_help
  325.   --enable-newgrid        use new wxGrid class"
  326. ac_help="$ac_help
  327.   --enable-imaglist       use wxImageList class"
  328. ac_help="$ac_help
  329.   --enable-listbox        use wxListBox class"
  330. ac_help="$ac_help
  331.   --enable-listctrl       use wxListCtrl class"
  332. ac_help="$ac_help
  333.   --enable-notebook       use wxNotebook class"
  334. ac_help="$ac_help
  335.   --enable-propsheet      use wxPropertySheet class"
  336. ac_help="$ac_help
  337.   --enable-radiobox       use wxRadioBox class"
  338. ac_help="$ac_help
  339.   --enable-radiobtn       use wxRadioButton class"
  340. ac_help="$ac_help
  341.   --enable-sash           use wxSashWindow class"
  342. ac_help="$ac_help
  343.   --enable-scrollbar      use wxScrollBar class and scrollable windows"
  344. ac_help="$ac_help
  345.   --enable-slider         use wxSlider class"
  346. ac_help="$ac_help
  347.   --enable-spinbtn        use wxSpinButton class"
  348. ac_help="$ac_help
  349.   --enable-spinctrl       use wxSpinCtrl class"
  350. ac_help="$ac_help
  351.   --enable-splitter       use wxSplitterWindow class"
  352. ac_help="$ac_help
  353.   --enable-statbmp        use wxStaticBitmap class"
  354. ac_help="$ac_help
  355.   --enable-statbox        use wxStaticBox class"
  356. ac_help="$ac_help
  357.   --enable-statline       use wxStaticLine class"
  358. ac_help="$ac_help
  359.   --enable-stattext       use wxStaticText class"
  360. ac_help="$ac_help
  361.   --enable-statusbar      use wxStatusBar class"
  362. ac_help="$ac_help
  363.   --enable-tabdialog      use wxTabControl class"
  364. ac_help="$ac_help
  365.   --enable-textctrl       use wxTextCtrl class"
  366. ac_help="$ac_help
  367.   --enable-togglebtn      use wxToggleButton class"
  368. ac_help="$ac_help
  369.   --enable-toolbar        use wxToolBar class"
  370. ac_help="$ac_help
  371.   --enable-tbarnative     use native wxToolBar class"
  372. ac_help="$ac_help
  373.   --enable-tbarsmpl       use wxToolBarSimple class"
  374. ac_help="$ac_help
  375.   --enable-treectrl       use wxTreeCtrl class"
  376. ac_help="$ac_help
  377.   --enable-tipwindow      use wxTipWindow class"
  378. ac_help="$ac_help
  379.   --enable-popupwin       use wxPopUpWindow class"
  380. ac_help="$ac_help
  381.   --enable-commondlg      use all common dialogs"
  382. ac_help="$ac_help
  383.   --enable-choicedlg      use wxChoiceDialog"
  384. ac_help="$ac_help
  385.   --enable-coldlg         use wxColourDialog"
  386. ac_help="$ac_help
  387.   --enable-filedlg        use wxFileDialog"
  388. ac_help="$ac_help
  389.   --enable-finddlg        use wxFindReplaceDialog"
  390. ac_help="$ac_help
  391.   --enable-fontdlg        use wxFontDialog"
  392. ac_help="$ac_help
  393.   --enable-dirdlg         use wxDirDialog"
  394. ac_help="$ac_help
  395.   --enable-msgdlg         use wxMessageDialog"
  396. ac_help="$ac_help
  397.   --enable-numberdlg      use wxNumberEntryDialog"
  398. ac_help="$ac_help
  399.   --enable-splash         use wxSplashScreen"
  400. ac_help="$ac_help
  401.   --enable-textdlg        use wxTextDialog"
  402. ac_help="$ac_help
  403.   --enable-tipdlg         use startup tips"
  404. ac_help="$ac_help
  405.   --enable-progressdlg    use wxProgressDialog"
  406. ac_help="$ac_help
  407.   --enable-wizarddlg      use wxWizard"
  408. ac_help="$ac_help
  409.   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes"
  410. ac_help="$ac_help
  411.   --enable-miniframe      use wxMiniFrame class"
  412. ac_help="$ac_help
  413.   --enable-tooltips       use wxToolTip class"
  414. ac_help="$ac_help
  415.   --enable-splines        use spline drawing code"
  416. ac_help="$ac_help
  417.   --enable-validators     use wxValidator and derived classes"
  418. ac_help="$ac_help
  419.   --enable-busyinfo       use wxBusyInfo"
  420. ac_help="$ac_help
  421.   --enable-joystick       use wxJoystick (Linux only)"
  422. ac_help="$ac_help
  423.   --enable-metafiles      use wxMetaFile (Windows only)"
  424. ac_help="$ac_help
  425.   --enable-dragimage      use wxDragImage"
  426. ac_help="$ac_help
  427.   --enable-palette        use wxPalette class"
  428. ac_help="$ac_help
  429.   --enable-image          use wxImage class"
  430. ac_help="$ac_help
  431.   --enable-gif            use gif images (GIF file format)"
  432. ac_help="$ac_help
  433.   --enable-pcx            use pcx images (PCX file format)"
  434. ac_help="$ac_help
  435.   --enable-iff            use iff images (IFF file format)"
  436. ac_help="$ac_help
  437.   --enable-pnm            use pnm images (PNM file format)"
  438. ac_help="$ac_help
  439.   --enable-xpm            use xpm images (XPM file format)"
  440. ac_help="$ac_help
  441.   --enable-icocur         use Windows ICO and CUR formats"
  442. ac_help="$ac_help
  443.   --disable-largefile     omit support for large files"
  444. ac_help="$ac_help
  445.   --disable-gtktest       do not try to compile and run a test GTK+ program"
  446. ac_help="$ac_help
  447.   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
  448. ac_help="$ac_help
  449.   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
  450. ac_help="$ac_help
  451.   --disable-gtktest       Do not try to compile and run a test GTK program"
  452. ac_help="$ac_help
  453.   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
  454. ac_help="$ac_help
  455.   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
  456. ac_help="$ac_help
  457.   --disable-gtktest       Do not try to compile and run a test GTK program"
  458. ac_help="$ac_help
  459.   --with-x                use the X Window System"
  460. ac_help="$ac_help
  461.   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
  462.  
  463. # Initialize some variables set by options.
  464. # The variables have the same names as the options, with
  465. # dashes changed to underlines.
  466. build=NONE
  467. cache_file=./config.cache
  468. exec_prefix=NONE
  469. host=NONE
  470. no_create=
  471. nonopt=NONE
  472. no_recursion=
  473. prefix=NONE
  474. program_prefix=NONE
  475. program_suffix=NONE
  476. program_transform_name=s,x,x,
  477. silent=
  478. site=
  479. srcdir=
  480. target=NONE
  481. verbose=
  482. x_includes=NONE
  483. x_libraries=NONE
  484. bindir='${exec_prefix}/bin'
  485. sbindir='${exec_prefix}/sbin'
  486. libexecdir='${exec_prefix}/libexec'
  487. datadir='${prefix}/share'
  488. sysconfdir='${prefix}/etc'
  489. sharedstatedir='${prefix}/com'
  490. localstatedir='${prefix}/var'
  491. libdir='${exec_prefix}/lib'
  492. includedir='${prefix}/include'
  493. oldincludedir='/usr/include'
  494. infodir='${prefix}/info'
  495. mandir='${prefix}/man'
  496.  
  497. # Initialize some other variables.
  498. subdirs=
  499. MFLAGS= MAKEFLAGS=
  500. SHELL=${CONFIG_SHELL-/bin/sh}
  501. # Maximum number of lines to put in a shell here document.
  502. ac_max_here_lines=12
  503.  
  504. ac_prev=
  505. for ac_option
  506. do
  507.  
  508.   # If the previous option needs an argument, assign it.
  509.   if test -n "$ac_prev"; then
  510.     eval "$ac_prev=\$ac_option"
  511.     ac_prev=
  512.     continue
  513.   fi
  514.  
  515.   case "$ac_option" in
  516.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  517.   *) ac_optarg= ;;
  518.   esac
  519.  
  520.   # Accept the important Cygnus configure options, so we can diagnose typos.
  521.  
  522.   case "$ac_option" in
  523.  
  524.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  525.     ac_prev=bindir ;;
  526.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  527.     bindir="$ac_optarg" ;;
  528.  
  529.   -build | --build | --buil | --bui | --bu)
  530.     ac_prev=build ;;
  531.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  532.     build="$ac_optarg" ;;
  533.  
  534.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  535.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  536.     ac_prev=cache_file ;;
  537.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  538.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  539.     cache_file="$ac_optarg" ;;
  540.  
  541.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  542.     ac_prev=datadir ;;
  543.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  544.   | --da=*)
  545.     datadir="$ac_optarg" ;;
  546.  
  547.   -disable-* | --disable-*)
  548.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  549.     # Reject names that are not valid shell variable names.
  550.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  551.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  552.     fi
  553.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  554.     eval "enable_${ac_feature}=no" ;;
  555.  
  556.   -enable-* | --enable-*)
  557.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  558.     # Reject names that are not valid shell variable names.
  559.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  560.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  561.     fi
  562.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  563.     case "$ac_option" in
  564.       *=*) ;;
  565.       *) ac_optarg=yes ;;
  566.     esac
  567.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  568.  
  569.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  570.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  571.   | --exec | --exe | --ex)
  572.     ac_prev=exec_prefix ;;
  573.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  574.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  575.   | --exec=* | --exe=* | --ex=*)
  576.     exec_prefix="$ac_optarg" ;;
  577.  
  578.   -gas | --gas | --ga | --g)
  579.     # Obsolete; use --with-gas.
  580.     with_gas=yes ;;
  581.  
  582.   -help | --help | --hel | --he)
  583.     # Omit some internal or obsolete options to make the list less imposing.
  584.     # This message is too long to be a string in the A/UX 3.1 sh.
  585.     cat << EOF
  586. Usage: configure [options] [host]
  587. Options: [defaults in brackets after descriptions]
  588. Configuration:
  589.   --cache-file=FILE       cache test results in FILE
  590.   --help                  print this message
  591.   --no-create             do not create output files
  592.   --quiet, --silent       do not print \`checking...' messages
  593.   --version               print the version of autoconf that created configure
  594. Directory and file names:
  595.   --prefix=PREFIX         install architecture-independent files in PREFIX
  596.                           [$ac_default_prefix]
  597.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  598.                           [same as prefix]
  599.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  600.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  601.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  602.   --datadir=DIR           read-only architecture-independent data in DIR
  603.                           [PREFIX/share]
  604.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  605.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  606.                           [PREFIX/com]
  607.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  608.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  609.   --includedir=DIR        C header files in DIR [PREFIX/include]
  610.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  611.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  612.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  613.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  614.   --program-prefix=PREFIX prepend PREFIX to installed program names
  615.   --program-suffix=SUFFIX append SUFFIX to installed program names
  616.   --program-transform-name=PROGRAM
  617.                           run sed PROGRAM on installed program names
  618. EOF
  619.     cat << EOF
  620. Host type:
  621.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  622.   --host=HOST             configure for HOST [guessed]
  623.   --target=TARGET         configure for TARGET [TARGET=HOST]
  624. Features and packages:
  625.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  626.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  627.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  628.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  629.   --x-includes=DIR        X include files are in DIR
  630.   --x-libraries=DIR       X library files are in DIR
  631. EOF
  632.     if test -n "$ac_help"; then
  633.       echo "--enable and --with options recognized:$ac_help"
  634.     fi
  635.     exit 0 ;;
  636.  
  637.   -host | --host | --hos | --ho)
  638.     ac_prev=host ;;
  639.   -host=* | --host=* | --hos=* | --ho=*)
  640.     host="$ac_optarg" ;;
  641.  
  642.   -includedir | --includedir | --includedi | --included | --include \
  643.   | --includ | --inclu | --incl | --inc)
  644.     ac_prev=includedir ;;
  645.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  646.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  647.     includedir="$ac_optarg" ;;
  648.  
  649.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  650.     ac_prev=infodir ;;
  651.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  652.     infodir="$ac_optarg" ;;
  653.  
  654.   -libdir | --libdir | --libdi | --libd)
  655.     ac_prev=libdir ;;
  656.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  657.     libdir="$ac_optarg" ;;
  658.  
  659.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  660.   | --libexe | --libex | --libe)
  661.     ac_prev=libexecdir ;;
  662.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  663.   | --libexe=* | --libex=* | --libe=*)
  664.     libexecdir="$ac_optarg" ;;
  665.  
  666.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  667.   | --localstate | --localstat | --localsta | --localst \
  668.   | --locals | --local | --loca | --loc | --lo)
  669.     ac_prev=localstatedir ;;
  670.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  671.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  672.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  673.     localstatedir="$ac_optarg" ;;
  674.  
  675.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  676.     ac_prev=mandir ;;
  677.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  678.     mandir="$ac_optarg" ;;
  679.  
  680.   -nfp | --nfp | --nf)
  681.     # Obsolete; use --without-fp.
  682.     with_fp=no ;;
  683.  
  684.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  685.   | --no-cr | --no-c)
  686.     no_create=yes ;;
  687.  
  688.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  689.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  690.     no_recursion=yes ;;
  691.  
  692.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  693.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  694.   | --oldin | --oldi | --old | --ol | --o)
  695.     ac_prev=oldincludedir ;;
  696.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  697.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  698.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  699.     oldincludedir="$ac_optarg" ;;
  700.  
  701.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  702.     ac_prev=prefix ;;
  703.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  704.     prefix="$ac_optarg" ;;
  705.  
  706.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  707.   | --program-pre | --program-pr | --program-p)
  708.     ac_prev=program_prefix ;;
  709.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  710.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  711.     program_prefix="$ac_optarg" ;;
  712.  
  713.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  714.   | --program-suf | --program-su | --program-s)
  715.     ac_prev=program_suffix ;;
  716.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  717.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  718.     program_suffix="$ac_optarg" ;;
  719.  
  720.   -program-transform-name | --program-transform-name \
  721.   | --program-transform-nam | --program-transform-na \
  722.   | --program-transform-n | --program-transform- \
  723.   | --program-transform | --program-transfor \
  724.   | --program-transfo | --program-transf \
  725.   | --program-trans | --program-tran \
  726.   | --progr-tra | --program-tr | --program-t)
  727.     ac_prev=program_transform_name ;;
  728.   -program-transform-name=* | --program-transform-name=* \
  729.   | --program-transform-nam=* | --program-transform-na=* \
  730.   | --program-transform-n=* | --program-transform-=* \
  731.   | --program-transform=* | --program-transfor=* \
  732.   | --program-transfo=* | --program-transf=* \
  733.   | --program-trans=* | --program-tran=* \
  734.   | --progr-tra=* | --program-tr=* | --program-t=*)
  735.     program_transform_name="$ac_optarg" ;;
  736.  
  737.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  738.   | -silent | --silent | --silen | --sile | --sil)
  739.     silent=yes ;;
  740.  
  741.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  742.     ac_prev=sbindir ;;
  743.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  744.   | --sbi=* | --sb=*)
  745.     sbindir="$ac_optarg" ;;
  746.  
  747.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  748.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  749.   | --sharedst | --shareds | --shared | --share | --shar \
  750.   | --sha | --sh)
  751.     ac_prev=sharedstatedir ;;
  752.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  753.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  754.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  755.   | --sha=* | --sh=*)
  756.     sharedstatedir="$ac_optarg" ;;
  757.  
  758.   -site | --site | --sit)
  759.     ac_prev=site ;;
  760.   -site=* | --site=* | --sit=*)
  761.     site="$ac_optarg" ;;
  762.  
  763.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  764.     ac_prev=srcdir ;;
  765.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  766.     srcdir="$ac_optarg" ;;
  767.  
  768.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  769.   | --syscon | --sysco | --sysc | --sys | --sy)
  770.     ac_prev=sysconfdir ;;
  771.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  772.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  773.     sysconfdir="$ac_optarg" ;;
  774.  
  775.   -target | --target | --targe | --targ | --tar | --ta | --t)
  776.     ac_prev=target ;;
  777.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  778.     target="$ac_optarg" ;;
  779.  
  780.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  781.     verbose=yes ;;
  782.  
  783.   -version | --version | --versio | --versi | --vers)
  784.     echo "configure generated by autoconf version 2.13"
  785.     exit 0 ;;
  786.  
  787.   -with-* | --with-*)
  788.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  789.     # Reject names that are not valid shell variable names.
  790.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  791.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  792.     fi
  793.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  794.     case "$ac_option" in
  795.       *=*) ;;
  796.       *) ac_optarg=yes ;;
  797.     esac
  798.     eval "with_${ac_package}='$ac_optarg'" ;;
  799.  
  800.   -without-* | --without-*)
  801.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  802.     # Reject names that are not valid shell variable names.
  803.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  804.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  805.     fi
  806.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  807.     eval "with_${ac_package}=no" ;;
  808.  
  809.   --x)
  810.     # Obsolete; use --with-x.
  811.     with_x=yes ;;
  812.  
  813.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  814.   | --x-incl | --x-inc | --x-in | --x-i)
  815.     ac_prev=x_includes ;;
  816.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  817.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  818.     x_includes="$ac_optarg" ;;
  819.  
  820.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  821.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  822.     ac_prev=x_libraries ;;
  823.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  824.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  825.     x_libraries="$ac_optarg" ;;
  826.  
  827.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  828.     ;;
  829.  
  830.   *)
  831.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  832.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  833.     fi
  834.     if test "x$nonopt" != xNONE; then
  835.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  836.     fi
  837.     nonopt="$ac_option"
  838.     ;;
  839.  
  840.   esac
  841. done
  842.  
  843. if test -n "$ac_prev"; then
  844.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  845. fi
  846.  
  847. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  848.  
  849. # File descriptor usage:
  850. # 0 standard input
  851. # 1 file creation
  852. # 2 errors and warnings
  853. # 3 some systems may open it to /dev/tty
  854. # 4 used on the Kubota Titan
  855. # 6 checking for... messages and results
  856. # 5 compiler messages saved in config.log
  857. if test "$silent" = yes; then
  858.   exec 6>/dev/null
  859. else
  860.   exec 6>&1
  861. fi
  862. exec 5>./config.log
  863.  
  864. echo "\
  865. This file contains any messages produced by compilers while
  866. running configure, to aid debugging if configure makes a mistake.
  867. " 1>&5
  868.  
  869. # Strip out --no-create and --no-recursion so they do not pile up.
  870. # Also quote any args containing shell metacharacters.
  871. ac_configure_args=
  872. for ac_arg
  873. do
  874.   case "$ac_arg" in
  875.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  876.   | --no-cr | --no-c) ;;
  877.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  878.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  879.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  880.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  881.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  882.   esac
  883. done
  884.  
  885. # NLS nuisances.
  886. # Only set these to C if already set.  These must not be set unconditionally
  887. # because not all systems understand e.g. LANG=C (notably SCO).
  888. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  889. # Non-C LC_CTYPE values break the ctype check.
  890. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  891. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  892. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  893. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  894.  
  895. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  896. rm -rf conftest* confdefs.h
  897. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  898. echo > confdefs.h
  899.  
  900. # A filename unique to this package, relative to the directory that
  901. # configure is in, which we can look for to find out if srcdir is correct.
  902. ac_unique_file=wx-config.in
  903.  
  904. # Find the source files, if location was not specified.
  905. if test -z "$srcdir"; then
  906.   ac_srcdir_defaulted=yes
  907.   # Try the directory containing this script, then its parent.
  908.   ac_prog=$0
  909.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  910.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  911.   srcdir=$ac_confdir
  912.   if test ! -r $srcdir/$ac_unique_file; then
  913.     srcdir=..
  914.   fi
  915. else
  916.   ac_srcdir_defaulted=no
  917. fi
  918. if test ! -r $srcdir/$ac_unique_file; then
  919.   if test "$ac_srcdir_defaulted" = yes; then
  920.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  921.   else
  922.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  923.   fi
  924. fi
  925. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  926.  
  927. # Prefer explicitly selected file to automatically selected ones.
  928. if test -z "$CONFIG_SITE"; then
  929.   if test "x$prefix" != xNONE; then
  930.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  931.   else
  932.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  933.   fi
  934. fi
  935. for ac_site_file in $CONFIG_SITE; do
  936.   if test -r "$ac_site_file"; then
  937.     echo "loading site script $ac_site_file"
  938.     . "$ac_site_file"
  939.   fi
  940. done
  941.  
  942. if test -r "$cache_file"; then
  943.   echo "loading cache $cache_file"
  944.   . $cache_file
  945. else
  946.   echo "creating cache $cache_file"
  947.   > $cache_file
  948. fi
  949.  
  950. ac_ext=c
  951. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  952. ac_cpp='$CPP $CPPFLAGS'
  953. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  954. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  955. cross_compiling=$ac_cv_prog_cc_cross
  956.  
  957. ac_exeext=
  958. ac_objext=o
  959. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  960.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  961.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  962.     ac_n= ac_c='
  963. ' ac_t='    '
  964.   else
  965.     ac_n=-n ac_c= ac_t=
  966.   fi
  967. else
  968.   ac_n= ac_c='\c' ac_t=
  969. fi
  970.  
  971. echo $ac_n "checking for path separator""... $ac_c" 1>&6
  972. echo "configure:973: checking for path separator" >&5
  973. # Filter path to get backslahes into forwardslashes
  974. case "`uname -s 2> /dev/null`" in
  975. OS/2)
  976.   : ${CC=gcc.exe}
  977.   : ${MAKE=make}
  978.   : ${CXX=gcc.exe}
  979.   : ${CPP="gcc.exe -E"}
  980.   : ${CFLAGS="-O2 -m486 -Zmt"}
  981.   : ${CXXFLAGS="-O2 -m486 -Zmt"}
  982.   : ${LDFLAGS="-s -Zmt -Zcrtdll -Zsysv-signals -Zbin-files"}
  983.   : ${CONFIG_SHELL=sh.exe}
  984.   : ${AR="ar.exe"}
  985.   : ${LD="ld.exe"}
  986.   : ${NM=nm.exe}
  987.   : ${RANLIB="ar.exe s"}
  988.   SHELL=${CONFIG_SHELL}
  989.   PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
  990.   PATH_IFS=';'
  991.   ac_cv_emxos2=yes
  992.   ;;
  993. *)
  994.   PATH_IFS=':'
  995.   ;;
  996. esac
  997. echo "$ac_t""${PATH_IFS}" 1>&6
  998.  
  999. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  1000. echo "configure:1001: checking for Cygwin environment" >&5
  1001. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  1002.   echo $ac_n "(cached) $ac_c" 1>&6
  1003. else
  1004.   cat > conftest.$ac_ext <<EOF
  1005. #line 1006 "configure"
  1006. #include "confdefs.h"
  1007.  
  1008. int main() {
  1009.  
  1010. #ifndef __CYGWIN__
  1011. #define __CYGWIN__ __CYGWIN32__
  1012. #endif
  1013. return __CYGWIN__;
  1014. ; return 0; }
  1015. EOF
  1016. if { (eval echo configure:1017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1017.   rm -rf conftest*
  1018.   ac_cv_cygwin=yes
  1019. else
  1020.   echo "configure: failed program was:" >&5
  1021.   cat conftest.$ac_ext >&5
  1022.   rm -rf conftest*
  1023.   ac_cv_cygwin=no
  1024. fi
  1025. rm -f conftest*
  1026. rm -f conftest*
  1027. fi
  1028.  
  1029. echo "$ac_t""$ac_cv_cygwin" 1>&6
  1030. CYGWIN=
  1031. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  1032. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  1033. echo "configure:1034: checking for mingw32 environment" >&5
  1034. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  1035.   echo $ac_n "(cached) $ac_c" 1>&6
  1036. else
  1037.   cat > conftest.$ac_ext <<EOF
  1038. #line 1039 "configure"
  1039. #include "confdefs.h"
  1040.  
  1041. int main() {
  1042. return __MINGW32__;
  1043. ; return 0; }
  1044. EOF
  1045. if { (eval echo configure:1046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1046.   rm -rf conftest*
  1047.   ac_cv_mingw32=yes
  1048. else
  1049.   echo "configure: failed program was:" >&5
  1050.   cat conftest.$ac_ext >&5
  1051.   rm -rf conftest*
  1052.   ac_cv_mingw32=no
  1053. fi
  1054. rm -f conftest*
  1055. rm -f conftest*
  1056. fi
  1057.  
  1058. echo "$ac_t""$ac_cv_mingw32" 1>&6
  1059. MINGW32=
  1060. test "$ac_cv_mingw32" = yes && MINGW32=yes
  1061. echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
  1062. echo "configure:1063: checking for EMX/OS2 environment" >&5
  1063. if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
  1064.   echo $ac_n "(cached) $ac_c" 1>&6
  1065. else
  1066.   : ${CC=gcc.exe}
  1067. cat > conftest.$ac_ext <<EOF
  1068. #line 1069 "configure"
  1069. #include "confdefs.h"
  1070.  
  1071. int main() {
  1072. return __EMX__;
  1073. ; return 0; }
  1074. EOF
  1075. if { (eval echo configure:1076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1076.   rm -rf conftest*
  1077.   ac_cv_emxos2=yes
  1078. else
  1079.   echo "configure: failed program was:" >&5
  1080.   cat conftest.$ac_ext >&5
  1081.   rm -rf conftest*
  1082.   ac_cv_emxos2=no
  1083. fi
  1084. rm -f conftest*
  1085. rm -f conftest*
  1086. fi
  1087.  
  1088. echo "$ac_t""$ac_cv_emxos2" 1>&6
  1089. if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
  1090.   echo $ac_n "(cached) $ac_c" 1>&6
  1091. else
  1092.   if test "$ac_cv_emxos2" = yes ; then
  1093.   ac_cv_libpre=
  1094. else
  1095.   ac_cv_libpre=lib
  1096. fi
  1097.  
  1098. fi
  1099.  
  1100. EMXOS2=
  1101. test "$ac_cv_emxos2" = yes && EMXOS2=yes
  1102.  
  1103.  
  1104.  
  1105. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  1106. echo "configure:1107: checking for executable suffix" >&5
  1107. if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  1108.   echo $ac_n "(cached) $ac_c" 1>&6
  1109. else
  1110.   if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
  1111.   ac_cv_exeext=.exe
  1112. else
  1113.   rm -f conftest*
  1114.   echo 'int main () { return 0; }' > conftest.$ac_ext
  1115.   ac_cv_exeext=
  1116.   if { (eval echo configure:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1117.     for file in conftest.*; do
  1118.       case $file in
  1119.       *.c | *.o | *.obj) ;;
  1120.       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  1121.       esac
  1122.     done
  1123.   else
  1124.     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  1125.   fi
  1126.   rm -f conftest*
  1127.   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  1128. fi
  1129. fi
  1130.  
  1131. EXEEXT=""
  1132. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  1133. echo "$ac_t""${ac_cv_exeext}" 1>&6
  1134. ac_exeext=$EXEEXT
  1135.  
  1136.  
  1137.  
  1138. ac_aux_dir=
  1139. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1140.   if test -f $ac_dir/install-sh; then
  1141.     ac_aux_dir=$ac_dir
  1142.     ac_install_sh="$ac_aux_dir/install-sh -c"
  1143.     break
  1144.   elif test -f $ac_dir/install.sh; then
  1145.     ac_aux_dir=$ac_dir
  1146.     ac_install_sh="$ac_aux_dir/install.sh -c"
  1147.     break
  1148.   fi
  1149. done
  1150. if test -z "$ac_aux_dir"; then
  1151.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1152. fi
  1153. ac_config_guess=$ac_aux_dir/config.guess
  1154. ac_config_sub=$ac_aux_dir/config.sub
  1155. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1156.  
  1157.  
  1158. # Do some error checking and defaulting for the host and target type.
  1159. # The inputs are:
  1160. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  1161. #
  1162. # The rules are:
  1163. # 1. You are not allowed to specify --host, --target, and nonopt at the
  1164. #    same time.
  1165. # 2. Host defaults to nonopt.
  1166. # 3. If nonopt is not specified, then host defaults to the current host,
  1167. #    as determined by config.guess.
  1168. # 4. Target and build default to nonopt.
  1169. # 5. If nonopt is not specified, then target and build default to host.
  1170.  
  1171. # The aliases save the names the user supplied, while $host etc.
  1172. # will get canonicalized.
  1173. case $host---$target---$nonopt in
  1174. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  1175. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  1176. esac
  1177.  
  1178.  
  1179. # Make sure we can run config.sub.
  1180. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1181. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1182. fi
  1183.  
  1184. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1185. echo "configure:1186: checking host system type" >&5
  1186.  
  1187. host_alias=$host
  1188. case "$host_alias" in
  1189. NONE)
  1190.   case $nonopt in
  1191.   NONE)
  1192.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  1193.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1194.     fi ;;
  1195.   *) host_alias=$nonopt ;;
  1196.   esac ;;
  1197. esac
  1198.  
  1199. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  1200. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1201. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1202. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1203. echo "$ac_t""$host" 1>&6
  1204.  
  1205. echo $ac_n "checking target system type""... $ac_c" 1>&6
  1206. echo "configure:1207: checking target system type" >&5
  1207.  
  1208. target_alias=$target
  1209. case "$target_alias" in
  1210. NONE)
  1211.   case $nonopt in
  1212.   NONE) target_alias=$host_alias ;;
  1213.   *) target_alias=$nonopt ;;
  1214.   esac ;;
  1215. esac
  1216.  
  1217. target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  1218. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1219. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1220. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1221. echo "$ac_t""$target" 1>&6
  1222.  
  1223. echo $ac_n "checking build system type""... $ac_c" 1>&6
  1224. echo "configure:1225: checking build system type" >&5
  1225.  
  1226. build_alias=$build
  1227. case "$build_alias" in
  1228. NONE)
  1229.   case $nonopt in
  1230.   NONE) build_alias=$host_alias ;;
  1231.   *) build_alias=$nonopt ;;
  1232.   esac ;;
  1233. esac
  1234.  
  1235. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  1236. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1237. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1238. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1239. echo "$ac_t""$build" 1>&6
  1240.  
  1241. test "$host_alias" != "$target_alias" &&
  1242.   test "$program_prefix$program_suffix$program_transform_name" = \
  1243.     NONENONEs,x,x, &&
  1244.   program_prefix=${target_alias}-
  1245.  
  1246.  
  1247.  
  1248. WX_MAJOR_VERSION_NUMBER=2
  1249. WX_MINOR_VERSION_NUMBER=4
  1250. WX_RELEASE_NUMBER=0
  1251.  
  1252. WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
  1253. WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
  1254.  
  1255. WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
  1256.  
  1257. WX_CURRENT=0
  1258. WX_REVISION=0
  1259. WX_AGE=0
  1260.  
  1261.  
  1262.  
  1263. USE_UNIX=1
  1264. USE_WIN32=0
  1265. USE_DOS=0
  1266. USE_BEOS=0
  1267. USE_MAC=0
  1268.  
  1269. USE_LINUX=
  1270. USE_SGI=
  1271. USE_HPUX=
  1272. USE_SYSV=
  1273. USE_SVR4=
  1274. USE_AIX=
  1275. USE_SUN=
  1276. USE_SOLARIS=
  1277. USE_SUNOS=
  1278. USE_ALPHA=
  1279. USE_OSF=
  1280. USE_BSD=
  1281. USE_DARWIN=
  1282. USE_FREEBSD=
  1283. USE_OPENBSD=
  1284. USE_NETBSD=
  1285. USE_VMS=
  1286. USE_ULTRIX=
  1287. USE_DATA_GENERAL=
  1288.  
  1289. NEEDS_D_REENTRANT_FOR_R_FUNCS=0
  1290.  
  1291. ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
  1292.  
  1293. DEFAULT_wxUSE_GTK=0
  1294. DEFAULT_wxUSE_MAC=0
  1295. DEFAULT_wxUSE_MGL=0
  1296. DEFAULT_wxUSE_MICROWIN=0
  1297. DEFAULT_wxUSE_MOTIF=0
  1298. DEFAULT_wxUSE_MSW=0
  1299. DEFAULT_wxUSE_PM=0
  1300. DEFAULT_wxUSE_WINE=0
  1301. DEFAULT_wxUSE_X11=0
  1302.  
  1303. DEFAULT_DEFAULT_wxUSE_GTK=0
  1304. DEFAULT_DEFAULT_wxUSE_MAC=0
  1305. DEFAULT_DEFAULT_wxUSE_MGL=0
  1306. DEFAULT_DEFAULT_wxUSE_MICROWIN=0
  1307. DEFAULT_DEFAULT_wxUSE_MOTIF=0
  1308. DEFAULT_DEFAULT_wxUSE_MSW=0
  1309. DEFAULT_DEFAULT_wxUSE_PM=0
  1310. DEFAULT_DEFAULT_wxUSE_WINE=0
  1311. DEFAULT_DEFAULT_wxUSE_X11=0
  1312.  
  1313. PROGRAM_EXT=
  1314. SO_SUFFIX=so
  1315.  
  1316. case "${host}" in
  1317.   *-hp-hpux* )
  1318.     USE_HPUX=1
  1319.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1320.     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
  1321.     SO_SUFFIX=sl
  1322.     cat >> confdefs.h <<\EOF
  1323. #define __HPUX__ 1
  1324. EOF
  1325.  
  1326.   ;;
  1327.   *-*-linux* )
  1328.     USE_LINUX=1
  1329.     cat >> confdefs.h <<\EOF
  1330. #define __LINUX__ 1
  1331. EOF
  1332.  
  1333.     TMP=`uname -m`
  1334.     if test "x$TMP" = "xalpha"; then
  1335.       USE_ALPHA=1
  1336.       cat >> confdefs.h <<\EOF
  1337. #define __ALPHA__ 1
  1338. EOF
  1339.  
  1340.     fi
  1341.     DEFAULT_DEFAULT_wxUSE_GTK=1
  1342.   ;;
  1343.   *-*-irix5* | *-*-irix6* )
  1344.     USE_SGI=1
  1345.     USE_SVR4=1
  1346.     cat >> confdefs.h <<\EOF
  1347. #define __SGI__ 1
  1348. EOF
  1349.  
  1350.     cat >> confdefs.h <<\EOF
  1351. #define __SVR4__ 1
  1352. EOF
  1353.  
  1354.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1355.   ;;
  1356.   *-*-solaris2* )
  1357.     USE_SUN=1
  1358.     USE_SOLARIS=1
  1359.     USE_SVR4=1
  1360.     cat >> confdefs.h <<\EOF
  1361. #define __SUN__ 1
  1362. EOF
  1363.  
  1364.     cat >> confdefs.h <<\EOF
  1365. #define __SOLARIS__ 1
  1366. EOF
  1367.  
  1368.     cat >> confdefs.h <<\EOF
  1369. #define __SVR4__ 1
  1370. EOF
  1371.  
  1372.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1373.     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
  1374.   ;;
  1375.   *-*-sunos4* )
  1376.     USE_SUN=1
  1377.     USE_SUNOS=1
  1378.     USE_BSD=1
  1379.     cat >> confdefs.h <<\EOF
  1380. #define __SUN__ 1
  1381. EOF
  1382.  
  1383.     cat >> confdefs.h <<\EOF
  1384. #define __SUNOS__ 1
  1385. EOF
  1386.  
  1387.     cat >> confdefs.h <<\EOF
  1388. #define __BSD__ 1
  1389. EOF
  1390.  
  1391.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1392.   ;;
  1393.   *-*-freebsd*)
  1394.     USE_BSD=1
  1395.     USE_FREEBSD=1
  1396.     cat >> confdefs.h <<\EOF
  1397. #define __FREEBSD__ 1
  1398. EOF
  1399.  
  1400.     cat >> confdefs.h <<\EOF
  1401. #define __BSD__ 1
  1402. EOF
  1403.  
  1404.     DEFAULT_DEFAULT_wxUSE_GTK=1
  1405.   ;;
  1406.   *-*-openbsd*)
  1407.     USE_BSD=1
  1408.     USE_OPENBSD=1
  1409.     cat >> confdefs.h <<\EOF
  1410. #define __OPENBSD__ 1
  1411. EOF
  1412.  
  1413.     cat >> confdefs.h <<\EOF
  1414. #define __BSD__ 1
  1415. EOF
  1416.  
  1417.     DEFAULT_DEFAULT_wxUSE_GTK=1
  1418.   ;;
  1419.   *-*-netbsd*)
  1420.     USE_BSD=1
  1421.     USE_NETBSD=1
  1422.     cat >> confdefs.h <<\EOF
  1423. #define __NETBSD__ 1
  1424. EOF
  1425.  
  1426.     cat >> confdefs.h <<\EOF
  1427. #define __BSD__ 1
  1428. EOF
  1429.  
  1430.     DEFAULT_DEFAULT_wxUSE_GTK=1
  1431.   ;;
  1432.   *-*-osf* )
  1433.     USE_ALPHA=1
  1434.     USE_OSF=1
  1435.     cat >> confdefs.h <<\EOF
  1436. #define __ALPHA__ 1
  1437. EOF
  1438.  
  1439.     cat >> confdefs.h <<\EOF
  1440. #define __OSF__ 1
  1441. EOF
  1442.  
  1443.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1444.     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
  1445.   ;;
  1446.   *-*-dgux5* )
  1447.     USE_ALPHA=1
  1448.     USE_SVR4=1
  1449.     cat >> confdefs.h <<\EOF
  1450. #define __ALPHA__ 1
  1451. EOF
  1452.  
  1453.     cat >> confdefs.h <<\EOF
  1454. #define __SVR4__ 1
  1455. EOF
  1456.  
  1457.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1458.   ;;
  1459.   *-*-sysv5* )
  1460.     USE_SYSV=1
  1461.     USE_SVR4=1
  1462.     cat >> confdefs.h <<\EOF
  1463. #define __SYSV__ 1
  1464. EOF
  1465.  
  1466.     cat >> confdefs.h <<\EOF
  1467. #define __SVR4__ 1
  1468. EOF
  1469.  
  1470.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1471.   ;;
  1472.   *-*-aix* )
  1473.     USE_AIX=1
  1474.     USE_SYSV=1
  1475.     USE_SVR4=1
  1476.                         SO_SUFFIX=a
  1477.     cat >> confdefs.h <<\EOF
  1478. #define __AIX__ 1
  1479. EOF
  1480.  
  1481.     cat >> confdefs.h <<\EOF
  1482. #define __SYSV__ 1
  1483. EOF
  1484.  
  1485.     cat >> confdefs.h <<\EOF
  1486. #define __SVR4__ 1
  1487. EOF
  1488.  
  1489.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1490.   ;;
  1491.  
  1492.   *-*-cygwin* | *-*-mingw32* )
  1493.                 SO_SUFFIX=dll
  1494.     PROGRAM_EXT=".exe"
  1495.     RESCOMP=windres
  1496.     DEFAULT_DEFAULT_wxUSE_MSW=1
  1497.   ;;
  1498.  
  1499.   *-pc-msdosdjgpp )
  1500.     USE_UNIX=0
  1501.     USE_DOS=1
  1502.     cat >> confdefs.h <<\EOF
  1503. #define __DOS__ 1
  1504. EOF
  1505.  
  1506.     PROGRAM_EXT=".exe"
  1507.     DEFAULT_DEFAULT_wxUSE_MGL=1
  1508.         LIBS="$LIBS -lstdc++"
  1509.   ;;
  1510.  
  1511.   *-pc-os2_emx | *-pc-os2-emx )
  1512.     cat >> confdefs.h <<\EOF
  1513. #define __EMX__ 1
  1514. EOF
  1515.  
  1516.     PROGRAM_EXT=".exe"
  1517.     DEFAULT_DEFAULT_wxUSE_PM=1
  1518.   ;;
  1519.  
  1520.   powerpc-*-darwin* )
  1521.         USE_BSD=1
  1522.     USE_DARWIN=1
  1523.     SO_SUFFIX=dylib
  1524.     cat >> confdefs.h <<\EOF
  1525. #define __BSD__ 1
  1526. EOF
  1527.  
  1528.     cat >> confdefs.h <<\EOF
  1529. #define __DARWIN__ 1
  1530. EOF
  1531.  
  1532.     cat >> confdefs.h <<\EOF
  1533. #define __POWERPC__ 1
  1534. EOF
  1535.  
  1536.     DEFAULT_DEFAULT_wxUSE_MAC=1
  1537.   ;;
  1538.  
  1539.   *-*-beos* )
  1540.         USE_BEOS=1
  1541.     cat >> confdefs.h <<\EOF
  1542. #define __BEOS__ 1
  1543. EOF
  1544.  
  1545.   ;;
  1546.  
  1547.   *)
  1548.     { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
  1549. esac
  1550.  
  1551.  
  1552.  
  1553.  
  1554.           wx_arg_cache_file="configarg.cache"
  1555.           echo "loading argument cache $wx_arg_cache_file"
  1556.           rm -f ${wx_arg_cache_file}.tmp
  1557.           touch ${wx_arg_cache_file}.tmp
  1558.           touch ${wx_arg_cache_file}
  1559.         
  1560.  
  1561. DEBUG_CONFIGURE=0
  1562. if test $DEBUG_CONFIGURE = 1; then
  1563.   DEFAULT_wxUSE_UNIVERSAL=no
  1564.  
  1565.   DEFAULT_wxUSE_NANOX=no
  1566.  
  1567.   DEFAULT_wxUSE_THREADS=yes
  1568.  
  1569.   DEFAULT_wxUSE_SHARED=yes
  1570.   DEFAULT_wxUSE_SONAME=no
  1571.   DEFAULT_wxUSE_OPTIMISE=no
  1572.   DEFAULT_wxUSE_PROFILE=no
  1573.   DEFAULT_wxUSE_NO_DEPS=no
  1574.   DEFAULT_wxUSE_NO_RTTI=no
  1575.   DEFAULT_wxUSE_NO_EXCEPTIONS=no
  1576.   DEFAULT_wxUSE_PERMISSIVE=no
  1577.   DEFAULT_wxUSE_DEBUG_FLAG=yes
  1578.   DEFAULT_wxUSE_DEBUG_INFO=yes
  1579.   DEFAULT_wxUSE_DEBUG_GDB=yes
  1580.   DEFAULT_wxUSE_MEM_TRACING=no
  1581.   DEFAULT_wxUSE_DEBUG_CONTEXT=no
  1582.   DEFAULT_wxUSE_DMALLOC=no
  1583.   DEFAULT_wxUSE_PRECOMP=no
  1584.   DEFAULT_wxUSE_APPLE_IEEE=no
  1585.  
  1586.   DEFAULT_wxUSE_LOG=yes
  1587.   DEFAULT_wxUSE_LOGWINDOW=no
  1588.   DEFAULT_wxUSE_LOGGUI=no
  1589.   DEFAULT_wxUSE_LOGDIALOG=no
  1590.  
  1591.   DEFAULT_wxUSE_GUI=yes
  1592.   DEFAULT_wxUSE_CONTROLS=no
  1593.  
  1594.   DEFAULT_wxUSE_REGEX=no
  1595.   DEFAULT_wxUSE_ZLIB=no
  1596.   DEFAULT_wxUSE_LIBPNG=no
  1597.   DEFAULT_wxUSE_LIBJPEG=no
  1598.   DEFAULT_wxUSE_LIBTIFF=no
  1599.   DEFAULT_wxUSE_ODBC=no
  1600.   DEFAULT_wxUSE_OPENGL=no
  1601.  
  1602.   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
  1603.   DEFAULT_wxUSE_SNGLINST_CHECKER=no
  1604.   DEFAULT_wxUSE_STD_IOSTREAM=no
  1605.   DEFAULT_wxUSE_CMDLINE_PARSER=no
  1606.   DEFAULT_wxUSE_DATETIME=no
  1607.   DEFAULT_wxUSE_TIMEDATE=no
  1608.   DEFAULT_wxUSE_TIMER=no
  1609.   DEFAULT_wxUSE_STOPWATCH=no
  1610.   DEFAULT_wxUSE_FILE=no
  1611.   DEFAULT_wxUSE_FFILE=no
  1612.   DEFAULT_wxUSE_TEXTBUFFER=no
  1613.   DEFAULT_wxUSE_TEXTFILE=no
  1614.   DEFAULT_wxUSE_WAVE=no
  1615.   DEFAULT_wxUSE_INTL=no
  1616.   DEFAULT_wxUSE_CONFIG=no
  1617.   DEFAULT_wxUSE_FONTMAP=no
  1618.   DEFAULT_wxUSE_STREAMS=no
  1619.   DEFAULT_wxUSE_SOCKETS=no
  1620.   DEFAULT_wxUSE_OLE=no
  1621.   DEFAULT_wxUSE_DATAOBJ=no
  1622.   DEFAULT_wxUSE_DIALUP_MANAGER=no
  1623.   DEFAULT_wxUSE_JOYSTICK=no
  1624.   DEFAULT_wxUSE_DYNLIB_CLASS=no
  1625.   DEFAULT_wxUSE_DYNAMIC_LOADER=no
  1626.   DEFAULT_wxUSE_LONGLONG=no
  1627.   DEFAULT_wxUSE_GEOMETRY=no
  1628.  
  1629.   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
  1630.   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
  1631.   DEFAULT_wxUSE_POSTSCRIPT=no
  1632.  
  1633.   DEFAULT_wxUSE_X_RESOURCES=no
  1634.   DEFAULT_wxUSE_CLIPBOARD=no
  1635.   DEFAULT_wxUSE_TOOLTIPS=no
  1636.   DEFAULT_wxUSE_DRAG_AND_DROP=no
  1637.   DEFAULT_wxUSE_DRAGIMAGE=no
  1638.   DEFAULT_wxUSE_SPLINES=no
  1639.  
  1640.   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
  1641.   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
  1642.   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
  1643.  
  1644.   DEFAULT_wxUSE_PROLOGIO=no
  1645.   DEFAULT_wxUSE_RESOURCES=no
  1646.   DEFAULT_wxUSE_CONSTRAINTS=no
  1647.   DEFAULT_wxUSE_IPC=no
  1648.   DEFAULT_wxUSE_HELP=no
  1649.   DEFAULT_wxUSE_MS_HTML_HELP=no
  1650.   DEFAULT_wxUSE_WXHTML_HELP=no
  1651.   DEFAULT_wxUSE_TREELAYOUT=no
  1652.   DEFAULT_wxUSE_METAFILE=no
  1653.   DEFAULT_wxUSE_MIMETYPE=no
  1654.   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
  1655.   DEFAULT_wxUSE_PROTOCOL=no
  1656.   DEFAULT_wxUSE_PROTOCOL_HTTP=no
  1657.   DEFAULT_wxUSE_PROTOCOL_FTP=no
  1658.   DEFAULT_wxUSE_PROTOCOL_FILE=no
  1659.   DEFAULT_wxUSE_URL=no
  1660.  
  1661.   DEFAULT_wxUSE_COMMONDLGS=no
  1662.   DEFAULT_wxUSE_CHOICEDLG=no
  1663.   DEFAULT_wxUSE_COLOURDLG=no
  1664.   DEFAULT_wxUSE_DIRDLG=no
  1665.   DEFAULT_wxUSE_FILEDLG=no
  1666.   DEFAULT_wxUSE_FINDREPLDLG=no
  1667.   DEFAULT_wxUSE_FONTDLG=no
  1668.   DEFAULT_wxUSE_MSGDLG=no
  1669.   DEFAULT_wxUSE_NUMBERDLG=no
  1670.   DEFAULT_wxUSE_TEXTDLG=no
  1671.   DEFAULT_wxUSE_SPLASH=no
  1672.   DEFAULT_wxUSE_STARTUP_TIPS=no
  1673.   DEFAULT_wxUSE_PROGRESSDLG=no
  1674.   DEFAULT_wxUSE_WIZARDDLG=no
  1675.  
  1676.   DEFAULT_wxUSE_MENUS=no
  1677.   DEFAULT_wxUSE_MINIFRAME=no
  1678.   DEFAULT_wxUSE_HTML=no
  1679.   DEFAULT_wxUSE_FILESYSTEM=no
  1680.   DEFAULT_wxUSE_FS_INET=no
  1681.   DEFAULT_wxUSE_FS_ZIP=no
  1682.   DEFAULT_wxUSE_BUSYINFO=no
  1683.   DEFAULT_wxUSE_ZIPSTREAM=no
  1684.   DEFAULT_wxUSE_VALIDATORS=no
  1685.  
  1686.   DEFAULT_wxUSE_ACCEL=no
  1687.   DEFAULT_wxUSE_BUTTON=no
  1688.   DEFAULT_wxUSE_BMPBUTTON=no
  1689.   DEFAULT_wxUSE_CALCTRL=no
  1690.   DEFAULT_wxUSE_CARET=no
  1691.   DEFAULT_wxUSE_CHECKBOX=no
  1692.   DEFAULT_wxUSE_CHECKLST=no
  1693.   DEFAULT_wxUSE_CHOICE=no
  1694.   DEFAULT_wxUSE_COMBOBOX=no
  1695.   DEFAULT_wxUSE_GAUGE=no
  1696.   DEFAULT_wxUSE_GRID=no
  1697.   DEFAULT_wxUSE_NEW_GRID=no
  1698.   DEFAULT_wxUSE_IMAGLIST=no
  1699.   DEFAULT_wxUSE_LISTBOX=no
  1700.   DEFAULT_wxUSE_LISTCTRL=no
  1701.   DEFAULT_wxUSE_NOTEBOOK=no
  1702.   DEFAULT_wxUSE_PROPSHEET=no
  1703.   DEFAULT_wxUSE_RADIOBOX=no
  1704.   DEFAULT_wxUSE_RADIOBTN=no
  1705.   DEFAULT_wxUSE_SASH=no
  1706.   DEFAULT_wxUSE_SCROLLBAR=no
  1707.   DEFAULT_wxUSE_SLIDER=no
  1708.   DEFAULT_wxUSE_SPINBTN=no
  1709.   DEFAULT_wxUSE_SPINCTRL=no
  1710.   DEFAULT_wxUSE_SPLITTER=no
  1711.   DEFAULT_wxUSE_STATBMP=no
  1712.   DEFAULT_wxUSE_STATBOX=no
  1713.   DEFAULT_wxUSE_STATLINE=no
  1714.   DEFAULT_wxUSE_STATTEXT=no
  1715.   DEFAULT_wxUSE_STATUSBAR=yes
  1716.   DEFAULT_wxUSE_TABDIALOG=no
  1717.   DEFAULT_wxUSE_TEXTCTRL=no
  1718.   DEFAULT_wxUSE_TOGGLEBTN=no
  1719.   DEFAULT_wxUSE_TOOLBAR=no
  1720.   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
  1721.   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
  1722.   DEFAULT_wxUSE_TREECTRL=no
  1723.   DEFAULT_wxUSE_POPUPWIN=no
  1724.   DEFAULT_wxUSE_TIPWINDOW=no
  1725.  
  1726.   DEFAULT_wxUSE_UNICODE=no
  1727.   DEFAULT_wxUSE_UNICODE_MSLU=no
  1728.   DEFAULT_wxUSE_WCSRTOMBS=no
  1729.  
  1730.   DEFAULT_wxUSE_PALETTE=no
  1731.   DEFAULT_wxUSE_IMAGE=no
  1732.   DEFAULT_wxUSE_GIF=no
  1733.   DEFAULT_wxUSE_PCX=no
  1734.   DEFAULT_wxUSE_PNM=no
  1735.   DEFAULT_wxUSE_IFF=no
  1736.   DEFAULT_wxUSE_XPM=no
  1737.   DEFAULT_wxUSE_ICO_CUR=no
  1738. else
  1739.   DEFAULT_wxUSE_UNIVERSAL=no
  1740.  
  1741.   DEFAULT_wxUSE_NANOX=no
  1742.  
  1743.   DEFAULT_wxUSE_THREADS=yes
  1744.  
  1745.   DEFAULT_wxUSE_SHARED=yes
  1746.   DEFAULT_wxUSE_SONAME=no
  1747.   DEFAULT_wxUSE_OPTIMISE=yes
  1748.   DEFAULT_wxUSE_PROFILE=no
  1749.   DEFAULT_wxUSE_NO_DEPS=no
  1750.   DEFAULT_wxUSE_NO_RTTI=no
  1751.   DEFAULT_wxUSE_NO_EXCEPTIONS=no
  1752.   DEFAULT_wxUSE_PERMISSIVE=no
  1753.   DEFAULT_wxUSE_DEBUG_FLAG=no
  1754.   DEFAULT_wxUSE_DEBUG_INFO=no
  1755.   DEFAULT_wxUSE_DEBUG_GDB=no
  1756.   DEFAULT_wxUSE_MEM_TRACING=no
  1757.   DEFAULT_wxUSE_DEBUG_CONTEXT=no
  1758.   DEFAULT_wxUSE_DMALLOC=no
  1759.   DEFAULT_wxUSE_PRECOMP=no
  1760.   DEFAULT_wxUSE_APPLE_IEEE=yes
  1761.  
  1762.   DEFAULT_wxUSE_LOG=yes
  1763.   DEFAULT_wxUSE_LOGWINDOW=yes
  1764.   DEFAULT_wxUSE_LOGGUI=yes
  1765.   DEFAULT_wxUSE_LOGDIALOG=yes
  1766.  
  1767.   DEFAULT_wxUSE_GUI=yes
  1768.  
  1769.   DEFAULT_wxUSE_REGEX=yes
  1770.   DEFAULT_wxUSE_ZLIB=yes
  1771.   DEFAULT_wxUSE_LIBPNG=yes
  1772.   DEFAULT_wxUSE_LIBJPEG=yes
  1773.   DEFAULT_wxUSE_LIBTIFF=yes
  1774.   DEFAULT_wxUSE_ODBC=no
  1775.   DEFAULT_wxUSE_OPENGL=no
  1776.  
  1777.   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
  1778.   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
  1779.   DEFAULT_wxUSE_STD_IOSTREAM=no
  1780.   DEFAULT_wxUSE_CMDLINE_PARSER=yes
  1781.   DEFAULT_wxUSE_DATETIME=yes
  1782.   DEFAULT_wxUSE_TIMEDATE=no
  1783.   DEFAULT_wxUSE_TIMER=yes
  1784.   DEFAULT_wxUSE_STOPWATCH=yes
  1785.   DEFAULT_wxUSE_FILE=yes
  1786.   DEFAULT_wxUSE_FFILE=yes
  1787.   DEFAULT_wxUSE_TEXTBUFFER=yes
  1788.   DEFAULT_wxUSE_TEXTFILE=yes
  1789.   DEFAULT_wxUSE_WAVE=no
  1790.   DEFAULT_wxUSE_INTL=yes
  1791.   DEFAULT_wxUSE_CONFIG=yes
  1792.   DEFAULT_wxUSE_FONTMAP=yes
  1793.   DEFAULT_wxUSE_STREAMS=yes
  1794.   DEFAULT_wxUSE_SOCKETS=yes
  1795.   DEFAULT_wxUSE_OLE=yes
  1796.   DEFAULT_wxUSE_DATAOBJ=yes
  1797.   DEFAULT_wxUSE_DIALUP_MANAGER=yes
  1798.   DEFAULT_wxUSE_JOYSTICK=yes
  1799.   DEFAULT_wxUSE_DYNLIB_CLASS=yes
  1800.   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
  1801.   DEFAULT_wxUSE_LONGLONG=yes
  1802.   DEFAULT_wxUSE_GEOMETRY=yes
  1803.  
  1804.   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
  1805.   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
  1806.   DEFAULT_wxUSE_POSTSCRIPT=yes
  1807.  
  1808.   DEFAULT_wxUSE_X_RESOURCES=no
  1809.   DEFAULT_wxUSE_CLIPBOARD=yes
  1810.   DEFAULT_wxUSE_TOOLTIPS=yes
  1811.   DEFAULT_wxUSE_DRAG_AND_DROP=yes
  1812.   DEFAULT_wxUSE_DRAGIMAGE=yes
  1813.   DEFAULT_wxUSE_SPLINES=yes
  1814.  
  1815.   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
  1816.   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
  1817.   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
  1818.  
  1819.   DEFAULT_wxUSE_PROLOGIO=no
  1820.   DEFAULT_wxUSE_RESOURCES=no
  1821.   DEFAULT_wxUSE_CONSTRAINTS=yes
  1822.   DEFAULT_wxUSE_IPC=yes
  1823.   DEFAULT_wxUSE_HELP=yes
  1824.   DEFAULT_wxUSE_MS_HTML_HELP=yes
  1825.   DEFAULT_wxUSE_WXHTML_HELP=yes
  1826.   DEFAULT_wxUSE_TREELAYOUT=yes
  1827.   DEFAULT_wxUSE_METAFILE=yes
  1828.   DEFAULT_wxUSE_MIMETYPE=yes
  1829.   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
  1830.   DEFAULT_wxUSE_PROTOCOL=yes
  1831.   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
  1832.   DEFAULT_wxUSE_PROTOCOL_FTP=yes
  1833.   DEFAULT_wxUSE_PROTOCOL_FILE=yes
  1834.   DEFAULT_wxUSE_URL=yes
  1835.  
  1836.   DEFAULT_wxUSE_COMMONDLGS=yes
  1837.   DEFAULT_wxUSE_CHOICEDLG=yes
  1838.   DEFAULT_wxUSE_COLOURDLG=yes
  1839.   DEFAULT_wxUSE_DIRDLG=yes
  1840.   DEFAULT_wxUSE_FILEDLG=yes
  1841.   DEFAULT_wxUSE_FINDREPLDLG=yes
  1842.   DEFAULT_wxUSE_FONTDLG=yes
  1843.   DEFAULT_wxUSE_MSGDLG=yes
  1844.   DEFAULT_wxUSE_NUMBERDLG=yes
  1845.   DEFAULT_wxUSE_TEXTDLG=yes
  1846.   DEFAULT_wxUSE_SPLASH=yes
  1847.   DEFAULT_wxUSE_STARTUP_TIPS=yes
  1848.   DEFAULT_wxUSE_PROGRESSDLG=yes
  1849.   DEFAULT_wxUSE_WIZARDDLG=yes
  1850.  
  1851.   DEFAULT_wxUSE_MENUS=yes
  1852.   DEFAULT_wxUSE_MINIFRAME=yes
  1853.   DEFAULT_wxUSE_HTML=yes
  1854.   DEFAULT_wxUSE_FILESYSTEM=yes
  1855.   DEFAULT_wxUSE_FS_INET=yes
  1856.   DEFAULT_wxUSE_FS_ZIP=yes
  1857.   DEFAULT_wxUSE_BUSYINFO=yes
  1858.   DEFAULT_wxUSE_ZIPSTREAM=yes
  1859.   DEFAULT_wxUSE_VALIDATORS=yes
  1860.  
  1861.   DEFAULT_wxUSE_ACCEL=yes
  1862.   DEFAULT_wxUSE_BUTTON=yes
  1863.   DEFAULT_wxUSE_BMPBUTTON=yes
  1864.   DEFAULT_wxUSE_CALCTRL=yes
  1865.   DEFAULT_wxUSE_CARET=yes
  1866.   DEFAULT_wxUSE_CHECKBOX=yes
  1867.   DEFAULT_wxUSE_CHECKLST=yes
  1868.   DEFAULT_wxUSE_CHOICE=yes
  1869.   DEFAULT_wxUSE_COMBOBOX=yes
  1870.   DEFAULT_wxUSE_GAUGE=yes
  1871.   DEFAULT_wxUSE_GRID=yes
  1872.   DEFAULT_wxUSE_NEW_GRID=yes
  1873.   DEFAULT_wxUSE_IMAGLIST=yes
  1874.   DEFAULT_wxUSE_LISTBOX=yes
  1875.   DEFAULT_wxUSE_LISTCTRL=yes
  1876.   DEFAULT_wxUSE_NOTEBOOK=yes
  1877.   DEFAULT_wxUSE_PROPSHEET=yes
  1878.   DEFAULT_wxUSE_RADIOBOX=yes
  1879.   DEFAULT_wxUSE_RADIOBTN=yes
  1880.   DEFAULT_wxUSE_SASH=yes
  1881.   DEFAULT_wxUSE_SCROLLBAR=yes
  1882.   DEFAULT_wxUSE_SLIDER=yes
  1883.   DEFAULT_wxUSE_SPINBTN=yes
  1884.   DEFAULT_wxUSE_SPINCTRL=yes
  1885.   DEFAULT_wxUSE_SPLITTER=yes
  1886.   DEFAULT_wxUSE_STATBMP=yes
  1887.   DEFAULT_wxUSE_STATBOX=yes
  1888.   DEFAULT_wxUSE_STATLINE=yes
  1889.   DEFAULT_wxUSE_STATTEXT=yes
  1890.   DEFAULT_wxUSE_STATUSBAR=yes
  1891.   DEFAULT_wxUSE_TABDIALOG=no
  1892.   DEFAULT_wxUSE_TEXTCTRL=yes
  1893.   DEFAULT_wxUSE_TOGGLEBTN=yes
  1894.   DEFAULT_wxUSE_TOOLBAR=yes
  1895.   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
  1896.   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
  1897.   DEFAULT_wxUSE_TREECTRL=yes
  1898.   DEFAULT_wxUSE_POPUPWIN=yes
  1899.   DEFAULT_wxUSE_TIPWINDOW=yes
  1900.  
  1901.   DEFAULT_wxUSE_UNICODE=no
  1902.   DEFAULT_wxUSE_UNICODE_MSLU=yes
  1903.   DEFAULT_wxUSE_WCSRTOMBS=no
  1904.  
  1905.   DEFAULT_wxUSE_PALETTE=yes
  1906.   DEFAULT_wxUSE_IMAGE=yes
  1907.   DEFAULT_wxUSE_GIF=yes
  1908.   DEFAULT_wxUSE_PCX=yes
  1909.   DEFAULT_wxUSE_IFF=no
  1910.   DEFAULT_wxUSE_PNM=yes
  1911.   DEFAULT_wxUSE_XPM=yes
  1912.   DEFAULT_wxUSE_ICO_CUR=yes
  1913. fi
  1914.  
  1915.  
  1916.  
  1917. for toolkit in `echo $ALL_TOOLKITS`; do
  1918.   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
  1919.   if test "x$LINE" != "x" ; then
  1920.     has_toolkit_in_cache=1
  1921.     eval "DEFAULT_$LINE"
  1922.     eval "CACHE_$toolkit=1"
  1923.   fi
  1924. done
  1925.  
  1926.  
  1927.  
  1928.       enablestring=
  1929.           echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
  1930. echo "configure:1931: checking for --${enablestring:-enable}-gui" >&5
  1931.           no_cache=0
  1932.           # Check whether --enable-gui or --disable-gui was given.
  1933. if test "${enable_gui+set}" = set; then
  1934.   enableval="$enable_gui"
  1935.   
  1936.                           if test "$enableval" = yes; then
  1937.                             ac_cv_use_gui='wxUSE_GUI=yes'
  1938.                           else
  1939.                             ac_cv_use_gui='wxUSE_GUI=no'
  1940.                           fi
  1941.                         
  1942. else
  1943.   
  1944.                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
  1945.                           if test "x$LINE" != x ; then
  1946.                             eval "DEFAULT_$LINE"
  1947.                           else
  1948.                             no_cache=1
  1949.                           fi
  1950.  
  1951.                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
  1952.                         
  1953. fi
  1954.  
  1955.  
  1956.           eval "$ac_cv_use_gui"
  1957.           if test "$no_cache" != 1; then
  1958.             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
  1959.           fi
  1960.  
  1961.           if test "$wxUSE_GUI" = yes; then
  1962.             echo "$ac_t""yes" 1>&6
  1963.           else
  1964.             echo "$ac_t""no" 1>&6
  1965.           fi
  1966.         
  1967.  
  1968. if test "$wxUSE_GUI" = "yes"; then
  1969.  
  1970.  
  1971.       enablestring=
  1972.           echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
  1973. echo "configure:1974: checking for --${enablestring:-enable}-universal" >&5
  1974.           no_cache=0
  1975.           # Check whether --enable-universal or --disable-universal was given.
  1976. if test "${enable_universal+set}" = set; then
  1977.   enableval="$enable_universal"
  1978.   
  1979.                           if test "$enableval" = yes; then
  1980.                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
  1981.                           else
  1982.                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
  1983.                           fi
  1984.                         
  1985. else
  1986.   
  1987.                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
  1988.                           if test "x$LINE" != x ; then
  1989.                             eval "DEFAULT_$LINE"
  1990.                           else
  1991.                             no_cache=1
  1992.                           fi
  1993.  
  1994.                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
  1995.                         
  1996. fi
  1997.  
  1998.  
  1999.           eval "$ac_cv_use_universal"
  2000.           if test "$no_cache" != 1; then
  2001.             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
  2002.           fi
  2003.  
  2004.           if test "$wxUSE_UNIVERSAL" = yes; then
  2005.             echo "$ac_t""yes" 1>&6
  2006.           else
  2007.             echo "$ac_t""no" 1>&6
  2008.           fi
  2009.         
  2010. # Check whether --with-gtk or --without-gtk was given.
  2011. if test "${with_gtk+set}" = set; then
  2012.   withval="$with_gtk"
  2013.   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
  2014. fi
  2015.  
  2016. # Check whether --with-motif or --without-motif was given.
  2017. if test "${with_motif+set}" = set; then
  2018.   withval="$with_motif"
  2019.   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
  2020. fi
  2021.  
  2022. # Check whether --with-mac or --without-mac was given.
  2023. if test "${with_mac+set}" = set; then
  2024.   withval="$with_mac"
  2025.   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
  2026. fi
  2027.  
  2028. # Check whether --with-wine or --without-wine was given.
  2029. if test "${with_wine+set}" = set; then
  2030.   withval="$with_wine"
  2031.   wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
  2032. fi
  2033.  
  2034. # Check whether --with-msw or --without-msw was given.
  2035. if test "${with_msw+set}" = set; then
  2036.   withval="$with_msw"
  2037.   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
  2038. fi
  2039.  
  2040. # Check whether --with-pm or --without-pm was given.
  2041. if test "${with_pm+set}" = set; then
  2042.   withval="$with_pm"
  2043.   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
  2044. fi
  2045.  
  2046. # Check whether --with-mgl or --without-mgl was given.
  2047. if test "${with_mgl+set}" = set; then
  2048.   withval="$with_mgl"
  2049.   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
  2050. fi
  2051.  
  2052. # Check whether --with-microwin or --without-microwin was given.
  2053. if test "${with_microwin+set}" = set; then
  2054.   withval="$with_microwin"
  2055.   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
  2056. fi
  2057.  
  2058. # Check whether --with-x11 or --without-x11 was given.
  2059. if test "${with_x11+set}" = set; then
  2060.   withval="$with_x11"
  2061.   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
  2062. fi
  2063.  
  2064.  
  2065.       enablestring=
  2066.           echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
  2067. echo "configure:2068: checking for --${enablestring:-enable}-nanox" >&5
  2068.           no_cache=0
  2069.           # Check whether --enable-nanox or --disable-nanox was given.
  2070. if test "${enable_nanox+set}" = set; then
  2071.   enableval="$enable_nanox"
  2072.   
  2073.                           if test "$enableval" = yes; then
  2074.                             ac_cv_use_nanox='wxUSE_NANOX=yes'
  2075.                           else
  2076.                             ac_cv_use_nanox='wxUSE_NANOX=no'
  2077.                           fi
  2078.                         
  2079. else
  2080.   
  2081.                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
  2082.                           if test "x$LINE" != x ; then
  2083.                             eval "DEFAULT_$LINE"
  2084.                           else
  2085.                             no_cache=1
  2086.                           fi
  2087.  
  2088.                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
  2089.                         
  2090. fi
  2091.  
  2092.  
  2093.           eval "$ac_cv_use_nanox"
  2094.           if test "$no_cache" != 1; then
  2095.             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
  2096.           fi
  2097.  
  2098.           if test "$wxUSE_NANOX" = yes; then
  2099.             echo "$ac_t""yes" 1>&6
  2100.           else
  2101.             echo "$ac_t""no" 1>&6
  2102.           fi
  2103.         
  2104.  
  2105.  
  2106.       enablestring=
  2107.           echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
  2108. echo "configure:2109: checking for --${enablestring:-enable}-gtk2" >&5
  2109.           no_cache=0
  2110.           # Check whether --enable-gtk2 or --disable-gtk2 was given.
  2111. if test "${enable_gtk2+set}" = set; then
  2112.   enableval="$enable_gtk2"
  2113.   
  2114.                           if test "$enableval" = yes; then
  2115.                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
  2116.                           else
  2117.                             ac_cv_use_gtk2='wxUSE_GTK2=no'
  2118.                           fi
  2119.                         
  2120. else
  2121.   
  2122.                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
  2123.                           if test "x$LINE" != x ; then
  2124.                             eval "DEFAULT_$LINE"
  2125.                           else
  2126.                             no_cache=1
  2127.                           fi
  2128.  
  2129.                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
  2130.                         
  2131. fi
  2132.  
  2133.  
  2134.           eval "$ac_cv_use_gtk2"
  2135.           if test "$no_cache" != 1; then
  2136.             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
  2137.           fi
  2138.  
  2139.           if test "$wxUSE_GTK2" = yes; then
  2140.             echo "$ac_t""yes" 1>&6
  2141.           else
  2142.             echo "$ac_t""no" 1>&6
  2143.           fi
  2144.         
  2145.  
  2146.  
  2147.           echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
  2148. echo "configure:2149: checking for --with-libpng" >&5
  2149.           no_cache=0
  2150.           # Check whether --with-libpng or --without-libpng was given.
  2151. if test "${with_libpng+set}" = set; then
  2152.   withval="$with_libpng"
  2153.   
  2154.                         if test "$withval" = yes; then
  2155.                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
  2156.                         elif test "$withval" = no; then
  2157.                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
  2158.                         elif test "$withval" = sys; then
  2159.                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
  2160.                         elif test "$withval" = builtin; then
  2161.                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
  2162.                         else
  2163.                           { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2164.                         fi
  2165.                       
  2166. else
  2167.   
  2168.                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
  2169.                         if test "x$LINE" != x ; then
  2170.                           eval "DEFAULT_$LINE"
  2171.                         else
  2172.                           no_cache=1
  2173.                         fi
  2174.  
  2175.                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
  2176.                       
  2177. fi
  2178.  
  2179.  
  2180.           eval "$ac_cv_use_libpng"
  2181.           if test "$no_cache" != 1; then
  2182.             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
  2183.           fi
  2184.  
  2185.           if test "$wxUSE_LIBPNG" = yes; then
  2186.             echo "$ac_t""yes" 1>&6
  2187.           elif test "$wxUSE_LIBPNG" = no; then
  2188.             echo "$ac_t""no" 1>&6
  2189.           elif test "$wxUSE_LIBPNG" = sys; then
  2190.             echo "$ac_t""system version" 1>&6
  2191.           elif test "$wxUSE_LIBPNG" = builtin; then
  2192.             echo "$ac_t""builtin version" 1>&6
  2193.           else
  2194.             { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2195.           fi
  2196.         
  2197.  
  2198.           echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
  2199. echo "configure:2200: checking for --with-libjpeg" >&5
  2200.           no_cache=0
  2201.           # Check whether --with-libjpeg or --without-libjpeg was given.
  2202. if test "${with_libjpeg+set}" = set; then
  2203.   withval="$with_libjpeg"
  2204.   
  2205.                         if test "$withval" = yes; then
  2206.                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
  2207.                         elif test "$withval" = no; then
  2208.                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
  2209.                         elif test "$withval" = sys; then
  2210.                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
  2211.                         elif test "$withval" = builtin; then
  2212.                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
  2213.                         else
  2214.                           { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2215.                         fi
  2216.                       
  2217. else
  2218.   
  2219.                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
  2220.                         if test "x$LINE" != x ; then
  2221.                           eval "DEFAULT_$LINE"
  2222.                         else
  2223.                           no_cache=1
  2224.                         fi
  2225.  
  2226.                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
  2227.                       
  2228. fi
  2229.  
  2230.  
  2231.           eval "$ac_cv_use_libjpeg"
  2232.           if test "$no_cache" != 1; then
  2233.             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
  2234.           fi
  2235.  
  2236.           if test "$wxUSE_LIBJPEG" = yes; then
  2237.             echo "$ac_t""yes" 1>&6
  2238.           elif test "$wxUSE_LIBJPEG" = no; then
  2239.             echo "$ac_t""no" 1>&6
  2240.           elif test "$wxUSE_LIBJPEG" = sys; then
  2241.             echo "$ac_t""system version" 1>&6
  2242.           elif test "$wxUSE_LIBJPEG" = builtin; then
  2243.             echo "$ac_t""builtin version" 1>&6
  2244.           else
  2245.             { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2246.           fi
  2247.         
  2248.  
  2249.           echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
  2250. echo "configure:2251: checking for --with-libtiff" >&5
  2251.           no_cache=0
  2252.           # Check whether --with-libtiff or --without-libtiff was given.
  2253. if test "${with_libtiff+set}" = set; then
  2254.   withval="$with_libtiff"
  2255.   
  2256.                         if test "$withval" = yes; then
  2257.                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
  2258.                         elif test "$withval" = no; then
  2259.                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
  2260.                         elif test "$withval" = sys; then
  2261.                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
  2262.                         elif test "$withval" = builtin; then
  2263.                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
  2264.                         else
  2265.                           { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2266.                         fi
  2267.                       
  2268. else
  2269.   
  2270.                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
  2271.                         if test "x$LINE" != x ; then
  2272.                           eval "DEFAULT_$LINE"
  2273.                         else
  2274.                           no_cache=1
  2275.                         fi
  2276.  
  2277.                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
  2278.                       
  2279. fi
  2280.  
  2281.  
  2282.           eval "$ac_cv_use_libtiff"
  2283.           if test "$no_cache" != 1; then
  2284.             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
  2285.           fi
  2286.  
  2287.           if test "$wxUSE_LIBTIFF" = yes; then
  2288.             echo "$ac_t""yes" 1>&6
  2289.           elif test "$wxUSE_LIBTIFF" = no; then
  2290.             echo "$ac_t""no" 1>&6
  2291.           elif test "$wxUSE_LIBTIFF" = sys; then
  2292.             echo "$ac_t""system version" 1>&6
  2293.           elif test "$wxUSE_LIBTIFF" = builtin; then
  2294.             echo "$ac_t""builtin version" 1>&6
  2295.           else
  2296.             { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2297.           fi
  2298.         
  2299.  
  2300.           echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
  2301. echo "configure:2302: checking for --with-opengl" >&5
  2302.           no_cache=0
  2303.           # Check whether --with-opengl or --without-opengl was given.
  2304. if test "${with_opengl+set}" = set; then
  2305.   withval="$with_opengl"
  2306.   
  2307.                         if test "$withval" = yes; then
  2308.                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
  2309.                         else
  2310.                           ac_cv_use_opengl='wxUSE_OPENGL=no'
  2311.                         fi
  2312.                       
  2313. else
  2314.   
  2315.                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
  2316.                         if test "x$LINE" != x ; then
  2317.                           eval "DEFAULT_$LINE"
  2318.                         else
  2319.                           no_cache=1
  2320.                         fi
  2321.  
  2322.                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
  2323.                       
  2324. fi
  2325.  
  2326.  
  2327.           eval "$ac_cv_use_opengl"
  2328.           if test "$no_cache" != 1; then
  2329.             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
  2330.           fi
  2331.  
  2332.           if test "$wxUSE_OPENGL" = yes; then
  2333.             echo "$ac_t""yes" 1>&6
  2334.           else
  2335.             echo "$ac_t""no" 1>&6
  2336.           fi
  2337.         
  2338.  
  2339. fi
  2340.  
  2341.  
  2342.           echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
  2343. echo "configure:2344: checking for --with-dmalloc" >&5
  2344.           no_cache=0
  2345.           # Check whether --with-dmalloc or --without-dmalloc was given.
  2346. if test "${with_dmalloc+set}" = set; then
  2347.   withval="$with_dmalloc"
  2348.   
  2349.                         if test "$withval" = yes; then
  2350.                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
  2351.                         else
  2352.                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
  2353.                         fi
  2354.                       
  2355. else
  2356.   
  2357.                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
  2358.                         if test "x$LINE" != x ; then
  2359.                           eval "DEFAULT_$LINE"
  2360.                         else
  2361.                           no_cache=1
  2362.                         fi
  2363.  
  2364.                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
  2365.                       
  2366. fi
  2367.  
  2368.  
  2369.           eval "$ac_cv_use_dmalloc"
  2370.           if test "$no_cache" != 1; then
  2371.             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
  2372.           fi
  2373.  
  2374.           if test "$wxUSE_DMALLOC" = yes; then
  2375.             echo "$ac_t""yes" 1>&6
  2376.           else
  2377.             echo "$ac_t""no" 1>&6
  2378.           fi
  2379.         
  2380.  
  2381.           echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
  2382. echo "configure:2383: checking for --with-regex" >&5
  2383.           no_cache=0
  2384.           # Check whether --with-regex or --without-regex was given.
  2385. if test "${with_regex+set}" = set; then
  2386.   withval="$with_regex"
  2387.   
  2388.                         if test "$withval" = yes; then
  2389.                           ac_cv_use_regex='wxUSE_REGEX=yes'
  2390.                         elif test "$withval" = no; then
  2391.                           ac_cv_use_regex='wxUSE_REGEX=no'
  2392.                         elif test "$withval" = sys; then
  2393.                           ac_cv_use_regex='wxUSE_REGEX=sys'
  2394.                         elif test "$withval" = builtin; then
  2395.                           ac_cv_use_regex='wxUSE_REGEX=builtin'
  2396.                         else
  2397.                           { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2398.                         fi
  2399.                       
  2400. else
  2401.   
  2402.                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
  2403.                         if test "x$LINE" != x ; then
  2404.                           eval "DEFAULT_$LINE"
  2405.                         else
  2406.                           no_cache=1
  2407.                         fi
  2408.  
  2409.                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
  2410.                       
  2411. fi
  2412.  
  2413.  
  2414.           eval "$ac_cv_use_regex"
  2415.           if test "$no_cache" != 1; then
  2416.             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
  2417.           fi
  2418.  
  2419.           if test "$wxUSE_REGEX" = yes; then
  2420.             echo "$ac_t""yes" 1>&6
  2421.           elif test "$wxUSE_REGEX" = no; then
  2422.             echo "$ac_t""no" 1>&6
  2423.           elif test "$wxUSE_REGEX" = sys; then
  2424.             echo "$ac_t""system version" 1>&6
  2425.           elif test "$wxUSE_REGEX" = builtin; then
  2426.             echo "$ac_t""builtin version" 1>&6
  2427.           else
  2428.             { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2429.           fi
  2430.         
  2431.  
  2432.           echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
  2433. echo "configure:2434: checking for --with-zlib" >&5
  2434.           no_cache=0
  2435.           # Check whether --with-zlib or --without-zlib was given.
  2436. if test "${with_zlib+set}" = set; then
  2437.   withval="$with_zlib"
  2438.   
  2439.                         if test "$withval" = yes; then
  2440.                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
  2441.                         elif test "$withval" = no; then
  2442.                           ac_cv_use_zlib='wxUSE_ZLIB=no'
  2443.                         elif test "$withval" = sys; then
  2444.                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
  2445.                         elif test "$withval" = builtin; then
  2446.                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
  2447.                         else
  2448.                           { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2449.                         fi
  2450.                       
  2451. else
  2452.   
  2453.                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
  2454.                         if test "x$LINE" != x ; then
  2455.                           eval "DEFAULT_$LINE"
  2456.                         else
  2457.                           no_cache=1
  2458.                         fi
  2459.  
  2460.                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
  2461.                       
  2462. fi
  2463.  
  2464.  
  2465.           eval "$ac_cv_use_zlib"
  2466.           if test "$no_cache" != 1; then
  2467.             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
  2468.           fi
  2469.  
  2470.           if test "$wxUSE_ZLIB" = yes; then
  2471.             echo "$ac_t""yes" 1>&6
  2472.           elif test "$wxUSE_ZLIB" = no; then
  2473.             echo "$ac_t""no" 1>&6
  2474.           elif test "$wxUSE_ZLIB" = sys; then
  2475.             echo "$ac_t""system version" 1>&6
  2476.           elif test "$wxUSE_ZLIB" = builtin; then
  2477.             echo "$ac_t""builtin version" 1>&6
  2478.           else
  2479.             { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2480.           fi
  2481.         
  2482.  
  2483.           echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
  2484. echo "configure:2485: checking for --with-odbc" >&5
  2485.           no_cache=0
  2486.           # Check whether --with-odbc or --without-odbc was given.
  2487. if test "${with_odbc+set}" = set; then
  2488.   withval="$with_odbc"
  2489.   
  2490.                         if test "$withval" = yes; then
  2491.                           ac_cv_use_odbc='wxUSE_ODBC=yes'
  2492.                         else
  2493.                           ac_cv_use_odbc='wxUSE_ODBC=no'
  2494.                         fi
  2495.                       
  2496. else
  2497.   
  2498.                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
  2499.                         if test "x$LINE" != x ; then
  2500.                           eval "DEFAULT_$LINE"
  2501.                         else
  2502.                           no_cache=1
  2503.                         fi
  2504.  
  2505.                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
  2506.                       
  2507. fi
  2508.  
  2509.  
  2510.           eval "$ac_cv_use_odbc"
  2511.           if test "$no_cache" != 1; then
  2512.             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
  2513.           fi
  2514.  
  2515.           if test "$wxUSE_ODBC" = yes; then
  2516.             echo "$ac_t""yes" 1>&6
  2517.           else
  2518.             echo "$ac_t""no" 1>&6
  2519.           fi
  2520.         
  2521.  
  2522.  
  2523.  
  2524.       enablestring=
  2525.           echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
  2526. echo "configure:2527: checking for --${enablestring:-enable}-shared" >&5
  2527.           no_cache=0
  2528.           # Check whether --enable-shared or --disable-shared was given.
  2529. if test "${enable_shared+set}" = set; then
  2530.   enableval="$enable_shared"
  2531.   
  2532.                           if test "$enableval" = yes; then
  2533.                             ac_cv_use_shared='wxUSE_SHARED=yes'
  2534.                           else
  2535.                             ac_cv_use_shared='wxUSE_SHARED=no'
  2536.                           fi
  2537.                         
  2538. else
  2539.   
  2540.                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
  2541.                           if test "x$LINE" != x ; then
  2542.                             eval "DEFAULT_$LINE"
  2543.                           else
  2544.                             no_cache=1
  2545.                           fi
  2546.  
  2547.                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
  2548.                         
  2549. fi
  2550.  
  2551.  
  2552.           eval "$ac_cv_use_shared"
  2553.           if test "$no_cache" != 1; then
  2554.             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
  2555.           fi
  2556.  
  2557.           if test "$wxUSE_SHARED" = yes; then
  2558.             echo "$ac_t""yes" 1>&6
  2559.           else
  2560.             echo "$ac_t""no" 1>&6
  2561.           fi
  2562.         
  2563.  
  2564.       enablestring=
  2565.           echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
  2566. echo "configure:2567: checking for --${enablestring:-enable}-soname" >&5
  2567.           no_cache=0
  2568.           # Check whether --enable-soname or --disable-soname was given.
  2569. if test "${enable_soname+set}" = set; then
  2570.   enableval="$enable_soname"
  2571.   
  2572.                           if test "$enableval" = yes; then
  2573.                             ac_cv_use_soname='wxUSE_SONAME=yes'
  2574.                           else
  2575.                             ac_cv_use_soname='wxUSE_SONAME=no'
  2576.                           fi
  2577.                         
  2578. else
  2579.   
  2580.                           LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
  2581.                           if test "x$LINE" != x ; then
  2582.                             eval "DEFAULT_$LINE"
  2583.                           else
  2584.                             no_cache=1
  2585.                           fi
  2586.  
  2587.                           ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
  2588.                         
  2589. fi
  2590.  
  2591.  
  2592.           eval "$ac_cv_use_soname"
  2593.           if test "$no_cache" != 1; then
  2594.             echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
  2595.           fi
  2596.  
  2597.           if test "$wxUSE_SONAME" = yes; then
  2598.             echo "$ac_t""yes" 1>&6
  2599.           else
  2600.             echo "$ac_t""no" 1>&6
  2601.           fi
  2602.         
  2603.  
  2604.       enablestring=
  2605.           echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
  2606. echo "configure:2607: checking for --${enablestring:-enable}-optimise" >&5
  2607.           no_cache=0
  2608.           # Check whether --enable-optimise or --disable-optimise was given.
  2609. if test "${enable_optimise+set}" = set; then
  2610.   enableval="$enable_optimise"
  2611.   
  2612.                           if test "$enableval" = yes; then
  2613.                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
  2614.                           else
  2615.                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
  2616.                           fi
  2617.                         
  2618. else
  2619.   
  2620.                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
  2621.                           if test "x$LINE" != x ; then
  2622.                             eval "DEFAULT_$LINE"
  2623.                           else
  2624.                             no_cache=1
  2625.                           fi
  2626.  
  2627.                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
  2628.                         
  2629. fi
  2630.  
  2631.  
  2632.           eval "$ac_cv_use_optimise"
  2633.           if test "$no_cache" != 1; then
  2634.             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
  2635.           fi
  2636.  
  2637.           if test "$wxUSE_OPTIMISE" = yes; then
  2638.             echo "$ac_t""yes" 1>&6
  2639.           else
  2640.             echo "$ac_t""no" 1>&6
  2641.           fi
  2642.         
  2643.  
  2644.       enablestring=
  2645.           echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
  2646. echo "configure:2647: checking for --${enablestring:-enable}-debug" >&5
  2647.           no_cache=0
  2648.           # Check whether --enable-debug or --disable-debug was given.
  2649. if test "${enable_debug+set}" = set; then
  2650.   enableval="$enable_debug"
  2651.   
  2652.                           if test "$enableval" = yes; then
  2653.                             ac_cv_use_debug='wxUSE_DEBUG=yes'
  2654.                           else
  2655.                             ac_cv_use_debug='wxUSE_DEBUG=no'
  2656.                           fi
  2657.                         
  2658. else
  2659.   
  2660.                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
  2661.                           if test "x$LINE" != x ; then
  2662.                             eval "DEFAULT_$LINE"
  2663.                           else
  2664.                             no_cache=1
  2665.                           fi
  2666.  
  2667.                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
  2668.                         
  2669. fi
  2670.  
  2671.  
  2672.           eval "$ac_cv_use_debug"
  2673.           if test "$no_cache" != 1; then
  2674.             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
  2675.           fi
  2676.  
  2677.           if test "$wxUSE_DEBUG" = yes; then
  2678.             echo "$ac_t""yes" 1>&6
  2679.           else
  2680.             echo "$ac_t""no" 1>&6
  2681.           fi
  2682.         
  2683.  
  2684.  
  2685.       enablestring=
  2686.           echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
  2687. echo "configure:2688: checking for --${enablestring:-enable}-precomp" >&5
  2688.           no_cache=0
  2689.           # Check whether --enable-precomp or --disable-precomp was given.
  2690. if test "${enable_precomp+set}" = set; then
  2691.   enableval="$enable_precomp"
  2692.   
  2693.                           if test "$enableval" = yes; then
  2694.                             ac_cv_use_precomp='wxUSE_PRECOMP=yes'
  2695.                           else
  2696.                             ac_cv_use_precomp='wxUSE_PRECOMP=no'
  2697.                           fi
  2698.                         
  2699. else
  2700.   
  2701.                           LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
  2702.                           if test "x$LINE" != x ; then
  2703.                             eval "DEFAULT_$LINE"
  2704.                           else
  2705.                             no_cache=1
  2706.                           fi
  2707.  
  2708.                           ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
  2709.                         
  2710. fi
  2711.  
  2712.  
  2713.           eval "$ac_cv_use_precomp"
  2714.           if test "$no_cache" != 1; then
  2715.             echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
  2716.           fi
  2717.  
  2718.           if test "$wxUSE_PRECOMP" = yes; then
  2719.             echo "$ac_t""yes" 1>&6
  2720.           else
  2721.             echo "$ac_t""no" 1>&6
  2722.           fi
  2723.         
  2724.  
  2725. if test "$wxUSE_DEBUG" = "yes"; then
  2726.   DEFAULT_wxUSE_DEBUG_FLAG=yes
  2727.   DEFAULT_wxUSE_DEBUG_INFO=yes
  2728. elif test "$wxUSE_DEBUG" = "no"; then
  2729.   DEFAULT_wxUSE_DEBUG_FLAG=no
  2730.   DEFAULT_wxUSE_DEBUG_INFO=no
  2731. fi
  2732.  
  2733.  
  2734.       enablestring=
  2735.           echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
  2736. echo "configure:2737: checking for --${enablestring:-enable}-debug_flag" >&5
  2737.           no_cache=0
  2738.           # Check whether --enable-debug_flag or --disable-debug_flag was given.
  2739. if test "${enable_debug_flag+set}" = set; then
  2740.   enableval="$enable_debug_flag"
  2741.   
  2742.                           if test "$enableval" = yes; then
  2743.                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
  2744.                           else
  2745.                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
  2746.                           fi
  2747.                         
  2748. else
  2749.   
  2750.                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
  2751.                           if test "x$LINE" != x ; then
  2752.                             eval "DEFAULT_$LINE"
  2753.                           else
  2754.                             no_cache=1
  2755.                           fi
  2756.  
  2757.                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
  2758.                         
  2759. fi
  2760.  
  2761.  
  2762.           eval "$ac_cv_use_debug_flag"
  2763.           if test "$no_cache" != 1; then
  2764.             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
  2765.           fi
  2766.  
  2767.           if test "$wxUSE_DEBUG_FLAG" = yes; then
  2768.             echo "$ac_t""yes" 1>&6
  2769.           else
  2770.             echo "$ac_t""no" 1>&6
  2771.           fi
  2772.         
  2773.  
  2774.       enablestring=
  2775.           echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
  2776. echo "configure:2777: checking for --${enablestring:-enable}-debug_info" >&5
  2777.           no_cache=0
  2778.           # Check whether --enable-debug_info or --disable-debug_info was given.
  2779. if test "${enable_debug_info+set}" = set; then
  2780.   enableval="$enable_debug_info"
  2781.   
  2782.                           if test "$enableval" = yes; then
  2783.                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
  2784.                           else
  2785.                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
  2786.                           fi
  2787.                         
  2788. else
  2789.   
  2790.                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
  2791.                           if test "x$LINE" != x ; then
  2792.                             eval "DEFAULT_$LINE"
  2793.                           else
  2794.                             no_cache=1
  2795.                           fi
  2796.  
  2797.                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
  2798.                         
  2799. fi
  2800.  
  2801.  
  2802.           eval "$ac_cv_use_debug_info"
  2803.           if test "$no_cache" != 1; then
  2804.             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
  2805.           fi
  2806.  
  2807.           if test "$wxUSE_DEBUG_INFO" = yes; then
  2808.             echo "$ac_t""yes" 1>&6
  2809.           else
  2810.             echo "$ac_t""no" 1>&6
  2811.           fi
  2812.         
  2813.  
  2814.       enablestring=
  2815.           echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
  2816. echo "configure:2817: checking for --${enablestring:-enable}-debug_gdb" >&5
  2817.           no_cache=0
  2818.           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
  2819. if test "${enable_debug_gdb+set}" = set; then
  2820.   enableval="$enable_debug_gdb"
  2821.   
  2822.                           if test "$enableval" = yes; then
  2823.                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
  2824.                           else
  2825.                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
  2826.                           fi
  2827.                         
  2828. else
  2829.   
  2830.                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
  2831.                           if test "x$LINE" != x ; then
  2832.                             eval "DEFAULT_$LINE"
  2833.                           else
  2834.                             no_cache=1
  2835.                           fi
  2836.  
  2837.                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
  2838.                         
  2839. fi
  2840.  
  2841.  
  2842.           eval "$ac_cv_use_debug_gdb"
  2843.           if test "$no_cache" != 1; then
  2844.             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
  2845.           fi
  2846.  
  2847.           if test "$wxUSE_DEBUG_GDB" = yes; then
  2848.             echo "$ac_t""yes" 1>&6
  2849.           else
  2850.             echo "$ac_t""no" 1>&6
  2851.           fi
  2852.         
  2853.  
  2854.       enablestring=
  2855.           echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
  2856. echo "configure:2857: checking for --${enablestring:-enable}-debug_cntxt" >&5
  2857.           no_cache=0
  2858.           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
  2859. if test "${enable_debug_cntxt+set}" = set; then
  2860.   enableval="$enable_debug_cntxt"
  2861.   
  2862.                           if test "$enableval" = yes; then
  2863.                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
  2864.                           else
  2865.                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
  2866.                           fi
  2867.                         
  2868. else
  2869.   
  2870.                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
  2871.                           if test "x$LINE" != x ; then
  2872.                             eval "DEFAULT_$LINE"
  2873.                           else
  2874.                             no_cache=1
  2875.                           fi
  2876.  
  2877.                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
  2878.                         
  2879. fi
  2880.  
  2881.  
  2882.           eval "$ac_cv_use_debug_cntxt"
  2883.           if test "$no_cache" != 1; then
  2884.             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
  2885.           fi
  2886.  
  2887.           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
  2888.             echo "$ac_t""yes" 1>&6
  2889.           else
  2890.             echo "$ac_t""no" 1>&6
  2891.           fi
  2892.         
  2893.  
  2894.       enablestring=
  2895.           echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
  2896. echo "configure:2897: checking for --${enablestring:-enable}-mem_tracing" >&5
  2897.           no_cache=0
  2898.           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
  2899. if test "${enable_mem_tracing+set}" = set; then
  2900.   enableval="$enable_mem_tracing"
  2901.   
  2902.                           if test "$enableval" = yes; then
  2903.                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
  2904.                           else
  2905.                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
  2906.                           fi
  2907.                         
  2908. else
  2909.   
  2910.                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
  2911.                           if test "x$LINE" != x ; then
  2912.                             eval "DEFAULT_$LINE"
  2913.                           else
  2914.                             no_cache=1
  2915.                           fi
  2916.  
  2917.                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
  2918.                         
  2919. fi
  2920.  
  2921.  
  2922.           eval "$ac_cv_use_mem_tracing"
  2923.           if test "$no_cache" != 1; then
  2924.             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
  2925.           fi
  2926.  
  2927.           if test "$wxUSE_MEM_TRACING" = yes; then
  2928.             echo "$ac_t""yes" 1>&6
  2929.           else
  2930.             echo "$ac_t""no" 1>&6
  2931.           fi
  2932.         
  2933.  
  2934.       enablestring=
  2935.           echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
  2936. echo "configure:2937: checking for --${enablestring:-enable}-profile" >&5
  2937.           no_cache=0
  2938.           # Check whether --enable-profile or --disable-profile was given.
  2939. if test "${enable_profile+set}" = set; then
  2940.   enableval="$enable_profile"
  2941.   
  2942.                           if test "$enableval" = yes; then
  2943.                             ac_cv_use_profile='wxUSE_PROFILE=yes'
  2944.                           else
  2945.                             ac_cv_use_profile='wxUSE_PROFILE=no'
  2946.                           fi
  2947.                         
  2948. else
  2949.   
  2950.                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
  2951.                           if test "x$LINE" != x ; then
  2952.                             eval "DEFAULT_$LINE"
  2953.                           else
  2954.                             no_cache=1
  2955.                           fi
  2956.  
  2957.                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
  2958.                         
  2959. fi
  2960.  
  2961.  
  2962.           eval "$ac_cv_use_profile"
  2963.           if test "$no_cache" != 1; then
  2964.             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
  2965.           fi
  2966.  
  2967.           if test "$wxUSE_PROFILE" = yes; then
  2968.             echo "$ac_t""yes" 1>&6
  2969.           else
  2970.             echo "$ac_t""no" 1>&6
  2971.           fi
  2972.         
  2973.  
  2974.       enablestring=
  2975.           echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
  2976. echo "configure:2977: checking for --${enablestring:-enable}-no_rtti" >&5
  2977.           no_cache=0
  2978.           # Check whether --enable-no_rtti or --disable-no_rtti was given.
  2979. if test "${enable_no_rtti+set}" = set; then
  2980.   enableval="$enable_no_rtti"
  2981.   
  2982.                           if test "$enableval" = yes; then
  2983.                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
  2984.                           else
  2985.                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
  2986.                           fi
  2987.                         
  2988. else
  2989.   
  2990.                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
  2991.                           if test "x$LINE" != x ; then
  2992.                             eval "DEFAULT_$LINE"
  2993.                           else
  2994.                             no_cache=1
  2995.                           fi
  2996.  
  2997.                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
  2998.                         
  2999. fi
  3000.  
  3001.  
  3002.           eval "$ac_cv_use_no_rtti"
  3003.           if test "$no_cache" != 1; then
  3004.             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
  3005.           fi
  3006.  
  3007.           if test "$wxUSE_NO_RTTI" = yes; then
  3008.             echo "$ac_t""yes" 1>&6
  3009.           else
  3010.             echo "$ac_t""no" 1>&6
  3011.           fi
  3012.         
  3013.  
  3014.       enablestring=
  3015.           echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
  3016. echo "configure:3017: checking for --${enablestring:-enable}-no_exceptions" >&5
  3017.           no_cache=0
  3018.           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
  3019. if test "${enable_no_exceptions+set}" = set; then
  3020.   enableval="$enable_no_exceptions"
  3021.   
  3022.                           if test "$enableval" = yes; then
  3023.                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
  3024.                           else
  3025.                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
  3026.                           fi
  3027.                         
  3028. else
  3029.   
  3030.                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
  3031.                           if test "x$LINE" != x ; then
  3032.                             eval "DEFAULT_$LINE"
  3033.                           else
  3034.                             no_cache=1
  3035.                           fi
  3036.  
  3037.                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
  3038.                         
  3039. fi
  3040.  
  3041.  
  3042.           eval "$ac_cv_use_no_exceptions"
  3043.           if test "$no_cache" != 1; then
  3044.             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
  3045.           fi
  3046.  
  3047.           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
  3048.             echo "$ac_t""yes" 1>&6
  3049.           else
  3050.             echo "$ac_t""no" 1>&6
  3051.           fi
  3052.         
  3053.  
  3054.       enablestring=
  3055.           echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
  3056. echo "configure:3057: checking for --${enablestring:-enable}-permissive" >&5
  3057.           no_cache=0
  3058.           # Check whether --enable-permissive or --disable-permissive was given.
  3059. if test "${enable_permissive+set}" = set; then
  3060.   enableval="$enable_permissive"
  3061.   
  3062.                           if test "$enableval" = yes; then
  3063.                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
  3064.                           else
  3065.                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
  3066.                           fi
  3067.                         
  3068. else
  3069.   
  3070.                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
  3071.                           if test "x$LINE" != x ; then
  3072.                             eval "DEFAULT_$LINE"
  3073.                           else
  3074.                             no_cache=1
  3075.                           fi
  3076.  
  3077.                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
  3078.                         
  3079. fi
  3080.  
  3081.  
  3082.           eval "$ac_cv_use_permissive"
  3083.           if test "$no_cache" != 1; then
  3084.             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
  3085.           fi
  3086.  
  3087.           if test "$wxUSE_PERMISSIVE" = yes; then
  3088.             echo "$ac_t""yes" 1>&6
  3089.           else
  3090.             echo "$ac_t""no" 1>&6
  3091.           fi
  3092.         
  3093.  
  3094.       enablestring=
  3095.           echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
  3096. echo "configure:3097: checking for --${enablestring:-enable}-no_deps" >&5
  3097.           no_cache=0
  3098.           # Check whether --enable-no_deps or --disable-no_deps was given.
  3099. if test "${enable_no_deps+set}" = set; then
  3100.   enableval="$enable_no_deps"
  3101.   
  3102.                           if test "$enableval" = yes; then
  3103.                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
  3104.                           else
  3105.                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
  3106.                           fi
  3107.                         
  3108. else
  3109.   
  3110.                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
  3111.                           if test "x$LINE" != x ; then
  3112.                             eval "DEFAULT_$LINE"
  3113.                           else
  3114.                             no_cache=1
  3115.                           fi
  3116.  
  3117.                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
  3118.                         
  3119. fi
  3120.  
  3121.  
  3122.           eval "$ac_cv_use_no_deps"
  3123.           if test "$no_cache" != 1; then
  3124.             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
  3125.           fi
  3126.  
  3127.           if test "$wxUSE_NO_DEPS" = yes; then
  3128.             echo "$ac_t""yes" 1>&6
  3129.           else
  3130.             echo "$ac_t""no" 1>&6
  3131.           fi
  3132.         
  3133.  
  3134.  
  3135.       enablestring=
  3136.           echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
  3137. echo "configure:3138: checking for --${enablestring:-enable}-compat20" >&5
  3138.           no_cache=0
  3139.           # Check whether --enable-compat20 or --disable-compat20 was given.
  3140. if test "${enable_compat20+set}" = set; then
  3141.   enableval="$enable_compat20"
  3142.   
  3143.                           if test "$enableval" = yes; then
  3144.                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
  3145.                           else
  3146.                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
  3147.                           fi
  3148.                         
  3149. else
  3150.   
  3151.                           LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
  3152.                           if test "x$LINE" != x ; then
  3153.                             eval "DEFAULT_$LINE"
  3154.                           else
  3155.                             no_cache=1
  3156.                           fi
  3157.  
  3158.                           ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
  3159.                         
  3160. fi
  3161.  
  3162.  
  3163.           eval "$ac_cv_use_compat20"
  3164.           if test "$no_cache" != 1; then
  3165.             echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
  3166.           fi
  3167.  
  3168.           if test "$WXWIN_COMPATIBILITY_2" = yes; then
  3169.             echo "$ac_t""yes" 1>&6
  3170.           else
  3171.             echo "$ac_t""no" 1>&6
  3172.           fi
  3173.         
  3174.  
  3175.       enablestring=disable
  3176.           echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
  3177. echo "configure:3178: checking for --${enablestring:-enable}-compat22" >&5
  3178.           no_cache=0
  3179.           # Check whether --enable-compat22 or --disable-compat22 was given.
  3180. if test "${enable_compat22+set}" = set; then
  3181.   enableval="$enable_compat22"
  3182.   
  3183.                           if test "$enableval" = yes; then
  3184.                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
  3185.                           else
  3186.                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
  3187.                           fi
  3188.                         
  3189. else
  3190.   
  3191.                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
  3192.                           if test "x$LINE" != x ; then
  3193.                             eval "DEFAULT_$LINE"
  3194.                           else
  3195.                             no_cache=1
  3196.                           fi
  3197.  
  3198.                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
  3199.                         
  3200. fi
  3201.  
  3202.  
  3203.           eval "$ac_cv_use_compat22"
  3204.           if test "$no_cache" != 1; then
  3205.             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
  3206.           fi
  3207.  
  3208.           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
  3209.             echo "$ac_t""yes" 1>&6
  3210.           else
  3211.             echo "$ac_t""no" 1>&6
  3212.           fi
  3213.         
  3214.  
  3215. # Check whether --enable-rpath or --disable-rpath was given.
  3216. if test "${enable_rpath+set}" = set; then
  3217.   enableval="$enable_rpath"
  3218.   wxRPATH_DIR="$enableval"
  3219. fi
  3220.  
  3221.  
  3222. if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
  3223.    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
  3224. fi
  3225.  
  3226.  
  3227.  
  3228.  
  3229.       enablestring=
  3230.           echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
  3231. echo "configure:3232: checking for --${enablestring:-enable}-intl" >&5
  3232.           no_cache=0
  3233.           # Check whether --enable-intl or --disable-intl was given.
  3234. if test "${enable_intl+set}" = set; then
  3235.   enableval="$enable_intl"
  3236.   
  3237.                           if test "$enableval" = yes; then
  3238.                             ac_cv_use_intl='wxUSE_INTL=yes'
  3239.                           else
  3240.                             ac_cv_use_intl='wxUSE_INTL=no'
  3241.                           fi
  3242.                         
  3243. else
  3244.   
  3245.                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
  3246.                           if test "x$LINE" != x ; then
  3247.                             eval "DEFAULT_$LINE"
  3248.                           else
  3249.                             no_cache=1
  3250.                           fi
  3251.  
  3252.                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
  3253.                         
  3254. fi
  3255.  
  3256.  
  3257.           eval "$ac_cv_use_intl"
  3258.           if test "$no_cache" != 1; then
  3259.             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
  3260.           fi
  3261.  
  3262.           if test "$wxUSE_INTL" = yes; then
  3263.             echo "$ac_t""yes" 1>&6
  3264.           else
  3265.             echo "$ac_t""no" 1>&6
  3266.           fi
  3267.         
  3268.  
  3269.       enablestring=
  3270.           echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
  3271. echo "configure:3272: checking for --${enablestring:-enable}-config" >&5
  3272.           no_cache=0
  3273.           # Check whether --enable-config or --disable-config was given.
  3274. if test "${enable_config+set}" = set; then
  3275.   enableval="$enable_config"
  3276.   
  3277.                           if test "$enableval" = yes; then
  3278.                             ac_cv_use_config='wxUSE_CONFIG=yes'
  3279.                           else
  3280.                             ac_cv_use_config='wxUSE_CONFIG=no'
  3281.                           fi
  3282.                         
  3283. else
  3284.   
  3285.                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
  3286.                           if test "x$LINE" != x ; then
  3287.                             eval "DEFAULT_$LINE"
  3288.                           else
  3289.                             no_cache=1
  3290.                           fi
  3291.  
  3292.                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
  3293.                         
  3294. fi
  3295.  
  3296.  
  3297.           eval "$ac_cv_use_config"
  3298.           if test "$no_cache" != 1; then
  3299.             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
  3300.           fi
  3301.  
  3302.           if test "$wxUSE_CONFIG" = yes; then
  3303.             echo "$ac_t""yes" 1>&6
  3304.           else
  3305.             echo "$ac_t""no" 1>&6
  3306.           fi
  3307.         
  3308.  
  3309.  
  3310.       enablestring=
  3311.           echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
  3312. echo "configure:3313: checking for --${enablestring:-enable}-protocols" >&5
  3313.           no_cache=0
  3314.           # Check whether --enable-protocols or --disable-protocols was given.
  3315. if test "${enable_protocols+set}" = set; then
  3316.   enableval="$enable_protocols"
  3317.   
  3318.                           if test "$enableval" = yes; then
  3319.                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
  3320.                           else
  3321.                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
  3322.                           fi
  3323.                         
  3324. else
  3325.   
  3326.                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
  3327.                           if test "x$LINE" != x ; then
  3328.                             eval "DEFAULT_$LINE"
  3329.                           else
  3330.                             no_cache=1
  3331.                           fi
  3332.  
  3333.                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
  3334.                         
  3335. fi
  3336.  
  3337.  
  3338.           eval "$ac_cv_use_protocols"
  3339.           if test "$no_cache" != 1; then
  3340.             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
  3341.           fi
  3342.  
  3343.           if test "$wxUSE_PROTOCOL" = yes; then
  3344.             echo "$ac_t""yes" 1>&6
  3345.           else
  3346.             echo "$ac_t""no" 1>&6
  3347.           fi
  3348.         
  3349.  
  3350.       enablestring=
  3351.           echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
  3352. echo "configure:3353: checking for --${enablestring:-enable}-ftp" >&5
  3353.           no_cache=0
  3354.           # Check whether --enable-ftp or --disable-ftp was given.
  3355. if test "${enable_ftp+set}" = set; then
  3356.   enableval="$enable_ftp"
  3357.   
  3358.                           if test "$enableval" = yes; then
  3359.                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
  3360.                           else
  3361.                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
  3362.                           fi
  3363.                         
  3364. else
  3365.   
  3366.                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
  3367.                           if test "x$LINE" != x ; then
  3368.                             eval "DEFAULT_$LINE"
  3369.                           else
  3370.                             no_cache=1
  3371.                           fi
  3372.  
  3373.                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
  3374.                         
  3375. fi
  3376.  
  3377.  
  3378.           eval "$ac_cv_use_ftp"
  3379.           if test "$no_cache" != 1; then
  3380.             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
  3381.           fi
  3382.  
  3383.           if test "$wxUSE_PROTOCOL_FTP" = yes; then
  3384.             echo "$ac_t""yes" 1>&6
  3385.           else
  3386.             echo "$ac_t""no" 1>&6
  3387.           fi
  3388.         
  3389.  
  3390.       enablestring=
  3391.           echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
  3392. echo "configure:3393: checking for --${enablestring:-enable}-http" >&5
  3393.           no_cache=0
  3394.           # Check whether --enable-http or --disable-http was given.
  3395. if test "${enable_http+set}" = set; then
  3396.   enableval="$enable_http"
  3397.   
  3398.                           if test "$enableval" = yes; then
  3399.                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
  3400.                           else
  3401.                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
  3402.                           fi
  3403.                         
  3404. else
  3405.   
  3406.                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
  3407.                           if test "x$LINE" != x ; then
  3408.                             eval "DEFAULT_$LINE"
  3409.                           else
  3410.                             no_cache=1
  3411.                           fi
  3412.  
  3413.                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
  3414.                         
  3415. fi
  3416.  
  3417.  
  3418.           eval "$ac_cv_use_http"
  3419.           if test "$no_cache" != 1; then
  3420.             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
  3421.           fi
  3422.  
  3423.           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
  3424.             echo "$ac_t""yes" 1>&6
  3425.           else
  3426.             echo "$ac_t""no" 1>&6
  3427.           fi
  3428.         
  3429.  
  3430.       enablestring=
  3431.           echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
  3432. echo "configure:3433: checking for --${enablestring:-enable}-fileproto" >&5
  3433.           no_cache=0
  3434.           # Check whether --enable-fileproto or --disable-fileproto was given.
  3435. if test "${enable_fileproto+set}" = set; then
  3436.   enableval="$enable_fileproto"
  3437.   
  3438.                           if test "$enableval" = yes; then
  3439.                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
  3440.                           else
  3441.                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
  3442.                           fi
  3443.                         
  3444. else
  3445.   
  3446.                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
  3447.                           if test "x$LINE" != x ; then
  3448.                             eval "DEFAULT_$LINE"
  3449.                           else
  3450.                             no_cache=1
  3451.                           fi
  3452.  
  3453.                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
  3454.                         
  3455. fi
  3456.  
  3457.  
  3458.           eval "$ac_cv_use_fileproto"
  3459.           if test "$no_cache" != 1; then
  3460.             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
  3461.           fi
  3462.  
  3463.           if test "$wxUSE_PROTOCOL_FILE" = yes; then
  3464.             echo "$ac_t""yes" 1>&6
  3465.           else
  3466.             echo "$ac_t""no" 1>&6
  3467.           fi
  3468.         
  3469.  
  3470.       enablestring=
  3471.           echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
  3472. echo "configure:3473: checking for --${enablestring:-enable}-sockets" >&5
  3473.           no_cache=0
  3474.           # Check whether --enable-sockets or --disable-sockets was given.
  3475. if test "${enable_sockets+set}" = set; then
  3476.   enableval="$enable_sockets"
  3477.   
  3478.                           if test "$enableval" = yes; then
  3479.                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
  3480.                           else
  3481.                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
  3482.                           fi
  3483.                         
  3484. else
  3485.   
  3486.                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
  3487.                           if test "x$LINE" != x ; then
  3488.                             eval "DEFAULT_$LINE"
  3489.                           else
  3490.                             no_cache=1
  3491.                           fi
  3492.  
  3493.                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
  3494.                         
  3495. fi
  3496.  
  3497.  
  3498.           eval "$ac_cv_use_sockets"
  3499.           if test "$no_cache" != 1; then
  3500.             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
  3501.           fi
  3502.  
  3503.           if test "$wxUSE_SOCKETS" = yes; then
  3504.             echo "$ac_t""yes" 1>&6
  3505.           else
  3506.             echo "$ac_t""no" 1>&6
  3507.           fi
  3508.         
  3509.  
  3510.       enablestring=
  3511.           echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
  3512. echo "configure:3513: checking for --${enablestring:-enable}-ole" >&5
  3513.           no_cache=0
  3514.           # Check whether --enable-ole or --disable-ole was given.
  3515. if test "${enable_ole+set}" = set; then
  3516.   enableval="$enable_ole"
  3517.   
  3518.                           if test "$enableval" = yes; then
  3519.                             ac_cv_use_ole='wxUSE_OLE=yes'
  3520.                           else
  3521.                             ac_cv_use_ole='wxUSE_OLE=no'
  3522.                           fi
  3523.                         
  3524. else
  3525.   
  3526.                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
  3527.                           if test "x$LINE" != x ; then
  3528.                             eval "DEFAULT_$LINE"
  3529.                           else
  3530.                             no_cache=1
  3531.                           fi
  3532.  
  3533.                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
  3534.                         
  3535. fi
  3536.  
  3537.  
  3538.           eval "$ac_cv_use_ole"
  3539.           if test "$no_cache" != 1; then
  3540.             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
  3541.           fi
  3542.  
  3543.           if test "$wxUSE_OLE" = yes; then
  3544.             echo "$ac_t""yes" 1>&6
  3545.           else
  3546.             echo "$ac_t""no" 1>&6
  3547.           fi
  3548.         
  3549.  
  3550.       enablestring=
  3551.           echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
  3552. echo "configure:3553: checking for --${enablestring:-enable}-dataobj" >&5
  3553.           no_cache=0
  3554.           # Check whether --enable-dataobj or --disable-dataobj was given.
  3555. if test "${enable_dataobj+set}" = set; then
  3556.   enableval="$enable_dataobj"
  3557.   
  3558.                           if test "$enableval" = yes; then
  3559.                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
  3560.                           else
  3561.                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
  3562.                           fi
  3563.                         
  3564. else
  3565.   
  3566.                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
  3567.                           if test "x$LINE" != x ; then
  3568.                             eval "DEFAULT_$LINE"
  3569.                           else
  3570.                             no_cache=1
  3571.                           fi
  3572.  
  3573.                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
  3574.                         
  3575. fi
  3576.  
  3577.  
  3578.           eval "$ac_cv_use_dataobj"
  3579.           if test "$no_cache" != 1; then
  3580.             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
  3581.           fi
  3582.  
  3583.           if test "$wxUSE_DATAOBJ" = yes; then
  3584.             echo "$ac_t""yes" 1>&6
  3585.           else
  3586.             echo "$ac_t""no" 1>&6
  3587.           fi
  3588.         
  3589.  
  3590.  
  3591.       enablestring=
  3592.           echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
  3593. echo "configure:3594: checking for --${enablestring:-enable}-ipc" >&5
  3594.           no_cache=0
  3595.           # Check whether --enable-ipc or --disable-ipc was given.
  3596. if test "${enable_ipc+set}" = set; then
  3597.   enableval="$enable_ipc"
  3598.   
  3599.                           if test "$enableval" = yes; then
  3600.                             ac_cv_use_ipc='wxUSE_IPC=yes'
  3601.                           else
  3602.                             ac_cv_use_ipc='wxUSE_IPC=no'
  3603.                           fi
  3604.                         
  3605. else
  3606.   
  3607.                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
  3608.                           if test "x$LINE" != x ; then
  3609.                             eval "DEFAULT_$LINE"
  3610.                           else
  3611.                             no_cache=1
  3612.                           fi
  3613.  
  3614.                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
  3615.                         
  3616. fi
  3617.  
  3618.  
  3619.           eval "$ac_cv_use_ipc"
  3620.           if test "$no_cache" != 1; then
  3621.             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
  3622.           fi
  3623.  
  3624.           if test "$wxUSE_IPC" = yes; then
  3625.             echo "$ac_t""yes" 1>&6
  3626.           else
  3627.             echo "$ac_t""no" 1>&6
  3628.           fi
  3629.         
  3630.  
  3631.  
  3632.       enablestring=
  3633.           echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
  3634. echo "configure:3635: checking for --${enablestring:-enable}-cmdline" >&5
  3635.           no_cache=0
  3636.           # Check whether --enable-cmdline or --disable-cmdline was given.
  3637. if test "${enable_cmdline+set}" = set; then
  3638.   enableval="$enable_cmdline"
  3639.   
  3640.                           if test "$enableval" = yes; then
  3641.                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
  3642.                           else
  3643.                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
  3644.                           fi
  3645.                         
  3646. else
  3647.   
  3648.                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
  3649.                           if test "x$LINE" != x ; then
  3650.                             eval "DEFAULT_$LINE"
  3651.                           else
  3652.                             no_cache=1
  3653.                           fi
  3654.  
  3655.                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
  3656.                         
  3657. fi
  3658.  
  3659.  
  3660.           eval "$ac_cv_use_cmdline"
  3661.           if test "$no_cache" != 1; then
  3662.             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
  3663.           fi
  3664.  
  3665.           if test "$wxUSE_CMDLINE_PARSER" = yes; then
  3666.             echo "$ac_t""yes" 1>&6
  3667.           else
  3668.             echo "$ac_t""no" 1>&6
  3669.           fi
  3670.         
  3671.  
  3672.       enablestring=
  3673.           echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
  3674. echo "configure:3675: checking for --${enablestring:-enable}-datetime" >&5
  3675.           no_cache=0
  3676.           # Check whether --enable-datetime or --disable-datetime was given.
  3677. if test "${enable_datetime+set}" = set; then
  3678.   enableval="$enable_datetime"
  3679.   
  3680.                           if test "$enableval" = yes; then
  3681.                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
  3682.                           else
  3683.                             ac_cv_use_datetime='wxUSE_DATETIME=no'
  3684.                           fi
  3685.                         
  3686. else
  3687.   
  3688.                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
  3689.                           if test "x$LINE" != x ; then
  3690.                             eval "DEFAULT_$LINE"
  3691.                           else
  3692.                             no_cache=1
  3693.                           fi
  3694.  
  3695.                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
  3696.                         
  3697. fi
  3698.  
  3699.  
  3700.           eval "$ac_cv_use_datetime"
  3701.           if test "$no_cache" != 1; then
  3702.             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
  3703.           fi
  3704.  
  3705.           if test "$wxUSE_DATETIME" = yes; then
  3706.             echo "$ac_t""yes" 1>&6
  3707.           else
  3708.             echo "$ac_t""no" 1>&6
  3709.           fi
  3710.         
  3711.  
  3712.       enablestring=
  3713.           echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6
  3714. echo "configure:3715: checking for --${enablestring:-enable}-timedate" >&5
  3715.           no_cache=0
  3716.           # Check whether --enable-timedate or --disable-timedate was given.
  3717. if test "${enable_timedate+set}" = set; then
  3718.   enableval="$enable_timedate"
  3719.   
  3720.                           if test "$enableval" = yes; then
  3721.                             ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
  3722.                           else
  3723.                             ac_cv_use_timedate='wxUSE_TIMEDATE=no'
  3724.                           fi
  3725.                         
  3726. else
  3727.   
  3728.                           LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
  3729.                           if test "x$LINE" != x ; then
  3730.                             eval "DEFAULT_$LINE"
  3731.                           else
  3732.                             no_cache=1
  3733.                           fi
  3734.  
  3735.                           ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
  3736.                         
  3737. fi
  3738.  
  3739.  
  3740.           eval "$ac_cv_use_timedate"
  3741.           if test "$no_cache" != 1; then
  3742.             echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
  3743.           fi
  3744.  
  3745.           if test "$wxUSE_TIMEDATE" = yes; then
  3746.             echo "$ac_t""yes" 1>&6
  3747.           else
  3748.             echo "$ac_t""no" 1>&6
  3749.           fi
  3750.         
  3751.  
  3752.       enablestring=
  3753.           echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
  3754. echo "configure:3755: checking for --${enablestring:-enable}-stopwatch" >&5
  3755.           no_cache=0
  3756.           # Check whether --enable-stopwatch or --disable-stopwatch was given.
  3757. if test "${enable_stopwatch+set}" = set; then
  3758.   enableval="$enable_stopwatch"
  3759.   
  3760.                           if test "$enableval" = yes; then
  3761.                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
  3762.                           else
  3763.                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
  3764.                           fi
  3765.                         
  3766. else
  3767.   
  3768.                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
  3769.                           if test "x$LINE" != x ; then
  3770.                             eval "DEFAULT_$LINE"
  3771.                           else
  3772.                             no_cache=1
  3773.                           fi
  3774.  
  3775.                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
  3776.                         
  3777. fi
  3778.  
  3779.  
  3780.           eval "$ac_cv_use_stopwatch"
  3781.           if test "$no_cache" != 1; then
  3782.             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
  3783.           fi
  3784.  
  3785.           if test "$wxUSE_STOPWATCH" = yes; then
  3786.             echo "$ac_t""yes" 1>&6
  3787.           else
  3788.             echo "$ac_t""no" 1>&6
  3789.           fi
  3790.         
  3791.  
  3792.       enablestring=
  3793.           echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
  3794. echo "configure:3795: checking for --${enablestring:-enable}-dialupman" >&5
  3795.           no_cache=0
  3796.           # Check whether --enable-dialupman or --disable-dialupman was given.
  3797. if test "${enable_dialupman+set}" = set; then
  3798.   enableval="$enable_dialupman"
  3799.   
  3800.                           if test "$enableval" = yes; then
  3801.                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
  3802.                           else
  3803.                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
  3804.                           fi
  3805.                         
  3806. else
  3807.   
  3808.                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
  3809.                           if test "x$LINE" != x ; then
  3810.                             eval "DEFAULT_$LINE"
  3811.                           else
  3812.                             no_cache=1
  3813.                           fi
  3814.  
  3815.                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
  3816.                         
  3817. fi
  3818.  
  3819.  
  3820.           eval "$ac_cv_use_dialupman"
  3821.           if test "$no_cache" != 1; then
  3822.             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
  3823.           fi
  3824.  
  3825.           if test "$wxUSE_DIALUP_MANAGER" = yes; then
  3826.             echo "$ac_t""yes" 1>&6
  3827.           else
  3828.             echo "$ac_t""no" 1>&6
  3829.           fi
  3830.         
  3831.  
  3832.       enablestring=
  3833.           echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
  3834. echo "configure:3835: checking for --${enablestring:-enable}-apple_ieee" >&5
  3835.           no_cache=0
  3836.           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
  3837. if test "${enable_apple_ieee+set}" = set; then
  3838.   enableval="$enable_apple_ieee"
  3839.   
  3840.                           if test "$enableval" = yes; then
  3841.                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
  3842.                           else
  3843.                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
  3844.                           fi
  3845.                         
  3846. else
  3847.   
  3848.                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
  3849.                           if test "x$LINE" != x ; then
  3850.                             eval "DEFAULT_$LINE"
  3851.                           else
  3852.                             no_cache=1
  3853.                           fi
  3854.  
  3855.                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
  3856.                         
  3857. fi
  3858.  
  3859.  
  3860.           eval "$ac_cv_use_apple_ieee"
  3861.           if test "$no_cache" != 1; then
  3862.             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
  3863.           fi
  3864.  
  3865.           if test "$wxUSE_APPLE_IEEE" = yes; then
  3866.             echo "$ac_t""yes" 1>&6
  3867.           else
  3868.             echo "$ac_t""no" 1>&6
  3869.           fi
  3870.         
  3871.  
  3872.       enablestring=
  3873.           echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
  3874. echo "configure:3875: checking for --${enablestring:-enable}-timer" >&5
  3875.           no_cache=0
  3876.           # Check whether --enable-timer or --disable-timer was given.
  3877. if test "${enable_timer+set}" = set; then
  3878.   enableval="$enable_timer"
  3879.   
  3880.                           if test "$enableval" = yes; then
  3881.                             ac_cv_use_timer='wxUSE_TIMER=yes'
  3882.                           else
  3883.                             ac_cv_use_timer='wxUSE_TIMER=no'
  3884.                           fi
  3885.                         
  3886. else
  3887.   
  3888.                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
  3889.                           if test "x$LINE" != x ; then
  3890.                             eval "DEFAULT_$LINE"
  3891.                           else
  3892.                             no_cache=1
  3893.                           fi
  3894.  
  3895.                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
  3896.                         
  3897. fi
  3898.  
  3899.  
  3900.           eval "$ac_cv_use_timer"
  3901.           if test "$no_cache" != 1; then
  3902.             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
  3903.           fi
  3904.  
  3905.           if test "$wxUSE_TIMER" = yes; then
  3906.             echo "$ac_t""yes" 1>&6
  3907.           else
  3908.             echo "$ac_t""no" 1>&6
  3909.           fi
  3910.         
  3911.  
  3912.       enablestring=
  3913.           echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
  3914. echo "configure:3915: checking for --${enablestring:-enable}-wave" >&5
  3915.           no_cache=0
  3916.           # Check whether --enable-wave or --disable-wave was given.
  3917. if test "${enable_wave+set}" = set; then
  3918.   enableval="$enable_wave"
  3919.   
  3920.                           if test "$enableval" = yes; then
  3921.                             ac_cv_use_wave='wxUSE_WAVE=yes'
  3922.                           else
  3923.                             ac_cv_use_wave='wxUSE_WAVE=no'
  3924.                           fi
  3925.                         
  3926. else
  3927.   
  3928.                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
  3929.                           if test "x$LINE" != x ; then
  3930.                             eval "DEFAULT_$LINE"
  3931.                           else
  3932.                             no_cache=1
  3933.                           fi
  3934.  
  3935.                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
  3936.                         
  3937. fi
  3938.  
  3939.  
  3940.           eval "$ac_cv_use_wave"
  3941.           if test "$no_cache" != 1; then
  3942.             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
  3943.           fi
  3944.  
  3945.           if test "$wxUSE_WAVE" = yes; then
  3946.             echo "$ac_t""yes" 1>&6
  3947.           else
  3948.             echo "$ac_t""no" 1>&6
  3949.           fi
  3950.         
  3951.  
  3952.       enablestring=
  3953.           echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
  3954. echo "configure:3955: checking for --${enablestring:-enable}-fraction" >&5
  3955.           no_cache=0
  3956.           # Check whether --enable-fraction or --disable-fraction was given.
  3957. if test "${enable_fraction+set}" = set; then
  3958.   enableval="$enable_fraction"
  3959.   
  3960.                           if test "$enableval" = yes; then
  3961.                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
  3962.                           else
  3963.                             ac_cv_use_fraction='wxUSE_FRACTION=no'
  3964.                           fi
  3965.                         
  3966. else
  3967.   
  3968.                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
  3969.                           if test "x$LINE" != x ; then
  3970.                             eval "DEFAULT_$LINE"
  3971.                           else
  3972.                             no_cache=1
  3973.                           fi
  3974.  
  3975.                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
  3976.                         
  3977. fi
  3978.  
  3979.  
  3980.           eval "$ac_cv_use_fraction"
  3981.           if test "$no_cache" != 1; then
  3982.             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
  3983.           fi
  3984.  
  3985.           if test "$wxUSE_FRACTION" = yes; then
  3986.             echo "$ac_t""yes" 1>&6
  3987.           else
  3988.             echo "$ac_t""no" 1>&6
  3989.           fi
  3990.         
  3991.  
  3992.       enablestring=
  3993.           echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
  3994. echo "configure:3995: checking for --${enablestring:-enable}-dynlib" >&5
  3995.           no_cache=0
  3996.           # Check whether --enable-dynlib or --disable-dynlib was given.
  3997. if test "${enable_dynlib+set}" = set; then
  3998.   enableval="$enable_dynlib"
  3999.   
  4000.                           if test "$enableval" = yes; then
  4001.                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
  4002.                           else
  4003.                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
  4004.                           fi
  4005.                         
  4006. else
  4007.   
  4008.                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
  4009.                           if test "x$LINE" != x ; then
  4010.                             eval "DEFAULT_$LINE"
  4011.                           else
  4012.                             no_cache=1
  4013.                           fi
  4014.  
  4015.                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
  4016.                         
  4017. fi
  4018.  
  4019.  
  4020.           eval "$ac_cv_use_dynlib"
  4021.           if test "$no_cache" != 1; then
  4022.             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
  4023.           fi
  4024.  
  4025.           if test "$wxUSE_DYNLIB_CLASS" = yes; then
  4026.             echo "$ac_t""yes" 1>&6
  4027.           else
  4028.             echo "$ac_t""no" 1>&6
  4029.           fi
  4030.         
  4031.  
  4032.       enablestring=
  4033.           echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
  4034. echo "configure:4035: checking for --${enablestring:-enable}-dynamicloader" >&5
  4035.           no_cache=0
  4036.           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
  4037. if test "${enable_dynamicloader+set}" = set; then
  4038.   enableval="$enable_dynamicloader"
  4039.   
  4040.                           if test "$enableval" = yes; then
  4041.                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
  4042.                           else
  4043.                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
  4044.                           fi
  4045.                         
  4046. else
  4047.   
  4048.                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
  4049.                           if test "x$LINE" != x ; then
  4050.                             eval "DEFAULT_$LINE"
  4051.                           else
  4052.                             no_cache=1
  4053.                           fi
  4054.  
  4055.                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
  4056.                         
  4057. fi
  4058.  
  4059.  
  4060.           eval "$ac_cv_use_dynamicloader"
  4061.           if test "$no_cache" != 1; then
  4062.             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
  4063.           fi
  4064.  
  4065.           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
  4066.             echo "$ac_t""yes" 1>&6
  4067.           else
  4068.             echo "$ac_t""no" 1>&6
  4069.           fi
  4070.         
  4071.  
  4072.       enablestring=
  4073.           echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
  4074. echo "configure:4075: checking for --${enablestring:-enable}-longlong" >&5
  4075.           no_cache=0
  4076.           # Check whether --enable-longlong or --disable-longlong was given.
  4077. if test "${enable_longlong+set}" = set; then
  4078.   enableval="$enable_longlong"
  4079.   
  4080.                           if test "$enableval" = yes; then
  4081.                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
  4082.                           else
  4083.                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
  4084.                           fi
  4085.                         
  4086. else
  4087.   
  4088.                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
  4089.                           if test "x$LINE" != x ; then
  4090.                             eval "DEFAULT_$LINE"
  4091.                           else
  4092.                             no_cache=1
  4093.                           fi
  4094.  
  4095.                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
  4096.                         
  4097. fi
  4098.  
  4099.  
  4100.           eval "$ac_cv_use_longlong"
  4101.           if test "$no_cache" != 1; then
  4102.             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
  4103.           fi
  4104.  
  4105.           if test "$wxUSE_LONGLONG" = yes; then
  4106.             echo "$ac_t""yes" 1>&6
  4107.           else
  4108.             echo "$ac_t""no" 1>&6
  4109.           fi
  4110.         
  4111.  
  4112.       enablestring=
  4113.           echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
  4114. echo "configure:4115: checking for --${enablestring:-enable}-geometry" >&5
  4115.           no_cache=0
  4116.           # Check whether --enable-geometry or --disable-geometry was given.
  4117. if test "${enable_geometry+set}" = set; then
  4118.   enableval="$enable_geometry"
  4119.   
  4120.                           if test "$enableval" = yes; then
  4121.                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
  4122.                           else
  4123.                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
  4124.                           fi
  4125.                         
  4126. else
  4127.   
  4128.                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
  4129.                           if test "x$LINE" != x ; then
  4130.                             eval "DEFAULT_$LINE"
  4131.                           else
  4132.                             no_cache=1
  4133.                           fi
  4134.  
  4135.                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
  4136.                         
  4137. fi
  4138.  
  4139.  
  4140.           eval "$ac_cv_use_geometry"
  4141.           if test "$no_cache" != 1; then
  4142.             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
  4143.           fi
  4144.  
  4145.           if test "$wxUSE_GEOMETRY" = yes; then
  4146.             echo "$ac_t""yes" 1>&6
  4147.           else
  4148.             echo "$ac_t""no" 1>&6
  4149.           fi
  4150.         
  4151.  
  4152.       enablestring=
  4153.           echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
  4154. echo "configure:4155: checking for --${enablestring:-enable}-log" >&5
  4155.           no_cache=0
  4156.           # Check whether --enable-log or --disable-log was given.
  4157. if test "${enable_log+set}" = set; then
  4158.   enableval="$enable_log"
  4159.   
  4160.                           if test "$enableval" = yes; then
  4161.                             ac_cv_use_log='wxUSE_LOG=yes'
  4162.                           else
  4163.                             ac_cv_use_log='wxUSE_LOG=no'
  4164.                           fi
  4165.                         
  4166. else
  4167.   
  4168.                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
  4169.                           if test "x$LINE" != x ; then
  4170.                             eval "DEFAULT_$LINE"
  4171.                           else
  4172.                             no_cache=1
  4173.                           fi
  4174.  
  4175.                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
  4176.                         
  4177. fi
  4178.  
  4179.  
  4180.           eval "$ac_cv_use_log"
  4181.           if test "$no_cache" != 1; then
  4182.             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
  4183.           fi
  4184.  
  4185.           if test "$wxUSE_LOG" = yes; then
  4186.             echo "$ac_t""yes" 1>&6
  4187.           else
  4188.             echo "$ac_t""no" 1>&6
  4189.           fi
  4190.         
  4191.  
  4192.       enablestring=
  4193.           echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
  4194. echo "configure:4195: checking for --${enablestring:-enable}-streams" >&5
  4195.           no_cache=0
  4196.           # Check whether --enable-streams or --disable-streams was given.
  4197. if test "${enable_streams+set}" = set; then
  4198.   enableval="$enable_streams"
  4199.   
  4200.                           if test "$enableval" = yes; then
  4201.                             ac_cv_use_streams='wxUSE_STREAMS=yes'
  4202.                           else
  4203.                             ac_cv_use_streams='wxUSE_STREAMS=no'
  4204.                           fi
  4205.                         
  4206. else
  4207.   
  4208.                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
  4209.                           if test "x$LINE" != x ; then
  4210.                             eval "DEFAULT_$LINE"
  4211.                           else
  4212.                             no_cache=1
  4213.                           fi
  4214.  
  4215.                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
  4216.                         
  4217. fi
  4218.  
  4219.  
  4220.           eval "$ac_cv_use_streams"
  4221.           if test "$no_cache" != 1; then
  4222.             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
  4223.           fi
  4224.  
  4225.           if test "$wxUSE_STREAMS" = yes; then
  4226.             echo "$ac_t""yes" 1>&6
  4227.           else
  4228.             echo "$ac_t""no" 1>&6
  4229.           fi
  4230.         
  4231.  
  4232.       enablestring=
  4233.           echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
  4234. echo "configure:4235: checking for --${enablestring:-enable}-file" >&5
  4235.           no_cache=0
  4236.           # Check whether --enable-file or --disable-file was given.
  4237. if test "${enable_file+set}" = set; then
  4238.   enableval="$enable_file"
  4239.   
  4240.                           if test "$enableval" = yes; then
  4241.                             ac_cv_use_file='wxUSE_FILE=yes'
  4242.                           else
  4243.                             ac_cv_use_file='wxUSE_FILE=no'
  4244.                           fi
  4245.                         
  4246. else
  4247.   
  4248.                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
  4249.                           if test "x$LINE" != x ; then
  4250.                             eval "DEFAULT_$LINE"
  4251.                           else
  4252.                             no_cache=1
  4253.                           fi
  4254.  
  4255.                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
  4256.                         
  4257. fi
  4258.  
  4259.  
  4260.           eval "$ac_cv_use_file"
  4261.           if test "$no_cache" != 1; then
  4262.             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
  4263.           fi
  4264.  
  4265.           if test "$wxUSE_FILE" = yes; then
  4266.             echo "$ac_t""yes" 1>&6
  4267.           else
  4268.             echo "$ac_t""no" 1>&6
  4269.           fi
  4270.         
  4271.  
  4272.       enablestring=
  4273.           echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
  4274. echo "configure:4275: checking for --${enablestring:-enable}-ffile" >&5
  4275.           no_cache=0
  4276.           # Check whether --enable-ffile or --disable-ffile was given.
  4277. if test "${enable_ffile+set}" = set; then
  4278.   enableval="$enable_ffile"
  4279.   
  4280.                           if test "$enableval" = yes; then
  4281.                             ac_cv_use_ffile='wxUSE_FFILE=yes'
  4282.                           else
  4283.                             ac_cv_use_ffile='wxUSE_FFILE=no'
  4284.                           fi
  4285.                         
  4286. else
  4287.   
  4288.                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
  4289.                           if test "x$LINE" != x ; then
  4290.                             eval "DEFAULT_$LINE"
  4291.                           else
  4292.                             no_cache=1
  4293.                           fi
  4294.  
  4295.                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
  4296.                         
  4297. fi
  4298.  
  4299.  
  4300.           eval "$ac_cv_use_ffile"
  4301.           if test "$no_cache" != 1; then
  4302.             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
  4303.           fi
  4304.  
  4305.           if test "$wxUSE_FFILE" = yes; then
  4306.             echo "$ac_t""yes" 1>&6
  4307.           else
  4308.             echo "$ac_t""no" 1>&6
  4309.           fi
  4310.         
  4311.  
  4312.       enablestring=
  4313.           echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
  4314. echo "configure:4315: checking for --${enablestring:-enable}-textbuf" >&5
  4315.           no_cache=0
  4316.           # Check whether --enable-textbuf or --disable-textbuf was given.
  4317. if test "${enable_textbuf+set}" = set; then
  4318.   enableval="$enable_textbuf"
  4319.   
  4320.                           if test "$enableval" = yes; then
  4321.                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
  4322.                           else
  4323.                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
  4324.                           fi
  4325.                         
  4326. else
  4327.   
  4328.                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
  4329.                           if test "x$LINE" != x ; then
  4330.                             eval "DEFAULT_$LINE"
  4331.                           else
  4332.                             no_cache=1
  4333.                           fi
  4334.  
  4335.                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
  4336.                         
  4337. fi
  4338.  
  4339.  
  4340.           eval "$ac_cv_use_textbuf"
  4341.           if test "$no_cache" != 1; then
  4342.             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
  4343.           fi
  4344.  
  4345.           if test "$wxUSE_TEXTBUFFER" = yes; then
  4346.             echo "$ac_t""yes" 1>&6
  4347.           else
  4348.             echo "$ac_t""no" 1>&6
  4349.           fi
  4350.         
  4351.  
  4352.       enablestring=
  4353.           echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
  4354. echo "configure:4355: checking for --${enablestring:-enable}-textfile" >&5
  4355.           no_cache=0
  4356.           # Check whether --enable-textfile or --disable-textfile was given.
  4357. if test "${enable_textfile+set}" = set; then
  4358.   enableval="$enable_textfile"
  4359.   
  4360.                           if test "$enableval" = yes; then
  4361.                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
  4362.                           else
  4363.                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
  4364.                           fi
  4365.                         
  4366. else
  4367.   
  4368.                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
  4369.                           if test "x$LINE" != x ; then
  4370.                             eval "DEFAULT_$LINE"
  4371.                           else
  4372.                             no_cache=1
  4373.                           fi
  4374.  
  4375.                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
  4376.                         
  4377. fi
  4378.  
  4379.  
  4380.           eval "$ac_cv_use_textfile"
  4381.           if test "$no_cache" != 1; then
  4382.             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
  4383.           fi
  4384.  
  4385.           if test "$wxUSE_TEXTFILE" = yes; then
  4386.             echo "$ac_t""yes" 1>&6
  4387.           else
  4388.             echo "$ac_t""no" 1>&6
  4389.           fi
  4390.         
  4391.  
  4392.       enablestring=
  4393.           echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
  4394. echo "configure:4395: checking for --${enablestring:-enable}-fontmap" >&5
  4395.           no_cache=0
  4396.           # Check whether --enable-fontmap or --disable-fontmap was given.
  4397. if test "${enable_fontmap+set}" = set; then
  4398.   enableval="$enable_fontmap"
  4399.   
  4400.                           if test "$enableval" = yes; then
  4401.                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
  4402.                           else
  4403.                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
  4404.                           fi
  4405.                         
  4406. else
  4407.   
  4408.                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
  4409.                           if test "x$LINE" != x ; then
  4410.                             eval "DEFAULT_$LINE"
  4411.                           else
  4412.                             no_cache=1
  4413.                           fi
  4414.  
  4415.                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
  4416.                         
  4417. fi
  4418.  
  4419.  
  4420.           eval "$ac_cv_use_fontmap"
  4421.           if test "$no_cache" != 1; then
  4422.             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
  4423.           fi
  4424.  
  4425.           if test "$wxUSE_FONTMAP" = yes; then
  4426.             echo "$ac_t""yes" 1>&6
  4427.           else
  4428.             echo "$ac_t""no" 1>&6
  4429.           fi
  4430.         
  4431.  
  4432.       enablestring=
  4433.           echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
  4434. echo "configure:4435: checking for --${enablestring:-enable}-unicode" >&5
  4435.           no_cache=0
  4436.           # Check whether --enable-unicode or --disable-unicode was given.
  4437. if test "${enable_unicode+set}" = set; then
  4438.   enableval="$enable_unicode"
  4439.   
  4440.                           if test "$enableval" = yes; then
  4441.                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
  4442.                           else
  4443.                             ac_cv_use_unicode='wxUSE_UNICODE=no'
  4444.                           fi
  4445.                         
  4446. else
  4447.   
  4448.                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
  4449.                           if test "x$LINE" != x ; then
  4450.                             eval "DEFAULT_$LINE"
  4451.                           else
  4452.                             no_cache=1
  4453.                           fi
  4454.  
  4455.                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
  4456.                         
  4457. fi
  4458.  
  4459.  
  4460.           eval "$ac_cv_use_unicode"
  4461.           if test "$no_cache" != 1; then
  4462.             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
  4463.           fi
  4464.  
  4465.           if test "$wxUSE_UNICODE" = yes; then
  4466.             echo "$ac_t""yes" 1>&6
  4467.           else
  4468.             echo "$ac_t""no" 1>&6
  4469.           fi
  4470.         
  4471.  
  4472.       enablestring=
  4473.           echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
  4474. echo "configure:4475: checking for --${enablestring:-enable}-mslu" >&5
  4475.           no_cache=0
  4476.           # Check whether --enable-mslu or --disable-mslu was given.
  4477. if test "${enable_mslu+set}" = set; then
  4478.   enableval="$enable_mslu"
  4479.   
  4480.                           if test "$enableval" = yes; then
  4481.                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
  4482.                           else
  4483.                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
  4484.                           fi
  4485.                         
  4486. else
  4487.   
  4488.                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
  4489.                           if test "x$LINE" != x ; then
  4490.                             eval "DEFAULT_$LINE"
  4491.                           else
  4492.                             no_cache=1
  4493.                           fi
  4494.  
  4495.                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
  4496.                         
  4497. fi
  4498.  
  4499.  
  4500.           eval "$ac_cv_use_mslu"
  4501.           if test "$no_cache" != 1; then
  4502.             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
  4503.           fi
  4504.  
  4505.           if test "$wxUSE_UNICODE_MSLU" = yes; then
  4506.             echo "$ac_t""yes" 1>&6
  4507.           else
  4508.             echo "$ac_t""no" 1>&6
  4509.           fi
  4510.         
  4511.  
  4512.       enablestring=
  4513.           echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
  4514. echo "configure:4515: checking for --${enablestring:-enable}-wxprintfv" >&5
  4515.           no_cache=0
  4516.           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
  4517. if test "${enable_wxprintfv+set}" = set; then
  4518.   enableval="$enable_wxprintfv"
  4519.   
  4520.                           if test "$enableval" = yes; then
  4521.                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
  4522.                           else
  4523.                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
  4524.                           fi
  4525.                         
  4526. else
  4527.   
  4528.                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
  4529.                           if test "x$LINE" != x ; then
  4530.                             eval "DEFAULT_$LINE"
  4531.                           else
  4532.                             no_cache=1
  4533.                           fi
  4534.  
  4535.                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
  4536.                         
  4537. fi
  4538.  
  4539.  
  4540.           eval "$ac_cv_use_wxprintfv"
  4541.           if test "$no_cache" != 1; then
  4542.             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
  4543.           fi
  4544.  
  4545.           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
  4546.             echo "$ac_t""yes" 1>&6
  4547.           else
  4548.             echo "$ac_t""no" 1>&6
  4549.           fi
  4550.         
  4551.  
  4552.       enablestring=
  4553.           echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
  4554. echo "configure:4555: checking for --${enablestring:-enable}-std_iostreams" >&5
  4555.           no_cache=0
  4556.           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
  4557. if test "${enable_std_iostreams+set}" = set; then
  4558.   enableval="$enable_std_iostreams"
  4559.   
  4560.                           if test "$enableval" = yes; then
  4561.                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
  4562.                           else
  4563.                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
  4564.                           fi
  4565.                         
  4566. else
  4567.   
  4568.                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
  4569.                           if test "x$LINE" != x ; then
  4570.                             eval "DEFAULT_$LINE"
  4571.                           else
  4572.                             no_cache=1
  4573.                           fi
  4574.  
  4575.                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
  4576.                         
  4577. fi
  4578.  
  4579.  
  4580.           eval "$ac_cv_use_std_iostreams"
  4581.           if test "$no_cache" != 1; then
  4582.             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
  4583.           fi
  4584.  
  4585.           if test "$wxUSE_STD_IOSTREAM" = yes; then
  4586.             echo "$ac_t""yes" 1>&6
  4587.           else
  4588.             echo "$ac_t""no" 1>&6
  4589.           fi
  4590.         
  4591.  
  4592.       enablestring=
  4593.           echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
  4594. echo "configure:4595: checking for --${enablestring:-enable}-filesystem" >&5
  4595.           no_cache=0
  4596.           # Check whether --enable-filesystem or --disable-filesystem was given.
  4597. if test "${enable_filesystem+set}" = set; then
  4598.   enableval="$enable_filesystem"
  4599.   
  4600.                           if test "$enableval" = yes; then
  4601.                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
  4602.                           else
  4603.                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
  4604.                           fi
  4605.                         
  4606. else
  4607.   
  4608.                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
  4609.                           if test "x$LINE" != x ; then
  4610.                             eval "DEFAULT_$LINE"
  4611.                           else
  4612.                             no_cache=1
  4613.                           fi
  4614.  
  4615.                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
  4616.                         
  4617. fi
  4618.  
  4619.  
  4620.           eval "$ac_cv_use_filesystem"
  4621.           if test "$no_cache" != 1; then
  4622.             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
  4623.           fi
  4624.  
  4625.           if test "$wxUSE_FILESYSTEM" = yes; then
  4626.             echo "$ac_t""yes" 1>&6
  4627.           else
  4628.             echo "$ac_t""no" 1>&6
  4629.           fi
  4630.         
  4631.  
  4632.       enablestring=
  4633.           echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
  4634. echo "configure:4635: checking for --${enablestring:-enable}-fs_inet" >&5
  4635.           no_cache=0
  4636.           # Check whether --enable-fs_inet or --disable-fs_inet was given.
  4637. if test "${enable_fs_inet+set}" = set; then
  4638.   enableval="$enable_fs_inet"
  4639.   
  4640.                           if test "$enableval" = yes; then
  4641.                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
  4642.                           else
  4643.                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
  4644.                           fi
  4645.                         
  4646. else
  4647.   
  4648.                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
  4649.                           if test "x$LINE" != x ; then
  4650.                             eval "DEFAULT_$LINE"
  4651.                           else
  4652.                             no_cache=1
  4653.                           fi
  4654.  
  4655.                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
  4656.                         
  4657. fi
  4658.  
  4659.  
  4660.           eval "$ac_cv_use_fs_inet"
  4661.           if test "$no_cache" != 1; then
  4662.             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
  4663.           fi
  4664.  
  4665.           if test "$wxUSE_FS_INET" = yes; then
  4666.             echo "$ac_t""yes" 1>&6
  4667.           else
  4668.             echo "$ac_t""no" 1>&6
  4669.           fi
  4670.         
  4671.  
  4672.       enablestring=
  4673.           echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
  4674. echo "configure:4675: checking for --${enablestring:-enable}-fs_zip" >&5
  4675.           no_cache=0
  4676.           # Check whether --enable-fs_zip or --disable-fs_zip was given.
  4677. if test "${enable_fs_zip+set}" = set; then
  4678.   enableval="$enable_fs_zip"
  4679.   
  4680.                           if test "$enableval" = yes; then
  4681.                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
  4682.                           else
  4683.                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
  4684.                           fi
  4685.                         
  4686. else
  4687.   
  4688.                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
  4689.                           if test "x$LINE" != x ; then
  4690.                             eval "DEFAULT_$LINE"
  4691.                           else
  4692.                             no_cache=1
  4693.                           fi
  4694.  
  4695.                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
  4696.                         
  4697. fi
  4698.  
  4699.  
  4700.           eval "$ac_cv_use_fs_zip"
  4701.           if test "$no_cache" != 1; then
  4702.             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
  4703.           fi
  4704.  
  4705.           if test "$wxUSE_FS_ZIP" = yes; then
  4706.             echo "$ac_t""yes" 1>&6
  4707.           else
  4708.             echo "$ac_t""no" 1>&6
  4709.           fi
  4710.         
  4711.  
  4712.       enablestring=
  4713.           echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
  4714. echo "configure:4715: checking for --${enablestring:-enable}-zipstream" >&5
  4715.           no_cache=0
  4716.           # Check whether --enable-zipstream or --disable-zipstream was given.
  4717. if test "${enable_zipstream+set}" = set; then
  4718.   enableval="$enable_zipstream"
  4719.   
  4720.                           if test "$enableval" = yes; then
  4721.                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
  4722.                           else
  4723.                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
  4724.                           fi
  4725.                         
  4726. else
  4727.   
  4728.                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
  4729.                           if test "x$LINE" != x ; then
  4730.                             eval "DEFAULT_$LINE"
  4731.                           else
  4732.                             no_cache=1
  4733.                           fi
  4734.  
  4735.                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
  4736.                         
  4737. fi
  4738.  
  4739.  
  4740.           eval "$ac_cv_use_zipstream"
  4741.           if test "$no_cache" != 1; then
  4742.             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
  4743.           fi
  4744.  
  4745.           if test "$wxUSE_ZIPSTREAM" = yes; then
  4746.             echo "$ac_t""yes" 1>&6
  4747.           else
  4748.             echo "$ac_t""no" 1>&6
  4749.           fi
  4750.         
  4751.  
  4752.  
  4753.       enablestring=
  4754.           echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
  4755. echo "configure:4756: checking for --${enablestring:-enable}-catch_segvs" >&5
  4756.           no_cache=0
  4757.           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
  4758. if test "${enable_catch_segvs+set}" = set; then
  4759.   enableval="$enable_catch_segvs"
  4760.   
  4761.                           if test "$enableval" = yes; then
  4762.                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
  4763.                           else
  4764.                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
  4765.                           fi
  4766.                         
  4767. else
  4768.   
  4769.                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
  4770.                           if test "x$LINE" != x ; then
  4771.                             eval "DEFAULT_$LINE"
  4772.                           else
  4773.                             no_cache=1
  4774.                           fi
  4775.  
  4776.                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
  4777.                         
  4778. fi
  4779.  
  4780.  
  4781.           eval "$ac_cv_use_catch_segvs"
  4782.           if test "$no_cache" != 1; then
  4783.             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
  4784.           fi
  4785.  
  4786.           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
  4787.             echo "$ac_t""yes" 1>&6
  4788.           else
  4789.             echo "$ac_t""no" 1>&6
  4790.           fi
  4791.         
  4792.  
  4793.       enablestring=
  4794.           echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
  4795. echo "configure:4796: checking for --${enablestring:-enable}-snglinst" >&5
  4796.           no_cache=0
  4797.           # Check whether --enable-snglinst or --disable-snglinst was given.
  4798. if test "${enable_snglinst+set}" = set; then
  4799.   enableval="$enable_snglinst"
  4800.   
  4801.                           if test "$enableval" = yes; then
  4802.                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
  4803.                           else
  4804.                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
  4805.                           fi
  4806.                         
  4807. else
  4808.   
  4809.                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
  4810.                           if test "x$LINE" != x ; then
  4811.                             eval "DEFAULT_$LINE"
  4812.                           else
  4813.                             no_cache=1
  4814.                           fi
  4815.  
  4816.                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
  4817.                         
  4818. fi
  4819.  
  4820.  
  4821.           eval "$ac_cv_use_snglinst"
  4822.           if test "$no_cache" != 1; then
  4823.             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
  4824.           fi
  4825.  
  4826.           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
  4827.             echo "$ac_t""yes" 1>&6
  4828.           else
  4829.             echo "$ac_t""no" 1>&6
  4830.           fi
  4831.         
  4832.  
  4833.  
  4834.       enablestring=
  4835.           echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
  4836. echo "configure:4837: checking for --${enablestring:-enable}-mimetype" >&5
  4837.           no_cache=0
  4838.           # Check whether --enable-mimetype or --disable-mimetype was given.
  4839. if test "${enable_mimetype+set}" = set; then
  4840.   enableval="$enable_mimetype"
  4841.   
  4842.                           if test "$enableval" = yes; then
  4843.                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
  4844.                           else
  4845.                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
  4846.                           fi
  4847.                         
  4848. else
  4849.   
  4850.                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
  4851.                           if test "x$LINE" != x ; then
  4852.                             eval "DEFAULT_$LINE"
  4853.                           else
  4854.                             no_cache=1
  4855.                           fi
  4856.  
  4857.                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
  4858.                         
  4859. fi
  4860.  
  4861.  
  4862.           eval "$ac_cv_use_mimetype"
  4863.           if test "$no_cache" != 1; then
  4864.             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
  4865.           fi
  4866.  
  4867.           if test "$wxUSE_MIMETYPE" = yes; then
  4868.             echo "$ac_t""yes" 1>&6
  4869.           else
  4870.             echo "$ac_t""no" 1>&6
  4871.           fi
  4872.         
  4873.  
  4874.       enablestring=
  4875.           echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
  4876. echo "configure:4877: checking for --${enablestring:-enable}-system_options" >&5
  4877.           no_cache=0
  4878.           # Check whether --enable-system_options or --disable-system_options was given.
  4879. if test "${enable_system_options+set}" = set; then
  4880.   enableval="$enable_system_options"
  4881.   
  4882.                           if test "$enableval" = yes; then
  4883.                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
  4884.                           else
  4885.                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
  4886.                           fi
  4887.                         
  4888. else
  4889.   
  4890.                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
  4891.                           if test "x$LINE" != x ; then
  4892.                             eval "DEFAULT_$LINE"
  4893.                           else
  4894.                             no_cache=1
  4895.                           fi
  4896.  
  4897.                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
  4898.                         
  4899. fi
  4900.  
  4901.  
  4902.           eval "$ac_cv_use_system_options"
  4903.           if test "$no_cache" != 1; then
  4904.             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
  4905.           fi
  4906.  
  4907.           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
  4908.             echo "$ac_t""yes" 1>&6
  4909.           else
  4910.             echo "$ac_t""no" 1>&6
  4911.           fi
  4912.         
  4913.  
  4914.  
  4915.       enablestring=
  4916.           echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
  4917. echo "configure:4918: checking for --${enablestring:-enable}-url" >&5
  4918.           no_cache=0
  4919.           # Check whether --enable-url or --disable-url was given.
  4920. if test "${enable_url+set}" = set; then
  4921.   enableval="$enable_url"
  4922.   
  4923.                           if test "$enableval" = yes; then
  4924.                             ac_cv_use_url='wxUSE_URL=yes'
  4925.                           else
  4926.                             ac_cv_use_url='wxUSE_URL=no'
  4927.                           fi
  4928.                         
  4929. else
  4930.   
  4931.                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
  4932.                           if test "x$LINE" != x ; then
  4933.                             eval "DEFAULT_$LINE"
  4934.                           else
  4935.                             no_cache=1
  4936.                           fi
  4937.  
  4938.                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
  4939.                         
  4940. fi
  4941.  
  4942.  
  4943.           eval "$ac_cv_use_url"
  4944.           if test "$no_cache" != 1; then
  4945.             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
  4946.           fi
  4947.  
  4948.           if test "$wxUSE_URL" = yes; then
  4949.             echo "$ac_t""yes" 1>&6
  4950.           else
  4951.             echo "$ac_t""no" 1>&6
  4952.           fi
  4953.         
  4954.  
  4955.       enablestring=
  4956.           echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
  4957. echo "configure:4958: checking for --${enablestring:-enable}-protocol" >&5
  4958.           no_cache=0
  4959.           # Check whether --enable-protocol or --disable-protocol was given.
  4960. if test "${enable_protocol+set}" = set; then
  4961.   enableval="$enable_protocol"
  4962.   
  4963.                           if test "$enableval" = yes; then
  4964.                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
  4965.                           else
  4966.                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
  4967.                           fi
  4968.                         
  4969. else
  4970.   
  4971.                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
  4972.                           if test "x$LINE" != x ; then
  4973.                             eval "DEFAULT_$LINE"
  4974.                           else
  4975.                             no_cache=1
  4976.                           fi
  4977.  
  4978.                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
  4979.                         
  4980. fi
  4981.  
  4982.  
  4983.           eval "$ac_cv_use_protocol"
  4984.           if test "$no_cache" != 1; then
  4985.             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
  4986.           fi
  4987.  
  4988.           if test "$wxUSE_PROTOCOL" = yes; then
  4989.             echo "$ac_t""yes" 1>&6
  4990.           else
  4991.             echo "$ac_t""no" 1>&6
  4992.           fi
  4993.         
  4994.  
  4995.       enablestring=
  4996.           echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
  4997. echo "configure:4998: checking for --${enablestring:-enable}-protocol_http" >&5
  4998.           no_cache=0
  4999.           # Check whether --enable-protocol_http or --disable-protocol_http was given.
  5000. if test "${enable_protocol_http+set}" = set; then
  5001.   enableval="$enable_protocol_http"
  5002.   
  5003.                           if test "$enableval" = yes; then
  5004.                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
  5005.                           else
  5006.                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
  5007.                           fi
  5008.                         
  5009. else
  5010.   
  5011.                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
  5012.                           if test "x$LINE" != x ; then
  5013.                             eval "DEFAULT_$LINE"
  5014.                           else
  5015.                             no_cache=1
  5016.                           fi
  5017.  
  5018.                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
  5019.                         
  5020. fi
  5021.  
  5022.  
  5023.           eval "$ac_cv_use_protocol_http"
  5024.           if test "$no_cache" != 1; then
  5025.             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
  5026.           fi
  5027.  
  5028.           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
  5029.             echo "$ac_t""yes" 1>&6
  5030.           else
  5031.             echo "$ac_t""no" 1>&6
  5032.           fi
  5033.         
  5034.  
  5035.       enablestring=
  5036.           echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
  5037. echo "configure:5038: checking for --${enablestring:-enable}-protocol_ftp" >&5
  5038.           no_cache=0
  5039.           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
  5040. if test "${enable_protocol_ftp+set}" = set; then
  5041.   enableval="$enable_protocol_ftp"
  5042.   
  5043.                           if test "$enableval" = yes; then
  5044.                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
  5045.                           else
  5046.                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
  5047.                           fi
  5048.                         
  5049. else
  5050.   
  5051.                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
  5052.                           if test "x$LINE" != x ; then
  5053.                             eval "DEFAULT_$LINE"
  5054.                           else
  5055.                             no_cache=1
  5056.                           fi
  5057.  
  5058.                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
  5059.                         
  5060. fi
  5061.  
  5062.  
  5063.           eval "$ac_cv_use_protocol_ftp"
  5064.           if test "$no_cache" != 1; then
  5065.             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
  5066.           fi
  5067.  
  5068.           if test "$wxUSE_PROTOCOL_FTP" = yes; then
  5069.             echo "$ac_t""yes" 1>&6
  5070.           else
  5071.             echo "$ac_t""no" 1>&6
  5072.           fi
  5073.         
  5074.  
  5075.       enablestring=
  5076.           echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
  5077. echo "configure:5078: checking for --${enablestring:-enable}-protocol_file" >&5
  5078.           no_cache=0
  5079.           # Check whether --enable-protocol_file or --disable-protocol_file was given.
  5080. if test "${enable_protocol_file+set}" = set; then
  5081.   enableval="$enable_protocol_file"
  5082.   
  5083.                           if test "$enableval" = yes; then
  5084.                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
  5085.                           else
  5086.                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
  5087.                           fi
  5088.                         
  5089. else
  5090.   
  5091.                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
  5092.                           if test "x$LINE" != x ; then
  5093.                             eval "DEFAULT_$LINE"
  5094.                           else
  5095.                             no_cache=1
  5096.                           fi
  5097.  
  5098.                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
  5099.                         
  5100. fi
  5101.  
  5102.  
  5103.           eval "$ac_cv_use_protocol_file"
  5104.           if test "$no_cache" != 1; then
  5105.             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
  5106.           fi
  5107.  
  5108.           if test "$wxUSE_PROTOCOL_FILE" = yes; then
  5109.             echo "$ac_t""yes" 1>&6
  5110.           else
  5111.             echo "$ac_t""no" 1>&6
  5112.           fi
  5113.         
  5114.  
  5115.  
  5116.  
  5117.  
  5118.       enablestring=
  5119.           echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
  5120. echo "configure:5121: checking for --${enablestring:-enable}-threads" >&5
  5121.           no_cache=0
  5122.           # Check whether --enable-threads or --disable-threads was given.
  5123. if test "${enable_threads+set}" = set; then
  5124.   enableval="$enable_threads"
  5125.   
  5126.                           if test "$enableval" = yes; then
  5127.                             ac_cv_use_threads='wxUSE_THREADS=yes'
  5128.                           else
  5129.                             ac_cv_use_threads='wxUSE_THREADS=no'
  5130.                           fi
  5131.                         
  5132. else
  5133.   
  5134.                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
  5135.                           if test "x$LINE" != x ; then
  5136.                             eval "DEFAULT_$LINE"
  5137.                           else
  5138.                             no_cache=1
  5139.                           fi
  5140.  
  5141.                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
  5142.                         
  5143. fi
  5144.  
  5145.  
  5146.           eval "$ac_cv_use_threads"
  5147.           if test "$no_cache" != 1; then
  5148.             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
  5149.           fi
  5150.  
  5151.           if test "$wxUSE_THREADS" = yes; then
  5152.             echo "$ac_t""yes" 1>&6
  5153.           else
  5154.             echo "$ac_t""no" 1>&6
  5155.           fi
  5156.         
  5157.  
  5158. if test "$wxUSE_GUI" = "yes"; then
  5159.  
  5160.  
  5161.  
  5162.       enablestring=
  5163.           echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
  5164. echo "configure:5165: checking for --${enablestring:-enable}-docview" >&5
  5165.           no_cache=0
  5166.           # Check whether --enable-docview or --disable-docview was given.
  5167. if test "${enable_docview+set}" = set; then
  5168.   enableval="$enable_docview"
  5169.   
  5170.                           if test "$enableval" = yes; then
  5171.                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
  5172.                           else
  5173.                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
  5174.                           fi
  5175.                         
  5176. else
  5177.   
  5178.                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
  5179.                           if test "x$LINE" != x ; then
  5180.                             eval "DEFAULT_$LINE"
  5181.                           else
  5182.                             no_cache=1
  5183.                           fi
  5184.  
  5185.                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
  5186.                         
  5187. fi
  5188.  
  5189.  
  5190.           eval "$ac_cv_use_docview"
  5191.           if test "$no_cache" != 1; then
  5192.             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
  5193.           fi
  5194.  
  5195.           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
  5196.             echo "$ac_t""yes" 1>&6
  5197.           else
  5198.             echo "$ac_t""no" 1>&6
  5199.           fi
  5200.         
  5201.  
  5202.       enablestring=
  5203.           echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
  5204. echo "configure:5205: checking for --${enablestring:-enable}-help" >&5
  5205.           no_cache=0
  5206.           # Check whether --enable-help or --disable-help was given.
  5207. if test "${enable_help+set}" = set; then
  5208.   enableval="$enable_help"
  5209.   
  5210.                           if test "$enableval" = yes; then
  5211.                             ac_cv_use_help='wxUSE_HELP=yes'
  5212.                           else
  5213.                             ac_cv_use_help='wxUSE_HELP=no'
  5214.                           fi
  5215.                         
  5216. else
  5217.   
  5218.                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
  5219.                           if test "x$LINE" != x ; then
  5220.                             eval "DEFAULT_$LINE"
  5221.                           else
  5222.                             no_cache=1
  5223.                           fi
  5224.  
  5225.                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
  5226.                         
  5227. fi
  5228.  
  5229.  
  5230.           eval "$ac_cv_use_help"
  5231.           if test "$no_cache" != 1; then
  5232.             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
  5233.           fi
  5234.  
  5235.           if test "$wxUSE_HELP" = yes; then
  5236.             echo "$ac_t""yes" 1>&6
  5237.           else
  5238.             echo "$ac_t""no" 1>&6
  5239.           fi
  5240.         
  5241.  
  5242.       enablestring=
  5243.           echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
  5244. echo "configure:5245: checking for --${enablestring:-enable}-mshtmlhelp" >&5
  5245.           no_cache=0
  5246.           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
  5247. if test "${enable_mshtmlhelp+set}" = set; then
  5248.   enableval="$enable_mshtmlhelp"
  5249.   
  5250.                           if test "$enableval" = yes; then
  5251.                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
  5252.                           else
  5253.                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
  5254.                           fi
  5255.                         
  5256. else
  5257.   
  5258.                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
  5259.                           if test "x$LINE" != x ; then
  5260.                             eval "DEFAULT_$LINE"
  5261.                           else
  5262.                             no_cache=1
  5263.                           fi
  5264.  
  5265.                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
  5266.                         
  5267. fi
  5268.  
  5269.  
  5270.           eval "$ac_cv_use_mshtmlhelp"
  5271.           if test "$no_cache" != 1; then
  5272.             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
  5273.           fi
  5274.  
  5275.           if test "$wxUSE_MS_HTML_HELP" = yes; then
  5276.             echo "$ac_t""yes" 1>&6
  5277.           else
  5278.             echo "$ac_t""no" 1>&6
  5279.           fi
  5280.         
  5281.  
  5282.       enablestring=
  5283.           echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
  5284. echo "configure:5285: checking for --${enablestring:-enable}-html" >&5
  5285.           no_cache=0
  5286.           # Check whether --enable-html or --disable-html was given.
  5287. if test "${enable_html+set}" = set; then
  5288.   enableval="$enable_html"
  5289.   
  5290.                           if test "$enableval" = yes; then
  5291.                             ac_cv_use_html='wxUSE_HTML=yes'
  5292.                           else
  5293.                             ac_cv_use_html='wxUSE_HTML=no'
  5294.                           fi
  5295.                         
  5296. else
  5297.   
  5298.                           LINE=`grep "wxUSE_HTML" ${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_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
  5306.                         
  5307. fi
  5308.  
  5309.  
  5310.           eval "$ac_cv_use_html"
  5311.           if test "$no_cache" != 1; then
  5312.             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
  5313.           fi
  5314.  
  5315.           if test "$wxUSE_HTML" = yes; then
  5316.             echo "$ac_t""yes" 1>&6
  5317.           else
  5318.             echo "$ac_t""no" 1>&6
  5319.           fi
  5320.         
  5321.  
  5322.       enablestring=
  5323.           echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
  5324. echo "configure:5325: checking for --${enablestring:-enable}-htmlhelp" >&5
  5325.           no_cache=0
  5326.           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
  5327. if test "${enable_htmlhelp+set}" = set; then
  5328.   enableval="$enable_htmlhelp"
  5329.   
  5330.                           if test "$enableval" = yes; then
  5331.                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
  5332.                           else
  5333.                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
  5334.                           fi
  5335.                         
  5336. else
  5337.   
  5338.                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
  5339.                           if test "x$LINE" != x ; then
  5340.                             eval "DEFAULT_$LINE"
  5341.                           else
  5342.                             no_cache=1
  5343.                           fi
  5344.  
  5345.                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
  5346.                         
  5347. fi
  5348.  
  5349.  
  5350.           eval "$ac_cv_use_htmlhelp"
  5351.           if test "$no_cache" != 1; then
  5352.             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
  5353.           fi
  5354.  
  5355.           if test "$wxUSE_WXHTML_HELP" = yes; then
  5356.             echo "$ac_t""yes" 1>&6
  5357.           else
  5358.             echo "$ac_t""no" 1>&6
  5359.           fi
  5360.         
  5361.  
  5362.       enablestring=
  5363.           echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
  5364. echo "configure:5365: checking for --${enablestring:-enable}-constraints" >&5
  5365.           no_cache=0
  5366.           # Check whether --enable-constraints or --disable-constraints was given.
  5367. if test "${enable_constraints+set}" = set; then
  5368.   enableval="$enable_constraints"
  5369.   
  5370.                           if test "$enableval" = yes; then
  5371.                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
  5372.                           else
  5373.                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
  5374.                           fi
  5375.                         
  5376. else
  5377.   
  5378.                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
  5379.                           if test "x$LINE" != x ; then
  5380.                             eval "DEFAULT_$LINE"
  5381.                           else
  5382.                             no_cache=1
  5383.                           fi
  5384.  
  5385.                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
  5386.                         
  5387. fi
  5388.  
  5389.  
  5390.           eval "$ac_cv_use_constraints"
  5391.           if test "$no_cache" != 1; then
  5392.             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
  5393.           fi
  5394.  
  5395.           if test "$wxUSE_CONSTRAINTS" = yes; then
  5396.             echo "$ac_t""yes" 1>&6
  5397.           else
  5398.             echo "$ac_t""no" 1>&6
  5399.           fi
  5400.         
  5401.  
  5402.       enablestring=
  5403.           echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
  5404. echo "configure:5405: checking for --${enablestring:-enable}-printarch" >&5
  5405.           no_cache=0
  5406.           # Check whether --enable-printarch or --disable-printarch was given.
  5407. if test "${enable_printarch+set}" = set; then
  5408.   enableval="$enable_printarch"
  5409.   
  5410.                           if test "$enableval" = yes; then
  5411.                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
  5412.                           else
  5413.                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
  5414.                           fi
  5415.                         
  5416. else
  5417.   
  5418.                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
  5419.                           if test "x$LINE" != x ; then
  5420.                             eval "DEFAULT_$LINE"
  5421.                           else
  5422.                             no_cache=1
  5423.                           fi
  5424.  
  5425.                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
  5426.                         
  5427. fi
  5428.  
  5429.  
  5430.           eval "$ac_cv_use_printarch"
  5431.           if test "$no_cache" != 1; then
  5432.             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
  5433.           fi
  5434.  
  5435.           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
  5436.             echo "$ac_t""yes" 1>&6
  5437.           else
  5438.             echo "$ac_t""no" 1>&6
  5439.           fi
  5440.         
  5441.  
  5442.       enablestring=
  5443.           echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
  5444. echo "configure:5445: checking for --${enablestring:-enable}-mdi" >&5
  5445.           no_cache=0
  5446.           # Check whether --enable-mdi or --disable-mdi was given.
  5447. if test "${enable_mdi+set}" = set; then
  5448.   enableval="$enable_mdi"
  5449.   
  5450.                           if test "$enableval" = yes; then
  5451.                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
  5452.                           else
  5453.                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
  5454.                           fi
  5455.                         
  5456. else
  5457.   
  5458.                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
  5459.                           if test "x$LINE" != x ; then
  5460.                             eval "DEFAULT_$LINE"
  5461.                           else
  5462.                             no_cache=1
  5463.                           fi
  5464.  
  5465.                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
  5466.                         
  5467. fi
  5468.  
  5469.  
  5470.           eval "$ac_cv_use_mdi"
  5471.           if test "$no_cache" != 1; then
  5472.             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
  5473.           fi
  5474.  
  5475.           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
  5476.             echo "$ac_t""yes" 1>&6
  5477.           else
  5478.             echo "$ac_t""no" 1>&6
  5479.           fi
  5480.         
  5481.  
  5482.       enablestring=
  5483.           echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
  5484. echo "configure:5485: checking for --${enablestring:-enable}-loggui" >&5
  5485.           no_cache=0
  5486.           # Check whether --enable-loggui or --disable-loggui was given.
  5487. if test "${enable_loggui+set}" = set; then
  5488.   enableval="$enable_loggui"
  5489.   
  5490.                           if test "$enableval" = yes; then
  5491.                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
  5492.                           else
  5493.                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
  5494.                           fi
  5495.                         
  5496. else
  5497.   
  5498.                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
  5499.                           if test "x$LINE" != x ; then
  5500.                             eval "DEFAULT_$LINE"
  5501.                           else
  5502.                             no_cache=1
  5503.                           fi
  5504.  
  5505.                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
  5506.                         
  5507. fi
  5508.  
  5509.  
  5510.           eval "$ac_cv_use_loggui"
  5511.           if test "$no_cache" != 1; then
  5512.             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
  5513.           fi
  5514.  
  5515.           if test "$wxUSE_LOGGUI" = yes; then
  5516.             echo "$ac_t""yes" 1>&6
  5517.           else
  5518.             echo "$ac_t""no" 1>&6
  5519.           fi
  5520.         
  5521.  
  5522.       enablestring=
  5523.           echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
  5524. echo "configure:5525: checking for --${enablestring:-enable}-logwin" >&5
  5525.           no_cache=0
  5526.           # Check whether --enable-logwin or --disable-logwin was given.
  5527. if test "${enable_logwin+set}" = set; then
  5528.   enableval="$enable_logwin"
  5529.   
  5530.                           if test "$enableval" = yes; then
  5531.                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
  5532.                           else
  5533.                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
  5534.                           fi
  5535.                         
  5536. else
  5537.   
  5538.                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
  5539.                           if test "x$LINE" != x ; then
  5540.                             eval "DEFAULT_$LINE"
  5541.                           else
  5542.                             no_cache=1
  5543.                           fi
  5544.  
  5545.                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
  5546.                         
  5547. fi
  5548.  
  5549.  
  5550.           eval "$ac_cv_use_logwin"
  5551.           if test "$no_cache" != 1; then
  5552.             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
  5553.           fi
  5554.  
  5555.           if test "$wxUSE_LOGWINDOW" = yes; then
  5556.             echo "$ac_t""yes" 1>&6
  5557.           else
  5558.             echo "$ac_t""no" 1>&6
  5559.           fi
  5560.         
  5561.  
  5562.       enablestring=
  5563.           echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
  5564. echo "configure:5565: checking for --${enablestring:-enable}-logdialog" >&5
  5565.           no_cache=0
  5566.           # Check whether --enable-logdialog or --disable-logdialog was given.
  5567. if test "${enable_logdialog+set}" = set; then
  5568.   enableval="$enable_logdialog"
  5569.   
  5570.                           if test "$enableval" = yes; then
  5571.                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
  5572.                           else
  5573.                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
  5574.                           fi
  5575.                         
  5576. else
  5577.   
  5578.                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
  5579.                           if test "x$LINE" != x ; then
  5580.                             eval "DEFAULT_$LINE"
  5581.                           else
  5582.                             no_cache=1
  5583.                           fi
  5584.  
  5585.                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
  5586.                         
  5587. fi
  5588.  
  5589.  
  5590.           eval "$ac_cv_use_logdialog"
  5591.           if test "$no_cache" != 1; then
  5592.             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
  5593.           fi
  5594.  
  5595.           if test "$wxUSE_LOGDIALOG" = yes; then
  5596.             echo "$ac_t""yes" 1>&6
  5597.           else
  5598.             echo "$ac_t""no" 1>&6
  5599.           fi
  5600.         
  5601.  
  5602.  
  5603.       enablestring=
  5604.           echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
  5605. echo "configure:5606: checking for --${enablestring:-enable}-postscript" >&5
  5606.           no_cache=0
  5607.           # Check whether --enable-postscript or --disable-postscript was given.
  5608. if test "${enable_postscript+set}" = set; then
  5609.   enableval="$enable_postscript"
  5610.   
  5611.                           if test "$enableval" = yes; then
  5612.                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
  5613.                           else
  5614.                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
  5615.                           fi
  5616.                         
  5617. else
  5618.   
  5619.                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
  5620.                           if test "x$LINE" != x ; then
  5621.                             eval "DEFAULT_$LINE"
  5622.                           else
  5623.                             no_cache=1
  5624.                           fi
  5625.  
  5626.                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
  5627.                         
  5628. fi
  5629.  
  5630.  
  5631.           eval "$ac_cv_use_postscript"
  5632.           if test "$no_cache" != 1; then
  5633.             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
  5634.           fi
  5635.  
  5636.           if test "$wxUSE_POSTSCRIPT" = yes; then
  5637.             echo "$ac_t""yes" 1>&6
  5638.           else
  5639.             echo "$ac_t""no" 1>&6
  5640.           fi
  5641.         
  5642.  
  5643.  
  5644.  
  5645.  
  5646.       enablestring=
  5647.           echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
  5648. echo "configure:5649: checking for --${enablestring:-enable}-prologio" >&5
  5649.           no_cache=0
  5650.           # Check whether --enable-prologio or --disable-prologio was given.
  5651. if test "${enable_prologio+set}" = set; then
  5652.   enableval="$enable_prologio"
  5653.   
  5654.                           if test "$enableval" = yes; then
  5655.                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
  5656.                           else
  5657.                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
  5658.                           fi
  5659.                         
  5660. else
  5661.   
  5662.                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
  5663.                           if test "x$LINE" != x ; then
  5664.                             eval "DEFAULT_$LINE"
  5665.                           else
  5666.                             no_cache=1
  5667.                           fi
  5668.  
  5669.                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
  5670.                         
  5671. fi
  5672.  
  5673.  
  5674.           eval "$ac_cv_use_prologio"
  5675.           if test "$no_cache" != 1; then
  5676.             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
  5677.           fi
  5678.  
  5679.           if test "$wxUSE_PROLOGIO" = yes; then
  5680.             echo "$ac_t""yes" 1>&6
  5681.           else
  5682.             echo "$ac_t""no" 1>&6
  5683.           fi
  5684.         
  5685.  
  5686.       enablestring=
  5687.           echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
  5688. echo "configure:5689: checking for --${enablestring:-enable}-resources" >&5
  5689.           no_cache=0
  5690.           # Check whether --enable-resources or --disable-resources was given.
  5691. if test "${enable_resources+set}" = set; then
  5692.   enableval="$enable_resources"
  5693.   
  5694.                           if test "$enableval" = yes; then
  5695.                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
  5696.                           else
  5697.                             ac_cv_use_resources='wxUSE_RESOURCES=no'
  5698.                           fi
  5699.                         
  5700. else
  5701.   
  5702.                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
  5703.                           if test "x$LINE" != x ; then
  5704.                             eval "DEFAULT_$LINE"
  5705.                           else
  5706.                             no_cache=1
  5707.                           fi
  5708.  
  5709.                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
  5710.                         
  5711. fi
  5712.  
  5713.  
  5714.           eval "$ac_cv_use_resources"
  5715.           if test "$no_cache" != 1; then
  5716.             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
  5717.           fi
  5718.  
  5719.           if test "$wxUSE_RESOURCES" = yes; then
  5720.             echo "$ac_t""yes" 1>&6
  5721.           else
  5722.             echo "$ac_t""no" 1>&6
  5723.           fi
  5724.         
  5725.  
  5726.  
  5727.       enablestring=
  5728.           echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
  5729. echo "configure:5730: checking for --${enablestring:-enable}-xresources" >&5
  5730.           no_cache=0
  5731.           # Check whether --enable-xresources or --disable-xresources was given.
  5732. if test "${enable_xresources+set}" = set; then
  5733.   enableval="$enable_xresources"
  5734.   
  5735.                           if test "$enableval" = yes; then
  5736.                             ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
  5737.                           else
  5738.                             ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
  5739.                           fi
  5740.                         
  5741. else
  5742.   
  5743.                           LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
  5744.                           if test "x$LINE" != x ; then
  5745.                             eval "DEFAULT_$LINE"
  5746.                           else
  5747.                             no_cache=1
  5748.                           fi
  5749.  
  5750.                           ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
  5751.                         
  5752. fi
  5753.  
  5754.  
  5755.           eval "$ac_cv_use_xresources"
  5756.           if test "$no_cache" != 1; then
  5757.             echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
  5758.           fi
  5759.  
  5760.           if test "$wxUSE_X_RESOURCES" = yes; then
  5761.             echo "$ac_t""yes" 1>&6
  5762.           else
  5763.             echo "$ac_t""no" 1>&6
  5764.           fi
  5765.         
  5766.  
  5767.  
  5768.  
  5769.       enablestring=
  5770.           echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
  5771. echo "configure:5772: checking for --${enablestring:-enable}-clipboard" >&5
  5772.           no_cache=0
  5773.           # Check whether --enable-clipboard or --disable-clipboard was given.
  5774. if test "${enable_clipboard+set}" = set; then
  5775.   enableval="$enable_clipboard"
  5776.   
  5777.                           if test "$enableval" = yes; then
  5778.                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
  5779.                           else
  5780.                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
  5781.                           fi
  5782.                         
  5783. else
  5784.   
  5785.                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
  5786.                           if test "x$LINE" != x ; then
  5787.                             eval "DEFAULT_$LINE"
  5788.                           else
  5789.                             no_cache=1
  5790.                           fi
  5791.  
  5792.                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
  5793.                         
  5794. fi
  5795.  
  5796.  
  5797.           eval "$ac_cv_use_clipboard"
  5798.           if test "$no_cache" != 1; then
  5799.             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
  5800.           fi
  5801.  
  5802.           if test "$wxUSE_CLIPBOARD" = yes; then
  5803.             echo "$ac_t""yes" 1>&6
  5804.           else
  5805.             echo "$ac_t""no" 1>&6
  5806.           fi
  5807.         
  5808.  
  5809.       enablestring=
  5810.           echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
  5811. echo "configure:5812: checking for --${enablestring:-enable}-dnd" >&5
  5812.           no_cache=0
  5813.           # Check whether --enable-dnd or --disable-dnd was given.
  5814. if test "${enable_dnd+set}" = set; then
  5815.   enableval="$enable_dnd"
  5816.   
  5817.                           if test "$enableval" = yes; then
  5818.                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
  5819.                           else
  5820.                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
  5821.                           fi
  5822.                         
  5823. else
  5824.   
  5825.                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
  5826.                           if test "x$LINE" != x ; then
  5827.                             eval "DEFAULT_$LINE"
  5828.                           else
  5829.                             no_cache=1
  5830.                           fi
  5831.  
  5832.                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
  5833.                         
  5834. fi
  5835.  
  5836.  
  5837.           eval "$ac_cv_use_dnd"
  5838.           if test "$no_cache" != 1; then
  5839.             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
  5840.           fi
  5841.  
  5842.           if test "$wxUSE_DRAG_AND_DROP" = yes; then
  5843.             echo "$ac_t""yes" 1>&6
  5844.           else
  5845.             echo "$ac_t""no" 1>&6
  5846.           fi
  5847.         
  5848.  
  5849.       enablestring=
  5850.           echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
  5851. echo "configure:5852: checking for --${enablestring:-enable}-metafile" >&5
  5852.           no_cache=0
  5853.           # Check whether --enable-metafile or --disable-metafile was given.
  5854. if test "${enable_metafile+set}" = set; then
  5855.   enableval="$enable_metafile"
  5856.   
  5857.                           if test "$enableval" = yes; then
  5858.                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
  5859.                           else
  5860.                             ac_cv_use_metafile='wxUSE_METAFILE=no'
  5861.                           fi
  5862.                         
  5863. else
  5864.   
  5865.                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
  5866.                           if test "x$LINE" != x ; then
  5867.                             eval "DEFAULT_$LINE"
  5868.                           else
  5869.                             no_cache=1
  5870.                           fi
  5871.  
  5872.                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
  5873.                         
  5874. fi
  5875.  
  5876.  
  5877.           eval "$ac_cv_use_metafile"
  5878.           if test "$no_cache" != 1; then
  5879.             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
  5880.           fi
  5881.  
  5882.           if test "$wxUSE_METAFILE" = yes; then
  5883.             echo "$ac_t""yes" 1>&6
  5884.           else
  5885.             echo "$ac_t""no" 1>&6
  5886.           fi
  5887.         
  5888.  
  5889.  
  5890.       enablestring=
  5891.           echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
  5892. echo "configure:5893: checking for --${enablestring:-enable}-treelayout" >&5
  5893.           no_cache=0
  5894.           # Check whether --enable-treelayout or --disable-treelayout was given.
  5895. if test "${enable_treelayout+set}" = set; then
  5896.   enableval="$enable_treelayout"
  5897.   
  5898.                           if test "$enableval" = yes; then
  5899.                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
  5900.                           else
  5901.                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
  5902.                           fi
  5903.                         
  5904. else
  5905.   
  5906.                           LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
  5907.                           if test "x$LINE" != x ; then
  5908.                             eval "DEFAULT_$LINE"
  5909.                           else
  5910.                             no_cache=1
  5911.                           fi
  5912.  
  5913.                           ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
  5914.                         
  5915. fi
  5916.  
  5917.  
  5918.           eval "$ac_cv_use_treelayout"
  5919.           if test "$no_cache" != 1; then
  5920.             echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
  5921.           fi
  5922.  
  5923.           if test "$wxUSE_TREELAYOUT" = yes; then
  5924.             echo "$ac_t""yes" 1>&6
  5925.           else
  5926.             echo "$ac_t""no" 1>&6
  5927.           fi
  5928.         
  5929.  
  5930.  
  5931.  
  5932.       enablestring=
  5933.           echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
  5934. echo "configure:5935: checking for --${enablestring:-enable}-controls" >&5
  5935.           no_cache=0
  5936.           # Check whether --enable-controls or --disable-controls was given.
  5937. if test "${enable_controls+set}" = set; then
  5938.   enableval="$enable_controls"
  5939.   
  5940.                           if test "$enableval" = yes; then
  5941.                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
  5942.                           else
  5943.                             ac_cv_use_controls='wxUSE_CONTROLS=no'
  5944.                           fi
  5945.                         
  5946. else
  5947.   
  5948.                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
  5949.                           if test "x$LINE" != x ; then
  5950.                             eval "DEFAULT_$LINE"
  5951.                           else
  5952.                             no_cache=1
  5953.                           fi
  5954.  
  5955.                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
  5956.                         
  5957. fi
  5958.  
  5959.  
  5960.           eval "$ac_cv_use_controls"
  5961.           if test "$no_cache" != 1; then
  5962.             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
  5963.           fi
  5964.  
  5965.           if test "$wxUSE_CONTROLS" = yes; then
  5966.             echo "$ac_t""yes" 1>&6
  5967.           else
  5968.             echo "$ac_t""no" 1>&6
  5969.           fi
  5970.         
  5971.  
  5972. if test "$wxUSE_CONTROLS" = "yes"; then
  5973.   DEFAULT_wxUSE_ACCEL=yes
  5974.   DEFAULT_wxUSE_BMPBUTTON=yes
  5975.   DEFAULT_wxUSE_BUTTON=yes
  5976.   DEFAULT_wxUSE_CALCTRL=no
  5977.   DEFAULT_wxUSE_CARET=yes
  5978.   DEFAULT_wxUSE_COMBOBOX=yes
  5979.   DEFAULT_wxUSE_CHECKBOX=yes
  5980.   DEFAULT_wxUSE_CHECKLISTBOX=yes
  5981.   DEFAULT_wxUSE_CHOICE=yes
  5982.   DEFAULT_wxUSE_GAUGE=yes
  5983.   DEFAULT_wxUSE_GRID=yes
  5984.   DEFAULT_wxUSE_NEW_GRID=yes
  5985.   DEFAULT_wxUSE_IMAGLIST=yes
  5986.   DEFAULT_wxUSE_LISTBOX=yes
  5987.   DEFAULT_wxUSE_LISTCTRL=yes
  5988.   DEFAULT_wxUSE_NOTEBOOK=yes
  5989.   DEFAULT_wxUSE_PROPSHEET=yes
  5990.   DEFAULT_wxUSE_RADIOBOX=yes
  5991.   DEFAULT_wxUSE_RADIOBTN=yes
  5992.   DEFAULT_wxUSE_SASH=yes
  5993.   DEFAULT_wxUSE_SCROLLBAR=yes
  5994.   DEFAULT_wxUSE_SLIDER=yes
  5995.   DEFAULT_wxUSE_SPINBTN=yes
  5996.   DEFAULT_wxUSE_SPINCTRL=yes
  5997.   DEFAULT_wxUSE_SPLITTER=yes
  5998.   DEFAULT_wxUSE_STATBMP=yes
  5999.   DEFAULT_wxUSE_STATBOX=yes
  6000.   DEFAULT_wxUSE_STATLINE=yes
  6001.   DEFAULT_wxUSE_STATUSBAR=yes
  6002.   DEFAULT_wxUSE_TAB_DIALOG=yes
  6003.   DEFAULT_wxUSE_TOGGLEBTN=yes
  6004.   DEFAULT_wxUSE_TOOLBAR=yes
  6005.   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
  6006.   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
  6007.   DEFAULT_wxUSE_TOOLTIPS=yes
  6008.   DEFAULT_wxUSE_TREECTRL=yes
  6009.   DEFAULT_wxUSE_POPUPWIN=yes
  6010.   DEFAULT_wxUSE_TIPWINDOW=yes
  6011. elif test "$wxUSE_CONTROLS" = "no"; then
  6012.   DEFAULT_wxUSE_ACCEL=no
  6013.   DEFAULT_wxUSE_BMPBUTTON=no
  6014.   DEFAULT_wxUSE_BUTTON=no
  6015.   DEFAULT_wxUSE_CALCTRL=no
  6016.   DEFAULT_wxUSE_CARET=no
  6017.   DEFAULT_wxUSE_COMBOBOX=no
  6018.   DEFAULT_wxUSE_CHECKBOX=no
  6019.   DEFAULT_wxUSE_CHECKLISTBOX=no
  6020.   DEFAULT_wxUSE_CHOICE=no
  6021.   DEFAULT_wxUSE_GAUGE=no
  6022.   DEFAULT_wxUSE_GRID=no
  6023.   DEFAULT_wxUSE_NEW_GRID=no
  6024.   DEFAULT_wxUSE_IMAGLIST=no
  6025.   DEFAULT_wxUSE_LISTBOX=no
  6026.   DEFAULT_wxUSE_LISTCTRL=no
  6027.   DEFAULT_wxUSE_NOTEBOOK=no
  6028.   DEFAULT_wxUSE_PROPSHEET=no
  6029.   DEFAULT_wxUSE_RADIOBOX=no
  6030.   DEFAULT_wxUSE_RADIOBTN=no
  6031.   DEFAULT_wxUSE_SASH=no
  6032.   DEFAULT_wxUSE_SCROLLBAR=no
  6033.   DEFAULT_wxUSE_SLIDER=no
  6034.   DEFAULT_wxUSE_SPINBTN=no
  6035.   DEFAULT_wxUSE_SPINCTRL=no
  6036.   DEFAULT_wxUSE_SPLITTER=no
  6037.   DEFAULT_wxUSE_STATBMP=no
  6038.   DEFAULT_wxUSE_STATBOX=no
  6039.   DEFAULT_wxUSE_STATLINE=no
  6040.   DEFAULT_wxUSE_STATUSBAR=no
  6041.   DEFAULT_wxUSE_TAB_DIALOG=no
  6042.   DEFAULT_wxUSE_TOGGLEBTN=no
  6043.   DEFAULT_wxUSE_TOOLBAR=no
  6044.   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
  6045.   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
  6046.   DEFAULT_wxUSE_TOOLTIPS=no
  6047.   DEFAULT_wxUSE_TREECTRL=no
  6048.   DEFAULT_wxUSE_POPUPWIN=no
  6049.   DEFAULT_wxUSE_TIPWINDOW=no
  6050. fi
  6051.  
  6052.  
  6053.       enablestring=
  6054.           echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
  6055. echo "configure:6056: checking for --${enablestring:-enable}-accel" >&5
  6056.           no_cache=0
  6057.           # Check whether --enable-accel or --disable-accel was given.
  6058. if test "${enable_accel+set}" = set; then
  6059.   enableval="$enable_accel"
  6060.   
  6061.                           if test "$enableval" = yes; then
  6062.                             ac_cv_use_accel='wxUSE_ACCEL=yes'
  6063.                           else
  6064.                             ac_cv_use_accel='wxUSE_ACCEL=no'
  6065.                           fi
  6066.                         
  6067. else
  6068.   
  6069.                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
  6070.                           if test "x$LINE" != x ; then
  6071.                             eval "DEFAULT_$LINE"
  6072.                           else
  6073.                             no_cache=1
  6074.                           fi
  6075.  
  6076.                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
  6077.                         
  6078. fi
  6079.  
  6080.  
  6081.           eval "$ac_cv_use_accel"
  6082.           if test "$no_cache" != 1; then
  6083.             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
  6084.           fi
  6085.  
  6086.           if test "$wxUSE_ACCEL" = yes; then
  6087.             echo "$ac_t""yes" 1>&6
  6088.           else
  6089.             echo "$ac_t""no" 1>&6
  6090.           fi
  6091.         
  6092.  
  6093.       enablestring=
  6094.           echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
  6095. echo "configure:6096: checking for --${enablestring:-enable}-button" >&5
  6096.           no_cache=0
  6097.           # Check whether --enable-button or --disable-button was given.
  6098. if test "${enable_button+set}" = set; then
  6099.   enableval="$enable_button"
  6100.   
  6101.                           if test "$enableval" = yes; then
  6102.                             ac_cv_use_button='wxUSE_BUTTON=yes'
  6103.                           else
  6104.                             ac_cv_use_button='wxUSE_BUTTON=no'
  6105.                           fi
  6106.                         
  6107. else
  6108.   
  6109.                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
  6110.                           if test "x$LINE" != x ; then
  6111.                             eval "DEFAULT_$LINE"
  6112.                           else
  6113.                             no_cache=1
  6114.                           fi
  6115.  
  6116.                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
  6117.                         
  6118. fi
  6119.  
  6120.  
  6121.           eval "$ac_cv_use_button"
  6122.           if test "$no_cache" != 1; then
  6123.             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
  6124.           fi
  6125.  
  6126.           if test "$wxUSE_BUTTON" = yes; then
  6127.             echo "$ac_t""yes" 1>&6
  6128.           else
  6129.             echo "$ac_t""no" 1>&6
  6130.           fi
  6131.         
  6132.  
  6133.       enablestring=
  6134.           echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
  6135. echo "configure:6136: checking for --${enablestring:-enable}-bmpbutton" >&5
  6136.           no_cache=0
  6137.           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
  6138. if test "${enable_bmpbutton+set}" = set; then
  6139.   enableval="$enable_bmpbutton"
  6140.   
  6141.                           if test "$enableval" = yes; then
  6142.                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
  6143.                           else
  6144.                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
  6145.                           fi
  6146.                         
  6147. else
  6148.   
  6149.                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
  6150.                           if test "x$LINE" != x ; then
  6151.                             eval "DEFAULT_$LINE"
  6152.                           else
  6153.                             no_cache=1
  6154.                           fi
  6155.  
  6156.                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
  6157.                         
  6158. fi
  6159.  
  6160.  
  6161.           eval "$ac_cv_use_bmpbutton"
  6162.           if test "$no_cache" != 1; then
  6163.             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
  6164.           fi
  6165.  
  6166.           if test "$wxUSE_BMPBUTTON" = yes; then
  6167.             echo "$ac_t""yes" 1>&6
  6168.           else
  6169.             echo "$ac_t""no" 1>&6
  6170.           fi
  6171.         
  6172.  
  6173.       enablestring=
  6174.           echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
  6175. echo "configure:6176: checking for --${enablestring:-enable}-calendar" >&5
  6176.           no_cache=0
  6177.           # Check whether --enable-calendar or --disable-calendar was given.
  6178. if test "${enable_calendar+set}" = set; then
  6179.   enableval="$enable_calendar"
  6180.   
  6181.                           if test "$enableval" = yes; then
  6182.                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
  6183.                           else
  6184.                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
  6185.                           fi
  6186.                         
  6187. else
  6188.   
  6189.                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
  6190.                           if test "x$LINE" != x ; then
  6191.                             eval "DEFAULT_$LINE"
  6192.                           else
  6193.                             no_cache=1
  6194.                           fi
  6195.  
  6196.                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
  6197.                         
  6198. fi
  6199.  
  6200.  
  6201.           eval "$ac_cv_use_calendar"
  6202.           if test "$no_cache" != 1; then
  6203.             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
  6204.           fi
  6205.  
  6206.           if test "$wxUSE_CALCTRL" = yes; then
  6207.             echo "$ac_t""yes" 1>&6
  6208.           else
  6209.             echo "$ac_t""no" 1>&6
  6210.           fi
  6211.         
  6212.  
  6213.       enablestring=
  6214.           echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
  6215. echo "configure:6216: checking for --${enablestring:-enable}-caret" >&5
  6216.           no_cache=0
  6217.           # Check whether --enable-caret or --disable-caret was given.
  6218. if test "${enable_caret+set}" = set; then
  6219.   enableval="$enable_caret"
  6220.   
  6221.                           if test "$enableval" = yes; then
  6222.                             ac_cv_use_caret='wxUSE_CARET=yes'
  6223.                           else
  6224.                             ac_cv_use_caret='wxUSE_CARET=no'
  6225.                           fi
  6226.                         
  6227. else
  6228.   
  6229.                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
  6230.                           if test "x$LINE" != x ; then
  6231.                             eval "DEFAULT_$LINE"
  6232.                           else
  6233.                             no_cache=1
  6234.                           fi
  6235.  
  6236.                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
  6237.                         
  6238. fi
  6239.  
  6240.  
  6241.           eval "$ac_cv_use_caret"
  6242.           if test "$no_cache" != 1; then
  6243.             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
  6244.           fi
  6245.  
  6246.           if test "$wxUSE_CARET" = yes; then
  6247.             echo "$ac_t""yes" 1>&6
  6248.           else
  6249.             echo "$ac_t""no" 1>&6
  6250.           fi
  6251.         
  6252.  
  6253.       enablestring=
  6254.           echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
  6255. echo "configure:6256: checking for --${enablestring:-enable}-checkbox" >&5
  6256.           no_cache=0
  6257.           # Check whether --enable-checkbox or --disable-checkbox was given.
  6258. if test "${enable_checkbox+set}" = set; then
  6259.   enableval="$enable_checkbox"
  6260.   
  6261.                           if test "$enableval" = yes; then
  6262.                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
  6263.                           else
  6264.                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
  6265.                           fi
  6266.                         
  6267. else
  6268.   
  6269.                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
  6270.                           if test "x$LINE" != x ; then
  6271.                             eval "DEFAULT_$LINE"
  6272.                           else
  6273.                             no_cache=1
  6274.                           fi
  6275.  
  6276.                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
  6277.                         
  6278. fi
  6279.  
  6280.  
  6281.           eval "$ac_cv_use_checkbox"
  6282.           if test "$no_cache" != 1; then
  6283.             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
  6284.           fi
  6285.  
  6286.           if test "$wxUSE_CHECKBOX" = yes; then
  6287.             echo "$ac_t""yes" 1>&6
  6288.           else
  6289.             echo "$ac_t""no" 1>&6
  6290.           fi
  6291.         
  6292.  
  6293.       enablestring=
  6294.           echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
  6295. echo "configure:6296: checking for --${enablestring:-enable}-checklst" >&5
  6296.           no_cache=0
  6297.           # Check whether --enable-checklst or --disable-checklst was given.
  6298. if test "${enable_checklst+set}" = set; then
  6299.   enableval="$enable_checklst"
  6300.   
  6301.                           if test "$enableval" = yes; then
  6302.                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
  6303.                           else
  6304.                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
  6305.                           fi
  6306.                         
  6307. else
  6308.   
  6309.                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
  6310.                           if test "x$LINE" != x ; then
  6311.                             eval "DEFAULT_$LINE"
  6312.                           else
  6313.                             no_cache=1
  6314.                           fi
  6315.  
  6316.                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
  6317.                         
  6318. fi
  6319.  
  6320.  
  6321.           eval "$ac_cv_use_checklst"
  6322.           if test "$no_cache" != 1; then
  6323.             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
  6324.           fi
  6325.  
  6326.           if test "$wxUSE_CHECKLST" = yes; then
  6327.             echo "$ac_t""yes" 1>&6
  6328.           else
  6329.             echo "$ac_t""no" 1>&6
  6330.           fi
  6331.         
  6332.  
  6333.       enablestring=
  6334.           echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
  6335. echo "configure:6336: checking for --${enablestring:-enable}-choice" >&5
  6336.           no_cache=0
  6337.           # Check whether --enable-choice or --disable-choice was given.
  6338. if test "${enable_choice+set}" = set; then
  6339.   enableval="$enable_choice"
  6340.   
  6341.                           if test "$enableval" = yes; then
  6342.                             ac_cv_use_choice='wxUSE_CHOICE=yes'
  6343.                           else
  6344.                             ac_cv_use_choice='wxUSE_CHOICE=no'
  6345.                           fi
  6346.                         
  6347. else
  6348.   
  6349.                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
  6350.                           if test "x$LINE" != x ; then
  6351.                             eval "DEFAULT_$LINE"
  6352.                           else
  6353.                             no_cache=1
  6354.                           fi
  6355.  
  6356.                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
  6357.                         
  6358. fi
  6359.  
  6360.  
  6361.           eval "$ac_cv_use_choice"
  6362.           if test "$no_cache" != 1; then
  6363.             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
  6364.           fi
  6365.  
  6366.           if test "$wxUSE_CHOICE" = yes; then
  6367.             echo "$ac_t""yes" 1>&6
  6368.           else
  6369.             echo "$ac_t""no" 1>&6
  6370.           fi
  6371.         
  6372.  
  6373.       enablestring=
  6374.           echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
  6375. echo "configure:6376: checking for --${enablestring:-enable}-combobox" >&5
  6376.           no_cache=0
  6377.           # Check whether --enable-combobox or --disable-combobox was given.
  6378. if test "${enable_combobox+set}" = set; then
  6379.   enableval="$enable_combobox"
  6380.   
  6381.                           if test "$enableval" = yes; then
  6382.                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
  6383.                           else
  6384.                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
  6385.                           fi
  6386.                         
  6387. else
  6388.   
  6389.                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
  6390.                           if test "x$LINE" != x ; then
  6391.                             eval "DEFAULT_$LINE"
  6392.                           else
  6393.                             no_cache=1
  6394.                           fi
  6395.  
  6396.                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
  6397.                         
  6398. fi
  6399.  
  6400.  
  6401.           eval "$ac_cv_use_combobox"
  6402.           if test "$no_cache" != 1; then
  6403.             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
  6404.           fi
  6405.  
  6406.           if test "$wxUSE_COMBOBOX" = yes; then
  6407.             echo "$ac_t""yes" 1>&6
  6408.           else
  6409.             echo "$ac_t""no" 1>&6
  6410.           fi
  6411.         
  6412.  
  6413.       enablestring=
  6414.           echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
  6415. echo "configure:6416: checking for --${enablestring:-enable}-gauge" >&5
  6416.           no_cache=0
  6417.           # Check whether --enable-gauge or --disable-gauge was given.
  6418. if test "${enable_gauge+set}" = set; then
  6419.   enableval="$enable_gauge"
  6420.   
  6421.                           if test "$enableval" = yes; then
  6422.                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
  6423.                           else
  6424.                             ac_cv_use_gauge='wxUSE_GAUGE=no'
  6425.                           fi
  6426.                         
  6427. else
  6428.   
  6429.                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
  6430.                           if test "x$LINE" != x ; then
  6431.                             eval "DEFAULT_$LINE"
  6432.                           else
  6433.                             no_cache=1
  6434.                           fi
  6435.  
  6436.                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
  6437.                         
  6438. fi
  6439.  
  6440.  
  6441.           eval "$ac_cv_use_gauge"
  6442.           if test "$no_cache" != 1; then
  6443.             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
  6444.           fi
  6445.  
  6446.           if test "$wxUSE_GAUGE" = yes; then
  6447.             echo "$ac_t""yes" 1>&6
  6448.           else
  6449.             echo "$ac_t""no" 1>&6
  6450.           fi
  6451.         
  6452.  
  6453.       enablestring=
  6454.           echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
  6455. echo "configure:6456: checking for --${enablestring:-enable}-grid" >&5
  6456.           no_cache=0
  6457.           # Check whether --enable-grid or --disable-grid was given.
  6458. if test "${enable_grid+set}" = set; then
  6459.   enableval="$enable_grid"
  6460.   
  6461.                           if test "$enableval" = yes; then
  6462.                             ac_cv_use_grid='wxUSE_GRID=yes'
  6463.                           else
  6464.                             ac_cv_use_grid='wxUSE_GRID=no'
  6465.                           fi
  6466.                         
  6467. else
  6468.   
  6469.                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
  6470.                           if test "x$LINE" != x ; then
  6471.                             eval "DEFAULT_$LINE"
  6472.                           else
  6473.                             no_cache=1
  6474.                           fi
  6475.  
  6476.                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
  6477.                         
  6478. fi
  6479.  
  6480.  
  6481.           eval "$ac_cv_use_grid"
  6482.           if test "$no_cache" != 1; then
  6483.             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
  6484.           fi
  6485.  
  6486.           if test "$wxUSE_GRID" = yes; then
  6487.             echo "$ac_t""yes" 1>&6
  6488.           else
  6489.             echo "$ac_t""no" 1>&6
  6490.           fi
  6491.         
  6492.  
  6493.       enablestring=
  6494.           echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6
  6495. echo "configure:6496: checking for --${enablestring:-enable}-newgrid" >&5
  6496.           no_cache=0
  6497.           # Check whether --enable-newgrid or --disable-newgrid was given.
  6498. if test "${enable_newgrid+set}" = set; then
  6499.   enableval="$enable_newgrid"
  6500.   
  6501.                           if test "$enableval" = yes; then
  6502.                             ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
  6503.                           else
  6504.                             ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
  6505.                           fi
  6506.                         
  6507. else
  6508.   
  6509.                           LINE=`grep "wxUSE_NEW_GRID" ${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_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
  6517.                         
  6518. fi
  6519.  
  6520.  
  6521.           eval "$ac_cv_use_newgrid"
  6522.           if test "$no_cache" != 1; then
  6523.             echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
  6524.           fi
  6525.  
  6526.           if test "$wxUSE_NEW_GRID" = yes; then
  6527.             echo "$ac_t""yes" 1>&6
  6528.           else
  6529.             echo "$ac_t""no" 1>&6
  6530.           fi
  6531.         
  6532.  
  6533.       enablestring=
  6534.           echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
  6535. echo "configure:6536: checking for --${enablestring:-enable}-imaglist" >&5
  6536.           no_cache=0
  6537.           # Check whether --enable-imaglist or --disable-imaglist was given.
  6538. if test "${enable_imaglist+set}" = set; then
  6539.   enableval="$enable_imaglist"
  6540.   
  6541.                           if test "$enableval" = yes; then
  6542.                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
  6543.                           else
  6544.                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
  6545.                           fi
  6546.                         
  6547. else
  6548.   
  6549.                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
  6550.                           if test "x$LINE" != x ; then
  6551.                             eval "DEFAULT_$LINE"
  6552.                           else
  6553.                             no_cache=1
  6554.                           fi
  6555.  
  6556.                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
  6557.                         
  6558. fi
  6559.  
  6560.  
  6561.           eval "$ac_cv_use_imaglist"
  6562.           if test "$no_cache" != 1; then
  6563.             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
  6564.           fi
  6565.  
  6566.           if test "$wxUSE_IMAGLIST" = yes; then
  6567.             echo "$ac_t""yes" 1>&6
  6568.           else
  6569.             echo "$ac_t""no" 1>&6
  6570.           fi
  6571.         
  6572.  
  6573.       enablestring=
  6574.           echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
  6575. echo "configure:6576: checking for --${enablestring:-enable}-listbox" >&5
  6576.           no_cache=0
  6577.           # Check whether --enable-listbox or --disable-listbox was given.
  6578. if test "${enable_listbox+set}" = set; then
  6579.   enableval="$enable_listbox"
  6580.   
  6581.                           if test "$enableval" = yes; then
  6582.                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
  6583.                           else
  6584.                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
  6585.                           fi
  6586.                         
  6587. else
  6588.   
  6589.                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
  6590.                           if test "x$LINE" != x ; then
  6591.                             eval "DEFAULT_$LINE"
  6592.                           else
  6593.                             no_cache=1
  6594.                           fi
  6595.  
  6596.                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
  6597.                         
  6598. fi
  6599.  
  6600.  
  6601.           eval "$ac_cv_use_listbox"
  6602.           if test "$no_cache" != 1; then
  6603.             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
  6604.           fi
  6605.  
  6606.           if test "$wxUSE_LISTBOX" = yes; then
  6607.             echo "$ac_t""yes" 1>&6
  6608.           else
  6609.             echo "$ac_t""no" 1>&6
  6610.           fi
  6611.         
  6612.  
  6613.       enablestring=
  6614.           echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
  6615. echo "configure:6616: checking for --${enablestring:-enable}-listctrl" >&5
  6616.           no_cache=0
  6617.           # Check whether --enable-listctrl or --disable-listctrl was given.
  6618. if test "${enable_listctrl+set}" = set; then
  6619.   enableval="$enable_listctrl"
  6620.   
  6621.                           if test "$enableval" = yes; then
  6622.                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
  6623.                           else
  6624.                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
  6625.                           fi
  6626.                         
  6627. else
  6628.   
  6629.                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
  6630.                           if test "x$LINE" != x ; then
  6631.                             eval "DEFAULT_$LINE"
  6632.                           else
  6633.                             no_cache=1
  6634.                           fi
  6635.  
  6636.                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
  6637.                         
  6638. fi
  6639.  
  6640.  
  6641.           eval "$ac_cv_use_listctrl"
  6642.           if test "$no_cache" != 1; then
  6643.             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
  6644.           fi
  6645.  
  6646.           if test "$wxUSE_LISTCTRL" = yes; then
  6647.             echo "$ac_t""yes" 1>&6
  6648.           else
  6649.             echo "$ac_t""no" 1>&6
  6650.           fi
  6651.         
  6652.  
  6653.       enablestring=
  6654.           echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
  6655. echo "configure:6656: checking for --${enablestring:-enable}-notebook" >&5
  6656.           no_cache=0
  6657.           # Check whether --enable-notebook or --disable-notebook was given.
  6658. if test "${enable_notebook+set}" = set; then
  6659.   enableval="$enable_notebook"
  6660.   
  6661.                           if test "$enableval" = yes; then
  6662.                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
  6663.                           else
  6664.                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
  6665.                           fi
  6666.                         
  6667. else
  6668.   
  6669.                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
  6670.                           if test "x$LINE" != x ; then
  6671.                             eval "DEFAULT_$LINE"
  6672.                           else
  6673.                             no_cache=1
  6674.                           fi
  6675.  
  6676.                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
  6677.                         
  6678. fi
  6679.  
  6680.  
  6681.           eval "$ac_cv_use_notebook"
  6682.           if test "$no_cache" != 1; then
  6683.             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
  6684.           fi
  6685.  
  6686.           if test "$wxUSE_NOTEBOOK" = yes; then
  6687.             echo "$ac_t""yes" 1>&6
  6688.           else
  6689.             echo "$ac_t""no" 1>&6
  6690.           fi
  6691.         
  6692.  
  6693.       enablestring=
  6694.           echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
  6695. echo "configure:6696: checking for --${enablestring:-enable}-propsheet" >&5
  6696.           no_cache=0
  6697.           # Check whether --enable-propsheet or --disable-propsheet was given.
  6698. if test "${enable_propsheet+set}" = set; then
  6699.   enableval="$enable_propsheet"
  6700.   
  6701.                           if test "$enableval" = yes; then
  6702.                             ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
  6703.                           else
  6704.                             ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
  6705.                           fi
  6706.                         
  6707. else
  6708.   
  6709.                           LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
  6710.                           if test "x$LINE" != x ; then
  6711.                             eval "DEFAULT_$LINE"
  6712.                           else
  6713.                             no_cache=1
  6714.                           fi
  6715.  
  6716.                           ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
  6717.                         
  6718. fi
  6719.  
  6720.  
  6721.           eval "$ac_cv_use_propsheet"
  6722.           if test "$no_cache" != 1; then
  6723.             echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
  6724.           fi
  6725.  
  6726.           if test "$wxUSE_PROPSHEET" = yes; then
  6727.             echo "$ac_t""yes" 1>&6
  6728.           else
  6729.             echo "$ac_t""no" 1>&6
  6730.           fi
  6731.         
  6732.  
  6733.       enablestring=
  6734.           echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
  6735. echo "configure:6736: checking for --${enablestring:-enable}-radiobox" >&5
  6736.           no_cache=0
  6737.           # Check whether --enable-radiobox or --disable-radiobox was given.
  6738. if test "${enable_radiobox+set}" = set; then
  6739.   enableval="$enable_radiobox"
  6740.   
  6741.                           if test "$enableval" = yes; then
  6742.                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
  6743.                           else
  6744.                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
  6745.                           fi
  6746.                         
  6747. else
  6748.   
  6749.                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
  6750.                           if test "x$LINE" != x ; then
  6751.                             eval "DEFAULT_$LINE"
  6752.                           else
  6753.                             no_cache=1
  6754.                           fi
  6755.  
  6756.                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
  6757.                         
  6758. fi
  6759.  
  6760.  
  6761.           eval "$ac_cv_use_radiobox"
  6762.           if test "$no_cache" != 1; then
  6763.             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
  6764.           fi
  6765.  
  6766.           if test "$wxUSE_RADIOBOX" = yes; then
  6767.             echo "$ac_t""yes" 1>&6
  6768.           else
  6769.             echo "$ac_t""no" 1>&6
  6770.           fi
  6771.         
  6772.  
  6773.       enablestring=
  6774.           echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
  6775. echo "configure:6776: checking for --${enablestring:-enable}-radiobtn" >&5
  6776.           no_cache=0
  6777.           # Check whether --enable-radiobtn or --disable-radiobtn was given.
  6778. if test "${enable_radiobtn+set}" = set; then
  6779.   enableval="$enable_radiobtn"
  6780.   
  6781.                           if test "$enableval" = yes; then
  6782.                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
  6783.                           else
  6784.                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
  6785.                           fi
  6786.                         
  6787. else
  6788.   
  6789.                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
  6790.                           if test "x$LINE" != x ; then
  6791.                             eval "DEFAULT_$LINE"
  6792.                           else
  6793.                             no_cache=1
  6794.                           fi
  6795.  
  6796.                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
  6797.                         
  6798. fi
  6799.  
  6800.  
  6801.           eval "$ac_cv_use_radiobtn"
  6802.           if test "$no_cache" != 1; then
  6803.             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
  6804.           fi
  6805.  
  6806.           if test "$wxUSE_RADIOBTN" = yes; then
  6807.             echo "$ac_t""yes" 1>&6
  6808.           else
  6809.             echo "$ac_t""no" 1>&6
  6810.           fi
  6811.         
  6812.  
  6813.       enablestring=
  6814.           echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
  6815. echo "configure:6816: checking for --${enablestring:-enable}-sash" >&5
  6816.           no_cache=0
  6817.           # Check whether --enable-sash or --disable-sash was given.
  6818. if test "${enable_sash+set}" = set; then
  6819.   enableval="$enable_sash"
  6820.   
  6821.                           if test "$enableval" = yes; then
  6822.                             ac_cv_use_sash='wxUSE_SASH=yes'
  6823.                           else
  6824.                             ac_cv_use_sash='wxUSE_SASH=no'
  6825.                           fi
  6826.                         
  6827. else
  6828.   
  6829.                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
  6830.                           if test "x$LINE" != x ; then
  6831.                             eval "DEFAULT_$LINE"
  6832.                           else
  6833.                             no_cache=1
  6834.                           fi
  6835.  
  6836.                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
  6837.                         
  6838. fi
  6839.  
  6840.  
  6841.           eval "$ac_cv_use_sash"
  6842.           if test "$no_cache" != 1; then
  6843.             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
  6844.           fi
  6845.  
  6846.           if test "$wxUSE_SASH" = yes; then
  6847.             echo "$ac_t""yes" 1>&6
  6848.           else
  6849.             echo "$ac_t""no" 1>&6
  6850.           fi
  6851.         
  6852.  
  6853.       enablestring=
  6854.           echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
  6855. echo "configure:6856: checking for --${enablestring:-enable}-scrollbar" >&5
  6856.           no_cache=0
  6857.           # Check whether --enable-scrollbar or --disable-scrollbar was given.
  6858. if test "${enable_scrollbar+set}" = set; then
  6859.   enableval="$enable_scrollbar"
  6860.   
  6861.                           if test "$enableval" = yes; then
  6862.                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
  6863.                           else
  6864.                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
  6865.                           fi
  6866.                         
  6867. else
  6868.   
  6869.                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
  6870.                           if test "x$LINE" != x ; then
  6871.                             eval "DEFAULT_$LINE"
  6872.                           else
  6873.                             no_cache=1
  6874.                           fi
  6875.  
  6876.                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
  6877.                         
  6878. fi
  6879.  
  6880.  
  6881.           eval "$ac_cv_use_scrollbar"
  6882.           if test "$no_cache" != 1; then
  6883.             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
  6884.           fi
  6885.  
  6886.           if test "$wxUSE_SCROLLBAR" = yes; then
  6887.             echo "$ac_t""yes" 1>&6
  6888.           else
  6889.             echo "$ac_t""no" 1>&6
  6890.           fi
  6891.         
  6892.  
  6893.       enablestring=
  6894.           echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
  6895. echo "configure:6896: checking for --${enablestring:-enable}-slider" >&5
  6896.           no_cache=0
  6897.           # Check whether --enable-slider or --disable-slider was given.
  6898. if test "${enable_slider+set}" = set; then
  6899.   enableval="$enable_slider"
  6900.   
  6901.                           if test "$enableval" = yes; then
  6902.                             ac_cv_use_slider='wxUSE_SLIDER=yes'
  6903.                           else
  6904.                             ac_cv_use_slider='wxUSE_SLIDER=no'
  6905.                           fi
  6906.                         
  6907. else
  6908.   
  6909.                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
  6910.                           if test "x$LINE" != x ; then
  6911.                             eval "DEFAULT_$LINE"
  6912.                           else
  6913.                             no_cache=1
  6914.                           fi
  6915.  
  6916.                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
  6917.                         
  6918. fi
  6919.  
  6920.  
  6921.           eval "$ac_cv_use_slider"
  6922.           if test "$no_cache" != 1; then
  6923.             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
  6924.           fi
  6925.  
  6926.           if test "$wxUSE_SLIDER" = yes; then
  6927.             echo "$ac_t""yes" 1>&6
  6928.           else
  6929.             echo "$ac_t""no" 1>&6
  6930.           fi
  6931.         
  6932.  
  6933.       enablestring=
  6934.           echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
  6935. echo "configure:6936: checking for --${enablestring:-enable}-spinbtn" >&5
  6936.           no_cache=0
  6937.           # Check whether --enable-spinbtn or --disable-spinbtn was given.
  6938. if test "${enable_spinbtn+set}" = set; then
  6939.   enableval="$enable_spinbtn"
  6940.   
  6941.                           if test "$enableval" = yes; then
  6942.                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
  6943.                           else
  6944.                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
  6945.                           fi
  6946.                         
  6947. else
  6948.   
  6949.                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
  6950.                           if test "x$LINE" != x ; then
  6951.                             eval "DEFAULT_$LINE"
  6952.                           else
  6953.                             no_cache=1
  6954.                           fi
  6955.  
  6956.                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
  6957.                         
  6958. fi
  6959.  
  6960.  
  6961.           eval "$ac_cv_use_spinbtn"
  6962.           if test "$no_cache" != 1; then
  6963.             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
  6964.           fi
  6965.  
  6966.           if test "$wxUSE_SPINBTN" = yes; then
  6967.             echo "$ac_t""yes" 1>&6
  6968.           else
  6969.             echo "$ac_t""no" 1>&6
  6970.           fi
  6971.         
  6972.  
  6973.       enablestring=
  6974.           echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
  6975. echo "configure:6976: checking for --${enablestring:-enable}-spinctrl" >&5
  6976.           no_cache=0
  6977.           # Check whether --enable-spinctrl or --disable-spinctrl was given.
  6978. if test "${enable_spinctrl+set}" = set; then
  6979.   enableval="$enable_spinctrl"
  6980.   
  6981.                           if test "$enableval" = yes; then
  6982.                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
  6983.                           else
  6984.                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
  6985.                           fi
  6986.                         
  6987. else
  6988.   
  6989.                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
  6990.                           if test "x$LINE" != x ; then
  6991.                             eval "DEFAULT_$LINE"
  6992.                           else
  6993.                             no_cache=1
  6994.                           fi
  6995.  
  6996.                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
  6997.                         
  6998. fi
  6999.  
  7000.  
  7001.           eval "$ac_cv_use_spinctrl"
  7002.           if test "$no_cache" != 1; then
  7003.             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
  7004.           fi
  7005.  
  7006.           if test "$wxUSE_SPINCTRL" = yes; then
  7007.             echo "$ac_t""yes" 1>&6
  7008.           else
  7009.             echo "$ac_t""no" 1>&6
  7010.           fi
  7011.         
  7012.  
  7013.       enablestring=
  7014.           echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
  7015. echo "configure:7016: checking for --${enablestring:-enable}-splitter" >&5
  7016.           no_cache=0
  7017.           # Check whether --enable-splitter or --disable-splitter was given.
  7018. if test "${enable_splitter+set}" = set; then
  7019.   enableval="$enable_splitter"
  7020.   
  7021.                           if test "$enableval" = yes; then
  7022.                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
  7023.                           else
  7024.                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
  7025.                           fi
  7026.                         
  7027. else
  7028.   
  7029.                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
  7030.                           if test "x$LINE" != x ; then
  7031.                             eval "DEFAULT_$LINE"
  7032.                           else
  7033.                             no_cache=1
  7034.                           fi
  7035.  
  7036.                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
  7037.                         
  7038. fi
  7039.  
  7040.  
  7041.           eval "$ac_cv_use_splitter"
  7042.           if test "$no_cache" != 1; then
  7043.             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
  7044.           fi
  7045.  
  7046.           if test "$wxUSE_SPLITTER" = yes; then
  7047.             echo "$ac_t""yes" 1>&6
  7048.           else
  7049.             echo "$ac_t""no" 1>&6
  7050.           fi
  7051.         
  7052.  
  7053.       enablestring=
  7054.           echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
  7055. echo "configure:7056: checking for --${enablestring:-enable}-statbmp" >&5
  7056.           no_cache=0
  7057.           # Check whether --enable-statbmp or --disable-statbmp was given.
  7058. if test "${enable_statbmp+set}" = set; then
  7059.   enableval="$enable_statbmp"
  7060.   
  7061.                           if test "$enableval" = yes; then
  7062.                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
  7063.                           else
  7064.                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
  7065.                           fi
  7066.                         
  7067. else
  7068.   
  7069.                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
  7070.                           if test "x$LINE" != x ; then
  7071.                             eval "DEFAULT_$LINE"
  7072.                           else
  7073.                             no_cache=1
  7074.                           fi
  7075.  
  7076.                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
  7077.                         
  7078. fi
  7079.  
  7080.  
  7081.           eval "$ac_cv_use_statbmp"
  7082.           if test "$no_cache" != 1; then
  7083.             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
  7084.           fi
  7085.  
  7086.           if test "$wxUSE_STATBMP" = yes; then
  7087.             echo "$ac_t""yes" 1>&6
  7088.           else
  7089.             echo "$ac_t""no" 1>&6
  7090.           fi
  7091.         
  7092.  
  7093.       enablestring=
  7094.           echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
  7095. echo "configure:7096: checking for --${enablestring:-enable}-statbox" >&5
  7096.           no_cache=0
  7097.           # Check whether --enable-statbox or --disable-statbox was given.
  7098. if test "${enable_statbox+set}" = set; then
  7099.   enableval="$enable_statbox"
  7100.   
  7101.                           if test "$enableval" = yes; then
  7102.                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
  7103.                           else
  7104.                             ac_cv_use_statbox='wxUSE_STATBOX=no'
  7105.                           fi
  7106.                         
  7107. else
  7108.   
  7109.                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
  7110.                           if test "x$LINE" != x ; then
  7111.                             eval "DEFAULT_$LINE"
  7112.                           else
  7113.                             no_cache=1
  7114.                           fi
  7115.  
  7116.                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
  7117.                         
  7118. fi
  7119.  
  7120.  
  7121.           eval "$ac_cv_use_statbox"
  7122.           if test "$no_cache" != 1; then
  7123.             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
  7124.           fi
  7125.  
  7126.           if test "$wxUSE_STATBOX" = yes; then
  7127.             echo "$ac_t""yes" 1>&6
  7128.           else
  7129.             echo "$ac_t""no" 1>&6
  7130.           fi
  7131.         
  7132.  
  7133.       enablestring=
  7134.           echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
  7135. echo "configure:7136: checking for --${enablestring:-enable}-statline" >&5
  7136.           no_cache=0
  7137.           # Check whether --enable-statline or --disable-statline was given.
  7138. if test "${enable_statline+set}" = set; then
  7139.   enableval="$enable_statline"
  7140.   
  7141.                           if test "$enableval" = yes; then
  7142.                             ac_cv_use_statline='wxUSE_STATLINE=yes'
  7143.                           else
  7144.                             ac_cv_use_statline='wxUSE_STATLINE=no'
  7145.                           fi
  7146.                         
  7147. else
  7148.   
  7149.                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
  7150.                           if test "x$LINE" != x ; then
  7151.                             eval "DEFAULT_$LINE"
  7152.                           else
  7153.                             no_cache=1
  7154.                           fi
  7155.  
  7156.                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
  7157.                         
  7158. fi
  7159.  
  7160.  
  7161.           eval "$ac_cv_use_statline"
  7162.           if test "$no_cache" != 1; then
  7163.             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
  7164.           fi
  7165.  
  7166.           if test "$wxUSE_STATLINE" = yes; then
  7167.             echo "$ac_t""yes" 1>&6
  7168.           else
  7169.             echo "$ac_t""no" 1>&6
  7170.           fi
  7171.         
  7172.  
  7173.       enablestring=
  7174.           echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
  7175. echo "configure:7176: checking for --${enablestring:-enable}-stattext" >&5
  7176.           no_cache=0
  7177.           # Check whether --enable-stattext or --disable-stattext was given.
  7178. if test "${enable_stattext+set}" = set; then
  7179.   enableval="$enable_stattext"
  7180.   
  7181.                           if test "$enableval" = yes; then
  7182.                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
  7183.                           else
  7184.                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
  7185.                           fi
  7186.                         
  7187. else
  7188.   
  7189.                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
  7190.                           if test "x$LINE" != x ; then
  7191.                             eval "DEFAULT_$LINE"
  7192.                           else
  7193.                             no_cache=1
  7194.                           fi
  7195.  
  7196.                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
  7197.                         
  7198. fi
  7199.  
  7200.  
  7201.           eval "$ac_cv_use_stattext"
  7202.           if test "$no_cache" != 1; then
  7203.             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
  7204.           fi
  7205.  
  7206.           if test "$wxUSE_STATTEXT" = yes; then
  7207.             echo "$ac_t""yes" 1>&6
  7208.           else
  7209.             echo "$ac_t""no" 1>&6
  7210.           fi
  7211.         
  7212.  
  7213.       enablestring=
  7214.           echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
  7215. echo "configure:7216: checking for --${enablestring:-enable}-statusbar" >&5
  7216.           no_cache=0
  7217.           # Check whether --enable-statusbar or --disable-statusbar was given.
  7218. if test "${enable_statusbar+set}" = set; then
  7219.   enableval="$enable_statusbar"
  7220.   
  7221.                           if test "$enableval" = yes; then
  7222.                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
  7223.                           else
  7224.                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
  7225.                           fi
  7226.                         
  7227. else
  7228.   
  7229.                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
  7230.                           if test "x$LINE" != x ; then
  7231.                             eval "DEFAULT_$LINE"
  7232.                           else
  7233.                             no_cache=1
  7234.                           fi
  7235.  
  7236.                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
  7237.                         
  7238. fi
  7239.  
  7240.  
  7241.           eval "$ac_cv_use_statusbar"
  7242.           if test "$no_cache" != 1; then
  7243.             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
  7244.           fi
  7245.  
  7246.           if test "$wxUSE_STATUSBAR" = yes; then
  7247.             echo "$ac_t""yes" 1>&6
  7248.           else
  7249.             echo "$ac_t""no" 1>&6
  7250.           fi
  7251.         
  7252.  
  7253.       enablestring=
  7254.           echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
  7255. echo "configure:7256: checking for --${enablestring:-enable}-tabdialog" >&5
  7256.           no_cache=0
  7257.           # Check whether --enable-tabdialog or --disable-tabdialog was given.
  7258. if test "${enable_tabdialog+set}" = set; then
  7259.   enableval="$enable_tabdialog"
  7260.   
  7261.                           if test "$enableval" = yes; then
  7262.                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
  7263.                           else
  7264.                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
  7265.                           fi
  7266.                         
  7267. else
  7268.   
  7269.                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
  7270.                           if test "x$LINE" != x ; then
  7271.                             eval "DEFAULT_$LINE"
  7272.                           else
  7273.                             no_cache=1
  7274.                           fi
  7275.  
  7276.                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
  7277.                         
  7278. fi
  7279.  
  7280.  
  7281.           eval "$ac_cv_use_tabdialog"
  7282.           if test "$no_cache" != 1; then
  7283.             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
  7284.           fi
  7285.  
  7286.           if test "$wxUSE_TABDIALOG" = yes; then
  7287.             echo "$ac_t""yes" 1>&6
  7288.           else
  7289.             echo "$ac_t""no" 1>&6
  7290.           fi
  7291.         
  7292.  
  7293.       enablestring=
  7294.           echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
  7295. echo "configure:7296: checking for --${enablestring:-enable}-textctrl" >&5
  7296.           no_cache=0
  7297.           # Check whether --enable-textctrl or --disable-textctrl was given.
  7298. if test "${enable_textctrl+set}" = set; then
  7299.   enableval="$enable_textctrl"
  7300.   
  7301.                           if test "$enableval" = yes; then
  7302.                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
  7303.                           else
  7304.                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
  7305.                           fi
  7306.                         
  7307. else
  7308.   
  7309.                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
  7310.                           if test "x$LINE" != x ; then
  7311.                             eval "DEFAULT_$LINE"
  7312.                           else
  7313.                             no_cache=1
  7314.                           fi
  7315.  
  7316.                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
  7317.                         
  7318. fi
  7319.  
  7320.  
  7321.           eval "$ac_cv_use_textctrl"
  7322.           if test "$no_cache" != 1; then
  7323.             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
  7324.           fi
  7325.  
  7326.           if test "$wxUSE_TEXTCTRL" = yes; then
  7327.             echo "$ac_t""yes" 1>&6
  7328.           else
  7329.             echo "$ac_t""no" 1>&6
  7330.           fi
  7331.         
  7332.  
  7333.       enablestring=
  7334.           echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
  7335. echo "configure:7336: checking for --${enablestring:-enable}-togglebtn" >&5
  7336.           no_cache=0
  7337.           # Check whether --enable-togglebtn or --disable-togglebtn was given.
  7338. if test "${enable_togglebtn+set}" = set; then
  7339.   enableval="$enable_togglebtn"
  7340.   
  7341.                           if test "$enableval" = yes; then
  7342.                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
  7343.                           else
  7344.                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
  7345.                           fi
  7346.                         
  7347. else
  7348.   
  7349.                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
  7350.                           if test "x$LINE" != x ; then
  7351.                             eval "DEFAULT_$LINE"
  7352.                           else
  7353.                             no_cache=1
  7354.                           fi
  7355.  
  7356.                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
  7357.                         
  7358. fi
  7359.  
  7360.  
  7361.           eval "$ac_cv_use_togglebtn"
  7362.           if test "$no_cache" != 1; then
  7363.             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
  7364.           fi
  7365.  
  7366.           if test "$wxUSE_TOGGLEBTN" = yes; then
  7367.             echo "$ac_t""yes" 1>&6
  7368.           else
  7369.             echo "$ac_t""no" 1>&6
  7370.           fi
  7371.         
  7372.  
  7373.       enablestring=
  7374.           echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
  7375. echo "configure:7376: checking for --${enablestring:-enable}-toolbar" >&5
  7376.           no_cache=0
  7377.           # Check whether --enable-toolbar or --disable-toolbar was given.
  7378. if test "${enable_toolbar+set}" = set; then
  7379.   enableval="$enable_toolbar"
  7380.   
  7381.                           if test "$enableval" = yes; then
  7382.                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
  7383.                           else
  7384.                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
  7385.                           fi
  7386.                         
  7387. else
  7388.   
  7389.                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
  7390.                           if test "x$LINE" != x ; then
  7391.                             eval "DEFAULT_$LINE"
  7392.                           else
  7393.                             no_cache=1
  7394.                           fi
  7395.  
  7396.                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
  7397.                         
  7398. fi
  7399.  
  7400.  
  7401.           eval "$ac_cv_use_toolbar"
  7402.           if test "$no_cache" != 1; then
  7403.             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
  7404.           fi
  7405.  
  7406.           if test "$wxUSE_TOOLBAR" = yes; then
  7407.             echo "$ac_t""yes" 1>&6
  7408.           else
  7409.             echo "$ac_t""no" 1>&6
  7410.           fi
  7411.         
  7412.  
  7413.       enablestring=
  7414.           echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
  7415. echo "configure:7416: checking for --${enablestring:-enable}-tbarnative" >&5
  7416.           no_cache=0
  7417.           # Check whether --enable-tbarnative or --disable-tbarnative was given.
  7418. if test "${enable_tbarnative+set}" = set; then
  7419.   enableval="$enable_tbarnative"
  7420.   
  7421.                           if test "$enableval" = yes; then
  7422.                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
  7423.                           else
  7424.                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
  7425.                           fi
  7426.                         
  7427. else
  7428.   
  7429.                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
  7430.                           if test "x$LINE" != x ; then
  7431.                             eval "DEFAULT_$LINE"
  7432.                           else
  7433.                             no_cache=1
  7434.                           fi
  7435.  
  7436.                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
  7437.                         
  7438. fi
  7439.  
  7440.  
  7441.           eval "$ac_cv_use_tbarnative"
  7442.           if test "$no_cache" != 1; then
  7443.             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
  7444.           fi
  7445.  
  7446.           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
  7447.             echo "$ac_t""yes" 1>&6
  7448.           else
  7449.             echo "$ac_t""no" 1>&6
  7450.           fi
  7451.         
  7452.  
  7453.       enablestring=
  7454.           echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
  7455. echo "configure:7456: checking for --${enablestring:-enable}-tbarsmpl" >&5
  7456.           no_cache=0
  7457.           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
  7458. if test "${enable_tbarsmpl+set}" = set; then
  7459.   enableval="$enable_tbarsmpl"
  7460.   
  7461.                           if test "$enableval" = yes; then
  7462.                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
  7463.                           else
  7464.                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
  7465.                           fi
  7466.                         
  7467. else
  7468.   
  7469.                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
  7470.                           if test "x$LINE" != x ; then
  7471.                             eval "DEFAULT_$LINE"
  7472.                           else
  7473.                             no_cache=1
  7474.                           fi
  7475.  
  7476.                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
  7477.                         
  7478. fi
  7479.  
  7480.  
  7481.           eval "$ac_cv_use_tbarsmpl"
  7482.           if test "$no_cache" != 1; then
  7483.             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
  7484.           fi
  7485.  
  7486.           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
  7487.             echo "$ac_t""yes" 1>&6
  7488.           else
  7489.             echo "$ac_t""no" 1>&6
  7490.           fi
  7491.         
  7492.  
  7493.       enablestring=
  7494.           echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
  7495. echo "configure:7496: checking for --${enablestring:-enable}-treectrl" >&5
  7496.           no_cache=0
  7497.           # Check whether --enable-treectrl or --disable-treectrl was given.
  7498. if test "${enable_treectrl+set}" = set; then
  7499.   enableval="$enable_treectrl"
  7500.   
  7501.                           if test "$enableval" = yes; then
  7502.                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
  7503.                           else
  7504.                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
  7505.                           fi
  7506.                         
  7507. else
  7508.   
  7509.                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
  7510.                           if test "x$LINE" != x ; then
  7511.                             eval "DEFAULT_$LINE"
  7512.                           else
  7513.                             no_cache=1
  7514.                           fi
  7515.  
  7516.                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
  7517.                         
  7518. fi
  7519.  
  7520.  
  7521.           eval "$ac_cv_use_treectrl"
  7522.           if test "$no_cache" != 1; then
  7523.             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
  7524.           fi
  7525.  
  7526.           if test "$wxUSE_TREECTRL" = yes; then
  7527.             echo "$ac_t""yes" 1>&6
  7528.           else
  7529.             echo "$ac_t""no" 1>&6
  7530.           fi
  7531.         
  7532.  
  7533.       enablestring=
  7534.           echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
  7535. echo "configure:7536: checking for --${enablestring:-enable}-tipwindow" >&5
  7536.           no_cache=0
  7537.           # Check whether --enable-tipwindow or --disable-tipwindow was given.
  7538. if test "${enable_tipwindow+set}" = set; then
  7539.   enableval="$enable_tipwindow"
  7540.   
  7541.                           if test "$enableval" = yes; then
  7542.                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
  7543.                           else
  7544.                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
  7545.                           fi
  7546.                         
  7547. else
  7548.   
  7549.                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
  7550.                           if test "x$LINE" != x ; then
  7551.                             eval "DEFAULT_$LINE"
  7552.                           else
  7553.                             no_cache=1
  7554.                           fi
  7555.  
  7556.                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
  7557.                         
  7558. fi
  7559.  
  7560.  
  7561.           eval "$ac_cv_use_tipwindow"
  7562.           if test "$no_cache" != 1; then
  7563.             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
  7564.           fi
  7565.  
  7566.           if test "$wxUSE_TIPWINDOW" = yes; then
  7567.             echo "$ac_t""yes" 1>&6
  7568.           else
  7569.             echo "$ac_t""no" 1>&6
  7570.           fi
  7571.         
  7572.  
  7573.       enablestring=
  7574.           echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
  7575. echo "configure:7576: checking for --${enablestring:-enable}-popupwin" >&5
  7576.           no_cache=0
  7577.           # Check whether --enable-popupwin or --disable-popupwin was given.
  7578. if test "${enable_popupwin+set}" = set; then
  7579.   enableval="$enable_popupwin"
  7580.   
  7581.                           if test "$enableval" = yes; then
  7582.                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
  7583.                           else
  7584.                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
  7585.                           fi
  7586.                         
  7587. else
  7588.   
  7589.                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
  7590.                           if test "x$LINE" != x ; then
  7591.                             eval "DEFAULT_$LINE"
  7592.                           else
  7593.                             no_cache=1
  7594.                           fi
  7595.  
  7596.                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
  7597.                         
  7598. fi
  7599.  
  7600.  
  7601.           eval "$ac_cv_use_popupwin"
  7602.           if test "$no_cache" != 1; then
  7603.             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
  7604.           fi
  7605.  
  7606.           if test "$wxUSE_POPUPWIN" = yes; then
  7607.             echo "$ac_t""yes" 1>&6
  7608.           else
  7609.             echo "$ac_t""no" 1>&6
  7610.           fi
  7611.         
  7612.  
  7613.  
  7614.  
  7615.       enablestring=
  7616.           echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
  7617. echo "configure:7618: checking for --${enablestring:-enable}-commondlg" >&5
  7618.           no_cache=0
  7619.           # Check whether --enable-commondlg or --disable-commondlg was given.
  7620. if test "${enable_commondlg+set}" = set; then
  7621.   enableval="$enable_commondlg"
  7622.   
  7623.                           if test "$enableval" = yes; then
  7624.                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
  7625.                           else
  7626.                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
  7627.                           fi
  7628.                         
  7629. else
  7630.   
  7631.                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
  7632.                           if test "x$LINE" != x ; then
  7633.                             eval "DEFAULT_$LINE"
  7634.                           else
  7635.                             no_cache=1
  7636.                           fi
  7637.  
  7638.                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
  7639.                         
  7640. fi
  7641.  
  7642.  
  7643.           eval "$ac_cv_use_commondlg"
  7644.           if test "$no_cache" != 1; then
  7645.             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
  7646.           fi
  7647.  
  7648.           if test "$wxUSE_COMMONDLGS" = yes; then
  7649.             echo "$ac_t""yes" 1>&6
  7650.           else
  7651.             echo "$ac_t""no" 1>&6
  7652.           fi
  7653.         
  7654.  
  7655.       enablestring=
  7656.           echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
  7657. echo "configure:7658: checking for --${enablestring:-enable}-choicedlg" >&5
  7658.           no_cache=0
  7659.           # Check whether --enable-choicedlg or --disable-choicedlg was given.
  7660. if test "${enable_choicedlg+set}" = set; then
  7661.   enableval="$enable_choicedlg"
  7662.   
  7663.                           if test "$enableval" = yes; then
  7664.                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
  7665.                           else
  7666.                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
  7667.                           fi
  7668.                         
  7669. else
  7670.   
  7671.                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
  7672.                           if test "x$LINE" != x ; then
  7673.                             eval "DEFAULT_$LINE"
  7674.                           else
  7675.                             no_cache=1
  7676.                           fi
  7677.  
  7678.                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
  7679.                         
  7680. fi
  7681.  
  7682.  
  7683.           eval "$ac_cv_use_choicedlg"
  7684.           if test "$no_cache" != 1; then
  7685.             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
  7686.           fi
  7687.  
  7688.           if test "$wxUSE_CHOICEDLG" = yes; then
  7689.             echo "$ac_t""yes" 1>&6
  7690.           else
  7691.             echo "$ac_t""no" 1>&6
  7692.           fi
  7693.         
  7694.  
  7695.       enablestring=
  7696.           echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
  7697. echo "configure:7698: checking for --${enablestring:-enable}-coldlg" >&5
  7698.           no_cache=0
  7699.           # Check whether --enable-coldlg or --disable-coldlg was given.
  7700. if test "${enable_coldlg+set}" = set; then
  7701.   enableval="$enable_coldlg"
  7702.   
  7703.                           if test "$enableval" = yes; then
  7704.                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
  7705.                           else
  7706.                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
  7707.                           fi
  7708.                         
  7709. else
  7710.   
  7711.                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
  7712.                           if test "x$LINE" != x ; then
  7713.                             eval "DEFAULT_$LINE"
  7714.                           else
  7715.                             no_cache=1
  7716.                           fi
  7717.  
  7718.                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
  7719.                         
  7720. fi
  7721.  
  7722.  
  7723.           eval "$ac_cv_use_coldlg"
  7724.           if test "$no_cache" != 1; then
  7725.             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
  7726.           fi
  7727.  
  7728.           if test "$wxUSE_COLOURDLG" = yes; then
  7729.             echo "$ac_t""yes" 1>&6
  7730.           else
  7731.             echo "$ac_t""no" 1>&6
  7732.           fi
  7733.         
  7734.  
  7735.       enablestring=
  7736.           echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
  7737. echo "configure:7738: checking for --${enablestring:-enable}-filedlg" >&5
  7738.           no_cache=0
  7739.           # Check whether --enable-filedlg or --disable-filedlg was given.
  7740. if test "${enable_filedlg+set}" = set; then
  7741.   enableval="$enable_filedlg"
  7742.   
  7743.                           if test "$enableval" = yes; then
  7744.                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
  7745.                           else
  7746.                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
  7747.                           fi
  7748.                         
  7749. else
  7750.   
  7751.                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
  7752.                           if test "x$LINE" != x ; then
  7753.                             eval "DEFAULT_$LINE"
  7754.                           else
  7755.                             no_cache=1
  7756.                           fi
  7757.  
  7758.                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
  7759.                         
  7760. fi
  7761.  
  7762.  
  7763.           eval "$ac_cv_use_filedlg"
  7764.           if test "$no_cache" != 1; then
  7765.             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
  7766.           fi
  7767.  
  7768.           if test "$wxUSE_FILEDLG" = yes; then
  7769.             echo "$ac_t""yes" 1>&6
  7770.           else
  7771.             echo "$ac_t""no" 1>&6
  7772.           fi
  7773.         
  7774.  
  7775.       enablestring=
  7776.           echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
  7777. echo "configure:7778: checking for --${enablestring:-enable}-finddlg" >&5
  7778.           no_cache=0
  7779.           # Check whether --enable-finddlg or --disable-finddlg was given.
  7780. if test "${enable_finddlg+set}" = set; then
  7781.   enableval="$enable_finddlg"
  7782.   
  7783.                           if test "$enableval" = yes; then
  7784.                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
  7785.                           else
  7786.                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
  7787.                           fi
  7788.                         
  7789. else
  7790.   
  7791.                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
  7792.                           if test "x$LINE" != x ; then
  7793.                             eval "DEFAULT_$LINE"
  7794.                           else
  7795.                             no_cache=1
  7796.                           fi
  7797.  
  7798.                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
  7799.                         
  7800. fi
  7801.  
  7802.  
  7803.           eval "$ac_cv_use_finddlg"
  7804.           if test "$no_cache" != 1; then
  7805.             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
  7806.           fi
  7807.  
  7808.           if test "$wxUSE_FINDREPLDLG" = yes; then
  7809.             echo "$ac_t""yes" 1>&6
  7810.           else
  7811.             echo "$ac_t""no" 1>&6
  7812.           fi
  7813.         
  7814.  
  7815.       enablestring=
  7816.           echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
  7817. echo "configure:7818: checking for --${enablestring:-enable}-fontdlg" >&5
  7818.           no_cache=0
  7819.           # Check whether --enable-fontdlg or --disable-fontdlg was given.
  7820. if test "${enable_fontdlg+set}" = set; then
  7821.   enableval="$enable_fontdlg"
  7822.   
  7823.                           if test "$enableval" = yes; then
  7824.                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
  7825.                           else
  7826.                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
  7827.                           fi
  7828.                         
  7829. else
  7830.   
  7831.                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
  7832.                           if test "x$LINE" != x ; then
  7833.                             eval "DEFAULT_$LINE"
  7834.                           else
  7835.                             no_cache=1
  7836.                           fi
  7837.  
  7838.                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
  7839.                         
  7840. fi
  7841.  
  7842.  
  7843.           eval "$ac_cv_use_fontdlg"
  7844.           if test "$no_cache" != 1; then
  7845.             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
  7846.           fi
  7847.  
  7848.           if test "$wxUSE_FONTDLG" = yes; then
  7849.             echo "$ac_t""yes" 1>&6
  7850.           else
  7851.             echo "$ac_t""no" 1>&6
  7852.           fi
  7853.         
  7854.  
  7855.       enablestring=
  7856.           echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
  7857. echo "configure:7858: checking for --${enablestring:-enable}-dirdlg" >&5
  7858.           no_cache=0
  7859.           # Check whether --enable-dirdlg or --disable-dirdlg was given.
  7860. if test "${enable_dirdlg+set}" = set; then
  7861.   enableval="$enable_dirdlg"
  7862.   
  7863.                           if test "$enableval" = yes; then
  7864.                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
  7865.                           else
  7866.                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
  7867.                           fi
  7868.                         
  7869. else
  7870.   
  7871.                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
  7872.                           if test "x$LINE" != x ; then
  7873.                             eval "DEFAULT_$LINE"
  7874.                           else
  7875.                             no_cache=1
  7876.                           fi
  7877.  
  7878.                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
  7879.                         
  7880. fi
  7881.  
  7882.  
  7883.           eval "$ac_cv_use_dirdlg"
  7884.           if test "$no_cache" != 1; then
  7885.             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
  7886.           fi
  7887.  
  7888.           if test "$wxUSE_DIRDLG" = yes; then
  7889.             echo "$ac_t""yes" 1>&6
  7890.           else
  7891.             echo "$ac_t""no" 1>&6
  7892.           fi
  7893.         
  7894.  
  7895.       enablestring=
  7896.           echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
  7897. echo "configure:7898: checking for --${enablestring:-enable}-msgdlg" >&5
  7898.           no_cache=0
  7899.           # Check whether --enable-msgdlg or --disable-msgdlg was given.
  7900. if test "${enable_msgdlg+set}" = set; then
  7901.   enableval="$enable_msgdlg"
  7902.   
  7903.                           if test "$enableval" = yes; then
  7904.                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
  7905.                           else
  7906.                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
  7907.                           fi
  7908.                         
  7909. else
  7910.   
  7911.                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
  7912.                           if test "x$LINE" != x ; then
  7913.                             eval "DEFAULT_$LINE"
  7914.                           else
  7915.                             no_cache=1
  7916.                           fi
  7917.  
  7918.                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
  7919.                         
  7920. fi
  7921.  
  7922.  
  7923.           eval "$ac_cv_use_msgdlg"
  7924.           if test "$no_cache" != 1; then
  7925.             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
  7926.           fi
  7927.  
  7928.           if test "$wxUSE_MSGDLG" = yes; then
  7929.             echo "$ac_t""yes" 1>&6
  7930.           else
  7931.             echo "$ac_t""no" 1>&6
  7932.           fi
  7933.         
  7934.  
  7935.       enablestring=
  7936.           echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
  7937. echo "configure:7938: checking for --${enablestring:-enable}-numberdlg" >&5
  7938.           no_cache=0
  7939.           # Check whether --enable-numberdlg or --disable-numberdlg was given.
  7940. if test "${enable_numberdlg+set}" = set; then
  7941.   enableval="$enable_numberdlg"
  7942.   
  7943.                           if test "$enableval" = yes; then
  7944.                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
  7945.                           else
  7946.                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
  7947.                           fi
  7948.                         
  7949. else
  7950.   
  7951.                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
  7952.                           if test "x$LINE" != x ; then
  7953.                             eval "DEFAULT_$LINE"
  7954.                           else
  7955.                             no_cache=1
  7956.                           fi
  7957.  
  7958.                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
  7959.                         
  7960. fi
  7961.  
  7962.  
  7963.           eval "$ac_cv_use_numberdlg"
  7964.           if test "$no_cache" != 1; then
  7965.             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
  7966.           fi
  7967.  
  7968.           if test "$wxUSE_NUMBERDLG" = yes; then
  7969.             echo "$ac_t""yes" 1>&6
  7970.           else
  7971.             echo "$ac_t""no" 1>&6
  7972.           fi
  7973.         
  7974.  
  7975.       enablestring=
  7976.           echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
  7977. echo "configure:7978: checking for --${enablestring:-enable}-splash" >&5
  7978.           no_cache=0
  7979.           # Check whether --enable-splash or --disable-splash was given.
  7980. if test "${enable_splash+set}" = set; then
  7981.   enableval="$enable_splash"
  7982.   
  7983.                           if test "$enableval" = yes; then
  7984.                             ac_cv_use_splash='wxUSE_SPLASH=yes'
  7985.                           else
  7986.                             ac_cv_use_splash='wxUSE_SPLASH=no'
  7987.                           fi
  7988.                         
  7989. else
  7990.   
  7991.                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
  7992.                           if test "x$LINE" != x ; then
  7993.                             eval "DEFAULT_$LINE"
  7994.                           else
  7995.                             no_cache=1
  7996.                           fi
  7997.  
  7998.                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
  7999.                         
  8000. fi
  8001.  
  8002.  
  8003.           eval "$ac_cv_use_splash"
  8004.           if test "$no_cache" != 1; then
  8005.             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
  8006.           fi
  8007.  
  8008.           if test "$wxUSE_SPLASH" = yes; then
  8009.             echo "$ac_t""yes" 1>&6
  8010.           else
  8011.             echo "$ac_t""no" 1>&6
  8012.           fi
  8013.         
  8014.  
  8015.       enablestring=
  8016.           echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
  8017. echo "configure:8018: checking for --${enablestring:-enable}-textdlg" >&5
  8018.           no_cache=0
  8019.           # Check whether --enable-textdlg or --disable-textdlg was given.
  8020. if test "${enable_textdlg+set}" = set; then
  8021.   enableval="$enable_textdlg"
  8022.   
  8023.                           if test "$enableval" = yes; then
  8024.                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
  8025.                           else
  8026.                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
  8027.                           fi
  8028.                         
  8029. else
  8030.   
  8031.                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
  8032.                           if test "x$LINE" != x ; then
  8033.                             eval "DEFAULT_$LINE"
  8034.                           else
  8035.                             no_cache=1
  8036.                           fi
  8037.  
  8038.                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
  8039.                         
  8040. fi
  8041.  
  8042.  
  8043.           eval "$ac_cv_use_textdlg"
  8044.           if test "$no_cache" != 1; then
  8045.             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
  8046.           fi
  8047.  
  8048.           if test "$wxUSE_TEXTDLG" = yes; then
  8049.             echo "$ac_t""yes" 1>&6
  8050.           else
  8051.             echo "$ac_t""no" 1>&6
  8052.           fi
  8053.         
  8054.  
  8055.       enablestring=
  8056.           echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
  8057. echo "configure:8058: checking for --${enablestring:-enable}-tipdlg" >&5
  8058.           no_cache=0
  8059.           # Check whether --enable-tipdlg or --disable-tipdlg was given.
  8060. if test "${enable_tipdlg+set}" = set; then
  8061.   enableval="$enable_tipdlg"
  8062.   
  8063.                           if test "$enableval" = yes; then
  8064.                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
  8065.                           else
  8066.                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
  8067.                           fi
  8068.                         
  8069. else
  8070.   
  8071.                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
  8072.                           if test "x$LINE" != x ; then
  8073.                             eval "DEFAULT_$LINE"
  8074.                           else
  8075.                             no_cache=1
  8076.                           fi
  8077.  
  8078.                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
  8079.                         
  8080. fi
  8081.  
  8082.  
  8083.           eval "$ac_cv_use_tipdlg"
  8084.           if test "$no_cache" != 1; then
  8085.             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
  8086.           fi
  8087.  
  8088.           if test "$wxUSE_STARTUP_TIPS" = yes; then
  8089.             echo "$ac_t""yes" 1>&6
  8090.           else
  8091.             echo "$ac_t""no" 1>&6
  8092.           fi
  8093.         
  8094.  
  8095.       enablestring=
  8096.           echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
  8097. echo "configure:8098: checking for --${enablestring:-enable}-progressdlg" >&5
  8098.           no_cache=0
  8099.           # Check whether --enable-progressdlg or --disable-progressdlg was given.
  8100. if test "${enable_progressdlg+set}" = set; then
  8101.   enableval="$enable_progressdlg"
  8102.   
  8103.                           if test "$enableval" = yes; then
  8104.                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
  8105.                           else
  8106.                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
  8107.                           fi
  8108.                         
  8109. else
  8110.   
  8111.                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
  8112.                           if test "x$LINE" != x ; then
  8113.                             eval "DEFAULT_$LINE"
  8114.                           else
  8115.                             no_cache=1
  8116.                           fi
  8117.  
  8118.                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
  8119.                         
  8120. fi
  8121.  
  8122.  
  8123.           eval "$ac_cv_use_progressdlg"
  8124.           if test "$no_cache" != 1; then
  8125.             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
  8126.           fi
  8127.  
  8128.           if test "$wxUSE_PROGRESSDLG" = yes; then
  8129.             echo "$ac_t""yes" 1>&6
  8130.           else
  8131.             echo "$ac_t""no" 1>&6
  8132.           fi
  8133.         
  8134.  
  8135.       enablestring=
  8136.           echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
  8137. echo "configure:8138: checking for --${enablestring:-enable}-wizarddlg" >&5
  8138.           no_cache=0
  8139.           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
  8140. if test "${enable_wizarddlg+set}" = set; then
  8141.   enableval="$enable_wizarddlg"
  8142.   
  8143.                           if test "$enableval" = yes; then
  8144.                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
  8145.                           else
  8146.                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
  8147.                           fi
  8148.                         
  8149. else
  8150.   
  8151.                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
  8152.                           if test "x$LINE" != x ; then
  8153.                             eval "DEFAULT_$LINE"
  8154.                           else
  8155.                             no_cache=1
  8156.                           fi
  8157.  
  8158.                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
  8159.                         
  8160. fi
  8161.  
  8162.  
  8163.           eval "$ac_cv_use_wizarddlg"
  8164.           if test "$no_cache" != 1; then
  8165.             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
  8166.           fi
  8167.  
  8168.           if test "$wxUSE_WIZARDDLG" = yes; then
  8169.             echo "$ac_t""yes" 1>&6
  8170.           else
  8171.             echo "$ac_t""no" 1>&6
  8172.           fi
  8173.         
  8174.  
  8175.  
  8176.  
  8177.       enablestring=
  8178.           echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
  8179. echo "configure:8180: checking for --${enablestring:-enable}-menus" >&5
  8180.           no_cache=0
  8181.           # Check whether --enable-menus or --disable-menus was given.
  8182. if test "${enable_menus+set}" = set; then
  8183.   enableval="$enable_menus"
  8184.   
  8185.                           if test "$enableval" = yes; then
  8186.                             ac_cv_use_menus='wxUSE_MENUS=yes'
  8187.                           else
  8188.                             ac_cv_use_menus='wxUSE_MENUS=no'
  8189.                           fi
  8190.                         
  8191. else
  8192.   
  8193.                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
  8194.                           if test "x$LINE" != x ; then
  8195.                             eval "DEFAULT_$LINE"
  8196.                           else
  8197.                             no_cache=1
  8198.                           fi
  8199.  
  8200.                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
  8201.                         
  8202. fi
  8203.  
  8204.  
  8205.           eval "$ac_cv_use_menus"
  8206.           if test "$no_cache" != 1; then
  8207.             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
  8208.           fi
  8209.  
  8210.           if test "$wxUSE_MENUS" = yes; then
  8211.             echo "$ac_t""yes" 1>&6
  8212.           else
  8213.             echo "$ac_t""no" 1>&6
  8214.           fi
  8215.         
  8216.  
  8217.       enablestring=
  8218.           echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
  8219. echo "configure:8220: checking for --${enablestring:-enable}-miniframe" >&5
  8220.           no_cache=0
  8221.           # Check whether --enable-miniframe or --disable-miniframe was given.
  8222. if test "${enable_miniframe+set}" = set; then
  8223.   enableval="$enable_miniframe"
  8224.   
  8225.                           if test "$enableval" = yes; then
  8226.                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
  8227.                           else
  8228.                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
  8229.                           fi
  8230.                         
  8231. else
  8232.   
  8233.                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
  8234.                           if test "x$LINE" != x ; then
  8235.                             eval "DEFAULT_$LINE"
  8236.                           else
  8237.                             no_cache=1
  8238.                           fi
  8239.  
  8240.                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
  8241.                         
  8242. fi
  8243.  
  8244.  
  8245.           eval "$ac_cv_use_miniframe"
  8246.           if test "$no_cache" != 1; then
  8247.             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
  8248.           fi
  8249.  
  8250.           if test "$wxUSE_MINIFRAME" = yes; then
  8251.             echo "$ac_t""yes" 1>&6
  8252.           else
  8253.             echo "$ac_t""no" 1>&6
  8254.           fi
  8255.         
  8256.  
  8257.       enablestring=
  8258.           echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
  8259. echo "configure:8260: checking for --${enablestring:-enable}-tooltips" >&5
  8260.           no_cache=0
  8261.           # Check whether --enable-tooltips or --disable-tooltips was given.
  8262. if test "${enable_tooltips+set}" = set; then
  8263.   enableval="$enable_tooltips"
  8264.   
  8265.                           if test "$enableval" = yes; then
  8266.                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
  8267.                           else
  8268.                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
  8269.                           fi
  8270.                         
  8271. else
  8272.   
  8273.                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
  8274.                           if test "x$LINE" != x ; then
  8275.                             eval "DEFAULT_$LINE"
  8276.                           else
  8277.                             no_cache=1
  8278.                           fi
  8279.  
  8280.                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
  8281.                         
  8282. fi
  8283.  
  8284.  
  8285.           eval "$ac_cv_use_tooltips"
  8286.           if test "$no_cache" != 1; then
  8287.             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
  8288.           fi
  8289.  
  8290.           if test "$wxUSE_TOOLTIPS" = yes; then
  8291.             echo "$ac_t""yes" 1>&6
  8292.           else
  8293.             echo "$ac_t""no" 1>&6
  8294.           fi
  8295.         
  8296.  
  8297.       enablestring=
  8298.           echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
  8299. echo "configure:8300: checking for --${enablestring:-enable}-splines" >&5
  8300.           no_cache=0
  8301.           # Check whether --enable-splines or --disable-splines was given.
  8302. if test "${enable_splines+set}" = set; then
  8303.   enableval="$enable_splines"
  8304.   
  8305.                           if test "$enableval" = yes; then
  8306.                             ac_cv_use_splines='wxUSE_SPLINES=yes'
  8307.                           else
  8308.                             ac_cv_use_splines='wxUSE_SPLINES=no'
  8309.                           fi
  8310.                         
  8311. else
  8312.   
  8313.                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
  8314.                           if test "x$LINE" != x ; then
  8315.                             eval "DEFAULT_$LINE"
  8316.                           else
  8317.                             no_cache=1
  8318.                           fi
  8319.  
  8320.                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
  8321.                         
  8322. fi
  8323.  
  8324.  
  8325.           eval "$ac_cv_use_splines"
  8326.           if test "$no_cache" != 1; then
  8327.             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
  8328.           fi
  8329.  
  8330.           if test "$wxUSE_SPLINES" = yes; then
  8331.             echo "$ac_t""yes" 1>&6
  8332.           else
  8333.             echo "$ac_t""no" 1>&6
  8334.           fi
  8335.         
  8336.  
  8337.       enablestring=
  8338.           echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
  8339. echo "configure:8340: checking for --${enablestring:-enable}-validators" >&5
  8340.           no_cache=0
  8341.           # Check whether --enable-validators or --disable-validators was given.
  8342. if test "${enable_validators+set}" = set; then
  8343.   enableval="$enable_validators"
  8344.   
  8345.                           if test "$enableval" = yes; then
  8346.                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
  8347.                           else
  8348.                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
  8349.                           fi
  8350.                         
  8351. else
  8352.   
  8353.                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
  8354.                           if test "x$LINE" != x ; then
  8355.                             eval "DEFAULT_$LINE"
  8356.                           else
  8357.                             no_cache=1
  8358.                           fi
  8359.  
  8360.                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
  8361.                         
  8362. fi
  8363.  
  8364.  
  8365.           eval "$ac_cv_use_validators"
  8366.           if test "$no_cache" != 1; then
  8367.             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
  8368.           fi
  8369.  
  8370.           if test "$wxUSE_VALIDATORS" = yes; then
  8371.             echo "$ac_t""yes" 1>&6
  8372.           else
  8373.             echo "$ac_t""no" 1>&6
  8374.           fi
  8375.         
  8376.  
  8377.       enablestring=
  8378.           echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
  8379. echo "configure:8380: checking for --${enablestring:-enable}-busyinfo" >&5
  8380.           no_cache=0
  8381.           # Check whether --enable-busyinfo or --disable-busyinfo was given.
  8382. if test "${enable_busyinfo+set}" = set; then
  8383.   enableval="$enable_busyinfo"
  8384.   
  8385.                           if test "$enableval" = yes; then
  8386.                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
  8387.                           else
  8388.                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
  8389.                           fi
  8390.                         
  8391. else
  8392.   
  8393.                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
  8394.                           if test "x$LINE" != x ; then
  8395.                             eval "DEFAULT_$LINE"
  8396.                           else
  8397.                             no_cache=1
  8398.                           fi
  8399.  
  8400.                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
  8401.                         
  8402. fi
  8403.  
  8404.  
  8405.           eval "$ac_cv_use_busyinfo"
  8406.           if test "$no_cache" != 1; then
  8407.             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
  8408.           fi
  8409.  
  8410.           if test "$wxUSE_BUSYINFO" = yes; then
  8411.             echo "$ac_t""yes" 1>&6
  8412.           else
  8413.             echo "$ac_t""no" 1>&6
  8414.           fi
  8415.         
  8416.  
  8417.       enablestring=
  8418.           echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
  8419. echo "configure:8420: checking for --${enablestring:-enable}-joystick" >&5
  8420.           no_cache=0
  8421.           # Check whether --enable-joystick or --disable-joystick was given.
  8422. if test "${enable_joystick+set}" = set; then
  8423.   enableval="$enable_joystick"
  8424.   
  8425.                           if test "$enableval" = yes; then
  8426.                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
  8427.                           else
  8428.                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
  8429.                           fi
  8430.                         
  8431. else
  8432.   
  8433.                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
  8434.                           if test "x$LINE" != x ; then
  8435.                             eval "DEFAULT_$LINE"
  8436.                           else
  8437.                             no_cache=1
  8438.                           fi
  8439.  
  8440.                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
  8441.                         
  8442. fi
  8443.  
  8444.  
  8445.           eval "$ac_cv_use_joystick"
  8446.           if test "$no_cache" != 1; then
  8447.             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
  8448.           fi
  8449.  
  8450.           if test "$wxUSE_JOYSTICK" = yes; then
  8451.             echo "$ac_t""yes" 1>&6
  8452.           else
  8453.             echo "$ac_t""no" 1>&6
  8454.           fi
  8455.         
  8456.  
  8457.       enablestring=
  8458.           echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
  8459. echo "configure:8460: checking for --${enablestring:-enable}-metafile" >&5
  8460.           no_cache=0
  8461.           # Check whether --enable-metafile or --disable-metafile was given.
  8462. if test "${enable_metafile+set}" = set; then
  8463.   enableval="$enable_metafile"
  8464.   
  8465.                           if test "$enableval" = yes; then
  8466.                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
  8467.                           else
  8468.                             ac_cv_use_metafile='wxUSE_METAFILE=no'
  8469.                           fi
  8470.                         
  8471. else
  8472.   
  8473.                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
  8474.                           if test "x$LINE" != x ; then
  8475.                             eval "DEFAULT_$LINE"
  8476.                           else
  8477.                             no_cache=1
  8478.                           fi
  8479.  
  8480.                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
  8481.                         
  8482. fi
  8483.  
  8484.  
  8485.           eval "$ac_cv_use_metafile"
  8486.           if test "$no_cache" != 1; then
  8487.             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
  8488.           fi
  8489.  
  8490.           if test "$wxUSE_METAFILE" = yes; then
  8491.             echo "$ac_t""yes" 1>&6
  8492.           else
  8493.             echo "$ac_t""no" 1>&6
  8494.           fi
  8495.         
  8496.  
  8497.       enablestring=
  8498.           echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
  8499. echo "configure:8500: checking for --${enablestring:-enable}-dragimage" >&5
  8500.           no_cache=0
  8501.           # Check whether --enable-dragimage or --disable-dragimage was given.
  8502. if test "${enable_dragimage+set}" = set; then
  8503.   enableval="$enable_dragimage"
  8504.   
  8505.                           if test "$enableval" = yes; then
  8506.                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
  8507.                           else
  8508.                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
  8509.                           fi
  8510.                         
  8511. else
  8512.   
  8513.                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
  8514.                           if test "x$LINE" != x ; then
  8515.                             eval "DEFAULT_$LINE"
  8516.                           else
  8517.                             no_cache=1
  8518.                           fi
  8519.  
  8520.                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
  8521.                         
  8522. fi
  8523.  
  8524.  
  8525.           eval "$ac_cv_use_dragimage"
  8526.           if test "$no_cache" != 1; then
  8527.             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
  8528.           fi
  8529.  
  8530.           if test "$wxUSE_DRAGIMAGE" = yes; then
  8531.             echo "$ac_t""yes" 1>&6
  8532.           else
  8533.             echo "$ac_t""no" 1>&6
  8534.           fi
  8535.         
  8536.  
  8537.  
  8538.  
  8539.       enablestring=
  8540.           echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
  8541. echo "configure:8542: checking for --${enablestring:-enable}-palette" >&5
  8542.           no_cache=0
  8543.           # Check whether --enable-palette or --disable-palette was given.
  8544. if test "${enable_palette+set}" = set; then
  8545.   enableval="$enable_palette"
  8546.   
  8547.                           if test "$enableval" = yes; then
  8548.                             ac_cv_use_palette='wxUSE_PALETTE=yes'
  8549.                           else
  8550.                             ac_cv_use_palette='wxUSE_PALETTE=no'
  8551.                           fi
  8552.                         
  8553. else
  8554.   
  8555.                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
  8556.                           if test "x$LINE" != x ; then
  8557.                             eval "DEFAULT_$LINE"
  8558.                           else
  8559.                             no_cache=1
  8560.                           fi
  8561.  
  8562.                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
  8563.                         
  8564. fi
  8565.  
  8566.  
  8567.           eval "$ac_cv_use_palette"
  8568.           if test "$no_cache" != 1; then
  8569.             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
  8570.           fi
  8571.  
  8572.           if test "$wxUSE_PALETTE" = yes; then
  8573.             echo "$ac_t""yes" 1>&6
  8574.           else
  8575.             echo "$ac_t""no" 1>&6
  8576.           fi
  8577.         
  8578.  
  8579.       enablestring=
  8580.           echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
  8581. echo "configure:8582: checking for --${enablestring:-enable}-image" >&5
  8582.           no_cache=0
  8583.           # Check whether --enable-image or --disable-image was given.
  8584. if test "${enable_image+set}" = set; then
  8585.   enableval="$enable_image"
  8586.   
  8587.                           if test "$enableval" = yes; then
  8588.                             ac_cv_use_image='wxUSE_IMAGE=yes'
  8589.                           else
  8590.                             ac_cv_use_image='wxUSE_IMAGE=no'
  8591.                           fi
  8592.                         
  8593. else
  8594.   
  8595.                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
  8596.                           if test "x$LINE" != x ; then
  8597.                             eval "DEFAULT_$LINE"
  8598.                           else
  8599.                             no_cache=1
  8600.                           fi
  8601.  
  8602.                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
  8603.                         
  8604. fi
  8605.  
  8606.  
  8607.           eval "$ac_cv_use_image"
  8608.           if test "$no_cache" != 1; then
  8609.             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
  8610.           fi
  8611.  
  8612.           if test "$wxUSE_IMAGE" = yes; then
  8613.             echo "$ac_t""yes" 1>&6
  8614.           else
  8615.             echo "$ac_t""no" 1>&6
  8616.           fi
  8617.         
  8618.  
  8619.       enablestring=
  8620.           echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
  8621. echo "configure:8622: checking for --${enablestring:-enable}-gif" >&5
  8622.           no_cache=0
  8623.           # Check whether --enable-gif or --disable-gif was given.
  8624. if test "${enable_gif+set}" = set; then
  8625.   enableval="$enable_gif"
  8626.   
  8627.                           if test "$enableval" = yes; then
  8628.                             ac_cv_use_gif='wxUSE_GIF=yes'
  8629.                           else
  8630.                             ac_cv_use_gif='wxUSE_GIF=no'
  8631.                           fi
  8632.                         
  8633. else
  8634.   
  8635.                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
  8636.                           if test "x$LINE" != x ; then
  8637.                             eval "DEFAULT_$LINE"
  8638.                           else
  8639.                             no_cache=1
  8640.                           fi
  8641.  
  8642.                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
  8643.                         
  8644. fi
  8645.  
  8646.  
  8647.           eval "$ac_cv_use_gif"
  8648.           if test "$no_cache" != 1; then
  8649.             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
  8650.           fi
  8651.  
  8652.           if test "$wxUSE_GIF" = yes; then
  8653.             echo "$ac_t""yes" 1>&6
  8654.           else
  8655.             echo "$ac_t""no" 1>&6
  8656.           fi
  8657.         
  8658.  
  8659.       enablestring=
  8660.           echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
  8661. echo "configure:8662: checking for --${enablestring:-enable}-pcx" >&5
  8662.           no_cache=0
  8663.           # Check whether --enable-pcx or --disable-pcx was given.
  8664. if test "${enable_pcx+set}" = set; then
  8665.   enableval="$enable_pcx"
  8666.   
  8667.                           if test "$enableval" = yes; then
  8668.                             ac_cv_use_pcx='wxUSE_PCX=yes'
  8669.                           else
  8670.                             ac_cv_use_pcx='wxUSE_PCX=no'
  8671.                           fi
  8672.                         
  8673. else
  8674.   
  8675.                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
  8676.                           if test "x$LINE" != x ; then
  8677.                             eval "DEFAULT_$LINE"
  8678.                           else
  8679.                             no_cache=1
  8680.                           fi
  8681.  
  8682.                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
  8683.                         
  8684. fi
  8685.  
  8686.  
  8687.           eval "$ac_cv_use_pcx"
  8688.           if test "$no_cache" != 1; then
  8689.             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
  8690.           fi
  8691.  
  8692.           if test "$wxUSE_PCX" = yes; then
  8693.             echo "$ac_t""yes" 1>&6
  8694.           else
  8695.             echo "$ac_t""no" 1>&6
  8696.           fi
  8697.         
  8698.  
  8699.       enablestring=
  8700.           echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
  8701. echo "configure:8702: checking for --${enablestring:-enable}-iff" >&5
  8702.           no_cache=0
  8703.           # Check whether --enable-iff or --disable-iff was given.
  8704. if test "${enable_iff+set}" = set; then
  8705.   enableval="$enable_iff"
  8706.   
  8707.                           if test "$enableval" = yes; then
  8708.                             ac_cv_use_iff='wxUSE_IFF=yes'
  8709.                           else
  8710.                             ac_cv_use_iff='wxUSE_IFF=no'
  8711.                           fi
  8712.                         
  8713. else
  8714.   
  8715.                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
  8716.                           if test "x$LINE" != x ; then
  8717.                             eval "DEFAULT_$LINE"
  8718.                           else
  8719.                             no_cache=1
  8720.                           fi
  8721.  
  8722.                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
  8723.                         
  8724. fi
  8725.  
  8726.  
  8727.           eval "$ac_cv_use_iff"
  8728.           if test "$no_cache" != 1; then
  8729.             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
  8730.           fi
  8731.  
  8732.           if test "$wxUSE_IFF" = yes; then
  8733.             echo "$ac_t""yes" 1>&6
  8734.           else
  8735.             echo "$ac_t""no" 1>&6
  8736.           fi
  8737.         
  8738.  
  8739.       enablestring=
  8740.           echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
  8741. echo "configure:8742: checking for --${enablestring:-enable}-pnm" >&5
  8742.           no_cache=0
  8743.           # Check whether --enable-pnm or --disable-pnm was given.
  8744. if test "${enable_pnm+set}" = set; then
  8745.   enableval="$enable_pnm"
  8746.   
  8747.                           if test "$enableval" = yes; then
  8748.                             ac_cv_use_pnm='wxUSE_PNM=yes'
  8749.                           else
  8750.                             ac_cv_use_pnm='wxUSE_PNM=no'
  8751.                           fi
  8752.                         
  8753. else
  8754.   
  8755.                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
  8756.                           if test "x$LINE" != x ; then
  8757.                             eval "DEFAULT_$LINE"
  8758.                           else
  8759.                             no_cache=1
  8760.                           fi
  8761.  
  8762.                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
  8763.                         
  8764. fi
  8765.  
  8766.  
  8767.           eval "$ac_cv_use_pnm"
  8768.           if test "$no_cache" != 1; then
  8769.             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
  8770.           fi
  8771.  
  8772.           if test "$wxUSE_PNM" = yes; then
  8773.             echo "$ac_t""yes" 1>&6
  8774.           else
  8775.             echo "$ac_t""no" 1>&6
  8776.           fi
  8777.         
  8778.  
  8779.       enablestring=
  8780.           echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
  8781. echo "configure:8782: checking for --${enablestring:-enable}-xpm" >&5
  8782.           no_cache=0
  8783.           # Check whether --enable-xpm or --disable-xpm was given.
  8784. if test "${enable_xpm+set}" = set; then
  8785.   enableval="$enable_xpm"
  8786.   
  8787.                           if test "$enableval" = yes; then
  8788.                             ac_cv_use_xpm='wxUSE_XPM=yes'
  8789.                           else
  8790.                             ac_cv_use_xpm='wxUSE_XPM=no'
  8791.                           fi
  8792.                         
  8793. else
  8794.   
  8795.                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
  8796.                           if test "x$LINE" != x ; then
  8797.                             eval "DEFAULT_$LINE"
  8798.                           else
  8799.                             no_cache=1
  8800.                           fi
  8801.  
  8802.                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
  8803.                         
  8804. fi
  8805.  
  8806.  
  8807.           eval "$ac_cv_use_xpm"
  8808.           if test "$no_cache" != 1; then
  8809.             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
  8810.           fi
  8811.  
  8812.           if test "$wxUSE_XPM" = yes; then
  8813.             echo "$ac_t""yes" 1>&6
  8814.           else
  8815.             echo "$ac_t""no" 1>&6
  8816.           fi
  8817.         
  8818.  
  8819.       enablestring=
  8820.           echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
  8821. echo "configure:8822: checking for --${enablestring:-enable}-ico_cur" >&5
  8822.           no_cache=0
  8823.           # Check whether --enable-ico_cur or --disable-ico_cur was given.
  8824. if test "${enable_ico_cur+set}" = set; then
  8825.   enableval="$enable_ico_cur"
  8826.   
  8827.                           if test "$enableval" = yes; then
  8828.                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
  8829.                           else
  8830.                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
  8831.                           fi
  8832.                         
  8833. else
  8834.   
  8835.                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
  8836.                           if test "x$LINE" != x ; then
  8837.                             eval "DEFAULT_$LINE"
  8838.                           else
  8839.                             no_cache=1
  8840.                           fi
  8841.  
  8842.                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
  8843.                         
  8844. fi
  8845.  
  8846.  
  8847.           eval "$ac_cv_use_ico_cur"
  8848.           if test "$no_cache" != 1; then
  8849.             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
  8850.           fi
  8851.  
  8852.           if test "$wxUSE_ICO_CUR" = yes; then
  8853.             echo "$ac_t""yes" 1>&6
  8854.           else
  8855.             echo "$ac_t""no" 1>&6
  8856.           fi
  8857.         
  8858.  
  8859. fi
  8860.  
  8861. case "${host}" in
  8862.   *-pc-os2_emx | *-pc-os2-emx )
  8863.     PATH_IFS=';'
  8864.     LEX_STEM="lexyy"
  8865.   ;;
  8866.   *)
  8867.     PATH_IFS=':'
  8868.     LEX_STEM="lex.yy"
  8869.   ;;
  8870. esac
  8871.  
  8872.  
  8873.  
  8874.           echo "saving argument cache $wx_arg_cache_file"
  8875.           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
  8876.         
  8877.  
  8878.  
  8879. echo $ac_n "checking for toolkit""... $ac_c" 1>&6
  8880. echo "configure:8881: checking for toolkit" >&5
  8881.  
  8882. if test "$wxUSE_GUI" = "yes"; then
  8883.  
  8884.     if test "$USE_BEOS" = 1; then
  8885.         { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
  8886.     fi
  8887.  
  8888.     if test "$TOOLKIT_GIVEN" = 1; then
  8889.             for toolkit in `echo $ALL_TOOLKITS`; do
  8890.         var=wxUSE_$toolkit
  8891.         eval "value=\$${var}"
  8892.         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
  8893.       done
  8894.     else
  8895.             for toolkit in `echo $ALL_TOOLKITS`; do
  8896.         if test "$has_toolkit_in_cache" != 1; then
  8897.           var=DEFAULT_DEFAULT_wxUSE_$toolkit
  8898.         else
  8899.           var=DEFAULT_wxUSE_$toolkit
  8900.         fi
  8901.         eval "wxUSE_$toolkit=\$${var}"
  8902.       done
  8903.     fi
  8904.  
  8905.             NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0}  \
  8906.                   + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
  8907.  
  8908.         case "${host}" in
  8909.       *-pc-os2_emx | *-pc-os2-emx )
  8910.         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
  8911.     esac
  8912.  
  8913.     case "$NUM_TOOLKITS" in
  8914.       1)
  8915.       ;;
  8916.       0)
  8917.         { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
  8918.       ;;
  8919.       *)
  8920.         { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
  8921.     esac
  8922.  
  8923.         for toolkit in `echo $ALL_TOOLKITS`; do
  8924.       var=wxUSE_$toolkit
  8925.       eval "value=\$${var}"
  8926.       if test "x$value" != x; then
  8927.         cache_var=CACHE_$toolkit
  8928.         eval "cache=\$${cache_var}"
  8929.         if test "$cache" = 1; then
  8930.           echo "$var=$value" >> ${wx_arg_cache_file}
  8931.         fi
  8932.         if test "$value" = 1; then
  8933.           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
  8934.           echo "$ac_t""$toolkit_echo" 1>&6
  8935.         fi
  8936.       fi
  8937.     done
  8938. else
  8939.     echo "$ac_t""base ($host_alias hosted) only" 1>&6
  8940. fi
  8941.  
  8942. wants_win32=0
  8943. doesnt_want_win32=0
  8944. case "${host}" in
  8945.   *-*-cygwin*)
  8946.       if test "$wxUSE_MSW" = 1 ; then
  8947.         wants_win32=1
  8948.       else
  8949.         doesnt_want_win32=1
  8950.       fi
  8951.   ;;
  8952.   *-*-mingw*)
  8953.       wants_win32=1
  8954.   ;;
  8955. esac
  8956.  
  8957. if test "$wants_win32" = 1 ; then
  8958.     USE_UNIX=0
  8959.     USE_WIN32=1
  8960.     cat >> confdefs.h <<\EOF
  8961. #define __WIN32__ 1
  8962. EOF
  8963.  
  8964.     cat >> confdefs.h <<\EOF
  8965. #define __WIN95__ 1
  8966. EOF
  8967.  
  8968.     cat >> confdefs.h <<\EOF
  8969. #define __WINDOWS__ 1
  8970. EOF
  8971.  
  8972.     cat >> confdefs.h <<\EOF
  8973. #define __GNUWIN32__ 1
  8974. EOF
  8975.  
  8976.     cat >> confdefs.h <<\EOF
  8977. #define STRICT 1
  8978. EOF
  8979.  
  8980.     cat >> confdefs.h <<\EOF
  8981. #define WINVER 0x0400
  8982. EOF
  8983.  
  8984. fi
  8985. if test "$doesnt_want_win32" = 1 ; then
  8986.     USE_UNIX=1
  8987.     USE_WIN32=0
  8988. fi
  8989.  
  8990. if test "$USE_UNIX" = 1 ; then
  8991.     wxUSE_UNIX=yes
  8992.     cat >> confdefs.h <<\EOF
  8993. #define __UNIX__ 1
  8994. EOF
  8995.  
  8996. fi
  8997.  
  8998.  
  8999. cat > confcache <<\EOF
  9000. # This file is a shell script that caches the results of configure
  9001. # tests run on this system so they can be shared between configure
  9002. # scripts and configure runs.  It is not useful on other systems.
  9003. # If it contains results you don't want to keep, you may remove or edit it.
  9004. #
  9005. # By default, configure uses ./config.cache as the cache file,
  9006. # creating it if it does not exist already.  You can give configure
  9007. # the --cache-file=FILE option to use a different cache file; that is
  9008. # what configure does when it calls configure scripts in
  9009. # subdirectories, so they share the cache.
  9010. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  9011. # config.status only pays attention to the cache file if you give it the
  9012. # --recheck option to rerun configure.
  9013. #
  9014. EOF
  9015. # The following way of writing the cache mishandles newlines in values,
  9016. # but we know of no workaround that is simple, portable, and efficient.
  9017. # So, don't put newlines in cache variables' values.
  9018. # Ultrix sh set writes to stderr and can't be redirected directly,
  9019. # and sets the high bit in the cache file unless we assign to the vars.
  9020. (set) 2>&1 |
  9021.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9022.   *ac_space=\ *)
  9023.     # `set' does not quote correctly, so add quotes (double-quote substitution
  9024.     # turns \\\\ into \\, and sed turns \\ into \).
  9025.     sed -n \
  9026.       -e "s/'/'\\\\''/g" \
  9027.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  9028.     ;;
  9029.   *)
  9030.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  9031.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  9032.     ;;
  9033.   esac >> confcache
  9034. if cmp -s $cache_file confcache; then
  9035.   :
  9036. else
  9037.   if test -w $cache_file; then
  9038.     echo "updating cache $cache_file"
  9039.     cat confcache > $cache_file
  9040.   else
  9041.     echo "not updating unwritable cache $cache_file"
  9042.   fi
  9043. fi
  9044. rm -f confcache
  9045.  
  9046.  
  9047. if test "$build" != "$host" ; then
  9048.     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
  9049.         CC=$host_alias-gcc
  9050.         CXX=$host_alias-c++
  9051.         AR=$host_alias-ar
  9052.         RANLIB=$host_alias-ranlib
  9053.         DLLTOOL=$host_alias-dlltool
  9054.         RESCOMP=$host_alias-windres
  9055.         LD=$host_alias-ld
  9056.         NM=$host_alias-nm
  9057.         STRIP=$host_alias-strip
  9058.     else
  9059.         { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
  9060.     fi
  9061. fi
  9062.  
  9063. CFLAGS=${CFLAGS:=}
  9064. # Extract the first word of "gcc", so it can be a program name with args.
  9065. set dummy gcc; ac_word=$2
  9066. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9067. echo "configure:9068: checking for $ac_word" >&5
  9068. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  9069.   echo $ac_n "(cached) $ac_c" 1>&6
  9070. else
  9071.   if test -n "$CC"; then
  9072.   ac_cv_prog_CC="$CC" # Let the user override the test.
  9073. else
  9074.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  9075.   ac_dummy="$PATH"
  9076.   for ac_dir in $ac_dummy; do
  9077.     test -z "$ac_dir" && ac_dir=.
  9078.     if test -f $ac_dir/$ac_word -o \
  9079.             -f $ac_dir/$ac_word$ac_exeext ; then
  9080.       ac_cv_prog_CC="gcc"
  9081.       break
  9082.     fi
  9083.   done
  9084.   IFS="$ac_save_ifs"
  9085. fi
  9086. fi
  9087. CC="$ac_cv_prog_CC"
  9088. if test -n "$CC"; then
  9089.   echo "$ac_t""$CC" 1>&6
  9090. else
  9091.   echo "$ac_t""no" 1>&6
  9092. fi
  9093.  
  9094. if test -z "$CC"; then
  9095.   # Extract the first word of "cc", so it can be a program name with args.
  9096. set dummy cc; ac_word=$2
  9097. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9098. echo "configure:9099: checking for $ac_word" >&5
  9099. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  9100.   echo $ac_n "(cached) $ac_c" 1>&6
  9101. else
  9102.   if test -n "$CC"; then
  9103.   ac_cv_prog_CC="$CC" # Let the user override the test.
  9104. else
  9105.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  9106.   ac_prog_rejected=no
  9107.   ac_dummy="$PATH"
  9108.   for ac_dir in $ac_dummy; do
  9109.     test -z "$ac_dir" && ac_dir=.
  9110.     if test -f $ac_dir/$ac_word -o \
  9111.             -f $ac_dir/$ac_word$ac_exeext ; then
  9112.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
  9113.                "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
  9114.         ac_prog_rejected=yes
  9115.     continue
  9116.       fi
  9117.       ac_cv_prog_CC="cc"
  9118.       break
  9119.     fi
  9120.   done
  9121.   IFS="$ac_save_ifs"
  9122. if test $ac_prog_rejected = yes; then
  9123.   # We found a bogon in the path, so make sure we never use it.
  9124.   set dummy $ac_cv_prog_CC
  9125.   shift
  9126.   if test $# -gt 0; then
  9127.     # We chose a different compiler from the bogus one.
  9128.     # However, it has the same basename, so the bogon will be chosen
  9129.     # first if we set CC to just the basename; use the full file name.
  9130.     shift
  9131.     set dummy "$ac_dir/$ac_word" "$@"
  9132.     shift
  9133.     ac_cv_prog_CC="$@"
  9134.   fi
  9135. fi
  9136. fi
  9137. fi
  9138. CC="$ac_cv_prog_CC"
  9139. if test -n "$CC"; then
  9140.   echo "$ac_t""$CC" 1>&6
  9141. else
  9142.   echo "$ac_t""no" 1>&6
  9143. fi
  9144.  
  9145.   if test -z "$CC"; then
  9146.     case "`uname -s`" in
  9147.     *win32* | *WIN32*)
  9148.       # Extract the first word of "cl", so it can be a program name with args.
  9149. set dummy cl; ac_word=$2
  9150. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9151. echo "configure:9152: checking for $ac_word" >&5
  9152. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  9153.   echo $ac_n "(cached) $ac_c" 1>&6
  9154. else
  9155.   if test -n "$CC"; then
  9156.   ac_cv_prog_CC="$CC" # Let the user override the test.
  9157. else
  9158.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  9159.   ac_dummy="$PATH"
  9160.   for ac_dir in $ac_dummy; do
  9161.     test -z "$ac_dir" && ac_dir=.
  9162.     if test -f $ac_dir/$ac_word -o \
  9163.             -f $ac_dir/$ac_word$ac_exeext ; then
  9164.       ac_cv_prog_CC="cl"
  9165.       break
  9166.     fi
  9167.   done
  9168.   IFS="$ac_save_ifs"
  9169. fi
  9170. fi
  9171. CC="$ac_cv_prog_CC"
  9172. if test -n "$CC"; then
  9173.   echo "$ac_t""$CC" 1>&6
  9174. else
  9175.   echo "$ac_t""no" 1>&6
  9176. fi
  9177.  ;;
  9178.     esac
  9179.   fi
  9180.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  9181. fi
  9182.  
  9183. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  9184. echo "configure:9185: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  9185.  
  9186. ac_ext=c
  9187. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9188. ac_cpp='$CPP $CPPFLAGS'
  9189. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9190. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9191. cross_compiling=$ac_cv_prog_cc_cross
  9192.  
  9193. cat > conftest.$ac_ext << EOF
  9194.  
  9195. #line 9196 "configure"
  9196. #include "confdefs.h"
  9197.  
  9198. main(){return(0);}
  9199. EOF
  9200. if { (eval echo configure:9201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9201.   ac_cv_prog_cc_works=yes
  9202.   # If we can't run a trivial program, we are probably using a cross compiler.
  9203.   if (./conftest; exit) 2>/dev/null; then
  9204.     ac_cv_prog_cc_cross=no
  9205.   else
  9206.     ac_cv_prog_cc_cross=yes
  9207.   fi
  9208. else
  9209.   echo "configure: failed program was:" >&5
  9210.   cat conftest.$ac_ext >&5
  9211.   ac_cv_prog_cc_works=no
  9212. fi
  9213. rm -fr conftest*
  9214. ac_ext=c
  9215. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9216. ac_cpp='$CPP $CPPFLAGS'
  9217. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9218. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9219. cross_compiling=$ac_cv_prog_cc_cross
  9220.  
  9221. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  9222. if test $ac_cv_prog_cc_works = no; then
  9223.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  9224. fi
  9225. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  9226. echo "configure:9227: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  9227. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  9228. cross_compiling=$ac_cv_prog_cc_cross
  9229.  
  9230. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  9231. echo "configure:9232: checking whether we are using GNU C" >&5
  9232. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  9233.   echo $ac_n "(cached) $ac_c" 1>&6
  9234. else
  9235.   cat > conftest.c <<EOF
  9236. #ifdef __GNUC__
  9237.   yes;
  9238. #endif
  9239. EOF
  9240. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  9241.   ac_cv_prog_gcc=yes
  9242. else
  9243.   ac_cv_prog_gcc=no
  9244. fi
  9245. fi
  9246.  
  9247. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  9248.  
  9249. if test $ac_cv_prog_gcc = yes; then
  9250.   GCC=yes
  9251. else
  9252.   GCC=
  9253. fi
  9254.  
  9255. ac_test_CFLAGS="${CFLAGS+set}"
  9256. ac_save_CFLAGS="$CFLAGS"
  9257. CFLAGS=
  9258. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  9259. echo "configure:9260: checking whether ${CC-cc} accepts -g" >&5
  9260. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  9261.   echo $ac_n "(cached) $ac_c" 1>&6
  9262. else
  9263.   echo 'void f(){}' > conftest.c
  9264. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  9265.   ac_cv_prog_cc_g=yes
  9266. else
  9267.   ac_cv_prog_cc_g=no
  9268. fi
  9269. rm -f conftest*
  9270.  
  9271. fi
  9272.  
  9273. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  9274. if test "$ac_test_CFLAGS" = set; then
  9275.   CFLAGS="$ac_save_CFLAGS"
  9276. elif test $ac_cv_prog_cc_g = yes; then
  9277.   if test "$GCC" = yes; then
  9278.     CFLAGS="-g -O2"
  9279.   else
  9280.     CFLAGS="-g"
  9281.   fi
  9282. else
  9283.   if test "$GCC" = yes; then
  9284.     CFLAGS="-O2"
  9285.   else
  9286.     CFLAGS=
  9287.   fi
  9288. fi
  9289.  
  9290.  
  9291. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  9292. echo "configure:9293: checking how to run the C preprocessor" >&5
  9293. # On Suns, sometimes $CPP names a directory.
  9294. if test -n "$CPP" && test -d "$CPP"; then
  9295.   CPP=
  9296. fi
  9297. if test -z "$CPP"; then
  9298. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  9299.   echo $ac_n "(cached) $ac_c" 1>&6
  9300. else
  9301.     # This must be in double quotes, not single quotes, because CPP may get
  9302.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  9303.   CPP="${CC-cc} -E"
  9304.   # On the NeXT, cc -E runs the code through the compiler's parser,
  9305.   # not just through cpp.
  9306.   cat > conftest.$ac_ext <<EOF
  9307. #include <sys/types.h>
  9308. #line 9309 "configure"
  9309. #include "confdefs.h"
  9310. #include <assert.h>
  9311. Syntax Error
  9312. EOF
  9313. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9314. { (eval echo configure:9315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9315. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9316. if test -z "$ac_err"; then
  9317.   :
  9318. else
  9319.   echo "$ac_err" >&5
  9320.   echo "configure: failed program was:" >&5
  9321.   cat conftest.$ac_ext >&5
  9322.   rm -rf conftest*
  9323.   CPP="${CC-cc} -E -traditional-cpp"
  9324.   cat > conftest.$ac_ext <<EOF
  9325. #include <sys/types.h>
  9326. #line 9327 "configure"
  9327. #include "confdefs.h"
  9328. #include <assert.h>
  9329. Syntax Error
  9330. EOF
  9331. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9332. { (eval echo configure:9333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9333. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9334. if test -z "$ac_err"; then
  9335.   :
  9336. else
  9337.   echo "$ac_err" >&5
  9338.   echo "configure: failed program was:" >&5
  9339.   cat conftest.$ac_ext >&5
  9340.   rm -rf conftest*
  9341.   CPP="${CC-cc} -nologo -E"
  9342.   cat > conftest.$ac_ext <<EOF
  9343. #include <sys/types.h>
  9344. #line 9345 "configure"
  9345. #include "confdefs.h"
  9346. #include <assert.h>
  9347. Syntax Error
  9348. EOF
  9349. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9350. { (eval echo configure:9351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9351. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9352. if test -z "$ac_err"; then
  9353.   :
  9354. else
  9355.   echo "$ac_err" >&5
  9356.   echo "configure: failed program was:" >&5
  9357.   cat conftest.$ac_ext >&5
  9358.   rm -rf conftest*
  9359.   CPP=/lib/cpp
  9360. fi
  9361. rm -f conftest*
  9362. fi
  9363. rm -f conftest*
  9364. fi
  9365. rm -f conftest*
  9366.   ac_cv_prog_CPP="$CPP"
  9367. fi
  9368.   CPP="$ac_cv_prog_CPP"
  9369. else
  9370.   ac_cv_prog_CPP="$CPP"
  9371. fi
  9372. echo "$ac_t""$CPP" 1>&6
  9373.  
  9374. if test $ac_cv_prog_gcc = yes; then
  9375.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  9376. echo "configure:9377: checking whether ${CC-cc} needs -traditional" >&5
  9377. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  9378.   echo $ac_n "(cached) $ac_c" 1>&6
  9379. else
  9380.     ac_pattern="Autoconf.*'x'"
  9381.   cat > conftest.$ac_ext <<EOF
  9382. #line 9383 "configure"
  9383. #include "confdefs.h"
  9384. #include <sgtty.h>
  9385. Autoconf TIOCGETP
  9386. EOF
  9387. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9388.   egrep "$ac_pattern" >/dev/null 2>&1; then
  9389.   rm -rf conftest*
  9390.   ac_cv_prog_gcc_traditional=yes
  9391. else
  9392.   rm -rf conftest*
  9393.   ac_cv_prog_gcc_traditional=no
  9394. fi
  9395. rm -f conftest*
  9396.  
  9397.  
  9398.   if test $ac_cv_prog_gcc_traditional = no; then
  9399.     cat > conftest.$ac_ext <<EOF
  9400. #line 9401 "configure"
  9401. #include "confdefs.h"
  9402. #include <termio.h>
  9403. Autoconf TCGETA
  9404. EOF
  9405. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9406.   egrep "$ac_pattern" >/dev/null 2>&1; then
  9407.   rm -rf conftest*
  9408.   ac_cv_prog_gcc_traditional=yes
  9409. fi
  9410. rm -f conftest*
  9411.  
  9412.   fi
  9413. fi
  9414.  
  9415. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  9416.   if test $ac_cv_prog_gcc_traditional = yes; then
  9417.     CC="$CC -traditional"
  9418.   fi
  9419. fi
  9420.  
  9421.  
  9422.  
  9423. ac_ext=C
  9424. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9425. ac_cpp='$CXXCPP $CPPFLAGS'
  9426. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9427. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9428. cross_compiling=$ac_cv_prog_cxx_cross
  9429.  
  9430.  
  9431. CXXFLAGS=${CXXFLAGS:=}
  9432. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  9433. do
  9434. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9435. set dummy $ac_prog; ac_word=$2
  9436. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9437. echo "configure:9438: checking for $ac_word" >&5
  9438. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  9439.   echo $ac_n "(cached) $ac_c" 1>&6
  9440. else
  9441.   if test -n "$CXX"; then
  9442.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9443. else
  9444.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  9445.   ac_dummy="$PATH"
  9446.   for ac_dir in $ac_dummy; do
  9447.     test -z "$ac_dir" && ac_dir=.
  9448.     if test -f $ac_dir/$ac_word -o \
  9449.             -f $ac_dir/$ac_word$ac_exeext ; then
  9450.       ac_cv_prog_CXX="$ac_prog"
  9451.       break
  9452.     fi
  9453.   done
  9454.   IFS="$ac_save_ifs"
  9455. fi
  9456. fi
  9457. CXX="$ac_cv_prog_CXX"
  9458. if test -n "$CXX"; then
  9459.   echo "$ac_t""$CXX" 1>&6
  9460. else
  9461.   echo "$ac_t""no" 1>&6
  9462. fi
  9463.  
  9464. test -n "$CXX" && break
  9465. done
  9466. test -n "$CXX" || CXX="gcc"
  9467.  
  9468.  
  9469. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  9470. echo "configure:9471: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  9471.  
  9472. ac_ext=C
  9473. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9474. ac_cpp='$CXXCPP $CPPFLAGS'
  9475. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9476. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9477. cross_compiling=$ac_cv_prog_cxx_cross
  9478.  
  9479. cat > conftest.$ac_ext << EOF
  9480.  
  9481. #line 9482 "configure"
  9482. #include "confdefs.h"
  9483.  
  9484. int main(){return(0);}
  9485. EOF
  9486. if { (eval echo configure:9487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9487.   ac_cv_prog_cxx_works=yes
  9488.   # If we can't run a trivial program, we are probably using a cross compiler.
  9489.   if (./conftest; exit) 2>/dev/null; then
  9490.     ac_cv_prog_cxx_cross=no
  9491.   else
  9492.     ac_cv_prog_cxx_cross=yes
  9493.   fi
  9494. else
  9495.   echo "configure: failed program was:" >&5
  9496.   cat conftest.$ac_ext >&5
  9497.   ac_cv_prog_cxx_works=no
  9498. fi
  9499. rm -fr conftest*
  9500. ac_ext=C
  9501. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9502. ac_cpp='$CXXCPP $CPPFLAGS'
  9503. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9504. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9505. cross_compiling=$ac_cv_prog_cxx_cross
  9506.  
  9507. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  9508. if test $ac_cv_prog_cxx_works = no; then
  9509.   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  9510. fi
  9511. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  9512. echo "configure:9513: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  9513. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  9514. cross_compiling=$ac_cv_prog_cxx_cross
  9515.  
  9516. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  9517. echo "configure:9518: checking whether we are using GNU C++" >&5
  9518. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  9519.   echo $ac_n "(cached) $ac_c" 1>&6
  9520. else
  9521.   cat > conftest.C <<EOF
  9522. #ifdef __GNUC__
  9523.   yes;
  9524. #endif
  9525. EOF
  9526. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  9527.   ac_cv_prog_gxx=yes
  9528. else
  9529.   ac_cv_prog_gxx=no
  9530. fi
  9531. fi
  9532.  
  9533. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  9534.  
  9535. if test $ac_cv_prog_gxx = yes; then
  9536.   GXX=yes
  9537. else
  9538.   GXX=
  9539. fi
  9540.  
  9541. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  9542. ac_save_CXXFLAGS="$CXXFLAGS"
  9543. CXXFLAGS=
  9544. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  9545. echo "configure:9546: checking whether ${CXX-g++} accepts -g" >&5
  9546. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  9547.   echo $ac_n "(cached) $ac_c" 1>&6
  9548. else
  9549.   echo 'void f(){}' > conftest.cc
  9550. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  9551.   ac_cv_prog_cxx_g=yes
  9552. else
  9553.   ac_cv_prog_cxx_g=no
  9554. fi
  9555. rm -f conftest*
  9556.  
  9557. fi
  9558.  
  9559. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  9560. if test "$ac_test_CXXFLAGS" = set; then
  9561.   CXXFLAGS="$ac_save_CXXFLAGS"
  9562. elif test $ac_cv_prog_cxx_g = yes; then
  9563.   if test "$GXX" = yes; then
  9564.     CXXFLAGS="-g -O2"
  9565.   else
  9566.     CXXFLAGS="-g"
  9567.   fi
  9568. else
  9569.   if test "$GXX" = yes; then
  9570.     CXXFLAGS="-O2"
  9571.   else
  9572.     CXXFLAGS=
  9573.   fi
  9574. fi
  9575.  
  9576.  
  9577. ac_ext=c
  9578. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9579. ac_cpp='$CPP $CPPFLAGS'
  9580. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9581. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9582. cross_compiling=$ac_cv_prog_cc_cross
  9583.  
  9584.  
  9585. # Extract the first word of "ranlib", so it can be a program name with args.
  9586. set dummy ranlib; ac_word=$2
  9587. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9588. echo "configure:9589: checking for $ac_word" >&5
  9589. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  9590.   echo $ac_n "(cached) $ac_c" 1>&6
  9591. else
  9592.   if test -n "$RANLIB"; then
  9593.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  9594. else
  9595.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  9596.   ac_dummy="$PATH"
  9597.   for ac_dir in $ac_dummy; do
  9598.     test -z "$ac_dir" && ac_dir=.
  9599.     if test -f $ac_dir/$ac_word -o \
  9600.             -f $ac_dir/$ac_word$ac_exeext ; then
  9601.       ac_cv_prog_RANLIB="ranlib"
  9602.       break
  9603.     fi
  9604.   done
  9605.   IFS="$ac_save_ifs"
  9606.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  9607. fi
  9608. fi
  9609. RANLIB="$ac_cv_prog_RANLIB"
  9610. if test -n "$RANLIB"; then
  9611.   echo "$ac_t""$RANLIB" 1>&6
  9612. else
  9613.   echo "$ac_t""no" 1>&6
  9614. fi
  9615.  
  9616.  
  9617. # Extract the first word of "ar", so it can be a program name with args.
  9618. set dummy ar; ac_word=$2
  9619. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9620. echo "configure:9621: checking for $ac_word" >&5
  9621. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  9622.   echo $ac_n "(cached) $ac_c" 1>&6
  9623. else
  9624.   if test -n "$AR"; then
  9625.   ac_cv_prog_AR="$AR" # Let the user override the test.
  9626. else
  9627.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  9628.   ac_dummy="$PATH"
  9629.   for ac_dir in $ac_dummy; do
  9630.     test -z "$ac_dir" && ac_dir=.
  9631.     if test -f $ac_dir/$ac_word -o \
  9632.             -f $ac_dir/$ac_word$ac_exeext ; then
  9633.       ac_cv_prog_AR="ar"
  9634.       break
  9635.     fi
  9636.   done
  9637.   IFS="$ac_save_ifs"
  9638.   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
  9639. fi
  9640. fi
  9641. AR="$ac_cv_prog_AR"
  9642. if test -n "$AR"; then
  9643.   echo "$ac_t""$AR" 1>&6
  9644. else
  9645.   echo "$ac_t""no" 1>&6
  9646. fi
  9647.  
  9648.  
  9649. # Find a good install program.  We prefer a C program (faster),
  9650. # so one script is as good as another.  But avoid the broken or
  9651. # incompatible versions:
  9652. # SysV /etc/install, /usr/sbin/install
  9653. # SunOS /usr/etc/install
  9654. # IRIX /sbin/install
  9655. # AIX /bin/install
  9656. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  9657. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  9658. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  9659. # ./install, which can be erroneously created by make from ./install.sh.
  9660. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  9661. echo "configure:9662: checking for a BSD compatible install" >&5
  9662. if test -z "$INSTALL"; then
  9663. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  9664.   echo $ac_n "(cached) $ac_c" 1>&6
  9665. else
  9666.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
  9667.   for ac_dir in $PATH; do
  9668.     # Account for people who put trailing slashes in PATH elements.
  9669.     case "$ac_dir/" in
  9670.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  9671.     # We reject the install program from OS/2 or W3.1
  9672.     */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
  9673.     *)
  9674.       # OSF1 and SCO ODT 3.0 have their own names for install.
  9675.       # Don't use installbsd from OSF since it installs stuff as root
  9676.       # by default.
  9677.       for ac_prog in ginstall scoinst install; do
  9678.         if test -f $ac_dir/$ac_prog$ac_exeext; then
  9679.       if test $ac_prog = install &&
  9680.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  9681.         # AIX install.  It has an incompatible calling convention.
  9682.         :
  9683.       else
  9684.         ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
  9685.         break 2
  9686.       fi
  9687.     fi
  9688.       done
  9689.       ;;
  9690.     esac
  9691.   done
  9692.   IFS="$ac_save_IFS"
  9693.  
  9694. fi
  9695.   if test "${ac_cv_path_install+set}" = set; then
  9696.     INSTALL="$ac_cv_path_install"
  9697.   else
  9698.     # As a last resort, use the slow shell script.  We don't cache a
  9699.     # path for INSTALL within a source directory, because that will
  9700.     # break other packages using the cache if that directory is
  9701.     # removed, or if the path is relative.
  9702.     INSTALL="$ac_install_sh"
  9703.   fi
  9704. fi
  9705. echo "$ac_t""$INSTALL" 1>&6
  9706.  
  9707. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  9708. # It thinks the first close brace ends the variable substitution.
  9709. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  9710.  
  9711. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  9712.  
  9713. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  9714.  
  9715.  
  9716. case ${INSTALL} in
  9717.   /* ) # Absolute
  9718.      ;;
  9719.   *)
  9720.      INSTALL=`pwd`/${INSTALL} ;;
  9721. esac
  9722.  
  9723.  
  9724. case "${host}" in
  9725.  
  9726.                 powerpc-*-darwin* )
  9727.         INSTALL_PROGRAM="cp -fp"
  9728.         INSTALL_DATA="cp -fp"
  9729.         ;;
  9730.     *)
  9731.         ;;
  9732. esac
  9733.  
  9734. # Extract the first word of "strip", so it can be a program name with args.
  9735. set dummy strip; ac_word=$2
  9736. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9737. echo "configure:9738: checking for $ac_word" >&5
  9738. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  9739.   echo $ac_n "(cached) $ac_c" 1>&6
  9740. else
  9741.   if test -n "$STRIP"; then
  9742.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  9743. else
  9744.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  9745.   ac_dummy="$PATH"
  9746.   for ac_dir in $ac_dummy; do
  9747.     test -z "$ac_dir" && ac_dir=.
  9748.     if test -f $ac_dir/$ac_word -o \
  9749.             -f $ac_dir/$ac_word$ac_exeext ; then
  9750.       ac_cv_prog_STRIP="strip"
  9751.       break
  9752.     fi
  9753.   done
  9754.   IFS="$ac_save_ifs"
  9755.   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
  9756. fi
  9757. fi
  9758. STRIP="$ac_cv_prog_STRIP"
  9759. if test -n "$STRIP"; then
  9760.   echo "$ac_t""$STRIP" 1>&6
  9761. else
  9762.   echo "$ac_t""no" 1>&6
  9763. fi
  9764.  
  9765.  
  9766. echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
  9767. echo "configure:9768: checking if make is GNU make" >&5
  9768. if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
  9769.   echo $ac_n "(cached) $ac_c" 1>&6
  9770. else
  9771.   
  9772.     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
  9773.             egrep -s GNU > /dev/null); then
  9774.         wx_cv_prog_makeisgnu="yes"
  9775.     else
  9776.         wx_cv_prog_makeisgnu="no"
  9777.     fi
  9778.  
  9779. fi
  9780.  
  9781. echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
  9782.  
  9783. if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
  9784.     IF_GNU_MAKE=""
  9785. else
  9786.     IF_GNU_MAKE="#"
  9787. fi
  9788.  
  9789.  
  9790.  
  9791. if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
  9792. echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
  9793. echo "configure:9794: checking if make supports VPATH" >&5
  9794. if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
  9795.   echo $ac_n "(cached) $ac_c" 1>&6
  9796. else
  9797.   
  9798. cat - << EOF > confMake
  9799. check : file
  9800.     cp \$? \$@
  9801.     cp \$? final_file
  9802. EOF
  9803.  
  9804. if test ! -d sub ; then
  9805.   mkdir sub
  9806. fi
  9807. echo dummy > sub/file
  9808. ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
  9809. RESULT=$?
  9810. rm -f sub/file check final_file confMake
  9811. rmdir sub
  9812. if test "$RESULT" = 0; then
  9813.   wx_cv_prog_makevpath="yes"
  9814. else
  9815.   wx_cv_prog_makevpath="no"
  9816. fi
  9817.  
  9818. fi
  9819.  
  9820. echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
  9821.  
  9822. if test "x$wx_cv_prog_makevpath" != "xyes"; then
  9823. { echo "configure: error: 
  9824. You need a make-utility that is able to use the variable
  9825. VPATH correctly.
  9826. If your version of make does not support VPATH correctly,
  9827. please install GNU-make (possibly as gmake), and start
  9828. configure with the following command:
  9829. export MAKE=gmake; ./configure  for sh-type shells
  9830. setenv MAKE gmake; ./configure  for csh-type shells
  9831. Also please do remember to use gmake in this case every time
  9832. you are trying to compile.
  9833. " 1>&2; exit 1; }
  9834. fi fi 
  9835. for ac_prog in 'bison -y' byacc
  9836. do
  9837. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9838. set dummy $ac_prog; ac_word=$2
  9839. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9840. echo "configure:9841: checking for $ac_word" >&5
  9841. if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  9842.   echo $ac_n "(cached) $ac_c" 1>&6
  9843. else
  9844.   if test -n "$YACC"; then
  9845.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  9846. else
  9847.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  9848.   ac_dummy="$PATH"
  9849.   for ac_dir in $ac_dummy; do
  9850.     test -z "$ac_dir" && ac_dir=.
  9851.     if test -f $ac_dir/$ac_word -o \
  9852.             -f $ac_dir/$ac_word$ac_exeext ; then
  9853.       ac_cv_prog_YACC="$ac_prog"
  9854.       break
  9855.     fi
  9856.   done
  9857.   IFS="$ac_save_ifs"
  9858. fi
  9859. fi
  9860. YACC="$ac_cv_prog_YACC"
  9861. if test -n "$YACC"; then
  9862.   echo "$ac_t""$YACC" 1>&6
  9863. else
  9864.   echo "$ac_t""no" 1>&6
  9865. fi
  9866.  
  9867. test -n "$YACC" && break
  9868. done
  9869. test -n "$YACC" || YACC="yacc"
  9870.  
  9871.  
  9872. # Extract the first word of "flex", so it can be a program name with args.
  9873. set dummy flex; ac_word=$2
  9874. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9875. echo "configure:9876: checking for $ac_word" >&5
  9876. if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  9877.   echo $ac_n "(cached) $ac_c" 1>&6
  9878. else
  9879.   if test -n "$LEX"; then
  9880.   ac_cv_prog_LEX="$LEX" # Let the user override the test.
  9881. else
  9882.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  9883.   ac_dummy="$PATH"
  9884.   for ac_dir in $ac_dummy; do
  9885.     test -z "$ac_dir" && ac_dir=.
  9886.     if test -f $ac_dir/$ac_word -o \
  9887.             -f $ac_dir/$ac_word$ac_exeext ; then
  9888.       ac_cv_prog_LEX="flex"
  9889.       break
  9890.     fi
  9891.   done
  9892.   IFS="$ac_save_ifs"
  9893.   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  9894. fi
  9895. fi
  9896. LEX="$ac_cv_prog_LEX"
  9897. if test -n "$LEX"; then
  9898.   echo "$ac_t""$LEX" 1>&6
  9899. else
  9900.   echo "$ac_t""no" 1>&6
  9901. fi
  9902.  
  9903. if test -z "$LEXLIB"
  9904. then
  9905.   case "$LEX" in
  9906.   flex*) ac_lib=fl ;;
  9907.   *) ac_lib=l ;;
  9908.   esac
  9909.   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  9910. echo "configure:9911: checking for yywrap in -l$ac_lib" >&5
  9911. ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  9912. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  9913.   echo $ac_n "(cached) $ac_c" 1>&6
  9914. else
  9915.   ac_save_LIBS="$LIBS"
  9916. LIBS="-l$ac_lib  $LIBS"
  9917. cat > conftest.$ac_ext <<EOF
  9918. #line 9919 "configure"
  9919. #include "confdefs.h"
  9920. /* Override any gcc2 internal prototype to avoid an error.  */
  9921. /* We use char because int might match the return type of a gcc2
  9922.     builtin and then its argument prototype would still apply.  */
  9923. char yywrap();
  9924.  
  9925. int main() {
  9926. yywrap()
  9927. ; return 0; }
  9928. EOF
  9929. if { (eval echo configure:9930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9930.   rm -rf conftest*
  9931.   eval "ac_cv_lib_$ac_lib_var=yes"
  9932. else
  9933.   echo "configure: failed program was:" >&5
  9934.   cat conftest.$ac_ext >&5
  9935.   rm -rf conftest*
  9936.   eval "ac_cv_lib_$ac_lib_var=no"
  9937. fi
  9938. rm -f conftest*
  9939. LIBS="$ac_save_LIBS"
  9940.  
  9941. fi
  9942. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9943.   echo "$ac_t""yes" 1>&6
  9944.   LEXLIB="-l$ac_lib"
  9945. else
  9946.   echo "$ac_t""no" 1>&6
  9947. fi
  9948.  
  9949. fi
  9950.  
  9951.  
  9952. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  9953. echo "configure:9954: checking whether ln -s works" >&5
  9954. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  9955.   echo $ac_n "(cached) $ac_c" 1>&6
  9956. else
  9957.   rm -f conftestdata
  9958. if ln -s X conftestdata 2>/dev/null
  9959. then
  9960.   rm -f conftestdata
  9961.   ac_cv_prog_LN_S="ln -s"
  9962. else
  9963.   echo A > conftestdata;
  9964.   if ln conftestdata conftestdata2 2>/dev/null; then
  9965.     ac_cv_prog_LN_S=ln
  9966.   else
  9967.     ac_cv_prog_LN_S=cp
  9968.   fi
  9969. fi
  9970. rm -f conftestdata*
  9971. fi
  9972. LN_S="$ac_cv_prog_LN_S"
  9973. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  9974.   echo "$ac_t""yes" 1>&6
  9975. else
  9976.   echo "$ac_t""no" 1>&6
  9977. fi
  9978.  
  9979.  
  9980. case "${host}" in
  9981.   *-pc-os2_emx | *-pc-os2-emx )
  9982.             LIBS="$LIBS -lstdcpp"
  9983.       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
  9984.                               echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
  9985. echo "configure:9986: checking for drand48 in -lcExt" >&5
  9986. ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
  9987. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  9988.   echo $ac_n "(cached) $ac_c" 1>&6
  9989. else
  9990.   ac_save_LIBS="$LIBS"
  9991. LIBS="-lcExt  $LIBS"
  9992. cat > conftest.$ac_ext <<EOF
  9993. #line 9994 "configure"
  9994. #include "confdefs.h"
  9995. /* Override any gcc2 internal prototype to avoid an error.  */
  9996. /* We use char because int might match the return type of a gcc2
  9997.     builtin and then its argument prototype would still apply.  */
  9998. char drand48();
  9999.  
  10000. int main() {
  10001. drand48()
  10002. ; return 0; }
  10003. EOF
  10004. if { (eval echo configure:10005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10005.   rm -rf conftest*
  10006.   eval "ac_cv_lib_$ac_lib_var=yes"
  10007. else
  10008.   echo "configure: failed program was:" >&5
  10009.   cat conftest.$ac_ext >&5
  10010.   rm -rf conftest*
  10011.   eval "ac_cv_lib_$ac_lib_var=no"
  10012. fi
  10013. rm -f conftest*
  10014. LIBS="$ac_save_LIBS"
  10015.  
  10016. fi
  10017. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10018.   echo "$ac_t""yes" 1>&6
  10019.   LIBS="$LIBS -lcExt"
  10020. else
  10021.   echo "$ac_t""no" 1>&6
  10022. fi
  10023.  
  10024.       else
  10025.                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
  10026.       fi
  10027.   ;;
  10028. esac
  10029.  
  10030.  
  10031. if test "$wxUSE_MAC" != 1; then
  10032.     for ac_hdr in strings.h
  10033. do
  10034. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10035. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10036. echo "configure:10037: checking for $ac_hdr" >&5
  10037. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10038.   echo $ac_n "(cached) $ac_c" 1>&6
  10039. else
  10040.   cat > conftest.$ac_ext <<EOF
  10041. #include <sys/types.h>
  10042. #line 10043 "configure"
  10043. #include "confdefs.h"
  10044. #include <$ac_hdr>
  10045. EOF
  10046. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10047. { (eval echo configure:10048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10048. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10049. if test -z "$ac_err"; then
  10050.   rm -rf conftest*
  10051.   eval "ac_cv_header_$ac_safe=yes"
  10052. else
  10053.   echo "$ac_err" >&5
  10054.   echo "configure: failed program was:" >&5
  10055.   cat conftest.$ac_ext >&5
  10056.   rm -rf conftest*
  10057.   eval "ac_cv_header_$ac_safe=no"
  10058. fi
  10059. rm -f conftest*
  10060. fi
  10061. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10062.   echo "$ac_t""yes" 1>&6
  10063.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10064.   cat >> confdefs.h <<EOF
  10065. #define $ac_tr_hdr 1
  10066. EOF
  10067.  
  10068. else
  10069.   echo "$ac_t""no" 1>&6
  10070. fi
  10071. done
  10072.  
  10073. fi
  10074.  
  10075. for ac_hdr in stdlib.h
  10076. do
  10077. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10078. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10079. echo "configure:10080: checking for $ac_hdr" >&5
  10080. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10081.   echo $ac_n "(cached) $ac_c" 1>&6
  10082. else
  10083.   cat > conftest.$ac_ext <<EOF
  10084. #include <sys/types.h>
  10085. #line 10086 "configure"
  10086. #include "confdefs.h"
  10087. #include <$ac_hdr>
  10088. EOF
  10089. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10090. { (eval echo configure:10091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10091. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10092. if test -z "$ac_err"; then
  10093.   rm -rf conftest*
  10094.   eval "ac_cv_header_$ac_safe=yes"
  10095. else
  10096.   echo "$ac_err" >&5
  10097.   echo "configure: failed program was:" >&5
  10098.   cat conftest.$ac_ext >&5
  10099.   rm -rf conftest*
  10100.   eval "ac_cv_header_$ac_safe=no"
  10101. fi
  10102. rm -f conftest*
  10103. fi
  10104. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10105.   echo "$ac_t""yes" 1>&6
  10106.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10107.   cat >> confdefs.h <<EOF
  10108. #define $ac_tr_hdr 1
  10109. EOF
  10110.  
  10111. else
  10112.   echo "$ac_t""no" 1>&6
  10113. fi
  10114. done
  10115.  
  10116. for ac_hdr in malloc.h
  10117. do
  10118. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10119. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10120. echo "configure:10121: checking for $ac_hdr" >&5
  10121. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10122.   echo $ac_n "(cached) $ac_c" 1>&6
  10123. else
  10124.   cat > conftest.$ac_ext <<EOF
  10125. #include <sys/types.h>
  10126. #line 10127 "configure"
  10127. #include "confdefs.h"
  10128. #include <$ac_hdr>
  10129. EOF
  10130. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10131. { (eval echo configure:10132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10132. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10133. if test -z "$ac_err"; then
  10134.   rm -rf conftest*
  10135.   eval "ac_cv_header_$ac_safe=yes"
  10136. else
  10137.   echo "$ac_err" >&5
  10138.   echo "configure: failed program was:" >&5
  10139.   cat conftest.$ac_ext >&5
  10140.   rm -rf conftest*
  10141.   eval "ac_cv_header_$ac_safe=no"
  10142. fi
  10143. rm -f conftest*
  10144. fi
  10145. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10146.   echo "$ac_t""yes" 1>&6
  10147.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10148.   cat >> confdefs.h <<EOF
  10149. #define $ac_tr_hdr 1
  10150. EOF
  10151.  
  10152. else
  10153.   echo "$ac_t""no" 1>&6
  10154. fi
  10155. done
  10156.  
  10157. for ac_hdr in unistd.h
  10158. do
  10159. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10160. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10161. echo "configure:10162: checking for $ac_hdr" >&5
  10162. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10163.   echo $ac_n "(cached) $ac_c" 1>&6
  10164. else
  10165.   cat > conftest.$ac_ext <<EOF
  10166. #include <sys/types.h>
  10167. #line 10168 "configure"
  10168. #include "confdefs.h"
  10169. #include <$ac_hdr>
  10170. EOF
  10171. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10172. { (eval echo configure:10173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10173. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10174. if test -z "$ac_err"; then
  10175.   rm -rf conftest*
  10176.   eval "ac_cv_header_$ac_safe=yes"
  10177. else
  10178.   echo "$ac_err" >&5
  10179.   echo "configure: failed program was:" >&5
  10180.   cat conftest.$ac_ext >&5
  10181.   rm -rf conftest*
  10182.   eval "ac_cv_header_$ac_safe=no"
  10183. fi
  10184. rm -f conftest*
  10185. fi
  10186. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10187.   echo "$ac_t""yes" 1>&6
  10188.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10189.   cat >> confdefs.h <<EOF
  10190. #define $ac_tr_hdr 1
  10191. EOF
  10192.  
  10193. else
  10194.   echo "$ac_t""no" 1>&6
  10195. fi
  10196. done
  10197.  
  10198. for ac_hdr in wchar.h
  10199. do
  10200. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10201. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10202. echo "configure:10203: checking for $ac_hdr" >&5
  10203. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10204.   echo $ac_n "(cached) $ac_c" 1>&6
  10205. else
  10206.   cat > conftest.$ac_ext <<EOF
  10207. #include <sys/types.h>
  10208. #line 10209 "configure"
  10209. #include "confdefs.h"
  10210. #include <$ac_hdr>
  10211. EOF
  10212. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10213. { (eval echo configure:10214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10214. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10215. if test -z "$ac_err"; then
  10216.   rm -rf conftest*
  10217.   eval "ac_cv_header_$ac_safe=yes"
  10218. else
  10219.   echo "$ac_err" >&5
  10220.   echo "configure: failed program was:" >&5
  10221.   cat conftest.$ac_ext >&5
  10222.   rm -rf conftest*
  10223.   eval "ac_cv_header_$ac_safe=no"
  10224. fi
  10225. rm -f conftest*
  10226. fi
  10227. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10228.   echo "$ac_t""yes" 1>&6
  10229.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10230.   cat >> confdefs.h <<EOF
  10231. #define $ac_tr_hdr 1
  10232. EOF
  10233.  
  10234. else
  10235.   echo "$ac_t""no" 1>&6
  10236. fi
  10237. done
  10238.  
  10239.  
  10240. if test "$ac_cv_header_wchar_h" != "yes"; then
  10241.         for ac_hdr in wcstr.h
  10242. do
  10243. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10244. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10245. echo "configure:10246: checking for $ac_hdr" >&5
  10246. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10247.   echo $ac_n "(cached) $ac_c" 1>&6
  10248. else
  10249.   cat > conftest.$ac_ext <<EOF
  10250. #include <sys/types.h>
  10251. #line 10252 "configure"
  10252. #include "confdefs.h"
  10253. #include <$ac_hdr>
  10254. EOF
  10255. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10256. { (eval echo configure:10257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10257. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10258. if test -z "$ac_err"; then
  10259.   rm -rf conftest*
  10260.   eval "ac_cv_header_$ac_safe=yes"
  10261. else
  10262.   echo "$ac_err" >&5
  10263.   echo "configure: failed program was:" >&5
  10264.   cat conftest.$ac_ext >&5
  10265.   rm -rf conftest*
  10266.   eval "ac_cv_header_$ac_safe=no"
  10267. fi
  10268. rm -f conftest*
  10269. fi
  10270. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10271.   echo "$ac_t""yes" 1>&6
  10272.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10273.   cat >> confdefs.h <<EOF
  10274. #define $ac_tr_hdr 1
  10275. EOF
  10276.  
  10277. else
  10278.   echo "$ac_t""no" 1>&6
  10279. fi
  10280. done
  10281.  
  10282. fi
  10283.  
  10284. for ac_hdr in fnmatch.h
  10285. do
  10286. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10287. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10288. echo "configure:10289: checking for $ac_hdr" >&5
  10289. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10290.   echo $ac_n "(cached) $ac_c" 1>&6
  10291. else
  10292.   cat > conftest.$ac_ext <<EOF
  10293. #include <sys/types.h>
  10294. #line 10295 "configure"
  10295. #include "confdefs.h"
  10296. #include <$ac_hdr>
  10297. EOF
  10298. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10299. { (eval echo configure:10300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10300. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10301. if test -z "$ac_err"; then
  10302.   rm -rf conftest*
  10303.   eval "ac_cv_header_$ac_safe=yes"
  10304. else
  10305.   echo "$ac_err" >&5
  10306.   echo "configure: failed program was:" >&5
  10307.   cat conftest.$ac_ext >&5
  10308.   rm -rf conftest*
  10309.   eval "ac_cv_header_$ac_safe=no"
  10310. fi
  10311. rm -f conftest*
  10312. fi
  10313. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10314.   echo "$ac_t""yes" 1>&6
  10315.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10316.   cat >> confdefs.h <<EOF
  10317. #define $ac_tr_hdr 1
  10318. EOF
  10319.  
  10320. else
  10321.   echo "$ac_t""no" 1>&6
  10322. fi
  10323. done
  10324.  
  10325.  
  10326. if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
  10327.     for ac_func in fnmatch
  10328. do
  10329. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  10330. echo "configure:10331: checking for $ac_func" >&5
  10331. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  10332.   echo $ac_n "(cached) $ac_c" 1>&6
  10333. else
  10334.   cat > conftest.$ac_ext <<EOF
  10335. #line 10336 "configure"
  10336. #include "confdefs.h"
  10337. /* System header to define __stub macros and hopefully few prototypes,
  10338.     which can conflict with char $ac_func(); below.  */
  10339. #include <assert.h>
  10340. /* Override any gcc2 internal prototype to avoid an error.  */
  10341. /* We use char because int might match the return type of a gcc2
  10342.     builtin and then its argument prototype would still apply.  */
  10343. char $ac_func();
  10344.  
  10345. int main() {
  10346.  
  10347. /* The GNU C library defines this for functions which it implements
  10348.     to always fail with ENOSYS.  Some functions are actually named
  10349.     something starting with __ and the normal name is an alias.  */
  10350. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10351. choke me
  10352. #else
  10353. $ac_func();
  10354. #endif
  10355.  
  10356. ; return 0; }
  10357. EOF
  10358. if { (eval echo configure:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10359.   rm -rf conftest*
  10360.   eval "ac_cv_func_$ac_func=yes"
  10361. else
  10362.   echo "configure: failed program was:" >&5
  10363.   cat conftest.$ac_ext >&5
  10364.   rm -rf conftest*
  10365.   eval "ac_cv_func_$ac_func=no"
  10366. fi
  10367. rm -f conftest*
  10368. fi
  10369.  
  10370. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  10371.   echo "$ac_t""yes" 1>&6
  10372.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  10373.   cat >> confdefs.h <<EOF
  10374. #define $ac_tr_func 1
  10375. EOF
  10376.  
  10377. else
  10378.   echo "$ac_t""no" 1>&6
  10379. fi
  10380. done
  10381.  
  10382. fi
  10383.  
  10384. for ac_hdr in langinfo.h
  10385. do
  10386. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10387. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10388. echo "configure:10389: checking for $ac_hdr" >&5
  10389. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10390.   echo $ac_n "(cached) $ac_c" 1>&6
  10391. else
  10392.   cat > conftest.$ac_ext <<EOF
  10393. #include <sys/types.h>
  10394. #line 10395 "configure"
  10395. #include "confdefs.h"
  10396. #include <$ac_hdr>
  10397. EOF
  10398. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10399. { (eval echo configure:10400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10400. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10401. if test -z "$ac_err"; then
  10402.   rm -rf conftest*
  10403.   eval "ac_cv_header_$ac_safe=yes"
  10404. else
  10405.   echo "$ac_err" >&5
  10406.   echo "configure: failed program was:" >&5
  10407.   cat conftest.$ac_ext >&5
  10408.   rm -rf conftest*
  10409.   eval "ac_cv_header_$ac_safe=no"
  10410. fi
  10411. rm -f conftest*
  10412. fi
  10413. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10414.   echo "$ac_t""yes" 1>&6
  10415.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10416.   cat >> confdefs.h <<EOF
  10417. #define $ac_tr_hdr 1
  10418. EOF
  10419.  
  10420. else
  10421.   echo "$ac_t""no" 1>&6
  10422. fi
  10423. done
  10424.  
  10425.  
  10426. if test "$wxUSE_GUI" = "yes"; then
  10427.     if test "$wxUSE_UNIX" = "yes"; then
  10428.                 for ac_hdr in X11/XKBlib.h
  10429. do
  10430. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10431. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10432. echo "configure:10433: checking for $ac_hdr" >&5
  10433. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10434.   echo $ac_n "(cached) $ac_c" 1>&6
  10435. else
  10436.   cat > conftest.$ac_ext <<EOF
  10437. #include <sys/types.h>
  10438. #line 10439 "configure"
  10439. #include "confdefs.h"
  10440. #include <$ac_hdr>
  10441. EOF
  10442. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10443. { (eval echo configure:10444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10444. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10445. if test -z "$ac_err"; then
  10446.   rm -rf conftest*
  10447.   eval "ac_cv_header_$ac_safe=yes"
  10448. else
  10449.   echo "$ac_err" >&5
  10450.   echo "configure: failed program was:" >&5
  10451.   cat conftest.$ac_ext >&5
  10452.   rm -rf conftest*
  10453.   eval "ac_cv_header_$ac_safe=no"
  10454. fi
  10455. rm -f conftest*
  10456. fi
  10457. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10458.   echo "$ac_t""yes" 1>&6
  10459.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10460.   cat >> confdefs.h <<EOF
  10461. #define $ac_tr_hdr 1
  10462. EOF
  10463.  
  10464. else
  10465.   echo "$ac_t""no" 1>&6
  10466. fi
  10467. done
  10468.  
  10469.     fi
  10470. fi
  10471.  
  10472.  
  10473. echo $ac_n "checking for working const""... $ac_c" 1>&6
  10474. echo "configure:10475: checking for working const" >&5
  10475. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  10476.   echo $ac_n "(cached) $ac_c" 1>&6
  10477. else
  10478.   cat > conftest.$ac_ext <<EOF
  10479. #line 10480 "configure"
  10480. #include "confdefs.h"
  10481.  
  10482. int main() {
  10483.  
  10484. /* Ultrix mips cc rejects this.  */
  10485. typedef int charset[2]; const charset x;
  10486. /* SunOS 4.1.1 cc rejects this.  */
  10487. char const *const *ccp;
  10488. char **p;
  10489. /* NEC SVR4.0.2 mips cc rejects this.  */
  10490. struct point {int x, y;};
  10491. static struct point const zero = {0,0};
  10492. /* AIX XL C 1.02.0.0 rejects this.
  10493.    It does not let you subtract one const X* pointer from another in an arm
  10494.    of an if-expression whose if-part is not a constant expression */
  10495. const char *g = "string";
  10496. ccp = &g + (g ? g-g : 0);
  10497. /* HPUX 7.0 cc rejects these. */
  10498. ++ccp;
  10499. p = (char**) ccp;
  10500. ccp = (char const *const *) p;
  10501. { /* SCO 3.2v4 cc rejects this.  */
  10502.   char *t;
  10503.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  10504.  
  10505.   *t++ = 0;
  10506. }
  10507. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  10508.   int x[] = {25, 17};
  10509.   const int *foo = &x[0];
  10510.   ++foo;
  10511. }
  10512. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10513.   typedef const int *iptr;
  10514.   iptr p = 0;
  10515.   ++p;
  10516. }
  10517. { /* AIX XL C 1.02.0.0 rejects this saying
  10518.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10519.   struct s { int j; const int *ap[3]; };
  10520.   struct s *b; b->j = 5;
  10521. }
  10522. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10523.   const int foo = 10;
  10524. }
  10525.  
  10526. ; return 0; }
  10527. EOF
  10528. if { (eval echo configure:10529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10529.   rm -rf conftest*
  10530.   ac_cv_c_const=yes
  10531. else
  10532.   echo "configure: failed program was:" >&5
  10533.   cat conftest.$ac_ext >&5
  10534.   rm -rf conftest*
  10535.   ac_cv_c_const=no
  10536. fi
  10537. rm -f conftest*
  10538. fi
  10539.  
  10540. echo "$ac_t""$ac_cv_c_const" 1>&6
  10541. if test $ac_cv_c_const = no; then
  10542.   cat >> confdefs.h <<\EOF
  10543. #define const 
  10544. EOF
  10545.  
  10546. fi
  10547.  
  10548. echo $ac_n "checking for inline""... $ac_c" 1>&6
  10549. echo "configure:10550: checking for inline" >&5
  10550. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  10551.   echo $ac_n "(cached) $ac_c" 1>&6
  10552. else
  10553.   ac_cv_c_inline=no
  10554. for ac_kw in inline __inline__ __inline; do
  10555.   cat > conftest.$ac_ext <<EOF
  10556. #line 10557 "configure"
  10557. #include "confdefs.h"
  10558.  
  10559. int main() {
  10560. } $ac_kw foo() {
  10561. ; return 0; }
  10562. EOF
  10563. if { (eval echo configure:10564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10564.   rm -rf conftest*
  10565.   ac_cv_c_inline=$ac_kw; break
  10566. else
  10567.   echo "configure: failed program was:" >&5
  10568.   cat conftest.$ac_ext >&5
  10569. fi
  10570. rm -f conftest*
  10571. done
  10572.  
  10573. fi
  10574.  
  10575. echo "$ac_t""$ac_cv_c_inline" 1>&6
  10576. case "$ac_cv_c_inline" in
  10577.   inline | yes) ;;
  10578.   no) cat >> confdefs.h <<\EOF
  10579. #define inline 
  10580. EOF
  10581.  ;;
  10582.   *)  cat >> confdefs.h <<EOF
  10583. #define inline $ac_cv_c_inline
  10584. EOF
  10585.  ;;
  10586. esac
  10587.  
  10588.  
  10589. echo $ac_n "checking size of char""... $ac_c" 1>&6
  10590. echo "configure:10591: checking size of char" >&5
  10591. if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
  10592.   echo $ac_n "(cached) $ac_c" 1>&6
  10593. else
  10594.   if test "$cross_compiling" = yes; then
  10595.   ac_cv_sizeof_char=1
  10596. else
  10597.   cat > conftest.$ac_ext <<EOF
  10598. #line 10599 "configure"
  10599. #include "confdefs.h"
  10600. #include <stdio.h>
  10601. main()
  10602. {
  10603.   FILE *f=fopen("conftestval", "w");
  10604.   if (!f) exit(1);
  10605.   fprintf(f, "%d\n", sizeof(char));
  10606.   exit(0);
  10607. }
  10608. EOF
  10609. if { (eval echo configure:10610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10610. then
  10611.   ac_cv_sizeof_char=`cat conftestval`
  10612. else
  10613.   echo "configure: failed program was:" >&5
  10614.   cat conftest.$ac_ext >&5
  10615.   rm -fr conftest*
  10616.   ac_cv_sizeof_char=0
  10617. fi
  10618. rm -fr conftest*
  10619. fi
  10620.  
  10621. fi
  10622. echo "$ac_t""$ac_cv_sizeof_char" 1>&6
  10623. cat >> confdefs.h <<EOF
  10624. #define SIZEOF_CHAR $ac_cv_sizeof_char
  10625. EOF
  10626.  
  10627.  
  10628. echo $ac_n "checking size of short""... $ac_c" 1>&6
  10629. echo "configure:10630: checking size of short" >&5
  10630. if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
  10631.   echo $ac_n "(cached) $ac_c" 1>&6
  10632. else
  10633.   if test "$cross_compiling" = yes; then
  10634.   ac_cv_sizeof_short=2
  10635. else
  10636.   cat > conftest.$ac_ext <<EOF
  10637. #line 10638 "configure"
  10638. #include "confdefs.h"
  10639. #include <stdio.h>
  10640. main()
  10641. {
  10642.   FILE *f=fopen("conftestval", "w");
  10643.   if (!f) exit(1);
  10644.   fprintf(f, "%d\n", sizeof(short));
  10645.   exit(0);
  10646. }
  10647. EOF
  10648. if { (eval echo configure:10649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10649. then
  10650.   ac_cv_sizeof_short=`cat conftestval`
  10651. else
  10652.   echo "configure: failed program was:" >&5
  10653.   cat conftest.$ac_ext >&5
  10654.   rm -fr conftest*
  10655.   ac_cv_sizeof_short=0
  10656. fi
  10657. rm -fr conftest*
  10658. fi
  10659.  
  10660. fi
  10661. echo "$ac_t""$ac_cv_sizeof_short" 1>&6
  10662. cat >> confdefs.h <<EOF
  10663. #define SIZEOF_SHORT $ac_cv_sizeof_short
  10664. EOF
  10665.  
  10666.  
  10667. echo $ac_n "checking size of void *""... $ac_c" 1>&6
  10668. echo "configure:10669: checking size of void *" >&5
  10669. if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
  10670.   echo $ac_n "(cached) $ac_c" 1>&6
  10671. else
  10672.   if test "$cross_compiling" = yes; then
  10673.   ac_cv_sizeof_void_p=4
  10674. else
  10675.   cat > conftest.$ac_ext <<EOF
  10676. #line 10677 "configure"
  10677. #include "confdefs.h"
  10678. #include <stdio.h>
  10679. main()
  10680. {
  10681.   FILE *f=fopen("conftestval", "w");
  10682.   if (!f) exit(1);
  10683.   fprintf(f, "%d\n", sizeof(void *));
  10684.   exit(0);
  10685. }
  10686. EOF
  10687. if { (eval echo configure:10688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10688. then
  10689.   ac_cv_sizeof_void_p=`cat conftestval`
  10690. else
  10691.   echo "configure: failed program was:" >&5
  10692.   cat conftest.$ac_ext >&5
  10693.   rm -fr conftest*
  10694.   ac_cv_sizeof_void_p=0
  10695. fi
  10696. rm -fr conftest*
  10697. fi
  10698.  
  10699. fi
  10700. echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
  10701. cat >> confdefs.h <<EOF
  10702. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  10703. EOF
  10704.  
  10705.  
  10706. echo $ac_n "checking size of int""... $ac_c" 1>&6
  10707. echo "configure:10708: checking size of int" >&5
  10708. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  10709.   echo $ac_n "(cached) $ac_c" 1>&6
  10710. else
  10711.   if test "$cross_compiling" = yes; then
  10712.   ac_cv_sizeof_int=4
  10713. else
  10714.   cat > conftest.$ac_ext <<EOF
  10715. #line 10716 "configure"
  10716. #include "confdefs.h"
  10717. #include <stdio.h>
  10718. main()
  10719. {
  10720.   FILE *f=fopen("conftestval", "w");
  10721.   if (!f) exit(1);
  10722.   fprintf(f, "%d\n", sizeof(int));
  10723.   exit(0);
  10724. }
  10725. EOF
  10726. if { (eval echo configure:10727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10727. then
  10728.   ac_cv_sizeof_int=`cat conftestval`
  10729. else
  10730.   echo "configure: failed program was:" >&5
  10731.   cat conftest.$ac_ext >&5
  10732.   rm -fr conftest*
  10733.   ac_cv_sizeof_int=0
  10734. fi
  10735. rm -fr conftest*
  10736. fi
  10737.  
  10738. fi
  10739. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  10740. cat >> confdefs.h <<EOF
  10741. #define SIZEOF_INT $ac_cv_sizeof_int
  10742. EOF
  10743.  
  10744.  
  10745. echo $ac_n "checking size of long""... $ac_c" 1>&6
  10746. echo "configure:10747: checking size of long" >&5
  10747. if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  10748.   echo $ac_n "(cached) $ac_c" 1>&6
  10749. else
  10750.   if test "$cross_compiling" = yes; then
  10751.   ac_cv_sizeof_long=4
  10752. else
  10753.   cat > conftest.$ac_ext <<EOF
  10754. #line 10755 "configure"
  10755. #include "confdefs.h"
  10756. #include <stdio.h>
  10757. main()
  10758. {
  10759.   FILE *f=fopen("conftestval", "w");
  10760.   if (!f) exit(1);
  10761.   fprintf(f, "%d\n", sizeof(long));
  10762.   exit(0);
  10763. }
  10764. EOF
  10765. if { (eval echo configure:10766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10766. then
  10767.   ac_cv_sizeof_long=`cat conftestval`
  10768. else
  10769.   echo "configure: failed program was:" >&5
  10770.   cat conftest.$ac_ext >&5
  10771.   rm -fr conftest*
  10772.   ac_cv_sizeof_long=0
  10773. fi
  10774. rm -fr conftest*
  10775. fi
  10776.  
  10777. fi
  10778. echo "$ac_t""$ac_cv_sizeof_long" 1>&6
  10779. cat >> confdefs.h <<EOF
  10780. #define SIZEOF_LONG $ac_cv_sizeof_long
  10781. EOF
  10782.  
  10783.  
  10784.  
  10785. case "${host}" in
  10786.     arm-*-linux* )
  10787.         echo $ac_n "checking size of long long""... $ac_c" 1>&6
  10788. echo "configure:10789: checking size of long long" >&5
  10789. if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
  10790.   echo $ac_n "(cached) $ac_c" 1>&6
  10791. else
  10792.   if test "$cross_compiling" = yes; then
  10793.   ac_cv_sizeof_long_long=8
  10794. else
  10795.   cat > conftest.$ac_ext <<EOF
  10796. #line 10797 "configure"
  10797. #include "confdefs.h"
  10798. #include <stdio.h>
  10799. main()
  10800. {
  10801.   FILE *f=fopen("conftestval", "w");
  10802.   if (!f) exit(1);
  10803.   fprintf(f, "%d\n", sizeof(long long));
  10804.   exit(0);
  10805. }
  10806. EOF
  10807. if { (eval echo configure:10808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10808. then
  10809.   ac_cv_sizeof_long_long=`cat conftestval`
  10810. else
  10811.   echo "configure: failed program was:" >&5
  10812.   cat conftest.$ac_ext >&5
  10813.   rm -fr conftest*
  10814.   ac_cv_sizeof_long_long=0
  10815. fi
  10816. rm -fr conftest*
  10817. fi
  10818.  
  10819. fi
  10820. echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
  10821. cat >> confdefs.h <<EOF
  10822. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  10823. EOF
  10824.  
  10825.  
  10826.     ;;
  10827.     *-hp-hpux* )
  10828.         echo $ac_n "checking size of long long""... $ac_c" 1>&6
  10829. echo "configure:10830: checking size of long long" >&5
  10830. if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
  10831.   echo $ac_n "(cached) $ac_c" 1>&6
  10832. else
  10833.   if test "$cross_compiling" = yes; then
  10834.   ac_cv_sizeof_long_long=0
  10835. else
  10836.   cat > conftest.$ac_ext <<EOF
  10837. #line 10838 "configure"
  10838. #include "confdefs.h"
  10839. #include <stdio.h>
  10840. main()
  10841. {
  10842.   FILE *f=fopen("conftestval", "w");
  10843.   if (!f) exit(1);
  10844.   fprintf(f, "%d\n", sizeof(long long));
  10845.   exit(0);
  10846. }
  10847. EOF
  10848. if { (eval echo configure:10849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10849. then
  10850.   ac_cv_sizeof_long_long=`cat conftestval`
  10851. else
  10852.   echo "configure: failed program was:" >&5
  10853.   cat conftest.$ac_ext >&5
  10854.   rm -fr conftest*
  10855.   ac_cv_sizeof_long_long=0
  10856. fi
  10857. rm -fr conftest*
  10858. fi
  10859.  
  10860. fi
  10861. echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
  10862. cat >> confdefs.h <<EOF
  10863. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  10864. EOF
  10865.  
  10866.  
  10867.         if test "$ac_cv_sizeof_long_long" != "0"; then
  10868.                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
  10869.         fi
  10870.     ;;
  10871.     * )
  10872.         echo $ac_n "checking size of long long""... $ac_c" 1>&6
  10873. echo "configure:10874: checking size of long long" >&5
  10874. if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
  10875.   echo $ac_n "(cached) $ac_c" 1>&6
  10876. else
  10877.   if test "$cross_compiling" = yes; then
  10878.   ac_cv_sizeof_long_long=0
  10879. else
  10880.   cat > conftest.$ac_ext <<EOF
  10881. #line 10882 "configure"
  10882. #include "confdefs.h"
  10883. #include <stdio.h>
  10884. main()
  10885. {
  10886.   FILE *f=fopen("conftestval", "w");
  10887.   if (!f) exit(1);
  10888.   fprintf(f, "%d\n", sizeof(long long));
  10889.   exit(0);
  10890. }
  10891. EOF
  10892. if { (eval echo configure:10893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10893. then
  10894.   ac_cv_sizeof_long_long=`cat conftestval`
  10895. else
  10896.   echo "configure: failed program was:" >&5
  10897.   cat conftest.$ac_ext >&5
  10898.   rm -fr conftest*
  10899.   ac_cv_sizeof_long_long=0
  10900. fi
  10901. rm -fr conftest*
  10902. fi
  10903.  
  10904. fi
  10905. echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
  10906. cat >> confdefs.h <<EOF
  10907. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  10908. EOF
  10909.  
  10910.  
  10911. esac
  10912.  
  10913. echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
  10914. echo "configure:10915: checking size of wchar_t" >&5
  10915. if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
  10916.   echo $ac_n "(cached) $ac_c" 1>&6
  10917. else
  10918.   
  10919.     if test "$cross_compiling" = yes; then
  10920.   
  10921.             case "${host}" in
  10922.               *-pc-msdosdjgpp )
  10923.                 wx_cv_sizeof_wchar_t=0
  10924.                 ;;
  10925.               * )
  10926.                 wx_cv_sizeof_wchar_t=4
  10927.                 ;;
  10928.             esac
  10929.         
  10930.     
  10931. else
  10932.   cat > conftest.$ac_ext <<EOF
  10933. #line 10934 "configure"
  10934. #include "confdefs.h"
  10935.  
  10936.             /* DJGPP only has fake wchar_t: */
  10937.             #ifdef __DJGPP__
  10938.             #  error "fake wchar_t"
  10939.             #endif
  10940.             #ifdef HAVE_WCHAR_H
  10941.             #  ifdef __CYGWIN__
  10942.             #    include <stddef.h>
  10943.             #  endif
  10944.             #  include <wchar.h>
  10945.             #endif
  10946.             #ifdef HAVE_STDLIB_H
  10947.             #  include <stdlib.h>
  10948.             #endif
  10949.             #include <stdio.h>
  10950.             int main()
  10951.             {
  10952.                 FILE *f=fopen("conftestval", "w");
  10953.                 if (!f) exit(1);
  10954.                 fprintf(f, "%i", sizeof(wchar_t));
  10955.                 exit(0);
  10956.             }
  10957.         
  10958. EOF
  10959. if { (eval echo configure:10960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10960. then
  10961.   wx_cv_sizeof_wchar_t=`cat conftestval`
  10962. else
  10963.   echo "configure: failed program was:" >&5
  10964.   cat conftest.$ac_ext >&5
  10965.   rm -fr conftest*
  10966.   wx_cv_sizeof_wchar_t=0
  10967. fi
  10968. rm -fr conftest*
  10969. fi
  10970.  
  10971.  
  10972. fi
  10973.  
  10974. echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
  10975.  
  10976. cat >> confdefs.h <<EOF
  10977. #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
  10978. EOF
  10979.  
  10980.  
  10981. # Check whether --enable-largefile or --disable-largefile was given.
  10982. if test "${enable_largefile+set}" = set; then
  10983.   enableval="$enable_largefile"
  10984.   :
  10985. fi
  10986.  
  10987. if test "$enable_largefile" != no; then
  10988.             wx_largefile=no
  10989.     
  10990.     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
  10991. echo "configure:10992: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10992. if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
  10993.   echo $ac_n "(cached) $ac_c" 1>&6
  10994. else
  10995.   
  10996.           cat > conftest.$ac_ext <<EOF
  10997. #line 10998 "configure"
  10998. #include "confdefs.h"
  10999. #define _FILE_OFFSET_BITS 64
  11000.                           #include <sys/types.h>
  11001. int main() {
  11002. typedef struct {
  11003.     unsigned int field: sizeof(off_t) == 8;
  11004. } wxlf;
  11005.  
  11006. ; return 0; }
  11007. EOF
  11008. if { (eval echo configure:11009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11009.   rm -rf conftest*
  11010.   ac_cv_sys_file_offset_bits=64
  11011. else
  11012.   echo "configure: failed program was:" >&5
  11013.   cat conftest.$ac_ext >&5
  11014.   rm -rf conftest*
  11015.   ac_cv_sys_file_offset_bits=no
  11016. fi
  11017. rm -f conftest*
  11018.         
  11019.     
  11020. fi
  11021.  
  11022. echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
  11023.  
  11024.     if test "$ac_cv_sys_file_offset_bits" != no; then
  11025.         wx_largefile=yes
  11026.         cat >> confdefs.h <<EOF
  11027. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  11028. EOF
  11029.  
  11030.     fi
  11031.  
  11032.     if test "x$wx_largefile" != "xyes"; then
  11033.         
  11034.     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
  11035. echo "configure:11036: checking for _LARGE_FILES value needed for large files" >&5
  11036. if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
  11037.   echo $ac_n "(cached) $ac_c" 1>&6
  11038. else
  11039.   
  11040.           cat > conftest.$ac_ext <<EOF
  11041. #line 11042 "configure"
  11042. #include "confdefs.h"
  11043. #define _LARGE_FILES 1
  11044.                           #include <sys/types.h>
  11045. int main() {
  11046. typedef struct {
  11047.     unsigned int field: sizeof(off_t) == 8;
  11048. } wxlf;
  11049.  
  11050. ; return 0; }
  11051. EOF
  11052. if { (eval echo configure:11053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11053.   rm -rf conftest*
  11054.   ac_cv_sys_large_files=1
  11055. else
  11056.   echo "configure: failed program was:" >&5
  11057.   cat conftest.$ac_ext >&5
  11058.   rm -rf conftest*
  11059.   ac_cv_sys_large_files=no
  11060. fi
  11061. rm -f conftest*
  11062.         
  11063.     
  11064. fi
  11065.  
  11066. echo "$ac_t""$ac_cv_sys_large_files" 1>&6
  11067.  
  11068.     if test "$ac_cv_sys_large_files" != no; then
  11069.         wx_largefile=yes
  11070.         cat >> confdefs.h <<EOF
  11071. #define _LARGE_FILES $ac_cv_sys_large_files
  11072. EOF
  11073.  
  11074.     fi
  11075.  
  11076.     fi
  11077.  
  11078.     echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
  11079. echo "configure:11080: checking if large file support is available" >&5
  11080.     if test "x$wx_largefile" = "xyes"; then
  11081.         cat >> confdefs.h <<\EOF
  11082. #define HAVE_LARGEFILE_SUPPORT 1
  11083. EOF
  11084.  
  11085.     fi
  11086.     echo "$ac_t""$wx_largefile" 1>&6
  11087. fi
  11088.  
  11089.  
  11090. if test "x$wx_largefile" = "xyes"; then
  11091.     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
  11092.         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
  11093.     else
  11094.         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
  11095.     fi
  11096.     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
  11097. fi
  11098.  
  11099. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  11100. echo "configure:11101: checking whether byte ordering is bigendian" >&5
  11101. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  11102.   echo $ac_n "(cached) $ac_c" 1>&6
  11103. else
  11104.   ac_cv_c_bigendian=unknown
  11105. # See if sys/param.h defines the BYTE_ORDER macro.
  11106. cat > conftest.$ac_ext <<EOF
  11107. #line 11108 "configure"
  11108. #include "confdefs.h"
  11109. #include <sys/types.h>
  11110. #include <sys/param.h>
  11111. int main() {
  11112.  
  11113. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  11114.  bogus endian macros
  11115. #endif
  11116. ; return 0; }
  11117. EOF
  11118. if { (eval echo configure:11119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11119.   rm -rf conftest*
  11120.   # It does; now see whether it defined to BIG_ENDIAN or not.
  11121. cat > conftest.$ac_ext <<EOF
  11122. #line 11123 "configure"
  11123. #include "confdefs.h"
  11124. #include <sys/types.h>
  11125. #include <sys/param.h>
  11126. int main() {
  11127.  
  11128. #if BYTE_ORDER != BIG_ENDIAN
  11129.  not big endian
  11130. #endif
  11131. ; return 0; }
  11132. EOF
  11133. if { (eval echo configure:11134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11134.   rm -rf conftest*
  11135.   ac_cv_c_bigendian=yes
  11136. else
  11137.   echo "configure: failed program was:" >&5
  11138.   cat conftest.$ac_ext >&5
  11139.   rm -rf conftest*
  11140.   ac_cv_c_bigendian=no
  11141. fi
  11142. rm -f conftest*
  11143. else
  11144.   echo "configure: failed program was:" >&5
  11145.   cat conftest.$ac_ext >&5
  11146. fi
  11147. rm -f conftest*
  11148. if test $ac_cv_c_bigendian = unknown; then
  11149. if test "$cross_compiling" = yes; then
  11150.   ac_cv_c_bigendian=unknown
  11151. else
  11152.   cat > conftest.$ac_ext <<EOF
  11153. #line 11154 "configure"
  11154. #include "confdefs.h"
  11155. main () {
  11156.   /* Are we little or big endian?  From Harbison&Steele.  */
  11157.   union
  11158.   {
  11159.     long l;
  11160.     char c[sizeof (long)];
  11161.   } u;
  11162.   u.l = 1;
  11163.   exit (u.c[sizeof (long) - 1] == 1);
  11164. }
  11165. EOF
  11166. if { (eval echo configure:11167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11167. then
  11168.   ac_cv_c_bigendian=no
  11169. else
  11170.   echo "configure: failed program was:" >&5
  11171.   cat conftest.$ac_ext >&5
  11172.   rm -fr conftest*
  11173.   ac_cv_c_bigendian=yes
  11174. fi
  11175. rm -fr conftest*
  11176. fi
  11177.  
  11178. fi
  11179. fi
  11180.  
  11181. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  11182. if test $ac_cv_c_bigendian = unknown; then
  11183.   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
  11184. fi
  11185. if test $ac_cv_c_bigendian = yes; then
  11186.   cat >> confdefs.h <<\EOF
  11187. #define WORDS_BIGENDIAN 1
  11188. EOF
  11189.  
  11190. fi
  11191.  
  11192.  
  11193. echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
  11194. echo "configure:11195: checking how to run the C++ preprocessor" >&5
  11195. if test -z "$CXXCPP"; then
  11196. if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
  11197.   echo $ac_n "(cached) $ac_c" 1>&6
  11198. else
  11199.   ac_ext=C
  11200. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11201. ac_cpp='$CXXCPP $CPPFLAGS'
  11202. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11203. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11204. cross_compiling=$ac_cv_prog_cxx_cross
  11205.   CXXCPP="${CXX-g++} -E"
  11206.   cat > conftest.$ac_ext <<EOF
  11207. #include <sys/types.h>
  11208. #line 11209 "configure"
  11209. #include "confdefs.h"
  11210. #include <stdlib.h>
  11211. EOF
  11212. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11213. { (eval echo configure:11214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11214. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11215. if test -z "$ac_err"; then
  11216.   :
  11217. else
  11218.   echo "$ac_err" >&5
  11219.   echo "configure: failed program was:" >&5
  11220.   cat conftest.$ac_ext >&5
  11221.   rm -rf conftest*
  11222.   CXXCPP=/lib/cpp
  11223. fi
  11224. rm -f conftest*
  11225.   ac_cv_prog_CXXCPP="$CXXCPP"
  11226. ac_ext=C
  11227. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11228. ac_cpp='$CXXCPP $CPPFLAGS'
  11229. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11230. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11231. cross_compiling=$ac_cv_prog_cxx_cross
  11232. fi
  11233. fi
  11234. CXXCPP="$ac_cv_prog_CXXCPP"
  11235. echo "$ac_t""$CXXCPP" 1>&6
  11236.  
  11237.  
  11238.   if test "$cross_compiling" = "yes"; then
  11239.     cat >> confdefs.h <<\EOF
  11240. #define wxUSE_IOSTREAMH 1
  11241. EOF
  11242.  
  11243.   else
  11244.     
  11245.     ac_ext=C
  11246. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11247. ac_cpp='$CXXCPP $CPPFLAGS'
  11248. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11249. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11250. cross_compiling=$ac_cv_prog_cxx_cross
  11251.  
  11252.  
  11253.     for ac_hdr in iostream
  11254. do
  11255. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  11256. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  11257. echo "configure:11258: checking for $ac_hdr" >&5
  11258. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11259.   echo $ac_n "(cached) $ac_c" 1>&6
  11260. else
  11261.   cat > conftest.$ac_ext <<EOF
  11262. #include <sys/types.h>
  11263. #line 11264 "configure"
  11264. #include "confdefs.h"
  11265. #include <$ac_hdr>
  11266. EOF
  11267. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11268. { (eval echo configure:11269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11269. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11270. if test -z "$ac_err"; then
  11271.   rm -rf conftest*
  11272.   eval "ac_cv_header_$ac_safe=yes"
  11273. else
  11274.   echo "$ac_err" >&5
  11275.   echo "configure: failed program was:" >&5
  11276.   cat conftest.$ac_ext >&5
  11277.   rm -rf conftest*
  11278.   eval "ac_cv_header_$ac_safe=no"
  11279. fi
  11280. rm -f conftest*
  11281. fi
  11282. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11283.   echo "$ac_t""yes" 1>&6
  11284.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  11285.   cat >> confdefs.h <<EOF
  11286. #define $ac_tr_hdr 1
  11287. EOF
  11288.  
  11289. else
  11290.   echo "$ac_t""no" 1>&6
  11291. fi
  11292. done
  11293.  
  11294.  
  11295.     if test "$ac_cv_header_iostream" = "yes" ; then
  11296.       :
  11297.     else
  11298.       cat >> confdefs.h <<\EOF
  11299. #define wxUSE_IOSTREAMH 1
  11300. EOF
  11301.  
  11302.     fi
  11303.  
  11304.     ac_ext=c
  11305. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11306. ac_cpp='$CPP $CPPFLAGS'
  11307. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11308. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11309. cross_compiling=$ac_cv_prog_cc_cross
  11310.  
  11311.   fi
  11312.  
  11313.  
  11314.  
  11315.   echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
  11316. echo "configure:11317: checking if C++ compiler supports bool" >&5
  11317. if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
  11318.   echo $ac_n "(cached) $ac_c" 1>&6
  11319. else
  11320.   
  11321.     
  11322.     ac_ext=C
  11323. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11324. ac_cpp='$CXXCPP $CPPFLAGS'
  11325. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11326. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11327. cross_compiling=$ac_cv_prog_cxx_cross
  11328.  
  11329.  
  11330.     cat > conftest.$ac_ext <<EOF
  11331. #line 11332 "configure"
  11332. #include "confdefs.h"
  11333.  
  11334.       
  11335. int main() {
  11336.  
  11337.         bool b = true;
  11338.  
  11339.         return 0;
  11340.       
  11341. ; return 0; }
  11342. EOF
  11343. if { (eval echo configure:11344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11344.   rm -rf conftest*
  11345.   
  11346.         wx_cv_cpp_bool=yes
  11347.       
  11348. else
  11349.   echo "configure: failed program was:" >&5
  11350.   cat conftest.$ac_ext >&5
  11351.   rm -rf conftest*
  11352.   
  11353.         wx_cv_cpp_bool=no
  11354.       
  11355.     
  11356. fi
  11357. rm -f conftest*
  11358.  
  11359.     ac_ext=c
  11360. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11361. ac_cpp='$CPP $CPPFLAGS'
  11362. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11363. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11364. cross_compiling=$ac_cv_prog_cc_cross
  11365.  
  11366.   
  11367. fi
  11368.  
  11369. echo "$ac_t""$wx_cv_cpp_bool" 1>&6
  11370.  
  11371.   if test "$wx_cv_cpp_bool" = "yes"; then
  11372.     cat >> confdefs.h <<\EOF
  11373. #define HAVE_BOOL 1
  11374. EOF
  11375.  
  11376.   fi
  11377.  
  11378.  
  11379.  
  11380.   echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
  11381. echo "configure:11382: checking if C++ compiler supports the explicit keyword" >&5
  11382. if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
  11383.   echo $ac_n "(cached) $ac_c" 1>&6
  11384. else
  11385.   
  11386.     
  11387.     ac_ext=C
  11388. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11389. ac_cpp='$CXXCPP $CPPFLAGS'
  11390. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11391. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11392. cross_compiling=$ac_cv_prog_cxx_cross
  11393.  
  11394.  
  11395.             cat > conftest.$ac_ext <<EOF
  11396. #line 11397 "configure"
  11397. #include "confdefs.h"
  11398.  
  11399.         class Foo { public: explicit Foo(int) {} };
  11400.       
  11401. int main() {
  11402.  
  11403.         return 0;
  11404.       
  11405. ; return 0; }
  11406. EOF
  11407. if { (eval echo configure:11408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11408.   rm -rf conftest*
  11409.   
  11410.         cat > conftest.$ac_ext <<EOF
  11411. #line 11412 "configure"
  11412. #include "confdefs.h"
  11413.  
  11414.                 class Foo { public: explicit Foo(int) {} };
  11415.                 static void TakeFoo(const Foo& foo) { }
  11416.             
  11417. int main() {
  11418.  
  11419.                 TakeFoo(17);
  11420.                 return 0;
  11421.             
  11422. ; return 0; }
  11423. EOF
  11424. if { (eval echo configure:11425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11425.   rm -rf conftest*
  11426.   wx_cv_explicit=no
  11427. else
  11428.   echo "configure: failed program was:" >&5
  11429.   cat conftest.$ac_ext >&5
  11430.   rm -rf conftest*
  11431.   wx_cv_explicit=yes
  11432.         
  11433. fi
  11434. rm -f conftest*
  11435.       
  11436. else
  11437.   echo "configure: failed program was:" >&5
  11438.   cat conftest.$ac_ext >&5
  11439.   rm -rf conftest*
  11440.   wx_cv_explicit=no
  11441.     
  11442. fi
  11443. rm -f conftest*
  11444.  
  11445.     ac_ext=c
  11446. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11447. ac_cpp='$CPP $CPPFLAGS'
  11448. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11449. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11450. cross_compiling=$ac_cv_prog_cc_cross
  11451.  
  11452.   
  11453. fi
  11454.  
  11455. echo "$ac_t""$wx_cv_explicit" 1>&6
  11456.  
  11457.   if test "$wx_cv_explicit" = "yes"; then
  11458.     cat >> confdefs.h <<\EOF
  11459. #define HAVE_EXPLICIT 1
  11460. EOF
  11461.  
  11462.   fi
  11463.  
  11464.  
  11465.  
  11466. SEARCH_INCLUDE="\
  11467.     /usr/local/include        \
  11468.                               \
  11469.     /usr/Motif-1.2/include    \
  11470.     /usr/Motif-2.1/include    \
  11471.                               \
  11472.     /usr/include/Motif1.2     \
  11473.     /opt/xpm/include/X11      \
  11474.     /opt/GBxpm/include/       \
  11475.     /opt/GBxpm/X11/include/   \
  11476.                               \
  11477.     /usr/Motif1.2/include     \
  11478.     /usr/dt/include           \
  11479.     /usr/openwin/include      \
  11480.                               \
  11481.     /usr/include/Xm           \
  11482.                               \
  11483.     /usr/X11R6/include        \
  11484.     /usr/X11R6.4/include      \
  11485.     /usr/X11R5/include        \
  11486.     /usr/X11R4/include        \
  11487.                               \
  11488.     /usr/include/X11R6        \
  11489.     /usr/include/X11R5        \
  11490.     /usr/include/X11R4        \
  11491.                               \
  11492.     /usr/local/X11R6/include  \
  11493.     /usr/local/X11R5/include  \
  11494.     /usr/local/X11R4/include  \
  11495.                               \
  11496.     /usr/local/include/X11R6  \
  11497.     /usr/local/include/X11R5  \
  11498.     /usr/local/include/X11R4  \
  11499.                               \
  11500.     /usr/X11/include          \
  11501.     /usr/include/X11          \
  11502.     /usr/local/X11/include    \
  11503.     /usr/local/include/X11    \
  11504.                               \
  11505.     /usr/X386/include         \
  11506.     /usr/x386/include         \
  11507.     /usr/XFree86/include/X11  \
  11508.                               \
  11509.     X:/XFree86/include        \
  11510.     X:/XFree86/include/X11    \
  11511.                               \
  11512.     /usr/include/gtk          \
  11513.     /usr/local/include/gtk    \
  11514.     /usr/include/glib         \
  11515.     /usr/local/include/glib   \
  11516.                               \
  11517.     /usr/include/qt           \
  11518.     /usr/local/include/qt     \
  11519.                               \
  11520.     /usr/include/windows      \
  11521.     /usr/include/wine         \
  11522.     /usr/local/include/wine   \
  11523.                               \
  11524.     /usr/unsupported/include  \
  11525.     /usr/athena/include       \
  11526.     /usr/local/x11r5/include  \
  11527.     /usr/lpp/Xamples/include  \
  11528.                               \
  11529.     /usr/openwin/share/include"
  11530.  
  11531. SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
  11532.  
  11533.  
  11534. cat > confcache <<\EOF
  11535. # This file is a shell script that caches the results of configure
  11536. # tests run on this system so they can be shared between configure
  11537. # scripts and configure runs.  It is not useful on other systems.
  11538. # If it contains results you don't want to keep, you may remove or edit it.
  11539. #
  11540. # By default, configure uses ./config.cache as the cache file,
  11541. # creating it if it does not exist already.  You can give configure
  11542. # the --cache-file=FILE option to use a different cache file; that is
  11543. # what configure does when it calls configure scripts in
  11544. # subdirectories, so they share the cache.
  11545. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  11546. # config.status only pays attention to the cache file if you give it the
  11547. # --recheck option to rerun configure.
  11548. #
  11549. EOF
  11550. # The following way of writing the cache mishandles newlines in values,
  11551. # but we know of no workaround that is simple, portable, and efficient.
  11552. # So, don't put newlines in cache variables' values.
  11553. # Ultrix sh set writes to stderr and can't be redirected directly,
  11554. # and sets the high bit in the cache file unless we assign to the vars.
  11555. (set) 2>&1 |
  11556.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11557.   *ac_space=\ *)
  11558.     # `set' does not quote correctly, so add quotes (double-quote substitution
  11559.     # turns \\\\ into \\, and sed turns \\ into \).
  11560.     sed -n \
  11561.       -e "s/'/'\\\\''/g" \
  11562.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  11563.     ;;
  11564.   *)
  11565.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  11566.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  11567.     ;;
  11568.   esac >> confcache
  11569. if cmp -s $cache_file confcache; then
  11570.   :
  11571. else
  11572.   if test -w $cache_file; then
  11573.     echo "updating cache $cache_file"
  11574.     cat confcache > $cache_file
  11575.   else
  11576.     echo "not updating unwritable cache $cache_file"
  11577.   fi
  11578. fi
  11579. rm -f confcache
  11580.  
  11581.  
  11582. if test "$USE_LINUX" = 1; then
  11583.     echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
  11584. echo "configure:11585: checking for glibc 2.1 or later" >&5
  11585. if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
  11586.   echo $ac_n "(cached) $ac_c" 1>&6
  11587. else
  11588.   
  11589.         cat > conftest.$ac_ext <<EOF
  11590. #line 11591 "configure"
  11591. #include "confdefs.h"
  11592. #include <features.h>
  11593. int main() {
  11594.  
  11595.                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
  11596.                     #error not glibc2.1
  11597.                 #endif
  11598.             
  11599. ; return 0; }
  11600. EOF
  11601. if { (eval echo configure:11602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11602.   rm -rf conftest*
  11603.   
  11604.                 wx_cv_lib_glibc21=yes
  11605.             
  11606. else
  11607.   echo "configure: failed program was:" >&5
  11608.   cat conftest.$ac_ext >&5
  11609.   rm -rf conftest*
  11610.   
  11611.                 wx_cv_lib_glibc21=no
  11612.             
  11613.         
  11614. fi
  11615. rm -f conftest*
  11616.     
  11617. fi
  11618.  
  11619. echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
  11620.     if test "$wx_cv_lib_glibc21" = "yes"; then
  11621.         cat >> confdefs.h <<\EOF
  11622. #define wxHAVE_GLIBC2 1
  11623. EOF
  11624.  
  11625.     fi
  11626. fi
  11627.  
  11628. if test "x$wx_cv_lib_glibc21" = "xyes"; then
  11629.     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
  11630.         cat >> confdefs.h <<\EOF
  11631. #define _GNU_SOURCE 1
  11632. EOF
  11633.  
  11634.     fi
  11635. fi
  11636.  
  11637.  
  11638.  
  11639. REGEX_INCLUDE=
  11640. if test "$wxUSE_REGEX" != "no"; then
  11641.     cat >> confdefs.h <<\EOF
  11642. #define wxUSE_REGEX 1
  11643. EOF
  11644.  
  11645.  
  11646.     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
  11647.                         ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
  11648. echo $ac_n "checking for regex.h""... $ac_c" 1>&6
  11649. echo "configure:11650: checking for regex.h" >&5
  11650. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11651.   echo $ac_n "(cached) $ac_c" 1>&6
  11652. else
  11653.   cat > conftest.$ac_ext <<EOF
  11654. #include <sys/types.h>
  11655. #line 11656 "configure"
  11656. #include "confdefs.h"
  11657. #include <regex.h>
  11658. EOF
  11659. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11660. { (eval echo configure:11661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11661. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11662. if test -z "$ac_err"; then
  11663.   rm -rf conftest*
  11664.   eval "ac_cv_header_$ac_safe=yes"
  11665. else
  11666.   echo "$ac_err" >&5
  11667.   echo "configure: failed program was:" >&5
  11668.   cat conftest.$ac_ext >&5
  11669.   rm -rf conftest*
  11670.   eval "ac_cv_header_$ac_safe=no"
  11671. fi
  11672. rm -f conftest*
  11673. fi
  11674. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11675.   echo "$ac_t""yes" 1>&6
  11676.   for ac_func in regcomp
  11677. do
  11678. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  11679. echo "configure:11680: checking for $ac_func" >&5
  11680. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  11681.   echo $ac_n "(cached) $ac_c" 1>&6
  11682. else
  11683.   cat > conftest.$ac_ext <<EOF
  11684. #line 11685 "configure"
  11685. #include "confdefs.h"
  11686. /* System header to define __stub macros and hopefully few prototypes,
  11687.     which can conflict with char $ac_func(); below.  */
  11688. #include <assert.h>
  11689. /* Override any gcc2 internal prototype to avoid an error.  */
  11690. /* We use char because int might match the return type of a gcc2
  11691.     builtin and then its argument prototype would still apply.  */
  11692. char $ac_func();
  11693.  
  11694. int main() {
  11695.  
  11696. /* The GNU C library defines this for functions which it implements
  11697.     to always fail with ENOSYS.  Some functions are actually named
  11698.     something starting with __ and the normal name is an alias.  */
  11699. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11700. choke me
  11701. #else
  11702. $ac_func();
  11703. #endif
  11704.  
  11705. ; return 0; }
  11706. EOF
  11707. if { (eval echo configure:11708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11708.   rm -rf conftest*
  11709.   eval "ac_cv_func_$ac_func=yes"
  11710. else
  11711.   echo "configure: failed program was:" >&5
  11712.   cat conftest.$ac_ext >&5
  11713.   rm -rf conftest*
  11714.   eval "ac_cv_func_$ac_func=no"
  11715. fi
  11716. rm -f conftest*
  11717. fi
  11718.  
  11719. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  11720.   echo "$ac_t""yes" 1>&6
  11721.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  11722.   cat >> confdefs.h <<EOF
  11723. #define $ac_tr_func 1
  11724. EOF
  11725.  
  11726. else
  11727.   echo "$ac_t""no" 1>&6
  11728. fi
  11729. done
  11730.  
  11731. else
  11732.   echo "$ac_t""no" 1>&6
  11733. fi
  11734.  
  11735.  
  11736.         if test "x$ac_cv_func_regcomp" != "xyes"; then
  11737.             if test "$wxUSE_REGEX" = "sys" ; then
  11738.                 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
  11739.             else
  11740.                 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
  11741.                 wxUSE_REGEX=builtin
  11742.             fi
  11743.         else
  11744.                         wxUSE_REGEX=sys
  11745.         fi
  11746.     fi
  11747.  
  11748.     if test "$wxUSE_REGEX" = "builtin" ; then
  11749.         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
  11750.     fi
  11751. fi
  11752.  
  11753.  
  11754. ZLIB_INCLUDE=
  11755. ZLIB_LINK=
  11756. if test "$wxUSE_ZLIB" != "no" ; then
  11757.     cat >> confdefs.h <<\EOF
  11758. #define wxUSE_ZLIB 1
  11759. EOF
  11760.  
  11761.  
  11762.     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
  11763.                                                 if test "$USE_DARWIN" = 1; then
  11764.             system_zlib_h_ok="yes"
  11765.         else
  11766.                                                                                     echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
  11767. echo "configure:11768: checking for zlib.h >= 1.1.4" >&5
  11768. if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
  11769.   echo $ac_n "(cached) $ac_c" 1>&6
  11770. else
  11771.   if test "$cross_compiling" = yes; then
  11772.                       ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
  11773. echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
  11774. echo "configure:11775: checking for zlib.h" >&5
  11775. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11776.   echo $ac_n "(cached) $ac_c" 1>&6
  11777. else
  11778.   cat > conftest.$ac_ext <<EOF
  11779. #include <sys/types.h>
  11780. #line 11781 "configure"
  11781. #include "confdefs.h"
  11782. #include <zlib.h>
  11783. EOF
  11784. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11785. { (eval echo configure:11786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11786. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11787. if test -z "$ac_err"; then
  11788.   rm -rf conftest*
  11789.   eval "ac_cv_header_$ac_safe=yes"
  11790. else
  11791.   echo "$ac_err" >&5
  11792.   echo "configure: failed program was:" >&5
  11793.   cat conftest.$ac_ext >&5
  11794.   rm -rf conftest*
  11795.   eval "ac_cv_header_$ac_safe=no"
  11796. fi
  11797. rm -f conftest*
  11798. fi
  11799. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11800.   echo "$ac_t""yes" 1>&6
  11801.   :
  11802. else
  11803.   echo "$ac_t""no" 1>&6
  11804. fi
  11805.  
  11806.                 
  11807. else
  11808.   cat > conftest.$ac_ext <<EOF
  11809. #line 11810 "configure"
  11810. #include "confdefs.h"
  11811.  
  11812.                                                 #include <zlib.h>
  11813.                         #include <stdio.h>
  11814.  
  11815.                                                 
  11816.                         int main()
  11817.                         {
  11818.                             FILE *f=fopen("conftestval", "w");
  11819.                             if (!f) exit(1);
  11820.                             fprintf(f, "%s",
  11821.                                     ZLIB_VERSION[0] == '1' &&
  11822.                                     (ZLIB_VERSION[2] > '1' ||
  11823.                                     (ZLIB_VERSION[2] == '1' &&
  11824.                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
  11825.                             exit(0);
  11826.                         }
  11827.                         
  11828.                     
  11829. EOF
  11830. if { (eval echo configure:11831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11831. then
  11832.   ac_cv_header_zlib_h=`cat conftestval`
  11833. else
  11834.   echo "configure: failed program was:" >&5
  11835.   cat conftest.$ac_ext >&5
  11836.   rm -fr conftest*
  11837.   ac_cv_header_zlib_h=no
  11838. fi
  11839. rm -fr conftest*
  11840. fi
  11841.  
  11842.             
  11843. fi
  11844.  
  11845. echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
  11846.  
  11847.             system_zlib_h_ok=$ac_cv_header_zlib_h
  11848.         fi
  11849.  
  11850.         if test "$system_zlib_h_ok" = "yes"; then
  11851.             echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
  11852. echo "configure:11853: checking for deflate in -lz" >&5
  11853. ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
  11854. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  11855.   echo $ac_n "(cached) $ac_c" 1>&6
  11856. else
  11857.   ac_save_LIBS="$LIBS"
  11858. LIBS="-lz  $LIBS"
  11859. cat > conftest.$ac_ext <<EOF
  11860. #line 11861 "configure"
  11861. #include "confdefs.h"
  11862. /* Override any gcc2 internal prototype to avoid an error.  */
  11863. /* We use char because int might match the return type of a gcc2
  11864.     builtin and then its argument prototype would still apply.  */
  11865. char deflate();
  11866.  
  11867. int main() {
  11868. deflate()
  11869. ; return 0; }
  11870. EOF
  11871. if { (eval echo configure:11872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11872.   rm -rf conftest*
  11873.   eval "ac_cv_lib_$ac_lib_var=yes"
  11874. else
  11875.   echo "configure: failed program was:" >&5
  11876.   cat conftest.$ac_ext >&5
  11877.   rm -rf conftest*
  11878.   eval "ac_cv_lib_$ac_lib_var=no"
  11879. fi
  11880. rm -f conftest*
  11881. LIBS="$ac_save_LIBS"
  11882.  
  11883. fi
  11884. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  11885.   echo "$ac_t""yes" 1>&6
  11886.   ZLIB_LINK=" -lz"
  11887. else
  11888.   echo "$ac_t""no" 1>&6
  11889. fi
  11890.  
  11891.         fi
  11892.  
  11893.         if test "x$ZLIB_LINK" = "x" ; then
  11894.             if test "$wxUSE_ZLIB" = "sys" ; then
  11895.                 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
  11896.             else
  11897.                 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
  11898.                 wxUSE_ZLIB=builtin
  11899.             fi
  11900.         else
  11901.                         wxUSE_ZLIB=sys
  11902.         fi
  11903.     fi
  11904.  
  11905.     if test "$wxUSE_ZLIB" = "builtin" ; then
  11906.         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
  11907.     fi
  11908. fi
  11909.  
  11910.  
  11911. PNG_INCLUDE=
  11912. PNG_LINK=
  11913. if test "$wxUSE_LIBPNG" != "no" ; then
  11914.     cat >> confdefs.h <<\EOF
  11915. #define wxUSE_LIBPNG 1
  11916. EOF
  11917.  
  11918.  
  11919.     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
  11920.         echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
  11921.         wxUSE_LIBPNG=sys
  11922.     fi
  11923.  
  11924.                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
  11925.         echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
  11926.         wxUSE_LIBPNG=builtin
  11927.     fi
  11928.  
  11929.     if test "$wxUSE_MGL" != 1 ; then
  11930.                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
  11931.                                     echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
  11932. echo "configure:11933: checking for png.h > 0.90" >&5
  11933. if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
  11934.   echo $ac_n "(cached) $ac_c" 1>&6
  11935. else
  11936.   if test "$cross_compiling" = yes; then
  11937.                       ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
  11938. echo $ac_n "checking for png.h""... $ac_c" 1>&6
  11939. echo "configure:11940: checking for png.h" >&5
  11940. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11941.   echo $ac_n "(cached) $ac_c" 1>&6
  11942. else
  11943.   cat > conftest.$ac_ext <<EOF
  11944. #include <sys/types.h>
  11945. #line 11946 "configure"
  11946. #include "confdefs.h"
  11947. #include <png.h>
  11948. EOF
  11949. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11950. { (eval echo configure:11951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11951. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11952. if test -z "$ac_err"; then
  11953.   rm -rf conftest*
  11954.   eval "ac_cv_header_$ac_safe=yes"
  11955. else
  11956.   echo "$ac_err" >&5
  11957.   echo "configure: failed program was:" >&5
  11958.   cat conftest.$ac_ext >&5
  11959.   rm -rf conftest*
  11960.   eval "ac_cv_header_$ac_safe=no"
  11961. fi
  11962. rm -f conftest*
  11963. fi
  11964. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11965.   echo "$ac_t""yes" 1>&6
  11966.   :
  11967. else
  11968.   echo "$ac_t""no" 1>&6
  11969. fi
  11970.  
  11971.                 
  11972. else
  11973.   cat > conftest.$ac_ext <<EOF
  11974. #line 11975 "configure"
  11975. #include "confdefs.h"
  11976.  
  11977.                                                 #include <png.h>
  11978.                         #include <stdio.h>
  11979.  
  11980.                         int main()
  11981.                         {
  11982.                             FILE *f=fopen("conftestval", "w");
  11983.                             if (!f) exit(1);
  11984.                             fprintf(f, "%s",
  11985.                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
  11986.                             exit(0);
  11987.                         }
  11988.                     
  11989. EOF
  11990. if { (eval echo configure:11991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  11991. then
  11992.   ac_cv_header_png_h=`cat conftestval`
  11993. else
  11994.   echo "configure: failed program was:" >&5
  11995.   cat conftest.$ac_ext >&5
  11996.   rm -fr conftest*
  11997.   ac_cv_header_png_h=no
  11998. fi
  11999. rm -fr conftest*
  12000. fi
  12001.  
  12002.             
  12003. fi
  12004.  
  12005. echo "$ac_t""$ac_cv_header_png_h" 1>&6
  12006.  
  12007.             if test "$ac_cv_header_png_h" = "yes"; then
  12008.                 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
  12009. echo "configure:12010: checking for png_check_sig in -lpng" >&5
  12010. ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
  12011. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12012.   echo $ac_n "(cached) $ac_c" 1>&6
  12013. else
  12014.   ac_save_LIBS="$LIBS"
  12015. LIBS="-lpng -lz -lm $LIBS"
  12016. cat > conftest.$ac_ext <<EOF
  12017. #line 12018 "configure"
  12018. #include "confdefs.h"
  12019. /* Override any gcc2 internal prototype to avoid an error.  */
  12020. /* We use char because int might match the return type of a gcc2
  12021.     builtin and then its argument prototype would still apply.  */
  12022. char png_check_sig();
  12023.  
  12024. int main() {
  12025. png_check_sig()
  12026. ; return 0; }
  12027. EOF
  12028. if { (eval echo configure:12029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12029.   rm -rf conftest*
  12030.   eval "ac_cv_lib_$ac_lib_var=yes"
  12031. else
  12032.   echo "configure: failed program was:" >&5
  12033.   cat conftest.$ac_ext >&5
  12034.   rm -rf conftest*
  12035.   eval "ac_cv_lib_$ac_lib_var=no"
  12036. fi
  12037. rm -f conftest*
  12038. LIBS="$ac_save_LIBS"
  12039.  
  12040. fi
  12041. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  12042.   echo "$ac_t""yes" 1>&6
  12043.   PNG_LINK=" -lpng"
  12044. else
  12045.   echo "$ac_t""no" 1>&6
  12046. fi
  12047.  
  12048.             fi
  12049.  
  12050.             if test "x$PNG_LINK" = "x" ; then
  12051.                 if test "$wxUSE_LIBPNG" = "sys" ; then
  12052.                     { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
  12053.                 else
  12054.                     echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
  12055.                     wxUSE_LIBPNG=builtin
  12056.                 fi
  12057.             else
  12058.                                 wxUSE_LIBPNG=sys
  12059.             fi
  12060.         fi
  12061.     fi
  12062.  
  12063.     if test "$wxUSE_LIBPNG" = "builtin" ; then
  12064.         PNG_INCLUDE="-I\${top_srcdir}/src/png"
  12065.     fi
  12066.  
  12067.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
  12068. fi
  12069.  
  12070.  
  12071. JPEG_INCLUDE=
  12072. JPEG_LINK=
  12073. if test "$wxUSE_LIBJPEG" != "no" ; then
  12074.     cat >> confdefs.h <<\EOF
  12075. #define wxUSE_LIBJPEG 1
  12076. EOF
  12077.  
  12078.  
  12079.     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
  12080.         echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
  12081.         wxUSE_LIBJPEG=sys
  12082.     fi
  12083.  
  12084.     if test "$wxUSE_MGL" != 1 ; then
  12085.                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
  12086.                                                 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
  12087. echo "configure:12088: checking for jpeglib.h" >&5
  12088.             if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
  12089.   echo $ac_n "(cached) $ac_c" 1>&6
  12090. else
  12091.   cat > conftest.$ac_ext <<EOF
  12092. #line 12093 "configure"
  12093. #include "confdefs.h"
  12094.  
  12095.                         #undef HAVE_STDLIB_H
  12096.                         #include <stdio.h>
  12097.                         #include <jpeglib.h>
  12098.                     
  12099. int main() {
  12100.  
  12101.                     
  12102. ; return 0; }
  12103. EOF
  12104. if { (eval echo configure:12105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  12105.   rm -rf conftest*
  12106.   ac_cv_header_jpeglib_h=yes
  12107. else
  12108.   echo "configure: failed program was:" >&5
  12109.   cat conftest.$ac_ext >&5
  12110.   rm -rf conftest*
  12111.   ac_cv_header_jpeglib_h=no
  12112.                 
  12113. fi
  12114. rm -f conftest*
  12115.             
  12116. fi
  12117.  
  12118.             echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
  12119.  
  12120.             if test "$ac_cv_header_jpeglib_h" = "yes"; then
  12121.                 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
  12122. echo "configure:12123: checking for jpeg_read_header in -ljpeg" >&5
  12123. ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
  12124. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12125.   echo $ac_n "(cached) $ac_c" 1>&6
  12126. else
  12127.   ac_save_LIBS="$LIBS"
  12128. LIBS="-ljpeg  $LIBS"
  12129. cat > conftest.$ac_ext <<EOF
  12130. #line 12131 "configure"
  12131. #include "confdefs.h"
  12132. /* Override any gcc2 internal prototype to avoid an error.  */
  12133. /* We use char because int might match the return type of a gcc2
  12134.     builtin and then its argument prototype would still apply.  */
  12135. char jpeg_read_header();
  12136.  
  12137. int main() {
  12138. jpeg_read_header()
  12139. ; return 0; }
  12140. EOF
  12141. if { (eval echo configure:12142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12142.   rm -rf conftest*
  12143.   eval "ac_cv_lib_$ac_lib_var=yes"
  12144. else
  12145.   echo "configure: failed program was:" >&5
  12146.   cat conftest.$ac_ext >&5
  12147.   rm -rf conftest*
  12148.   eval "ac_cv_lib_$ac_lib_var=no"
  12149. fi
  12150. rm -f conftest*
  12151. LIBS="$ac_save_LIBS"
  12152.  
  12153. fi
  12154. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  12155.   echo "$ac_t""yes" 1>&6
  12156.   JPEG_LINK=" -ljpeg"
  12157. else
  12158.   echo "$ac_t""no" 1>&6
  12159. fi
  12160.  
  12161.             fi
  12162.  
  12163.             if test "x$JPEG_LINK" = "x" ; then
  12164.                 if test "$wxUSE_LIBJPEG" = "sys" ; then
  12165.                     { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
  12166.                 else
  12167.                     echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
  12168.                     wxUSE_LIBJPEG=builtin
  12169.                 fi
  12170.             else
  12171.                                 wxUSE_LIBJPEG=sys
  12172.             fi
  12173.         fi
  12174.     fi
  12175.  
  12176.     if test "$wxUSE_LIBJPEG" = "builtin" ; then
  12177.         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
  12178.     fi
  12179. fi
  12180.  
  12181.  
  12182. TIFF_INCLUDE=
  12183. TIFF_LINK=
  12184. TIFF_PREREQ_LINKS=-lm
  12185. if test "$wxUSE_LIBTIFF" != "no" ; then
  12186.     cat >> confdefs.h <<\EOF
  12187. #define wxUSE_LIBTIFF 1
  12188. EOF
  12189.  
  12190.  
  12191.     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
  12192.                         if test "$wxUSE_LIBJPEG" = "sys"; then
  12193.             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
  12194.         fi
  12195.         if test "$wxUSE_ZLIB" = "sys"; then
  12196.             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
  12197.         fi
  12198.         ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
  12199. echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
  12200. echo "configure:12201: checking for tiffio.h" >&5
  12201. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  12202.   echo $ac_n "(cached) $ac_c" 1>&6
  12203. else
  12204.   cat > conftest.$ac_ext <<EOF
  12205. #include <sys/types.h>
  12206. #line 12207 "configure"
  12207. #include "confdefs.h"
  12208. #include <tiffio.h>
  12209. EOF
  12210. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12211. { (eval echo configure:12212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12212. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12213. if test -z "$ac_err"; then
  12214.   rm -rf conftest*
  12215.   eval "ac_cv_header_$ac_safe=yes"
  12216. else
  12217.   echo "$ac_err" >&5
  12218.   echo "configure: failed program was:" >&5
  12219.   cat conftest.$ac_ext >&5
  12220.   rm -rf conftest*
  12221.   eval "ac_cv_header_$ac_safe=no"
  12222. fi
  12223. rm -f conftest*
  12224. fi
  12225. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  12226.   echo "$ac_t""yes" 1>&6
  12227.   echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
  12228. echo "configure:12229: checking for TIFFError in -ltiff" >&5
  12229. ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
  12230. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  12231.   echo $ac_n "(cached) $ac_c" 1>&6
  12232. else
  12233.   ac_save_LIBS="$LIBS"
  12234. LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
  12235. cat > conftest.$ac_ext <<EOF
  12236. #line 12237 "configure"
  12237. #include "confdefs.h"
  12238. /* Override any gcc2 internal prototype to avoid an error.  */
  12239. /* We use char because int might match the return type of a gcc2
  12240.     builtin and then its argument prototype would still apply.  */
  12241. char TIFFError();
  12242.  
  12243. int main() {
  12244. TIFFError()
  12245. ; return 0; }
  12246. EOF
  12247. if { (eval echo configure:12248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12248.   rm -rf conftest*
  12249.   eval "ac_cv_lib_$ac_lib_var=yes"
  12250. else
  12251.   echo "configure: failed program was:" >&5
  12252.   cat conftest.$ac_ext >&5
  12253.   rm -rf conftest*
  12254.   eval "ac_cv_lib_$ac_lib_var=no"
  12255. fi
  12256. rm -f conftest*
  12257. LIBS="$ac_save_LIBS"
  12258.  
  12259. fi
  12260. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  12261.   echo "$ac_t""yes" 1>&6
  12262.   TIFF_LINK=" -ltiff"
  12263. else
  12264.   echo "$ac_t""no" 1>&6
  12265. fi
  12266.  
  12267.                        
  12268. else
  12269.   echo "$ac_t""no" 1>&6
  12270. fi
  12271.  
  12272.  
  12273.         if test "x$TIFF_LINK" = "x" ; then
  12274.             if test "$wxUSE_LIBTIFF" = "sys" ; then
  12275.                 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
  12276.             else
  12277.                 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
  12278.                 wxUSE_LIBTIFF=builtin
  12279.             fi
  12280.         else
  12281.                         wxUSE_LIBTIFF=sys
  12282.         fi
  12283.     fi
  12284.  
  12285.     if test "$wxUSE_LIBTIFF" = "builtin" ; then
  12286.         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
  12287.     fi
  12288. fi
  12289.  
  12290.  
  12291. AFMINSTALL=
  12292. WIN32INSTALL=
  12293.  
  12294. TOOLKIT=
  12295. TOOLKIT_INCLUDE=
  12296. WIDGET_SET=
  12297.  
  12298. if test "$USE_WIN32" = 1 ; then
  12299.     for ac_hdr in w32api.h
  12300. do
  12301. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  12302. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  12303. echo "configure:12304: checking for $ac_hdr" >&5
  12304. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  12305.   echo $ac_n "(cached) $ac_c" 1>&6
  12306. else
  12307.   cat > conftest.$ac_ext <<EOF
  12308. #include <sys/types.h>
  12309. #line 12310 "configure"
  12310. #include "confdefs.h"
  12311. #include <$ac_hdr>
  12312. EOF
  12313. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12314. { (eval echo configure:12315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12315. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12316. if test -z "$ac_err"; then
  12317.   rm -rf conftest*
  12318.   eval "ac_cv_header_$ac_safe=yes"
  12319. else
  12320.   echo "$ac_err" >&5
  12321.   echo "configure: failed program was:" >&5
  12322.   cat conftest.$ac_ext >&5
  12323.   rm -rf conftest*
  12324.   eval "ac_cv_header_$ac_safe=no"
  12325. fi
  12326. rm -f conftest*
  12327. fi
  12328. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  12329.   echo "$ac_t""yes" 1>&6
  12330.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  12331.   cat >> confdefs.h <<EOF
  12332. #define $ac_tr_hdr 1
  12333. EOF
  12334.  
  12335. else
  12336.   echo "$ac_t""no" 1>&6
  12337. fi
  12338. done
  12339.  
  12340.     ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
  12341. echo $ac_n "checking for windows.h""... $ac_c" 1>&6
  12342. echo "configure:12343: checking for windows.h" >&5
  12343. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  12344.   echo $ac_n "(cached) $ac_c" 1>&6
  12345. else
  12346.   cat > conftest.$ac_ext <<EOF
  12347. #include <sys/types.h>
  12348. #line 12349 "configure"
  12349. #include "confdefs.h"
  12350. #include <windows.h>
  12351. EOF
  12352. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  12353. { (eval echo configure:12354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  12354. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  12355. if test -z "$ac_err"; then
  12356.   rm -rf conftest*
  12357.   eval "ac_cv_header_$ac_safe=yes"
  12358. else
  12359.   echo "$ac_err" >&5
  12360.   echo "configure: failed program was:" >&5
  12361.   cat conftest.$ac_ext >&5
  12362.   rm -rf conftest*
  12363.   eval "ac_cv_header_$ac_safe=no"
  12364. fi
  12365. rm -f conftest*
  12366. fi
  12367. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  12368.   echo "$ac_t""yes" 1>&6
  12369.   :
  12370. else
  12371.   echo "$ac_t""no" 1>&6
  12372.  
  12373.         { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
  12374.     
  12375. fi
  12376.  
  12377.  
  12378.         echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
  12379. echo "configure:12380: checking if w32api has good enough MSIE support" >&5
  12380. if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
  12381.   echo $ac_n "(cached) $ac_c" 1>&6
  12382. else
  12383.   
  12384.       cat > conftest.$ac_ext <<EOF
  12385. #line 12386 "configure"
  12386. #include "confdefs.h"
  12387. #include <w32api.h>
  12388. int main() {
  12389.  
  12390.                        #define wxCHECK_W32API_VERSION( major, minor ) \
  12391.                        ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
  12392.                        && ( ( __W32API_MAJOR_VERSION > (major) ) \
  12393.                        || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
  12394.  
  12395.                        #if !wxCHECK_W32API_VERSION(1,1)
  12396.                        #error You need w32api 1.1 or newer
  12397.                        #endif
  12398.                      
  12399. ; return 0; }
  12400. EOF
  12401. if { (eval echo configure:12402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  12402.   rm -rf conftest*
  12403.   
  12404.                         wx_cv_w32api_win32_ie=yes
  12405.                      
  12406. else
  12407.   echo "configure: failed program was:" >&5
  12408.   cat conftest.$ac_ext >&5
  12409.   rm -rf conftest*
  12410.   
  12411.                         wx_cv_w32api_win32_ie=no
  12412.                      
  12413. fi
  12414. rm -f conftest*
  12415.     
  12416. fi
  12417.  
  12418. echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
  12419.     if test "$wx_cv_w32api_win32_ie" = "yes" ; then
  12420.         CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
  12421.     fi
  12422.  
  12423.             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
  12424.  
  12425.     case "${host}" in
  12426.         *-*-cygwin* )
  12427.                         LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
  12428.             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
  12429.     esac
  12430.  
  12431.         if test "$wxUSE_ODBC" = "yes" ; then
  12432.         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
  12433.     fi
  12434.  
  12435.     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
  12436.     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
  12437.  
  12438.         WIN32INSTALL=win32install
  12439. fi
  12440.  
  12441. if test "$USE_DARWIN" = 1; then
  12442.             if test "$wxUSE_PRECOMP" = "yes"; then
  12443.         CPPFLAGS="$CPPFLAGS -cpp-precomp"
  12444.     else
  12445.         CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
  12446.     fi
  12447. fi
  12448.  
  12449. if test "$wxUSE_GUI" = "yes"; then
  12450.     USE_GUI=1
  12451.  
  12452.     GUI_TK_LIBRARY=
  12453.  
  12454.     WXGTK12=
  12455.     WXGTK127=
  12456.     WXGTK20=
  12457.  
  12458.     if test "$wxUSE_MSW" = 1 ; then
  12459.         TOOLKIT=MSW
  12460.         GUIDIST=MSW_DIST
  12461.  
  12462.                                 case "${host}" in
  12463.             *-*-mingw32* )
  12464.                 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
  12465.         esac
  12466.     fi
  12467.  
  12468.     if test "$wxUSE_GTK" = 1; then
  12469.         echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
  12470. echo "configure:12471: checking for GTK+ version" >&5
  12471.  
  12472.         gtk_version_cached=1
  12473.         if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
  12474.   echo $ac_n "(cached) $ac_c" 1>&6
  12475. else
  12476.   
  12477.                                                 gtk_version_cached=0
  12478.                 echo "$ac_t""" 1>&6
  12479.  
  12480.                                                 GTK_MODULES=
  12481.                 if test "$wxUSE_THREADS" = "yes"; then
  12482.                     GTK_MODULES=gthread
  12483.                 fi
  12484.  
  12485.                                                 wx_cv_lib_gtk=
  12486.                 if test "x$wxUSE_GTK2" = "xyes"; then
  12487.                     # Check whether --enable-gtktest or --disable-gtktest was given.
  12488. if test "${enable_gtktest+set}" = set; then
  12489.   enableval="$enable_gtktest"
  12490.   :
  12491. else
  12492.   enable_gtktest=yes
  12493. fi
  12494.  
  12495.  
  12496.   pkg_config_args=gtk+-2.0
  12497.   for module in . $GTK_MODULES
  12498.   do
  12499.       case "$module" in
  12500.          gthread) 
  12501.              pkg_config_args="$pkg_config_args gthread-2.0"
  12502.          ;;
  12503.       esac
  12504.   done
  12505.  
  12506.   no_gtk=""
  12507.  
  12508.   # Extract the first word of "pkg-config", so it can be a program name with args.
  12509. set dummy pkg-config; ac_word=$2
  12510. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12511. echo "configure:12512: checking for $ac_word" >&5
  12512. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  12513.   echo $ac_n "(cached) $ac_c" 1>&6
  12514. else
  12515.   case "$PKG_CONFIG" in
  12516.   /* | [a-zA-Z]:*)
  12517.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12518.   ;;
  12519.   ?:/*)             
  12520.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  12521.   ;;
  12522.   *)
  12523.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  12524.   ac_dummy="$PATH"
  12525.   for ac_dir in $ac_dummy; do 
  12526.     test -z "$ac_dir" && ac_dir=.
  12527.     if test -f $ac_dir/$ac_word; then
  12528.       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  12529.       break
  12530.     fi
  12531.     if test -f $ac_dir/$ac_word$ac_exeext; then
  12532.       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word$ac_exeext"
  12533.       break
  12534.     fi
  12535.   done
  12536.   IFS="$ac_save_ifs"
  12537.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12538.   ;;
  12539. esac
  12540. fi
  12541. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12542. if test -n "$PKG_CONFIG"; then
  12543.   echo "$ac_t""$PKG_CONFIG" 1>&6
  12544. else
  12545.   echo "$ac_t""no" 1>&6
  12546. fi
  12547.  
  12548.  
  12549.   if test x$PKG_CONFIG != xno ; then
  12550.     if pkg-config --atleast-pkgconfig-version 0.7 ; then
  12551.       :
  12552.     else
  12553.       echo *** pkg-config too old; version 0.7 or better required.
  12554.       no_gtk=yes
  12555.       PKG_CONFIG=no
  12556.     fi
  12557.   else
  12558.     no_gtk=yes
  12559.   fi
  12560.  
  12561.   min_gtk_version=2.0.0
  12562.   echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
  12563. echo "configure:12564: checking for GTK+ - version >= $min_gtk_version" >&5
  12564.  
  12565.   if test x$PKG_CONFIG != xno ; then
  12566.     ## don't try to run the test against uninstalled libtool libs
  12567.     if $PKG_CONFIG --uninstalled $pkg_config_args; then
  12568.       echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
  12569.       enable_gtktest=no
  12570.     fi
  12571.  
  12572.     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
  12573.       :
  12574.     else
  12575.       no_gtk=yes
  12576.     fi
  12577.   fi
  12578.  
  12579.   if test x"$no_gtk" = x ; then
  12580.     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
  12581.     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
  12582.     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  12583.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  12584.     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  12585.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  12586.     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  12587.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  12588.     if test "x$enable_gtktest" = "xyes" ; then
  12589.       ac_save_CFLAGS="$CFLAGS"
  12590.       ac_save_LIBS="$LIBS"
  12591.       CFLAGS="$CFLAGS $GTK_CFLAGS"
  12592.       LIBS="$GTK_LIBS $LIBS"
  12593.       rm -f conf.gtktest
  12594.       if test "$cross_compiling" = yes; then
  12595.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  12596. else
  12597.   cat > conftest.$ac_ext <<EOF
  12598. #line 12599 "configure"
  12599. #include "confdefs.h"
  12600.  
  12601. #include <gtk/gtk.h>
  12602. #include <stdio.h>
  12603. #include <stdlib.h>
  12604.  
  12605. int 
  12606. main ()
  12607. {
  12608.   int major, minor, micro;
  12609.   char *tmp_version;
  12610.  
  12611.   system ("touch conf.gtktest");
  12612.  
  12613.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  12614.   tmp_version = g_strdup("$min_gtk_version");
  12615.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  12616.      printf("%s, bad version string\n", "$min_gtk_version");
  12617.      exit(1);
  12618.    }
  12619.  
  12620.   if ((gtk_major_version != $gtk_config_major_version) ||
  12621.       (gtk_minor_version != $gtk_config_minor_version) ||
  12622.       (gtk_micro_version != $gtk_config_micro_version))
  12623.     {
  12624.       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
  12625.              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  12626.              gtk_major_version, gtk_minor_version, gtk_micro_version);
  12627.       printf ("*** was found! If pkg-config was correct, then it is best\n");
  12628.       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
  12629.       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  12630.       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  12631.       printf("*** required on your system.\n");
  12632.       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
  12633.       printf("*** to point to the correct configuration files\n");
  12634.     } 
  12635.   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  12636.        (gtk_minor_version != GTK_MINOR_VERSION) ||
  12637.            (gtk_micro_version != GTK_MICRO_VERSION))
  12638.     {
  12639.       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
  12640.          GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  12641.       printf("*** library (version %d.%d.%d)\n",
  12642.          gtk_major_version, gtk_minor_version, gtk_micro_version);
  12643.     }
  12644.   else
  12645.     {
  12646.       if ((gtk_major_version > major) ||
  12647.         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  12648.         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  12649.       {
  12650.         return 0;
  12651.        }
  12652.      else
  12653.       {
  12654.         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
  12655.                gtk_major_version, gtk_minor_version, gtk_micro_version);
  12656.         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
  12657.            major, minor, micro);
  12658.         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
  12659.         printf("***\n");
  12660.         printf("*** If you have already installed a sufficiently new version, this error\n");
  12661.         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
  12662.         printf("*** being found. The easiest way to fix this is to remove the old version\n");
  12663.         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
  12664.         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
  12665.         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  12666.         printf("*** so that the correct libraries are found at run-time))\n");
  12667.       }
  12668.     }
  12669.   return 1;
  12670. }
  12671.  
  12672. EOF
  12673. if { (eval echo configure:12674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12674. then
  12675.   :
  12676. else
  12677.   echo "configure: failed program was:" >&5
  12678.   cat conftest.$ac_ext >&5
  12679.   rm -fr conftest*
  12680.   no_gtk=yes
  12681. fi
  12682. rm -fr conftest*
  12683. fi
  12684.  
  12685.        CFLAGS="$ac_save_CFLAGS"
  12686.        LIBS="$ac_save_LIBS"
  12687.      fi
  12688.   fi
  12689.   if test "x$no_gtk" = x ; then
  12690.      echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
  12691.      wx_cv_lib_gtk=2.0     
  12692.   else
  12693.      echo "$ac_t""no" 1>&6
  12694.      if test "$PKG_CONFIG" = "no" ; then
  12695.        echo "*** A new enough version of pkg-config was not found."
  12696.        echo "*** See http://pkgconfig.sourceforge.net"
  12697.      else
  12698.        if test -f conf.gtktest ; then
  12699.         :
  12700.        else
  12701.           echo "*** Could not run GTK+ test program, checking why..."
  12702.       ac_save_CFLAGS="$CFLAGS"
  12703.       ac_save_LIBS="$LIBS"
  12704.           CFLAGS="$CFLAGS $GTK_CFLAGS"
  12705.           LIBS="$LIBS $GTK_LIBS"
  12706.           cat > conftest.$ac_ext <<EOF
  12707. #line 12708 "configure"
  12708. #include "confdefs.h"
  12709.  
  12710. #include <gtk/gtk.h>
  12711. #include <stdio.h>
  12712.  
  12713. int main() {
  12714.  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
  12715. ; return 0; }
  12716. EOF
  12717. if { (eval echo configure:12718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12718.   rm -rf conftest*
  12719.    echo "*** The test program compiled, but did not run. This usually means"
  12720.           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
  12721.           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
  12722.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  12723.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  12724.           echo "*** is required on your system"
  12725.       echo "***"
  12726.           echo "*** If you have an old version installed, it is best to remove it, although"
  12727.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 
  12728. else
  12729.   echo "configure: failed program was:" >&5
  12730.   cat conftest.$ac_ext >&5
  12731.   rm -rf conftest*
  12732.    echo "*** The test program failed to compile or link. See the file config.log for the"
  12733.           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
  12734. fi
  12735. rm -f conftest*
  12736.           CFLAGS="$ac_save_CFLAGS"
  12737.           LIBS="$ac_save_LIBS"
  12738.        fi
  12739.      fi
  12740.      GTK_CFLAGS=""
  12741.      GTK_LIBS=""
  12742.      :
  12743.   fi
  12744.   
  12745.   
  12746.   rm -f conf.gtktest
  12747.  
  12748.                 else
  12749.                     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
  12750. if test "${with_gtk_prefix+set}" = set; then
  12751.   withval="$with_gtk_prefix"
  12752.   gtk_config_prefix="$withval"
  12753. else
  12754.   gtk_config_prefix=""
  12755. fi
  12756.  
  12757. # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
  12758. if test "${with_gtk_exec_prefix+set}" = set; then
  12759.   withval="$with_gtk_exec_prefix"
  12760.   gtk_config_exec_prefix="$withval"
  12761. else
  12762.   gtk_config_exec_prefix=""
  12763. fi
  12764.  
  12765. # Check whether --enable-gtktest or --disable-gtktest was given.
  12766. if test "${enable_gtktest+set}" = set; then
  12767.   enableval="$enable_gtktest"
  12768.   :
  12769. else
  12770.   enable_gtktest=yes
  12771. fi
  12772.  
  12773.  
  12774.   for module in . $GTK_MODULES
  12775.   do
  12776.       case "$module" in
  12777.          gthread) 
  12778.              gtk_config_args="$gtk_config_args gthread"
  12779.          ;;
  12780.       esac
  12781.   done
  12782.  
  12783.   if test x$gtk_config_exec_prefix != x ; then
  12784.      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
  12785.      if test x${GTK_CONFIG+set} != xset ; then
  12786.         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
  12787.      fi
  12788.   fi
  12789.   if test x$gtk_config_prefix != x ; then
  12790.      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
  12791.      if test x${GTK_CONFIG+set} != xset ; then
  12792.         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
  12793.      fi
  12794.   fi
  12795.  
  12796.   # Extract the first word of "gtk-config", so it can be a program name with args.
  12797. set dummy gtk-config; ac_word=$2
  12798. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12799. echo "configure:12800: checking for $ac_word" >&5
  12800. if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
  12801.   echo $ac_n "(cached) $ac_c" 1>&6
  12802. else
  12803.   case "$GTK_CONFIG" in
  12804.   /* | [a-zA-Z]:*)
  12805.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  12806.   ;;
  12807.   ?:/*)             
  12808.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
  12809.   ;;
  12810.   *)
  12811.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  12812.   ac_dummy="$PATH"
  12813.   for ac_dir in $ac_dummy; do 
  12814.     test -z "$ac_dir" && ac_dir=.
  12815.     if test -f $ac_dir/$ac_word; then
  12816.       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
  12817.       break
  12818.     fi
  12819.     if test -f $ac_dir/$ac_word$ac_exeext; then
  12820.       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word$ac_exeext"
  12821.       break
  12822.     fi
  12823.   done
  12824.   IFS="$ac_save_ifs"
  12825.   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  12826.   ;;
  12827. esac
  12828. fi
  12829. GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
  12830. if test -n "$GTK_CONFIG"; then
  12831.   echo "$ac_t""$GTK_CONFIG" 1>&6
  12832. else
  12833.   echo "$ac_t""no" 1>&6
  12834. fi
  12835.  
  12836.   min_gtk_version=1.2.7
  12837.   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
  12838. echo "configure:12839: checking for GTK - version >= $min_gtk_version" >&5
  12839.   no_gtk=""
  12840.   if test "$GTK_CONFIG" = "no" ; then
  12841.     no_gtk=yes
  12842.   else
  12843.     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
  12844.     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
  12845.     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
  12846.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  12847.     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
  12848.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  12849.     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
  12850.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  12851.     if test "x$enable_gtktest" = "xyes" ; then
  12852.       ac_save_CFLAGS="$CFLAGS"
  12853.       ac_save_LIBS="$LIBS"
  12854.       CFLAGS="$CFLAGS $GTK_CFLAGS"
  12855.       LIBS="$GTK_LIBS $LIBS"
  12856.       rm -f conf.gtktest
  12857.       if test "$cross_compiling" = yes; then
  12858.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  12859. else
  12860.   cat > conftest.$ac_ext <<EOF
  12861. #line 12862 "configure"
  12862. #include "confdefs.h"
  12863.  
  12864. #include <gtk/gtk.h>
  12865. #include <stdio.h>
  12866. #include <stdlib.h>
  12867.  
  12868. int 
  12869. main ()
  12870. {
  12871.   int major, minor, micro;
  12872.   char *tmp_version;
  12873.  
  12874.   system ("touch conf.gtktest");
  12875.  
  12876.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  12877.   tmp_version = g_strdup("$min_gtk_version");
  12878.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  12879.      printf("%s, bad version string\n", "$min_gtk_version");
  12880.      exit(1);
  12881.    }
  12882.  
  12883.   if ((gtk_major_version != $gtk_config_major_version) ||
  12884.       (gtk_minor_version != $gtk_config_minor_version) ||
  12885.       (gtk_micro_version != $gtk_config_micro_version))
  12886.     {
  12887.       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
  12888.              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  12889.              gtk_major_version, gtk_minor_version, gtk_micro_version);
  12890.       printf ("*** was found! If gtk-config was correct, then it is best\n");
  12891.       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
  12892.       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  12893.       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  12894.       printf("*** required on your system.\n");
  12895.       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
  12896.       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
  12897.       printf("*** before re-running configure\n");
  12898.     } 
  12899. #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  12900.   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  12901.        (gtk_minor_version != GTK_MINOR_VERSION) ||
  12902.            (gtk_micro_version != GTK_MICRO_VERSION))
  12903.     {
  12904.       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
  12905.          GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  12906.       printf("*** library (version %d.%d.%d)\n",
  12907.          gtk_major_version, gtk_minor_version, gtk_micro_version);
  12908.     }
  12909. #endif /* defined (GTK_MAJOR_VERSION) ... */
  12910.   else
  12911.     {
  12912.       if ((gtk_major_version > major) ||
  12913.         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  12914.         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  12915.       {
  12916.         return 0;
  12917.        }
  12918.      else
  12919.       {
  12920.         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
  12921.                gtk_major_version, gtk_minor_version, gtk_micro_version);
  12922.         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
  12923.            major, minor, micro);
  12924.         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
  12925.         printf("***\n");
  12926.         printf("*** If you have already installed a sufficiently new version, this error\n");
  12927.         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
  12928.         printf("*** being found. The easiest way to fix this is to remove the old version\n");
  12929.         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
  12930.         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
  12931.         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  12932.         printf("*** so that the correct libraries are found at run-time))\n");
  12933.       }
  12934.     }
  12935.   return 1;
  12936. }
  12937.  
  12938. EOF
  12939. if { (eval echo configure:12940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12940. then
  12941.   :
  12942. else
  12943.   echo "configure: failed program was:" >&5
  12944.   cat conftest.$ac_ext >&5
  12945.   rm -fr conftest*
  12946.   no_gtk=yes
  12947. fi
  12948. rm -fr conftest*
  12949. fi
  12950.  
  12951.        CFLAGS="$ac_save_CFLAGS"
  12952.        LIBS="$ac_save_LIBS"
  12953.      fi
  12954.   fi
  12955.   if test "x$no_gtk" = x ; then
  12956.      echo "$ac_t""yes" 1>&6
  12957.      wx_cv_lib_gtk=1.2.7     
  12958.   else
  12959.      echo "$ac_t""no" 1>&6
  12960.      if test "$GTK_CONFIG" = "no" ; then
  12961.        echo "*** The gtk-config script installed by GTK could not be found"
  12962.        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
  12963.        echo "*** your path, or set the GTK_CONFIG environment variable to the"
  12964.        echo "*** full path to gtk-config."
  12965.      else
  12966.        if test -f conf.gtktest ; then
  12967.         :
  12968.        else
  12969.           echo "*** Could not run GTK test program, checking why..."
  12970.           CFLAGS="$CFLAGS $GTK_CFLAGS"
  12971.           LIBS="$LIBS $GTK_LIBS"
  12972.           cat > conftest.$ac_ext <<EOF
  12973. #line 12974 "configure"
  12974. #include "confdefs.h"
  12975.  
  12976. #include <gtk/gtk.h>
  12977. #include <stdio.h>
  12978.  
  12979. int main() {
  12980.  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
  12981. ; return 0; }
  12982. EOF
  12983. if { (eval echo configure:12984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12984.   rm -rf conftest*
  12985.    echo "*** The test program compiled, but did not run. This usually means"
  12986.           echo "*** that the run-time linker is not finding GTK or finding the wrong"
  12987.           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
  12988.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  12989.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  12990.           echo "*** is required on your system"
  12991.       echo "***"
  12992.           echo "*** If you have an old version installed, it is best to remove it, although"
  12993.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  12994.           echo "***"
  12995.           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  12996.           echo "*** came with the system with the command"
  12997.           echo "***"
  12998.           echo "***    rpm --erase --nodeps gtk gtk-devel" 
  12999. else
  13000.   echo "configure: failed program was:" >&5
  13001.   cat conftest.$ac_ext >&5
  13002.   rm -rf conftest*
  13003.    echo "*** The test program failed to compile or link. See the file config.log for the"
  13004.           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
  13005.           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
  13006.           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
  13007. fi
  13008. rm -f conftest*
  13009.           CFLAGS="$ac_save_CFLAGS"
  13010.           LIBS="$ac_save_LIBS"
  13011.        fi
  13012.      fi
  13013.      GTK_CFLAGS=""
  13014.      GTK_LIBS=""
  13015.      :
  13016.   fi
  13017.   
  13018.   
  13019.   rm -f conf.gtktest
  13020.  
  13021.  
  13022.                     if test -z "$wx_cv_lib_gtk"; then
  13023.                         # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
  13024. if test "${with_gtk_prefix+set}" = set; then
  13025.   withval="$with_gtk_prefix"
  13026.   gtk_config_prefix="$withval"
  13027. else
  13028.   gtk_config_prefix=""
  13029. fi
  13030.  
  13031. # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
  13032. if test "${with_gtk_exec_prefix+set}" = set; then
  13033.   withval="$with_gtk_exec_prefix"
  13034.   gtk_config_exec_prefix="$withval"
  13035. else
  13036.   gtk_config_exec_prefix=""
  13037. fi
  13038.  
  13039. # Check whether --enable-gtktest or --disable-gtktest was given.
  13040. if test "${enable_gtktest+set}" = set; then
  13041.   enableval="$enable_gtktest"
  13042.   :
  13043. else
  13044.   enable_gtktest=yes
  13045. fi
  13046.  
  13047.  
  13048.   for module in . $GTK_MODULES
  13049.   do
  13050.       case "$module" in
  13051.          gthread) 
  13052.              gtk_config_args="$gtk_config_args gthread"
  13053.          ;;
  13054.       esac
  13055.   done
  13056.  
  13057.   if test x$gtk_config_exec_prefix != x ; then
  13058.      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
  13059.      if test x${GTK_CONFIG+set} != xset ; then
  13060.         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
  13061.      fi
  13062.   fi
  13063.   if test x$gtk_config_prefix != x ; then
  13064.      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
  13065.      if test x${GTK_CONFIG+set} != xset ; then
  13066.         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
  13067.      fi
  13068.   fi
  13069.  
  13070.   # Extract the first word of "gtk-config", so it can be a program name with args.
  13071. set dummy gtk-config; ac_word=$2
  13072. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  13073. echo "configure:13074: checking for $ac_word" >&5
  13074. if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
  13075.   echo $ac_n "(cached) $ac_c" 1>&6
  13076. else
  13077.   case "$GTK_CONFIG" in
  13078.   /* | [a-zA-Z]:*)
  13079.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  13080.   ;;
  13081.   ?:/*)             
  13082.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
  13083.   ;;
  13084.   *)
  13085.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  13086.   ac_dummy="$PATH"
  13087.   for ac_dir in $ac_dummy; do 
  13088.     test -z "$ac_dir" && ac_dir=.
  13089.     if test -f $ac_dir/$ac_word; then
  13090.       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
  13091.       break
  13092.     fi
  13093.     if test -f $ac_dir/$ac_word$ac_exeext; then
  13094.       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word$ac_exeext"
  13095.       break
  13096.     fi
  13097.   done
  13098.   IFS="$ac_save_ifs"
  13099.   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  13100.   ;;
  13101. esac
  13102. fi
  13103. GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
  13104. if test -n "$GTK_CONFIG"; then
  13105.   echo "$ac_t""$GTK_CONFIG" 1>&6
  13106. else
  13107.   echo "$ac_t""no" 1>&6
  13108. fi
  13109.  
  13110.   min_gtk_version=1.2.3
  13111.   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
  13112. echo "configure:13113: checking for GTK - version >= $min_gtk_version" >&5
  13113.   no_gtk=""
  13114.   if test "$GTK_CONFIG" = "no" ; then
  13115.     no_gtk=yes
  13116.   else
  13117.     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
  13118.     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
  13119.     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
  13120.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  13121.     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
  13122.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  13123.     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
  13124.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  13125.     if test "x$enable_gtktest" = "xyes" ; then
  13126.       ac_save_CFLAGS="$CFLAGS"
  13127.       ac_save_LIBS="$LIBS"
  13128.       CFLAGS="$CFLAGS $GTK_CFLAGS"
  13129.       LIBS="$GTK_LIBS $LIBS"
  13130.       rm -f conf.gtktest
  13131.       if test "$cross_compiling" = yes; then
  13132.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  13133. else
  13134.   cat > conftest.$ac_ext <<EOF
  13135. #line 13136 "configure"
  13136. #include "confdefs.h"
  13137.  
  13138. #include <gtk/gtk.h>
  13139. #include <stdio.h>
  13140. #include <stdlib.h>
  13141.  
  13142. int 
  13143. main ()
  13144. {
  13145.   int major, minor, micro;
  13146.   char *tmp_version;
  13147.  
  13148.   system ("touch conf.gtktest");
  13149.  
  13150.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  13151.   tmp_version = g_strdup("$min_gtk_version");
  13152.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  13153.      printf("%s, bad version string\n", "$min_gtk_version");
  13154.      exit(1);
  13155.    }
  13156.  
  13157.   if ((gtk_major_version != $gtk_config_major_version) ||
  13158.       (gtk_minor_version != $gtk_config_minor_version) ||
  13159.       (gtk_micro_version != $gtk_config_micro_version))
  13160.     {
  13161.       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
  13162.              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  13163.              gtk_major_version, gtk_minor_version, gtk_micro_version);
  13164.       printf ("*** was found! If gtk-config was correct, then it is best\n");
  13165.       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
  13166.       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  13167.       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  13168.       printf("*** required on your system.\n");
  13169.       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
  13170.       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
  13171.       printf("*** before re-running configure\n");
  13172.     } 
  13173. #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  13174.   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  13175.        (gtk_minor_version != GTK_MINOR_VERSION) ||
  13176.            (gtk_micro_version != GTK_MICRO_VERSION))
  13177.     {
  13178.       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
  13179.          GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  13180.       printf("*** library (version %d.%d.%d)\n",
  13181.          gtk_major_version, gtk_minor_version, gtk_micro_version);
  13182.     }
  13183. #endif /* defined (GTK_MAJOR_VERSION) ... */
  13184.   else
  13185.     {
  13186.       if ((gtk_major_version > major) ||
  13187.         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  13188.         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  13189.       {
  13190.         return 0;
  13191.        }
  13192.      else
  13193.       {
  13194.         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
  13195.                gtk_major_version, gtk_minor_version, gtk_micro_version);
  13196.         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
  13197.            major, minor, micro);
  13198.         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
  13199.         printf("***\n");
  13200.         printf("*** If you have already installed a sufficiently new version, this error\n");
  13201.         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
  13202.         printf("*** being found. The easiest way to fix this is to remove the old version\n");
  13203.         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
  13204.         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
  13205.         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  13206.         printf("*** so that the correct libraries are found at run-time))\n");
  13207.       }
  13208.     }
  13209.   return 1;
  13210. }
  13211.  
  13212. EOF
  13213. if { (eval echo configure:13214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  13214. then
  13215.   :
  13216. else
  13217.   echo "configure: failed program was:" >&5
  13218.   cat conftest.$ac_ext >&5
  13219.   rm -fr conftest*
  13220.   no_gtk=yes
  13221. fi
  13222. rm -fr conftest*
  13223. fi
  13224.  
  13225.        CFLAGS="$ac_save_CFLAGS"
  13226.        LIBS="$ac_save_LIBS"
  13227.      fi
  13228.   fi
  13229.   if test "x$no_gtk" = x ; then
  13230.      echo "$ac_t""yes" 1>&6
  13231.      wx_cv_lib_gtk=1.2.3     
  13232.   else
  13233.      echo "$ac_t""no" 1>&6
  13234.      if test "$GTK_CONFIG" = "no" ; then
  13235.        echo "*** The gtk-config script installed by GTK could not be found"
  13236.        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
  13237.        echo "*** your path, or set the GTK_CONFIG environment variable to the"
  13238.        echo "*** full path to gtk-config."
  13239.      else
  13240.        if test -f conf.gtktest ; then
  13241.         :
  13242.        else
  13243.           echo "*** Could not run GTK test program, checking why..."
  13244.           CFLAGS="$CFLAGS $GTK_CFLAGS"
  13245.           LIBS="$LIBS $GTK_LIBS"
  13246.           cat > conftest.$ac_ext <<EOF
  13247. #line 13248 "configure"
  13248. #include "confdefs.h"
  13249.  
  13250. #include <gtk/gtk.h>
  13251. #include <stdio.h>
  13252.  
  13253. int main() {
  13254.  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
  13255. ; return 0; }
  13256. EOF
  13257. if { (eval echo configure:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13258.   rm -rf conftest*
  13259.    echo "*** The test program compiled, but did not run. This usually means"
  13260.           echo "*** that the run-time linker is not finding GTK or finding the wrong"
  13261.           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
  13262.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  13263.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  13264.           echo "*** is required on your system"
  13265.       echo "***"
  13266.           echo "*** If you have an old version installed, it is best to remove it, although"
  13267.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  13268.           echo "***"
  13269.           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  13270.           echo "*** came with the system with the command"
  13271.           echo "***"
  13272.           echo "***    rpm --erase --nodeps gtk gtk-devel" 
  13273. else
  13274.   echo "configure: failed program was:" >&5
  13275.   cat conftest.$ac_ext >&5
  13276.   rm -rf conftest*
  13277.    echo "*** The test program failed to compile or link. See the file config.log for the"
  13278.           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
  13279.           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
  13280.           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
  13281. fi
  13282. rm -f conftest*
  13283.           CFLAGS="$ac_save_CFLAGS"
  13284.           LIBS="$ac_save_LIBS"
  13285.        fi
  13286.      fi
  13287.      GTK_CFLAGS=""
  13288.      GTK_LIBS=""
  13289.      :
  13290.   fi
  13291.   
  13292.   
  13293.   rm -f conf.gtktest
  13294.  
  13295.                     fi
  13296.                 fi
  13297.  
  13298.                 if test -z "$wx_cv_lib_gtk"; then
  13299.                                         wx_cv_lib_gtk=none
  13300.                 else
  13301.                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
  13302.                     wx_cv_libs_gtk=$GTK_LIBS
  13303.                 fi
  13304.             
  13305.         
  13306. fi
  13307.  
  13308.  
  13309.                         if test "$gtk_version_cached" = 1; then
  13310.             echo "$ac_t""$wx_cv_lib_gtk" 1>&6
  13311.         fi
  13312.  
  13313.         case "$wx_cv_lib_gtk" in
  13314.             2.0)    WXGTK20=1
  13315.                     TOOLKIT_VERSION=2
  13316.                     ;;
  13317.             1.2.7)  WXGTK127=1
  13318.                     WXGTK12=1
  13319.                     ;;
  13320.             1.2.3)  WXGTK12=1
  13321.                     ;;
  13322.             *)      { echo "configure: error: 
  13323. Please check that gtk-config is in path, the directory
  13324. where GTK+ libraries are installed (returned by
  13325. 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
  13326. equivalent variable and GTK+ is version 1.2.3 or above.
  13327.                             " 1>&2; exit 1; }
  13328.                     ;;
  13329.         esac
  13330.  
  13331.         if test "$WXGTK20" = 1; then
  13332.             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
  13333.                 
  13334.   succeeded=no
  13335.  
  13336.   if test -z "$PKG_CONFIG"; then
  13337.     # Extract the first word of "pkg-config", so it can be a program name with args.
  13338. set dummy pkg-config; ac_word=$2
  13339. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  13340. echo "configure:13341: checking for $ac_word" >&5
  13341. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  13342.   echo $ac_n "(cached) $ac_c" 1>&6
  13343. else
  13344.   case "$PKG_CONFIG" in
  13345.   /* | [a-zA-Z]:*)
  13346.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13347.   ;;
  13348.   ?:/*)             
  13349.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  13350.   ;;
  13351.   *)
  13352.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  13353.   ac_dummy="$PATH"
  13354.   for ac_dir in $ac_dummy; do 
  13355.     test -z "$ac_dir" && ac_dir=.
  13356.     if test -f $ac_dir/$ac_word; then
  13357.       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  13358.       break
  13359.     fi
  13360.     if test -f $ac_dir/$ac_word$ac_exeext; then
  13361.       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word$ac_exeext"
  13362.       break
  13363.     fi
  13364.   done
  13365.   IFS="$ac_save_ifs"
  13366.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  13367.   ;;
  13368. esac
  13369. fi
  13370. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13371. if test -n "$PKG_CONFIG"; then
  13372.   echo "$ac_t""$PKG_CONFIG" 1>&6
  13373. else
  13374.   echo "$ac_t""no" 1>&6
  13375. fi
  13376.  
  13377.   fi
  13378.  
  13379.   if test "$PKG_CONFIG" = "no" ; then
  13380.      echo "*** The pkg-config script could not be found. Make sure it is"
  13381.      echo "*** in your path, or set the PKG_CONFIG environment variable"
  13382.      echo "*** to the full path to pkg-config."
  13383.      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  13384.   else
  13385.      PKG_CONFIG_MIN_VERSION=0.9.0
  13386.      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  13387.         echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
  13388. echo "configure:13389: checking for pangoft2" >&5
  13389.  
  13390.         if $PKG_CONFIG --exists "pangoft2" ; then
  13391.             echo "$ac_t""yes" 1>&6
  13392.             succeeded=yes
  13393.  
  13394.             echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
  13395. echo "configure:13396: checking PANGOFT2_CFLAGS" >&5
  13396.             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
  13397.             echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
  13398.  
  13399.             echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
  13400. echo "configure:13401: checking PANGOFT2_LIBS" >&5
  13401.             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
  13402.             echo "$ac_t""$PANGOFT2_LIBS" 1>&6
  13403.         else
  13404.             PANGOFT2_CFLAGS=""
  13405.             PANGOFT2_LIBS=""
  13406.             ## If we have a custom action on failure, don't print errors, but 
  13407.             ## do set a variable so people can do so.
  13408.             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
  13409.             
  13410.         fi
  13411.  
  13412.         
  13413.         
  13414.      else
  13415.         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  13416.         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  13417.      fi
  13418.   fi
  13419.  
  13420.   if test $succeeded = yes; then
  13421.      
  13422.                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
  13423.                         LIBS="$LIBS $PANGOFT2_LIBS"
  13424.                     
  13425.   else
  13426.      
  13427.                         echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
  13428.                         wxUSE_PRINTING_ARCHITECTURE="no"
  13429.                     
  13430.                 
  13431.   fi
  13432.  
  13433.             fi
  13434.         else
  13435.             if test "$wxUSE_UNICODE" = "yes"; then
  13436.                 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
  13437.                 wxUSE_UNICODE=no
  13438.             fi
  13439.         fi
  13440.  
  13441.                         if test "$USE_DARWIN" != 1; then
  13442.             for ac_func in poll
  13443. do
  13444. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  13445. echo "configure:13446: checking for $ac_func" >&5
  13446. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  13447.   echo $ac_n "(cached) $ac_c" 1>&6
  13448. else
  13449.   cat > conftest.$ac_ext <<EOF
  13450. #line 13451 "configure"
  13451. #include "confdefs.h"
  13452. /* System header to define __stub macros and hopefully few prototypes,
  13453.     which can conflict with char $ac_func(); below.  */
  13454. #include <assert.h>
  13455. /* Override any gcc2 internal prototype to avoid an error.  */
  13456. /* We use char because int might match the return type of a gcc2
  13457.     builtin and then its argument prototype would still apply.  */
  13458. char $ac_func();
  13459.  
  13460. int main() {
  13461.  
  13462. /* The GNU C library defines this for functions which it implements
  13463.     to always fail with ENOSYS.  Some functions are actually named
  13464.     something starting with __ and the normal name is an alias.  */
  13465. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  13466. choke me
  13467. #else
  13468. $ac_func();
  13469. #endif
  13470.  
  13471. ; return 0; }
  13472. EOF
  13473. if { (eval echo configure:13474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13474.   rm -rf conftest*
  13475.   eval "ac_cv_func_$ac_func=yes"
  13476. else
  13477.   echo "configure: failed program was:" >&5
  13478.   cat conftest.$ac_ext >&5
  13479.   rm -rf conftest*
  13480.   eval "ac_cv_func_$ac_func=no"
  13481. fi
  13482. rm -f conftest*
  13483. fi
  13484.  
  13485. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  13486.   echo "$ac_t""yes" 1>&6
  13487.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  13488.   cat >> confdefs.h <<EOF
  13489. #define $ac_tr_func 1
  13490. EOF
  13491.  
  13492. else
  13493.   echo "$ac_t""no" 1>&6
  13494. fi
  13495. done
  13496.  
  13497.         fi
  13498.  
  13499.         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
  13500.         GUI_TK_LIBRARY="$wx_cv_libs_gtk"
  13501.  
  13502.         AFMINSTALL=afminstall
  13503.         TOOLKIT=GTK
  13504.         GUIDIST=GTK_DIST
  13505.  
  13506.                 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
  13507. echo "configure:13508: checking for gdk_im_open in -lgdk" >&5
  13508. ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
  13509. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  13510.   echo $ac_n "(cached) $ac_c" 1>&6
  13511. else
  13512.   ac_save_LIBS="$LIBS"
  13513. LIBS="-lgdk  $LIBS"
  13514. cat > conftest.$ac_ext <<EOF
  13515. #line 13516 "configure"
  13516. #include "confdefs.h"
  13517. /* Override any gcc2 internal prototype to avoid an error.  */
  13518. /* We use char because int might match the return type of a gcc2
  13519.     builtin and then its argument prototype would still apply.  */
  13520. char gdk_im_open();
  13521.  
  13522. int main() {
  13523. gdk_im_open()
  13524. ; return 0; }
  13525. EOF
  13526. if { (eval echo configure:13527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13527.   rm -rf conftest*
  13528.   eval "ac_cv_lib_$ac_lib_var=yes"
  13529. else
  13530.   echo "configure: failed program was:" >&5
  13531.   cat conftest.$ac_ext >&5
  13532.   rm -rf conftest*
  13533.   eval "ac_cv_lib_$ac_lib_var=no"
  13534. fi
  13535. rm -f conftest*
  13536. LIBS="$ac_save_LIBS"
  13537.  
  13538. fi
  13539. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  13540.   echo "$ac_t""yes" 1>&6
  13541.   cat >> confdefs.h <<\EOF
  13542. #define HAVE_XIM 1
  13543. EOF
  13544.  
  13545. else
  13546.   echo "$ac_t""no" 1>&6
  13547. fi
  13548.  
  13549.     fi
  13550.  
  13551.     if test "$wxUSE_MGL" = 1; then
  13552.         echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
  13553. echo "configure:13554: checking for SciTech MGL library" >&5
  13554.         if test "x$MGL_ROOT" = x ; then
  13555.             echo "$ac_t""not found" 1>&6
  13556.             { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
  13557.         else
  13558.             echo "$ac_t""$MGL_ROOT" 1>&6
  13559.         fi
  13560.  
  13561.                         case "${host}" in
  13562.             *-*-linux* )
  13563.               mgl_os="linux/gcc/glibc*"
  13564.               ;;
  13565.             *-pc-msdosdjgpp )
  13566.               mgl_os=dos32/dj2
  13567.               ;;
  13568.             *)
  13569.               { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
  13570.         esac
  13571.  
  13572.         mgl_lib_type=""
  13573.  
  13574.         if test "$wxUSE_DEBUG_FLAG" = yes ; then
  13575.             if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
  13576.                     -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
  13577.                 mgl_lib_type=debug
  13578.             fi
  13579.         fi
  13580.         if test "x$mgl_lib_type" = x ; then
  13581.             if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
  13582.                     -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
  13583.                 mgl_lib_type=release
  13584.             else
  13585.                 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
  13586.             fi
  13587.         fi
  13588.  
  13589.         wxUSE_UNIVERSAL="yes"
  13590.  
  13591.         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
  13592.         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
  13593.  
  13594.         AFMINSTALL=afminstall
  13595.         TOOLKIT=MGL
  13596.         GUIDIST=MGL_DIST
  13597.     fi
  13598.  
  13599.     if test "$wxUSE_MICROWIN" = 1; then
  13600.         echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
  13601. echo "configure:13602: checking for MicroWindows" >&5
  13602.         if test "x$MICROWINDOWS" = x ; then
  13603.             echo "$ac_t""not found" 1>&6
  13604.             { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
  13605.         else
  13606.             echo "$ac_t""$MICROWINDOWS" 1>&6
  13607.         fi
  13608.  
  13609.         if test -f $MICROWINDOWS/lib/libmwin.a; then
  13610.             echo "$ac_t""MicroWindows' libraries found." 1>&6
  13611.         else
  13612.             { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
  13613.         fi
  13614.  
  13615.         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
  13616.         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
  13617.  
  13618.         wxUSE_UNIVERSAL="yes"
  13619.  
  13620.         AFMINSTALL=afminstall
  13621.         TOOLKIT=MICROWIN
  13622.         GUIDIST=MICROWIN_DIST
  13623.  
  13624.         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
  13625.     fi
  13626.  
  13627.     if test "$wxUSE_X11" = 1; then
  13628.                         # If we find X, set shell vars x_includes and x_libraries to the
  13629. # paths, otherwise set no_x=yes.
  13630. # Uses ac_ vars as temps to allow command line to override cache and checks.
  13631. # --without-x overrides everything else, but does not touch the cache.
  13632. echo $ac_n "checking for X""... $ac_c" 1>&6
  13633. echo "configure:13634: checking for X" >&5
  13634.  
  13635. # Check whether --with-x or --without-x was given.
  13636. if test "${with_x+set}" = set; then
  13637.   withval="$with_x"
  13638.   :
  13639. fi
  13640.  
  13641. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  13642. if test "x$with_x" = xno; then
  13643.   # The user explicitly disabled X.
  13644.   have_x=disabled
  13645. else
  13646.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  13647.     # Both variables are already set.
  13648.     have_x=yes
  13649.   else
  13650. if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  13651.   echo $ac_n "(cached) $ac_c" 1>&6
  13652. else
  13653.   # One or both of the vars are not set, and there is no cached value.
  13654. ac_x_includes=NO ac_x_libraries=NO
  13655. rm -fr conftestdir
  13656. if mkdir conftestdir; then
  13657.   cd conftestdir
  13658.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  13659.   cat > Imakefile <<'EOF'
  13660. acfindx:
  13661.     @sh -c 'echo \'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${DESTDIR}${USRLIBDIR}"; ac_im_libdir="${DESTDIR}${LIBDIR}"\''
  13662. EOF
  13663.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  13664.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  13665.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  13666.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  13667.     for ac_extension in a so sl; do
  13668.       if test ! -f $ac_im_usrlibdir/${ac_cv_libpre}X11.$ac_extension &&
  13669.         test -f $ac_im_libdir/${ac_cv_libpre}X11.$ac_extension; then
  13670.         ac_im_usrlibdir=$ac_im_libdir; break
  13671.       fi
  13672.     done
  13673.     # Screen out bogus values from the imake configuration.  They are
  13674.     # bogus both because they are the default anyway, and because
  13675.     # using them would break gcc on systems where it needs fixed includes.
  13676.     case "$ac_im_incroot" in
  13677.     /usr/include) ;;
  13678.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  13679.     esac
  13680.     case "$ac_im_usrlibdir" in
  13681.     /usr/lib | /lib) ;;
  13682.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  13683.     esac
  13684.   fi
  13685.   cd ..
  13686.   rm -fr conftestdir
  13687. fi
  13688.  
  13689. if test "$ac_x_includes" = NO; then
  13690.   # Guess where to find include files, by looking for this one X11 .h file.
  13691.   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  13692.  
  13693.   # First, try using that file with no special directory specified.
  13694. cat > conftest.$ac_ext <<EOF
  13695. #include <sys/types.h>
  13696. #line 13697 "configure"
  13697. #include "confdefs.h"
  13698. #include <$x_direct_test_include>
  13699. EOF
  13700. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  13701. { (eval echo configure:13702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  13702. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  13703. if test -z "$ac_err"; then
  13704.   rm -rf conftest*
  13705.   # We can compile using X headers with no special include directory.
  13706. ac_x_includes=
  13707. else
  13708.   echo "$ac_err" >&5
  13709.   echo "configure: failed program was:" >&5
  13710.   cat conftest.$ac_ext >&5
  13711.   rm -rf conftest*
  13712.   # Look for the header file in a standard set of common directories.
  13713. # Check X11 before X11Rn because it is often a symlink to the current release.
  13714.   for ac_dir in               \
  13715.     /usr/X11/include          \
  13716.     /usr/X11R6/include        \
  13717.     /usr/X11R5/include        \
  13718.     /usr/X11R4/include        \
  13719.                               \
  13720.     /usr/include/X11          \
  13721.     /usr/include/X11R6        \
  13722.     /usr/include/X11R5        \
  13723.     /usr/include/X11R4        \
  13724.                               \
  13725.     /usr/local/X11/include    \
  13726.     /usr/local/X11R6/include  \
  13727.     /usr/local/X11R5/include  \
  13728.     /usr/local/X11R4/include  \
  13729.                               \
  13730.     /usr/local/include/X11    \
  13731.     /usr/local/include/X11R6  \
  13732.     /usr/local/include/X11R5  \
  13733.     /usr/local/include/X11R4  \
  13734.                               \
  13735.     /usr/X386/include         \
  13736.     /usr/x386/include         \
  13737.     /usr/XFree86/include/X11  \
  13738.                               \
  13739.     /usr/include              \
  13740.     /usr/local/include        \
  13741.     /usr/unsupported/include  \
  13742.     /usr/athena/include       \
  13743.     /usr/local/x11r5/include  \
  13744.     /usr/lpp/Xamples/include  \
  13745.                               \
  13746.     /usr/openwin/include      \
  13747.     /usr/openwin/share/include \
  13748.     ; \
  13749.   do
  13750.     if test -r "$ac_dir/$x_direct_test_include"; then
  13751.       ac_x_includes=$ac_dir
  13752.       break
  13753.     fi
  13754.   done
  13755. fi
  13756. rm -f conftest*
  13757. fi # $ac_x_includes = NO
  13758.  
  13759. if test "$ac_x_libraries" = NO; then
  13760.   # Check for the libraries.
  13761.  
  13762.   test -z "$x_direct_test_library" && x_direct_test_library=Xt
  13763.   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  13764.  
  13765.   # See if we find them without any special options.
  13766.   # Don't add to $LIBS permanently.
  13767.   ac_save_LIBS="$LIBS"
  13768.   LIBS="-l$x_direct_test_library $LIBS"
  13769. cat > conftest.$ac_ext <<EOF
  13770. #line 13771 "configure"
  13771. #include "confdefs.h"
  13772.  
  13773. int main() {
  13774. ${x_direct_test_function}()
  13775. ; return 0; }
  13776. EOF
  13777. if { (eval echo configure:13778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13778.   rm -rf conftest*
  13779.   LIBS="$ac_save_LIBS"
  13780. # We can link X programs with no special library path.
  13781. ac_x_libraries=
  13782. else
  13783.   echo "configure: failed program was:" >&5
  13784.   cat conftest.$ac_ext >&5
  13785.   rm -rf conftest*
  13786.   LIBS="$ac_save_LIBS"
  13787. # First see if replacing the include by lib works.
  13788. # Check X11 before X11Rn because it is often a symlink to the current release.
  13789. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  13790.     /usr/X11/lib          \
  13791.     /usr/X11R6/lib        \
  13792.     /usr/X11R5/lib        \
  13793.     /usr/X11R4/lib        \
  13794.                           \
  13795.     /usr/lib/X11          \
  13796.     /usr/lib/X11R6        \
  13797.     /usr/lib/X11R5        \
  13798.     /usr/lib/X11R4        \
  13799.                           \
  13800.     /usr/local/X11/lib    \
  13801.     /usr/local/X11R6/lib  \
  13802.     /usr/local/X11R5/lib  \
  13803.     /usr/local/X11R4/lib  \
  13804.                           \
  13805.     /usr/local/lib/X11    \
  13806.     /usr/local/lib/X11R6  \
  13807.     /usr/local/lib/X11R5  \
  13808.     /usr/local/lib/X11R4  \
  13809.                           \
  13810.     /usr/X386/lib         \
  13811.     /usr/x386/lib         \
  13812.     /usr/XFree86/lib/X11  \
  13813.                           \
  13814.     /usr/lib              \
  13815.     /usr/local/lib        \
  13816.     /usr/unsupported/lib  \
  13817.     /usr/athena/lib       \
  13818.     /usr/local/x11r5/lib  \
  13819.     /usr/lpp/Xamples/lib  \
  13820.     /lib/usr/lib/X11      \
  13821.                           \
  13822.     /usr/openwin/lib      \
  13823.     /usr/openwin/share/lib \
  13824.     ; \
  13825. do
  13826.   for ac_extension in a so sl; do
  13827.     if test -r $ac_dir/${ac_cv_libpre}${x_direct_test_library}.$ac_extension; then
  13828.       ac_x_libraries=$ac_dir
  13829.       break 2
  13830.     fi
  13831.   done
  13832. done
  13833. fi
  13834. rm -f conftest*
  13835. fi # $ac_x_libraries = NO
  13836.  
  13837. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  13838.   # Didn't find X anywhere.  Cache the known absence of X.
  13839.   ac_cv_have_x="have_x=no"
  13840. else
  13841.   # Record where we found X for the cache.
  13842.   ac_cv_have_x="have_x=yes \
  13843.             ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  13844. fi
  13845. fi
  13846.   fi
  13847.   eval "$ac_cv_have_x"
  13848. fi # $with_x != no
  13849.  
  13850. if test "$have_x" != yes; then
  13851.   echo "$ac_t""$have_x" 1>&6
  13852.   no_x=yes
  13853. else
  13854.   # If each of the values was on the command line, it overrides each guess.
  13855.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  13856.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  13857.   # Update the cache value to reflect the command line values.
  13858.   ac_cv_have_x="have_x=yes \
  13859.         ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  13860.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  13861. fi
  13862.  
  13863. if test "$no_x" = yes; then
  13864.   # Not all programs may use this symbol, but it does not hurt to define it.
  13865.   cat >> confdefs.h <<\EOF
  13866. #define X_DISPLAY_MISSING 1
  13867. EOF
  13868.  
  13869.   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  13870. else
  13871.   if test -n "$x_includes"; then
  13872.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  13873.   fi
  13874.   test -n "$x_includes" && CPPFLAGS="$CPPFLAGS -I$x_includes"
  13875.  
  13876.   # It would also be nice to do this for all -L options, not just this one.
  13877.   if test -n "$x_libraries"; then
  13878.     X_LIBS="$X_LIBS -L$x_libraries"
  13879.     # For Solaris; some versions of Sun CC require a space after -R and
  13880.     # others require no space.  Words are not sufficient . . . .
  13881.     case "`(uname -sr) 2>/dev/null`" in
  13882.     "SunOS 5"*)
  13883.       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  13884. echo "configure:13885: checking whether -R must be followed by a space" >&5
  13885.       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  13886.       cat > conftest.$ac_ext <<EOF
  13887. #line 13888 "configure"
  13888. #include "confdefs.h"
  13889.  
  13890. int main() {
  13891.  
  13892. ; return 0; }
  13893. EOF
  13894. if { (eval echo configure:13895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13895.   rm -rf conftest*
  13896.   ac_R_nospace=yes
  13897. else
  13898.   echo "configure: failed program was:" >&5
  13899.   cat conftest.$ac_ext >&5
  13900.   rm -rf conftest*
  13901.   ac_R_nospace=no
  13902. fi
  13903. rm -f conftest*
  13904.       if test $ac_R_nospace = yes; then
  13905.     echo "$ac_t""no" 1>&6
  13906.     X_LIBS="$X_LIBS -R$x_libraries"
  13907.       else
  13908.     LIBS="$ac_xsave_LIBS -R $x_libraries"
  13909.     cat > conftest.$ac_ext <<EOF
  13910. #line 13911 "configure"
  13911. #include "confdefs.h"
  13912.  
  13913. int main() {
  13914.  
  13915. ; return 0; }
  13916. EOF
  13917. if { (eval echo configure:13918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13918.   rm -rf conftest*
  13919.   ac_R_space=yes
  13920. else
  13921.   echo "configure: failed program was:" >&5
  13922.   cat conftest.$ac_ext >&5
  13923.   rm -rf conftest*
  13924.   ac_R_space=no
  13925. fi
  13926. rm -f conftest*
  13927.     if test $ac_R_space = yes; then
  13928.       echo "$ac_t""yes" 1>&6
  13929.       X_LIBS="$X_LIBS -R $x_libraries"
  13930.     else
  13931.       echo "$ac_t""neither works" 1>&6
  13932.     fi
  13933.       fi
  13934.       LIBS="$ac_xsave_LIBS"
  13935.     esac
  13936.   fi
  13937.  
  13938.   # Check for system-dependent libraries X programs must link with.
  13939.   # Do this before checking for the system-independent R6 libraries
  13940.   # (-lICE), since we may need -lsocket or whatever for X linking.
  13941.  
  13942.   if test "$ISC" = yes; then
  13943.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  13944.   else
  13945.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  13946.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  13947.     # the Alpha needs dnet_stub (dnet does not exist).
  13948.     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  13949. echo "configure:13950: checking for dnet_ntoa in -ldnet" >&5
  13950. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  13951. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  13952.   echo $ac_n "(cached) $ac_c" 1>&6
  13953. else
  13954.   ac_save_LIBS="$LIBS"
  13955. LIBS="-ldnet  $LIBS"
  13956. cat > conftest.$ac_ext <<EOF
  13957. #line 13958 "configure"
  13958. #include "confdefs.h"
  13959. /* Override any gcc2 internal prototype to avoid an error.  */
  13960. /* We use char because int might match the return type of a gcc2
  13961.     builtin and then its argument prototype would still apply.  */
  13962. char dnet_ntoa();
  13963.  
  13964. int main() {
  13965. dnet_ntoa()
  13966. ; return 0; }
  13967. EOF
  13968. if { (eval echo configure:13969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13969.   rm -rf conftest*
  13970.   eval "ac_cv_lib_$ac_lib_var=yes"
  13971. else
  13972.   echo "configure: failed program was:" >&5
  13973.   cat conftest.$ac_ext >&5
  13974.   rm -rf conftest*
  13975.   eval "ac_cv_lib_$ac_lib_var=no"
  13976. fi
  13977. rm -f conftest*
  13978. LIBS="$ac_save_LIBS"
  13979.  
  13980. fi
  13981. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  13982.   echo "$ac_t""yes" 1>&6
  13983.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  13984. else
  13985.   echo "$ac_t""no" 1>&6
  13986. fi
  13987.  
  13988.     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  13989.       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  13990. echo "configure:13991: checking for dnet_ntoa in -ldnet_stub" >&5
  13991. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  13992. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  13993.   echo $ac_n "(cached) $ac_c" 1>&6
  13994. else
  13995.   ac_save_LIBS="$LIBS"
  13996. LIBS="-ldnet_stub  $LIBS"
  13997. cat > conftest.$ac_ext <<EOF
  13998. #line 13999 "configure"
  13999. #include "confdefs.h"
  14000. /* Override any gcc2 internal prototype to avoid an error.  */
  14001. /* We use char because int might match the return type of a gcc2
  14002.     builtin and then its argument prototype would still apply.  */
  14003. char dnet_ntoa();
  14004.  
  14005. int main() {
  14006. dnet_ntoa()
  14007. ; return 0; }
  14008. EOF
  14009. if { (eval echo configure:14010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14010.   rm -rf conftest*
  14011.   eval "ac_cv_lib_$ac_lib_var=yes"
  14012. else
  14013.   echo "configure: failed program was:" >&5
  14014.   cat conftest.$ac_ext >&5
  14015.   rm -rf conftest*
  14016.   eval "ac_cv_lib_$ac_lib_var=no"
  14017. fi
  14018. rm -f conftest*
  14019. LIBS="$ac_save_LIBS"
  14020.  
  14021. fi
  14022. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14023.   echo "$ac_t""yes" 1>&6
  14024.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  14025. else
  14026.   echo "$ac_t""no" 1>&6
  14027. fi
  14028.  
  14029.     fi
  14030.  
  14031.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  14032.     # to get the SysV transport functions.
  14033.     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  14034.     # needs -lnsl.
  14035.     # The nsl library prevents programs from opening the X display
  14036.     # on Irix 5.2, according to dickey@clark.net.
  14037.     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  14038. echo "configure:14039: checking for gethostbyname" >&5
  14039. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  14040.   echo $ac_n "(cached) $ac_c" 1>&6
  14041. else
  14042.   cat > conftest.$ac_ext <<EOF
  14043. #line 14044 "configure"
  14044. #include "confdefs.h"
  14045. /* System header to define __stub macros and hopefully few prototypes,
  14046.     which can conflict with char gethostbyname(); below.  */
  14047. #include <assert.h>
  14048. /* Override any gcc2 internal prototype to avoid an error.  */
  14049. /* We use char because int might match the return type of a gcc2
  14050.     builtin and then its argument prototype would still apply.  */
  14051. char gethostbyname();
  14052.  
  14053. int main() {
  14054.  
  14055. /* The GNU C library defines this for functions which it implements
  14056.     to always fail with ENOSYS.  Some functions are actually named
  14057.     something starting with __ and the normal name is an alias.  */
  14058. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  14059. choke me
  14060. #else
  14061. gethostbyname();
  14062. #endif
  14063.  
  14064. ; return 0; }
  14065. EOF
  14066. if { (eval echo configure:14067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14067.   rm -rf conftest*
  14068.   eval "ac_cv_func_gethostbyname=yes"
  14069. else
  14070.   echo "configure: failed program was:" >&5
  14071.   cat conftest.$ac_ext >&5
  14072.   rm -rf conftest*
  14073.   eval "ac_cv_func_gethostbyname=no"
  14074. fi
  14075. rm -f conftest*
  14076. fi
  14077.  
  14078. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  14079.   echo "$ac_t""yes" 1>&6
  14080.   :
  14081. else
  14082.   echo "$ac_t""no" 1>&6
  14083. fi
  14084.  
  14085.     if test $ac_cv_func_gethostbyname = no; then
  14086.       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  14087. echo "configure:14088: checking for gethostbyname in -lnsl" >&5
  14088. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  14089. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  14090.   echo $ac_n "(cached) $ac_c" 1>&6
  14091. else
  14092.   ac_save_LIBS="$LIBS"
  14093. LIBS="-lnsl  $LIBS"
  14094. cat > conftest.$ac_ext <<EOF
  14095. #line 14096 "configure"
  14096. #include "confdefs.h"
  14097. /* Override any gcc2 internal prototype to avoid an error.  */
  14098. /* We use char because int might match the return type of a gcc2
  14099.     builtin and then its argument prototype would still apply.  */
  14100. char gethostbyname();
  14101.  
  14102. int main() {
  14103. gethostbyname()
  14104. ; return 0; }
  14105. EOF
  14106. if { (eval echo configure:14107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14107.   rm -rf conftest*
  14108.   eval "ac_cv_lib_$ac_lib_var=yes"
  14109. else
  14110.   echo "configure: failed program was:" >&5
  14111.   cat conftest.$ac_ext >&5
  14112.   rm -rf conftest*
  14113.   eval "ac_cv_lib_$ac_lib_var=no"
  14114. fi
  14115. rm -f conftest*
  14116. LIBS="$ac_save_LIBS"
  14117.  
  14118. fi
  14119. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14120.   echo "$ac_t""yes" 1>&6
  14121.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  14122. else
  14123.   echo "$ac_t""no" 1>&6
  14124. fi
  14125.  
  14126.     fi
  14127.  
  14128.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  14129.     # socket/setsockopt and other routines are undefined under SCO ODT
  14130.     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
  14131.     # on later versions), says simon@lia.di.epfl.ch: it contains
  14132.     # gethostby* variants that don't use the nameserver (or something).
  14133.     # -lsocket must be given before -lnsl if both are needed.
  14134.     # We assume that if connect needs -lnsl, so does gethostbyname.
  14135.     echo $ac_n "checking for connect""... $ac_c" 1>&6
  14136. echo "configure:14137: checking for connect" >&5
  14137. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  14138.   echo $ac_n "(cached) $ac_c" 1>&6
  14139. else
  14140.   cat > conftest.$ac_ext <<EOF
  14141. #line 14142 "configure"
  14142. #include "confdefs.h"
  14143. /* System header to define __stub macros and hopefully few prototypes,
  14144.     which can conflict with char connect(); below.  */
  14145. #include <assert.h>
  14146. /* Override any gcc2 internal prototype to avoid an error.  */
  14147. /* We use char because int might match the return type of a gcc2
  14148.     builtin and then its argument prototype would still apply.  */
  14149. char connect();
  14150.  
  14151. int main() {
  14152.  
  14153. /* The GNU C library defines this for functions which it implements
  14154.     to always fail with ENOSYS.  Some functions are actually named
  14155.     something starting with __ and the normal name is an alias.  */
  14156. #if defined (__stub_connect) || defined (__stub___connect)
  14157. choke me
  14158. #else
  14159. connect();
  14160. #endif
  14161.  
  14162. ; return 0; }
  14163. EOF
  14164. if { (eval echo configure:14165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14165.   rm -rf conftest*
  14166.   eval "ac_cv_func_connect=yes"
  14167. else
  14168.   echo "configure: failed program was:" >&5
  14169.   cat conftest.$ac_ext >&5
  14170.   rm -rf conftest*
  14171.   eval "ac_cv_func_connect=no"
  14172. fi
  14173. rm -f conftest*
  14174. fi
  14175.  
  14176. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  14177.   echo "$ac_t""yes" 1>&6
  14178.   :
  14179. else
  14180.   echo "$ac_t""no" 1>&6
  14181. fi
  14182.  
  14183.     if test $ac_cv_func_connect = no; then
  14184.       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  14185. echo "configure:14186: checking for connect in -lsocket" >&5
  14186. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  14187. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  14188.   echo $ac_n "(cached) $ac_c" 1>&6
  14189. else
  14190.   ac_save_LIBS="$LIBS"
  14191. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  14192. cat > conftest.$ac_ext <<EOF
  14193. #line 14194 "configure"
  14194. #include "confdefs.h"
  14195. /* Override any gcc2 internal prototype to avoid an error.  */
  14196. /* We use char because int might match the return type of a gcc2
  14197.     builtin and then its argument prototype would still apply.  */
  14198. char connect();
  14199.  
  14200. int main() {
  14201. connect()
  14202. ; return 0; }
  14203. EOF
  14204. if { (eval echo configure:14205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14205.   rm -rf conftest*
  14206.   eval "ac_cv_lib_$ac_lib_var=yes"
  14207. else
  14208.   echo "configure: failed program was:" >&5
  14209.   cat conftest.$ac_ext >&5
  14210.   rm -rf conftest*
  14211.   eval "ac_cv_lib_$ac_lib_var=no"
  14212. fi
  14213. rm -f conftest*
  14214. LIBS="$ac_save_LIBS"
  14215.  
  14216. fi
  14217. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14218.   echo "$ac_t""yes" 1>&6
  14219.   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  14220. else
  14221.   echo "$ac_t""no" 1>&6
  14222. fi
  14223.  
  14224.     fi
  14225.  
  14226.     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  14227.     echo $ac_n "checking for remove""... $ac_c" 1>&6
  14228. echo "configure:14229: checking for remove" >&5
  14229. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  14230.   echo $ac_n "(cached) $ac_c" 1>&6
  14231. else
  14232.   cat > conftest.$ac_ext <<EOF
  14233. #line 14234 "configure"
  14234. #include "confdefs.h"
  14235. /* System header to define __stub macros and hopefully few prototypes,
  14236.     which can conflict with char remove(); below.  */
  14237. #include <assert.h>
  14238. /* Override any gcc2 internal prototype to avoid an error.  */
  14239. /* We use char because int might match the return type of a gcc2
  14240.     builtin and then its argument prototype would still apply.  */
  14241. char remove();
  14242.  
  14243. int main() {
  14244.  
  14245. /* The GNU C library defines this for functions which it implements
  14246.     to always fail with ENOSYS.  Some functions are actually named
  14247.     something starting with __ and the normal name is an alias.  */
  14248. #if defined (__stub_remove) || defined (__stub___remove)
  14249. choke me
  14250. #else
  14251. remove();
  14252. #endif
  14253.  
  14254. ; return 0; }
  14255. EOF
  14256. if { (eval echo configure:14257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14257.   rm -rf conftest*
  14258.   eval "ac_cv_func_remove=yes"
  14259. else
  14260.   echo "configure: failed program was:" >&5
  14261.   cat conftest.$ac_ext >&5
  14262.   rm -rf conftest*
  14263.   eval "ac_cv_func_remove=no"
  14264. fi
  14265. rm -f conftest*
  14266. fi
  14267.  
  14268. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  14269.   echo "$ac_t""yes" 1>&6
  14270.   :
  14271. else
  14272.   echo "$ac_t""no" 1>&6
  14273. fi
  14274.  
  14275.     if test $ac_cv_func_remove = no; then
  14276.       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  14277. echo "configure:14278: checking for remove in -lposix" >&5
  14278. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  14279. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  14280.   echo $ac_n "(cached) $ac_c" 1>&6
  14281. else
  14282.   ac_save_LIBS="$LIBS"
  14283. LIBS="-lposix  $LIBS"
  14284. cat > conftest.$ac_ext <<EOF
  14285. #line 14286 "configure"
  14286. #include "confdefs.h"
  14287. /* Override any gcc2 internal prototype to avoid an error.  */
  14288. /* We use char because int might match the return type of a gcc2
  14289.     builtin and then its argument prototype would still apply.  */
  14290. char remove();
  14291.  
  14292. int main() {
  14293. remove()
  14294. ; return 0; }
  14295. EOF
  14296. if { (eval echo configure:14297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14297.   rm -rf conftest*
  14298.   eval "ac_cv_lib_$ac_lib_var=yes"
  14299. else
  14300.   echo "configure: failed program was:" >&5
  14301.   cat conftest.$ac_ext >&5
  14302.   rm -rf conftest*
  14303.   eval "ac_cv_lib_$ac_lib_var=no"
  14304. fi
  14305. rm -f conftest*
  14306. LIBS="$ac_save_LIBS"
  14307.  
  14308. fi
  14309. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14310.   echo "$ac_t""yes" 1>&6
  14311.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  14312. else
  14313.   echo "$ac_t""no" 1>&6
  14314. fi
  14315.  
  14316.     fi
  14317.  
  14318.     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  14319.     echo $ac_n "checking for shmat""... $ac_c" 1>&6
  14320. echo "configure:14321: checking for shmat" >&5
  14321. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  14322.   echo $ac_n "(cached) $ac_c" 1>&6
  14323. else
  14324.   cat > conftest.$ac_ext <<EOF
  14325. #line 14326 "configure"
  14326. #include "confdefs.h"
  14327. /* System header to define __stub macros and hopefully few prototypes,
  14328.     which can conflict with char shmat(); below.  */
  14329. #include <assert.h>
  14330. /* Override any gcc2 internal prototype to avoid an error.  */
  14331. /* We use char because int might match the return type of a gcc2
  14332.     builtin and then its argument prototype would still apply.  */
  14333. char shmat();
  14334.  
  14335. int main() {
  14336.  
  14337. /* The GNU C library defines this for functions which it implements
  14338.     to always fail with ENOSYS.  Some functions are actually named
  14339.     something starting with __ and the normal name is an alias.  */
  14340. #if defined (__stub_shmat) || defined (__stub___shmat)
  14341. choke me
  14342. #else
  14343. shmat();
  14344. #endif
  14345.  
  14346. ; return 0; }
  14347. EOF
  14348. if { (eval echo configure:14349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14349.   rm -rf conftest*
  14350.   eval "ac_cv_func_shmat=yes"
  14351. else
  14352.   echo "configure: failed program was:" >&5
  14353.   cat conftest.$ac_ext >&5
  14354.   rm -rf conftest*
  14355.   eval "ac_cv_func_shmat=no"
  14356. fi
  14357. rm -f conftest*
  14358. fi
  14359.  
  14360. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  14361.   echo "$ac_t""yes" 1>&6
  14362.   :
  14363. else
  14364.   echo "$ac_t""no" 1>&6
  14365. fi
  14366.  
  14367.     if test $ac_cv_func_shmat = no; then
  14368.       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  14369. echo "configure:14370: checking for shmat in -lipc" >&5
  14370. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  14371. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  14372.   echo $ac_n "(cached) $ac_c" 1>&6
  14373. else
  14374.   ac_save_LIBS="$LIBS"
  14375. LIBS="-lipc  $LIBS"
  14376. cat > conftest.$ac_ext <<EOF
  14377. #line 14378 "configure"
  14378. #include "confdefs.h"
  14379. /* Override any gcc2 internal prototype to avoid an error.  */
  14380. /* We use char because int might match the return type of a gcc2
  14381.     builtin and then its argument prototype would still apply.  */
  14382. char shmat();
  14383.  
  14384. int main() {
  14385. shmat()
  14386. ; return 0; }
  14387. EOF
  14388. if { (eval echo configure:14389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14389.   rm -rf conftest*
  14390.   eval "ac_cv_lib_$ac_lib_var=yes"
  14391. else
  14392.   echo "configure: failed program was:" >&5
  14393.   cat conftest.$ac_ext >&5
  14394.   rm -rf conftest*
  14395.   eval "ac_cv_lib_$ac_lib_var=no"
  14396. fi
  14397. rm -f conftest*
  14398. LIBS="$ac_save_LIBS"
  14399.  
  14400. fi
  14401. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14402.   echo "$ac_t""yes" 1>&6
  14403.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  14404. else
  14405.   echo "$ac_t""no" 1>&6
  14406. fi
  14407.  
  14408.     fi
  14409.     # XFree86/OS2
  14410.     if test $ac_cv_func_shmat = no; then
  14411.       echo $ac_n "checking for shmat in -lshm""... $ac_c" 1>&6
  14412. echo "configure:14413: checking for shmat in -lshm" >&5
  14413. ac_lib_var=`echo shm'_'shmat | sed 'y%./+-%__p_%'`
  14414. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  14415.   echo $ac_n "(cached) $ac_c" 1>&6
  14416. else
  14417.   ac_save_LIBS="$LIBS"
  14418. LIBS="-lshm  $LIBS"
  14419. cat > conftest.$ac_ext <<EOF
  14420. #line 14421 "configure"
  14421. #include "confdefs.h"
  14422. /* Override any gcc2 internal prototype to avoid an error.  */
  14423. /* We use char because int might match the return type of a gcc2
  14424.     builtin and then its argument prototype would still apply.  */
  14425. char shmat();
  14426.  
  14427. int main() {
  14428. shmat()
  14429. ; return 0; }
  14430. EOF
  14431. if { (eval echo configure:14432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14432.   rm -rf conftest*
  14433.   eval "ac_cv_lib_$ac_lib_var=yes"
  14434. else
  14435.   echo "configure: failed program was:" >&5
  14436.   cat conftest.$ac_ext >&5
  14437.   rm -rf conftest*
  14438.   eval "ac_cv_lib_$ac_lib_var=no"
  14439. fi
  14440. rm -f conftest*
  14441. LIBS="$ac_save_LIBS"
  14442.  
  14443. fi
  14444. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14445.   echo "$ac_t""yes" 1>&6
  14446.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lshm"
  14447. else
  14448.   echo "$ac_t""no" 1>&6
  14449. fi
  14450.  
  14451.     fi
  14452.   fi
  14453.  
  14454.   # Check for libraries that X11R6 Xt/Xaw programs need.
  14455.   ac_save_LDFLAGS="$LDFLAGS"
  14456.   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  14457.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  14458.   # check for ICE first), but we must link in the order -lSM -lICE or
  14459.   # we get undefined symbols.  So assume we have SM if we have ICE.
  14460.   # These have to be linked with before -lX11, unlike the other
  14461.   # libraries we check for below, so use a different variable.
  14462.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  14463.   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  14464. echo "configure:14465: checking for IceConnectionNumber in -lICE" >&5
  14465. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  14466. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  14467.   echo $ac_n "(cached) $ac_c" 1>&6
  14468. else
  14469.   ac_save_LIBS="$LIBS"
  14470. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  14471. cat > conftest.$ac_ext <<EOF
  14472. #line 14473 "configure"
  14473. #include "confdefs.h"
  14474. /* Override any gcc2 internal prototype to avoid an error.  */
  14475. /* We use char because int might match the return type of a gcc2
  14476.     builtin and then its argument prototype would still apply.  */
  14477. char IceConnectionNumber();
  14478.  
  14479. int main() {
  14480. IceConnectionNumber()
  14481. ; return 0; }
  14482. EOF
  14483. if { (eval echo configure:14484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14484.   rm -rf conftest*
  14485.   eval "ac_cv_lib_$ac_lib_var=yes"
  14486. else
  14487.   echo "configure: failed program was:" >&5
  14488.   cat conftest.$ac_ext >&5
  14489.   rm -rf conftest*
  14490.   eval "ac_cv_lib_$ac_lib_var=no"
  14491. fi
  14492. rm -f conftest*
  14493. LIBS="$ac_save_LIBS"
  14494.  
  14495. fi
  14496. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14497.   echo "$ac_t""yes" 1>&6
  14498.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  14499. else
  14500.   echo "$ac_t""no" 1>&6
  14501. fi
  14502.  
  14503.   LDFLAGS="$ac_save_LDFLAGS"
  14504.  
  14505. fi
  14506.  
  14507.  
  14508.         if test "$no_x" = "yes"; then
  14509.           { echo "configure: error: X11 not found" 1>&2; exit 1; }
  14510.         fi
  14511.  
  14512.         GUI_TK_LIBRARY="$X_LIBS"
  14513.         TOOLKIT_INCLUDE="$X_CFLAGS"
  14514.         AFMINSTALL=afminstall
  14515.         COMPILED_X_PROGRAM=0
  14516.  
  14517.         if test "$wxUSE_NANOX" = "yes"; then
  14518.             echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
  14519. echo "configure:14520: checking for MicroWindows/NanoX distribution" >&5
  14520.             if test "x$MICROWIN" = x ; then
  14521.                 echo "$ac_t""not found" 1>&6
  14522.                 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
  14523.             else
  14524.                 echo "$ac_t""$MICROWIN" 1>&6
  14525.                 cat >> confdefs.h <<\EOF
  14526. #define wxUSE_NANOX 1
  14527. EOF
  14528.  
  14529.             fi
  14530.         fi
  14531.  
  14532.         xpm_link=
  14533.         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
  14534. echo "configure:14535: checking for Xpm library" >&5
  14535.         
  14536. ac_find_libraries=
  14537. for ac_dir in $SEARCH_LIB /usr/lib;
  14538.   do
  14539.     for ac_extension in a so sl dylib; do
  14540.       if test -f "$ac_dir/libXpm.$ac_extension"; then
  14541.         ac_find_libraries=$ac_dir
  14542.         break 2
  14543.       fi
  14544.     done
  14545.   done
  14546.  
  14547.         if test "$ac_find_libraries" != "" ; then
  14548.             
  14549.   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
  14550.   result=$?
  14551.   if test $result = 0; then
  14552.     ac_path_to_link=""
  14553.   else
  14554.     ac_path_to_link=" -L$ac_find_libraries"
  14555.   fi
  14556.  
  14557.             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
  14558.             xpm_link=" -lXpm"
  14559.             cat >> confdefs.h <<\EOF
  14560. #define wxHAVE_LIB_XPM 1
  14561. EOF
  14562.  
  14563.             echo "$ac_t""found at $ac_find_libraries" 1>&6
  14564.         else
  14565.             cat > conftest.$ac_ext <<EOF
  14566. #line 14567 "configure"
  14567. #include "confdefs.h"
  14568.  
  14569.                     #include <X11/xpm.h>
  14570.                 
  14571. int main() {
  14572.  
  14573.                     int version;
  14574.                     version = XpmLibraryVersion();
  14575.                 
  14576. ; return 0; }
  14577. EOF
  14578. if { (eval echo configure:14579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  14579.   rm -rf conftest*
  14580.   
  14581.                     xpm_link=" -lXpm"
  14582.                     cat >> confdefs.h <<\EOF
  14583. #define wxHAVE_LIB_XPM 1
  14584. EOF
  14585.  
  14586.                     echo "$ac_t""found in default search path" 1>&6
  14587.                     COMPILED_X_PROGRAM=0
  14588.                 
  14589. else
  14590.   echo "configure: failed program was:" >&5
  14591.   cat conftest.$ac_ext >&5
  14592.   rm -rf conftest*
  14593.   
  14594.                     echo "$ac_t""no" 1>&6
  14595.                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
  14596.                 
  14597.             
  14598. fi
  14599. rm -f conftest*
  14600.         fi
  14601.  
  14602.         if test "$wxUSE_UNICODE" = "yes"; then
  14603.                 
  14604.   succeeded=no
  14605.  
  14606.   if test -z "$PKG_CONFIG"; then
  14607.     # Extract the first word of "pkg-config", so it can be a program name with args.
  14608. set dummy pkg-config; ac_word=$2
  14609. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  14610. echo "configure:14611: checking for $ac_word" >&5
  14611. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  14612.   echo $ac_n "(cached) $ac_c" 1>&6
  14613. else
  14614.   case "$PKG_CONFIG" in
  14615.   /* | [a-zA-Z]:*)
  14616.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14617.   ;;
  14618.   ?:/*)             
  14619.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  14620.   ;;
  14621.   *)
  14622.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  14623.   ac_dummy="$PATH"
  14624.   for ac_dir in $ac_dummy; do 
  14625.     test -z "$ac_dir" && ac_dir=.
  14626.     if test -f $ac_dir/$ac_word; then
  14627.       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  14628.       break
  14629.     fi
  14630.     if test -f $ac_dir/$ac_word$ac_exeext; then
  14631.       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word$ac_exeext"
  14632.       break
  14633.     fi
  14634.   done
  14635.   IFS="$ac_save_ifs"
  14636.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  14637.   ;;
  14638. esac
  14639. fi
  14640. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14641. if test -n "$PKG_CONFIG"; then
  14642.   echo "$ac_t""$PKG_CONFIG" 1>&6
  14643. else
  14644.   echo "$ac_t""no" 1>&6
  14645. fi
  14646.  
  14647.   fi
  14648.  
  14649.   if test "$PKG_CONFIG" = "no" ; then
  14650.      echo "*** The pkg-config script could not be found. Make sure it is"
  14651.      echo "*** in your path, or set the PKG_CONFIG environment variable"
  14652.      echo "*** to the full path to pkg-config."
  14653.      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  14654.   else
  14655.      PKG_CONFIG_MIN_VERSION=0.9.0
  14656.      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  14657.         echo $ac_n "checking for pangox""... $ac_c" 1>&6
  14658. echo "configure:14659: checking for pangox" >&5
  14659.  
  14660.         if $PKG_CONFIG --exists "pangox" ; then
  14661.             echo "$ac_t""yes" 1>&6
  14662.             succeeded=yes
  14663.  
  14664.             echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
  14665. echo "configure:14666: checking PANGOX_CFLAGS" >&5
  14666.             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
  14667.             echo "$ac_t""$PANGOX_CFLAGS" 1>&6
  14668.  
  14669.             echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
  14670. echo "configure:14671: checking PANGOX_LIBS" >&5
  14671.             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
  14672.             echo "$ac_t""$PANGOX_LIBS" 1>&6
  14673.         else
  14674.             PANGOX_CFLAGS=""
  14675.             PANGOX_LIBS=""
  14676.             ## If we have a custom action on failure, don't print errors, but 
  14677.             ## do set a variable so people can do so.
  14678.             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
  14679.             
  14680.         fi
  14681.  
  14682.         
  14683.         
  14684.      else
  14685.         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  14686.         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  14687.      fi
  14688.   fi
  14689.  
  14690.   if test $succeeded = yes; then
  14691.      
  14692.                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
  14693.                         LIBS="$LIBS $PANGOX_LIBS"
  14694.                     
  14695.   else
  14696.      
  14697.                         { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
  14698.                     
  14699.                 
  14700.   fi
  14701.  
  14702.                 
  14703.   succeeded=no
  14704.  
  14705.   if test -z "$PKG_CONFIG"; then
  14706.     # Extract the first word of "pkg-config", so it can be a program name with args.
  14707. set dummy pkg-config; ac_word=$2
  14708. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  14709. echo "configure:14710: checking for $ac_word" >&5
  14710. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  14711.   echo $ac_n "(cached) $ac_c" 1>&6
  14712. else
  14713.   case "$PKG_CONFIG" in
  14714.   /* | [a-zA-Z]:*)
  14715.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14716.   ;;
  14717.   ?:/*)             
  14718.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  14719.   ;;
  14720.   *)
  14721.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  14722.   ac_dummy="$PATH"
  14723.   for ac_dir in $ac_dummy; do 
  14724.     test -z "$ac_dir" && ac_dir=.
  14725.     if test -f $ac_dir/$ac_word; then
  14726.       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  14727.       break
  14728.     fi
  14729.     if test -f $ac_dir/$ac_word$ac_exeext; then
  14730.       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word$ac_exeext"
  14731.       break
  14732.     fi
  14733.   done
  14734.   IFS="$ac_save_ifs"
  14735.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  14736.   ;;
  14737. esac
  14738. fi
  14739. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14740. if test -n "$PKG_CONFIG"; then
  14741.   echo "$ac_t""$PKG_CONFIG" 1>&6
  14742. else
  14743.   echo "$ac_t""no" 1>&6
  14744. fi
  14745.  
  14746.   fi
  14747.  
  14748.   if test "$PKG_CONFIG" = "no" ; then
  14749.      echo "*** The pkg-config script could not be found. Make sure it is"
  14750.      echo "*** in your path, or set the PKG_CONFIG environment variable"
  14751.      echo "*** to the full path to pkg-config."
  14752.      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  14753.   else
  14754.      PKG_CONFIG_MIN_VERSION=0.9.0
  14755.      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  14756.         echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
  14757. echo "configure:14758: checking for pangoft2" >&5
  14758.  
  14759.         if $PKG_CONFIG --exists "pangoft2" ; then
  14760.             echo "$ac_t""yes" 1>&6
  14761.             succeeded=yes
  14762.  
  14763.             echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
  14764. echo "configure:14765: checking PANGOFT2_CFLAGS" >&5
  14765.             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
  14766.             echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
  14767.  
  14768.             echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
  14769. echo "configure:14770: checking PANGOFT2_LIBS" >&5
  14770.             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
  14771.             echo "$ac_t""$PANGOFT2_LIBS" 1>&6
  14772.         else
  14773.             PANGOFT2_CFLAGS=""
  14774.             PANGOFT2_LIBS=""
  14775.             ## If we have a custom action on failure, don't print errors, but 
  14776.             ## do set a variable so people can do so.
  14777.             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
  14778.             
  14779.         fi
  14780.  
  14781.         
  14782.         
  14783.      else
  14784.         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  14785.         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  14786.      fi
  14787.   fi
  14788.  
  14789.   if test $succeeded = yes; then
  14790.      
  14791.                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
  14792.                         LIBS="$LIBS $PANGOFT2_LIBS"
  14793.                     
  14794.   else
  14795.      
  14796.                         echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
  14797.                         wxUSE_PRINTING_ARCHITECTURE="no"
  14798.                     
  14799.                 
  14800.   fi
  14801.  
  14802.                 
  14803.   succeeded=no
  14804.  
  14805.   if test -z "$PKG_CONFIG"; then
  14806.     # Extract the first word of "pkg-config", so it can be a program name with args.
  14807. set dummy pkg-config; ac_word=$2
  14808. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  14809. echo "configure:14810: checking for $ac_word" >&5
  14810. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  14811.   echo $ac_n "(cached) $ac_c" 1>&6
  14812. else
  14813.   case "$PKG_CONFIG" in
  14814.   /* | [a-zA-Z]:*)
  14815.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14816.   ;;
  14817.   ?:/*)             
  14818.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  14819.   ;;
  14820.   *)
  14821.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  14822.   ac_dummy="$PATH"
  14823.   for ac_dir in $ac_dummy; do 
  14824.     test -z "$ac_dir" && ac_dir=.
  14825.     if test -f $ac_dir/$ac_word; then
  14826.       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  14827.       break
  14828.     fi
  14829.     if test -f $ac_dir/$ac_word$ac_exeext; then
  14830.       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word$ac_exeext"
  14831.       break
  14832.     fi
  14833.   done
  14834.   IFS="$ac_save_ifs"
  14835.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  14836.   ;;
  14837. esac
  14838. fi
  14839. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14840. if test -n "$PKG_CONFIG"; then
  14841.   echo "$ac_t""$PKG_CONFIG" 1>&6
  14842. else
  14843.   echo "$ac_t""no" 1>&6
  14844. fi
  14845.  
  14846.   fi
  14847.  
  14848.   if test "$PKG_CONFIG" = "no" ; then
  14849.      echo "*** The pkg-config script could not be found. Make sure it is"
  14850.      echo "*** in your path, or set the PKG_CONFIG environment variable"
  14851.      echo "*** to the full path to pkg-config."
  14852.      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  14853.   else
  14854.      PKG_CONFIG_MIN_VERSION=0.9.0
  14855.      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  14856.         echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
  14857. echo "configure:14858: checking for pangoxft" >&5
  14858.  
  14859.         if $PKG_CONFIG --exists "pangoxft" ; then
  14860.             echo "$ac_t""yes" 1>&6
  14861.             succeeded=yes
  14862.  
  14863.             echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
  14864. echo "configure:14865: checking PANGOXFT_CFLAGS" >&5
  14865.             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
  14866.             echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
  14867.  
  14868.             echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
  14869. echo "configure:14870: checking PANGOXFT_LIBS" >&5
  14870.             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
  14871.             echo "$ac_t""$PANGOXFT_LIBS" 1>&6
  14872.         else
  14873.             PANGOXFT_CFLAGS=""
  14874.             PANGOXFT_LIBS=""
  14875.             ## If we have a custom action on failure, don't print errors, but 
  14876.             ## do set a variable so people can do so.
  14877.             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
  14878.             
  14879.         fi
  14880.  
  14881.         
  14882.         
  14883.      else
  14884.         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  14885.         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  14886.      fi
  14887.   fi
  14888.  
  14889.   if test $succeeded = yes; then
  14890.      
  14891.                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
  14892.                         LIBS="$LIBS $PANGOXFT_LIBS"
  14893.                     
  14894.   else
  14895.      
  14896.                         echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
  14897.                     
  14898.                 
  14899.   fi
  14900.  
  14901.         fi
  14902.  
  14903.         wxUSE_UNIVERSAL="yes"
  14904.  
  14905.         if test "$wxUSE_NANOX" = "yes"; then
  14906.             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
  14907.             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
  14908.             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
  14909.         else
  14910.             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
  14911.         fi
  14912.  
  14913.         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
  14914.         TOOLKIT=X11
  14915.         GUIDIST=X11_DIST
  14916.     fi
  14917.  
  14918.     if test "$wxUSE_WINE" = 1; then
  14919.         ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
  14920. echo $ac_n "checking for windows.h""... $ac_c" 1>&6
  14921. echo "configure:14922: checking for windows.h" >&5
  14922. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  14923.   echo $ac_n "(cached) $ac_c" 1>&6
  14924. else
  14925.   cat > conftest.$ac_ext <<EOF
  14926. #include <sys/types.h>
  14927. #line 14928 "configure"
  14928. #include "confdefs.h"
  14929. #include <windows.h>
  14930. EOF
  14931. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  14932. { (eval echo configure:14933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  14933. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  14934. if test -z "$ac_err"; then
  14935.   rm -rf conftest*
  14936.   eval "ac_cv_header_$ac_safe=yes"
  14937. else
  14938.   echo "$ac_err" >&5
  14939.   echo "configure: failed program was:" >&5
  14940.   cat conftest.$ac_ext >&5
  14941.   rm -rf conftest*
  14942.   eval "ac_cv_header_$ac_safe=no"
  14943. fi
  14944. rm -f conftest*
  14945. fi
  14946. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  14947.   echo "$ac_t""yes" 1>&6
  14948.   :
  14949. else
  14950.   echo "$ac_t""no" 1>&6
  14951.  
  14952.             { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
  14953.         
  14954. fi
  14955.  
  14956.  
  14957.         xpm_link=
  14958.         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
  14959. echo "configure:14960: checking for Xpm library" >&5
  14960.         
  14961. ac_find_libraries=
  14962. for ac_dir in $SEARCH_LIB /usr/lib;
  14963.   do
  14964.     for ac_extension in a so sl dylib; do
  14965.       if test -f "$ac_dir/libXpm.$ac_extension"; then
  14966.         ac_find_libraries=$ac_dir
  14967.         break 2
  14968.       fi
  14969.     done
  14970.   done
  14971.  
  14972.         if test "$ac_find_libraries" != "" ; then
  14973.             GUI_TK_LIBRARY="-L$ac_find_libraries"
  14974.             xpm_link=" -lXpm"
  14975.             cat >> confdefs.h <<\EOF
  14976. #define wxHAVE_LIB_XPM 1
  14977. EOF
  14978.  
  14979.             echo "$ac_t""found at $ac_find_libraries" 1>&6
  14980.         else
  14981.             echo "$ac_t""no" 1>&6
  14982.             echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
  14983.         fi
  14984.  
  14985.         mesa_link=
  14986.         echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
  14987. echo "configure:14988: checking for Mesa library" >&5
  14988.         
  14989. ac_find_libraries=
  14990. for ac_dir in $SEARCH_LIB /usr/lib;
  14991.   do
  14992.     for ac_extension in a so sl dylib; do
  14993.       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
  14994.         ac_find_libraries=$ac_dir
  14995.         break 2
  14996.       fi
  14997.     done
  14998.   done
  14999.  
  15000.         if test "$ac_find_libraries" != "" ; then
  15001.             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
  15002.             mesa_link=" -lMesaGL"
  15003.             echo "$ac_t""found at $ac_find_libraries" 1>&6
  15004.         else
  15005.             mesa_link=""
  15006.             echo "$ac_t""no" 1>&6
  15007.             echo "configure: warning: library will be compiled without Mesa support" 1>&2
  15008.         fi
  15009.  
  15010.         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
  15011.         TOOLKIT=MSW
  15012.         GUIDIST=MSW_DIST
  15013.         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
  15014.     fi
  15015.  
  15016.     if test "$wxUSE_MOTIF" = 1; then
  15017.                         if test "$no_x" = yes; then
  15018.   # Not all programs may use this symbol, but it does not hurt to define it.
  15019.   cat >> confdefs.h <<\EOF
  15020. #define X_DISPLAY_MISSING 1
  15021. EOF
  15022.  
  15023.   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  15024. else
  15025.   if test -n "$x_includes"; then
  15026.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  15027.   fi
  15028.   test -n "$x_includes" && CPPFLAGS="$CPPFLAGS -I$x_includes"
  15029.  
  15030.   # It would also be nice to do this for all -L options, not just this one.
  15031.   if test -n "$x_libraries"; then
  15032.     X_LIBS="$X_LIBS -L$x_libraries"
  15033.     # For Solaris; some versions of Sun CC require a space after -R and
  15034.     # others require no space.  Words are not sufficient . . . .
  15035.     case "`(uname -sr) 2>/dev/null`" in
  15036.     "SunOS 5"*)
  15037.       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  15038. echo "configure:15039: checking whether -R must be followed by a space" >&5
  15039.       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  15040.       cat > conftest.$ac_ext <<EOF
  15041. #line 15042 "configure"
  15042. #include "confdefs.h"
  15043.  
  15044. int main() {
  15045.  
  15046. ; return 0; }
  15047. EOF
  15048. if { (eval echo configure:15049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15049.   rm -rf conftest*
  15050.   ac_R_nospace=yes
  15051. else
  15052.   echo "configure: failed program was:" >&5
  15053.   cat conftest.$ac_ext >&5
  15054.   rm -rf conftest*
  15055.   ac_R_nospace=no
  15056. fi
  15057. rm -f conftest*
  15058.       if test $ac_R_nospace = yes; then
  15059.     echo "$ac_t""no" 1>&6
  15060.     X_LIBS="$X_LIBS -R$x_libraries"
  15061.       else
  15062.     LIBS="$ac_xsave_LIBS -R $x_libraries"
  15063.     cat > conftest.$ac_ext <<EOF
  15064. #line 15065 "configure"
  15065. #include "confdefs.h"
  15066.  
  15067. int main() {
  15068.  
  15069. ; return 0; }
  15070. EOF
  15071. if { (eval echo configure:15072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15072.   rm -rf conftest*
  15073.   ac_R_space=yes
  15074. else
  15075.   echo "configure: failed program was:" >&5
  15076.   cat conftest.$ac_ext >&5
  15077.   rm -rf conftest*
  15078.   ac_R_space=no
  15079. fi
  15080. rm -f conftest*
  15081.     if test $ac_R_space = yes; then
  15082.       echo "$ac_t""yes" 1>&6
  15083.       X_LIBS="$X_LIBS -R $x_libraries"
  15084.     else
  15085.       echo "$ac_t""neither works" 1>&6
  15086.     fi
  15087.       fi
  15088.       LIBS="$ac_xsave_LIBS"
  15089.     esac
  15090.   fi
  15091.  
  15092.   # Check for system-dependent libraries X programs must link with.
  15093.   # Do this before checking for the system-independent R6 libraries
  15094.   # (-lICE), since we may need -lsocket or whatever for X linking.
  15095.  
  15096.   if test "$ISC" = yes; then
  15097.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  15098.   else
  15099.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  15100.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  15101.     # the Alpha needs dnet_stub (dnet does not exist).
  15102.     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  15103. echo "configure:15104: checking for dnet_ntoa in -ldnet" >&5
  15104. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  15105. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  15106.   echo $ac_n "(cached) $ac_c" 1>&6
  15107. else
  15108.   ac_save_LIBS="$LIBS"
  15109. LIBS="-ldnet  $LIBS"
  15110. cat > conftest.$ac_ext <<EOF
  15111. #line 15112 "configure"
  15112. #include "confdefs.h"
  15113. /* Override any gcc2 internal prototype to avoid an error.  */
  15114. /* We use char because int might match the return type of a gcc2
  15115.     builtin and then its argument prototype would still apply.  */
  15116. char dnet_ntoa();
  15117.  
  15118. int main() {
  15119. dnet_ntoa()
  15120. ; return 0; }
  15121. EOF
  15122. if { (eval echo configure:15123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15123.   rm -rf conftest*
  15124.   eval "ac_cv_lib_$ac_lib_var=yes"
  15125. else
  15126.   echo "configure: failed program was:" >&5
  15127.   cat conftest.$ac_ext >&5
  15128.   rm -rf conftest*
  15129.   eval "ac_cv_lib_$ac_lib_var=no"
  15130. fi
  15131. rm -f conftest*
  15132. LIBS="$ac_save_LIBS"
  15133.  
  15134. fi
  15135. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  15136.   echo "$ac_t""yes" 1>&6
  15137.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  15138. else
  15139.   echo "$ac_t""no" 1>&6
  15140. fi
  15141.  
  15142.     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  15143.       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  15144. echo "configure:15145: checking for dnet_ntoa in -ldnet_stub" >&5
  15145. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  15146. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  15147.   echo $ac_n "(cached) $ac_c" 1>&6
  15148. else
  15149.   ac_save_LIBS="$LIBS"
  15150. LIBS="-ldnet_stub  $LIBS"
  15151. cat > conftest.$ac_ext <<EOF
  15152. #line 15153 "configure"
  15153. #include "confdefs.h"
  15154. /* Override any gcc2 internal prototype to avoid an error.  */
  15155. /* We use char because int might match the return type of a gcc2
  15156.     builtin and then its argument prototype would still apply.  */
  15157. char dnet_ntoa();
  15158.  
  15159. int main() {
  15160. dnet_ntoa()
  15161. ; return 0; }
  15162. EOF
  15163. if { (eval echo configure:15164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15164.   rm -rf conftest*
  15165.   eval "ac_cv_lib_$ac_lib_var=yes"
  15166. else
  15167.   echo "configure: failed program was:" >&5
  15168.   cat conftest.$ac_ext >&5
  15169.   rm -rf conftest*
  15170.   eval "ac_cv_lib_$ac_lib_var=no"
  15171. fi
  15172. rm -f conftest*
  15173. LIBS="$ac_save_LIBS"
  15174.  
  15175. fi
  15176. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  15177.   echo "$ac_t""yes" 1>&6
  15178.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  15179. else
  15180.   echo "$ac_t""no" 1>&6
  15181. fi
  15182.  
  15183.     fi
  15184.  
  15185.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  15186.     # to get the SysV transport functions.
  15187.     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  15188.     # needs -lnsl.
  15189.     # The nsl library prevents programs from opening the X display
  15190.     # on Irix 5.2, according to dickey@clark.net.
  15191.     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  15192. echo "configure:15193: checking for gethostbyname" >&5
  15193. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  15194.   echo $ac_n "(cached) $ac_c" 1>&6
  15195. else
  15196.   cat > conftest.$ac_ext <<EOF
  15197. #line 15198 "configure"
  15198. #include "confdefs.h"
  15199. /* System header to define __stub macros and hopefully few prototypes,
  15200.     which can conflict with char gethostbyname(); below.  */
  15201. #include <assert.h>
  15202. /* Override any gcc2 internal prototype to avoid an error.  */
  15203. /* We use char because int might match the return type of a gcc2
  15204.     builtin and then its argument prototype would still apply.  */
  15205. char gethostbyname();
  15206.  
  15207. int main() {
  15208.  
  15209. /* The GNU C library defines this for functions which it implements
  15210.     to always fail with ENOSYS.  Some functions are actually named
  15211.     something starting with __ and the normal name is an alias.  */
  15212. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  15213. choke me
  15214. #else
  15215. gethostbyname();
  15216. #endif
  15217.  
  15218. ; return 0; }
  15219. EOF
  15220. if { (eval echo configure:15221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15221.   rm -rf conftest*
  15222.   eval "ac_cv_func_gethostbyname=yes"
  15223. else
  15224.   echo "configure: failed program was:" >&5
  15225.   cat conftest.$ac_ext >&5
  15226.   rm -rf conftest*
  15227.   eval "ac_cv_func_gethostbyname=no"
  15228. fi
  15229. rm -f conftest*
  15230. fi
  15231.  
  15232. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  15233.   echo "$ac_t""yes" 1>&6
  15234.   :
  15235. else
  15236.   echo "$ac_t""no" 1>&6
  15237. fi
  15238.  
  15239.     if test $ac_cv_func_gethostbyname = no; then
  15240.       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  15241. echo "configure:15242: checking for gethostbyname in -lnsl" >&5
  15242. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  15243. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  15244.   echo $ac_n "(cached) $ac_c" 1>&6
  15245. else
  15246.   ac_save_LIBS="$LIBS"
  15247. LIBS="-lnsl  $LIBS"
  15248. cat > conftest.$ac_ext <<EOF
  15249. #line 15250 "configure"
  15250. #include "confdefs.h"
  15251. /* Override any gcc2 internal prototype to avoid an error.  */
  15252. /* We use char because int might match the return type of a gcc2
  15253.     builtin and then its argument prototype would still apply.  */
  15254. char gethostbyname();
  15255.  
  15256. int main() {
  15257. gethostbyname()
  15258. ; return 0; }
  15259. EOF
  15260. if { (eval echo configure:15261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15261.   rm -rf conftest*
  15262.   eval "ac_cv_lib_$ac_lib_var=yes"
  15263. else
  15264.   echo "configure: failed program was:" >&5
  15265.   cat conftest.$ac_ext >&5
  15266.   rm -rf conftest*
  15267.   eval "ac_cv_lib_$ac_lib_var=no"
  15268. fi
  15269. rm -f conftest*
  15270. LIBS="$ac_save_LIBS"
  15271.  
  15272. fi
  15273. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  15274.   echo "$ac_t""yes" 1>&6
  15275.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  15276. else
  15277.   echo "$ac_t""no" 1>&6
  15278. fi
  15279.  
  15280.     fi
  15281.  
  15282.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  15283.     # socket/setsockopt and other routines are undefined under SCO ODT
  15284.     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
  15285.     # on later versions), says simon@lia.di.epfl.ch: it contains
  15286.     # gethostby* variants that don't use the nameserver (or something).
  15287.     # -lsocket must be given before -lnsl if both are needed.
  15288.     # We assume that if connect needs -lnsl, so does gethostbyname.
  15289.     echo $ac_n "checking for connect""... $ac_c" 1>&6
  15290. echo "configure:15291: checking for connect" >&5
  15291. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  15292.   echo $ac_n "(cached) $ac_c" 1>&6
  15293. else
  15294.   cat > conftest.$ac_ext <<EOF
  15295. #line 15296 "configure"
  15296. #include "confdefs.h"
  15297. /* System header to define __stub macros and hopefully few prototypes,
  15298.     which can conflict with char connect(); below.  */
  15299. #include <assert.h>
  15300. /* Override any gcc2 internal prototype to avoid an error.  */
  15301. /* We use char because int might match the return type of a gcc2
  15302.     builtin and then its argument prototype would still apply.  */
  15303. char connect();
  15304.  
  15305. int main() {
  15306.  
  15307. /* The GNU C library defines this for functions which it implements
  15308.     to always fail with ENOSYS.  Some functions are actually named
  15309.     something starting with __ and the normal name is an alias.  */
  15310. #if defined (__stub_connect) || defined (__stub___connect)
  15311. choke me
  15312. #else
  15313. connect();
  15314. #endif
  15315.  
  15316. ; return 0; }
  15317. EOF
  15318. if { (eval echo configure:15319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15319.   rm -rf conftest*
  15320.   eval "ac_cv_func_connect=yes"
  15321. else
  15322.   echo "configure: failed program was:" >&5
  15323.   cat conftest.$ac_ext >&5
  15324.   rm -rf conftest*
  15325.   eval "ac_cv_func_connect=no"
  15326. fi
  15327. rm -f conftest*
  15328. fi
  15329.  
  15330. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  15331.   echo "$ac_t""yes" 1>&6
  15332.   :
  15333. else
  15334.   echo "$ac_t""no" 1>&6
  15335. fi
  15336.  
  15337.     if test $ac_cv_func_connect = no; then
  15338.       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  15339. echo "configure:15340: checking for connect in -lsocket" >&5
  15340. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  15341. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  15342.   echo $ac_n "(cached) $ac_c" 1>&6
  15343. else
  15344.   ac_save_LIBS="$LIBS"
  15345. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  15346. cat > conftest.$ac_ext <<EOF
  15347. #line 15348 "configure"
  15348. #include "confdefs.h"
  15349. /* Override any gcc2 internal prototype to avoid an error.  */
  15350. /* We use char because int might match the return type of a gcc2
  15351.     builtin and then its argument prototype would still apply.  */
  15352. char connect();
  15353.  
  15354. int main() {
  15355. connect()
  15356. ; return 0; }
  15357. EOF
  15358. if { (eval echo configure:15359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15359.   rm -rf conftest*
  15360.   eval "ac_cv_lib_$ac_lib_var=yes"
  15361. else
  15362.   echo "configure: failed program was:" >&5
  15363.   cat conftest.$ac_ext >&5
  15364.   rm -rf conftest*
  15365.   eval "ac_cv_lib_$ac_lib_var=no"
  15366. fi
  15367. rm -f conftest*
  15368. LIBS="$ac_save_LIBS"
  15369.  
  15370. fi
  15371. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  15372.   echo "$ac_t""yes" 1>&6
  15373.   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  15374. else
  15375.   echo "$ac_t""no" 1>&6
  15376. fi
  15377.  
  15378.     fi
  15379.  
  15380.     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  15381.     echo $ac_n "checking for remove""... $ac_c" 1>&6
  15382. echo "configure:15383: checking for remove" >&5
  15383. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  15384.   echo $ac_n "(cached) $ac_c" 1>&6
  15385. else
  15386.   cat > conftest.$ac_ext <<EOF
  15387. #line 15388 "configure"
  15388. #include "confdefs.h"
  15389. /* System header to define __stub macros and hopefully few prototypes,
  15390.     which can conflict with char remove(); below.  */
  15391. #include <assert.h>
  15392. /* Override any gcc2 internal prototype to avoid an error.  */
  15393. /* We use char because int might match the return type of a gcc2
  15394.     builtin and then its argument prototype would still apply.  */
  15395. char remove();
  15396.  
  15397. int main() {
  15398.  
  15399. /* The GNU C library defines this for functions which it implements
  15400.     to always fail with ENOSYS.  Some functions are actually named
  15401.     something starting with __ and the normal name is an alias.  */
  15402. #if defined (__stub_remove) || defined (__stub___remove)
  15403. choke me
  15404. #else
  15405. remove();
  15406. #endif
  15407.  
  15408. ; return 0; }
  15409. EOF
  15410. if { (eval echo configure:15411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15411.   rm -rf conftest*
  15412.   eval "ac_cv_func_remove=yes"
  15413. else
  15414.   echo "configure: failed program was:" >&5
  15415.   cat conftest.$ac_ext >&5
  15416.   rm -rf conftest*
  15417.   eval "ac_cv_func_remove=no"
  15418. fi
  15419. rm -f conftest*
  15420. fi
  15421.  
  15422. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  15423.   echo "$ac_t""yes" 1>&6
  15424.   :
  15425. else
  15426.   echo "$ac_t""no" 1>&6
  15427. fi
  15428.  
  15429.     if test $ac_cv_func_remove = no; then
  15430.       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  15431. echo "configure:15432: checking for remove in -lposix" >&5
  15432. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  15433. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  15434.   echo $ac_n "(cached) $ac_c" 1>&6
  15435. else
  15436.   ac_save_LIBS="$LIBS"
  15437. LIBS="-lposix  $LIBS"
  15438. cat > conftest.$ac_ext <<EOF
  15439. #line 15440 "configure"
  15440. #include "confdefs.h"
  15441. /* Override any gcc2 internal prototype to avoid an error.  */
  15442. /* We use char because int might match the return type of a gcc2
  15443.     builtin and then its argument prototype would still apply.  */
  15444. char remove();
  15445.  
  15446. int main() {
  15447. remove()
  15448. ; return 0; }
  15449. EOF
  15450. if { (eval echo configure:15451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15451.   rm -rf conftest*
  15452.   eval "ac_cv_lib_$ac_lib_var=yes"
  15453. else
  15454.   echo "configure: failed program was:" >&5
  15455.   cat conftest.$ac_ext >&5
  15456.   rm -rf conftest*
  15457.   eval "ac_cv_lib_$ac_lib_var=no"
  15458. fi
  15459. rm -f conftest*
  15460. LIBS="$ac_save_LIBS"
  15461.  
  15462. fi
  15463. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  15464.   echo "$ac_t""yes" 1>&6
  15465.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  15466. else
  15467.   echo "$ac_t""no" 1>&6
  15468. fi
  15469.  
  15470.     fi
  15471.  
  15472.     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  15473.     echo $ac_n "checking for shmat""... $ac_c" 1>&6
  15474. echo "configure:15475: checking for shmat" >&5
  15475. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  15476.   echo $ac_n "(cached) $ac_c" 1>&6
  15477. else
  15478.   cat > conftest.$ac_ext <<EOF
  15479. #line 15480 "configure"
  15480. #include "confdefs.h"
  15481. /* System header to define __stub macros and hopefully few prototypes,
  15482.     which can conflict with char shmat(); below.  */
  15483. #include <assert.h>
  15484. /* Override any gcc2 internal prototype to avoid an error.  */
  15485. /* We use char because int might match the return type of a gcc2
  15486.     builtin and then its argument prototype would still apply.  */
  15487. char shmat();
  15488.  
  15489. int main() {
  15490.  
  15491. /* The GNU C library defines this for functions which it implements
  15492.     to always fail with ENOSYS.  Some functions are actually named
  15493.     something starting with __ and the normal name is an alias.  */
  15494. #if defined (__stub_shmat) || defined (__stub___shmat)
  15495. choke me
  15496. #else
  15497. shmat();
  15498. #endif
  15499.  
  15500. ; return 0; }
  15501. EOF
  15502. if { (eval echo configure:15503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15503.   rm -rf conftest*
  15504.   eval "ac_cv_func_shmat=yes"
  15505. else
  15506.   echo "configure: failed program was:" >&5
  15507.   cat conftest.$ac_ext >&5
  15508.   rm -rf conftest*
  15509.   eval "ac_cv_func_shmat=no"
  15510. fi
  15511. rm -f conftest*
  15512. fi
  15513.  
  15514. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  15515.   echo "$ac_t""yes" 1>&6
  15516.   :
  15517. else
  15518.   echo "$ac_t""no" 1>&6
  15519. fi
  15520.  
  15521.     if test $ac_cv_func_shmat = no; then
  15522.       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  15523. echo "configure:15524: checking for shmat in -lipc" >&5
  15524. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  15525. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  15526.   echo $ac_n "(cached) $ac_c" 1>&6
  15527. else
  15528.   ac_save_LIBS="$LIBS"
  15529. LIBS="-lipc  $LIBS"
  15530. cat > conftest.$ac_ext <<EOF
  15531. #line 15532 "configure"
  15532. #include "confdefs.h"
  15533. /* Override any gcc2 internal prototype to avoid an error.  */
  15534. /* We use char because int might match the return type of a gcc2
  15535.     builtin and then its argument prototype would still apply.  */
  15536. char shmat();
  15537.  
  15538. int main() {
  15539. shmat()
  15540. ; return 0; }
  15541. EOF
  15542. if { (eval echo configure:15543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15543.   rm -rf conftest*
  15544.   eval "ac_cv_lib_$ac_lib_var=yes"
  15545. else
  15546.   echo "configure: failed program was:" >&5
  15547.   cat conftest.$ac_ext >&5
  15548.   rm -rf conftest*
  15549.   eval "ac_cv_lib_$ac_lib_var=no"
  15550. fi
  15551. rm -f conftest*
  15552. LIBS="$ac_save_LIBS"
  15553.  
  15554. fi
  15555. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  15556.   echo "$ac_t""yes" 1>&6
  15557.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  15558. else
  15559.   echo "$ac_t""no" 1>&6
  15560. fi
  15561.  
  15562.     fi
  15563.     # XFree86/OS2
  15564.     if test $ac_cv_func_shmat = no; then
  15565.       echo $ac_n "checking for shmat in -lshm""... $ac_c" 1>&6
  15566. echo "configure:15567: checking for shmat in -lshm" >&5
  15567. ac_lib_var=`echo shm'_'shmat | sed 'y%./+-%__p_%'`
  15568. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  15569.   echo $ac_n "(cached) $ac_c" 1>&6
  15570. else
  15571.   ac_save_LIBS="$LIBS"
  15572. LIBS="-lshm  $LIBS"
  15573. cat > conftest.$ac_ext <<EOF
  15574. #line 15575 "configure"
  15575. #include "confdefs.h"
  15576. /* Override any gcc2 internal prototype to avoid an error.  */
  15577. /* We use char because int might match the return type of a gcc2
  15578.     builtin and then its argument prototype would still apply.  */
  15579. char shmat();
  15580.  
  15581. int main() {
  15582. shmat()
  15583. ; return 0; }
  15584. EOF
  15585. if { (eval echo configure:15586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15586.   rm -rf conftest*
  15587.   eval "ac_cv_lib_$ac_lib_var=yes"
  15588. else
  15589.   echo "configure: failed program was:" >&5
  15590.   cat conftest.$ac_ext >&5
  15591.   rm -rf conftest*
  15592.   eval "ac_cv_lib_$ac_lib_var=no"
  15593. fi
  15594. rm -f conftest*
  15595. LIBS="$ac_save_LIBS"
  15596.  
  15597. fi
  15598. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  15599.   echo "$ac_t""yes" 1>&6
  15600.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lshm"
  15601. else
  15602.   echo "$ac_t""no" 1>&6
  15603. fi
  15604.  
  15605.     fi
  15606.   fi
  15607.  
  15608.   # Check for libraries that X11R6 Xt/Xaw programs need.
  15609.   ac_save_LDFLAGS="$LDFLAGS"
  15610.   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  15611.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  15612.   # check for ICE first), but we must link in the order -lSM -lICE or
  15613.   # we get undefined symbols.  So assume we have SM if we have ICE.
  15614.   # These have to be linked with before -lX11, unlike the other
  15615.   # libraries we check for below, so use a different variable.
  15616.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  15617.   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  15618. echo "configure:15619: checking for IceConnectionNumber in -lICE" >&5
  15619. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  15620. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  15621.   echo $ac_n "(cached) $ac_c" 1>&6
  15622. else
  15623.   ac_save_LIBS="$LIBS"
  15624. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  15625. cat > conftest.$ac_ext <<EOF
  15626. #line 15627 "configure"
  15627. #include "confdefs.h"
  15628. /* Override any gcc2 internal prototype to avoid an error.  */
  15629. /* We use char because int might match the return type of a gcc2
  15630.     builtin and then its argument prototype would still apply.  */
  15631. char IceConnectionNumber();
  15632.  
  15633. int main() {
  15634. IceConnectionNumber()
  15635. ; return 0; }
  15636. EOF
  15637. if { (eval echo configure:15638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15638.   rm -rf conftest*
  15639.   eval "ac_cv_lib_$ac_lib_var=yes"
  15640. else
  15641.   echo "configure: failed program was:" >&5
  15642.   cat conftest.$ac_ext >&5
  15643.   rm -rf conftest*
  15644.   eval "ac_cv_lib_$ac_lib_var=no"
  15645. fi
  15646. rm -f conftest*
  15647. LIBS="$ac_save_LIBS"
  15648.  
  15649. fi
  15650. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  15651.   echo "$ac_t""yes" 1>&6
  15652.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  15653. else
  15654.   echo "$ac_t""no" 1>&6
  15655. fi
  15656.  
  15657.   LDFLAGS="$ac_save_LDFLAGS"
  15658.  
  15659. fi
  15660.  
  15661.  
  15662.         if test "$no_x" = "yes"; then
  15663.           { echo "configure: error: X11 not found" 1>&2; exit 1; }
  15664.         fi
  15665.  
  15666.                         GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
  15667.         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
  15668.         AFMINSTALL=afminstall
  15669.         COMPILED_X_PROGRAM=0
  15670.  
  15671.         echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
  15672. echo "configure:15673: checking for Motif/Lesstif headers" >&5
  15673.         
  15674. ac_find_includes=
  15675. for ac_dir in $SEARCH_INCLUDE /usr/include;
  15676.   do
  15677.     if test -f "$ac_dir/Xm/Xm.h"; then
  15678.       ac_find_includes=$ac_dir
  15679.       break
  15680.     fi
  15681.   done
  15682.  
  15683.         if test "$ac_find_includes" != "" ; then
  15684.             echo "$ac_t""found in $ac_find_includes" 1>&6
  15685.             
  15686.     if test "x$ac_find_includes" = "x/usr/include"; then
  15687.     ac_path_to_include=""
  15688.   else
  15689.     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
  15690.     result=$?
  15691.     if test $result = 0; then
  15692.       ac_path_to_include=""
  15693.     else
  15694.       ac_path_to_include=" -I$ac_find_includes"
  15695.     fi
  15696.   fi
  15697.  
  15698.             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
  15699.         else
  15700.             cat > conftest.$ac_ext <<EOF
  15701. #line 15702 "configure"
  15702. #include "confdefs.h"
  15703.  
  15704.                     #include <Xm/Xm.h>
  15705.                 
  15706. int main() {
  15707.  
  15708.                     int version;
  15709.                     version = xmUseVersion;
  15710.                 
  15711. ; return 0; }
  15712. EOF
  15713. if { (eval echo configure:15714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  15714.   rm -rf conftest*
  15715.   
  15716.                     echo "$ac_t""found in default search path" 1>&6
  15717.                     COMPILED_X_PROGRAM=1
  15718.                 
  15719. else
  15720.   echo "configure: failed program was:" >&5
  15721.   cat conftest.$ac_ext >&5
  15722.   rm -rf conftest*
  15723.   
  15724.                     echo "$ac_t""no" 1>&6
  15725.                     { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
  15726.                 
  15727.             
  15728. fi
  15729. rm -f conftest*
  15730.         fi
  15731.  
  15732.         if test "$COMPILED_X_PROGRAM" = 0; then
  15733.             echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
  15734. echo "configure:15735: checking for Motif/Lesstif library" >&5
  15735.             
  15736. ac_find_libraries=
  15737. for ac_dir in $SEARCH_LIB /usr/lib;
  15738.   do
  15739.     for ac_extension in a so sl dylib; do
  15740.       if test -f "$ac_dir/libXm.$ac_extension"; then
  15741.         ac_find_libraries=$ac_dir
  15742.         break 2
  15743.       fi
  15744.     done
  15745.   done
  15746.  
  15747.             if test "$ac_find_libraries" != "" ; then
  15748.                 echo "$ac_t""found at $ac_find_libraries" 1>&6
  15749.  
  15750.                 
  15751.   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
  15752.   result=$?
  15753.   if test $result = 0; then
  15754.     ac_path_to_link=""
  15755.   else
  15756.     ac_path_to_link=" -L$ac_find_libraries"
  15757.   fi
  15758.  
  15759.                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
  15760.             else
  15761.                                                                 save_CFLAGS=$CFLAGS
  15762.                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
  15763.  
  15764.                 cat > conftest.$ac_ext <<EOF
  15765. #line 15766 "configure"
  15766. #include "confdefs.h"
  15767.  
  15768.                         #include <Xm/Xm.h>
  15769.                     
  15770. int main() {
  15771.  
  15772.                         int version;
  15773.                         version = xmUseVersion;
  15774.                     
  15775. ; return 0; }
  15776. EOF
  15777. if { (eval echo configure:15778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  15778.   rm -rf conftest*
  15779.   
  15780.                         echo "$ac_t""found in default search path" 1>&6
  15781.                         COMPILED_X_PROGRAM=1
  15782.                     
  15783. else
  15784.   echo "configure: failed program was:" >&5
  15785.   cat conftest.$ac_ext >&5
  15786.   rm -rf conftest*
  15787.   
  15788.                         echo "$ac_t""no" 1>&6
  15789.                         { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
  15790.                     
  15791.                 
  15792. fi
  15793. rm -f conftest*
  15794.  
  15795.                 CFLAGS=$save_CFLAGS
  15796.             fi
  15797.         fi
  15798.  
  15799.         xpm_link=
  15800.         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
  15801. echo "configure:15802: checking for Xpm library" >&5
  15802.         
  15803. ac_find_libraries=
  15804. for ac_dir in $SEARCH_LIB /usr/lib;
  15805.   do
  15806.     for ac_extension in a so sl dylib; do
  15807.       if test -f "$ac_dir/libXpm.$ac_extension"; then
  15808.         ac_find_libraries=$ac_dir
  15809.         break 2
  15810.       fi
  15811.     done
  15812.   done
  15813.  
  15814.         if test "$ac_find_libraries" != "" ; then
  15815.             
  15816.   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
  15817.   result=$?
  15818.   if test $result = 0; then
  15819.     ac_path_to_link=""
  15820.   else
  15821.     ac_path_to_link=" -L$ac_find_libraries"
  15822.   fi
  15823.  
  15824.             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
  15825.  
  15826.             xpm_link=" -lXpm"
  15827.             cat >> confdefs.h <<\EOF
  15828. #define wxHAVE_LIB_XPM 1
  15829. EOF
  15830.  
  15831.             echo "$ac_t""found at $ac_find_libraries" 1>&6
  15832.         else
  15833.             save_CFLAGS=$CFLAGS
  15834.             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
  15835.  
  15836.             cat > conftest.$ac_ext <<EOF
  15837. #line 15838 "configure"
  15838. #include "confdefs.h"
  15839.  
  15840.                     #include <X11/xpm.h>
  15841.                 
  15842. int main() {
  15843.  
  15844.                     int version;
  15845.                     version = XpmLibraryVersion();
  15846.                 
  15847. ; return 0; }
  15848. EOF
  15849. if { (eval echo configure:15850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  15850.   rm -rf conftest*
  15851.   
  15852.                     xpm_link=" -lXpm"
  15853.                     cat >> confdefs.h <<\EOF
  15854. #define wxHAVE_LIB_XPM 1
  15855. EOF
  15856.  
  15857.                     echo "$ac_t""found in default search path" 1>&6
  15858.                     COMPILED_X_PROGRAM=0
  15859.                 
  15860. else
  15861.   echo "configure: failed program was:" >&5
  15862.   cat conftest.$ac_ext >&5
  15863.   rm -rf conftest*
  15864.   
  15865.                     echo "$ac_t""no" 1>&6
  15866.                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
  15867.                 
  15868.             
  15869. fi
  15870. rm -f conftest*
  15871.  
  15872.             CFLAGS=$save_CFLAGS
  15873.         fi
  15874.  
  15875.         echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
  15876. echo "configure:15877: checking if we need -lXp and/or -lSM -lICE" >&5
  15877.         libp_link=""
  15878.         libsm_ice_link=""
  15879.         libs_found=0
  15880.         for libp in "" " -lXp"; do
  15881.             if test "$libs_found" = "0"; then
  15882.                 for libsm_ice in " -lSM -lICE"; do
  15883.                     if test "$libs_found" = "0"; then
  15884.                         save_LIBS="$LIBS"
  15885.                         LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
  15886.                         save_CFLAGS=$CFLAGS
  15887.                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
  15888.  
  15889.                         cat > conftest.$ac_ext <<EOF
  15890. #line 15891 "configure"
  15891. #include "confdefs.h"
  15892.  
  15893.                                 #include <Xm/Xm.h>
  15894.                                 #include <Xm/List.h>
  15895.                             
  15896. int main() {
  15897.  
  15898.                                 XmString string = NULL;
  15899.                                 Widget w = NULL;
  15900.                                 int position = 0;
  15901.                                 XmListAddItem(w, string, position);
  15902.                             
  15903. ; return 0; }
  15904. EOF
  15905. if { (eval echo configure:15906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15906.   rm -rf conftest*
  15907.   
  15908.                                 libp_link="$libp"
  15909.                                 libsm_ice_link="$libsm_ice"
  15910.                                 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
  15911.                                 libs_found=1
  15912.                             
  15913. else
  15914.   echo "configure: failed program was:" >&5
  15915.   cat conftest.$ac_ext >&5
  15916.   rm -rf conftest*
  15917.   
  15918.                         
  15919. fi
  15920. rm -f conftest*
  15921.  
  15922.                         LIBS="$save_LIBS"
  15923.                         CFLAGS=$save_CFLAGS
  15924.                     fi
  15925.                 done
  15926.             fi
  15927.         done
  15928.  
  15929.         if test "$libs_found" = "0"; then
  15930.             echo "$ac_t""can't find the right libraries" 1>&6
  15931.             { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
  15932.         fi
  15933.  
  15934.         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
  15935.         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
  15936.         TOOLKIT=MOTIF
  15937.         GUIDIST=MOTIF_DIST
  15938.     fi
  15939.  
  15940.     if test "$wxUSE_MAC" = 1; then
  15941.         CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefile -I/Developer/Headers/FlatCarbon"
  15942.  
  15943.         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
  15944.         TOOLKIT=MAC
  15945.                 GUIDIST=MACX_DIST
  15946.     fi
  15947.  
  15948.     if test "$wxUSE_PM" = 1; then
  15949.         TOOLKIT=PM
  15950.         GUIDIST=GTK_DIST
  15951.         echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
  15952.         wxUSE_PROLOGIO="yes"
  15953.         wxUSE_RESOURCES="yes"
  15954.         echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
  15955.         wxUSE_THREADS="no"
  15956.     fi
  15957.  
  15958.         if test "$TOOLKIT" = "PM" ; then
  15959.         TOOLKIT_DIR="os2"
  15960.     else
  15961.         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
  15962.     fi
  15963.  
  15964.         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
  15965.  
  15966.     if test "$wxUSE_UNIVERSAL" = "yes"; then
  15967.         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
  15968.  
  15969.                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
  15970.         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
  15971.  
  15972.         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
  15973.         if test "$wxUSE_X11" = 1; then
  15974.             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
  15975.         else
  15976.             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
  15977.         fi
  15978.         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
  15979.         WIDGET_SET=univ
  15980.     else
  15981.         ALL_OBJECTS="\$(GUIOBJS)"
  15982.         ALL_SOURCES="\$(ALL_SOURCES)"
  15983.         ALL_HEADERS="\$(ALL_HEADERS)"
  15984.     fi
  15985.  
  15986.     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
  15987.  
  15988.     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
  15989.         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
  15990.     fi
  15991.  
  15992.     if test "$wxUSE_HTML" = "yes"; then
  15993.         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
  15994.     fi
  15995.  
  15996.     if test "$wxUSE_LIBJPEG" = "builtin" ; then
  15997.         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
  15998.     fi
  15999.     if test "$wxUSE_LIBTIFF" = "builtin" ; then
  16000.         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
  16001.     fi
  16002.     if test "$wxUSE_LIBPNG" = "builtin" ; then
  16003.         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
  16004.     fi
  16005.  
  16006.         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
  16007.     DISTDIR="wx\$(TOOLKIT)"
  16008. else
  16009.     USE_GUI=0
  16010.  
  16011.             TOOLKIT_DIR="base"
  16012.  
  16013.         if test "$USE_WIN32" = 1 ; then
  16014.         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
  16015.         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
  16016.  
  16017.                         TOOLKIT="MSW"
  16018.     else
  16019.         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
  16020.         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
  16021.     fi
  16022.  
  16023.     ALL_SOURCES="\$(ALL_SOURCES)"
  16024.     ALL_HEADERS="\$(ALL_HEADERS)"
  16025.  
  16026.     PORT_FILES="\${top_srcdir}/src/files.lst"
  16027.  
  16028.         GUIDIST="BASE_DIST"
  16029.     DISTDIR="wxBase"
  16030. fi
  16031.  
  16032.  
  16033. if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
  16034.     ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
  16035. fi
  16036.  
  16037. if test "$wxUSE_REGEX" = "builtin" ; then
  16038.     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
  16039. fi
  16040. if test "$wxUSE_ZLIB" = "builtin" ; then
  16041.     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
  16042. fi
  16043.  
  16044.  
  16045. if test "$wxUSE_OPENGL" = "yes"; then
  16046.     if test "$wxUSE_MAC" = 1; then
  16047.         OPENGL_LIBS="-framework OpenGL -framework AGL"
  16048.     elif test "$wxUSE_MSW" = 1; then
  16049.         OPENGL_LIBS="-lopengl32 -lglu32"
  16050.     else
  16051.         ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
  16052. echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
  16053. echo "configure:16054: checking for GL/gl.h" >&5
  16054. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  16055.   echo $ac_n "(cached) $ac_c" 1>&6
  16056. else
  16057.   cat > conftest.$ac_ext <<EOF
  16058. #include <sys/types.h>
  16059. #line 16060 "configure"
  16060. #include "confdefs.h"
  16061. #include <GL/gl.h>
  16062. EOF
  16063. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  16064. { (eval echo configure:16065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  16065. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  16066. if test -z "$ac_err"; then
  16067.   rm -rf conftest*
  16068.   eval "ac_cv_header_$ac_safe=yes"
  16069. else
  16070.   echo "$ac_err" >&5
  16071.   echo "configure: failed program was:" >&5
  16072.   cat conftest.$ac_ext >&5
  16073.   rm -rf conftest*
  16074.   eval "ac_cv_header_$ac_safe=no"
  16075. fi
  16076. rm -f conftest*
  16077. fi
  16078. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  16079.   echo "$ac_t""yes" 1>&6
  16080.   
  16081.                 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
  16082. echo "configure:16083: checking for -lGL" >&5
  16083.                 
  16084. ac_find_libraries=
  16085. for ac_dir in $SEARCH_LIB /usr/lib;
  16086.   do
  16087.     for ac_extension in a so sl dylib; do
  16088.       if test -f "$ac_dir/libGL.$ac_extension"; then
  16089.         ac_find_libraries=$ac_dir
  16090.         break 2
  16091.       fi
  16092.     done
  16093.   done
  16094.  
  16095.                 if test "$ac_find_libraries" != "" ; then
  16096.                     
  16097.   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
  16098.   result=$?
  16099.   if test $result = 0; then
  16100.     ac_path_to_link=""
  16101.   else
  16102.     ac_path_to_link=" -L$ac_find_libraries"
  16103.   fi
  16104.  
  16105.                     if test "$ac_path_to_link" = " -L/usr/lib" ; then
  16106.                         LDFLAGS_GL="$LDFLAGS"
  16107.                     else
  16108.                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
  16109.                     fi
  16110.                     OPENGL_LIBS="-lGL -lGLU"
  16111.                     echo "$ac_t""yes" 1>&6
  16112.                 else
  16113.                     echo "$ac_t""no" 1>&6
  16114.                     echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
  16115. echo "configure:16116: checking for -lMesaGL" >&5
  16116.                     
  16117. ac_find_libraries=
  16118. for ac_dir in $SEARCH_LIB /usr/lib;
  16119.   do
  16120.     for ac_extension in a so sl dylib; do
  16121.       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
  16122.         ac_find_libraries=$ac_dir
  16123.         break 2
  16124.       fi
  16125.     done
  16126.   done
  16127.  
  16128.                     if test "$ac_find_libraries" != "" ; then
  16129.                         
  16130.   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
  16131.   result=$?
  16132.   if test $result = 0; then
  16133.     ac_path_to_link=""
  16134.   else
  16135.     ac_path_to_link=" -L$ac_find_libraries"
  16136.   fi
  16137.  
  16138.                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
  16139.                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
  16140.                         echo "$ac_t""yes" 1>&6
  16141.                     else
  16142.                         echo "$ac_t""no" 1>&6
  16143.                     fi
  16144.                 fi
  16145.             
  16146. else
  16147.   echo "$ac_t""no" 1>&6
  16148. fi
  16149.  
  16150.  
  16151.         if test "x$OPENGL_LIBS" = "x"; then
  16152.                                                 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
  16153.         fi
  16154.     fi
  16155.  
  16156.     if test "$wxUSE_OPENGL" = "yes"; then
  16157.         cat >> confdefs.h <<\EOF
  16158. #define wxUSE_OPENGL 1
  16159. EOF
  16160.  
  16161.         cat >> confdefs.h <<\EOF
  16162. #define wxUSE_GLCANVAS 1
  16163. EOF
  16164.  
  16165.         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
  16166.     fi
  16167. fi
  16168.  
  16169. if test -z "$TOOLKIT_VPATH" ; then
  16170.     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
  16171. fi
  16172.  
  16173. if test -n "$TOOLKIT" ; then
  16174.     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
  16175. fi
  16176.  
  16177. lib_unicode_suffix=
  16178. if test "$wxUSE_UNICODE" = "yes"; then
  16179.     lib_unicode_suffix=u
  16180. fi
  16181.  
  16182. lib_debug_suffix=
  16183. if test "$wxUSE_DEBUG_FLAG" = "yes"; then
  16184.     lib_debug_suffix=d
  16185. fi
  16186.  
  16187. WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
  16188.  
  16189. TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
  16190. TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
  16191.  
  16192. if test "$cross_compiling" = "yes"; then
  16193.     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
  16194.     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
  16195. fi
  16196.  
  16197. WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
  16198. WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
  16199. WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
  16200.  
  16201. WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
  16202. WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
  16203.  
  16204. WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
  16205. WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
  16206. WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
  16207. WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
  16208.  
  16209. case "${host}" in
  16210.     *-*-cygwin* | *-*-mingw32* )
  16211.  
  16212.                         
  16213.         
  16214.         if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
  16215.             WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
  16216.             WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
  16217.             WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
  16218.             WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
  16219.         else
  16220.             WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
  16221.             WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
  16222.         fi
  16223.         ;;
  16224.  
  16225.     *-*-darwin* )
  16226.                         
  16227.         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
  16228.         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
  16229.  
  16230.         WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
  16231.         WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
  16232.         WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
  16233.         WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
  16234.  
  16235.                         if test "$wxUSE_MAC" = 1; then
  16236.                         WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
  16237.             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
  16238.         fi
  16239.         ;;
  16240. esac
  16241.  
  16242. WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
  16243. WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
  16244.  
  16245. WXCONFIG_LIBS="-l${WX_LIBRARY}"
  16246. WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
  16247.  
  16248. if test "$wxUSE_OPENGL" = "yes"; then
  16249.     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
  16250.     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
  16251. fi
  16252.  
  16253.  
  16254.  
  16255. if test "$wxUSE_SHARED" = "yes"; then
  16256.     case "${host}" in
  16257.       *-pc-os2_emx | *-pc-os2-emx | \
  16258.       *-pc-msdosdjgpp )
  16259.                 wxUSE_SHARED=no
  16260.         echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
  16261.       ;;
  16262.     esac
  16263. fi
  16264.  
  16265. if test "$wxUSE_SHARED" = "yes"; then
  16266.  
  16267.         if test "$wxUSE_OPENGL" = "yes"; then
  16268.         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
  16269.         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
  16270.     else
  16271.         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
  16272.         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
  16273.     fi
  16274.  
  16275.         if test "$GCC" = "yes"; then
  16276.                 PIC_FLAG="-fPIC"
  16277.     fi
  16278.  
  16279.  
  16280.         
  16281.   found_versioning=no
  16282.  
  16283.                         
  16284.     if test $found_versioning = no ; then
  16285.       echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
  16286. echo "configure:16287: checking if the linker accepts --version-script" >&5
  16287. if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
  16288.   echo $ac_n "(cached) $ac_c" 1>&6
  16289. else
  16290.   
  16291.         echo "VER_1 { *; };" >conftest.sym
  16292.         echo "int main() { return 0; }" >conftest.cpp
  16293.   
  16294.         if { ac_try='
  16295.                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
  16296.                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
  16297.           if test -s conftest.stderr ; then
  16298.               wx_cv_version_script=no
  16299.           else
  16300.               wx_cv_version_script=yes
  16301.           fi
  16302.         else
  16303.           wx_cv_version_script=no
  16304.         fi
  16305.         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
  16306.       
  16307. fi
  16308.  
  16309. echo "$ac_t""$wx_cv_version_script" 1>&6
  16310.       if test $wx_cv_version_script = yes ; then
  16311.         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
  16312.       fi
  16313.   fi
  16314.  
  16315.  
  16316.         SHARED_LD="${CXX} -shared -o"
  16317.  
  16318.     case "${host}" in
  16319.       *-hp-hpux* )
  16320.                 if test "$GCC" = "yes"; then
  16321.                         SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
  16322.         else
  16323.                         LDFLAGS="$LDFLAGS -L/usr/lib"
  16324.  
  16325.             SHARED_LD="${CXX} -b -o"
  16326.             PIC_FLAG="+Z"
  16327.         fi
  16328.  
  16329.                 if test "$wxUSE_OPENGL" = "yes"; then
  16330.             WX_ALL_INSTALLED="preinstall_gl"
  16331.             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
  16332.         else
  16333.             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
  16334.         fi
  16335.       ;;
  16336.  
  16337.       *-*-linux* )
  16338.         if test "$GCC" != "yes"; then
  16339.             echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
  16340. echo "configure:16341: checking for Intel compiler" >&5
  16341. if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
  16342.   echo $ac_n "(cached) $ac_c" 1>&6
  16343. else
  16344.   
  16345.                 cat > conftest.$ac_ext <<EOF
  16346. #line 16347 "configure"
  16347. #include "confdefs.h"
  16348.  
  16349. int main() {
  16350.  
  16351.                         #ifndef __INTEL_COMPILER
  16352.                         #error Not icc
  16353.                         #endif
  16354.                     
  16355. ; return 0; }
  16356. EOF
  16357. if { (eval echo configure:16358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  16358.   rm -rf conftest*
  16359.   wx_cv_prog_icc=yes
  16360. else
  16361.   echo "configure: failed program was:" >&5
  16362.   cat conftest.$ac_ext >&5
  16363.   rm -rf conftest*
  16364.   wx_cv_prog_icc=no
  16365.                 
  16366. fi
  16367. rm -f conftest*
  16368.             
  16369. fi
  16370.  
  16371. echo "$ac_t""$wx_cv_prog_icc" 1>&6
  16372.             if test "$wx_cv_prog_icc" = "yes"; then
  16373.                 PIC_FLAG="-KPIC"
  16374.             fi
  16375.         fi
  16376.  
  16377.         if test "$wxUSE_SONAME" = "yes" ; then
  16378.             SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
  16379.             SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
  16380.                         WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
  16381.         fi
  16382.       ;;
  16383.  
  16384.       *-*-solaris2* )
  16385.         if test "$GCC" = yes ; then
  16386.                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
  16387.         else
  16388.             SHARED_LD="${CXX} -G -o"
  16389.             PIC_FLAG="-KPIC"
  16390.             SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
  16391.             SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
  16392.         fi
  16393.       ;;
  16394.  
  16395.       *-*-darwin* )
  16396.                         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
  16397.         CFLAGS="$CFLAGS -fno-common"
  16398.         CXXFLAGS="$CXXFLAGS -fno-common"
  16399.                                         SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
  16400.         PIC_FLAG="-dynamic -fPIC"
  16401.         SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
  16402.         SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
  16403.       ;;
  16404.  
  16405.       *-*-aix* )
  16406.                 if test "$GCC" != "yes"; then
  16407.                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
  16408. set dummy makeC++SharedLib; ac_word=$2
  16409. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  16410. echo "configure:16411: checking for $ac_word" >&5
  16411. if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
  16412.   echo $ac_n "(cached) $ac_c" 1>&6
  16413. else
  16414.   if test -n "$AIX_CXX_LD"; then
  16415.   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
  16416. else
  16417.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  16418.   ac_dummy="$PATH"
  16419.   for ac_dir in $ac_dummy; do
  16420.     test -z "$ac_dir" && ac_dir=.
  16421.     if test -f $ac_dir/$ac_word -o \
  16422.             -f $ac_dir/$ac_word$ac_exeext ; then
  16423.       ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
  16424.       break
  16425.     fi
  16426.   done
  16427.   IFS="$ac_save_ifs"
  16428.   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
  16429. fi
  16430. fi
  16431. AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
  16432. if test -n "$AIX_CXX_LD"; then
  16433.   echo "$ac_t""$AIX_CXX_LD" 1>&6
  16434. else
  16435.   echo "$ac_t""no" 1>&6
  16436. fi
  16437.  
  16438.  
  16439.             SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
  16440.         fi
  16441.       ;;
  16442.  
  16443.       *-*-cygwin* | *-*-mingw32* )
  16444.         WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
  16445.  
  16446.         SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
  16447.         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
  16448.  
  16449.         PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
  16450.  
  16451.                 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
  16452.         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
  16453.  
  16454.         if test "$wxUSE_OPENGL" = "yes"; then
  16455.             LIBS="${LIBS} ${OPENGL_LIBS}"
  16456.         fi
  16457.       ;;
  16458.  
  16459.       *-*-beos* )
  16460.                         SHARED_LD="${LD} -shared -o"
  16461.       ;;
  16462.  
  16463.       *-*-irix* )
  16464.                 if test "$GCC" != "yes"; then
  16465.             PIC_FLAG="-KPIC"
  16466.         fi
  16467.       ;;
  16468.  
  16469.       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
  16470.       *-*-sunos4* | \
  16471.       *-*-osf* | \
  16472.       *-*-dgux5* | \
  16473.       *-*-sysv5* )
  16474.               ;;
  16475.  
  16476.       *)
  16477.         { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
  16478.     esac
  16479.  
  16480.         if test "x$WX_TARGET_LIBRARY" = "x"; then
  16481.         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
  16482.         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
  16483.     fi
  16484.  
  16485.         WX_TARGET_LIBRARY_TYPE="so"
  16486.     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
  16487. fi
  16488.  
  16489. if test "$wxUSE_SHARED" = "no"; then
  16490.  
  16491.         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
  16492.                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
  16493.     fi
  16494.  
  16495.     if test "$wxUSE_MAC" = 1; then
  16496.         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
  16497.     fi
  16498.  
  16499.     if test "$wxUSE_OPENGL" = "yes"; then
  16500.         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
  16501.         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
  16502.     else
  16503.         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
  16504.     fi
  16505.  
  16506.     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
  16507.     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
  16508.  
  16509.     WX_TARGET_LIBRARY_TYPE="a"
  16510.     INSTALL_LIBRARY='$(INSTALL_DATA)'
  16511.  
  16512.             STATIC_FLAG="yes"
  16513. else
  16514.     STATIC_FLAG="no"
  16515. fi
  16516.  
  16517. if test "$wxUSE_MAC" = 1; then
  16518.         LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
  16519.     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
  16520.     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
  16521.     # Extract the first word of "Rez", so it can be a program name with args.
  16522. set dummy Rez; ac_word=$2
  16523. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  16524. echo "configure:16525: checking for $ac_word" >&5
  16525. if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
  16526.   echo $ac_n "(cached) $ac_c" 1>&6
  16527. else
  16528.   if test -n "$RESCOMP"; then
  16529.   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
  16530. else
  16531.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  16532.   ac_dummy="$PATH"
  16533.   for ac_dir in $ac_dummy; do
  16534.     test -z "$ac_dir" && ac_dir=.
  16535.     if test -f $ac_dir/$ac_word -o \
  16536.             -f $ac_dir/$ac_word$ac_exeext ; then
  16537.       ac_cv_prog_RESCOMP="Rez"
  16538.       break
  16539.     fi
  16540.   done
  16541.   IFS="$ac_save_ifs"
  16542.   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
  16543. fi
  16544. fi
  16545. RESCOMP="$ac_cv_prog_RESCOMP"
  16546. if test -n "$RESCOMP"; then
  16547.   echo "$ac_t""$RESCOMP" 1>&6
  16548. else
  16549.   echo "$ac_t""no" 1>&6
  16550. fi
  16551.  
  16552.     # Extract the first word of "DeRez", so it can be a program name with args.
  16553. set dummy DeRez; ac_word=$2
  16554. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  16555. echo "configure:16556: checking for $ac_word" >&5
  16556. if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
  16557.   echo $ac_n "(cached) $ac_c" 1>&6
  16558. else
  16559.   if test -n "$DEREZ"; then
  16560.   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
  16561. else
  16562.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  16563.   ac_dummy="$PATH"
  16564.   for ac_dir in $ac_dummy; do
  16565.     test -z "$ac_dir" && ac_dir=.
  16566.     if test -f $ac_dir/$ac_word -o \
  16567.             -f $ac_dir/$ac_word$ac_exeext ; then
  16568.       ac_cv_prog_DEREZ="DeRez"
  16569.       break
  16570.     fi
  16571.   done
  16572.   IFS="$ac_save_ifs"
  16573.   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
  16574. fi
  16575. fi
  16576. DEREZ="$ac_cv_prog_DEREZ"
  16577. if test -n "$DEREZ"; then
  16578.   echo "$ac_t""$DEREZ" 1>&6
  16579. else
  16580.   echo "$ac_t""no" 1>&6
  16581. fi
  16582.  
  16583.     MACOSX_BUNDLE="bundle"
  16584.             LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
  16585.     LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
  16586. else
  16587.     if test "$wxUSE_PM" = 1; then
  16588.         LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
  16589.     fi
  16590. fi
  16591.  
  16592.  
  16593. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  16594. echo "configure:16595: checking for ANSI C header files" >&5
  16595. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  16596.   echo $ac_n "(cached) $ac_c" 1>&6
  16597. else
  16598.   cat > conftest.$ac_ext <<EOF
  16599. #include <sys/types.h>
  16600. #line 16601 "configure"
  16601. #include "confdefs.h"
  16602. #include <stdlib.h>
  16603. #include <stdarg.h>
  16604. #include <string.h>
  16605. #include <float.h>
  16606. EOF
  16607. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  16608. { (eval echo configure:16609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  16609. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  16610. if test -z "$ac_err"; then
  16611.   rm -rf conftest*
  16612.   ac_cv_header_stdc=yes
  16613. else
  16614.   echo "$ac_err" >&5
  16615.   echo "configure: failed program was:" >&5
  16616.   cat conftest.$ac_ext >&5
  16617.   rm -rf conftest*
  16618.   ac_cv_header_stdc=no
  16619. fi
  16620. rm -f conftest*
  16621.  
  16622. if test $ac_cv_header_stdc = yes; then
  16623.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  16624. cat > conftest.$ac_ext <<EOF
  16625. #line 16626 "configure"
  16626. #include "confdefs.h"
  16627. #include <string.h>
  16628. EOF
  16629. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16630.   egrep "memchr" >/dev/null 2>&1; then
  16631.   :
  16632. else
  16633.   rm -rf conftest*
  16634.   ac_cv_header_stdc=no
  16635. fi
  16636. rm -f conftest*
  16637.  
  16638. fi
  16639.  
  16640. if test $ac_cv_header_stdc = yes; then
  16641.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  16642. cat > conftest.$ac_ext <<EOF
  16643. #line 16644 "configure"
  16644. #include "confdefs.h"
  16645. #include <stdlib.h>
  16646. EOF
  16647. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16648.   egrep "free" >/dev/null 2>&1; then
  16649.   :
  16650. else
  16651.   rm -rf conftest*
  16652.   ac_cv_header_stdc=no
  16653. fi
  16654. rm -f conftest*
  16655.  
  16656. fi
  16657.  
  16658. if test $ac_cv_header_stdc = yes; then
  16659.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  16660. if test "$cross_compiling" = yes; then
  16661.   :
  16662. else
  16663.   cat > conftest.$ac_ext <<EOF
  16664. #line 16665 "configure"
  16665. #include "confdefs.h"
  16666. #include <ctype.h>
  16667. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  16668. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  16669. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  16670. int main () { int i; for (i = 0; i < 256; i++)
  16671. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  16672. exit (0); }
  16673.  
  16674. EOF
  16675. if { (eval echo configure:16676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  16676. then
  16677.   :
  16678. else
  16679.   echo "configure: failed program was:" >&5
  16680.   cat conftest.$ac_ext >&5
  16681.   rm -fr conftest*
  16682.   ac_cv_header_stdc=no
  16683. fi
  16684. rm -fr conftest*
  16685. fi
  16686.  
  16687. fi
  16688. fi
  16689.  
  16690. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  16691. if test $ac_cv_header_stdc = yes; then
  16692.   cat >> confdefs.h <<\EOF
  16693. #define STDC_HEADERS 1
  16694. EOF
  16695.  
  16696. fi
  16697.  
  16698. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  16699. echo "configure:16700: checking for mode_t" >&5
  16700. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  16701.   echo $ac_n "(cached) $ac_c" 1>&6
  16702. else
  16703.   cat > conftest.$ac_ext <<EOF
  16704. #line 16705 "configure"
  16705. #include "confdefs.h"
  16706. #include <sys/types.h>
  16707. #if STDC_HEADERS
  16708. #include <stdlib.h>
  16709. #include <stddef.h>
  16710. #endif
  16711. EOF
  16712. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16713.   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  16714.   rm -rf conftest*
  16715.   ac_cv_type_mode_t=yes
  16716. else
  16717.   rm -rf conftest*
  16718.   ac_cv_type_mode_t=no
  16719. fi
  16720. rm -f conftest*
  16721.  
  16722. fi
  16723. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  16724. if test $ac_cv_type_mode_t = no; then
  16725.   cat >> confdefs.h <<\EOF
  16726. #define mode_t int
  16727. EOF
  16728.  
  16729. fi
  16730.  
  16731. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  16732. echo "configure:16733: checking for off_t" >&5
  16733. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  16734.   echo $ac_n "(cached) $ac_c" 1>&6
  16735. else
  16736.   cat > conftest.$ac_ext <<EOF
  16737. #line 16738 "configure"
  16738. #include "confdefs.h"
  16739. #include <sys/types.h>
  16740. #if STDC_HEADERS
  16741. #include <stdlib.h>
  16742. #include <stddef.h>
  16743. #endif
  16744. EOF
  16745. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16746.   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  16747.   rm -rf conftest*
  16748.   ac_cv_type_off_t=yes
  16749. else
  16750.   rm -rf conftest*
  16751.   ac_cv_type_off_t=no
  16752. fi
  16753. rm -f conftest*
  16754.  
  16755. fi
  16756. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  16757. if test $ac_cv_type_off_t = no; then
  16758.   cat >> confdefs.h <<\EOF
  16759. #define off_t long
  16760. EOF
  16761.  
  16762. fi
  16763.  
  16764. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  16765. echo "configure:16766: checking for pid_t" >&5
  16766. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  16767.   echo $ac_n "(cached) $ac_c" 1>&6
  16768. else
  16769.   cat > conftest.$ac_ext <<EOF
  16770. #line 16771 "configure"
  16771. #include "confdefs.h"
  16772. #include <sys/types.h>
  16773. #if STDC_HEADERS
  16774. #include <stdlib.h>
  16775. #include <stddef.h>
  16776. #endif
  16777. EOF
  16778. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16779.   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  16780.   rm -rf conftest*
  16781.   ac_cv_type_pid_t=yes
  16782. else
  16783.   rm -rf conftest*
  16784.   ac_cv_type_pid_t=no
  16785. fi
  16786. rm -f conftest*
  16787.  
  16788. fi
  16789. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  16790. if test $ac_cv_type_pid_t = no; then
  16791.   cat >> confdefs.h <<\EOF
  16792. #define pid_t int
  16793. EOF
  16794.  
  16795. fi
  16796.  
  16797. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  16798. echo "configure:16799: checking for size_t" >&5
  16799. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  16800.   echo $ac_n "(cached) $ac_c" 1>&6
  16801. else
  16802.   cat > conftest.$ac_ext <<EOF
  16803. #line 16804 "configure"
  16804. #include "confdefs.h"
  16805. #include <sys/types.h>
  16806. #if STDC_HEADERS
  16807. #include <stdlib.h>
  16808. #include <stddef.h>
  16809. #endif
  16810. EOF
  16811. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16812.   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  16813.   rm -rf conftest*
  16814.   ac_cv_type_size_t=yes
  16815. else
  16816.   rm -rf conftest*
  16817.   ac_cv_type_size_t=no
  16818. fi
  16819. rm -f conftest*
  16820.  
  16821. fi
  16822. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  16823. if test $ac_cv_type_size_t = no; then
  16824.   cat >> confdefs.h <<\EOF
  16825. #define size_t unsigned
  16826. EOF
  16827.  
  16828. fi
  16829.  
  16830. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  16831. echo "configure:16832: checking for uid_t in sys/types.h" >&5
  16832. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  16833.   echo $ac_n "(cached) $ac_c" 1>&6
  16834. else
  16835.   cat > conftest.$ac_ext <<EOF
  16836. #line 16837 "configure"
  16837. #include "confdefs.h"
  16838. #include <sys/types.h>
  16839. EOF
  16840. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16841.   egrep "uid_t" >/dev/null 2>&1; then
  16842.   rm -rf conftest*
  16843.   ac_cv_type_uid_t=yes
  16844. else
  16845.   rm -rf conftest*
  16846.   ac_cv_type_uid_t=no
  16847. fi
  16848. rm -f conftest*
  16849.  
  16850. fi
  16851.  
  16852. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  16853. if test $ac_cv_type_uid_t = no; then
  16854.   cat >> confdefs.h <<\EOF
  16855. #define uid_t int
  16856. EOF
  16857.  
  16858.   cat >> confdefs.h <<\EOF
  16859. #define gid_t int
  16860. EOF
  16861.  
  16862. fi
  16863.  
  16864.  
  16865.  
  16866. ac_ext=C
  16867. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  16868. ac_cpp='$CXXCPP $CPPFLAGS'
  16869. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  16870. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  16871. cross_compiling=$ac_cv_prog_cxx_cross
  16872.  
  16873. echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
  16874. echo "configure:16875: checking if size_t is unsigned int" >&5
  16875. if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
  16876.   echo $ac_n "(cached) $ac_c" 1>&6
  16877. else
  16878.                           cat > conftest.$ac_ext <<EOF
  16879. #line 16880 "configure"
  16880. #include "confdefs.h"
  16881. #include <stddef.h>
  16882. int main() {
  16883.  
  16884.             return 0; }
  16885.  
  16886.             struct Foo { void foo(size_t); void foo(unsigned int); };
  16887.  
  16888.             int bar() {
  16889.         
  16890. ; return 0; }
  16891. EOF
  16892. if { (eval echo configure:16893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  16893.   rm -rf conftest*
  16894.   wx_cv_size_t_is_uint=no
  16895. else
  16896.   echo "configure: failed program was:" >&5
  16897.   cat conftest.$ac_ext >&5
  16898.   rm -rf conftest*
  16899.   wx_cv_size_t_is_uint=yes
  16900.     
  16901. fi
  16902. rm -f conftest*
  16903.  
  16904. fi
  16905.  
  16906. echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
  16907.  
  16908. if test "$wx_cv_size_t_is_uint" = "yes"; then
  16909.     cat >> confdefs.h <<\EOF
  16910. #define wxSIZE_T_IS_UINT 1
  16911. EOF
  16912.  
  16913. else
  16914.     echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
  16915. echo "configure:16916: checking if size_t is unsigned long" >&5
  16916. if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
  16917.   echo $ac_n "(cached) $ac_c" 1>&6
  16918. else
  16919.   cat > conftest.$ac_ext <<EOF
  16920. #line 16921 "configure"
  16921. #include "confdefs.h"
  16922. #include <stddef.h>
  16923. int main() {
  16924.  
  16925.                 return 0; }
  16926.  
  16927.                 struct Foo { void foo(size_t); void foo(unsigned long); };
  16928.  
  16929.                 int bar() {
  16930.             
  16931. ; return 0; }
  16932. EOF
  16933. if { (eval echo configure:16934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  16934.   rm -rf conftest*
  16935.   wx_cv_size_t_is_ulong=no
  16936. else
  16937.   echo "configure: failed program was:" >&5
  16938.   cat conftest.$ac_ext >&5
  16939.   rm -rf conftest*
  16940.   wx_cv_size_t_is_ulong=yes
  16941.         
  16942. fi
  16943. rm -f conftest*
  16944.     
  16945. fi
  16946.  
  16947. echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
  16948.  
  16949.     if test "$wx_cv_size_t_is_ulong" = "yes"; then
  16950.         cat >> confdefs.h <<\EOF
  16951. #define wxSIZE_T_IS_ULONG 1
  16952. EOF
  16953.  
  16954.     fi
  16955. fi
  16956.  
  16957. ac_ext=c
  16958. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  16959. ac_cpp='$CPP $CPPFLAGS'
  16960. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  16961. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  16962. cross_compiling=$ac_cv_prog_cc_cross
  16963.  
  16964.  
  16965.  
  16966. echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
  16967. echo "configure:16968: checking for pw_gecos in struct passwd" >&5
  16968. if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
  16969.   echo $ac_n "(cached) $ac_c" 1>&6
  16970. else
  16971.   
  16972.         cat > conftest.$ac_ext <<EOF
  16973. #line 16974 "configure"
  16974. #include "confdefs.h"
  16975. #include <pwd.h>
  16976. int main() {
  16977.  
  16978.                 char *p;
  16979.                 struct passwd *pw;
  16980.                 p = pw->pw_gecos;
  16981.              
  16982. ; return 0; }
  16983. EOF
  16984. if { (eval echo configure:16985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  16985.   rm -rf conftest*
  16986.   
  16987.                 wx_cv_struct_pw_gecos=yes
  16988.              
  16989. else
  16990.   echo "configure: failed program was:" >&5
  16991.   cat conftest.$ac_ext >&5
  16992.   rm -rf conftest*
  16993.   
  16994.                 wx_cv_struct_pw_gecos=no
  16995.              
  16996.         
  16997. fi
  16998. rm -f conftest*
  16999.     
  17000.  
  17001. fi
  17002.  
  17003. echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
  17004.  
  17005. if test "$wx_cv_struct_pw_gecos" = "yes"; then
  17006.     cat >> confdefs.h <<\EOF
  17007. #define HAVE_PW_GECOS 1
  17008. EOF
  17009.  
  17010. fi
  17011.  
  17012.  
  17013. if test "$wx_cv_sizeof_wchar_t" != "0"; then
  17014.     cat >> confdefs.h <<\EOF
  17015. #define wxUSE_WCHAR_T 1
  17016. EOF
  17017.  
  17018.  
  17019.         WCSLEN_FOUND=0
  17020.     WCHAR_LINK=
  17021.     for ac_func in wcslen
  17022. do
  17023. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17024. echo "configure:17025: checking for $ac_func" >&5
  17025. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17026.   echo $ac_n "(cached) $ac_c" 1>&6
  17027. else
  17028.   cat > conftest.$ac_ext <<EOF
  17029. #line 17030 "configure"
  17030. #include "confdefs.h"
  17031. /* System header to define __stub macros and hopefully few prototypes,
  17032.     which can conflict with char $ac_func(); below.  */
  17033. #include <assert.h>
  17034. /* Override any gcc2 internal prototype to avoid an error.  */
  17035. /* We use char because int might match the return type of a gcc2
  17036.     builtin and then its argument prototype would still apply.  */
  17037. char $ac_func();
  17038.  
  17039. int main() {
  17040.  
  17041. /* The GNU C library defines this for functions which it implements
  17042.     to always fail with ENOSYS.  Some functions are actually named
  17043.     something starting with __ and the normal name is an alias.  */
  17044. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17045. choke me
  17046. #else
  17047. $ac_func();
  17048. #endif
  17049.  
  17050. ; return 0; }
  17051. EOF
  17052. if { (eval echo configure:17053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17053.   rm -rf conftest*
  17054.   eval "ac_cv_func_$ac_func=yes"
  17055. else
  17056.   echo "configure: failed program was:" >&5
  17057.   cat conftest.$ac_ext >&5
  17058.   rm -rf conftest*
  17059.   eval "ac_cv_func_$ac_func=no"
  17060. fi
  17061. rm -f conftest*
  17062. fi
  17063.  
  17064. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17065.   echo "$ac_t""yes" 1>&6
  17066.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17067.   cat >> confdefs.h <<EOF
  17068. #define $ac_tr_func 1
  17069. EOF
  17070.  WCSLEN_FOUND=1
  17071. else
  17072.   echo "$ac_t""no" 1>&6
  17073. fi
  17074. done
  17075.  
  17076.  
  17077.     if test "$WCSLEN_FOUND" = 0; then
  17078.         if test "$TOOLKIT" = "MSW"; then
  17079.             echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
  17080. echo "configure:17081: checking for wcslen in -lmsvcrt" >&5
  17081. ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
  17082. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  17083.   echo $ac_n "(cached) $ac_c" 1>&6
  17084. else
  17085.   ac_save_LIBS="$LIBS"
  17086. LIBS="-lmsvcrt  $LIBS"
  17087. cat > conftest.$ac_ext <<EOF
  17088. #line 17089 "configure"
  17089. #include "confdefs.h"
  17090. /* Override any gcc2 internal prototype to avoid an error.  */
  17091. /* We use char because int might match the return type of a gcc2
  17092.     builtin and then its argument prototype would still apply.  */
  17093. char wcslen();
  17094.  
  17095. int main() {
  17096. wcslen()
  17097. ; return 0; }
  17098. EOF
  17099. if { (eval echo configure:17100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17100.   rm -rf conftest*
  17101.   eval "ac_cv_lib_$ac_lib_var=yes"
  17102. else
  17103.   echo "configure: failed program was:" >&5
  17104.   cat conftest.$ac_ext >&5
  17105.   rm -rf conftest*
  17106.   eval "ac_cv_lib_$ac_lib_var=no"
  17107. fi
  17108. rm -f conftest*
  17109. LIBS="$ac_save_LIBS"
  17110.  
  17111. fi
  17112. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  17113.   echo "$ac_t""yes" 1>&6
  17114.   WCHAR_OK=1
  17115. else
  17116.   echo "$ac_t""no" 1>&6
  17117. fi
  17118.  
  17119.         else
  17120.             echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
  17121. echo "configure:17122: checking for wcslen in -lw" >&5
  17122. ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
  17123. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  17124.   echo $ac_n "(cached) $ac_c" 1>&6
  17125. else
  17126.   ac_save_LIBS="$LIBS"
  17127. LIBS="-lw  $LIBS"
  17128. cat > conftest.$ac_ext <<EOF
  17129. #line 17130 "configure"
  17130. #include "confdefs.h"
  17131. /* Override any gcc2 internal prototype to avoid an error.  */
  17132. /* We use char because int might match the return type of a gcc2
  17133.     builtin and then its argument prototype would still apply.  */
  17134. char wcslen();
  17135.  
  17136. int main() {
  17137. wcslen()
  17138. ; return 0; }
  17139. EOF
  17140. if { (eval echo configure:17141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17141.   rm -rf conftest*
  17142.   eval "ac_cv_lib_$ac_lib_var=yes"
  17143. else
  17144.   echo "configure: failed program was:" >&5
  17145.   cat conftest.$ac_ext >&5
  17146.   rm -rf conftest*
  17147.   eval "ac_cv_lib_$ac_lib_var=no"
  17148. fi
  17149. rm -f conftest*
  17150. LIBS="$ac_save_LIBS"
  17151.  
  17152. fi
  17153. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  17154.   echo "$ac_t""yes" 1>&6
  17155.   
  17156.                             WCHAR_LINK=" -lw"
  17157.                             WCSLEN_FOUND=1
  17158.                         
  17159. else
  17160.   echo "$ac_t""no" 1>&6
  17161. fi
  17162.  
  17163.         fi
  17164.     fi
  17165.  
  17166.     if test "$WCSLEN_FOUND" = 1; then
  17167.         cat >> confdefs.h <<\EOF
  17168. #define HAVE_WCSLEN 1
  17169. EOF
  17170.  
  17171.     fi
  17172.  
  17173.             for ac_func in wcsrtombs
  17174. do
  17175. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17176. echo "configure:17177: checking for $ac_func" >&5
  17177. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17178.   echo $ac_n "(cached) $ac_c" 1>&6
  17179. else
  17180.   cat > conftest.$ac_ext <<EOF
  17181. #line 17182 "configure"
  17182. #include "confdefs.h"
  17183. /* System header to define __stub macros and hopefully few prototypes,
  17184.     which can conflict with char $ac_func(); below.  */
  17185. #include <assert.h>
  17186. /* Override any gcc2 internal prototype to avoid an error.  */
  17187. /* We use char because int might match the return type of a gcc2
  17188.     builtin and then its argument prototype would still apply.  */
  17189. char $ac_func();
  17190.  
  17191. int main() {
  17192.  
  17193. /* The GNU C library defines this for functions which it implements
  17194.     to always fail with ENOSYS.  Some functions are actually named
  17195.     something starting with __ and the normal name is an alias.  */
  17196. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17197. choke me
  17198. #else
  17199. $ac_func();
  17200. #endif
  17201.  
  17202. ; return 0; }
  17203. EOF
  17204. if { (eval echo configure:17205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17205.   rm -rf conftest*
  17206.   eval "ac_cv_func_$ac_func=yes"
  17207. else
  17208.   echo "configure: failed program was:" >&5
  17209.   cat conftest.$ac_ext >&5
  17210.   rm -rf conftest*
  17211.   eval "ac_cv_func_$ac_func=no"
  17212. fi
  17213. rm -f conftest*
  17214. fi
  17215.  
  17216. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17217.   echo "$ac_t""yes" 1>&6
  17218.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17219.   cat >> confdefs.h <<EOF
  17220. #define $ac_tr_func 1
  17221. EOF
  17222.  
  17223. else
  17224.   echo "$ac_t""no" 1>&6
  17225. fi
  17226. done
  17227.  
  17228. else
  17229.     echo "configure: warning: Wide character support is unavailable" 1>&2
  17230. fi
  17231.  
  17232.  
  17233. ac_ext=C
  17234. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  17235. ac_cpp='$CXXCPP $CPPFLAGS'
  17236. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  17237. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  17238. cross_compiling=$ac_cv_prog_cxx_cross
  17239.  
  17240.  
  17241. for ac_func in vsnprintf
  17242. do
  17243. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17244. echo "configure:17245: checking for $ac_func" >&5
  17245. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17246.   echo $ac_n "(cached) $ac_c" 1>&6
  17247. else
  17248.   cat > conftest.$ac_ext <<EOF
  17249. #line 17250 "configure"
  17250. #include "confdefs.h"
  17251. /* System header to define __stub macros and hopefully few prototypes,
  17252.     which can conflict with char $ac_func(); below.  */
  17253. #include <assert.h>
  17254. /* Override any gcc2 internal prototype to avoid an error.  */
  17255. #ifdef __cplusplus
  17256. extern "C"
  17257. #endif
  17258. /* We use char because int might match the return type of a gcc2
  17259.     builtin and then its argument prototype would still apply.  */
  17260. char $ac_func();
  17261.  
  17262. int main() {
  17263.  
  17264. /* The GNU C library defines this for functions which it implements
  17265.     to always fail with ENOSYS.  Some functions are actually named
  17266.     something starting with __ and the normal name is an alias.  */
  17267. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17268. choke me
  17269. #else
  17270. $ac_func();
  17271. #endif
  17272.  
  17273. ; return 0; }
  17274. EOF
  17275. if { (eval echo configure:17276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17276.   rm -rf conftest*
  17277.   eval "ac_cv_func_$ac_func=yes"
  17278. else
  17279.   echo "configure: failed program was:" >&5
  17280.   cat conftest.$ac_ext >&5
  17281.   rm -rf conftest*
  17282.   eval "ac_cv_func_$ac_func=no"
  17283. fi
  17284. rm -f conftest*
  17285. fi
  17286.  
  17287. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17288.   echo "$ac_t""yes" 1>&6
  17289.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17290.   cat >> confdefs.h <<EOF
  17291. #define $ac_tr_func 1
  17292. EOF
  17293.  
  17294. else
  17295.   echo "$ac_t""no" 1>&6
  17296. fi
  17297. done
  17298.  
  17299.  
  17300. if test "$wxUSE_UNICODE" = yes; then
  17301.         for ac_func in fputwc wprintf vswprintf
  17302. do
  17303. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17304. echo "configure:17305: checking for $ac_func" >&5
  17305. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17306.   echo $ac_n "(cached) $ac_c" 1>&6
  17307. else
  17308.   cat > conftest.$ac_ext <<EOF
  17309. #line 17310 "configure"
  17310. #include "confdefs.h"
  17311. /* System header to define __stub macros and hopefully few prototypes,
  17312.     which can conflict with char $ac_func(); below.  */
  17313. #include <assert.h>
  17314. /* Override any gcc2 internal prototype to avoid an error.  */
  17315. #ifdef __cplusplus
  17316. extern "C"
  17317. #endif
  17318. /* We use char because int might match the return type of a gcc2
  17319.     builtin and then its argument prototype would still apply.  */
  17320. char $ac_func();
  17321.  
  17322. int main() {
  17323.  
  17324. /* The GNU C library defines this for functions which it implements
  17325.     to always fail with ENOSYS.  Some functions are actually named
  17326.     something starting with __ and the normal name is an alias.  */
  17327. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17328. choke me
  17329. #else
  17330. $ac_func();
  17331. #endif
  17332.  
  17333. ; return 0; }
  17334. EOF
  17335. if { (eval echo configure:17336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17336.   rm -rf conftest*
  17337.   eval "ac_cv_func_$ac_func=yes"
  17338. else
  17339.   echo "configure: failed program was:" >&5
  17340.   cat conftest.$ac_ext >&5
  17341.   rm -rf conftest*
  17342.   eval "ac_cv_func_$ac_func=no"
  17343. fi
  17344. rm -f conftest*
  17345. fi
  17346.  
  17347. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17348.   echo "$ac_t""yes" 1>&6
  17349.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17350.   cat >> confdefs.h <<EOF
  17351. #define $ac_tr_func 1
  17352. EOF
  17353.  
  17354. else
  17355.   echo "$ac_t""no" 1>&6
  17356. fi
  17357. done
  17358.  
  17359.                 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
  17360. echo "configure:17361: checking for _vsnwprintf" >&5
  17361.     cat > conftest.$ac_ext <<EOF
  17362. #line 17363 "configure"
  17363. #include "confdefs.h"
  17364. #include <wchar.h>
  17365. int main() {
  17366. &_vsnwprintf;
  17367. ; return 0; }
  17368. EOF
  17369. if { (eval echo configure:17370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  17370.   rm -rf conftest*
  17371.   echo "$ac_t""yes" 1>&6
  17372.                     cat >> confdefs.h <<\EOF
  17373. #define HAVE__VSNWPRINTF 1
  17374. EOF
  17375.  
  17376. else
  17377.   echo "configure: failed program was:" >&5
  17378.   cat conftest.$ac_ext >&5
  17379.   rm -rf conftest*
  17380.   echo "$ac_t""no" 1>&6
  17381. fi
  17382. rm -f conftest*;
  17383. fi
  17384.  
  17385. ac_ext=c
  17386. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  17387. ac_cpp='$CPP $CPPFLAGS'
  17388. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  17389. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  17390. cross_compiling=$ac_cv_prog_cc_cross
  17391.  
  17392.  
  17393.  
  17394.  
  17395. if test "$TOOLKIT" != "MSW"; then
  17396.  
  17397.  
  17398.  
  17399. ac_ext=C
  17400. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  17401. ac_cpp='$CXXCPP $CPPFLAGS'
  17402. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  17403. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  17404. cross_compiling=$ac_cv_prog_cxx_cross
  17405.  
  17406.  
  17407.     
  17408.   # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  17409. if test "${with_libiconv_prefix+set}" = set; then
  17410.   withval="$with_libiconv_prefix"
  17411.   
  17412.     for dir in `echo "$withval" | tr : ' '`; do
  17413.       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
  17414.       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
  17415.     done
  17416.    
  17417. fi
  17418.  
  17419.  
  17420.   echo $ac_n "checking for iconv""... $ac_c" 1>&6
  17421. echo "configure:17422: checking for iconv" >&5
  17422. if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
  17423.   echo $ac_n "(cached) $ac_c" 1>&6
  17424. else
  17425.   
  17426.     am_cv_func_iconv="no, consider installing GNU libiconv"
  17427.     am_cv_lib_iconv=no
  17428.     cat > conftest.$ac_ext <<EOF
  17429. #line 17430 "configure"
  17430. #include "confdefs.h"
  17431. #include <stdlib.h>
  17432. #include <iconv.h>
  17433. int main() {
  17434. iconv_t cd = iconv_open("","");
  17435.        iconv(cd,NULL,NULL,NULL,NULL);
  17436.        iconv_close(cd);
  17437. ; return 0; }
  17438. EOF
  17439. if { (eval echo configure:17440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17440.   rm -rf conftest*
  17441.   am_cv_func_iconv=yes
  17442. else
  17443.   echo "configure: failed program was:" >&5
  17444.   cat conftest.$ac_ext >&5
  17445. fi
  17446. rm -f conftest*
  17447.     if test "$am_cv_func_iconv" != yes; then
  17448.       am_save_LIBS="$LIBS"
  17449.       LIBS="$LIBS -liconv"
  17450.       cat > conftest.$ac_ext <<EOF
  17451. #line 17452 "configure"
  17452. #include "confdefs.h"
  17453. #include <stdlib.h>
  17454. #include <iconv.h>
  17455. int main() {
  17456. iconv_t cd = iconv_open("","");
  17457.          iconv(cd,NULL,NULL,NULL,NULL);
  17458.          iconv_close(cd);
  17459. ; return 0; }
  17460. EOF
  17461. if { (eval echo configure:17462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17462.   rm -rf conftest*
  17463.   am_cv_lib_iconv=yes
  17464.         am_cv_func_iconv=yes
  17465. else
  17466.   echo "configure: failed program was:" >&5
  17467.   cat conftest.$ac_ext >&5
  17468. fi
  17469. rm -f conftest*
  17470.       LIBS="$am_save_LIBS"
  17471.     fi
  17472.   
  17473. fi
  17474.  
  17475. echo "$ac_t""$am_cv_func_iconv" 1>&6
  17476.   if test "$am_cv_func_iconv" = yes; then
  17477.     cat >> confdefs.h <<\EOF
  17478. #define HAVE_ICONV 1
  17479. EOF
  17480.  
  17481.     echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
  17482. echo "configure:17483: checking if iconv needs const" >&5
  17483. if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
  17484.   echo $ac_n "(cached) $ac_c" 1>&6
  17485. else
  17486.   cat > conftest.$ac_ext <<EOF
  17487. #line 17488 "configure"
  17488. #include "confdefs.h"
  17489.  
  17490. #include <stdlib.h>
  17491. #include <iconv.h>
  17492. extern
  17493. #ifdef __cplusplus
  17494. "C"
  17495. #endif
  17496. #if defined(__STDC__) || defined(__cplusplus)
  17497. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  17498. #else
  17499. size_t iconv();
  17500. #endif
  17501.         
  17502. int main() {
  17503.  
  17504. ; return 0; }
  17505. EOF
  17506. if { (eval echo configure:17507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  17507.   rm -rf conftest*
  17508.   wx_cv_func_iconv_const="no"
  17509. else
  17510.   echo "configure: failed program was:" >&5
  17511.   cat conftest.$ac_ext >&5
  17512.   rm -rf conftest*
  17513.   wx_cv_func_iconv_const="yes"
  17514.       
  17515. fi
  17516. rm -f conftest*
  17517.     
  17518. fi
  17519.  
  17520. echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
  17521.  
  17522.     iconv_const=
  17523.     if test "x$wx_cv_func_iconv_const" = "xyes"; then
  17524.         iconv_const="const"
  17525.     fi
  17526.  
  17527.     cat >> confdefs.h <<EOF
  17528. #define ICONV_CONST $iconv_const
  17529. EOF
  17530.  
  17531.   fi
  17532.   LIBICONV=
  17533.   if test "$am_cv_lib_iconv" = yes; then
  17534.     LIBICONV="-liconv"
  17535.   fi
  17536.   
  17537.  
  17538. LIBS="$LIBICONV $LIBS"
  17539. ac_ext=c
  17540. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  17541. ac_cpp='$CPP $CPPFLAGS'
  17542. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  17543. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  17544. cross_compiling=$ac_cv_prog_cc_cross
  17545.  
  17546.  
  17547. if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
  17548.     for ac_func in sigaction
  17549. do
  17550. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17551. echo "configure:17552: checking for $ac_func" >&5
  17552. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17553.   echo $ac_n "(cached) $ac_c" 1>&6
  17554. else
  17555.   cat > conftest.$ac_ext <<EOF
  17556. #line 17557 "configure"
  17557. #include "confdefs.h"
  17558. /* System header to define __stub macros and hopefully few prototypes,
  17559.     which can conflict with char $ac_func(); below.  */
  17560. #include <assert.h>
  17561. /* Override any gcc2 internal prototype to avoid an error.  */
  17562. /* We use char because int might match the return type of a gcc2
  17563.     builtin and then its argument prototype would still apply.  */
  17564. char $ac_func();
  17565.  
  17566. int main() {
  17567.  
  17568. /* The GNU C library defines this for functions which it implements
  17569.     to always fail with ENOSYS.  Some functions are actually named
  17570.     something starting with __ and the normal name is an alias.  */
  17571. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17572. choke me
  17573. #else
  17574. $ac_func();
  17575. #endif
  17576.  
  17577. ; return 0; }
  17578. EOF
  17579. if { (eval echo configure:17580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17580.   rm -rf conftest*
  17581.   eval "ac_cv_func_$ac_func=yes"
  17582. else
  17583.   echo "configure: failed program was:" >&5
  17584.   cat conftest.$ac_ext >&5
  17585.   rm -rf conftest*
  17586.   eval "ac_cv_func_$ac_func=no"
  17587. fi
  17588. rm -f conftest*
  17589. fi
  17590.  
  17591. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17592.   echo "$ac_t""yes" 1>&6
  17593.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17594.   cat >> confdefs.h <<EOF
  17595. #define $ac_tr_func 1
  17596. EOF
  17597.  
  17598. else
  17599.   echo "$ac_t""no" 1>&6
  17600. fi
  17601. done
  17602.  
  17603.  
  17604.     if test "$ac_cv_func_sigaction" = "no"; then
  17605.         echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
  17606.         wxUSE_ON_FATAL_EXCEPTION=no
  17607.     fi
  17608.  
  17609.     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
  17610.       
  17611.       ac_ext=C
  17612. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  17613. ac_cpp='$CXXCPP $CPPFLAGS'
  17614. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  17615. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  17616. cross_compiling=$ac_cv_prog_cxx_cross
  17617.  
  17618.  
  17619.       echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
  17620. echo "configure:17621: checking for sa_handler type" >&5
  17621. if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
  17622.   echo $ac_n "(cached) $ac_c" 1>&6
  17623. else
  17624.   
  17625.         cat > conftest.$ac_ext <<EOF
  17626. #line 17627 "configure"
  17627. #include "confdefs.h"
  17628. #include <signal.h>
  17629. int main() {
  17630.  
  17631.                         extern void testSigHandler(int);
  17632.  
  17633.                         struct sigaction sa;
  17634.                         sa.sa_handler = testSigHandler;
  17635.                      
  17636. ; return 0; }
  17637. EOF
  17638. if { (eval echo configure:17639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  17639.   rm -rf conftest*
  17640.   
  17641.                         wx_cv_type_sa_handler=int
  17642.                      
  17643. else
  17644.   echo "configure: failed program was:" >&5
  17645.   cat conftest.$ac_ext >&5
  17646.   rm -rf conftest*
  17647.   
  17648.                         wx_cv_type_sa_handler=void
  17649.                      
  17650. fi
  17651. rm -f conftest*
  17652.       
  17653. fi
  17654.  
  17655. echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
  17656.  
  17657.       ac_ext=c
  17658. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  17659. ac_cpp='$CPP $CPPFLAGS'
  17660. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  17661. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  17662. cross_compiling=$ac_cv_prog_cc_cross
  17663.  
  17664.  
  17665.       cat >> confdefs.h <<EOF
  17666. #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
  17667. EOF
  17668.  
  17669.     fi
  17670. fi
  17671.  
  17672. for ac_func in mkstemp mktemp
  17673. do
  17674. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17675. echo "configure:17676: checking for $ac_func" >&5
  17676. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17677.   echo $ac_n "(cached) $ac_c" 1>&6
  17678. else
  17679.   cat > conftest.$ac_ext <<EOF
  17680. #line 17681 "configure"
  17681. #include "confdefs.h"
  17682. /* System header to define __stub macros and hopefully few prototypes,
  17683.     which can conflict with char $ac_func(); below.  */
  17684. #include <assert.h>
  17685. /* Override any gcc2 internal prototype to avoid an error.  */
  17686. /* We use char because int might match the return type of a gcc2
  17687.     builtin and then its argument prototype would still apply.  */
  17688. char $ac_func();
  17689.  
  17690. int main() {
  17691.  
  17692. /* The GNU C library defines this for functions which it implements
  17693.     to always fail with ENOSYS.  Some functions are actually named
  17694.     something starting with __ and the normal name is an alias.  */
  17695. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17696. choke me
  17697. #else
  17698. $ac_func();
  17699. #endif
  17700.  
  17701. ; return 0; }
  17702. EOF
  17703. if { (eval echo configure:17704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17704.   rm -rf conftest*
  17705.   eval "ac_cv_func_$ac_func=yes"
  17706. else
  17707.   echo "configure: failed program was:" >&5
  17708.   cat conftest.$ac_ext >&5
  17709.   rm -rf conftest*
  17710.   eval "ac_cv_func_$ac_func=no"
  17711. fi
  17712. rm -f conftest*
  17713. fi
  17714.  
  17715. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17716.   echo "$ac_t""yes" 1>&6
  17717.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17718.   cat >> confdefs.h <<EOF
  17719. #define $ac_tr_func 1
  17720. EOF
  17721.  break
  17722. else
  17723.   echo "$ac_t""no" 1>&6
  17724. fi
  17725. done
  17726.  
  17727.  
  17728. echo $ac_n "checking for statfs""... $ac_c" 1>&6
  17729. echo "configure:17730: checking for statfs" >&5
  17730. if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
  17731.   echo $ac_n "(cached) $ac_c" 1>&6
  17732. else
  17733.   cat > conftest.$ac_ext <<EOF
  17734. #line 17735 "configure"
  17735. #include "confdefs.h"
  17736.  
  17737.              #if defined(__BSD__)
  17738.                #include <sys/param.h>
  17739.                #include <sys/mount.h>
  17740.              #else
  17741.                #include <sys/vfs.h>
  17742.              #endif
  17743.         
  17744. int main() {
  17745.  
  17746.              long l;
  17747.              struct statfs fs;
  17748.              statfs("/", &fs);
  17749.              l = fs.f_bsize;
  17750.              l += fs.f_blocks;
  17751.              l += fs.f_bavail;
  17752.         
  17753. ; return 0; }
  17754. EOF
  17755. if { (eval echo configure:17756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  17756.   rm -rf conftest*
  17757.   
  17758.              wx_cv_func_statfs=yes
  17759.         
  17760. else
  17761.   echo "configure: failed program was:" >&5
  17762.   cat conftest.$ac_ext >&5
  17763.   rm -rf conftest*
  17764.   
  17765.              wx_cv_func_statfs=no
  17766.         
  17767.     
  17768. fi
  17769. rm -f conftest*
  17770.  
  17771. fi
  17772.  
  17773. echo "$ac_t""$wx_cv_func_statfs" 1>&6
  17774.  
  17775. if test "$wx_cv_func_statfs" = "yes"; then
  17776.     cat >> confdefs.h <<\EOF
  17777. #define HAVE_STATFS 1
  17778. EOF
  17779.  
  17780. else
  17781.     echo $ac_n "checking for statvfs""... $ac_c" 1>&6
  17782. echo "configure:17783: checking for statvfs" >&5
  17783. if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
  17784.   echo $ac_n "(cached) $ac_c" 1>&6
  17785. else
  17786.   cat > conftest.$ac_ext <<EOF
  17787. #line 17788 "configure"
  17788. #include "confdefs.h"
  17789.  
  17790.                  #include <sys/statvfs.h>
  17791.             
  17792. int main() {
  17793.  
  17794.                  long l;
  17795.                  struct statvfs fs;
  17796.                  statvfs("/", &fs);
  17797.                  l = fs.f_bsize;
  17798.                  l += fs.f_blocks;
  17799.                  l += fs.f_bavail;
  17800.             
  17801. ; return 0; }
  17802. EOF
  17803. if { (eval echo configure:17804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  17804.   rm -rf conftest*
  17805.   
  17806.                  wx_cv_func_statvfs=yes
  17807.             
  17808. else
  17809.   echo "configure: failed program was:" >&5
  17810.   cat conftest.$ac_ext >&5
  17811.   rm -rf conftest*
  17812.   
  17813.                  wx_cv_func_statvfs=no
  17814.             
  17815.         
  17816. fi
  17817. rm -f conftest*
  17818.     
  17819. fi
  17820.  
  17821. echo "$ac_t""$wx_cv_func_statvfs" 1>&6
  17822.  
  17823.     if test "$wx_cv_func_statvfs" = "yes"; then
  17824.         cat >> confdefs.h <<\EOF
  17825. #define HAVE_STATVFS 1
  17826. EOF
  17827.  
  17828.     else
  17829.         echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
  17830.     fi
  17831. fi
  17832.  
  17833. if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
  17834.     for ac_func in fcntl flock
  17835. do
  17836. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17837. echo "configure:17838: checking for $ac_func" >&5
  17838. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17839.   echo $ac_n "(cached) $ac_c" 1>&6
  17840. else
  17841.   cat > conftest.$ac_ext <<EOF
  17842. #line 17843 "configure"
  17843. #include "confdefs.h"
  17844. /* System header to define __stub macros and hopefully few prototypes,
  17845.     which can conflict with char $ac_func(); below.  */
  17846. #include <assert.h>
  17847. /* Override any gcc2 internal prototype to avoid an error.  */
  17848. /* We use char because int might match the return type of a gcc2
  17849.     builtin and then its argument prototype would still apply.  */
  17850. char $ac_func();
  17851.  
  17852. int main() {
  17853.  
  17854. /* The GNU C library defines this for functions which it implements
  17855.     to always fail with ENOSYS.  Some functions are actually named
  17856.     something starting with __ and the normal name is an alias.  */
  17857. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17858. choke me
  17859. #else
  17860. $ac_func();
  17861. #endif
  17862.  
  17863. ; return 0; }
  17864. EOF
  17865. if { (eval echo configure:17866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17866.   rm -rf conftest*
  17867.   eval "ac_cv_func_$ac_func=yes"
  17868. else
  17869.   echo "configure: failed program was:" >&5
  17870.   cat conftest.$ac_ext >&5
  17871.   rm -rf conftest*
  17872.   eval "ac_cv_func_$ac_func=no"
  17873. fi
  17874. rm -f conftest*
  17875. fi
  17876.  
  17877. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17878.   echo "$ac_t""yes" 1>&6
  17879.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17880.   cat >> confdefs.h <<EOF
  17881. #define $ac_tr_func 1
  17882. EOF
  17883.  break
  17884. else
  17885.   echo "$ac_t""no" 1>&6
  17886. fi
  17887. done
  17888.  
  17889.  
  17890.     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
  17891.         echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
  17892.         wxUSE_SNGLINST_CHECKER=no
  17893.     fi
  17894. fi
  17895.  
  17896. for ac_func in timegm
  17897. do
  17898. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17899. echo "configure:17900: checking for $ac_func" >&5
  17900. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17901.   echo $ac_n "(cached) $ac_c" 1>&6
  17902. else
  17903.   cat > conftest.$ac_ext <<EOF
  17904. #line 17905 "configure"
  17905. #include "confdefs.h"
  17906. /* System header to define __stub macros and hopefully few prototypes,
  17907.     which can conflict with char $ac_func(); below.  */
  17908. #include <assert.h>
  17909. /* Override any gcc2 internal prototype to avoid an error.  */
  17910. /* We use char because int might match the return type of a gcc2
  17911.     builtin and then its argument prototype would still apply.  */
  17912. char $ac_func();
  17913.  
  17914. int main() {
  17915.  
  17916. /* The GNU C library defines this for functions which it implements
  17917.     to always fail with ENOSYS.  Some functions are actually named
  17918.     something starting with __ and the normal name is an alias.  */
  17919. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17920. choke me
  17921. #else
  17922. $ac_func();
  17923. #endif
  17924.  
  17925. ; return 0; }
  17926. EOF
  17927. if { (eval echo configure:17928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17928.   rm -rf conftest*
  17929.   eval "ac_cv_func_$ac_func=yes"
  17930. else
  17931.   echo "configure: failed program was:" >&5
  17932.   cat conftest.$ac_ext >&5
  17933.   rm -rf conftest*
  17934.   eval "ac_cv_func_$ac_func=no"
  17935. fi
  17936. rm -f conftest*
  17937. fi
  17938.  
  17939. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17940.   echo "$ac_t""yes" 1>&6
  17941.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17942.   cat >> confdefs.h <<EOF
  17943. #define $ac_tr_func 1
  17944. EOF
  17945.  
  17946. else
  17947.   echo "$ac_t""no" 1>&6
  17948. fi
  17949. done
  17950.  
  17951.  
  17952. for ac_func in putenv setenv
  17953. do
  17954. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17955. echo "configure:17956: checking for $ac_func" >&5
  17956. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17957.   echo $ac_n "(cached) $ac_c" 1>&6
  17958. else
  17959.   cat > conftest.$ac_ext <<EOF
  17960. #line 17961 "configure"
  17961. #include "confdefs.h"
  17962. /* System header to define __stub macros and hopefully few prototypes,
  17963.     which can conflict with char $ac_func(); below.  */
  17964. #include <assert.h>
  17965. /* Override any gcc2 internal prototype to avoid an error.  */
  17966. /* We use char because int might match the return type of a gcc2
  17967.     builtin and then its argument prototype would still apply.  */
  17968. char $ac_func();
  17969.  
  17970. int main() {
  17971.  
  17972. /* The GNU C library defines this for functions which it implements
  17973.     to always fail with ENOSYS.  Some functions are actually named
  17974.     something starting with __ and the normal name is an alias.  */
  17975. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17976. choke me
  17977. #else
  17978. $ac_func();
  17979. #endif
  17980.  
  17981. ; return 0; }
  17982. EOF
  17983. if { (eval echo configure:17984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17984.   rm -rf conftest*
  17985.   eval "ac_cv_func_$ac_func=yes"
  17986. else
  17987.   echo "configure: failed program was:" >&5
  17988.   cat conftest.$ac_ext >&5
  17989.   rm -rf conftest*
  17990.   eval "ac_cv_func_$ac_func=no"
  17991. fi
  17992. rm -f conftest*
  17993. fi
  17994.  
  17995. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17996.   echo "$ac_t""yes" 1>&6
  17997.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17998.   cat >> confdefs.h <<EOF
  17999. #define $ac_tr_func 1
  18000. EOF
  18001.  break
  18002. else
  18003.   echo "$ac_t""no" 1>&6
  18004. fi
  18005. done
  18006.  
  18007.  
  18008. HAVE_SOME_SLEEP_FUNC=0
  18009. if test "$USE_BEOS" = 1; then
  18010.             cat >> confdefs.h <<\EOF
  18011. #define HAVE_SLEEP 1
  18012. EOF
  18013.  
  18014.     HAVE_SOME_SLEEP_FUNC=1
  18015. fi
  18016.  
  18017. if test "$USE_DARWIN" = 1; then
  18018.             cat >> confdefs.h <<\EOF
  18019. #define HAVE_USLEEP 1
  18020. EOF
  18021.  
  18022.     HAVE_SOME_SLEEP_FUNC=1
  18023. fi
  18024.  
  18025. if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
  18026.         POSIX4_LINK=
  18027.     for ac_func in nanosleep
  18028. do
  18029. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  18030. echo "configure:18031: checking for $ac_func" >&5
  18031. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  18032.   echo $ac_n "(cached) $ac_c" 1>&6
  18033. else
  18034.   cat > conftest.$ac_ext <<EOF
  18035. #line 18036 "configure"
  18036. #include "confdefs.h"
  18037. /* System header to define __stub macros and hopefully few prototypes,
  18038.     which can conflict with char $ac_func(); below.  */
  18039. #include <assert.h>
  18040. /* Override any gcc2 internal prototype to avoid an error.  */
  18041. /* We use char because int might match the return type of a gcc2
  18042.     builtin and then its argument prototype would still apply.  */
  18043. char $ac_func();
  18044.  
  18045. int main() {
  18046.  
  18047. /* The GNU C library defines this for functions which it implements
  18048.     to always fail with ENOSYS.  Some functions are actually named
  18049.     something starting with __ and the normal name is an alias.  */
  18050. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18051. choke me
  18052. #else
  18053. $ac_func();
  18054. #endif
  18055.  
  18056. ; return 0; }
  18057. EOF
  18058. if { (eval echo configure:18059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18059.   rm -rf conftest*
  18060.   eval "ac_cv_func_$ac_func=yes"
  18061. else
  18062.   echo "configure: failed program was:" >&5
  18063.   cat conftest.$ac_ext >&5
  18064.   rm -rf conftest*
  18065.   eval "ac_cv_func_$ac_func=no"
  18066. fi
  18067. rm -f conftest*
  18068. fi
  18069.  
  18070. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  18071.   echo "$ac_t""yes" 1>&6
  18072.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  18073.   cat >> confdefs.h <<EOF
  18074. #define $ac_tr_func 1
  18075. EOF
  18076.  cat >> confdefs.h <<\EOF
  18077. #define HAVE_NANOSLEEP 1
  18078. EOF
  18079.  
  18080. else
  18081.   echo "$ac_t""no" 1>&6
  18082. echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
  18083. echo "configure:18084: checking for nanosleep in -lposix4" >&5
  18084. ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
  18085. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  18086.   echo $ac_n "(cached) $ac_c" 1>&6
  18087. else
  18088.   ac_save_LIBS="$LIBS"
  18089. LIBS="-lposix4  $LIBS"
  18090. cat > conftest.$ac_ext <<EOF
  18091. #line 18092 "configure"
  18092. #include "confdefs.h"
  18093. /* Override any gcc2 internal prototype to avoid an error.  */
  18094. /* We use char because int might match the return type of a gcc2
  18095.     builtin and then its argument prototype would still apply.  */
  18096. char nanosleep();
  18097.  
  18098. int main() {
  18099. nanosleep()
  18100. ; return 0; }
  18101. EOF
  18102. if { (eval echo configure:18103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18103.   rm -rf conftest*
  18104.   eval "ac_cv_lib_$ac_lib_var=yes"
  18105. else
  18106.   echo "configure: failed program was:" >&5
  18107.   cat conftest.$ac_ext >&5
  18108.   rm -rf conftest*
  18109.   eval "ac_cv_lib_$ac_lib_var=no"
  18110. fi
  18111. rm -f conftest*
  18112. LIBS="$ac_save_LIBS"
  18113.  
  18114. fi
  18115. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  18116.   echo "$ac_t""yes" 1>&6
  18117.   
  18118.                     cat >> confdefs.h <<\EOF
  18119. #define HAVE_NANOSLEEP 1
  18120. EOF
  18121.  
  18122.                     POSIX4_LINK=" -lposix4"
  18123.                 
  18124. else
  18125.   echo "$ac_t""no" 1>&6
  18126.  
  18127.                     for ac_func in usleep
  18128. do
  18129. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  18130. echo "configure:18131: checking for $ac_func" >&5
  18131. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  18132.   echo $ac_n "(cached) $ac_c" 1>&6
  18133. else
  18134.   cat > conftest.$ac_ext <<EOF
  18135. #line 18136 "configure"
  18136. #include "confdefs.h"
  18137. /* System header to define __stub macros and hopefully few prototypes,
  18138.     which can conflict with char $ac_func(); below.  */
  18139. #include <assert.h>
  18140. /* Override any gcc2 internal prototype to avoid an error.  */
  18141. /* We use char because int might match the return type of a gcc2
  18142.     builtin and then its argument prototype would still apply.  */
  18143. char $ac_func();
  18144.  
  18145. int main() {
  18146.  
  18147. /* The GNU C library defines this for functions which it implements
  18148.     to always fail with ENOSYS.  Some functions are actually named
  18149.     something starting with __ and the normal name is an alias.  */
  18150. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18151. choke me
  18152. #else
  18153. $ac_func();
  18154. #endif
  18155.  
  18156. ; return 0; }
  18157. EOF
  18158. if { (eval echo configure:18159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18159.   rm -rf conftest*
  18160.   eval "ac_cv_func_$ac_func=yes"
  18161. else
  18162.   echo "configure: failed program was:" >&5
  18163.   cat conftest.$ac_ext >&5
  18164.   rm -rf conftest*
  18165.   eval "ac_cv_func_$ac_func=no"
  18166. fi
  18167. rm -f conftest*
  18168. fi
  18169.  
  18170. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  18171.   echo "$ac_t""yes" 1>&6
  18172.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  18173.   cat >> confdefs.h <<EOF
  18174. #define $ac_tr_func 1
  18175. EOF
  18176.  cat >> confdefs.h <<\EOF
  18177. #define HAVE_USLEEP 1
  18178. EOF
  18179.  
  18180. else
  18181.   echo "$ac_t""no" 1>&6
  18182. echo "configure: warning: wxSleep() function will not work" 1>&2
  18183.                     
  18184. fi
  18185. done
  18186.  
  18187.                 
  18188.             
  18189. fi
  18190.  
  18191.         
  18192.     
  18193. fi
  18194. done
  18195.  
  18196. fi
  18197.  
  18198. for ac_func in uname gethostname
  18199. do
  18200. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  18201. echo "configure:18202: checking for $ac_func" >&5
  18202. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  18203.   echo $ac_n "(cached) $ac_c" 1>&6
  18204. else
  18205.   cat > conftest.$ac_ext <<EOF
  18206. #line 18207 "configure"
  18207. #include "confdefs.h"
  18208. /* System header to define __stub macros and hopefully few prototypes,
  18209.     which can conflict with char $ac_func(); below.  */
  18210. #include <assert.h>
  18211. /* Override any gcc2 internal prototype to avoid an error.  */
  18212. /* We use char because int might match the return type of a gcc2
  18213.     builtin and then its argument prototype would still apply.  */
  18214. char $ac_func();
  18215.  
  18216. int main() {
  18217.  
  18218. /* The GNU C library defines this for functions which it implements
  18219.     to always fail with ENOSYS.  Some functions are actually named
  18220.     something starting with __ and the normal name is an alias.  */
  18221. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18222. choke me
  18223. #else
  18224. $ac_func();
  18225. #endif
  18226.  
  18227. ; return 0; }
  18228. EOF
  18229. if { (eval echo configure:18230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18230.   rm -rf conftest*
  18231.   eval "ac_cv_func_$ac_func=yes"
  18232. else
  18233.   echo "configure: failed program was:" >&5
  18234.   cat conftest.$ac_ext >&5
  18235.   rm -rf conftest*
  18236.   eval "ac_cv_func_$ac_func=no"
  18237. fi
  18238. rm -f conftest*
  18239. fi
  18240.  
  18241. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  18242.   echo "$ac_t""yes" 1>&6
  18243.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  18244.   cat >> confdefs.h <<EOF
  18245. #define $ac_tr_func 1
  18246. EOF
  18247.  break
  18248. else
  18249.   echo "$ac_t""no" 1>&6
  18250. fi
  18251. done
  18252.  
  18253.  
  18254.  
  18255. ac_ext=C
  18256. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  18257. ac_cpp='$CXXCPP $CPPFLAGS'
  18258. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  18259. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  18260. cross_compiling=$ac_cv_prog_cxx_cross
  18261.  
  18262.  
  18263. for ac_func in strtok_r
  18264. do
  18265. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  18266. echo "configure:18267: checking for $ac_func" >&5
  18267. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  18268.   echo $ac_n "(cached) $ac_c" 1>&6
  18269. else
  18270.   cat > conftest.$ac_ext <<EOF
  18271. #line 18272 "configure"
  18272. #include "confdefs.h"
  18273. /* System header to define __stub macros and hopefully few prototypes,
  18274.     which can conflict with char $ac_func(); below.  */
  18275. #include <assert.h>
  18276. /* Override any gcc2 internal prototype to avoid an error.  */
  18277. #ifdef __cplusplus
  18278. extern "C"
  18279. #endif
  18280. /* We use char because int might match the return type of a gcc2
  18281.     builtin and then its argument prototype would still apply.  */
  18282. char $ac_func();
  18283.  
  18284. int main() {
  18285.  
  18286. /* The GNU C library defines this for functions which it implements
  18287.     to always fail with ENOSYS.  Some functions are actually named
  18288.     something starting with __ and the normal name is an alias.  */
  18289. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18290. choke me
  18291. #else
  18292. $ac_func();
  18293. #endif
  18294.  
  18295. ; return 0; }
  18296. EOF
  18297. if { (eval echo configure:18298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18298.   rm -rf conftest*
  18299.   eval "ac_cv_func_$ac_func=yes"
  18300. else
  18301.   echo "configure: failed program was:" >&5
  18302.   cat conftest.$ac_ext >&5
  18303.   rm -rf conftest*
  18304.   eval "ac_cv_func_$ac_func=no"
  18305. fi
  18306. rm -f conftest*
  18307. fi
  18308.  
  18309. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  18310.   echo "$ac_t""yes" 1>&6
  18311.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  18312.   cat >> confdefs.h <<EOF
  18313. #define $ac_tr_func 1
  18314. EOF
  18315.  
  18316. else
  18317.   echo "$ac_t""no" 1>&6
  18318. fi
  18319. done
  18320.  
  18321.  
  18322. ac_ext=c
  18323. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  18324. ac_cpp='$CPP $CPPFLAGS'
  18325. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  18326. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  18327. cross_compiling=$ac_cv_prog_cc_cross
  18328.  
  18329.  
  18330. INET_LINK=
  18331. for ac_func in inet_addr
  18332. do
  18333. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  18334. echo "configure:18335: checking for $ac_func" >&5
  18335. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  18336.   echo $ac_n "(cached) $ac_c" 1>&6
  18337. else
  18338.   cat > conftest.$ac_ext <<EOF
  18339. #line 18340 "configure"
  18340. #include "confdefs.h"
  18341. /* System header to define __stub macros and hopefully few prototypes,
  18342.     which can conflict with char $ac_func(); below.  */
  18343. #include <assert.h>
  18344. /* Override any gcc2 internal prototype to avoid an error.  */
  18345. /* We use char because int might match the return type of a gcc2
  18346.     builtin and then its argument prototype would still apply.  */
  18347. char $ac_func();
  18348.  
  18349. int main() {
  18350.  
  18351. /* The GNU C library defines this for functions which it implements
  18352.     to always fail with ENOSYS.  Some functions are actually named
  18353.     something starting with __ and the normal name is an alias.  */
  18354. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18355. choke me
  18356. #else
  18357. $ac_func();
  18358. #endif
  18359.  
  18360. ; return 0; }
  18361. EOF
  18362. if { (eval echo configure:18363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18363.   rm -rf conftest*
  18364.   eval "ac_cv_func_$ac_func=yes"
  18365. else
  18366.   echo "configure: failed program was:" >&5
  18367.   cat conftest.$ac_ext >&5
  18368.   rm -rf conftest*
  18369.   eval "ac_cv_func_$ac_func=no"
  18370. fi
  18371. rm -f conftest*
  18372. fi
  18373.  
  18374. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  18375.   echo "$ac_t""yes" 1>&6
  18376.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  18377.   cat >> confdefs.h <<EOF
  18378. #define $ac_tr_func 1
  18379. EOF
  18380.  cat >> confdefs.h <<\EOF
  18381. #define HAVE_INET_ADDR 1
  18382. EOF
  18383.  
  18384. else
  18385.   echo "$ac_t""no" 1>&6
  18386. echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
  18387. echo "configure:18388: checking for inet_addr in -lnsl" >&5
  18388. ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
  18389. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  18390.   echo $ac_n "(cached) $ac_c" 1>&6
  18391. else
  18392.   ac_save_LIBS="$LIBS"
  18393. LIBS="-lnsl  $LIBS"
  18394. cat > conftest.$ac_ext <<EOF
  18395. #line 18396 "configure"
  18396. #include "confdefs.h"
  18397. /* Override any gcc2 internal prototype to avoid an error.  */
  18398. /* We use char because int might match the return type of a gcc2
  18399.     builtin and then its argument prototype would still apply.  */
  18400. char inet_addr();
  18401.  
  18402. int main() {
  18403. inet_addr()
  18404. ; return 0; }
  18405. EOF
  18406. if { (eval echo configure:18407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18407.   rm -rf conftest*
  18408.   eval "ac_cv_lib_$ac_lib_var=yes"
  18409. else
  18410.   echo "configure: failed program was:" >&5
  18411.   cat conftest.$ac_ext >&5
  18412.   rm -rf conftest*
  18413.   eval "ac_cv_lib_$ac_lib_var=no"
  18414. fi
  18415. rm -f conftest*
  18416. LIBS="$ac_save_LIBS"
  18417.  
  18418. fi
  18419. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  18420.   echo "$ac_t""yes" 1>&6
  18421.   INET_LINK="nsl"
  18422. else
  18423.   echo "$ac_t""no" 1>&6
  18424. echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
  18425. echo "configure:18426: checking for inet_addr in -lresolv" >&5
  18426. ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
  18427. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  18428.   echo $ac_n "(cached) $ac_c" 1>&6
  18429. else
  18430.   ac_save_LIBS="$LIBS"
  18431. LIBS="-lresolv  $LIBS"
  18432. cat > conftest.$ac_ext <<EOF
  18433. #line 18434 "configure"
  18434. #include "confdefs.h"
  18435. /* Override any gcc2 internal prototype to avoid an error.  */
  18436. /* We use char because int might match the return type of a gcc2
  18437.     builtin and then its argument prototype would still apply.  */
  18438. char inet_addr();
  18439.  
  18440. int main() {
  18441. inet_addr()
  18442. ; return 0; }
  18443. EOF
  18444. if { (eval echo configure:18445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18445.   rm -rf conftest*
  18446.   eval "ac_cv_lib_$ac_lib_var=yes"
  18447. else
  18448.   echo "configure: failed program was:" >&5
  18449.   cat conftest.$ac_ext >&5
  18450.   rm -rf conftest*
  18451.   eval "ac_cv_lib_$ac_lib_var=no"
  18452. fi
  18453. rm -f conftest*
  18454. LIBS="$ac_save_LIBS"
  18455.  
  18456. fi
  18457. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  18458.   echo "$ac_t""yes" 1>&6
  18459.   INET_LINK="resolv"
  18460. else
  18461.   echo "$ac_t""no" 1>&6
  18462. echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
  18463. echo "configure:18464: checking for inet_addr in -lsocket" >&5
  18464. ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
  18465. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  18466.   echo $ac_n "(cached) $ac_c" 1>&6
  18467. else
  18468.   ac_save_LIBS="$LIBS"
  18469. LIBS="-lsocket  $LIBS"
  18470. cat > conftest.$ac_ext <<EOF
  18471. #line 18472 "configure"
  18472. #include "confdefs.h"
  18473. /* Override any gcc2 internal prototype to avoid an error.  */
  18474. /* We use char because int might match the return type of a gcc2
  18475.     builtin and then its argument prototype would still apply.  */
  18476. char inet_addr();
  18477.  
  18478. int main() {
  18479. inet_addr()
  18480. ; return 0; }
  18481. EOF
  18482. if { (eval echo configure:18483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18483.   rm -rf conftest*
  18484.   eval "ac_cv_lib_$ac_lib_var=yes"
  18485. else
  18486.   echo "configure: failed program was:" >&5
  18487.   cat conftest.$ac_ext >&5
  18488.   rm -rf conftest*
  18489.   eval "ac_cv_lib_$ac_lib_var=no"
  18490. fi
  18491. rm -f conftest*
  18492. LIBS="$ac_save_LIBS"
  18493.  
  18494. fi
  18495. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  18496.   echo "$ac_t""yes" 1>&6
  18497.   INET_LINK="socket"
  18498.                 
  18499. else
  18500.   echo "$ac_t""no" 1>&6
  18501. fi
  18502.  
  18503.             
  18504. fi
  18505.  
  18506.         
  18507. fi
  18508.  
  18509.     
  18510.  
  18511. fi
  18512. done
  18513.  
  18514.  
  18515. for ac_func in inet_aton
  18516. do
  18517. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  18518. echo "configure:18519: checking for $ac_func" >&5
  18519. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  18520.   echo $ac_n "(cached) $ac_c" 1>&6
  18521. else
  18522.   cat > conftest.$ac_ext <<EOF
  18523. #line 18524 "configure"
  18524. #include "confdefs.h"
  18525. /* System header to define __stub macros and hopefully few prototypes,
  18526.     which can conflict with char $ac_func(); below.  */
  18527. #include <assert.h>
  18528. /* Override any gcc2 internal prototype to avoid an error.  */
  18529. /* We use char because int might match the return type of a gcc2
  18530.     builtin and then its argument prototype would still apply.  */
  18531. char $ac_func();
  18532.  
  18533. int main() {
  18534.  
  18535. /* The GNU C library defines this for functions which it implements
  18536.     to always fail with ENOSYS.  Some functions are actually named
  18537.     something starting with __ and the normal name is an alias.  */
  18538. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18539. choke me
  18540. #else
  18541. $ac_func();
  18542. #endif
  18543.  
  18544. ; return 0; }
  18545. EOF
  18546. if { (eval echo configure:18547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18547.   rm -rf conftest*
  18548.   eval "ac_cv_func_$ac_func=yes"
  18549. else
  18550.   echo "configure: failed program was:" >&5
  18551.   cat conftest.$ac_ext >&5
  18552.   rm -rf conftest*
  18553.   eval "ac_cv_func_$ac_func=no"
  18554. fi
  18555. rm -f conftest*
  18556. fi
  18557.  
  18558. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  18559.   echo "$ac_t""yes" 1>&6
  18560.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  18561.   cat >> confdefs.h <<EOF
  18562. #define $ac_tr_func 1
  18563. EOF
  18564.  cat >> confdefs.h <<\EOF
  18565. #define HAVE_INET_ATON 1
  18566. EOF
  18567.  
  18568. else
  18569.   echo "$ac_t""no" 1>&6
  18570.             echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
  18571. echo "configure:18572: checking for inet_aton in -l$INET_LINK" >&5
  18572. ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
  18573. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  18574.   echo $ac_n "(cached) $ac_c" 1>&6
  18575. else
  18576.   ac_save_LIBS="$LIBS"
  18577. LIBS="-l$INET_LINK  $LIBS"
  18578. cat > conftest.$ac_ext <<EOF
  18579. #line 18580 "configure"
  18580. #include "confdefs.h"
  18581. /* Override any gcc2 internal prototype to avoid an error.  */
  18582. /* We use char because int might match the return type of a gcc2
  18583.     builtin and then its argument prototype would still apply.  */
  18584. char inet_aton();
  18585.  
  18586. int main() {
  18587. inet_aton()
  18588. ; return 0; }
  18589. EOF
  18590. if { (eval echo configure:18591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18591.   rm -rf conftest*
  18592.   eval "ac_cv_lib_$ac_lib_var=yes"
  18593. else
  18594.   echo "configure: failed program was:" >&5
  18595.   cat conftest.$ac_ext >&5
  18596.   rm -rf conftest*
  18597.   eval "ac_cv_lib_$ac_lib_var=no"
  18598. fi
  18599. rm -f conftest*
  18600. LIBS="$ac_save_LIBS"
  18601.  
  18602. fi
  18603. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  18604.   echo "$ac_t""yes" 1>&6
  18605.   cat >> confdefs.h <<\EOF
  18606. #define HAVE_INET_ATON 1
  18607. EOF
  18608.  
  18609. else
  18610.   echo "$ac_t""no" 1>&6
  18611. fi
  18612.  
  18613.         
  18614. fi
  18615. done
  18616.  
  18617.  
  18618. if test "x$INET_LINK" != "x"; then
  18619.     cat >> confdefs.h <<\EOF
  18620. #define HAVE_INET_ADDR 1
  18621. EOF
  18622.  
  18623.     INET_LINK=" -l$INET_LINK"
  18624. fi
  18625.  
  18626. fi
  18627.  
  18628.  
  18629. cat > confcache <<\EOF
  18630. # This file is a shell script that caches the results of configure
  18631. # tests run on this system so they can be shared between configure
  18632. # scripts and configure runs.  It is not useful on other systems.
  18633. # If it contains results you don't want to keep, you may remove or edit it.
  18634. #
  18635. # By default, configure uses ./config.cache as the cache file,
  18636. # creating it if it does not exist already.  You can give configure
  18637. # the --cache-file=FILE option to use a different cache file; that is
  18638. # what configure does when it calls configure scripts in
  18639. # subdirectories, so they share the cache.
  18640. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  18641. # config.status only pays attention to the cache file if you give it the
  18642. # --recheck option to rerun configure.
  18643. #
  18644. EOF
  18645. # The following way of writing the cache mishandles newlines in values,
  18646. # but we know of no workaround that is simple, portable, and efficient.
  18647. # So, don't put newlines in cache variables' values.
  18648. # Ultrix sh set writes to stderr and can't be redirected directly,
  18649. # and sets the high bit in the cache file unless we assign to the vars.
  18650. (set) 2>&1 |
  18651.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  18652.   *ac_space=\ *)
  18653.     # `set' does not quote correctly, so add quotes (double-quote substitution
  18654.     # turns \\\\ into \\, and sed turns \\ into \).
  18655.     sed -n \
  18656.       -e "s/'/'\\\\''/g" \
  18657.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  18658.     ;;
  18659.   *)
  18660.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  18661.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  18662.     ;;
  18663.   esac >> confcache
  18664. if cmp -s $cache_file confcache; then
  18665.   :
  18666. else
  18667.   if test -w $cache_file; then
  18668.     echo "updating cache $cache_file"
  18669.     cat confcache > $cache_file
  18670.   else
  18671.     echo "not updating unwritable cache $cache_file"
  18672.   fi
  18673. fi
  18674. rm -f confcache
  18675.  
  18676.  
  18677.  
  18678. CPP_MT_FLAG=
  18679. if test "$TOOLKIT" != "MSW"; then
  18680.  
  18681.                             
  18682.     THREADS_LINK=
  18683.     THREADS_CFLAGS=
  18684.  
  18685.     if test "$wxUSE_THREADS" = "yes" ; then
  18686.         if test "$wxUSE_WINE" = 1 ; then
  18687.             echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
  18688.             wxUSE_THREADS="no"
  18689.         elif test "$USE_BEOS" = 1; then
  18690.             echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
  18691.             wxUSE_THREADS="no"
  18692.         fi
  18693.     fi
  18694.  
  18695.     if test "$wxUSE_THREADS" = "yes" ; then
  18696.                                                         
  18697.         
  18698.                                 THREAD_OPTS="-pthread"
  18699.         case "${host}" in
  18700.           *-*-solaris2* | *-*-sunos4* )
  18701.                 if test "x$GCC" = "xyes"; then
  18702.                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
  18703.                 else
  18704.                     THREAD_OPTS="-mt $THREAD_OPTS"
  18705.                 fi
  18706.                 ;;
  18707.           *-*-freebsd*)
  18708.                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
  18709.                 ;;
  18710.           *-*-darwin* | *-*-cygwin* )
  18711.                                                 THREAD_OPTS=""
  18712.                 ;;
  18713.           *-*-aix*)
  18714.                                 THREAD_OPTS="pthreads"
  18715.                 ;;
  18716.         esac
  18717.  
  18718.                                 THREAD_OPTS="$THREAD_OPTS pthread none"
  18719.  
  18720.                 THREADS_OK=no
  18721.         for flag in $THREAD_OPTS; do
  18722.             case $flag in
  18723.                 none)
  18724.                     echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
  18725. echo "configure:18726: checking whether pthreads work without any flags" >&5
  18726.                     ;;
  18727.  
  18728.                 -*)
  18729.                     echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
  18730. echo "configure:18731: checking whether pthreads work with $flag" >&5
  18731.                     THREADS_CFLAGS="$flag"
  18732.                     ;;
  18733.  
  18734.                 *)
  18735.                     echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
  18736. echo "configure:18737: checking for the pthreads library -l$flag" >&5
  18737.                     THREADS_LINK="-l$flag"
  18738.                     ;;
  18739.               esac
  18740.  
  18741.               save_LIBS="$LIBS"
  18742.               save_CFLAGS="$CFLAGS"
  18743.               LIBS="$THREADS_LINK $LIBS"
  18744.               CFLAGS="$THREADS_CFLAGS $CFLAGS"
  18745.  
  18746.               cat > conftest.$ac_ext <<EOF
  18747. #line 18748 "configure"
  18748. #include "confdefs.h"
  18749. #include <pthread.h>
  18750. int main() {
  18751. pthread_create(0,0,0,0);
  18752. ; return 0; }
  18753. EOF
  18754. if { (eval echo configure:18755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18755.   rm -rf conftest*
  18756.   THREADS_OK=yes
  18757. else
  18758.   echo "configure: failed program was:" >&5
  18759.   cat conftest.$ac_ext >&5
  18760. fi
  18761. rm -f conftest*
  18762.  
  18763.               LIBS="$save_LIBS"
  18764.               CFLAGS="$save_CFLAGS"
  18765.  
  18766.               echo "$ac_t""$THREADS_OK" 1>&6
  18767.               if test "x$THREADS_OK" = "xyes"; then
  18768.                       break;
  18769.               fi
  18770.  
  18771.               THREADS_LINK=""
  18772.               THREADS_CFLAGS=""
  18773.       done
  18774.  
  18775.       if test "x$THREADS_OK" != "xyes"; then
  18776.           wxUSE_THREADS=no
  18777.           echo "configure: warning: No thread support on this system... disabled" 1>&2
  18778.       else
  18779.                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
  18780.           LIBS="$THREADS_LINK $LIBS"
  18781.  
  18782.           echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
  18783. echo "configure:18784: checking if more special flags are required for pthreads" >&5
  18784.           flag=no
  18785.           case "${host}" in
  18786.             *-aix*)
  18787.                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
  18788.                 flag="-D_THREAD_SAFE"
  18789.                 ;;
  18790.             *-freebsd*)
  18791.                 flag="-D_THREAD_SAFE"
  18792.                 ;;
  18793.             *-hp-hpux* )
  18794.                 flag="-D_REENTRANT"
  18795.                 ;;
  18796.             *solaris* | alpha*-osf*)
  18797.                 flag="-D_REENTRANT"
  18798.                 ;;
  18799.           esac
  18800.           echo "$ac_t""${flag}" 1>&6
  18801.           if test "x$flag" != xno; then
  18802.               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
  18803.           fi
  18804.  
  18805.           if test "x$THREADS_CFLAGS" != "x"; then
  18806.                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
  18807.             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
  18808.           fi
  18809.       fi
  18810.     fi
  18811.  
  18812.         if test "$wxUSE_THREADS" = "yes" ; then
  18813.       for ac_func in thr_setconcurrency
  18814. do
  18815. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  18816. echo "configure:18817: checking for $ac_func" >&5
  18817. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  18818.   echo $ac_n "(cached) $ac_c" 1>&6
  18819. else
  18820.   cat > conftest.$ac_ext <<EOF
  18821. #line 18822 "configure"
  18822. #include "confdefs.h"
  18823. /* System header to define __stub macros and hopefully few prototypes,
  18824.     which can conflict with char $ac_func(); below.  */
  18825. #include <assert.h>
  18826. /* Override any gcc2 internal prototype to avoid an error.  */
  18827. /* We use char because int might match the return type of a gcc2
  18828.     builtin and then its argument prototype would still apply.  */
  18829. char $ac_func();
  18830.  
  18831. int main() {
  18832.  
  18833. /* The GNU C library defines this for functions which it implements
  18834.     to always fail with ENOSYS.  Some functions are actually named
  18835.     something starting with __ and the normal name is an alias.  */
  18836. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18837. choke me
  18838. #else
  18839. $ac_func();
  18840. #endif
  18841.  
  18842. ; return 0; }
  18843. EOF
  18844. if { (eval echo configure:18845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18845.   rm -rf conftest*
  18846.   eval "ac_cv_func_$ac_func=yes"
  18847. else
  18848.   echo "configure: failed program was:" >&5
  18849.   cat conftest.$ac_ext >&5
  18850.   rm -rf conftest*
  18851.   eval "ac_cv_func_$ac_func=no"
  18852. fi
  18853. rm -f conftest*
  18854. fi
  18855.  
  18856. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  18857.   echo "$ac_t""yes" 1>&6
  18858.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  18859.   cat >> confdefs.h <<EOF
  18860. #define $ac_tr_func 1
  18861. EOF
  18862.  
  18863. else
  18864.   echo "$ac_t""no" 1>&6
  18865. fi
  18866. done
  18867.  
  18868.  
  18869.       for ac_hdr in sched.h
  18870. do
  18871. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  18872. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  18873. echo "configure:18874: checking for $ac_hdr" >&5
  18874. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  18875.   echo $ac_n "(cached) $ac_c" 1>&6
  18876. else
  18877.   cat > conftest.$ac_ext <<EOF
  18878. #include <sys/types.h>
  18879. #line 18880 "configure"
  18880. #include "confdefs.h"
  18881. #include <$ac_hdr>
  18882. EOF
  18883. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  18884. { (eval echo configure:18885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  18885. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  18886. if test -z "$ac_err"; then
  18887.   rm -rf conftest*
  18888.   eval "ac_cv_header_$ac_safe=yes"
  18889. else
  18890.   echo "$ac_err" >&5
  18891.   echo "configure: failed program was:" >&5
  18892.   cat conftest.$ac_ext >&5
  18893.   rm -rf conftest*
  18894.   eval "ac_cv_header_$ac_safe=no"
  18895. fi
  18896. rm -f conftest*
  18897. fi
  18898. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  18899.   echo "$ac_t""yes" 1>&6
  18900.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  18901.   cat >> confdefs.h <<EOF
  18902. #define $ac_tr_hdr 1
  18903. EOF
  18904.  
  18905. else
  18906.   echo "$ac_t""no" 1>&6
  18907. fi
  18908. done
  18909.  
  18910.       if test "$ac_cv_header_sched_h" = "yes"; then
  18911.           echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
  18912. echo "configure:18913: checking for sched_yield" >&5
  18913. if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
  18914.   echo $ac_n "(cached) $ac_c" 1>&6
  18915. else
  18916.   cat > conftest.$ac_ext <<EOF
  18917. #line 18918 "configure"
  18918. #include "confdefs.h"
  18919. /* System header to define __stub macros and hopefully few prototypes,
  18920.     which can conflict with char sched_yield(); below.  */
  18921. #include <assert.h>
  18922. /* Override any gcc2 internal prototype to avoid an error.  */
  18923. /* We use char because int might match the return type of a gcc2
  18924.     builtin and then its argument prototype would still apply.  */
  18925. char sched_yield();
  18926.  
  18927. int main() {
  18928.  
  18929. /* The GNU C library defines this for functions which it implements
  18930.     to always fail with ENOSYS.  Some functions are actually named
  18931.     something starting with __ and the normal name is an alias.  */
  18932. #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
  18933. choke me
  18934. #else
  18935. sched_yield();
  18936. #endif
  18937.  
  18938. ; return 0; }
  18939. EOF
  18940. if { (eval echo configure:18941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18941.   rm -rf conftest*
  18942.   eval "ac_cv_func_sched_yield=yes"
  18943. else
  18944.   echo "configure: failed program was:" >&5
  18945.   cat conftest.$ac_ext >&5
  18946.   rm -rf conftest*
  18947.   eval "ac_cv_func_sched_yield=no"
  18948. fi
  18949. rm -f conftest*
  18950. fi
  18951.  
  18952. if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
  18953.   echo "$ac_t""yes" 1>&6
  18954.   cat >> confdefs.h <<\EOF
  18955. #define HAVE_SCHED_YIELD 1
  18956. EOF
  18957.  
  18958. else
  18959.   echo "$ac_t""no" 1>&6
  18960.  
  18961.                 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
  18962. echo "configure:18963: checking for sched_yield in -lposix4" >&5
  18963. ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
  18964. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  18965.   echo $ac_n "(cached) $ac_c" 1>&6
  18966. else
  18967.   ac_save_LIBS="$LIBS"
  18968. LIBS="-lposix4  $LIBS"
  18969. cat > conftest.$ac_ext <<EOF
  18970. #line 18971 "configure"
  18971. #include "confdefs.h"
  18972. /* Override any gcc2 internal prototype to avoid an error.  */
  18973. /* We use char because int might match the return type of a gcc2
  18974.     builtin and then its argument prototype would still apply.  */
  18975. char sched_yield();
  18976.  
  18977. int main() {
  18978. sched_yield()
  18979. ; return 0; }
  18980. EOF
  18981. if { (eval echo configure:18982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18982.   rm -rf conftest*
  18983.   eval "ac_cv_lib_$ac_lib_var=yes"
  18984. else
  18985.   echo "configure: failed program was:" >&5
  18986.   cat conftest.$ac_ext >&5
  18987.   rm -rf conftest*
  18988.   eval "ac_cv_lib_$ac_lib_var=no"
  18989. fi
  18990. rm -f conftest*
  18991. LIBS="$ac_save_LIBS"
  18992.  
  18993. fi
  18994. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  18995.   echo "$ac_t""yes" 1>&6
  18996.   cat >> confdefs.h <<\EOF
  18997. #define HAVE_SCHED_YIELD 1
  18998. EOF
  18999.  POSIX4_LINK=" -lposix4"
  19000. else
  19001.   echo "$ac_t""no" 1>&6
  19002. echo "configure: warning: wxThread::Yield will not work properly" 1>&2
  19003.                 
  19004. fi
  19005.  
  19006.             
  19007.           
  19008. fi
  19009.  
  19010.       fi
  19011.  
  19012.                                           HAVE_PRIOR_FUNCS=0
  19013.       echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
  19014. echo "configure:19015: checking for pthread_attr_getschedpolicy" >&5
  19015. if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
  19016.   echo $ac_n "(cached) $ac_c" 1>&6
  19017. else
  19018.   cat > conftest.$ac_ext <<EOF
  19019. #line 19020 "configure"
  19020. #include "confdefs.h"
  19021. /* System header to define __stub macros and hopefully few prototypes,
  19022.     which can conflict with char pthread_attr_getschedpolicy(); below.  */
  19023. #include <assert.h>
  19024. /* Override any gcc2 internal prototype to avoid an error.  */
  19025. /* We use char because int might match the return type of a gcc2
  19026.     builtin and then its argument prototype would still apply.  */
  19027. char pthread_attr_getschedpolicy();
  19028.  
  19029. int main() {
  19030.  
  19031. /* The GNU C library defines this for functions which it implements
  19032.     to always fail with ENOSYS.  Some functions are actually named
  19033.     something starting with __ and the normal name is an alias.  */
  19034. #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
  19035. choke me
  19036. #else
  19037. pthread_attr_getschedpolicy();
  19038. #endif
  19039.  
  19040. ; return 0; }
  19041. EOF
  19042. if { (eval echo configure:19043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19043.   rm -rf conftest*
  19044.   eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
  19045. else
  19046.   echo "configure: failed program was:" >&5
  19047.   cat conftest.$ac_ext >&5
  19048.   rm -rf conftest*
  19049.   eval "ac_cv_func_pthread_attr_getschedpolicy=no"
  19050. fi
  19051. rm -f conftest*
  19052. fi
  19053.  
  19054. if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
  19055.   echo "$ac_t""yes" 1>&6
  19056.   echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
  19057. echo "configure:19058: checking for pthread_attr_setschedparam" >&5
  19058. if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
  19059.   echo $ac_n "(cached) $ac_c" 1>&6
  19060. else
  19061.   cat > conftest.$ac_ext <<EOF
  19062. #line 19063 "configure"
  19063. #include "confdefs.h"
  19064. /* System header to define __stub macros and hopefully few prototypes,
  19065.     which can conflict with char pthread_attr_setschedparam(); below.  */
  19066. #include <assert.h>
  19067. /* Override any gcc2 internal prototype to avoid an error.  */
  19068. /* We use char because int might match the return type of a gcc2
  19069.     builtin and then its argument prototype would still apply.  */
  19070. char pthread_attr_setschedparam();
  19071.  
  19072. int main() {
  19073.  
  19074. /* The GNU C library defines this for functions which it implements
  19075.     to always fail with ENOSYS.  Some functions are actually named
  19076.     something starting with __ and the normal name is an alias.  */
  19077. #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
  19078. choke me
  19079. #else
  19080. pthread_attr_setschedparam();
  19081. #endif
  19082.  
  19083. ; return 0; }
  19084. EOF
  19085. if { (eval echo configure:19086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19086.   rm -rf conftest*
  19087.   eval "ac_cv_func_pthread_attr_setschedparam=yes"
  19088. else
  19089.   echo "configure: failed program was:" >&5
  19090.   cat conftest.$ac_ext >&5
  19091.   rm -rf conftest*
  19092.   eval "ac_cv_func_pthread_attr_setschedparam=no"
  19093. fi
  19094. rm -f conftest*
  19095. fi
  19096.  
  19097. if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
  19098.   echo "$ac_t""yes" 1>&6
  19099.   echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
  19100. echo "configure:19101: checking for sched_get_priority_max" >&5
  19101. if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
  19102.   echo $ac_n "(cached) $ac_c" 1>&6
  19103. else
  19104.   cat > conftest.$ac_ext <<EOF
  19105. #line 19106 "configure"
  19106. #include "confdefs.h"
  19107. /* System header to define __stub macros and hopefully few prototypes
  19108. else
  19109.   echo "$ac_t""no" 1>&6
  19110. which can conflict with char sched_get_priority_max(); below.  */
  19111. #include <assert.h>
  19112. /* Override any gcc2 internal prototype to avoid an error.  */
  19113. /* We use char because int might match the return type of a gcc2
  19114.     builtin and then its argument prototype would still apply.  */
  19115. char sched_get_priority_max();
  19116.  
  19117. int main() {
  19118.  
  19119. /* The GNU C library defines this for functions which it implements
  19120.     to always fail with ENOSYS.  Some functions are actually named
  19121.     something starting with __ and the normal name is an alias.  */
  19122. #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
  19123. choke me
  19124. #else
  19125. sched_get_priority_max();
  19126. #endif
  19127.  
  19128. ; return 0; }
  19129. EOF
  19130. if { (eval echo configure:19131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19131.   rm -rf conftest*
  19132.   eval "ac_cv_func_sched_get_priority_max=yes"
  19133. else
  19134.   echo "configure: failed program was:" >&5
  19135.   cat conftest.$ac_ext >&5
  19136.   rm -rf conftest*
  19137.   eval "ac_cv_func_sched_get_priority_max=no"
  19138. fi
  19139. rm -f conftest*
  19140. fi
  19141.  
  19142. if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
  19143.   echo "$ac_t""yes" 1>&6
  19144.   HAVE_PRIOR_FUNCS=1
  19145. else
  19146.   echo "$ac_t""no" 1>&6
  19147. echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
  19148. echo "configure:19149: checking for sched_get_priority_max in -lposix4" >&5
  19149. ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
  19150. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  19151.   echo $ac_n "(cached) $ac_c" 1>&6
  19152. else
  19153.   ac_save_LIBS="$LIBS"
  19154. LIBS="-lposix4  $LIBS"
  19155. cat > conftest.$ac_ext <<EOF
  19156. #line 19157 "configure"
  19157. #include "confdefs.h"
  19158. /* Override any gcc2 internal prototype to avoid an error.  */
  19159. /* We use char because int might match the return type of a gcc2
  19160.     builtin and then its argument prototype would still apply.  */
  19161. char sched_get_priority_max();
  19162.  
  19163. int main() {
  19164. sched_get_priority_max()
  19165. ; return 0; }
  19166. EOF
  19167. if { (eval echo configure:19168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19168.   rm -rf conftest*
  19169.   eval "ac_cv_lib_$ac_lib_var=yes"
  19170. else
  19171.   echo "configure: failed program was:" >&5
  19172.   cat conftest.$ac_ext >&5
  19173.   rm -rf conftest*
  19174.   eval "ac_cv_lib_$ac_lib_var=no"
  19175. fi
  19176. rm -f conftest*
  19177. LIBS="$ac_save_LIBS"
  19178.  
  19179. fi
  19180. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  19181.   echo "$ac_t""yes" 1>&6
  19182.   
  19183.                                 HAVE_PRIOR_FUNCS=1
  19184.                                 POSIX4_LINK=" -lposix4"
  19185.                              
  19186. else
  19187.   echo "$ac_t""no" 1>&6
  19188. fi
  19189.  
  19190.                        
  19191. fi
  19192.  
  19193.                      
  19194. else
  19195.   echo "$ac_t""no" 1>&6
  19196. fi
  19197.  
  19198.                    
  19199. fi
  19200.  
  19201.  
  19202.       if test "$HAVE_PRIOR_FUNCS" = 1; then
  19203.         cat >> confdefs.h <<\EOF
  19204. #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
  19205. EOF
  19206.  
  19207.       else
  19208.         echo "configure: warning: Setting thread priority will not work" 1>&2
  19209.       fi
  19210.  
  19211.       echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
  19212. echo "configure:19213: checking for pthread_cancel" >&5
  19213. if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
  19214.   echo $ac_n "(cached) $ac_c" 1>&6
  19215. else
  19216.   cat > conftest.$ac_ext <<EOF
  19217. #line 19218 "configure"
  19218. #include "confdefs.h"
  19219. /* System header to define __stub macros and hopefully few prototypes,
  19220.     which can conflict with char pthread_cancel(); below.  */
  19221. #include <assert.h>
  19222. /* Override any gcc2 internal prototype to avoid an error.  */
  19223. /* We use char because int might match the return type of a gcc2
  19224.     builtin and then its argument prototype would still apply.  */
  19225. char pthread_cancel();
  19226.  
  19227. int main() {
  19228.  
  19229. /* The GNU C library defines this for functions which it implements
  19230.     to always fail with ENOSYS.  Some functions are actually named
  19231.     something starting with __ and the normal name is an alias.  */
  19232. #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
  19233. choke me
  19234. #else
  19235. pthread_cancel();
  19236. #endif
  19237.  
  19238. ; return 0; }
  19239. EOF
  19240. if { (eval echo configure:19241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19241.   rm -rf conftest*
  19242.   eval "ac_cv_func_pthread_cancel=yes"
  19243. else
  19244.   echo "configure: failed program was:" >&5
  19245.   cat conftest.$ac_ext >&5
  19246.   rm -rf conftest*
  19247.   eval "ac_cv_func_pthread_cancel=no"
  19248. fi
  19249. rm -f conftest*
  19250. fi
  19251.  
  19252. if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
  19253.   echo "$ac_t""yes" 1>&6
  19254.   cat >> confdefs.h <<\EOF
  19255. #define HAVE_PTHREAD_CANCEL 1
  19256. EOF
  19257.  
  19258. else
  19259.   echo "$ac_t""no" 1>&6
  19260. echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
  19261. fi
  19262.  
  19263.  
  19264.       echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
  19265. echo "configure:19266: checking for pthread_cleanup_push/pop" >&5
  19266. if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
  19267.   echo $ac_n "(cached) $ac_c" 1>&6
  19268. else
  19269.   
  19270.         cat > conftest.$ac_ext <<EOF
  19271. #line 19272 "configure"
  19272. #include "confdefs.h"
  19273. #include <pthread.h>
  19274. int main() {
  19275.  
  19276.                         pthread_cleanup_push(NULL, NULL);
  19277.                         pthread_cleanup_pop(0);
  19278.                      
  19279. ; return 0; }
  19280. EOF
  19281. if { (eval echo configure:19282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19282.   rm -rf conftest*
  19283.   
  19284.                         wx_cv_func_pthread_cleanup_push=yes
  19285.                      
  19286. else
  19287.   echo "configure: failed program was:" >&5
  19288.   cat conftest.$ac_ext >&5
  19289.   rm -rf conftest*
  19290.   
  19291.                         wx_cv_func_pthread_cleanup_push=no
  19292.                      
  19293. fi
  19294. rm -f conftest*
  19295.       
  19296. fi
  19297.  
  19298. echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
  19299.  
  19300.       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
  19301.           cat >> confdefs.h <<\EOF
  19302. #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
  19303. EOF
  19304.  
  19305.       fi
  19306.  
  19307.                                                 
  19308.       echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
  19309. echo "configure:19310: checking for pthread_mutexattr_t" >&5
  19310. if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
  19311.   echo $ac_n "(cached) $ac_c" 1>&6
  19312. else
  19313.   
  19314.         cat > conftest.$ac_ext <<EOF
  19315. #line 19316 "configure"
  19316. #include "confdefs.h"
  19317. #include <pthread.h>
  19318. int main() {
  19319.  
  19320.                pthread_mutexattr_t attr;
  19321.                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19322.             
  19323. ; return 0; }
  19324. EOF
  19325. if { (eval echo configure:19326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19326.   rm -rf conftest*
  19327.   
  19328.                wx_cv_type_pthread_mutexattr_t=yes
  19329.             
  19330. else
  19331.   echo "configure: failed program was:" >&5
  19332.   cat conftest.$ac_ext >&5
  19333.   rm -rf conftest*
  19334.   
  19335.                wx_cv_type_pthread_mutexattr_t=no
  19336.             
  19337.         
  19338. fi
  19339. rm -f conftest*
  19340.       
  19341. fi
  19342.  
  19343. echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
  19344.  
  19345.       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
  19346.         cat >> confdefs.h <<\EOF
  19347. #define HAVE_PTHREAD_MUTEXATTR_T 1
  19348. EOF
  19349.  
  19350.       else
  19351.                 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
  19352. echo "configure:19353: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
  19353. if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
  19354.   echo $ac_n "(cached) $ac_c" 1>&6
  19355. else
  19356.   
  19357.             cat > conftest.$ac_ext <<EOF
  19358. #line 19359 "configure"
  19359. #include "confdefs.h"
  19360. #include <pthread.h>
  19361. int main() {
  19362.  
  19363.                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
  19364.                 
  19365. ; return 0; }
  19366. EOF
  19367. if { (eval echo configure:19368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19368.   rm -rf conftest*
  19369.   
  19370.                     wx_cv_type_pthread_rec_mutex_init=yes
  19371.                 
  19372. else
  19373.   echo "configure: failed program was:" >&5
  19374.   cat conftest.$ac_ext >&5
  19375.   rm -rf conftest*
  19376.   
  19377.                     wx_cv_type_pthread_rec_mutex_init=no
  19378.                 
  19379.             
  19380. fi
  19381. rm -f conftest*
  19382.         
  19383. fi
  19384.  
  19385. echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
  19386.         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
  19387.           cat >> confdefs.h <<\EOF
  19388. #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
  19389. EOF
  19390.  
  19391.         else
  19392.                     echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
  19393.         fi
  19394.       fi
  19395.     fi
  19396.  
  19397. else
  19398.     if test "$wxUSE_THREADS" = "yes" ; then
  19399.       case "${host}" in
  19400.         *-*-mingw32* )
  19401.                         echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
  19402. echo "configure:19403: checking if compiler supports -mthreads" >&5
  19403. if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
  19404.   echo $ac_n "(cached) $ac_c" 1>&6
  19405. else
  19406.   
  19407.                     CFLAGS_OLD="$CFLAGS"
  19408.                     CFLAGS="$CFLAGS -mthreads"
  19409.                     cat > conftest.$ac_ext <<EOF
  19410. #line 19411 "configure"
  19411. #include "confdefs.h"
  19412.  
  19413. int main() {
  19414.  
  19415. ; return 0; }
  19416. EOF
  19417. if { (eval echo configure:19418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19418.   rm -rf conftest*
  19419.   wx_cv_cflags_mthread=yes
  19420. else
  19421.   echo "configure: failed program was:" >&5
  19422.   cat conftest.$ac_ext >&5
  19423.   rm -rf conftest*
  19424.   wx_cv_cflags_mthread=no
  19425.                     
  19426. fi
  19427. rm -f conftest*
  19428.                 
  19429.             
  19430. fi
  19431.  
  19432. echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
  19433.  
  19434.             if test "$wx_cv_cflags_mthread" = "yes"; then
  19435.                                 CXXFLAGS="$CXXFLAGS -mthreads"
  19436.                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
  19437.                 LDFLAGS="$LDFLAGS -mthreads"
  19438.             else
  19439.                                 CFLAGS="$CFLAGS_OLD"
  19440.             fi
  19441.         ;;
  19442.       esac
  19443.     fi
  19444. fi
  19445.  
  19446. if test "$wxUSE_THREADS" = "yes"; then
  19447.   cat >> confdefs.h <<\EOF
  19448. #define wxUSE_THREADS 1
  19449. EOF
  19450.  
  19451.  
  19452.   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
  19453. else
  19454.       if test "$ac_cv_func_strtok_r" = "yes"; then
  19455.     echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
  19456. echo "configure:19457: checking if -D_REENTRANT is needed" >&5
  19457.     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
  19458.         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
  19459.         echo "$ac_t""yes" 1>&6
  19460.     else
  19461.         echo "$ac_t""no" 1>&6
  19462.     fi
  19463.   fi
  19464. fi
  19465.  
  19466. if test "$WXGTK20" = 1 ; then
  19467.   cat >> confdefs.h <<EOF
  19468. #define __WXGTK20__ $WXGTK20
  19469. EOF
  19470.  
  19471.   WXGTK12=1
  19472. fi
  19473.  
  19474. if test "$WXGTK12" = 1 ; then
  19475.   cat >> confdefs.h <<EOF
  19476. #define __WXGTK12__ $WXGTK12
  19477. EOF
  19478.  
  19479. fi
  19480.  
  19481. if test "$WXGTK127" = 1 ; then
  19482.   cat >> confdefs.h <<EOF
  19483. #define __WXGTK127__ $WXGTK127
  19484. EOF
  19485.  
  19486. fi
  19487.  
  19488. WXDEBUG=
  19489.  
  19490. if test "$wxUSE_DEBUG_INFO" = "yes" ; then
  19491.     WXDEBUG="-g"
  19492.     wxUSE_OPTIMISE=no
  19493. fi
  19494.  
  19495. if test "$wxUSE_DEBUG_GDB" = "yes" ; then
  19496.     wxUSE_DEBUG_INFO=yes
  19497.     WXDEBUG="-ggdb"
  19498. fi
  19499.  
  19500. if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
  19501.     cat >> confdefs.h <<\EOF
  19502. #define WXDEBUG 1
  19503. EOF
  19504.  
  19505.     WXDEBUG_DEFINE="-D__WXDEBUG__"
  19506. else
  19507.     if test "$wxUSE_GTK" = 1 ; then
  19508.         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
  19509.     fi
  19510. fi
  19511.  
  19512. if test "$wxUSE_MEM_TRACING" = "yes" ; then
  19513.     cat >> confdefs.h <<\EOF
  19514. #define wxUSE_MEMORY_TRACING 1
  19515. EOF
  19516.  
  19517.     cat >> confdefs.h <<\EOF
  19518. #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
  19519. EOF
  19520.  
  19521.     cat >> confdefs.h <<\EOF
  19522. #define wxUSE_DEBUG_NEW_ALWAYS 1
  19523. EOF
  19524.  
  19525.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
  19526. fi
  19527.  
  19528. if test "$wxUSE_DMALLOC" = "yes" ; then
  19529.     DMALLOC_LIBS="-ldmalloc"
  19530. fi
  19531.  
  19532. PROFILE=
  19533. if test "$wxUSE_PROFILE" = "yes" ; then
  19534.     PROFILE=" -pg"
  19535. fi
  19536.  
  19537. CODE_GEN_FLAGS=
  19538. CODE_GEN_FLAGS_CXX=
  19539. if test "$GCC" = "yes" ; then
  19540.     if test "$wxUSE_NO_RTTI" = "yes" ; then
  19541.         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
  19542.     fi
  19543.     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
  19544.         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
  19545.     fi
  19546.     if test "$wxUSE_PERMISSIVE" = "yes" ; then
  19547.         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
  19548.     fi
  19549.     if test "$USE_WIN32" = 1 ; then
  19550.         # I'm not even really sure what this was ever added to solve,
  19551.         # but someone added it for mingw native builds, so I guess
  19552.         # they had a reason, right??
  19553.         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
  19554.     fi
  19555.  
  19556.                                                 case "${host}" in
  19557.       powerpc*-*-aix* )
  19558.         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
  19559.         ;;
  19560.       *-hppa* )
  19561.         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
  19562.         ;;
  19563.     esac
  19564. fi
  19565.  
  19566. if test "$wxUSE_OPTIMISE" = "no" ; then
  19567.     OPTIMISE=
  19568. else
  19569.     if test "$GCC" = yes ; then
  19570.         OPTIMISE="-O2"
  19571.         case "${host}" in
  19572.             i586-*-*|i686-*-* )
  19573.             OPTIMISE="${OPTIMISE} "
  19574.         ;;
  19575.         esac
  19576.     else
  19577.         OPTIMISE="-O"
  19578.     fi
  19579. fi
  19580.  
  19581. if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
  19582.     cat >> confdefs.h <<\EOF
  19583. #define WXWIN_COMPATIBILITY_2 1
  19584. EOF
  19585.  
  19586.  
  19587.     WXWIN_COMPATIBILITY_2_2="yes"
  19588. fi
  19589.  
  19590. if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
  19591.     cat >> confdefs.h <<\EOF
  19592. #define WXWIN_COMPATIBILITY_2_2 1
  19593. EOF
  19594.  
  19595. fi
  19596.  
  19597.  
  19598. if test "$wxUSE_GUI" = "yes"; then
  19599.   cat >> confdefs.h <<\EOF
  19600. #define wxUSE_GUI 1
  19601. EOF
  19602.  
  19603.  
  19604.                       else
  19605.   cat >> confdefs.h <<\EOF
  19606. #define wxUSE_NOGUI 1
  19607. EOF
  19608.  
  19609. fi
  19610.  
  19611.  
  19612. if test "$wxUSE_UNIX" = "yes"; then
  19613.   cat >> confdefs.h <<\EOF
  19614. #define wxUSE_UNIX 1
  19615. EOF
  19616.  
  19617. fi
  19618.  
  19619.  
  19620. if test "$wxUSE_APPLE_IEEE" = "yes"; then
  19621.   cat >> confdefs.h <<\EOF
  19622. #define wxUSE_APPLE_IEEE 1
  19623. EOF
  19624.  
  19625. fi
  19626.  
  19627. if test "$wxUSE_TIMER" = "yes"; then
  19628.   cat >> confdefs.h <<\EOF
  19629. #define wxUSE_TIMER 1
  19630. EOF
  19631.  
  19632. fi
  19633.  
  19634. if test "$wxUSE_WAVE" = "yes"; then
  19635.   cat >> confdefs.h <<\EOF
  19636. #define wxUSE_WAVE 1
  19637. EOF
  19638.  
  19639. fi
  19640.  
  19641. if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
  19642.   cat >> confdefs.h <<\EOF
  19643. #define wxUSE_CMDLINE_PARSER 1
  19644. EOF
  19645.  
  19646. fi
  19647.  
  19648. if test "$wxUSE_STOPWATCH" = "yes"; then
  19649.   cat >> confdefs.h <<\EOF
  19650. #define wxUSE_STOPWATCH 1
  19651. EOF
  19652.  
  19653. fi
  19654.  
  19655. if test "$wxUSE_DATETIME" = "yes"; then
  19656.   cat >> confdefs.h <<\EOF
  19657. #define wxUSE_DATETIME 1
  19658. EOF
  19659.  
  19660. fi
  19661.  
  19662. if test "$wxUSE_TIMEDATE" = "yes"; then
  19663.   cat >> confdefs.h <<\EOF
  19664. #define wxUSE_TIMEDATE 1
  19665. EOF
  19666.  
  19667. fi
  19668.  
  19669. if test "$wxUSE_FILE" = "yes"; then
  19670.   cat >> confdefs.h <<\EOF
  19671. #define wxUSE_FILE 1
  19672. EOF
  19673.  
  19674. fi
  19675.  
  19676. if test "$wxUSE_FFILE" = "yes"; then
  19677.   cat >> confdefs.h <<\EOF
  19678. #define wxUSE_FFILE 1
  19679. EOF
  19680.  
  19681. fi
  19682.  
  19683. if test "$wxUSE_FILESYSTEM" = "yes"; then
  19684.   cat >> confdefs.h <<\EOF
  19685. #define wxUSE_FILESYSTEM 1
  19686. EOF
  19687.  
  19688. fi
  19689.  
  19690. if test "$wxUSE_FS_INET" = "yes"; then
  19691.   cat >> confdefs.h <<\EOF
  19692. #define wxUSE_FS_INET 1
  19693. EOF
  19694.  
  19695. fi
  19696.  
  19697. if test "$wxUSE_FS_ZIP" = "yes"; then
  19698.   cat >> confdefs.h <<\EOF
  19699. #define wxUSE_FS_ZIP 1
  19700. EOF
  19701.  
  19702. fi
  19703.  
  19704. if test "$wxUSE_ZIPSTREAM" = "yes"; then
  19705.   cat >> confdefs.h <<\EOF
  19706. #define wxUSE_ZIPSTREAM 1
  19707. EOF
  19708.  
  19709. fi
  19710.  
  19711. if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
  19712.   cat >> confdefs.h <<\EOF
  19713. #define wxUSE_ON_FATAL_EXCEPTION 1
  19714. EOF
  19715.  
  19716. fi
  19717.  
  19718. if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
  19719.   cat >> confdefs.h <<\EOF
  19720. #define wxUSE_SNGLINST_CHECKER 1
  19721. EOF
  19722.  
  19723. fi
  19724.  
  19725. if test "$wxUSE_BUSYINFO" = "yes"; then
  19726.   cat >> confdefs.h <<\EOF
  19727. #define wxUSE_BUSYINFO 1
  19728. EOF
  19729.  
  19730. fi
  19731.  
  19732. if test "$wxUSE_STD_IOSTREAM" = "yes"; then
  19733.   cat >> confdefs.h <<\EOF
  19734. #define wxUSE_STD_IOSTREAM 1
  19735. EOF
  19736.  
  19737. fi
  19738.  
  19739. if test "$wxUSE_TEXTBUFFER" = "yes"; then
  19740.     cat >> confdefs.h <<\EOF
  19741. #define wxUSE_TEXTBUFFER 1
  19742. EOF
  19743.  
  19744. fi
  19745.  
  19746. if test "$wxUSE_TEXTFILE" = "yes"; then
  19747.   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
  19748.     echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
  19749.   else
  19750.     cat >> confdefs.h <<\EOF
  19751. #define wxUSE_TEXTFILE 1
  19752. EOF
  19753.  
  19754.   fi
  19755. fi
  19756.  
  19757. if test "$wxUSE_CONFIG" = "yes" ; then
  19758.   if test "$wxUSE_TEXTFILE" != "yes"; then
  19759.     echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
  19760.   else
  19761.     cat >> confdefs.h <<\EOF
  19762. #define wxUSE_CONFIG 1
  19763. EOF
  19764.  
  19765.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
  19766.   fi
  19767. fi
  19768.  
  19769. if test "$wxUSE_INTL" = "yes" ; then
  19770.   if test "$wxUSE_FILE" != "yes"; then
  19771.     echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
  19772.   else
  19773.     cat >> confdefs.h <<\EOF
  19774. #define wxUSE_INTL 1
  19775. EOF
  19776.  
  19777.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
  19778.     GUIDIST="$GUIDIST INTL_DIST"
  19779.   fi
  19780. fi
  19781.  
  19782. if test "$wxUSE_LOG" = "yes"; then
  19783.   cat >> confdefs.h <<\EOF
  19784. #define wxUSE_LOG 1
  19785. EOF
  19786.  
  19787.  
  19788.     if test "$wxUSE_LOGGUI" = "yes"; then
  19789.       cat >> confdefs.h <<\EOF
  19790. #define wxUSE_LOGGUI 1
  19791. EOF
  19792.  
  19793.     fi
  19794.  
  19795.     if test "$wxUSE_LOGWINDOW" = "yes"; then
  19796.       cat >> confdefs.h <<\EOF
  19797. #define wxUSE_LOGWINDOW 1
  19798. EOF
  19799.  
  19800.     fi
  19801.  
  19802.     if test "$wxUSE_LOGDIALOG" = "yes"; then
  19803.       cat >> confdefs.h <<\EOF
  19804. #define wxUSE_LOG_DIALOG 1
  19805. EOF
  19806.  
  19807.     fi
  19808. fi
  19809.  
  19810. if test "$wxUSE_LONGLONG" = "yes"; then
  19811.   cat >> confdefs.h <<\EOF
  19812. #define wxUSE_LONGLONG 1
  19813. EOF
  19814.  
  19815. fi
  19816.  
  19817. if test "$wxUSE_GEOMETRY" = "yes"; then
  19818.   cat >> confdefs.h <<\EOF
  19819. #define wxUSE_GEOMETRY 1
  19820. EOF
  19821.  
  19822. fi
  19823.  
  19824. if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
  19825.   cat >> confdefs.h <<\EOF
  19826. #define wxUSE_DIALUP_MANAGER 1
  19827. EOF
  19828.  
  19829.   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
  19830. fi
  19831.  
  19832. if test "$wxUSE_STREAMS" = "yes" ; then
  19833.   cat >> confdefs.h <<\EOF
  19834. #define wxUSE_STREAMS 1
  19835. EOF
  19836.  
  19837. fi
  19838.  
  19839.  
  19840. if test "$wxUSE_DATETIME" = "yes"; then
  19841.         for ac_func in strptime
  19842. do
  19843. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  19844. echo "configure:19845: checking for $ac_func" >&5
  19845. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  19846.   echo $ac_n "(cached) $ac_c" 1>&6
  19847. else
  19848.   cat > conftest.$ac_ext <<EOF
  19849. #line 19850 "configure"
  19850. #include "confdefs.h"
  19851. /* System header to define __stub macros and hopefully few prototypes,
  19852.     which can conflict with char $ac_func(); below.  */
  19853. #include <assert.h>
  19854. /* Override any gcc2 internal prototype to avoid an error.  */
  19855. /* We use char because int might match the return type of a gcc2
  19856.     builtin and then its argument prototype would still apply.  */
  19857. char $ac_func();
  19858.  
  19859. int main() {
  19860.  
  19861. /* The GNU C library defines this for functions which it implements
  19862.     to always fail with ENOSYS.  Some functions are actually named
  19863.     something starting with __ and the normal name is an alias.  */
  19864. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19865. choke me
  19866. #else
  19867. $ac_func();
  19868. #endif
  19869.  
  19870. ; return 0; }
  19871. EOF
  19872. if { (eval echo configure:19873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19873.   rm -rf conftest*
  19874.   eval "ac_cv_func_$ac_func=yes"
  19875. else
  19876.   echo "configure: failed program was:" >&5
  19877.   cat conftest.$ac_ext >&5
  19878.   rm -rf conftest*
  19879.   eval "ac_cv_func_$ac_func=no"
  19880. fi
  19881. rm -f conftest*
  19882. fi
  19883.  
  19884. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  19885.   echo "$ac_t""yes" 1>&6
  19886.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  19887.   cat >> confdefs.h <<EOF
  19888. #define $ac_tr_func 1
  19889. EOF
  19890.  
  19891. else
  19892.   echo "$ac_t""no" 1>&6
  19893. fi
  19894. done
  19895.  
  19896.  
  19897.             echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
  19898. echo "configure:19899: checking for timezone variable in <time.h>" >&5
  19899. if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
  19900.   echo $ac_n "(cached) $ac_c" 1>&6
  19901. else
  19902.   
  19903.                         cat > conftest.$ac_ext <<EOF
  19904. #line 19905 "configure"
  19905. #include "confdefs.h"
  19906.  
  19907.                                 #include <time.h>
  19908.                             
  19909. int main() {
  19910.  
  19911.                                 int tz;
  19912.                                 tz = timezone;
  19913.                             
  19914. ; return 0; }
  19915. EOF
  19916. if { (eval echo configure:19917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19917.   rm -rf conftest*
  19918.   
  19919.                                 wx_cv_var_timezone=timezone
  19920.                             
  19921. else
  19922.   echo "configure: failed program was:" >&5
  19923.   cat conftest.$ac_ext >&5
  19924.   rm -rf conftest*
  19925.   
  19926.                                 cat > conftest.$ac_ext <<EOF
  19927. #line 19928 "configure"
  19928. #include "confdefs.h"
  19929.  
  19930.                                         #include <time.h>
  19931.                                     
  19932. int main() {
  19933.  
  19934.                                         int tz;
  19935.                                         tz = _timezone;
  19936.                                     
  19937. ; return 0; }
  19938. EOF
  19939. if { (eval echo configure:19940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19940.   rm -rf conftest*
  19941.   
  19942.                                         wx_cv_var_timezone=_timezone
  19943.                                     
  19944. else
  19945.   echo "configure: failed program was:" >&5
  19946.   cat conftest.$ac_ext >&5
  19947.   rm -rf conftest*
  19948.   
  19949.                                         cat > conftest.$ac_ext <<EOF
  19950. #line 19951 "configure"
  19951. #include "confdefs.h"
  19952.  
  19953.                                                 #include <time.h>
  19954.                                             
  19955. int main() {
  19956.  
  19957.                                                 int tz;
  19958.                                                 tz = __timezone;
  19959.                                             
  19960. ; return 0; }
  19961. EOF
  19962. if { (eval echo configure:19963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19963.   rm -rf conftest*
  19964.   
  19965.                                                 wx_cv_var_timezone=__timezone
  19966.                                             
  19967. else
  19968.   echo "configure: failed program was:" >&5
  19969.   cat conftest.$ac_ext >&5
  19970.   rm -rf conftest*
  19971.   
  19972.                                                 if test "$USE_DOS" = 0 ; then
  19973.                                                     echo "configure: warning: no timezone variable" 1>&2
  19974.                                                 fi
  19975.                                             
  19976.                                         
  19977. fi
  19978. rm -f conftest*
  19979.                                     
  19980.                                 
  19981. fi
  19982. rm -f conftest*
  19983.                             
  19984.                         
  19985. fi
  19986. rm -f conftest*
  19987.                    
  19988.     
  19989. fi
  19990.  
  19991. echo "$ac_t""$wx_cv_var_timezone" 1>&6
  19992.  
  19993.         if test "x$wx_cv_var_timezone" != x ; then
  19994.         cat >> confdefs.h <<EOF
  19995. #define WX_TIMEZONE $wx_cv_var_timezone
  19996. EOF
  19997.  
  19998.     fi
  19999.  
  20000.         for ac_func in localtime
  20001. do
  20002. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  20003. echo "configure:20004: checking for $ac_func" >&5
  20004. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  20005.   echo $ac_n "(cached) $ac_c" 1>&6
  20006. else
  20007.   cat > conftest.$ac_ext <<EOF
  20008. #line 20009 "configure"
  20009. #include "confdefs.h"
  20010. /* System header to define __stub macros and hopefully few prototypes,
  20011.     which can conflict with char $ac_func(); below.  */
  20012. #include <assert.h>
  20013. /* Override any gcc2 internal prototype to avoid an error.  */
  20014. /* We use char because int might match the return type of a gcc2
  20015.     builtin and then its argument prototype would still apply.  */
  20016. char $ac_func();
  20017.  
  20018. int main() {
  20019.  
  20020. /* The GNU C library defines this for functions which it implements
  20021.     to always fail with ENOSYS.  Some functions are actually named
  20022.     something starting with __ and the normal name is an alias.  */
  20023. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20024. choke me
  20025. #else
  20026. $ac_func();
  20027. #endif
  20028.  
  20029. ; return 0; }
  20030. EOF
  20031. if { (eval echo configure:20032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  20032.   rm -rf conftest*
  20033.   eval "ac_cv_func_$ac_func=yes"
  20034. else
  20035.   echo "configure: failed program was:" >&5
  20036.   cat conftest.$ac_ext >&5
  20037.   rm -rf conftest*
  20038.   eval "ac_cv_func_$ac_func=no"
  20039. fi
  20040. rm -f conftest*
  20041. fi
  20042.  
  20043. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  20044.   echo "$ac_t""yes" 1>&6
  20045.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  20046.   cat >> confdefs.h <<EOF
  20047. #define $ac_tr_func 1
  20048. EOF
  20049.  
  20050. else
  20051.   echo "$ac_t""no" 1>&6
  20052. fi
  20053. done
  20054.  
  20055.  
  20056.     if test "$ac_cv_func_localtime" = "yes"; then
  20057.         echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
  20058. echo "configure:20059: checking for tm_gmtoff in struct tm" >&5
  20059. if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
  20060.   echo $ac_n "(cached) $ac_c" 1>&6
  20061. else
  20062.   
  20063.             cat > conftest.$ac_ext <<EOF
  20064. #line 20065 "configure"
  20065. #include "confdefs.h"
  20066.  
  20067.                     #include <time.h>
  20068.                 
  20069. int main() {
  20070.  
  20071.                     struct tm tm;
  20072.                     tm.tm_gmtoff++;
  20073.                 
  20074. ; return 0; }
  20075. EOF
  20076. if { (eval echo configure:20077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  20077.   rm -rf conftest*
  20078.   
  20079.                     wx_cv_struct_tm_has_gmtoff=yes
  20080.                 
  20081. else
  20082.   echo "configure: failed program was:" >&5
  20083.   cat conftest.$ac_ext >&5
  20084.   rm -rf conftest*
  20085.   wx_cv_struct_tm_has_gmtoff=no
  20086.             
  20087. fi
  20088. rm -f conftest*
  20089.         
  20090. fi
  20091.  
  20092. echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
  20093.     fi
  20094.  
  20095.     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
  20096.         cat >> confdefs.h <<\EOF
  20097. #define WX_GMTOFF_IN_TM 1
  20098. EOF
  20099.  
  20100.     fi
  20101.  
  20102.             for ac_func in gettimeofday ftime
  20103. do
  20104. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  20105. echo "configure:20106: checking for $ac_func" >&5
  20106. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  20107.   echo $ac_n "(cached) $ac_c" 1>&6
  20108. else
  20109.   cat > conftest.$ac_ext <<EOF
  20110. #line 20111 "configure"
  20111. #include "confdefs.h"
  20112. /* System header to define __stub macros and hopefully few prototypes,
  20113.     which can conflict with char $ac_func(); below.  */
  20114. #include <assert.h>
  20115. /* Override any gcc2 internal prototype to avoid an error.  */
  20116. /* We use char because int might match the return type of a gcc2
  20117.     builtin and then its argument prototype would still apply.  */
  20118. char $ac_func();
  20119.  
  20120. int main() {
  20121.  
  20122. /* The GNU C library defines this for functions which it implements
  20123.     to always fail with ENOSYS.  Some functions are actually named
  20124.     something starting with __ and the normal name is an alias.  */
  20125. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20126. choke me
  20127. #else
  20128. $ac_func();
  20129. #endif
  20130.  
  20131. ; return 0; }
  20132. EOF
  20133. if { (eval echo configure:20134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  20134.   rm -rf conftest*
  20135.   eval "ac_cv_func_$ac_func=yes"
  20136. else
  20137.   echo "configure: failed program was:" >&5
  20138.   cat conftest.$ac_ext >&5
  20139.   rm -rf conftest*
  20140.   eval "ac_cv_func_$ac_func=no"
  20141. fi
  20142. rm -f conftest*
  20143. fi
  20144.  
  20145. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  20146.   echo "$ac_t""yes" 1>&6
  20147.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  20148.   cat >> confdefs.h <<EOF
  20149. #define $ac_tr_func 1
  20150. EOF
  20151.  break
  20152. else
  20153.   echo "$ac_t""no" 1>&6
  20154. fi
  20155. done
  20156.  
  20157.  
  20158.     if test "$ac_cv_func_gettimeofday" = "yes"; then
  20159.         echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
  20160. echo "configure:20161: checking whether gettimeofday takes two arguments" >&5
  20161. if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
  20162.   echo $ac_n "(cached) $ac_c" 1>&6
  20163. else
  20164.   
  20165.                         
  20166.             ac_ext=C
  20167. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  20168. ac_cpp='$CXXCPP $CPPFLAGS'
  20169. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  20170. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  20171. cross_compiling=$ac_cv_prog_cxx_cross
  20172.  
  20173.  
  20174.             cat > conftest.$ac_ext <<EOF
  20175. #line 20176 "configure"
  20176. #include "confdefs.h"
  20177.  
  20178.                     #include <sys/time.h>
  20179.                     #include <unistd.h>
  20180.                 
  20181. int main() {
  20182.  
  20183.                     struct timeval tv;
  20184.                     gettimeofday(&tv, NULL);
  20185.                 
  20186. ; return 0; }
  20187. EOF
  20188. if { (eval echo configure:20189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  20189.   rm -rf conftest*
  20190.   wx_cv_func_gettimeofday_has_2_args=yes
  20191. else
  20192.   echo "configure: failed program was:" >&5
  20193.   cat conftest.$ac_ext >&5
  20194.   rm -rf conftest*
  20195.   cat > conftest.$ac_ext <<EOF
  20196. #line 20197 "configure"
  20197. #include "confdefs.h"
  20198.  
  20199.                         #include <sys/time.h>
  20200.                         #include <unistd.h>
  20201.                     
  20202. int main() {
  20203.  
  20204.                         struct timeval tv;
  20205.                         gettimeofday(&tv);
  20206.                     
  20207. ; return 0; }
  20208. EOF
  20209. if { (eval echo configure:20210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  20210.   rm -rf conftest*
  20211.   wx_cv_func_gettimeofday_has_2_args=no
  20212. else
  20213.   echo "configure: failed program was:" >&5
  20214.   cat conftest.$ac_ext >&5
  20215.   rm -rf conftest*
  20216.   
  20217.                         echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
  20218.                         wx_cv_func_gettimeofday_has_2_args=unknown
  20219.                     
  20220.                 
  20221. fi
  20222. rm -f conftest*
  20223.             
  20224. fi
  20225. rm -f conftest*
  20226.             ac_ext=c
  20227. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  20228. ac_cpp='$CPP $CPPFLAGS'
  20229. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  20230. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  20231. cross_compiling=$ac_cv_prog_cc_cross
  20232.  
  20233.         
  20234. fi
  20235.  
  20236. echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
  20237.  
  20238.         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
  20239.             cat >> confdefs.h <<\EOF
  20240. #define WX_GETTIMEOFDAY_NO_TZ 1
  20241. EOF
  20242.  
  20243.         fi
  20244.     fi
  20245.  
  20246.     cat >> confdefs.h <<\EOF
  20247. #define wxUSE_TIMEDATE 1
  20248. EOF
  20249.  
  20250.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
  20251. fi
  20252.  
  20253.  
  20254. if test "$wxUSE_SOCKETS" = "yes"; then
  20255.     if test "$wxUSE_MGL" = "1"; then
  20256.         echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
  20257.         wxUSE_SOCKETS="no"
  20258.     fi
  20259. fi
  20260.  
  20261. if test "$wxUSE_SOCKETS" = "yes"; then
  20262.         if test "$TOOLKIT" != "MSW"; then
  20263.                 echo $ac_n "checking for socket""... $ac_c" 1>&6
  20264. echo "configure:20265: checking for socket" >&5
  20265. if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
  20266.   echo $ac_n "(cached) $ac_c" 1>&6
  20267. else
  20268.   cat > conftest.$ac_ext <<EOF
  20269. #line 20270 "configure"
  20270. #include "confdefs.h"
  20271. /* System header to define __stub macros and hopefully few prototypes,
  20272.     which can conflict with char socket(); below.  */
  20273. #include <assert.h>
  20274. /* Override any gcc2 internal prototype to avoid an error.  */
  20275. /* We use char because int might match the return type of a gcc2
  20276.     builtin and then its argument prototype would still apply.  */
  20277. char socket();
  20278.  
  20279. int main() {
  20280.  
  20281. /* The GNU C library defines this for functions which it implements
  20282.     to always fail with ENOSYS.  Some functions are actually named
  20283.     something starting with __ and the normal name is an alias.  */
  20284. #if defined (__stub_socket) || defined (__stub___socket)
  20285. choke me
  20286. #else
  20287. socket();
  20288. #endif
  20289.  
  20290. ; return 0; }
  20291. EOF
  20292. if { (eval echo configure:20293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  20293.   rm -rf conftest*
  20294.   eval "ac_cv_func_socket=yes"
  20295. else
  20296.   echo "configure: failed program was:" >&5
  20297.   cat conftest.$ac_ext >&5
  20298.   rm -rf conftest*
  20299.   eval "ac_cv_func_socket=no"
  20300. fi
  20301. rm -f conftest*
  20302. fi
  20303.  
  20304. if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
  20305.   echo "$ac_t""yes" 1>&6
  20306.   :
  20307. else
  20308.   echo "$ac_t""no" 1>&6
  20309. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  20310. echo "configure:20311: checking for socket in -lsocket" >&5
  20311. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  20312. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  20313.   echo $ac_n "(cached) $ac_c" 1>&6
  20314. else
  20315.   ac_save_LIBS="$LIBS"
  20316. LIBS="-lsocket  $LIBS"
  20317. cat > conftest.$ac_ext <<EOF
  20318. #line 20319 "configure"
  20319. #include "confdefs.h"
  20320. /* Override any gcc2 internal prototype to avoid an error.  */
  20321. /* We use char because int might match the return type of a gcc2
  20322.     builtin and then its argument prototype would still apply.  */
  20323. char socket();
  20324.  
  20325. int main() {
  20326. socket()
  20327. ; return 0; }
  20328. EOF
  20329. if { (eval echo configure:20330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  20330.   rm -rf conftest*
  20331.   eval "ac_cv_lib_$ac_lib_var=yes"
  20332. else
  20333.   echo "configure: failed program was:" >&5
  20334.   cat conftest.$ac_ext >&5
  20335.   rm -rf conftest*
  20336.   eval "ac_cv_lib_$ac_lib_var=no"
  20337. fi
  20338. rm -f conftest*
  20339. LIBS="$ac_save_LIBS"
  20340.  
  20341. fi
  20342. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  20343.   echo "$ac_t""yes" 1>&6
  20344.   if test "$INET_LINK" != " -lsocket"; then
  20345.                     INET_LINK="$INET_LINK -lsocket"
  20346.                 fi
  20347. else
  20348.   echo "$ac_t""no" 1>&6
  20349.  
  20350.                     echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
  20351.                     wxUSE_SOCKETS=no
  20352.                 
  20353.             
  20354. fi
  20355.  
  20356.         
  20357. fi
  20358.  
  20359.     fi
  20360. fi
  20361.  
  20362. if test "$wxUSE_SOCKETS" = "yes" ; then
  20363.                 if test "$TOOLKIT" != "MSW"; then
  20364.                 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
  20365. echo "configure:20366: checking what is the type of the third argument of getsockname" >&5
  20366. if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
  20367.   echo $ac_n "(cached) $ac_c" 1>&6
  20368. else
  20369.   
  20370.                 
  20371.                 ac_ext=C
  20372. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  20373. ac_cpp='$CXXCPP $CPPFLAGS'
  20374. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  20375. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  20376. cross_compiling=$ac_cv_prog_cxx_cross
  20377.  
  20378.  
  20379.                 cat > conftest.$ac_ext <<EOF
  20380. #line 20381 "configure"
  20381. #include "confdefs.h"
  20382.  
  20383.                         #include <sys/types.h>
  20384.                         #include <sys/socket.h>
  20385.                     
  20386. int main() {
  20387.  
  20388.                         socklen_t len;
  20389.                         getsockname(0, 0, &len);
  20390.                     
  20391. ; return 0; }
  20392. EOF
  20393. if { (eval echo configure:20394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  20394.   rm -rf conftest*
  20395.   wx_cv_type_getsockname3=socklen_t
  20396. else
  20397.   echo "configure: failed program was:" >&5
  20398.   cat conftest.$ac_ext >&5
  20399.   rm -rf conftest*
  20400.   cat > conftest.$ac_ext <<EOF
  20401. #line 20402 "configure"
  20402. #include "confdefs.h"
  20403.  
  20404.                             #include <sys/types.h>
  20405.                             #include <sys/socket.h>
  20406.                         
  20407. int main() {
  20408.  
  20409.                             size_t len;
  20410.                             getsockname(0, 0, &len);
  20411.                         
  20412. ; return 0; }
  20413. EOF
  20414. if { (eval echo configure:20415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  20415.   rm -rf conftest*
  20416.   wx_cv_type_getsockname3=size_t
  20417. else
  20418.   echo "configure: failed program was:" >&5
  20419.   cat conftest.$ac_ext >&5
  20420.   rm -rf conftest*
  20421.   cat > conftest.$ac_ext <<EOF
  20422. #line 20423 "configure"
  20423. #include "confdefs.h"
  20424.  
  20425.                                 #include <sys/types.h>
  20426.                                 #include <sys/socket.h>
  20427.                             
  20428. int main() {
  20429.  
  20430.                                 int len;
  20431.                                 getsockname(0, 0, &len);
  20432.                             
  20433. ; return 0; }
  20434. EOF
  20435. if { (eval echo configure:20436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  20436.   rm -rf conftest*
  20437.   wx_cv_type_getsockname3=int
  20438. else
  20439.   echo "configure: failed program was:" >&5
  20440.   cat conftest.$ac_ext >&5
  20441.   rm -rf conftest*
  20442.   wx_cv_type_getsockname3=unknown
  20443.                         
  20444. fi
  20445. rm -f conftest*
  20446.                     
  20447. fi
  20448. rm -f conftest*
  20449.                 
  20450. fi
  20451. rm -f conftest*
  20452.  
  20453.                 ac_ext=c
  20454. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  20455. ac_cpp='$CPP $CPPFLAGS'
  20456. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  20457. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  20458. cross_compiling=$ac_cv_prog_cc_cross
  20459.  
  20460.             
  20461. fi
  20462.  
  20463. echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
  20464.  
  20465.         if test "$wx_cv_type_getsockname3" = "unknown"; then
  20466.             wxUSE_SOCKETS=no
  20467.             echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
  20468.         else
  20469.             cat >> confdefs.h <<EOF
  20470. #define SOCKLEN_T $wx_cv_type_getsockname3
  20471. EOF
  20472.  
  20473.         fi
  20474.     fi
  20475. fi
  20476.  
  20477. if test "$wxUSE_SOCKETS" = "yes" ; then
  20478.     cat >> confdefs.h <<\EOF
  20479. #define wxUSE_SOCKETS 1
  20480. EOF
  20481.  
  20482.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
  20483. fi
  20484.  
  20485.  
  20486. if test "$wxUSE_GUI" = "yes"; then
  20487.  
  20488.     if test "$TOOLKIT" = "MAC"; then
  20489.         echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
  20490.         wxUSE_JOYSTICK=no
  20491.      fi
  20492.     if test "$TOOLKIT" = "MOTIF"; then
  20493.         echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
  20494.         wxUSE_JOYSTICK=no
  20495.      fi
  20496.     if test "$TOOLKIT" = "X11"; then
  20497.         echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
  20498.         wxUSE_JOYSTICK=no
  20499.      fi
  20500.  
  20501.         if test "$TOOLKIT" != "MSW"; then
  20502.         if test "$wxUSE_JOYSTICK" = "yes"; then
  20503.                         for ac_hdr in linux/joystick.h
  20504. do
  20505. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  20506. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  20507. echo "configure:20508: checking for $ac_hdr" >&5
  20508. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  20509.   echo $ac_n "(cached) $ac_c" 1>&6
  20510. else
  20511.   cat > conftest.$ac_ext <<EOF
  20512. #include <sys/types.h>
  20513. #line 20514 "configure"
  20514. #include "confdefs.h"
  20515. #include <$ac_hdr>
  20516. EOF
  20517. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  20518. { (eval echo configure:20519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  20519. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  20520. if test -z "$ac_err"; then
  20521.   rm -rf conftest*
  20522.   eval "ac_cv_header_$ac_safe=yes"
  20523. else
  20524.   echo "$ac_err" >&5
  20525.   echo "configure: failed program was:" >&5
  20526.   cat conftest.$ac_ext >&5
  20527.   rm -rf conftest*
  20528.   eval "ac_cv_header_$ac_safe=no"
  20529. fi
  20530. rm -f conftest*
  20531. fi
  20532. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  20533.   echo "$ac_t""yes" 1>&6
  20534.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  20535.   cat >> confdefs.h <<EOF
  20536. #define $ac_tr_hdr 1
  20537. EOF
  20538.  
  20539. else
  20540.   echo "$ac_t""no" 1>&6
  20541. fi
  20542. done
  20543.  
  20544.             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
  20545.                 wxUSE_JOYSTICK=no
  20546.                 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
  20547.             fi
  20548.         fi
  20549.     fi
  20550.  
  20551.     if test "$wxUSE_JOYSTICK" = "yes"; then
  20552.         cat >> confdefs.h <<\EOF
  20553. #define wxUSE_JOYSTICK 1
  20554. EOF
  20555.  
  20556.         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
  20557.     fi
  20558. fi
  20559.  
  20560.  
  20561. if test "$TOOLKIT" != "MSW"; then
  20562.  
  20563.     HAVE_DL_FUNCS=0
  20564.     HAVE_SHL_FUNCS=0
  20565.     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
  20566.         if test "$USE_DARWIN" = 1; then
  20567.                         HAVE_DL_FUNCS=1
  20568.         else
  20569.                                                 for ac_func in dlopen
  20570. do
  20571. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  20572. echo "configure:20573: checking for $ac_func" >&5
  20573. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  20574.   echo $ac_n "(cached) $ac_c" 1>&6
  20575. else
  20576.   cat > conftest.$ac_ext <<EOF
  20577. #line 20578 "configure"
  20578. #include "confdefs.h"
  20579. /* System header to define __stub macros and hopefully few prototypes,
  20580.     which can conflict with char $ac_func(); below.  */
  20581. #include <assert.h>
  20582. /* Override any gcc2 internal prototype to avoid an error.  */
  20583. /* We use char because int might match the return type of a gcc2
  20584.     builtin and then its argument prototype would still apply.  */
  20585. char $ac_func();
  20586.  
  20587. int main() {
  20588.  
  20589. /* The GNU C library defines this for functions which it implements
  20590.     to always fail with ENOSYS.  Some functions are actually named
  20591.     something starting with __ and the normal name is an alias.  */
  20592. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20593. choke me
  20594. #else
  20595. $ac_func();
  20596. #endif
  20597.  
  20598. ; return 0; }
  20599. EOF
  20600. if { (eval echo configure:20601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  20601.   rm -rf conftest*
  20602.   eval "ac_cv_func_$ac_func=yes"
  20603. else
  20604.   echo "configure: failed program was:" >&5
  20605.   cat conftest.$ac_ext >&5
  20606.   rm -rf conftest*
  20607.   eval "ac_cv_func_$ac_func=no"
  20608. fi
  20609. rm -f conftest*
  20610. fi
  20611.  
  20612. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  20613.   echo "$ac_t""yes" 1>&6
  20614.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  20615.   cat >> confdefs.h <<EOF
  20616. #define $ac_tr_func 1
  20617. EOF
  20618.  
  20619.                 cat >> confdefs.h <<\EOF
  20620. #define HAVE_DLOPEN 1
  20621. EOF
  20622.  
  20623.                 HAVE_DL_FUNCS=1
  20624.             
  20625. else
  20626.   echo "$ac_t""no" 1>&6
  20627. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  20628. echo "configure:20629: checking for dlopen in -ldl" >&5
  20629. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  20630. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  20631.   echo $ac_n "(cached) $ac_c" 1>&6
  20632. else
  20633.   ac_save_LIBS="$LIBS"
  20634. LIBS="-ldl  $LIBS"
  20635. cat > conftest.$ac_ext <<EOF
  20636. #line 20637 "configure"
  20637. #include "confdefs.h"
  20638. /* Override any gcc2 internal prototype to avoid an error.  */
  20639. /* We use char because int might match the return type of a gcc2
  20640.     builtin and then its argument prototype would still apply.  */
  20641. char dlopen();
  20642.  
  20643. int main() {
  20644. dlopen()
  20645. ; return 0; }
  20646. EOF
  20647. if { (eval echo configure:20648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  20648.   rm -rf conftest*
  20649.   eval "ac_cv_lib_$ac_lib_var=yes"
  20650. else
  20651.   echo "configure: failed program was:" >&5
  20652.   cat conftest.$ac_ext >&5
  20653.   rm -rf conftest*
  20654.   eval "ac_cv_lib_$ac_lib_var=no"
  20655. fi
  20656. rm -f conftest*
  20657. LIBS="$ac_save_LIBS"
  20658.  
  20659. fi
  20660. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  20661.   echo "$ac_t""yes" 1>&6
  20662.   
  20663.                                 cat >> confdefs.h <<\EOF
  20664. #define HAVE_DLOPEN 1
  20665. EOF
  20666.  
  20667.                                 HAVE_DL_FUNCS=1
  20668.                                 DL_LINK=" -ldl$DL_LINK"
  20669.                             
  20670. else
  20671.   echo "$ac_t""no" 1>&6
  20672.  
  20673.                                 for ac_func in shl_load
  20674. do
  20675. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  20676. echo "configure:20677: checking for $ac_func" >&5
  20677. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  20678.   echo $ac_n "(cached) $ac_c" 1>&6
  20679. else
  20680.   cat > conftest.$ac_ext <<EOF
  20681. #line 20682 "configure"
  20682. #include "confdefs.h"
  20683. /* System header to define __stub macros and hopefully few prototypes,
  20684.     which can conflict with char $ac_func(); below.  */
  20685. #include <assert.h>
  20686. /* Override any gcc2 internal prototype to avoid an error.  */
  20687. /* We use char because int might match the return type of a gcc2
  20688.     builtin and then its argument prototype would still apply.  */
  20689. char $ac_func();
  20690.  
  20691. int main() {
  20692.  
  20693. /* The GNU C library defines this for functions which it implements
  20694.     to always fail with ENOSYS.  Some functions are actually named
  20695.     something starting with __ and the normal name is an alias.  */
  20696. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20697. choke me
  20698. #else
  20699. $ac_func();
  20700. #endif
  20701.  
  20702. ; return 0; }
  20703. EOF
  20704. if { (eval echo configure:20705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  20705.   rm -rf conftest*
  20706.   eval "ac_cv_func_$ac_func=yes"
  20707. else
  20708.   echo "configure: failed program was:" >&5
  20709.   cat conftest.$ac_ext >&5
  20710.   rm -rf conftest*
  20711.   eval "ac_cv_func_$ac_func=no"
  20712. fi
  20713. rm -f conftest*
  20714. fi
  20715.  
  20716. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  20717.   echo "$ac_t""yes" 1>&6
  20718.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  20719.   cat >> confdefs.h <<EOF
  20720. #define $ac_tr_func 1
  20721. EOF
  20722.  
  20723.                                                 cat >> confdefs.h <<\EOF
  20724. #define HAVE_SHL_LOAD 1
  20725. EOF
  20726.  
  20727.                                                 HAVE_SHL_FUNCS=1
  20728.                                               
  20729. else
  20730.   echo "$ac_t""no" 1>&6
  20731. echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
  20732. echo "configure:20733: checking for dld in -lshl_load" >&5
  20733. ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
  20734. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  20735.   echo $ac_n "(cached) $ac_c" 1>&6
  20736. else
  20737.   ac_save_LIBS="$LIBS"
  20738. LIBS="-lshl_load  $LIBS"
  20739. cat > conftest.$ac_ext <<EOF
  20740. #line 20741 "configure"
  20741. #include "confdefs.h"
  20742. /* Override any gcc2 internal prototype to avoid an error.  */
  20743. /* We use char because int might match the return type of a gcc2
  20744.     builtin and then its argument prototype would still apply.  */
  20745. char dld();
  20746.  
  20747. int main() {
  20748. dld()
  20749. ; return 0; }
  20750. EOF
  20751. if { (eval echo configure:20752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  20752.   rm -rf conftest*
  20753.   eval "ac_cv_lib_$ac_lib_var=yes"
  20754. else
  20755.   echo "configure: failed program was:" >&5
  20756.   cat conftest.$ac_ext >&5
  20757.   rm -rf conftest*
  20758.   eval "ac_cv_lib_$ac_lib_var=no"
  20759. fi
  20760. rm -f conftest*
  20761. LIBS="$ac_save_LIBS"
  20762.  
  20763. fi
  20764. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  20765.   echo "$ac_t""yes" 1>&6
  20766.   
  20767.                                                                 HAVE_SHL_FUNCS=1
  20768.                                                                 DL_LINK=" -ldld$DL_LINK"
  20769.                                                              
  20770. else
  20771.   echo "$ac_t""no" 1>&6
  20772. fi
  20773.  
  20774.                                               
  20775. fi
  20776. done
  20777.  
  20778.                             
  20779. fi
  20780.  
  20781.             
  20782. fi
  20783. done
  20784.  
  20785.  
  20786.                 if test "$HAVE_DL_FUNCS" = 1; then
  20787.             for ac_func in dlerror
  20788. do
  20789. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  20790. echo "configure:20791: checking for $ac_func" >&5
  20791. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  20792.   echo $ac_n "(cached) $ac_c" 1>&6
  20793. else
  20794.   cat > conftest.$ac_ext <<EOF
  20795. #line 20796 "configure"
  20796. #include "confdefs.h"
  20797. /* System header to define __stub macros and hopefully few prototypes,
  20798.     which can conflict with char $ac_func(); below.  */
  20799. #include <assert.h>
  20800. /* Override any gcc2 internal prototype to avoid an error.  */
  20801. /* We use char because int might match the return type of a gcc2
  20802.     builtin and then its argument prototype would still apply.  */
  20803. char $ac_func();
  20804.  
  20805. int main() {
  20806.  
  20807. /* The GNU C library defines this for functions which it implements
  20808.     to always fail with ENOSYS.  Some functions are actually named
  20809.     something starting with __ and the normal name is an alias.  */
  20810. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  20811. choke me
  20812. #else
  20813. $ac_func();
  20814. #endif
  20815.  
  20816. ; return 0; }
  20817. EOF
  20818. if { (eval echo configure:20819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  20819.   rm -rf conftest*
  20820.   eval "ac_cv_func_$ac_func=yes"
  20821. else
  20822.   echo "configure: failed program was:" >&5
  20823.   cat conftest.$ac_ext >&5
  20824.   rm -rf conftest*
  20825.   eval "ac_cv_func_$ac_func=no"
  20826. fi
  20827. rm -f conftest*
  20828. fi
  20829.  
  20830. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  20831.   echo "$ac_t""yes" 1>&6
  20832.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  20833.   cat >> confdefs.h <<EOF
  20834. #define $ac_tr_func 1
  20835. EOF
  20836.  cat >> confdefs.h <<\EOF
  20837. #define HAVE_DLERROR 1
  20838. EOF
  20839.  
  20840. else
  20841.   echo "$ac_t""no" 1>&6
  20842. echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
  20843. echo "configure:20844: checking for dlerror in -ldl" >&5
  20844. ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
  20845. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  20846.   echo $ac_n "(cached) $ac_c" 1>&6
  20847. else
  20848.   ac_save_LIBS="$LIBS"
  20849. LIBS="-ldl  $LIBS"
  20850. cat > conftest.$ac_ext <<EOF
  20851. #line 20852 "configure"
  20852. #include "confdefs.h"
  20853. /* Override any gcc2 internal prototype to avoid an error.  */
  20854. /* We use char because int might match the return type of a gcc2
  20855.     builtin and then its argument prototype would still apply.  */
  20856. char dlerror();
  20857.  
  20858. int main() {
  20859. dlerror()
  20860. ; return 0; }
  20861. EOF
  20862. if { (eval echo configure:20863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  20863.   rm -rf conftest*
  20864.   eval "ac_cv_lib_$ac_lib_var=yes"
  20865. else
  20866.   echo "configure: failed program was:" >&5
  20867.   cat conftest.$ac_ext >&5
  20868.   rm -rf conftest*
  20869.   eval "ac_cv_lib_$ac_lib_var=no"
  20870. fi
  20871. rm -f conftest*
  20872. LIBS="$ac_save_LIBS"
  20873.  
  20874. fi
  20875. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  20876.   echo "$ac_t""yes" 1>&6
  20877.   cat >> confdefs.h <<\EOF
  20878. #define HAVE_DLERROR 1
  20879. EOF
  20880.  
  20881. else
  20882.   echo "$ac_t""no" 1>&6
  20883. fi
  20884.  
  20885. fi
  20886. done
  20887.  
  20888.         fi
  20889.         fi
  20890.  
  20891.         if test "$HAVE_DL_FUNCS" = 0; then
  20892.             if test "$HAVE_SHL_FUNCS" = 0; then
  20893.               if test "$USE_UNIX" = 1; then
  20894.                   echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
  20895.                   wxUSE_DYNAMIC_LOADER=no
  20896.                   wxUSE_DYNLIB_CLASS=no
  20897.               else
  20898.                   echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
  20899.               fi
  20900.             fi
  20901.         fi
  20902.     fi
  20903. fi
  20904.  
  20905. if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
  20906.     cat >> confdefs.h <<\EOF
  20907. #define wxUSE_DYNAMIC_LOADER 1
  20908. EOF
  20909.  
  20910. elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
  20911.     cat >> confdefs.h <<\EOF
  20912. #define wxUSE_DYNLIB_CLASS 1
  20913. EOF
  20914.  
  20915. fi
  20916.  
  20917.  
  20918. if test "$wxUSE_FONTMAP" = "yes" ; then
  20919.   cat >> confdefs.h <<\EOF
  20920. #define wxUSE_FONTMAP 1
  20921. EOF
  20922.  
  20923. fi
  20924.  
  20925. if test "$wxUSE_UNICODE" = "yes" ; then
  20926.   cat >> confdefs.h <<\EOF
  20927. #define wxUSE_UNICODE 1
  20928. EOF
  20929.  
  20930.  
  20931.   if test "$wxUSE_MSW" != 1; then
  20932.       wxUSE_UNICODE_MSLU=no
  20933.   fi
  20934.  
  20935.   if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
  20936.         echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
  20937. echo "configure:20938: checking for main in -lunicows" >&5
  20938. ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
  20939. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  20940.   echo $ac_n "(cached) $ac_c" 1>&6
  20941. else
  20942.   ac_save_LIBS="$LIBS"
  20943. LIBS="-lunicows  $LIBS"
  20944. cat > conftest.$ac_ext <<EOF
  20945. #line 20946 "configure"
  20946. #include "confdefs.h"
  20947.  
  20948. int main() {
  20949. main()
  20950. ; return 0; }
  20951. EOF
  20952. if { (eval echo configure:20953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  20953.   rm -rf conftest*
  20954.   eval "ac_cv_lib_$ac_lib_var=yes"
  20955. else
  20956.   echo "configure: failed program was:" >&5
  20957.   cat conftest.$ac_ext >&5
  20958.   rm -rf conftest*
  20959.   eval "ac_cv_lib_$ac_lib_var=no"
  20960. fi
  20961. rm -f conftest*
  20962. LIBS="$ac_save_LIBS"
  20963.  
  20964. fi
  20965. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  20966.   echo "$ac_t""yes" 1>&6
  20967.   
  20968.                 cat >> confdefs.h <<\EOF
  20969. #define wxUSE_UNICODE_MSLU 1
  20970. EOF
  20971.  
  20972.             
  20973. else
  20974.   echo "$ac_t""no" 1>&6
  20975.  
  20976.                 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
  20977.                              Applications will only run on Windows NT/2000/XP!" 1>&2
  20978.                 wxUSE_UNICODE_MSLU=no
  20979.             
  20980. fi
  20981.  
  20982.     fi
  20983. fi
  20984.  
  20985. if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
  20986.   cat >> confdefs.h <<\EOF
  20987. #define wxUSE_EXPERIMENTAL_PRINTF 1
  20988. EOF
  20989.  
  20990. fi
  20991.  
  20992.  
  20993.  
  20994. IODBC_C_SRC=""
  20995. if test "$wxUSE_ODBC" = "yes" ; then
  20996.     cat >> confdefs.h <<\EOF
  20997. #define wxUSE_ODBC 1
  20998. EOF
  20999.  
  21000.     WXODBCFLAG="-D_IODBC_"
  21001.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
  21002. fi
  21003.  
  21004.  
  21005. if test "$wxUSE_POSTSCRIPT" = "yes" ; then
  21006.   cat >> confdefs.h <<\EOF
  21007. #define wxUSE_POSTSCRIPT 1
  21008. EOF
  21009.  
  21010. fi
  21011.  
  21012. cat >> confdefs.h <<\EOF
  21013. #define wxUSE_AFM_FOR_POSTSCRIPT 1
  21014. EOF
  21015.  
  21016.  
  21017. cat >> confdefs.h <<\EOF
  21018. #define wxUSE_NORMALIZED_PS_FONTS 1
  21019. EOF
  21020.  
  21021.  
  21022.  
  21023. if test "$wxUSE_CONSTRAINTS" = "yes"; then
  21024.     cat >> confdefs.h <<\EOF
  21025. #define wxUSE_CONSTRAINTS 1
  21026. EOF
  21027.  
  21028.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
  21029. fi
  21030.  
  21031. if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
  21032.  
  21033.  
  21034.    if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
  21035.        cat >> confdefs.h <<\EOF
  21036. #define wxUSE_MDI_ARCHITECTURE 1
  21037. EOF
  21038.  
  21039.        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
  21040.    fi
  21041. fi
  21042.  
  21043. if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
  21044.     cat >> confdefs.h <<\EOF
  21045. #define wxUSE_DOC_VIEW_ARCHITECTURE 1
  21046. EOF
  21047.  
  21048.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
  21049.     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
  21050.         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
  21051.     fi
  21052. fi
  21053.  
  21054. if test "$wxUSE_HELP" = "yes"; then
  21055.     cat >> confdefs.h <<\EOF
  21056. #define wxUSE_HELP 1
  21057. EOF
  21058.  
  21059.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
  21060.  
  21061.     if test "$wxUSE_MSW" = 1; then
  21062.       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
  21063.         cat >> confdefs.h <<\EOF
  21064. #define wxUSE_MS_HTML_HELP 1
  21065. EOF
  21066.  
  21067.       fi
  21068.     fi
  21069.  
  21070.     if test "$wxUSE_WXHTML_HELP" = "yes"; then
  21071.       if test "$wxUSE_HTML" = "yes"; then
  21072.         cat >> confdefs.h <<\EOF
  21073. #define wxUSE_WXHTML_HELP 1
  21074. EOF
  21075.  
  21076.       else
  21077.         echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
  21078.         wxUSE_WXHTML_HELP=no
  21079.       fi
  21080.     fi
  21081. fi
  21082.  
  21083. if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
  21084.     if test "$wxUSE_CONSTRAINTS" != "yes"; then
  21085.         echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
  21086.     else
  21087.         cat >> confdefs.h <<\EOF
  21088. #define wxUSE_PRINTING_ARCHITECTURE 1
  21089. EOF
  21090.  
  21091.     fi
  21092.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
  21093. fi
  21094.  
  21095. if test "$wxUSE_PROLOGIO" = "yes" ; then
  21096.     cat >> confdefs.h <<\EOF
  21097. #define wxUSE_PROLOGIO 1
  21098. EOF
  21099.  
  21100.     ALL_OBJECTS="$ALL_OBJECTS parser.o"
  21101. fi
  21102.  
  21103. if test "$wxUSE_RESOURCES" = "yes" ; then
  21104.     if test "$wxUSE_NANOX" = "yes"; then
  21105.         echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
  21106.     else
  21107.         cat >> confdefs.h <<\EOF
  21108. #define wxUSE_RESOURCES 1
  21109. EOF
  21110.  
  21111.         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
  21112.     fi
  21113.     if test "$wxUSE_PROLOGIO" != "yes" ; then
  21114.         ALL_OBJECTS="$ALL_OBJECTS parser.o"
  21115.     fi
  21116. fi
  21117.  
  21118. if test "$wxUSE_X_RESOURCES" = "yes"; then
  21119.     cat >> confdefs.h <<\EOF
  21120. #define wxUSE_X_RESOURCES 1
  21121. EOF
  21122.  
  21123. fi
  21124.  
  21125.  
  21126. if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
  21127.                           -o "$wxUSE_CLIPBOARD"     = "yes" \
  21128.                           -o "$wxUSE_OLE"     = "yes" \
  21129.                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
  21130.     for ac_hdr in ole2.h
  21131. do
  21132. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  21133. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  21134. echo "configure:21135: checking for $ac_hdr" >&5
  21135. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  21136.   echo $ac_n "(cached) $ac_c" 1>&6
  21137. else
  21138.   cat > conftest.$ac_ext <<EOF
  21139. #include <sys/types.h>
  21140. #line 21141 "configure"
  21141. #include "confdefs.h"
  21142. #include <$ac_hdr>
  21143. EOF
  21144. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  21145. { (eval echo configure:21146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  21146. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  21147. if test -z "$ac_err"; then
  21148.   rm -rf conftest*
  21149.   eval "ac_cv_header_$ac_safe=yes"
  21150. else
  21151.   echo "$ac_err" >&5
  21152.   echo "configure: failed program was:" >&5
  21153.   cat conftest.$ac_ext >&5
  21154.   rm -rf conftest*
  21155.   eval "ac_cv_header_$ac_safe=no"
  21156. fi
  21157. rm -f conftest*
  21158. fi
  21159. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  21160.   echo "$ac_t""yes" 1>&6
  21161.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  21162.   cat >> confdefs.h <<EOF
  21163. #define $ac_tr_hdr 1
  21164. EOF
  21165.  
  21166. else
  21167.   echo "$ac_t""no" 1>&6
  21168. fi
  21169. done
  21170.  
  21171.  
  21172.     if test "$ac_cv_header_ole2_h" = "yes" ; then
  21173.         if test "$GCC" = yes ; then
  21174.             
  21175.             ac_ext=C
  21176. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  21177. ac_cpp='$CXXCPP $CPPFLAGS'
  21178. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  21179. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  21180. cross_compiling=$ac_cv_prog_cxx_cross
  21181.  
  21182.  
  21183.             echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
  21184. echo "configure:21185: checking if g++ requires -fvtable-thunks" >&5
  21185.             cat > conftest.$ac_ext <<EOF
  21186. #line 21187 "configure"
  21187. #include "confdefs.h"
  21188. #include <windows.h>
  21189.                             #include <ole2.h>
  21190. int main() {
  21191.  
  21192. ; return 0; }
  21193. EOF
  21194. if { (eval echo configure:21195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  21195.   rm -rf conftest*
  21196.   echo "$ac_t""no" 1>&6
  21197. else
  21198.   echo "configure: failed program was:" >&5
  21199.   cat conftest.$ac_ext >&5
  21200.   rm -rf conftest*
  21201.   echo "$ac_t""yes" 1>&6
  21202.                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
  21203. fi
  21204. rm -f conftest*
  21205.             ac_ext=c
  21206. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  21207. ac_cpp='$CPP $CPPFLAGS'
  21208. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  21209. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  21210. cross_compiling=$ac_cv_prog_cc_cross
  21211.  
  21212.             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
  21213.             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
  21214.             cat >> confdefs.h <<\EOF
  21215. #define wxUSE_OLE 1
  21216. EOF
  21217.  
  21218.  
  21219.         fi
  21220.  
  21221.                 cat >> confdefs.h <<\EOF
  21222. #define wxUSE_DATAOBJ 1
  21223. EOF
  21224.  
  21225.     else
  21226.         echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
  21227.  
  21228.         wxUSE_CLIPBOARD=no
  21229.         wxUSE_DRAG_AND_DROP=no
  21230.         wxUSE_DATAOBJ=no
  21231.         wxUSE_OLE=no
  21232.     fi
  21233.  
  21234.     if test "$wxUSE_METAFILE" = "yes"; then
  21235.         cat >> confdefs.h <<\EOF
  21236. #define wxUSE_METAFILE 1
  21237. EOF
  21238.  
  21239.  
  21240.                 cat >> confdefs.h <<\EOF
  21241. #define wxUSE_ENH_METAFILE 1
  21242. EOF
  21243.  
  21244.     fi
  21245. fi
  21246.  
  21247. if test "$wxUSE_WINE" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
  21248.                           -o "$wxUSE_CLIPBOARD"     = "yes" \
  21249.                           -o "$wxUSE_OLE"     = "yes" \
  21250.                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
  21251.     for ac_hdr in ole2.h
  21252. do
  21253. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  21254. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  21255. echo "configure:21256: checking for $ac_hdr" >&5
  21256. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  21257.   echo $ac_n "(cached) $ac_c" 1>&6
  21258. else
  21259.   cat > conftest.$ac_ext <<EOF
  21260. #include <sys/types.h>
  21261. #line 21262 "configure"
  21262. #include "confdefs.h"
  21263. #include <$ac_hdr>
  21264. EOF
  21265. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  21266. { (eval echo configure:21267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  21267. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  21268. if test -z "$ac_err"; then
  21269.   rm -rf conftest*
  21270.   eval "ac_cv_header_$ac_safe=yes"
  21271. else
  21272.   echo "$ac_err" >&5
  21273.   echo "configure: failed program was:" >&5
  21274.   cat conftest.$ac_ext >&5
  21275.   rm -rf conftest*
  21276.   eval "ac_cv_header_$ac_safe=no"
  21277. fi
  21278. rm -f conftest*
  21279. fi
  21280. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  21281.   echo "$ac_t""yes" 1>&6
  21282.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  21283.   cat >> confdefs.h <<EOF
  21284. #define $ac_tr_hdr 1
  21285. EOF
  21286.  
  21287. else
  21288.   echo "$ac_t""no" 1>&6
  21289. fi
  21290. done
  21291.  
  21292.  
  21293.     if test "$ac_cv_header_ole2_h" = "yes" ; then
  21294.         if test "$GCC" = yes ; then
  21295.             
  21296.             ac_ext=C
  21297. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  21298. ac_cpp='$CXXCPP $CPPFLAGS'
  21299. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  21300. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  21301. cross_compiling=$ac_cv_prog_cxx_cross
  21302.  
  21303.  
  21304.             echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
  21305. echo "configure:21306: checking if g++ requires -fvtable-thunks" >&5
  21306.             cat > conftest.$ac_ext <<EOF
  21307. #line 21308 "configure"
  21308. #include "confdefs.h"
  21309. #include <windows.h>
  21310.                             #include <ole2.h>
  21311. int main() {
  21312.  
  21313. ; return 0; }
  21314. EOF
  21315. if { (eval echo configure:21316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  21316.   rm -rf conftest*
  21317.   echo "$ac_t""no" 1>&6
  21318. else
  21319.   echo "configure: failed program was:" >&5
  21320.   cat conftest.$ac_ext >&5
  21321.   rm -rf conftest*
  21322.   echo "$ac_t""yes" 1>&6
  21323.                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
  21324. fi
  21325. rm -f conftest*
  21326.             ac_ext=c
  21327. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  21328. ac_cpp='$CPP $CPPFLAGS'
  21329. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  21330. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  21331. cross_compiling=$ac_cv_prog_cc_cross
  21332.  
  21333.             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
  21334.             LIBS=" -lwine_uuid$LIBS"
  21335.             cat >> confdefs.h <<\EOF
  21336. #define wxUSE_OLE 1
  21337. EOF
  21338.  
  21339.  
  21340.         fi
  21341.  
  21342.                 cat >> confdefs.h <<\EOF
  21343. #define wxUSE_DATAOBJ 1
  21344. EOF
  21345.  
  21346.     else
  21347.         echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
  21348.  
  21349.         wxUSE_CLIPBOARD=no
  21350.         wxUSE_DRAG_AND_DROP=no
  21351.         wxUSE_DATAOBJ=no
  21352.         wxUSE_OLE=no
  21353.     fi
  21354.  
  21355.     if test "$wxUSE_METAFILE" = "yes"; then
  21356.         cat >> confdefs.h <<\EOF
  21357. #define wxUSE_METAFILE 1
  21358. EOF
  21359.  
  21360.  
  21361.                 cat >> confdefs.h <<\EOF
  21362. #define wxUSE_ENH_METAFILE 1
  21363. EOF
  21364.  
  21365.     fi
  21366. fi
  21367.  
  21368. if test "$wxUSE_IPC" = "yes"; then
  21369.     if test "$wxUSE_SOCKETS" != "yes"; then
  21370.         echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
  21371.     fi
  21372.  
  21373.     cat >> confdefs.h <<\EOF
  21374. #define wxUSE_IPC 1
  21375. EOF
  21376.  
  21377. fi
  21378.  
  21379. if test "$wxUSE_CLIPBOARD" = "yes"; then
  21380.     if test "$wxUSE_MGL" = 1; then
  21381.         echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
  21382.         wxUSE_CLIPBOARD=no
  21383.     fi
  21384.  
  21385.     if test "$wxUSE_CLIPBOARD" = "yes"; then
  21386.         cat >> confdefs.h <<\EOF
  21387. #define wxUSE_CLIPBOARD 1
  21388. EOF
  21389.  
  21390.  
  21391.                 cat >> confdefs.h <<\EOF
  21392. #define wxUSE_DATAOBJ 1
  21393. EOF
  21394.  
  21395.     fi
  21396. fi
  21397.  
  21398. if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
  21399.     if test "$wxUSE_GTK" = 1; then
  21400.         if test "$WXGTK12" != 1; then
  21401.             echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
  21402.             wxUSE_DRAG_AND_DROP=no
  21403.         fi
  21404.     fi
  21405.  
  21406.     if test "$wxUSE_MOTIF" = 1; then
  21407.         echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
  21408.         wxUSE_DRAG_AND_DROP=no
  21409.     fi
  21410.  
  21411.     if test "$wxUSE_X11" = 1; then
  21412.         echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
  21413.         wxUSE_DRAG_AND_DROP=no
  21414.     fi
  21415.  
  21416.     if test "$wxUSE_MGL" = 1; then
  21417.         echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
  21418.         wxUSE_DRAG_AND_DROP=no
  21419.     fi
  21420.  
  21421.     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
  21422.         cat >> confdefs.h <<\EOF
  21423. #define wxUSE_DRAG_AND_DROP 1
  21424. EOF
  21425.  
  21426.         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
  21427.     fi
  21428.  
  21429. fi
  21430.  
  21431. if test "$wxUSE_SPLINES" = "yes" ; then
  21432.   cat >> confdefs.h <<\EOF
  21433. #define wxUSE_SPLINES 1
  21434. EOF
  21435.  
  21436. fi
  21437.  
  21438.  
  21439. USES_CONTROLS=0
  21440. if test "$wxUSE_CONTROLS" = "yes"; then
  21441.   USES_CONTROLS=1
  21442. fi
  21443.  
  21444. if test "$wxUSE_ACCEL" = "yes"; then
  21445.   cat >> confdefs.h <<\EOF
  21446. #define wxUSE_ACCEL 1
  21447. EOF
  21448.  
  21449.   USES_CONTROLS=1
  21450. fi
  21451.  
  21452. if test "$wxUSE_BUTTON" = "yes"; then
  21453.   cat >> confdefs.h <<\EOF
  21454. #define wxUSE_BUTTON 1
  21455. EOF
  21456.  
  21457.   USES_CONTROLS=1
  21458. fi
  21459.  
  21460. if test "$wxUSE_BMPBUTTON" = "yes"; then
  21461.   cat >> confdefs.h <<\EOF
  21462. #define wxUSE_BMPBUTTON 1
  21463. EOF
  21464.  
  21465.   USES_CONTROLS=1
  21466. fi
  21467.  
  21468. if test "$wxUSE_CALCTRL" = "yes"; then
  21469.   cat >> confdefs.h <<\EOF
  21470. #define wxUSE_CALENDARCTRL 1
  21471. EOF
  21472.  
  21473.   USES_CONTROLS=1
  21474.   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
  21475. fi
  21476.  
  21477. if test "$wxUSE_CARET" = "yes"; then
  21478.   cat >> confdefs.h <<\EOF
  21479. #define wxUSE_CARET 1
  21480. EOF
  21481.  
  21482.   USES_CONTROLS=1
  21483.   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
  21484. fi
  21485.  
  21486. if test "$wxUSE_COMBOBOX" = "yes"; then
  21487.   cat >> confdefs.h <<\EOF
  21488. #define wxUSE_COMBOBOX 1
  21489. EOF
  21490.  
  21491.   USES_CONTROLS=1
  21492. fi
  21493.  
  21494. if test "$wxUSE_CHOICE" = "yes"; then
  21495.   cat >> confdefs.h <<\EOF
  21496. #define wxUSE_CHOICE 1
  21497. EOF
  21498.  
  21499.   USES_CONTROLS=1
  21500. fi
  21501.  
  21502. if test "$wxUSE_CHECKBOX" = "yes"; then
  21503.   cat >> confdefs.h <<\EOF
  21504. #define wxUSE_CHECKBOX 1
  21505. EOF
  21506.  
  21507.   USES_CONTROLS=1
  21508. fi
  21509.  
  21510. if test "$wxUSE_CHECKLST" = "yes"; then
  21511.   cat >> confdefs.h <<\EOF
  21512. #define wxUSE_CHECKLISTBOX 1
  21513. EOF
  21514.  
  21515.   USES_CONTROLS=1
  21516.   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
  21517. fi
  21518.  
  21519. if test "$wxUSE_GAUGE" = "yes"; then
  21520.   cat >> confdefs.h <<\EOF
  21521. #define wxUSE_GAUGE 1
  21522. EOF
  21523.  
  21524.   USES_CONTROLS=1
  21525. fi
  21526.  
  21527. if test "$wxUSE_NEW_GRID" = "yes"; then
  21528.   wxUSE_GRID="yes"
  21529.   cat >> confdefs.h <<\EOF
  21530. #define wxUSE_NEW_GRID 1
  21531. EOF
  21532.  
  21533.   USES_CONTROLS=1
  21534.   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
  21535. fi
  21536.  
  21537. if test "$wxUSE_GRID" = "yes"; then
  21538.   cat >> confdefs.h <<\EOF
  21539. #define wxUSE_GRID 1
  21540. EOF
  21541.  
  21542.   USES_CONTROLS=1
  21543.   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
  21544. fi
  21545.  
  21546. if test "$wxUSE_IMAGLIST" = "yes"; then
  21547.     cat >> confdefs.h <<\EOF
  21548. #define wxUSE_IMAGLIST 1
  21549. EOF
  21550.  
  21551. fi
  21552.  
  21553. if test "$wxUSE_LISTBOX" = "yes"; then
  21554.     cat >> confdefs.h <<\EOF
  21555. #define wxUSE_LISTBOX 1
  21556. EOF
  21557.  
  21558.     USES_CONTROLS=1
  21559. fi
  21560.  
  21561. if test "$wxUSE_LISTCTRL" = "yes"; then
  21562.     if test "$wxUSE_IMAGLIST" = "yes"; then
  21563.         cat >> confdefs.h <<\EOF
  21564. #define wxUSE_LISTCTRL 1
  21565. EOF
  21566.  
  21567.         USES_CONTROLS=1
  21568.         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
  21569.     else
  21570.         echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
  21571.     fi
  21572. fi
  21573.  
  21574. if test "$wxUSE_NOTEBOOK" = "yes"; then
  21575.     cat >> confdefs.h <<\EOF
  21576. #define wxUSE_NOTEBOOK 1
  21577. EOF
  21578.  
  21579.     USES_CONTROLS=1
  21580.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
  21581. fi
  21582.  
  21583. if test "$wxUSE_PROPSHEET" = "yes"; then
  21584.     cat >> confdefs.h <<\EOF
  21585. #define wxUSE_PROPSHEET 1
  21586. EOF
  21587.  
  21588.     USES_CONTROLS=1
  21589.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
  21590. fi
  21591.  
  21592. if test "$wxUSE_RADIOBOX" = "yes"; then
  21593.     cat >> confdefs.h <<\EOF
  21594. #define wxUSE_RADIOBOX 1
  21595. EOF
  21596.  
  21597.     USES_CONTROLS=1
  21598. fi
  21599.  
  21600. if test "$wxUSE_RADIOBTN" = "yes"; then
  21601.     cat >> confdefs.h <<\EOF
  21602. #define wxUSE_RADIOBTN 1
  21603. EOF
  21604.  
  21605.     USES_CONTROLS=1
  21606. fi
  21607.  
  21608. if test "$wxUSE_SASH" = "yes"; then
  21609.     cat >> confdefs.h <<\EOF
  21610. #define wxUSE_SASH 1
  21611. EOF
  21612.  
  21613.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
  21614. fi
  21615.  
  21616. if test "$wxUSE_SCROLLBAR" = "yes"; then
  21617.     cat >> confdefs.h <<\EOF
  21618. #define wxUSE_SCROLLBAR 1
  21619. EOF
  21620.  
  21621.     USES_CONTROLS=1
  21622.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
  21623. fi
  21624.  
  21625. if test "$wxUSE_SLIDER" = "yes"; then
  21626.     cat >> confdefs.h <<\EOF
  21627. #define wxUSE_SLIDER 1
  21628. EOF
  21629.  
  21630.     USES_CONTROLS=1
  21631. fi
  21632.  
  21633. if test "$wxUSE_SPINBTN" = "yes"; then
  21634.     cat >> confdefs.h <<\EOF
  21635. #define wxUSE_SPINBTN 1
  21636. EOF
  21637.  
  21638.     USES_CONTROLS=1
  21639. fi
  21640.  
  21641. if test "$wxUSE_SPINCTRL" = "yes"; then
  21642.     cat >> confdefs.h <<\EOF
  21643. #define wxUSE_SPINCTRL 1
  21644. EOF
  21645.  
  21646.     USES_CONTROLS=1
  21647. fi
  21648.  
  21649. if test "$wxUSE_SPLITTER" = "yes"; then
  21650.     cat >> confdefs.h <<\EOF
  21651. #define wxUSE_SPLITTER 1
  21652. EOF
  21653.  
  21654.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
  21655. fi
  21656.  
  21657. if test "$wxUSE_STATBMP" = "yes"; then
  21658.     cat >> confdefs.h <<\EOF
  21659. #define wxUSE_STATBMP 1
  21660. EOF
  21661.  
  21662.     USES_CONTROLS=1
  21663. fi
  21664.  
  21665. if test "$wxUSE_STATBOX" = "yes"; then
  21666.     cat >> confdefs.h <<\EOF
  21667. #define wxUSE_STATBOX 1
  21668. EOF
  21669.  
  21670.     USES_CONTROLS=1
  21671. fi
  21672.  
  21673. if test "$wxUSE_STATTEXT" = "yes"; then
  21674.     cat >> confdefs.h <<\EOF
  21675. #define wxUSE_STATTEXT 1
  21676. EOF
  21677.  
  21678.     USES_CONTROLS=1
  21679. fi
  21680.  
  21681. if test "$wxUSE_STATLINE" = "yes"; then
  21682.     if test "$wxUSE_WINE" = 1 ; then
  21683.         echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
  21684.     else
  21685.         cat >> confdefs.h <<\EOF
  21686. #define wxUSE_STATLINE 1
  21687. EOF
  21688.  
  21689.         USES_CONTROLS=1
  21690.     fi
  21691. fi
  21692.  
  21693. if test "$wxUSE_STATUSBAR" = "yes"; then
  21694.     cat >> confdefs.h <<\EOF
  21695. #define wxUSE_STATUSBAR 1
  21696. EOF
  21697.  
  21698.     USES_CONTROLS=1
  21699.  
  21700.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
  21701. fi
  21702.  
  21703. if test "$wxUSE_TABDIALOG" = "yes"; then
  21704.     cat >> confdefs.h <<\EOF
  21705. #define wxUSE_TAB_DIALOG 1
  21706. EOF
  21707.  
  21708.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
  21709. fi
  21710.  
  21711. if test "$wxUSE_TEXTCTRL" = "yes"; then
  21712.     cat >> confdefs.h <<\EOF
  21713. #define wxUSE_TEXTCTRL 1
  21714. EOF
  21715.  
  21716.     USES_CONTROLS=1
  21717.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
  21718. fi
  21719.  
  21720. if test "$wxUSE_TOGGLEBTN" = "yes"; then
  21721.     if test "$wxUSE_MAC" = 1; then
  21722.         echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
  21723.         wxUSE_TOGGLEBTN=no
  21724.     fi
  21725.     if test "$wxUSE_UNIVERSAL" = "yes"; then
  21726.         echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
  21727.         wxUSE_TOGGLEBTN=no
  21728.     fi
  21729.  
  21730.     if test "$wxUSE_TOGGLEBTN" = "yes"; then
  21731.         cat >> confdefs.h <<\EOF
  21732. #define wxUSE_TOGGLEBTN 1
  21733. EOF
  21734.  
  21735.         USES_CONTROLS=1
  21736.     fi
  21737. fi
  21738.  
  21739. if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
  21740.     cat >> confdefs.h <<\EOF
  21741. #define wxUSE_TOOLBAR_SIMPLE 1
  21742. EOF
  21743.  
  21744.     wxUSE_TOOLBAR="yes"
  21745.     USES_CONTROLS=1
  21746. fi
  21747.  
  21748. if test "$wxUSE_TOOLBAR" = "yes"; then
  21749.     cat >> confdefs.h <<\EOF
  21750. #define wxUSE_TOOLBAR 1
  21751. EOF
  21752.  
  21753.     USES_CONTROLS=1
  21754.  
  21755.         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
  21756.         wxUSE_TOOLBAR_NATIVE="yes"
  21757.     fi
  21758.  
  21759.     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
  21760.         cat >> confdefs.h <<\EOF
  21761. #define wxUSE_TOOLBAR_NATIVE 1
  21762. EOF
  21763.  
  21764.         USES_CONTROLS=1
  21765.     fi
  21766.  
  21767.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
  21768. fi
  21769.  
  21770. if test "$wxUSE_TOOLTIPS" = "yes"; then
  21771.     if test "$wxUSE_MOTIF" = 1; then
  21772.         echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
  21773.     else
  21774.         if test "$wxUSE_WINE" = 1; then
  21775.             echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
  21776.         else
  21777.             if test "$wxUSE_UNIVERSAL" = "yes"; then
  21778.                 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
  21779.             else
  21780.                 cat >> confdefs.h <<\EOF
  21781. #define wxUSE_TOOLTIPS 1
  21782. EOF
  21783.  
  21784.             fi
  21785.         fi
  21786.     fi
  21787. fi
  21788.  
  21789. if test "$wxUSE_TREECTRL" = "yes"; then
  21790.     if test "$wxUSE_IMAGLIST" = "yes"; then
  21791.         cat >> confdefs.h <<\EOF
  21792. #define wxUSE_TREECTRL 1
  21793. EOF
  21794.  
  21795.         USES_CONTROLS=1
  21796.         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
  21797.     else
  21798.         echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
  21799.     fi
  21800. fi
  21801.  
  21802. if test "$wxUSE_POPUPWIN" = "yes"; then
  21803.     if test "$wxUSE_MAC" = 1; then
  21804.         echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
  21805.     else
  21806.         if test "$wxUSE_MOTIF" = 1; then
  21807.             echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
  21808.         else
  21809.             if test "$wxUSE_PM" = 1; then
  21810.                 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
  21811.             else
  21812.                 cat >> confdefs.h <<\EOF
  21813. #define wxUSE_POPUPWIN 1
  21814. EOF
  21815.  
  21816.  
  21817.                 USES_CONTROLS=1
  21818.             fi
  21819.         fi
  21820.     fi
  21821. fi
  21822.  
  21823. if test "$wxUSE_TIPWINDOW" = "yes"; then
  21824.     if test "$wxUSE_PM" = 1; then
  21825.         echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
  21826.     else
  21827.         cat >> confdefs.h <<\EOF
  21828. #define wxUSE_TIPWINDOW 1
  21829. EOF
  21830.  
  21831.     fi
  21832. fi
  21833.  
  21834. if test "$USES_CONTROLS" = 1; then
  21835.     cat >> confdefs.h <<\EOF
  21836. #define wxUSE_CONTROLS 1
  21837. EOF
  21838.  
  21839. fi
  21840.  
  21841.  
  21842. if test "$wxUSE_TREELAYOUT" = "yes"; then
  21843.     cat >> confdefs.h <<\EOF
  21844. #define wxUSE_TREELAYOUT 1
  21845. EOF
  21846.  
  21847.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
  21848. fi
  21849.  
  21850. if test "$wxUSE_DRAGIMAGE" = "yes"; then
  21851.     cat >> confdefs.h <<\EOF
  21852. #define wxUSE_DRAGIMAGE 1
  21853. EOF
  21854.  
  21855.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
  21856. fi
  21857.  
  21858. if test "$wxUSE_MENUS" = "yes"; then
  21859.     cat >> confdefs.h <<\EOF
  21860. #define wxUSE_MENUS 1
  21861. EOF
  21862.  
  21863.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
  21864. fi
  21865.  
  21866. if test "$wxUSE_METAFILE" = "yes"; then
  21867.     cat >> confdefs.h <<\EOF
  21868. #define wxUSE_METAFILE 1
  21869. EOF
  21870.  
  21871. fi
  21872.  
  21873. if test "$wxUSE_MIMETYPE" = "yes"; then
  21874.     cat >> confdefs.h <<\EOF
  21875. #define wxUSE_MIMETYPE 1
  21876. EOF
  21877.  
  21878. fi
  21879.  
  21880. if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
  21881.     cat >> confdefs.h <<\EOF
  21882. #define wxUSE_SYSTEM_OPTIONS 1
  21883. EOF
  21884.  
  21885. if test "$TOOLKIT" = "MSW"; then
  21886.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
  21887. fi
  21888.  
  21889. fi
  21890.  
  21891. if test "$wxUSE_PROTOCOL" = "yes"; then
  21892.     if test "$wxUSE_SOCKETS" != "yes"; then
  21893.         echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
  21894.         wxUSE_PROTOCOL=no
  21895.     fi
  21896.  
  21897.     if test "$wxUSE_PROTOCOL" = "yes"; then
  21898.         cat >> confdefs.h <<\EOF
  21899. #define wxUSE_PROTOCOL 1
  21900. EOF
  21901.  
  21902.  
  21903.         if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
  21904.             cat >> confdefs.h <<\EOF
  21905. #define wxUSE_PROTOCOL_HTTP 1
  21906. EOF
  21907.  
  21908.         fi
  21909.         if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
  21910.             cat >> confdefs.h <<\EOF
  21911. #define wxUSE_PROTOCOL_FTP 1
  21912. EOF
  21913.  
  21914.         fi
  21915.         if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
  21916.             cat >> confdefs.h <<\EOF
  21917. #define wxUSE_PROTOCOL_FILE 1
  21918. EOF
  21919.  
  21920.         fi
  21921.     fi
  21922. fi
  21923.  
  21924. if test "$wxUSE_URL" = "yes"; then
  21925.     if test "$wxUSE_PROTOCOL" != "yes"; then
  21926.         echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
  21927.         wxUSE_URL=no
  21928.     fi
  21929.     if test "$wxUSE_URL" = "yes"; then
  21930.         cat >> confdefs.h <<\EOF
  21931. #define wxUSE_URL 1
  21932. EOF
  21933.  
  21934.     fi
  21935. fi
  21936.  
  21937. if test "$wxUSE_MINIFRAME" = "yes"; then
  21938.     cat >> confdefs.h <<\EOF
  21939. #define wxUSE_MINIFRAME 1
  21940. EOF
  21941.  
  21942.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
  21943. fi
  21944.  
  21945. if test "$wxUSE_HTML" = "yes"; then
  21946.     cat >> confdefs.h <<\EOF
  21947. #define wxUSE_HTML 1
  21948. EOF
  21949.  
  21950.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
  21951. fi
  21952.  
  21953. if test "$wxUSE_VALIDATORS" = "yes"; then
  21954.     cat >> confdefs.h <<\EOF
  21955. #define wxUSE_VALIDATORS 1
  21956. EOF
  21957.  
  21958.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
  21959. fi
  21960.  
  21961. if test "$wxUSE_PALETTE" = "yes" ; then
  21962.   cat >> confdefs.h <<\EOF
  21963. #define wxUSE_PALETTE 1
  21964. EOF
  21965.  
  21966. fi
  21967.  
  21968. if test "$wxUSE_IMAGE" = "yes" ; then
  21969.   cat >> confdefs.h <<\EOF
  21970. #define wxUSE_IMAGE 1
  21971. EOF
  21972.  
  21973. fi
  21974.  
  21975. if test "$wxUSE_GIF" = "yes" ; then
  21976.   cat >> confdefs.h <<\EOF
  21977. #define wxUSE_GIF 1
  21978. EOF
  21979.  
  21980. fi
  21981.  
  21982. if test "$wxUSE_PCX" = "yes" ; then
  21983.   cat >> confdefs.h <<\EOF
  21984. #define wxUSE_PCX 1
  21985. EOF
  21986.  
  21987. fi
  21988.  
  21989. if test "$wxUSE_IFF" = "yes" ; then
  21990.   cat >> confdefs.h <<\EOF
  21991. #define wxUSE_IFF 1
  21992. EOF
  21993.  
  21994. fi
  21995.  
  21996. if test "$wxUSE_PNM" = "yes" ; then
  21997.   cat >> confdefs.h <<\EOF
  21998. #define wxUSE_PNM 1
  21999. EOF
  22000.  
  22001. fi
  22002.  
  22003. if test "$wxUSE_XPM" = "yes" ; then
  22004.   cat >> confdefs.h <<\EOF
  22005. #define wxUSE_XPM 1
  22006. EOF
  22007.  
  22008. fi
  22009.  
  22010. if test "$wxUSE_ICO_CUR" = "yes" ; then
  22011.   cat >> confdefs.h <<\EOF
  22012. #define wxUSE_ICO_CUR 1
  22013. EOF
  22014.  
  22015. fi
  22016.  
  22017. if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
  22018.     LIBS=" -lunicows $LIBS"
  22019. fi
  22020.  
  22021.  
  22022. if test "$wxUSE_CHOICEDLG" = "yes"; then
  22023.     cat >> confdefs.h <<\EOF
  22024. #define wxUSE_CHOICEDLG 1
  22025. EOF
  22026.  
  22027. fi
  22028.  
  22029. if test "$wxUSE_COLOURDLG" = "yes"; then
  22030.     cat >> confdefs.h <<\EOF
  22031. #define wxUSE_COLOURDLG 1
  22032. EOF
  22033.  
  22034. fi
  22035.  
  22036. if test "$wxUSE_FILEDLG" = "yes"; then
  22037.     cat >> confdefs.h <<\EOF
  22038. #define wxUSE_FILEDLG 1
  22039. EOF
  22040.  
  22041. fi
  22042.  
  22043. if test "$wxUSE_FINDREPLDLG" = "yes"; then
  22044.     cat >> confdefs.h <<\EOF
  22045. #define wxUSE_FINDREPLDLG 1
  22046. EOF
  22047.  
  22048. fi
  22049.  
  22050. if test "$wxUSE_FONTDLG" = "yes"; then
  22051.     cat >> confdefs.h <<\EOF
  22052. #define wxUSE_FONTDLG 1
  22053. EOF
  22054.  
  22055. fi
  22056.  
  22057. if test "$wxUSE_DIRDLG" = "yes"; then
  22058.     if test "$wxUSE_TREECTRL" != "yes"; then
  22059.         echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
  22060.     else
  22061.         cat >> confdefs.h <<\EOF
  22062. #define wxUSE_DIRDLG 1
  22063. EOF
  22064.  
  22065.     fi
  22066. fi
  22067.  
  22068. if test "$wxUSE_MSGDLG" = "yes"; then
  22069.     cat >> confdefs.h <<\EOF
  22070. #define wxUSE_MSGDLG 1
  22071. EOF
  22072.  
  22073. fi
  22074.  
  22075. if test "$wxUSE_NUMBERDLG" = "yes"; then
  22076.     cat >> confdefs.h <<\EOF
  22077. #define wxUSE_NUMBERDLG 1
  22078. EOF
  22079.  
  22080. fi
  22081.  
  22082. if test "$wxUSE_PROGRESSDLG" = "yes"; then
  22083.     if test "$wxUSE_CONSTRAINTS" != "yes"; then
  22084.        echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
  22085.     else
  22086.         cat >> confdefs.h <<\EOF
  22087. #define wxUSE_PROGRESSDLG 1
  22088. EOF
  22089.  
  22090.     fi
  22091. fi
  22092.  
  22093. if test "$wxUSE_SPLASH" = "yes"; then
  22094.     cat >> confdefs.h <<\EOF
  22095. #define wxUSE_SPLASH 1
  22096. EOF
  22097.  
  22098. fi
  22099.  
  22100. if test "$wxUSE_STARTUP_TIPS" = "yes"; then
  22101.     if test "$wxUSE_CONSTRAINTS" != "yes"; then
  22102.        echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
  22103.     else
  22104.         cat >> confdefs.h <<\EOF
  22105. #define wxUSE_STARTUP_TIPS 1
  22106. EOF
  22107.  
  22108.     fi
  22109. fi
  22110.  
  22111. if test "$wxUSE_TEXTDLG" = "yes"; then
  22112.     cat >> confdefs.h <<\EOF
  22113. #define wxUSE_TEXTDLG 1
  22114. EOF
  22115.  
  22116. fi
  22117.  
  22118. if test "$wxUSE_WIZARDDLG" = "yes"; then
  22119.     cat >> confdefs.h <<\EOF
  22120. #define wxUSE_WIZARDDLG 1
  22121. EOF
  22122.  
  22123.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
  22124. fi
  22125.  
  22126.  
  22127. if test "$cross_compiling" = "yes"; then
  22128.         OSINFO="\"$host\""
  22129. else
  22130.         OSINFO=`uname -s -r -m`
  22131.     OSINFO="\"$OSINFO\""
  22132. fi
  22133.  
  22134. cat >> confdefs.h <<EOF
  22135. #define WXWIN_OS_DESCRIPTION $OSINFO
  22136. EOF
  22137.  
  22138.  
  22139.  
  22140. if test "x$prefix" != "xNONE"; then
  22141.     wxPREFIX=$prefix
  22142. else
  22143.     wxPREFIX=$ac_default_prefix
  22144. fi
  22145.  
  22146. cat >> confdefs.h <<EOF
  22147. #define wxINSTALL_PREFIX "$wxPREFIX"
  22148. EOF
  22149.  
  22150.  
  22151.  
  22152.  
  22153.  
  22154. if test "$wxUSE_MAC" = 1 ; then
  22155.     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
  22156. fi
  22157.  
  22158.  
  22159. LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
  22160.  
  22161. have_cos=0
  22162. have_floor=0
  22163. for ac_func in cos
  22164. do
  22165. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  22166. echo "configure:22167: checking for $ac_func" >&5
  22167. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  22168.   echo $ac_n "(cached) $ac_c" 1>&6
  22169. else
  22170.   cat > conftest.$ac_ext <<EOF
  22171. #line 22172 "configure"
  22172. #include "confdefs.h"
  22173. /* System header to define __stub macros and hopefully few prototypes,
  22174.     which can conflict with char $ac_func(); below.  */
  22175. #include <assert.h>
  22176. /* Override any gcc2 internal prototype to avoid an error.  */
  22177. /* We use char because int might match the return type of a gcc2
  22178.     builtin and then its argument prototype would still apply.  */
  22179. char $ac_func();
  22180.  
  22181. int main() {
  22182.  
  22183. /* The GNU C library defines this for functions which it implements
  22184.     to always fail with ENOSYS.  Some functions are actually named
  22185.     something starting with __ and the normal name is an alias.  */
  22186. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  22187. choke me
  22188. #else
  22189. $ac_func();
  22190. #endif
  22191.  
  22192. ; return 0; }
  22193. EOF
  22194. if { (eval echo configure:22195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  22195.   rm -rf conftest*
  22196.   eval "ac_cv_func_$ac_func=yes"
  22197. else
  22198.   echo "configure: failed program was:" >&5
  22199.   cat conftest.$ac_ext >&5
  22200.   rm -rf conftest*
  22201.   eval "ac_cv_func_$ac_func=no"
  22202. fi
  22203. rm -f conftest*
  22204. fi
  22205.  
  22206. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  22207.   echo "$ac_t""yes" 1>&6
  22208.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  22209.   cat >> confdefs.h <<EOF
  22210. #define $ac_tr_func 1
  22211. EOF
  22212.  have_cos=1
  22213. else
  22214.   echo "$ac_t""no" 1>&6
  22215. fi
  22216. done
  22217.  
  22218. for ac_func in floor
  22219. do
  22220. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  22221. echo "configure:22222: checking for $ac_func" >&5
  22222. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  22223.   echo $ac_n "(cached) $ac_c" 1>&6
  22224. else
  22225.   cat > conftest.$ac_ext <<EOF
  22226. #line 22227 "configure"
  22227. #include "confdefs.h"
  22228. /* System header to define __stub macros and hopefully few prototypes,
  22229.     which can conflict with char $ac_func(); below.  */
  22230. #include <assert.h>
  22231. /* Override any gcc2 internal prototype to avoid an error.  */
  22232. /* We use char because int might match the return type of a gcc2
  22233.     builtin and then its argument prototype would still apply.  */
  22234. char $ac_func();
  22235.  
  22236. int main() {
  22237.  
  22238. /* The GNU C library defines this for functions which it implements
  22239.     to always fail with ENOSYS.  Some functions are actually named
  22240.     something starting with __ and the normal name is an alias.  */
  22241. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  22242. choke me
  22243. #else
  22244. $ac_func();
  22245. #endif
  22246.  
  22247. ; return 0; }
  22248. EOF
  22249. if { (eval echo configure:22250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  22250.   rm -rf conftest*
  22251.   eval "ac_cv_func_$ac_func=yes"
  22252. else
  22253.   echo "configure: failed program was:" >&5
  22254.   cat conftest.$ac_ext >&5
  22255.   rm -rf conftest*
  22256.   eval "ac_cv_func_$ac_func=no"
  22257. fi
  22258. rm -f conftest*
  22259. fi
  22260.  
  22261. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  22262.   echo "$ac_t""yes" 1>&6
  22263.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  22264.   cat >> confdefs.h <<EOF
  22265. #define $ac_tr_func 1
  22266. EOF
  22267.  have_floor=1
  22268. else
  22269.   echo "$ac_t""no" 1>&6
  22270. fi
  22271. done
  22272.  
  22273. echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
  22274. echo "configure:22275: checking if floating point functions link without -lm" >&5
  22275. if test "$have_cos" = 1 -a "$have_floor" = 1; then
  22276.     echo "$ac_t""yes" 1>&6
  22277. else
  22278.     echo "$ac_t""no" 1>&6
  22279.     LIBS="$LIBS -lm"
  22280.     # use different functions to avoid configure caching
  22281.     have_sin=0
  22282.     have_ceil=0
  22283.     for ac_func in sin
  22284. do
  22285. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  22286. echo "configure:22287: checking for $ac_func" >&5
  22287. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  22288.   echo $ac_n "(cached) $ac_c" 1>&6
  22289. else
  22290.   cat > conftest.$ac_ext <<EOF
  22291. #line 22292 "configure"
  22292. #include "confdefs.h"
  22293. /* System header to define __stub macros and hopefully few prototypes,
  22294.     which can conflict with char $ac_func(); below.  */
  22295. #include <assert.h>
  22296. /* Override any gcc2 internal prototype to avoid an error.  */
  22297. /* We use char because int might match the return type of a gcc2
  22298.     builtin and then its argument prototype would still apply.  */
  22299. char $ac_func();
  22300.  
  22301. int main() {
  22302.  
  22303. /* The GNU C library defines this for functions which it implements
  22304.     to always fail with ENOSYS.  Some functions are actually named
  22305.     something starting with __ and the normal name is an alias.  */
  22306. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  22307. choke me
  22308. #else
  22309. $ac_func();
  22310. #endif
  22311.  
  22312. ; return 0; }
  22313. EOF
  22314. if { (eval echo configure:22315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  22315.   rm -rf conftest*
  22316.   eval "ac_cv_func_$ac_func=yes"
  22317. else
  22318.   echo "configure: failed program was:" >&5
  22319.   cat conftest.$ac_ext >&5
  22320.   rm -rf conftest*
  22321.   eval "ac_cv_func_$ac_func=no"
  22322. fi
  22323. rm -f conftest*
  22324. fi
  22325.  
  22326. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  22327.   echo "$ac_t""yes" 1>&6
  22328.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  22329.   cat >> confdefs.h <<EOF
  22330. #define $ac_tr_func 1
  22331. EOF
  22332.  have_sin=1
  22333. else
  22334.   echo "$ac_t""no" 1>&6
  22335. fi
  22336. done
  22337.  
  22338.     for ac_func in ceil
  22339. do
  22340. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  22341. echo "configure:22342: checking for $ac_func" >&5
  22342. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  22343.   echo $ac_n "(cached) $ac_c" 1>&6
  22344. else
  22345.   cat > conftest.$ac_ext <<EOF
  22346. #line 22347 "configure"
  22347. #include "confdefs.h"
  22348. /* System header to define __stub macros and hopefully few prototypes,
  22349.     which can conflict with char $ac_func(); below.  */
  22350. #include <assert.h>
  22351. /* Override any gcc2 internal prototype to avoid an error.  */
  22352. /* We use char because int might match the return type of a gcc2
  22353.     builtin and then its argument prototype would still apply.  */
  22354. char $ac_func();
  22355.  
  22356. int main() {
  22357.  
  22358. /* The GNU C library defines this for functions which it implements
  22359.     to always fail with ENOSYS.  Some functions are actually named
  22360.     something starting with __ and the normal name is an alias.  */
  22361. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  22362. choke me
  22363. #else
  22364. $ac_func();
  22365. #endif
  22366.  
  22367. ; return 0; }
  22368. EOF
  22369. if { (eval echo configure:22370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  22370.   rm -rf conftest*
  22371.   eval "ac_cv_func_$ac_func=yes"
  22372. else
  22373.   echo "configure: failed program was:" >&5
  22374.   cat conftest.$ac_ext >&5
  22375.   rm -rf conftest*
  22376.   eval "ac_cv_func_$ac_func=no"
  22377. fi
  22378. rm -f conftest*
  22379. fi
  22380.  
  22381. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  22382.   echo "$ac_t""yes" 1>&6
  22383.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  22384.   cat >> confdefs.h <<EOF
  22385. #define $ac_tr_func 1
  22386. EOF
  22387.  have_ceil=1
  22388. else
  22389.   echo "$ac_t""no" 1>&6
  22390. fi
  22391. done
  22392.  
  22393.     echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
  22394. echo "configure:22395: checking if floating point functions link with -lm" >&5
  22395.     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
  22396.         echo "$ac_t""yes" 1>&6
  22397.     else
  22398.         echo "$ac_t""no" 1>&6
  22399.         # not sure we should warn the user, crash, etc.
  22400.     fi
  22401. fi
  22402.  
  22403. if test "$wxUSE_GUI" = "yes"; then
  22404.  
  22405.     LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
  22406.  
  22407.         
  22408.             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
  22409.                      drawing dynamic erase event exec font image \
  22410.                      minimal propsize rotate widgets"
  22411.  
  22412.         CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
  22413. else
  22414.     SAMPLES_SUBDIRS="console"
  22415. fi
  22416.  
  22417.  
  22418. INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
  22419. -I\${top_srcdir}/include \
  22420. $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
  22421. $TOOLKIT_INCLUDE"
  22422.  
  22423. if test "$wxUSE_GTK" = 1; then
  22424.     WXCONFIG_INCLUDE=
  22425. else
  22426.     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
  22427. fi
  22428.  
  22429. if test "$GXX" = yes ; then
  22430.         CXXWARNINGS="-Wall"
  22431.         
  22432.             if test "$wxUSE_NO_DEPS" = "no" ; then
  22433.         CFLAGS="-MMD $CFLAGS"
  22434.         CXXFLAGS="-MMD $CXXFLAGS"
  22435.     fi
  22436. fi
  22437.  
  22438. EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
  22439.  
  22440. CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
  22441. CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
  22442. CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
  22443. LIBS=`echo $LIBS | sed 's/ \+/ /g'`
  22444.  
  22445. LDFLAGS="$LDFLAGS $PROFILE"
  22446.  
  22447. SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
  22448.  
  22449.  
  22450.  
  22451.  
  22452.  
  22453.  
  22454.  
  22455.  
  22456.  
  22457.  
  22458.  
  22459.  
  22460.  
  22461.  
  22462.  
  22463.  
  22464.  
  22465.  
  22466.  
  22467.  
  22468.  
  22469.  
  22470.  
  22471.  
  22472.  
  22473.  
  22474.  
  22475.  
  22476.  
  22477.  
  22478.  
  22479.  
  22480.  
  22481.  
  22482.  
  22483.  
  22484.  
  22485.  
  22486.  
  22487.  
  22488.  
  22489.  
  22490.  
  22491.  
  22492.  
  22493.  
  22494.  
  22495.  
  22496.  
  22497.  
  22498.  
  22499.  
  22500.  
  22501.  
  22502.  
  22503.  
  22504.  
  22505.  
  22506.  
  22507.  
  22508.  
  22509.  
  22510.  
  22511.  
  22512.  
  22513.  
  22514.  
  22515.  
  22516.  
  22517.  
  22518.  
  22519.  
  22520.  
  22521.  
  22522.  
  22523.  
  22524.  
  22525.  
  22526.  
  22527.  
  22528.  
  22529.  
  22530.  
  22531.  
  22532.  
  22533.  
  22534.  
  22535.  
  22536.  
  22537.  
  22538.  
  22539.  
  22540.  
  22541.  
  22542.  
  22543.  
  22544.  
  22545.  
  22546. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  22547. echo "configure:22548: checking whether ${MAKE-make} sets \${MAKE}" >&5
  22548. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  22549. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  22550.   echo $ac_n "(cached) $ac_c" 1>&6
  22551. else
  22552.   cat > conftestmake <<EOF
  22553. all:
  22554.     @${SHELL} -c "echo ac_maketemp="\${MAKE}""
  22555. EOF
  22556. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  22557. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  22558. if test -n "$ac_maketemp"; then
  22559.   eval ac_cv_prog_make_${ac_make}_set=yes
  22560. else
  22561.   eval ac_cv_prog_make_${ac_make}_set=no
  22562. fi
  22563. rm -f conftestmake
  22564. fi
  22565. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  22566.   echo "$ac_t""yes" 1>&6
  22567.   SET_MAKE=
  22568. else
  22569.   echo "$ac_t""no" 1>&6
  22570.   SET_MAKE="MAKE=${MAKE-make}"
  22571. fi
  22572.  
  22573.  
  22574. if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
  22575.     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
  22576. fi
  22577.  
  22578.  
  22579.  
  22580. wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
  22581. wx_cv_if_gnu_make=$IF_GNU_MAKE
  22582. wx_cv_path_ifs=$PATH_IFS
  22583. wx_cv_program_ext=$PROGRAM_EXT
  22584. wx_cv_target_library=$WX_TARGET_LIBRARY
  22585. wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
  22586. wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
  22587. wx_cv_library_basename=${WX_LIBRARY_BASENAME}
  22588. wx_cv_release=${WX_RELEASE}
  22589. wx_cv_current=${WX_CURRENT}
  22590. wx_cv_revision=${WX_REVISION}
  22591. wx_cv_age=${WX_AGE}
  22592. export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
  22593.        wx_cv_path_ifs wx_cv_program_ext \
  22594.        wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
  22595.        wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age
  22596.  
  22597.  
  22598. subdirs="demos samples utils contrib"
  22599.  
  22600.  
  22601. trap '' 1 2 15
  22602. cat > confcache <<\EOF
  22603. # This file is a shell script that caches the results of configure
  22604. # tests run on this system so they can be shared between configure
  22605. # scripts and configure runs.  It is not useful on other systems.
  22606. # If it contains results you don't want to keep, you may remove or edit it.
  22607. #
  22608. # By default, configure uses ./config.cache as the cache file,
  22609. # creating it if it does not exist already.  You can give configure
  22610. # the --cache-file=FILE option to use a different cache file; that is
  22611. # what configure does when it calls configure scripts in
  22612. # subdirectories, so they share the cache.
  22613. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  22614. # config.status only pays attention to the cache file if you give it the
  22615. # --recheck option to rerun configure.
  22616. #
  22617. EOF
  22618. # The following way of writing the cache mishandles newlines in values,
  22619. # but we know of no workaround that is simple, portable, and efficient.
  22620. # So, don't put newlines in cache variables' values.
  22621. # Ultrix sh set writes to stderr and can't be redirected directly,
  22622. # and sets the high bit in the cache file unless we assign to the vars.
  22623. (set) 2>&1 |
  22624.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  22625.   *ac_space=\ *)
  22626.     # `set' does not quote correctly, so add quotes (double-quote substitution
  22627.     # turns \\\\ into \\, and sed turns \\ into \).
  22628.     sed -n \
  22629.       -e "s/'/'\\\\''/g" \
  22630.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  22631.     ;;
  22632.   *)
  22633.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  22634.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  22635.     ;;
  22636.   esac >> confcache
  22637. if cmp -s $cache_file confcache; then
  22638.   :
  22639. else
  22640.   if test -w $cache_file; then
  22641.     echo "updating cache $cache_file"
  22642.     cat confcache > $cache_file
  22643.   else
  22644.     echo "not updating unwritable cache $cache_file"
  22645.   fi
  22646. fi
  22647. rm -f confcache
  22648.  
  22649. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  22650.  
  22651. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22652. # Let make expand exec_prefix.
  22653. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22654.  
  22655. # Any assignment to VPATH causes Sun make to only execute
  22656. # the first set of double-colon rules, so remove it if not needed.
  22657. # If there is a colon in the path, we need to keep it.
  22658. if test "x$srcdir" = x.; then
  22659.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  22660. fi
  22661.  
  22662. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  22663.  
  22664. DEFS=-DHAVE_CONFIG_H
  22665.  
  22666. # Without the "./", some shells look in PATH for config.status.
  22667. : ${CONFIG_STATUS=./config.status}
  22668.  
  22669. echo creating $CONFIG_STATUS
  22670. rm -f $CONFIG_STATUS
  22671. cat > $CONFIG_STATUS <<EOF
  22672. #! /bin/sh
  22673. # Generated automatically by configure.
  22674. # Run this file to recreate the current configuration.
  22675. # This directory was configured as follows,
  22676. EOF
  22677. echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
  22678. cat >> $CONFIG_STATUS <<EOF
  22679. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22680. #
  22681. # $0 $ac_configure_args
  22682. #
  22683. # Compiler output produced by configure, useful for debugging
  22684. # configure, is in ./config.log if it exists.
  22685.  
  22686. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  22687. for ac_option
  22688. do
  22689.   case "\$ac_option" in
  22690.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22691.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  22692.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  22693.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  22694.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  22695.     exit 0 ;;
  22696.   -help | --help | --hel | --he | --h)
  22697.     echo "\$ac_cs_usage"; exit 0 ;;
  22698.   *) echo "\$ac_cs_usage"; exit 1 ;;
  22699.   esac
  22700. done
  22701.  
  22702. ac_given_srcdir=$srcdir
  22703. ac_given_INSTALL="$INSTALL"
  22704.  
  22705. trap 'rm -fr `echo "
  22706.             wx-config
  22707.             version-script
  22708.             src/make.env
  22709.             src/makeprog.env
  22710.             src/makelib.env
  22711.             Makefile
  22712.            setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  22713. EOF
  22714. cat >> $CONFIG_STATUS <<EOF
  22715.  
  22716. # Protect against being on the right side of a sed subst in config.status.
  22717. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  22718.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  22719. $ac_vpsub
  22720. $extrasub
  22721. s,/bin/sh,${CONFIG_SHELL-/bin/sh},g
  22722. s%@SHELL@%$SHELL%g
  22723. s%@CFLAGS@%$CFLAGS%g
  22724. s%@CPPFLAGS@%$CPPFLAGS%g
  22725. s%@CXXFLAGS@%$CXXFLAGS%g
  22726. s%@FFLAGS@%$FFLAGS%g
  22727. s%@DEFS@%$DEFS%g
  22728. s%@LDFLAGS@%$LDFLAGS%g
  22729. s%@LIBS@%$LIBS%g
  22730. s%@exec_prefix@%$exec_prefix%g
  22731. s%@prefix@%$prefix%g
  22732. s%@program_transform_name@%$program_transform_name%g
  22733. s%@bindir@%$bindir%g
  22734. s%@sbindir@%$sbindir%g
  22735. s%@libexecdir@%$libexecdir%g
  22736. s%@datadir@%$datadir%g
  22737. s%@sysconfdir@%$sysconfdir%g
  22738. s%@sharedstatedir@%$sharedstatedir%g
  22739. s%@localstatedir@%$localstatedir%g
  22740. s%@libdir@%$libdir%g
  22741. s%@includedir@%$includedir%g
  22742. s%@oldincludedir@%$oldincludedir%g
  22743. s%@infodir@%$infodir%g
  22744. s%@mandir@%$mandir%g
  22745. s%@PATH_IFS@%$PATH_IFS%g
  22746. s%@EXEEXT@%$EXEEXT%g
  22747. s%@host@%$host%g
  22748. s%@host_alias@%$host_alias%g
  22749. s%@host_cpu@%$host_cpu%g
  22750. s%@host_vendor@%$host_vendor%g
  22751. s%@host_os@%$host_os%g
  22752. s%@target@%$target%g
  22753. s%@target_alias@%$target_alias%g
  22754. s%@target_cpu@%$target_cpu%g
  22755. s%@target_vendor@%$target_vendor%g
  22756. s%@target_os@%$target_os%g
  22757. s%@build@%$build%g
  22758. s%@build_alias@%$build_alias%g
  22759. s%@build_cpu@%$build_cpu%g
  22760. s%@build_vendor@%$build_vendor%g
  22761. s%@build_os@%$build_os%g
  22762. s%@CC@%$CC%g
  22763. s%@CPP@%$CPP%g
  22764. s%@CXX@%$CXX%g
  22765. s%@RANLIB@%$RANLIB%g
  22766. s%@AR@%$AR%g
  22767. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  22768. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  22769. s%@INSTALL_DATA@%$INSTALL_DATA%g
  22770. s%@STRIP@%$STRIP%g
  22771. s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
  22772. s%@YACC@%$YACC%g
  22773. s%@LEX@%$LEX%g
  22774. s%@LEXLIB@%$LEXLIB%g
  22775. s%@LN_S@%$LN_S%g
  22776. s%@CXXCPP@%$CXXCPP%g
  22777. s%@PKG_CONFIG@%$PKG_CONFIG%g
  22778. s%@GTK_CFLAGS@%$GTK_CFLAGS%g
  22779. s%@GTK_LIBS@%$GTK_LIBS%g
  22780. s%@GTK_CONFIG@%$GTK_CONFIG%g
  22781. s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
  22782. s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
  22783. s%@X_CFLAGS@%$X_CFLAGS%g
  22784. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  22785. s%@X_LIBS@%$X_LIBS%g
  22786. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  22787. s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
  22788. s%@PANGOX_LIBS@%$PANGOX_LIBS%g
  22789. s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
  22790. s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
  22791. s%@AIX_CXX_LD@%$AIX_CXX_LD%g
  22792. s%@RESCOMP@%$RESCOMP%g
  22793. s%@DEREZ@%$DEREZ%g
  22794. s%@LIBICONV@%$LIBICONV%g
  22795. s%@LEX_STEM@%$LEX_STEM%g
  22796. s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
  22797. s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
  22798. s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
  22799. s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
  22800. s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
  22801. s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
  22802. s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
  22803. s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
  22804. s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
  22805. s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
  22806. s%@PROGRAM_EXT@%$PROGRAM_EXT%g
  22807. s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
  22808. s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
  22809. s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
  22810. s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
  22811. s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
  22812. s%@WX_ALL@%$WX_ALL%g
  22813. s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
  22814. s%@SHARED_LD@%$SHARED_LD%g
  22815. s%@PIC_FLAG@%$PIC_FLAG%g
  22816. s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
  22817. s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
  22818. s%@SONAME_FLAGS@%$SONAME_FLAGS%g
  22819. s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
  22820. s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
  22821. s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
  22822. s%@STATIC_FLAG@%$STATIC_FLAG%g
  22823. s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
  22824. s%@USE_GUI@%$USE_GUI%g
  22825. s%@AFMINSTALL@%$AFMINSTALL%g
  22826. s%@WIN32INSTALL@%$WIN32INSTALL%g
  22827. s%@TOOLKIT@%$TOOLKIT%g
  22828. s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
  22829. s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
  22830. s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
  22831. s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
  22832. s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
  22833. s%@cross_compiling@%$cross_compiling%g
  22834. s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
  22835. s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
  22836. s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
  22837. s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
  22838. s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
  22839. s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
  22840. s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
  22841. s%@ALL_OBJECTS@%$ALL_OBJECTS%g
  22842. s%@ALL_HEADERS@%$ALL_HEADERS%g
  22843. s%@ALL_SOURCES@%$ALL_SOURCES%g
  22844. s%@GUIDIST@%$GUIDIST%g
  22845. s%@PORT_FILES@%$PORT_FILES%g
  22846. s%@DISTDIR@%$DISTDIR%g
  22847. s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
  22848. s%@LDFLAGS_GL@%$LDFLAGS_GL%g
  22849. s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
  22850. s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
  22851. s%@OPENGL_LIBS@%$OPENGL_LIBS%g
  22852. s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
  22853. s%@EXTRADEFS@%$EXTRADEFS%g
  22854. s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
  22855. s%@RESFLAGS@%$RESFLAGS%g
  22856. s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
  22857. s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
  22858. s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
  22859. s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
  22860. s%@LIBWXMACRES@%$LIBWXMACRES%g
  22861. s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
  22862. s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
  22863. s%@GCC@%$GCC%g
  22864. s%@DLLTOOL@%$DLLTOOL%g
  22865. s%@AS@%$AS%g
  22866. s%@NM@%$NM%g
  22867. s%@LD@%$LD%g
  22868. s%@MAKEINFO@%$MAKEINFO%g
  22869. s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
  22870. s%@SET_MAKE@%$SET_MAKE%g
  22871. s%@subdirs@%$subdirs%g
  22872.  
  22873. CEOF
  22874. EOF
  22875.  
  22876. cat >> $CONFIG_STATUS <<\EOF
  22877.  
  22878. # Split the substitutions into bite-sized pieces for seds with
  22879. # small command number limits, like on Digital OSF/1 and HP-UX.
  22880. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  22881. ac_file=1 # Number of current file.
  22882. ac_beg=1 # First line for current file.
  22883. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  22884. ac_more_lines=:
  22885. ac_sed_cmds=""
  22886. while $ac_more_lines; do
  22887.   if test $ac_beg -gt 1; then
  22888.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  22889.   else
  22890.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  22891.   fi
  22892.   if test ! -s conftest.s$ac_file; then
  22893.     ac_more_lines=false
  22894.     rm -f conftest.s$ac_file
  22895.   else
  22896.     if test -z "$ac_sed_cmds"; then
  22897.       ac_sed_cmds="sed -f conftest.s$ac_file"
  22898.     else
  22899.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  22900.     fi
  22901.     ac_file=`expr $ac_file + 1`
  22902.     ac_beg=$ac_end
  22903.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  22904.   fi
  22905. done
  22906. if test -z "$ac_sed_cmds"; then
  22907.   ac_sed_cmds=cat
  22908. fi
  22909. EOF
  22910.  
  22911. cat >> $CONFIG_STATUS <<EOF
  22912.  
  22913. CONFIG_FILES=\${CONFIG_FILES-"wx-config
  22914.             version-script
  22915.             src/make.env
  22916.             src/makeprog.env
  22917.             src/makelib.env
  22918.             Makefile
  22919.           "}
  22920. EOF
  22921. cat >> $CONFIG_STATUS <<\EOF
  22922. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  22923.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  22924.   case "$ac_file" in
  22925.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  22926.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  22927.   *) ac_file_in="${ac_file}.in" ;;
  22928.   esac
  22929.  
  22930.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  22931.  
  22932.   # Remove last slash and all that follows it.  Not all systems have dirname.
  22933.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  22934.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  22935.     # The file is in a subdirectory.
  22936.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  22937.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  22938.     # A "../" for each directory in $ac_dir_suffix.
  22939.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  22940.   else
  22941.     ac_dir_suffix= ac_dots=
  22942.   fi
  22943.  
  22944.   case "$ac_given_srcdir" in
  22945.   .)  srcdir=.
  22946.       if test -z "$ac_dots"; then top_srcdir=.
  22947.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  22948.   /* | [A-Za-z]:*)
  22949.     srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  22950.   *) # Relative path.
  22951.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  22952.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  22953.   esac
  22954.  
  22955.   case "$ac_given_INSTALL" in
  22956.   [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
  22957.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  22958.   esac
  22959.  
  22960.   echo creating "$ac_file"
  22961.   rm -f "$ac_file"
  22962.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  22963.   case "$ac_file" in
  22964.   *Makefile*) ac_comsub="1i\\
  22965. # $configure_input" ;;
  22966.   *) ac_comsub= ;;
  22967.   esac
  22968.  
  22969.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  22970.   sed -e "$ac_comsub
  22971. s%@configure_input@%$configure_input%g
  22972. s%@srcdir@%$srcdir%g
  22973. s%@top_srcdir@%$top_srcdir%g
  22974. s%@INSTALL@%$INSTALL%g
  22975. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  22976. fi; done
  22977. rm -f conftest.s*
  22978.  
  22979. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  22980. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  22981. #
  22982. # ac_d sets the value in "#define NAME VALUE" lines.
  22983. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  22984. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  22985. ac_dC='\3'
  22986. ac_dD='%g'
  22987. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  22988. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  22989. ac_uB='\([     ]\)%\1#\2define\3'
  22990. ac_uC=' '
  22991. ac_uD='\4%g'
  22992. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  22993. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  22994. ac_eB='$%\1#\2define\3'
  22995. ac_eC=' '
  22996. ac_eD='%g'
  22997.  
  22998. if test "${CONFIG_HEADERS+set}" != set; then
  22999. EOF
  23000. cat >> $CONFIG_STATUS <<EOF
  23001.   CONFIG_HEADERS="setup.h:setup.h.in"
  23002. EOF
  23003. cat >> $CONFIG_STATUS <<\EOF
  23004. fi
  23005. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  23006.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  23007.   case "$ac_file" in
  23008.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  23009.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  23010.   *) ac_file_in="${ac_file}.in" ;;
  23011.   esac
  23012.  
  23013.   echo creating $ac_file
  23014.  
  23015.   rm -f conftest.frag conftest.in conftest.out
  23016.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  23017.   cat $ac_file_inputs > conftest.in
  23018.  
  23019. EOF
  23020.  
  23021. # Transform confdefs.h into a sed script conftest.vals that substitutes
  23022. # the proper values into config.h.in to produce config.h.  And first:
  23023. # Protect against being on the right side of a sed subst in config.status.
  23024. # Protect against being in an unquoted here document in config.status.
  23025. rm -f conftest.vals
  23026. cat > conftest.hdr <<\EOF
  23027. s/[\\&%]/\\&/g
  23028. s%[\\$`]%\\&%g
  23029. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  23030. s%ac_d%ac_u%gp
  23031. s%ac_u%ac_e%gp
  23032. EOF
  23033. sed -n -f conftest.hdr confdefs.h > conftest.vals
  23034. rm -f conftest.hdr
  23035.  
  23036. # This sed command replaces #undef with comments.  This is necessary, for
  23037. # example, in the case of _POSIX_SOURCE, which is predefined and required
  23038. # on some systems where configure will not decide to define it.
  23039. cat >> conftest.vals <<\EOF
  23040. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  23041. EOF
  23042.  
  23043. # Break up conftest.vals because some shells have a limit on
  23044. # the size of here documents, and old seds have small limits too.
  23045.  
  23046. rm -f conftest.tail
  23047. while :
  23048. do
  23049.   ac_lines=`grep -c . conftest.vals`
  23050.   # grep -c gives empty output for an empty file on some AIX systems.
  23051.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  23052.   # Write a limited-size here document to conftest.frag.
  23053.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  23054.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  23055.   echo 'CEOF
  23056.   sed -f conftest.frag conftest.in > conftest.out
  23057.   rm -f conftest.in
  23058.   mv conftest.out conftest.in
  23059. ' >> $CONFIG_STATUS
  23060.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  23061.   rm -f conftest.vals
  23062.   mv conftest.tail conftest.vals
  23063. done
  23064. rm -f conftest.vals
  23065.  
  23066. cat >> $CONFIG_STATUS <<\EOF
  23067.   rm -f conftest.frag conftest.h
  23068.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  23069.   cat conftest.in >> conftest.h
  23070.   rm -f conftest.in
  23071.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  23072.     echo "$ac_file is unchanged"
  23073.     rm -f conftest.h
  23074.   else
  23075.     # Remove last slash and all that follows it.  Not all systems have dirname.
  23076.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  23077.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  23078.       # The file is in a subdirectory.
  23079.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  23080.     fi
  23081.     rm -f $ac_file
  23082.     mv conftest.h $ac_file
  23083.   fi
  23084. fi; done
  23085.  
  23086. EOF
  23087. cat >> $CONFIG_STATUS <<EOF
  23088.  
  23089.             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
  23090.             LN_S="${LN_S}"
  23091.           
  23092.          
  23093. EOF
  23094. cat >> $CONFIG_STATUS <<\EOF
  23095.  
  23096.                                                                                                 if test ! -h wx-config; then
  23097.                 chmod +x wx-config
  23098.                 mv wx-config wx${TOOLCHAIN_NAME}-config
  23099.                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
  23100.             fi
  23101.  
  23102.             if test ! -d lib; then
  23103.               mkdir lib
  23104.             fi
  23105.             if test ! -d lib/wx; then
  23106.               mkdir lib/wx
  23107.             fi
  23108.             if test ! -d lib/wx/include; then
  23109.               mkdir lib/wx/include
  23110.             fi
  23111.             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
  23112.               mkdir lib/wx/include/${TOOLCHAIN_NAME}
  23113.             fi
  23114.             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
  23115.               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
  23116.             fi
  23117.             if test -f setup.h; then
  23118.               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
  23119.             fi
  23120.           
  23121. exit 0
  23122. EOF
  23123. chmod +x $CONFIG_STATUS
  23124. rm -fr confdefs* $ac_clean_files
  23125. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  23126.  
  23127. if test "$no_recursion" != yes; then
  23128.  
  23129.   # Remove --cache-file and --srcdir arguments so they do not pile up.
  23130.   ac_sub_configure_args=
  23131.   ac_prev=
  23132.   for ac_arg in $ac_configure_args; do
  23133.     if test -n "$ac_prev"; then
  23134.       ac_prev=
  23135.       continue
  23136.     fi
  23137.     case "$ac_arg" in
  23138.     -cache-file | --cache-file | --cache-fil | --cache-fi \
  23139.     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  23140.       ac_prev=cache_file ;;
  23141.     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  23142.     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  23143.       ;;
  23144.     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  23145.       ac_prev=srcdir ;;
  23146.     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  23147.       ;;
  23148.     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
  23149.     esac
  23150.   done
  23151.  
  23152.   for ac_config_dir in demos samples utils contrib; do
  23153.  
  23154.     # Do not complain, so a configure script can configure whichever
  23155.     # parts of a large source tree are present.
  23156.     if test ! -d $srcdir/$ac_config_dir; then
  23157.       continue
  23158.     fi
  23159.  
  23160.     echo configuring in $ac_config_dir
  23161.  
  23162.     case "$srcdir" in
  23163.     .) ;;
  23164.     *)
  23165.       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
  23166.       else
  23167.         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
  23168.       fi
  23169.       ;;
  23170.     esac
  23171.  
  23172.     ac_popdir=`pwd`
  23173.     cd $ac_config_dir
  23174.  
  23175.       # A "../" for each directory in /$ac_config_dir.
  23176.       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
  23177.  
  23178.     case "$srcdir" in
  23179.     .) # No --srcdir option.  We are building in place.
  23180.       ac_sub_srcdir=$srcdir ;;
  23181.     /* | [A-Za-z]:*) # Absolute path.
  23182.       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
  23183.     *) # Relative path.
  23184.       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
  23185.     esac
  23186.  
  23187.     # Check for guested configure; otherwise get Cygnus style configure.
  23188.     if test -f $ac_sub_srcdir/configure; then
  23189.       ac_sub_configure=$ac_sub_srcdir/configure
  23190.     elif test -f $ac_sub_srcdir/configure.in; then
  23191.       ac_sub_configure=$ac_configure
  23192.     else
  23193.       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
  23194.       ac_sub_configure=
  23195.     fi
  23196.  
  23197.     # The recursion is here.
  23198.     if test -n "$ac_sub_configure"; then
  23199.  
  23200.       # Make the cache file name correct relative to the subdirectory.
  23201.       case "$cache_file" in
  23202.       /* | [A-Za-z]:*) ac_sub_cache_file=$cache_file ;;
  23203.       *) # Relative path.
  23204.         ac_sub_cache_file="$ac_dots$cache_file" ;;
  23205.       esac
  23206.   case "$ac_given_INSTALL" in
  23207.         [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
  23208.         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  23209.         esac
  23210.  
  23211.       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
  23212.       # The eval makes quoting arguments work.
  23213.       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
  23214.       then :
  23215.       else
  23216.         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
  23217.       fi
  23218.     fi
  23219.  
  23220.     cd $ac_popdir
  23221.   done
  23222. fi
  23223.  
  23224.  
  23225. echo
  23226. echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
  23227. echo ""
  23228. echo "  Which GUI toolkit should wxWindows use?                 ${TOOLKIT:-base only}"
  23229.  
  23230. echo "  Should wxWindows be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
  23231. echo "  Should wxWindows be linked as a shared library?         ${wxUSE_SHARED:-no}"
  23232. echo "  Should wxWindows be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
  23233.  
  23234. echo "  What level of wxWindows compatibility should be enabled?"
  23235. echo "                                       wxWindows 2.0      ${WXWIN_COMPATIBILITY_2:-no}"
  23236. echo "                                       wxWindows 2.2      ${WXWIN_COMPATIBILITY_2_2:-yes}"
  23237.  
  23238. echo "  Which libraries should wxWindows use?"
  23239. echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
  23240. echo "                                       png                ${wxUSE_LIBPNG-none}"
  23241. echo "                                       regex              ${wxUSE_REGEX}"
  23242. echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
  23243. echo "                                       zlib               ${wxUSE_ZLIB}"
  23244.  
  23245. echo ""
  23246.  
  23247.