3 # From configure.in Id: configure.in
10 # Do all the work for Automake. This macro actually does too much --
11 # some checks are only needed if your package does certain things.
12 # But this isn't really a big deal.
25 # Check to make sure that the build environment is sane.
36 # serial 29 AM_PROG_LIBTOOL
39 # AM_ENABLE_SHARED - implement the --enable-shared flag
40 # Usage: AM_ENABLE_SHARED[(DEFAULT)]
41 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
45 # AM_DISABLE_SHARED - set the default shared flag to --disable-shared
48 # AM_DISABLE_STATIC - set the default static flag to --disable-static
51 # AM_ENABLE_STATIC - implement the --enable-static flag
52 # Usage: AM_ENABLE_STATIC[(DEFAULT)]
53 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
58 # AM_PROG_LD - find the path to the GNU or non-GNU linker
63 # AM_PROG_NM - find the path to a BSD-compatible name lister
66 # AM_SYS_NM_PARSE - Check for command ro grab the raw symbol name followed
67 # by C symbol name from nm.
70 # AM_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32
73 # AM_SYS_SYMBOL_UNDERSCORE - does the compiler prefix global symbols
99 # Guess values for system-dependent variables and create Makefiles.
100 # Generated automatically using autoconf version 2.13
101 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
103 # This configure script is free software; the Free Software Foundation
104 # gives unlimited permission to copy, distribute and modify it.
108 ac_default_prefix
=/usr
/local
109 # Any additions from configure.in:
111 --with-gtk-prefix=PFX prefix where GTK is installed"
113 --with-gtk-exec-prefix=PFX exec prefix where GTK is installed"
117 --with-motif use Motif/Lesstif"
119 --with-cygwin use Cygwin for MS-Windows"
121 --with-mingw use GCC Minimal MS-Windows"
123 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
125 --with-zlib use zlib for LZW compression"
127 --with-libpng use libpng (PNG image format)"
129 --with-libgif use libgif (GIF file format)"
131 --with-libjpeg use libjpeg (JPEG file format)"
133 --with-opengl use OpenGL (or Mesa)"
135 --with-odbc use the IODBC and wxODBC classes"
137 --enable-optimise create optimised code"
139 --enable-optimize create optimized code"
141 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
143 --enable-debug_info create code with debugging information"
145 --enable-debug_gdb create code with extra GDB debugging information"
147 --enable-debug_cntxt use wxDebugContext"
149 --enable-mem_tracing create code with memory tracing"
151 --enable-profile create code with profiling information"
153 --enable-gui use GUI classes"
155 --enable-intl use internationalization system"
157 --enable-config use wxConfig (and derived) classes"
159 --enable-sockets use socket/network classes"
161 --enable-ipc use interprocess communication (wxSocket etc.)"
163 --enable-apple_ieee use the Apple IEEE codec"
165 --enable-timedate use date/time classes"
167 --enable-fraction use wxFraction class"
169 --enable-dynlib use wxLibrary class for DLL loading"
171 --enable-longlong use wxLongLong class"
173 --enable-log use logging system"
175 --enable-streams use wxStream etc classes"
177 --enable-file use wxFile classes"
179 --enable-textfile use wxTextFile classes"
181 --enable-unicode compile wxString with Unicode support"
183 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
185 --enable-joystick compile in joystick support (Linux only)"
187 --enable-threads use threads"
189 --enable-serial use class serialization"
191 --enable-docview use document view architecture"
193 --enable-help use help (using external browser at present)"
195 --enable-constraints use layout-constraints system"
197 --enable-printarch use printing architecture"
199 --enable-mdi use multiple document interface architecture"
201 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
203 --enable-prologio use Prolog IO library"
205 --enable-resources use wxWindows resources"
207 --enable-xresources use X resources for save (default for gtk+)"
209 --enable-clipboard use wxClipboard classes"
211 --enable-dnd use Drag'n'Drop classes"
213 --enable-wxtree make wxTree library"
215 --enable-controls use all usual controls"
217 --enable-accel use accelerators"
219 --enable-caret use wxCaret class"
221 --enable-bmpbutton use wxBitmapButton class"
223 --enable-checkbox use wxCheckBox class"
225 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
227 --enable-combobox use wxChoice and wxComboBox classes"
229 --enable-gauge use wxGauge class"
231 --enable-grid use wxGrid class"
233 --enable-imaglist use wxImageList class"
235 --enable-listbox use wxListBox class"
237 --enable-listctrl use wxListCtrl class"
239 --enable-notebook use wxNotebook class"
241 --enable-radiobox use wxRadioBox class"
243 --enable-radiobtn use wxRadioButton class"
245 --enable-sash use wxSashWindow class"
247 --enable-scrollbar use wxScrollBar class and scrollable windows"
249 --enable-slider use wxSlider class"
251 --enable-spinbtn use wxSpinButton class"
253 --enable-splitter use wxSplitterWindow class"
255 --enable-statbmp use wxStaticBitmap class"
257 --enable-statbox use wxStaticBox class"
259 --enable-statline use wxStaticLine class"
261 --enable-statusbar use wxStatusBar class"
263 --enable-tabdialog use wxTabControl class"
265 --enable-toolbar use wxToolBar class"
267 --enable-treectrl use wxTreeCtrl class"
269 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
271 --enable-miniframe use wxMiniFrame class"
273 --enable-tooltips use wxToolTip class"
275 --enable-splines use spline drawing code"
277 --enable-validators use wxValidator and derived classes"
279 --enable-static[=PKGS] build static libraries [default=no]"
281 --enable-shared[=PKGS] build shared libraries [default=yes]"
283 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
285 --disable-libtool-lock force libtool not to do file locking"
287 --with-x use the X Window System"
289 **--with-gtk-prefix=PFX Prefix where GTK is installed"
291 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
293 **--with-gtk-prefix=PFX Prefix where GTK is installed"
295 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
297 # Initialize some variables set by options.
298 # The variables have the same names as the options, with
299 # dashes changed to underlines.
301 cache_file
=.
/config.cache
310 program_transform_name
=s
,x
,x
,
318 bindir
='${exec_prefix}/bin'
319 sbindir
='${exec_prefix}/sbin'
320 libexecdir
='${exec_prefix}/libexec'
321 datadir
='${prefix}/share'
322 sysconfdir
='${prefix}/etc'
323 sharedstatedir
='${prefix}/com'
324 localstatedir
='${prefix}/var'
325 libdir
='${exec_prefix}/lib'
326 includedir
='${prefix}/include'
327 oldincludedir
='/usr/include'
328 infodir
='${prefix}/info'
329 mandir
='${prefix}/man'
331 # Initialize some other variables.
334 SHELL
=${CONFIG_SHELL-/bin/sh}
335 # Maximum number of lines to put in a shell here document.
342 # If the previous option needs an argument, assign it.
343 if test -n "$ac_prev"; then
344 eval "$ac_prev=\$ac_option"
350 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
354 # Accept the important Cygnus configure options, so we can diagnose typos.
358 -bindir | --bindir | --bindi | --bind | --bin | --bi)
360 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
361 bindir
="$ac_optarg" ;;
363 -build | --build | --buil | --bui | --bu)
365 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
366 build
="$ac_optarg" ;;
368 -cache-file | --cache-file | --cache-fil | --cache-fi \
369 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
370 ac_prev
=cache_file
;;
371 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
372 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
373 cache_file
="$ac_optarg" ;;
375 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379 datadir
="$ac_optarg" ;;
381 -disable-* | --disable-*)
382 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
387 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
388 eval "enable_${ac_feature}=no" ;;
390 -enable-* | --enable-*)
391 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
394 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
396 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
401 eval "enable_${ac_feature}='$ac_optarg'" ;;
403 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
404 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
405 | --exec | --exe | --ex)
406 ac_prev
=exec_prefix
;;
407 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
408 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
409 | --exec=* | --exe=* | --ex=*)
410 exec_prefix
="$ac_optarg" ;;
412 -gas | --gas | --ga | --g)
413 # Obsolete; use --with-gas.
416 -help | --help | --hel | --he)
417 # Omit some internal or obsolete options to make the list less imposing.
418 # This message is too long to be a string in the A/UX 3.1 sh.
420 Usage: configure [options] [host]
421 Options: [defaults in brackets after descriptions]
423 --cache-file=FILE cache test results in FILE
424 --help print this message
425 --no-create do not create output files
426 --quiet, --silent do not print \`checking...' messages
427 --version print the version of autoconf that created configure
428 Directory and file names:
429 --prefix=PREFIX install architecture-independent files in PREFIX
431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
433 --bindir=DIR user executables in DIR [EPREFIX/bin]
434 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
435 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
436 --datadir=DIR read-only architecture-independent data in DIR
438 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
439 --sharedstatedir=DIR modifiable architecture-independent data in DIR
441 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
442 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
443 --includedir=DIR C header files in DIR [PREFIX/include]
444 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
445 --infodir=DIR info documentation in DIR [PREFIX/info]
446 --mandir=DIR man documentation in DIR [PREFIX/man]
447 --srcdir=DIR find the sources in DIR [configure dir or ..]
448 --program-prefix=PREFIX prepend PREFIX to installed program names
449 --program-suffix=SUFFIX append SUFFIX to installed program names
450 --program-transform-name=PROGRAM
451 run sed PROGRAM on installed program names
455 --build=BUILD configure for building on BUILD [BUILD=HOST]
456 --host=HOST configure for HOST [guessed]
457 --target=TARGET configure for TARGET [TARGET=HOST]
458 Features and packages:
459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
461 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
462 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
463 --x-includes=DIR X include files are in DIR
464 --x-libraries=DIR X library files are in DIR
466 if test -n "$ac_help"; then
467 echo "--enable and --with options recognized:$ac_help"
471 -host | --host | --hos | --ho)
473 -host=* | --host=* | --hos=* | --ho=*)
476 -includedir | --includedir | --includedi | --included | --include \
477 | --includ | --inclu | --incl | --inc)
478 ac_prev
=includedir
;;
479 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
480 | --includ=* | --inclu=* | --incl=* | --inc=*)
481 includedir
="$ac_optarg" ;;
483 -infodir | --infodir | --infodi | --infod | --info | --inf)
485 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
486 infodir
="$ac_optarg" ;;
488 -libdir | --libdir | --libdi | --libd)
490 -libdir=* | --libdir=* | --libdi=* | --libd=*)
491 libdir
="$ac_optarg" ;;
493 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
494 | --libexe | --libex | --libe)
495 ac_prev
=libexecdir
;;
496 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
497 | --libexe=* | --libex=* | --libe=*)
498 libexecdir
="$ac_optarg" ;;
500 -localstatedir | --localstatedir | --localstatedi | --localstated \
501 | --localstate | --localstat | --localsta | --localst \
502 | --locals | --local | --loca | --loc | --lo)
503 ac_prev
=localstatedir
;;
504 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
505 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
506 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
507 localstatedir
="$ac_optarg" ;;
509 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
511 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
512 mandir
="$ac_optarg" ;;
515 # Obsolete; use --without-fp.
518 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
522 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
523 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
526 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
527 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
528 | --oldin | --oldi | --old | --ol | --o)
529 ac_prev
=oldincludedir
;;
530 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
531 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
532 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
533 oldincludedir
="$ac_optarg" ;;
535 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
537 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
538 prefix
="$ac_optarg" ;;
540 -program-prefix | --program-prefix | --program-prefi | --program-pref \
541 | --program-pre | --program-pr | --program-p)
542 ac_prev
=program_prefix
;;
543 -program-prefix=* | --program-prefix=* | --program-prefi=* \
544 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
545 program_prefix
="$ac_optarg" ;;
547 -program-suffix | --program-suffix | --program-suffi | --program-suff \
548 | --program-suf | --program-su | --program-s)
549 ac_prev
=program_suffix
;;
550 -program-suffix=* | --program-suffix=* | --program-suffi=* \
551 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
552 program_suffix
="$ac_optarg" ;;
554 -program-transform-name | --program-transform-name \
555 | --program-transform-nam | --program-transform-na \
556 | --program-transform-n | --program-transform- \
557 | --program-transform | --program-transfor \
558 | --program-transfo | --program-transf \
559 | --program-trans | --program-tran \
560 | --progr-tra | --program-tr | --program-t)
561 ac_prev
=program_transform_name
;;
562 -program-transform-name=* | --program-transform-name=* \
563 | --program-transform-nam=* | --program-transform-na=* \
564 | --program-transform-n=* | --program-transform-=* \
565 | --program-transform=* | --program-transfor=* \
566 | --program-transfo=* | --program-transf=* \
567 | --program-trans=* | --program-tran=* \
568 | --progr-tra=* | --program-tr=* | --program-t=*)
569 program_transform_name
="$ac_optarg" ;;
571 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
572 | -silent | --silent | --silen | --sile | --sil)
575 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
577 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
579 sbindir
="$ac_optarg" ;;
581 -sharedstatedir | --sharedstatedir | --sharedstatedi \
582 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
583 | --sharedst | --shareds | --shared | --share | --shar \
585 ac_prev
=sharedstatedir
;;
586 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
587 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
588 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
590 sharedstatedir
="$ac_optarg" ;;
592 -site | --site | --sit)
594 -site=* | --site=* | --sit=*)
597 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
599 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
600 srcdir
="$ac_optarg" ;;
602 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
603 | --syscon | --sysco | --sysc | --sys | --sy)
604 ac_prev
=sysconfdir
;;
605 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
606 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
607 sysconfdir
="$ac_optarg" ;;
609 -target | --target | --targe | --targ | --tar | --ta | --t)
611 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
612 target
="$ac_optarg" ;;
614 -v | -verbose | --verbose | --verbos | --verbo | --verb)
617 -version | --version | --versio | --versi | --vers)
618 echo "configure generated by autoconf version 2.13"
622 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
623 # Reject names that are not valid shell variable names.
624 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
625 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
627 ac_package
=`echo $ac_package| sed 's/-/_/g'`
632 eval "with_${ac_package}='$ac_optarg'" ;;
634 -without-* | --without-*)
635 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
636 # Reject names that are not valid shell variable names.
637 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
638 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
640 ac_package
=`echo $ac_package| sed 's/-/_/g'`
641 eval "with_${ac_package}=no" ;;
644 # Obsolete; use --with-x.
647 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
648 | --x-incl | --x-inc | --x-in | --x-i)
649 ac_prev
=x_includes
;;
650 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
651 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
652 x_includes
="$ac_optarg" ;;
654 -x-libraries | --x-libraries | --x-librarie | --x-librari \
655 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
656 ac_prev
=x_libraries
;;
657 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
658 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
659 x_libraries
="$ac_optarg" ;;
661 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
665 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
666 echo "configure: warning: $ac_option: invalid host type" 1>&2
668 if test "x$nonopt" != xNONE
; then
669 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
677 if test -n "$ac_prev"; then
678 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
681 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
683 # File descriptor usage:
686 # 2 errors and warnings
687 # 3 some systems may open it to /dev/tty
688 # 4 used on the Kubota Titan
689 # 6 checking for... messages and results
690 # 5 compiler messages saved in config.log
691 if test "$silent" = yes; then
699 This file contains any messages produced by compilers while
700 running configure, to aid debugging if configure makes a mistake.
703 # Strip out --no-create and --no-recursion so they do not pile up.
704 # Also quote any args containing shell metacharacters.
709 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
710 | --no-cr | --no-c) ;;
711 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
712 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
713 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
714 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
715 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
720 # Only set these to C if already set. These must not be set unconditionally
721 # because not all systems understand e.g. LANG=C (notably SCO).
722 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
723 # Non-C LC_CTYPE values break the ctype check.
724 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
725 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
726 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
727 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
729 # confdefs.h avoids OS command line length limits that DEFS can exceed.
730 rm -rf conftest
* confdefs.h
731 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
734 # A filename unique to this package, relative to the directory that
735 # configure is in, which we can look for to find out if srcdir is correct.
736 ac_unique_file
=wx
-config.
in
738 # Find the source files, if location was not specified.
739 if test -z "$srcdir"; then
740 ac_srcdir_defaulted
=yes
741 # Try the directory containing this script, then its parent.
743 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
744 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
746 if test ! -r $srcdir/$ac_unique_file; then
750 ac_srcdir_defaulted
=no
752 if test ! -r $srcdir/$ac_unique_file; then
753 if test "$ac_srcdir_defaulted" = yes; then
754 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
756 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
759 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
761 # Prefer explicitly selected file to automatically selected ones.
762 if test -z "$CONFIG_SITE"; then
763 if test "x$prefix" != xNONE
; then
764 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
766 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
769 for ac_site_file
in $CONFIG_SITE; do
770 if test -r "$ac_site_file"; then
771 echo "loading site script $ac_site_file"
776 if test -r "$cache_file"; then
777 echo "loading cache $cache_file"
780 echo "creating cache $cache_file"
785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786 ac_cpp
='$CPP $CPPFLAGS'
787 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789 cross_compiling
=$ac_cv_prog_cc_cross
793 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
794 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
795 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
802 ac_n
= ac_c
='\c' ac_t
=
808 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
809 if test -f $ac_dir/install-sh; then
811 ac_install_sh
="$ac_aux_dir/install-sh -c"
813 elif test -f $ac_dir/install.sh
; then
815 ac_install_sh
="$ac_aux_dir/install.sh -c"
819 if test -z "$ac_aux_dir"; then
820 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
822 ac_config_guess
=$ac_aux_dir/config.guess
823 ac_config_sub
=$ac_aux_dir/config.sub
824 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
827 # Make sure we can run config.sub.
828 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
829 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
832 echo $ac_n "checking host system type""... $ac_c" 1>&6
833 echo "configure:834: checking host system type" >&5
836 case "$host_alias" in
840 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
841 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
843 *) host_alias
=$nonopt ;;
847 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
848 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
849 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
850 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
851 echo "$ac_t""$host" 1>&6
853 # Find a good install program. We prefer a C program (faster),
854 # so one script is as good as another. But avoid the broken or
855 # incompatible versions:
856 # SysV /etc/install, /usr/sbin/install
857 # SunOS /usr/etc/install
860 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
861 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
862 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
863 # ./install, which can be erroneously created by make from ./install.sh.
864 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
865 echo "configure:866: checking for a BSD compatible install" >&5
866 if test -z "$INSTALL"; then
867 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
868 echo $ac_n "(cached) $ac_c" 1>&6
870 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
871 for ac_dir
in $PATH; do
872 # Account for people who put trailing slashes in PATH elements.
874 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
876 # OSF1 and SCO ODT 3.0 have their own names for install.
877 # Don't use installbsd from OSF since it installs stuff as root
879 for ac_prog
in ginstall scoinst
install; do
880 if test -f $ac_dir/$ac_prog; then
881 if test $ac_prog = install &&
882 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
883 # AIX install. It has an incompatible calling convention.
886 ac_cv_path_install
="$ac_dir/$ac_prog -c"
897 if test "${ac_cv_path_install+set}" = set; then
898 INSTALL
="$ac_cv_path_install"
900 # As a last resort, use the slow shell script. We don't cache a
901 # path for INSTALL within a source directory, because that will
902 # break other packages using the cache if that directory is
903 # removed, or if the path is relative.
904 INSTALL
="$ac_install_sh"
907 echo "$ac_t""$INSTALL" 1>&6
909 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
910 # It thinks the first close brace ends the variable substitution.
911 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
913 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
915 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
917 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
918 echo "configure:919: checking whether build environment is sane" >&5
921 echo timestamp
> conftestfile
922 # Do `set' in a subshell so we don't clobber the current shell's
923 # arguments. Must try -L first in case configure is actually a
924 # symlink; some systems play weird games with the mod time of symlinks
925 # (eg FreeBSD returns the mod time of the symlink's containing
928 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
929 if test "$*" = "X"; then
931 set X
`ls -t $srcdir/configure conftestfile`
933 if test "$*" != "X $srcdir/configure conftestfile" \
934 && test "$*" != "X conftestfile $srcdir/configure"; then
936 # If neither matched, then we have a broken ls. This can happen
937 # if, for instance, CONFIG_SHELL is bash and it inherits a
938 # broken ls alias from the environment. This has actually
939 # happened. Such a system could not be considered "sane".
940 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
941 alias in your environment" 1>&2; exit 1; }
944 test "$2" = conftestfile
950 { echo "configure: error: newly created file is older than distributed files!
951 Check your system clock" 1>&2; exit 1; }
954 echo "$ac_t""yes" 1>&6
955 if test "$program_transform_name" = s
,x
,x
,; then
956 program_transform_name
=
958 # Double any \ or $. echo might interpret backslashes.
959 cat <<\EOF_SED
> conftestsed
960 s
,\\,\\\\,g
; s
,\$
,$$
,g
962 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
965 test "$program_prefix" != NONE
&&
966 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
967 # Use a double $ so make ignores it.
968 test "$program_suffix" != NONE
&&
969 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
971 # sed with no file args requires a program.
972 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
974 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
975 echo "configure:976: checking whether ${MAKE-make} sets \${MAKE}" >&5
976 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
977 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 cat > conftestmake
<<\EOF
982 @
echo 'ac_maketemp="${MAKE}"'
984 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
985 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
986 if test -n "$ac_maketemp"; then
987 eval ac_cv_prog_make_
${ac_make}_set
=yes
989 eval ac_cv_prog_make_
${ac_make}_set
=no
993 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
994 echo "$ac_t""yes" 1>&6
997 echo "$ac_t""no" 1>&6
998 SET_MAKE
="MAKE=${MAKE-make}"
1006 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1007 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1009 cat >> confdefs.h
<<EOF
1010 #define PACKAGE "$PACKAGE"
1013 cat >> confdefs.h
<<EOF
1014 #define VERSION "$VERSION"
1019 missing_dir
=`cd $ac_aux_dir && pwd`
1020 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1021 echo "configure:1022: checking for working aclocal" >&5
1022 # Run test in a subshell; some versions of sh will print an error if
1023 # an executable is not found, even if stderr is redirected.
1024 # Redirect stdin to placate older versions of autoconf. Sigh.
1025 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1027 echo "$ac_t""found" 1>&6
1029 ACLOCAL
="$missing_dir/missing aclocal"
1030 echo "$ac_t""missing" 1>&6
1033 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1034 echo "configure:1035: checking for working autoconf" >&5
1035 # Run test in a subshell; some versions of sh will print an error if
1036 # an executable is not found, even if stderr is redirected.
1037 # Redirect stdin to placate older versions of autoconf. Sigh.
1038 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1040 echo "$ac_t""found" 1>&6
1042 AUTOCONF
="$missing_dir/missing autoconf"
1043 echo "$ac_t""missing" 1>&6
1046 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1047 echo "configure:1048: checking for working automake" >&5
1048 # Run test in a subshell; some versions of sh will print an error if
1049 # an executable is not found, even if stderr is redirected.
1050 # Redirect stdin to placate older versions of autoconf. Sigh.
1051 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1053 echo "$ac_t""found" 1>&6
1055 AUTOMAKE
="$missing_dir/missing automake"
1056 echo "$ac_t""missing" 1>&6
1059 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1060 echo "configure:1061: checking for working autoheader" >&5
1061 # Run test in a subshell; some versions of sh will print an error if
1062 # an executable is not found, even if stderr is redirected.
1063 # Redirect stdin to placate older versions of autoconf. Sigh.
1064 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1065 AUTOHEADER
=autoheader
1066 echo "$ac_t""found" 1>&6
1068 AUTOHEADER
="$missing_dir/missing autoheader"
1069 echo "$ac_t""missing" 1>&6
1072 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1073 echo "configure:1074: checking for working makeinfo" >&5
1074 # Run test in a subshell; some versions of sh will print an error if
1075 # an executable is not found, even if stderr is redirected.
1076 # Redirect stdin to placate older versions of autoconf. Sigh.
1077 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1079 echo "$ac_t""found" 1>&6
1081 MAKEINFO
="$missing_dir/missing makeinfo"
1082 echo "$ac_t""missing" 1>&6
1087 WX_MAJOR_VERSION_NUMBER
=2
1088 WX_MINOR_VERSION_NUMBER
=1
1092 LIBOBJS
="$LIBOBJS common/extended.o"
1116 DEFAULT_wxUSE_MOTIF
=0
1122 DEFAULT_wxUSE_MOTIF
=1
1123 cat >> confdefs.h
<<\EOF
1130 cat >> confdefs.h
<<\EOF
1135 if test "x$TMP" = "xalpha"; then
1137 cat >> confdefs.h
<<\EOF
1144 *-*-irix5* | *-*-irix6* )
1147 cat >> confdefs.h
<<\EOF
1151 cat >> confdefs.h
<<\EOF
1155 DEFAULT_wxUSE_MOTIF
=1
1161 cat >> confdefs.h
<<\EOF
1165 cat >> confdefs.h
<<\EOF
1166 #define __SOLARIS__ 1
1169 cat >> confdefs.h
<<\EOF
1173 DEFAULT_wxUSE_MOTIF
=1
1179 cat >> confdefs.h
<<\EOF
1183 cat >> confdefs.h
<<\EOF
1187 cat >> confdefs.h
<<\EOF
1191 DEFAULT_wxUSE_MOTIF
=1
1193 *-*-freebsd* | *-*-netbsd*)
1196 cat >> confdefs.h
<<\EOF
1197 #define __FREEBSD__ 1
1200 cat >> confdefs.h
<<\EOF
1209 cat >> confdefs.h
<<\EOF
1213 cat >> confdefs.h
<<\EOF
1217 DEFAULT_wxUSE_MOTIF
=1
1222 cat >> confdefs.h
<<\EOF
1226 cat >> confdefs.h
<<\EOF
1230 DEFAULT_wxUSE_MOTIF
=1
1235 cat >> confdefs.h
<<\EOF
1239 cat >> confdefs.h
<<\EOF
1243 DEFAULT_wxUSE_MOTIF
=1
1249 cat >> confdefs.h
<<\EOF
1253 cat >> confdefs.h
<<\EOF
1257 cat >> confdefs.h
<<\EOF
1261 DEFAULT_wxUSE_MOTIF
=1
1264 { echo "configure: error: unknown system type $(host)." 1>&2; exit 1; }
1267 if test "$USE_UNIX" = 1 ; then
1269 cat >> confdefs.h
<<\EOF
1273 EXTRA_VPATH
="$EXTRA_VPATH:\$(srcdir)/unix"
1274 INCLUDE_SUBDIRS
="$INCLUDE_SUBDIRS unix"
1277 if test "$USE_LINUX" = 1; then
1278 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1279 echo "configure:1280: checking for gettext in -lc" >&5
1280 ac_lib_var
=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 ac_save_LIBS
="$LIBS"
1286 cat > conftest.
$ac_ext <<EOF
1287 #line 1288 "configure"
1288 #include "confdefs.h"
1289 /* Override any gcc2 internal prototype to avoid an error. */
1290 /* We use char because int might match the return type of a gcc2
1291 builtin and then its argument prototype would still apply. */
1298 if { (eval echo configure
:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1300 eval "ac_cv_lib_$ac_lib_var=yes"
1302 echo "configure: failed program was:" >&5
1303 cat conftest.
$ac_ext >&5
1305 eval "ac_cv_lib_$ac_lib_var=no"
1308 LIBS
="$ac_save_LIBS"
1311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1312 echo "$ac_t""yes" 1>&6
1313 cat >> confdefs.h
<<\EOF
1314 #define wxHAVE_GLIBC2 1
1318 echo "$ac_t""no" 1>&6
1323 cat >> confdefs.h
<<\EOF
1332 if test $DEBUG_CONFIGURE = 1; then
1333 DEFAULT_wxUSE_THREADS
=yes
1335 DEFAULT_wxUSE_OPTIMISE
=no
1336 DEFAULT_wxUSE_PROFILE
=no
1337 DEFAULT_wxUSE_DEBUG_FLAG
=yes
1338 DEFAULT_wxUSE_DEBUG_INFO
=yes
1339 DEFAULT_wxUSE_DEBUG_GDB
=yes
1340 DEFAULT_wxUSE_MEM_TRACING
=no
1341 DEFAULT_wxUSE_DMALLOC
=no
1342 DEFAULT_wxUSE_APPLE_IEEE
=no
1344 DEFAULT_wxUSE_LOG
=yes
1346 DEFAULT_wxUSE_GUI
=yes
1348 DEFAULT_wxUSE_ZLIB
=no
1349 DEFAULT_wxUSE_LIBPNG
=no
1350 DEFAULT_wxUSE_LIBGIF
=no
1351 DEFAULT_wxUSE_LIBJPEG
=no
1352 DEFAULT_wxUSE_ODBC
=no
1354 DEFAULT_wxUSE_FILE
=no
1355 DEFAULT_wxUSE_TEXTFILE
=no
1356 DEFAULT_wxUSE_TIMEDATE
=no
1357 DEFAULT_wxUSE_INTL
=no
1358 DEFAULT_wxUSE_CONFIG
=no
1359 DEFAULT_wxUSE_STREAMS
=no
1360 DEFAULT_wxUSE_SOCKETS
=no
1361 DEFAULT_wxUSE_SERIAL
=no
1362 DEFAULT_wxUSE_JOYSTICK
=no
1363 DEFAULT_wxUSE_DYNLIB_CLASS
=no
1364 DEFAULT_wxUSE_LONGLONG
=no
1366 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
=no
1367 DEFAULT_wxUSE_NORMALIZED_PS_FONTS
=no
1368 DEFAULT_wxUSE_POSTSCRIPT
=no
1370 DEFAULT_wxUSE_X_RESOURCES
=no
1371 DEFAULT_wxUSE_CLIPBOARD
=no
1372 DEFAULT_wxUSE_TOOLTIPS
=no
1373 DEFAULT_wxUSE_DRAG_AND_DROP
=no
1374 DEFAULT_wxUSE_SPLINES
=no
1376 DEFAULT_wxUSE_MDI_ARCHITECTURE
=no
1377 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
=no
1378 DEFAULT_wxUSE_PRINTING_ARCHITECTURE
=no
1380 DEFAULT_wxUSE_PROLOGIO
=no
1381 DEFAULT_wxUSE_RESOURCES
=no
1382 DEFAULT_wxUSE_CONSTRAINTS
=no
1383 DEFAULT_wxUSE_IPC
=no
1384 DEFAULT_wxUSE_HELP
=no
1385 DEFAULT_wxUSE_WXTREE
=no
1386 DEFAULT_wxUSE_METAFILE
=no
1388 DEFAULT_wxUSE_COMMONDLGS
=no
1389 DEFAULT_wxUSE_MINIFRAME
=no
1390 DEFAULT_wxUSE_VALIDATORS
=yes
1392 DEFAULT_wxUSE_ACCEL
=no
1393 DEFAULT_wxUSE_CARET
=no
1394 DEFAULT_wxUSE_BMPBUTTON
=no
1395 DEFAULT_wxUSE_CHECKBOX
=no
1396 DEFAULT_wxUSE_CHECKLST
=no
1397 DEFAULT_wxUSE_COMBOBOX
=no
1398 DEFAULT_wxUSE_GAUGE
=no
1399 DEFAULT_wxUSE_GRID
=no
1400 DEFAULT_wxUSE_IMAGLIST
=no
1401 DEFAULT_wxUSE_LISTBOX
=no
1402 DEFAULT_wxUSE_LISTCTRL
=no
1403 DEFAULT_wxUSE_NOTEBOOK
=no
1404 DEFAULT_wxUSE_RADIOBOX
=no
1405 DEFAULT_wxUSE_RADIOBTN
=no
1406 DEFAULT_wxUSE_SASHWINDOW
=no
1407 DEFAULT_wxUSE_SCROLLBAR
=no
1408 DEFAULT_wxUSE_SLIDER
=no
1409 DEFAULT_wxUSE_SPINBTN
=no
1410 DEFAULT_wxUSE_SPLITTER
=no
1411 DEFAULT_wxUSE_STATBMP
=no
1412 DEFAULT_wxUSE_STATBOX
=no
1413 DEFAULT_wxUSE_STATLINE
=no
1414 DEFAULT_wxUSE_STATUSBAR
=yes
1415 DEFAULT_wxUSE_TABDIALOG
=no
1416 DEFAULT_wxUSE_TOOLBAR
=no
1417 DEFAULT_wxUSE_TREECTRL
=no
1419 DEFAULT_wxUSE_UNICODE
=no
1420 DEFAULT_wxUSE_WCSRTOMBS
=no
1422 DEFAULT_wxUSE_THREADS
=yes
1424 DEFAULT_wxUSE_OPTIMISE
=yes
1425 DEFAULT_wxUSE_PROFILE
=no
1426 DEFAULT_wxUSE_DEBUG_FLAG
=no
1427 DEFAULT_wxUSE_DEBUG_INFO
=no
1428 DEFAULT_wxUSE_DEBUG_GDB
=no
1429 DEFAULT_wxUSE_MEM_TRACING
=no
1430 DEFAULT_wxUSE_DMALLOC
=no
1431 DEFAULT_wxUSE_APPLE_IEEE
=yes
1433 DEFAULT_wxUSE_LOG
=yes
1435 DEFAULT_wxUSE_GUI
=yes
1437 DEFAULT_wxUSE_ZLIB
=yes
1438 DEFAULT_wxUSE_LIBPNG
=yes
1439 DEFAULT_wxUSE_LIBGIF
=yes
1440 DEFAULT_wxUSE_LIBJPEG
=yes
1441 DEFAULT_wxUSE_ODBC
=no
1443 DEFAULT_wxUSE_FILE
=yes
1444 DEFAULT_wxUSE_TEXTFILE
=yes
1445 DEFAULT_wxUSE_TIMEDATE
=yes
1446 DEFAULT_wxUSE_INTL
=yes
1447 DEFAULT_wxUSE_CONFIG
=yes
1448 DEFAULT_wxUSE_STREAMS
=yes
1449 DEFAULT_wxUSE_SOCKETS
=yes
1450 DEFAULT_wxUSE_SERIAL
=yes
1451 DEFAULT_wxUSE_JOYSTICK
=yes
1452 DEFAULT_wxUSE_DYNLIB_CLASS
=yes
1453 DEFAULT_wxUSE_LONGLONG
=no
1455 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
=yes
1456 DEFAULT_wxUSE_NORMALIZED_PS_FONTS
=yes
1457 DEFAULT_wxUSE_POSTSCRIPT
=yes
1459 DEFAULT_wxUSE_X_RESOURCES
=no
1460 DEFAULT_wxUSE_CLIPBOARD
=yes
1461 DEFAULT_wxUSE_TOOLTIPS
=yes
1462 DEFAULT_wxUSE_DRAG_AND_DROP
=yes
1463 DEFAULT_wxUSE_SPLINES
=yes
1465 DEFAULT_wxUSE_MDI_ARCHITECTURE
=yes
1466 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
=yes
1467 DEFAULT_wxUSE_PRINTING_ARCHITECTURE
=yes
1469 DEFAULT_wxUSE_PROLOGIO
=yes
1470 DEFAULT_wxUSE_RESOURCES
=yes
1471 DEFAULT_wxUSE_CONSTRAINTS
=yes
1472 DEFAULT_wxUSE_IPC
=yes
1473 DEFAULT_wxUSE_HELP
=yes
1474 DEFAULT_wxUSE_WXTREE
=yes
1475 DEFAULT_wxUSE_METAFILE
=yes
1477 DEFAULT_wxUSE_COMMONDLGS
=yes
1478 DEFAULT_wxUSE_MINIFRAME
=yes
1479 DEFAULT_wxUSE_VALIDATORS
=yes
1481 DEFAULT_wxUSE_ACCEL
=yes
1482 DEFAULT_wxUSE_CARET
=yes
1483 DEFAULT_wxUSE_BMPBUTTON
=yes
1484 DEFAULT_wxUSE_CHECKBOX
=yes
1485 DEFAULT_wxUSE_CHECKLST
=yes
1486 DEFAULT_wxUSE_COMBOBOX
=yes
1487 DEFAULT_wxUSE_GAUGE
=yes
1488 DEFAULT_wxUSE_GRID
=yes
1489 DEFAULT_wxUSE_IMAGLIST
=yes
1490 DEFAULT_wxUSE_LISTBOX
=yes
1491 DEFAULT_wxUSE_LISTCTRL
=yes
1492 DEFAULT_wxUSE_NOTEBOOK
=yes
1493 DEFAULT_wxUSE_RADIOBOX
=yes
1494 DEFAULT_wxUSE_RADIOBTN
=yes
1495 DEFAULT_wxUSE_SASHWINDOW
=yes
1496 DEFAULT_wxUSE_SCROLLBAR
=yes
1497 DEFAULT_wxUSE_SLIDER
=yes
1498 DEFAULT_wxUSE_SPINBTN
=yes
1499 DEFAULT_wxUSE_SPLITTER
=yes
1500 DEFAULT_wxUSE_STATBMP
=yes
1501 DEFAULT_wxUSE_STATBOX
=yes
1502 DEFAULT_wxUSE_STATLINE
=yes
1503 DEFAULT_wxUSE_STATUSBAR
=yes
1504 DEFAULT_wxUSE_TABDIALOG
=no
1505 DEFAULT_wxUSE_TOOLBAR
=yes
1506 DEFAULT_wxUSE_TREECTRL
=yes
1508 DEFAULT_wxUSE_UNICODE
=no
1509 DEFAULT_wxUSE_WCSRTOMBS
=no
1514 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1515 if test "${with_gtk_prefix+set}" = set; then
1516 withval
="$with_gtk_prefix"
1517 gtk_config_prefix
="$withval"
1519 gtk_config_prefix
=""
1522 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1523 if test "${with_gtk_exec_prefix+set}" = set; then
1524 withval
="$with_gtk_exec_prefix"
1525 gtk_config_exec_prefix
="$withval"
1527 gtk_config_exec_prefix
=""
1530 # Check whether --with-gtk or --without-gtk was given.
1531 if test "${with_gtk+set}" = set; then
1533 wxUSE_GTK
="$withval"
1538 # Check whether --with-motif or --without-motif was given.
1539 if test "${with_motif+set}" = set; then
1540 withval
="$with_motif"
1541 wxUSE_MOTIF
="$withval"
1546 # Check whether --with-cygwin or --without-cygwin was given.
1547 if test "${with_cygwin+set}" = set; then
1548 withval
="$with_cygwin"
1549 wxUSE_CYGWIN
="$withval"
1554 # Check whether --with-mingw or --without-mingw was given.
1555 if test "${with_mingw+set}" = set; then
1556 withval
="$with_mingw"
1557 wxUSE_MINGW
="$withval"
1563 # Check whether --with-dmalloc or --without-dmalloc was given.
1564 if test "${with_dmalloc+set}" = set; then
1565 withval
="$with_dmalloc"
1566 wxUSE_DMALLOC
="$withval"
1568 wxUSE_DMALLOC
=$DEFAULT_wxUSE_DMALLOC
1571 # Check whether --with-zlib or --without-zlib was given.
1572 if test "${with_zlib+set}" = set; then
1573 withval
="$with_zlib"
1574 wxUSE_ZLIB
="$withval"
1576 wxUSE_ZLIB
=$DEFAULT_wxUSE_ZLIB
1579 # Check whether --with-libpng or --without-libpng was given.
1580 if test "${with_libpng+set}" = set; then
1581 withval
="$with_libpng"
1582 wxUSE_LIBPNG
="$withval"
1584 wxUSE_LIBPNG
=$DEFAULT_wxUSE_LIBPNG
1587 # Check whether --with-libgif or --without-libgif was given.
1588 if test "${with_libgif+set}" = set; then
1589 withval
="$with_libgif"
1590 wxUSE_LIBGIF
="${withval}"
1592 wxUSE_LIBGIF
=$DEFAULT_wxUSE_LIBGIF
1595 # Check whether --with-libjpeg or --without-libjpeg was given.
1596 if test "${with_libjpeg+set}" = set; then
1597 withval
="$with_libjpeg"
1598 wxUSE_LIBJPEG
="${withval}"
1600 wxUSE_LIBJPEG
=$DEFAULT_wxUSE_LIBJPEG
1603 # Check whether --with-opengl or --without-opengl was given.
1604 if test "${with_opengl+set}" = set; then
1605 withval
="$with_opengl"
1606 wxUSE_OPENGL
="$withval"
1608 wxUSE_OPENGL
=$DEFAULT_wxUSE_OPENGL
1611 # Check whether --with-odbc or --without-odbc was given.
1612 if test "${with_odbc+set}" = set; then
1613 withval
="$with_odbc"
1614 wxUSE_ODBC
="$withval"
1616 wxUSE_ODBC
=$DEFAULT_wxUSE_ODBC
1622 # Check whether --enable-optimise or --disable-optimise was given.
1623 if test "${enable_optimise+set}" = set; then
1624 enableval
="$enable_optimise"
1625 wxUSE_OPTIMISE
="$enableval"
1627 wxUSE_OPTIMISE
=$DEFAULT_wxUSE_OPTIMISE
1630 # Check whether --enable-optimize or --disable-optimize was given.
1631 if test "${enable_optimize+set}" = set; then
1632 enableval
="$enable_optimize"
1633 wxUSE_OPTIMISE
="$enableval"
1635 wxUSE_OPTIMISE
=$DEFAULT_wxUSE_OPTIMISE
1638 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1639 if test "${enable_debug_flag+set}" = set; then
1640 enableval
="$enable_debug_flag"
1641 wxUSE_DEBUG_FLAG
="$enableval"
1643 wxUSE_DEBUG_FLAG
=$DEFAULT_wxUSE_DEBUG_FLAG
1646 # Check whether --enable-debug_info or --disable-debug_info was given.
1647 if test "${enable_debug_info+set}" = set; then
1648 enableval
="$enable_debug_info"
1649 wxUSE_DEBUG_INFO
="$enableval"
1651 wxUSE_DEBUG_INFO
=$DEFAULT_wxUSE_DEBUG_INFO
1654 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
1655 if test "${enable_debug_gdb+set}" = set; then
1656 enableval
="$enable_debug_gdb"
1657 wxUSE_DEBUG_GDB
="$enableval"
1659 wxUSE_DEBUG_GDB
=$DEFAULT_wxUSE_DEBUG_GDB
1662 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
1663 if test "${enable_debug_cntxt+set}" = set; then
1664 enableval
="$enable_debug_cntxt"
1665 cat >> confdefs.h
<<\EOF
1666 #define wxUSE_DEBUG_CONTEXT 1
1671 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
1672 if test "${enable_mem_tracing+set}" = set; then
1673 enableval
="$enable_mem_tracing"
1674 wxUSE_MEM_TRACING
="$enableval"
1676 wxUSE_MEM_TRACING
=$DEFAULT_wxUSE_MEM_TRACING
1679 # Check whether --enable-profile or --disable-profile was given.
1680 if test "${enable_profile+set}" = set; then
1681 enableval
="$enable_profile"
1682 wxUSE_PROFILE
="$enableval"
1684 wxUSE_PROFILE
=$DEFAULT_wxUSE_PROFILE
1689 # Check whether --enable-gui or --disable-gui was given.
1690 if test "${enable_gui+set}" = set; then
1691 enableval
="$enable_gui"
1692 wxUSE_GUI
="$enableval"
1694 wxUSE_GUI
=$DEFAULT_wxUSE_GUI
1699 # Check whether --enable-intl or --disable-intl was given.
1700 if test "${enable_intl+set}" = set; then
1701 enableval
="$enable_intl"
1702 wxUSE_INTL
="$enableval"
1704 wxUSE_INTL
=$DEFAULT_wxUSE_INTL
1707 # Check whether --enable-config or --disable-config was given.
1708 if test "${enable_config+set}" = set; then
1709 enableval
="$enable_config"
1710 wxUSE_CONFIG
="$enableval"
1712 wxUSE_CONFIG
=$DEFAULT_wxUSE_CONFIG
1715 # Check whether --enable-sockets or --disable-sockets was given.
1716 if test "${enable_sockets+set}" = set; then
1717 enableval
="$enable_sockets"
1718 wxUSE_SOCKETS
="$enableval"
1720 wxUSE_SOCKETS
=$DEFAULT_wxUSE_SOCKETS
1723 # Check whether --enable-ipc or --disable-ipc was given.
1724 if test "${enable_ipc+set}" = set; then
1725 enableval
="$enable_ipc"
1726 wxUSE_IPC
="$enableval"
1728 wxUSE_IPC
=$DEFAULT_wxUSE_IPC
1731 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
1732 if test "${enable_apple_ieee+set}" = set; then
1733 enableval
="$enable_apple_ieee"
1734 wxUSE_APPLE_IEEE
="$enableval"
1736 wxUSE_APPLE_IEEE
=$DEFAULT_wxUSE_APPLE_IEEE
1739 # Check whether --enable-timedate or --disable-timedate was given.
1740 if test "${enable_timedate+set}" = set; then
1741 enableval
="$enable_timedate"
1742 wxUSE_TIMEDATE
="$enableval"
1744 wxUSE_TIMEDATE
=$DEFAULT_wxUSE_TIMEDATE
1747 # Check whether --enable-fraction or --disable-fraction was given.
1748 if test "${enable_fraction+set}" = set; then
1749 enableval
="$enable_fraction"
1750 wxUSE_FRACTION
="$enableval"
1752 wxUSE_FRACTION
=$DEFAULT_wxUSE_FRACTION
1755 # Check whether --enable-dynlib or --disable-dynlib was given.
1756 if test "${enable_dynlib+set}" = set; then
1757 enableval
="$enable_dynlib"
1758 wxUSE_DYNLIB_CLASS
="$enableval"
1760 wxUSE_DYNLIB_CLASS
=$DEFAULT_wxUSE_DYNLIB_CLASS
1763 # Check whether --enable-longlong or --disable-longlong was given.
1764 if test "${enable_longlong+set}" = set; then
1765 enableval
="$enable_longlong"
1766 wxUSE_LONGLONG
="${enableval}"
1768 wxUSE_LONGLONG
=$DEFAULT_wxUSE_LONGLONG
1771 # Check whether --enable-log or --disable-log was given.
1772 if test "${enable_log+set}" = set; then
1773 enableval
="$enable_log"
1774 wxUSE_LOG
="$enableval"
1776 wxUSE_LOG
=$DEFAULT_wxUSE_LOG
1779 # Check whether --enable-streams or --disable-streams was given.
1780 if test "${enable_streams+set}" = set; then
1781 enableval
="$enable_streams"
1782 wxUSE_STREAMS
="$enableval"
1784 wxUSE_STREAMS
=$DEFAULT_wxUSE_STREAMS
1787 # Check whether --enable-file or --disable-file was given.
1788 if test "${enable_file+set}" = set; then
1789 enableval
="$enable_file"
1790 wxUSE_FILE
="$enableval"
1792 wxUSE_FILE
=$DEFAULT_wxUSE_FILE
1795 # Check whether --enable-textfile or --disable-textfile was given.
1796 if test "${enable_textfile+set}" = set; then
1797 enableval
="$enable_textfile"
1798 wxUSE_TEXTFILE
="$enableval"
1800 wxUSE_TEXTFILE
=$DEFAULT_wxUSE_TEXTFILE
1803 # Check whether --enable-unicode or --disable-unicode was given.
1804 if test "${enable_unicode+set}" = set; then
1805 enableval
="$enable_unicode"
1806 wxUSE_UNICODE
="$enableval"
1808 wxUSE_UNICODE
=$DEFAULT_wxUSE_UNICODE
1811 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
1812 if test "${enable_wcsrtombs+set}" = set; then
1813 enableval
="$enable_wcsrtombs"
1814 wxUSE_WCSRTOMBS
="$enableval"
1816 wxUSE_WCSRTOMBS
=$DEFAULT_wxUSE_WCSRTOMBS
1819 # Check whether --enable-joystick or --disable-joystick was given.
1820 if test "${enable_joystick+set}" = set; then
1821 enableval
="$enable_joystick"
1822 wxUSE_JOYSTICK
="$enableval"
1824 wxUSE_JOYSTICK
=$DEFAULT_wxUSE_JOYSTICK
1829 # Check whether --enable-threads or --disable-threads was given.
1830 if test "${enable_threads+set}" = set; then
1831 enableval
="$enable_threads"
1832 wxUSE_THREADS
="${enableval}"
1834 wxUSE_THREADS
=$DEFAULT_wxUSE_THREADS
1837 # Check whether --enable-serial or --disable-serial was given.
1838 if test "${enable_serial+set}" = set; then
1839 enableval
="$enable_serial"
1840 wxUSE_SERIAL
="${enableval}"
1842 wxUSE_SERIAL
=$DEFAULT_wxUSE_SERIAL
1847 # Check whether --enable-docview or --disable-docview was given.
1848 if test "${enable_docview+set}" = set; then
1849 enableval
="$enable_docview"
1850 wxUSE_DOC_VIEW_ARCHITECTURE
="$enableval"
1852 wxUSE_DOC_VIEW_ARCHITECTURE
=$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
1855 # Check whether --enable-help or --disable-help was given.
1856 if test "${enable_help+set}" = set; then
1857 enableval
="$enable_help"
1858 wxUSE_HELP
="$enableval"
1860 wxUSE_HELP
=$DEFAULT_wxUSE_HELP
1863 # Check whether --enable-constraints or --disable-constraints was given.
1864 if test "${enable_constraints+set}" = set; then
1865 enableval
="$enable_constraints"
1866 wxUSE_CONSTRAINTS
="$enableval"
1868 wxUSE_CONSTRAINTS
=$DEFAULT_wxUSE_CONSTRAINTS
1871 # Check whether --enable-printarch or --disable-printarch was given.
1872 if test "${enable_printarch+set}" = set; then
1873 enableval
="$enable_printarch"
1874 wxUSE_PRINTING_ARCHITECTURE
="${enableval}"
1876 wxUSE_PRINTING_ARCHITECTURE
=$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
1879 # Check whether --enable-mdi or --disable-mdi was given.
1880 if test "${enable_mdi+set}" = set; then
1881 enableval
="$enable_mdi"
1882 wxUSE_MDI_ARCHITECTURE
="${enableval}"
1884 wxUSE_MDI_ARCHITECTURE
=$DEFAULT_wxUSE_MDI_ARCHITECTURE
1888 # Check whether --enable-postscript or --disable-postscript was given.
1889 if test "${enable_postscript+set}" = set; then
1890 enableval
="$enable_postscript"
1891 wxUSE_POSTSCRIPT
="$enableval"
1893 wxUSE_POSTSCRIPT
=$DEFAULT_wxUSE_POSTSCRIPT
1898 # Check whether --enable-prologio or --disable-prologio was given.
1899 if test "${enable_prologio+set}" = set; then
1900 enableval
="$enable_prologio"
1901 wxUSE_PROLOGIO
="${enableval}"
1903 wxUSE_PROLOGIO
=$DEFAULT_wxUSE_PROLOGIO
1906 # Check whether --enable-resources or --disable-resources was given.
1907 if test "${enable_resources+set}" = set; then
1908 enableval
="$enable_resources"
1909 wxUSE_RESOURCES
="${enableval}"
1911 wxUSE_RESOURCES
=$DEFAULT_wxUSE_RESOURCES
1915 # Check whether --enable-xresources or --disable-xresources was given.
1916 if test "${enable_xresources+set}" = set; then
1917 enableval
="$enable_xresources"
1918 wxUSE_X_RESOURCES
="${enableval}"
1920 wxUSE_X_RESOURCES
=$DEFAULT_wxUSE_X_RESOURCES
1923 # Check whether --enable-clipboard or --disable-clipboard was given.
1924 if test "${enable_clipboard+set}" = set; then
1925 enableval
="$enable_clipboard"
1926 wxUSE_CLIPBOARD
="${enableval}"
1928 wxUSE_CLIPBOARD
=$DEFAULT_wxUSE_CLIPBOARD
1931 # Check whether --enable-dnd or --disable-dnd was given.
1932 if test "${enable_dnd+set}" = set; then
1933 enableval
="$enable_dnd"
1934 wxUSE_DRAG_AND_DROP
="${enableval}"
1936 wxUSE_DRAG_AND_DROP
=$DEFAULT_wxUSE_DRAG_AND_DROP
1940 # Check whether --enable-wxtree or --disable-wxtree was given.
1941 if test "${enable_wxtree+set}" = set; then
1942 enableval
="$enable_wxtree"
1943 wxUSE_WXTREE
="${enableval}"
1945 wxUSE_WXTREE
=$DEFAULT_wxUSE_WXTREE
1950 # Check whether --enable-controls or --disable-controls was given.
1951 if test "${enable_controls+set}" = set; then
1952 enableval
="$enable_controls"
1953 wxUSE_CONTROLS
="${enableval}"
1957 if test "$wxUSE_CONTROLS" = "yes"; then
1958 DEFAULT_wxUSE_ACCEL
=yes
1959 DEFAULT_wxUSE_CARET
=yes
1960 DEFAULT_wxUSE_COMBOBOX
=yes
1961 DEFAULT_wxUSE_BMPBUTTON
=yes
1962 DEFAULT_wxUSE_CHECKBOX
=yes
1963 DEFAULT_wxUSE_CHECKLISTBOX
=yes
1964 DEFAULT_wxUSE_GAUGE
=yes
1965 DEFAULT_wxUSE_GRID
=yes
1966 DEFAULT_wxUSE_IMAGLIST
=yes
1967 DEFAULT_wxUSE_LISTBOX
=yes
1968 DEFAULT_wxUSE_LISTCTRL
=yes
1969 DEFAULT_wxUSE_NOTEBOOK
=yes
1970 DEFAULT_wxUSE_RADIOBOX
=yes
1971 DEFAULT_wxUSE_RADIOBTN
=yes
1972 DEFAULT_wxUSE_SASH
=yes
1973 DEFAULT_wxUSE_SCROLLBAR
=yes
1974 DEFAULT_wxUSE_SLIDER
=yes
1975 DEFAULT_wxUSE_SPINBTN
=yes
1976 DEFAULT_wxUSE_SPLITTER
=yes
1977 DEFAULT_wxUSE_STATBMP
=yes
1978 DEFAULT_wxUSE_STATBOX
=yes
1979 DEFAULT_wxUSE_STATLINE
=yes
1980 DEFAULT_wxUSE_STATUSBAR
=yes
1981 DEFAULT_wxUSE_TAB_DIALOG
=yes
1982 DEFAULT_wxUSE_TOOLBAR
=yes
1983 DEFAULT_wxUSE_TOOLTIPS
=yes
1984 DEFAULT_wxUSE_TREECTRL
=yes
1985 elif test "$wxUSE_CONTROLS" = "no"; then
1986 DEFAULT_wxUSE_ACCEL
=no
1987 DEFAULT_wxUSE_CARET
=no
1988 DEFAULT_wxUSE_COMBOBOX
=no
1989 DEFAULT_wxUSE_BMPBUTTON
=no
1990 DEFAULT_wxUSE_CHECKBOX
=no
1991 DEFAULT_wxUSE_CHECKLISTBOX
=no
1992 DEFAULT_wxUSE_GAUGE
=no
1993 DEFAULT_wxUSE_GRID
=no
1994 DEFAULT_wxUSE_IMAGLIST
=no
1995 DEFAULT_wxUSE_LISTBOX
=no
1996 DEFAULT_wxUSE_LISTCTRL
=no
1997 DEFAULT_wxUSE_NOTEBOOK
=no
1998 DEFAULT_wxUSE_RADIOBOX
=no
1999 DEFAULT_wxUSE_RADIOBTN
=no
2000 DEFAULT_wxUSE_SASH
=no
2001 DEFAULT_wxUSE_SCROLLBAR
=no
2002 DEFAULT_wxUSE_SLIDER
=no
2003 DEFAULT_wxUSE_SPINBTN
=no
2004 DEFAULT_wxUSE_SPLITTER
=no
2005 DEFAULT_wxUSE_STATBMP
=no
2006 DEFAULT_wxUSE_STATBOX
=no
2007 DEFAULT_wxUSE_STATLINE
=no
2008 DEFAULT_wxUSE_STATUSBAR
=no
2009 DEFAULT_wxUSE_TAB_DIALOG
=no
2010 DEFAULT_wxUSE_TOOLBAR
=no
2011 DEFAULT_wxUSE_TOOLTIPS
=no
2012 DEFAULT_wxUSE_TREECTRL
=no
2015 # Check whether --enable-accel or --disable-accel was given.
2016 if test "${enable_accel+set}" = set; then
2017 enableval
="$enable_accel"
2018 wxUSE_ACCEL
="${enableval}"
2020 wxUSE_ACCEL
=$DEFAULT_wxUSE_ACCEL
2023 # Check whether --enable-caret or --disable-caret was given.
2024 if test "${enable_caret+set}" = set; then
2025 enableval
="$enable_caret"
2026 wxUSE_CARET
="${enableval}"
2028 wxUSE_CARET
=$DEFAULT_wxUSE_CARET
2031 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
2032 if test "${enable_bmpbutton+set}" = set; then
2033 enableval
="$enable_bmpbutton"
2034 wxUSE_BMPBUTTON
="${enableval}"
2036 wxUSE_BMPBUTTON
=$DEFAULT_wxUSE_BMPBUTTON
2039 # Check whether --enable-checkbox or --disable-checkbox was given.
2040 if test "${enable_checkbox+set}" = set; then
2041 enableval
="$enable_checkbox"
2042 wxUSE_CHECKBOX
="${enableval}"
2044 wxUSE_CHECKBOX
=$DEFAULT_wxUSE_CHECKBOX
2047 # Check whether --enable-checklst or --disable-checklst was given.
2048 if test "${enable_checklst+set}" = set; then
2049 enableval
="$enable_checklst"
2050 wxUSE_CHECKLST
="${enableval}"
2052 wxUSE_CHECKLST
=$DEFAULT_wxUSE_CHECKLST
2055 # Check whether --enable-combobox or --disable-combobox was given.
2056 if test "${enable_combobox+set}" = set; then
2057 enableval
="$enable_combobox"
2058 wxUSE_COMBOBOX
="${enableval}"
2060 wxUSE_COMBOBOX
=$DEFAULT_wxUSE_COMBOBOX
2063 # Check whether --enable-gauge or --disable-gauge was given.
2064 if test "${enable_gauge+set}" = set; then
2065 enableval
="$enable_gauge"
2066 wxUSE_GAUGE
="${enableval}"
2068 wxUSE_GAUGE
=$DEFAULT_wxUSE_GAUGE
2071 # Check whether --enable-grid or --disable-grid was given.
2072 if test "${enable_grid+set}" = set; then
2073 enableval
="$enable_grid"
2074 wxUSE_GRID
="${enableval}"
2076 wxUSE_GRID
=$DEFAULT_wxUSE_GRID
2079 # Check whether --enable-imaglist or --disable-imaglist was given.
2080 if test "${enable_imaglist+set}" = set; then
2081 enableval
="$enable_imaglist"
2082 wxUSE_IMAGLIST
="${enableval}"
2084 wxUSE_IMAGLIST
=$DEFAULT_wxUSE_IMAGLIST
2087 # Check whether --enable-listbox or --disable-listbox was given.
2088 if test "${enable_listbox+set}" = set; then
2089 enableval
="$enable_listbox"
2090 wxUSE_LISTBOX
="${enableval}"
2092 wxUSE_LISTBOX
=$DEFAULT_wxUSE_LISTBOX
2095 # Check whether --enable-listctrl or --disable-listctrl was given.
2096 if test "${enable_listctrl+set}" = set; then
2097 enableval
="$enable_listctrl"
2098 wxUSE_LISTCTRL
="${enableval}"
2100 wxUSE_LISTCTRL
=$DEFAULT_wxUSE_LISTCTRL
2103 # Check whether --enable-notebook or --disable-notebook was given.
2104 if test "${enable_notebook+set}" = set; then
2105 enableval
="$enable_notebook"
2106 wxUSE_NOTEBOOK
="${enableval}"
2108 wxUSE_NOTEBOOK
=$DEFAULT_wxUSE_NOTEBOOK
2111 # Check whether --enable-radiobox or --disable-radiobox was given.
2112 if test "${enable_radiobox+set}" = set; then
2113 enableval
="$enable_radiobox"
2114 wxUSE_RADIOBOX
="${enableval}"
2116 wxUSE_RADIOBOX
=$DEFAULT_wxUSE_RADIOBOX
2119 # Check whether --enable-radiobtn or --disable-radiobtn was given.
2120 if test "${enable_radiobtn+set}" = set; then
2121 enableval
="$enable_radiobtn"
2122 wxUSE_RADIOBTN
="${enableval}"
2124 wxUSE_RADIOBTN
=$DEFAULT_wxUSE_RADIOBTN
2127 # Check whether --enable-sash or --disable-sash was given.
2128 if test "${enable_sash+set}" = set; then
2129 enableval
="$enable_sash"
2130 wxUSE_SASH
="${enableval}"
2132 wxUSE_SASH
=$DEFAULT_wxUSE_SASH
2135 # Check whether --enable-scrollbar or --disable-scrollbar was given.
2136 if test "${enable_scrollbar+set}" = set; then
2137 enableval
="$enable_scrollbar"
2138 wxUSE_SCROLLBAR
="${enableval}"
2140 wxUSE_SCROLLBAR
=$DEFAULT_wxUSE_SCROLLBAR
2143 # Check whether --enable-slider or --disable-slider was given.
2144 if test "${enable_slider+set}" = set; then
2145 enableval
="$enable_slider"
2146 wxUSE_SLIDER
="${enableval}"
2148 wxUSE_SLIDER
=$DEFAULT_wxUSE_SLIDER
2151 # Check whether --enable-spinbtn or --disable-spinbtn was given.
2152 if test "${enable_spinbtn+set}" = set; then
2153 enableval
="$enable_spinbtn"
2154 wxUSE_SPINBTN
="${enableval}"
2156 wxUSE_SPINBTN
=$DEFAULT_wxUSE_SPINBTN
2159 # Check whether --enable-splitter or --disable-splitter was given.
2160 if test "${enable_splitter+set}" = set; then
2161 enableval
="$enable_splitter"
2162 wxUSE_SPLITTER
="${enableval}"
2164 wxUSE_SPLITTER
=$DEFAULT_wxUSE_SPLITTER
2167 # Check whether --enable-statbmp or --disable-statbmp was given.
2168 if test "${enable_statbmp+set}" = set; then
2169 enableval
="$enable_statbmp"
2170 wxUSE_STATBMP
="${enableval}"
2172 wxUSE_STATBMP
=$DEFAULT_wxUSE_STATBMP
2175 # Check whether --enable-statbox or --disable-statbox was given.
2176 if test "${enable_statbox+set}" = set; then
2177 enableval
="$enable_statbox"
2178 wxUSE_STATBOX
="${enableval}"
2180 wxUSE_STATBOX
=$DEFAULT_wxUSE_STATBOX
2183 # Check whether --enable-statline or --disable-statline was given.
2184 if test "${enable_statline+set}" = set; then
2185 enableval
="$enable_statline"
2186 wxUSE_STATLINE
="${enableval}"
2188 wxUSE_STATLINE
=$DEFAULT_wxUSE_STATLINE
2191 # Check whether --enable-statusbar or --disable-statusbar was given.
2192 if test "${enable_statusbar+set}" = set; then
2193 enableval
="$enable_statusbar"
2194 wxUSE_STATUSBAR
="${enableval}"
2196 wxUSE_STATUSBAR
=$DEFAULT_wxUSE_STATUSBAR
2199 # Check whether --enable-tabdialog or --disable-tabdialog was given.
2200 if test "${enable_tabdialog+set}" = set; then
2201 enableval
="$enable_tabdialog"
2202 wxUSE_TABDIALOG
="${enableval}"
2204 wxUSE_TABDIALOG
=$DEFAULT_wxUSE_TABDIALOG
2207 # Check whether --enable-toolbar or --disable-toolbar was given.
2208 if test "${enable_toolbar+set}" = set; then
2209 enableval
="$enable_toolbar"
2210 wxUSE_TOOLBAR
="${enableval}"
2212 wxUSE_TOOLBAR
=$DEFAULT_wxUSE_TOOLBAR
2215 # Check whether --enable-treectrl or --disable-treectrl was given.
2216 if test "${enable_treectrl+set}" = set; then
2217 enableval
="$enable_treectrl"
2218 wxUSE_TREECTRL
="${enableval}"
2220 wxUSE_TREECTRL
=$DEFAULT_wxUSE_TREECTRL
2225 # Check whether --enable-commondlg or --disable-commondlg was given.
2226 if test "${enable_commondlg+set}" = set; then
2227 enableval
="$enable_commondlg"
2228 wxUSE_COMMONDLGS
="${enableval}"
2230 wxUSE_COMMONDLGS
=$DEFAULT_wxUSE_COMMONDLGS
2233 # Check whether --enable-miniframe or --disable-miniframe was given.
2234 if test "${enable_miniframe+set}" = set; then
2235 enableval
="$enable_miniframe"
2236 wxUSE_MINIFRAME
="${enableval}"
2238 wxUSE_MINIFRAME
=$DEFAULT_wxUSE_MINIFRAME
2241 # Check whether --enable-tooltips or --disable-tooltips was given.
2242 if test "${enable_tooltips+set}" = set; then
2243 enableval
="$enable_tooltips"
2244 wxUSE_TOOLTIPS
="${enableval}"
2246 wxUSE_TOOLTIPS
=$DEFAULT_wxUSE_TOOLTIPS
2249 # Check whether --enable-splines or --disable-splines was given.
2250 if test "${enable_splines+set}" = set; then
2251 enableval
="$enable_splines"
2252 wxUSE_SPLINES
="${enableval}"
2254 wxUSE_SPLINES
=$DEFAULT_wxUSE_SPLINES
2257 # Check whether --enable-validators or --disable-validators was given.
2258 if test "${enable_validators+set}" = set; then
2259 enableval
="$enable_validators"
2260 wxUSE_VALIDATORS
="${enableval}"
2262 wxUSE_VALIDATORS
=$DEFAULT_wxUSE_VALIDATORS
2266 NUM_TOOLKITS
="$((${wxUSE_GTK:-0}+${wxUSE_MOTIF:-0}+${wxUSE_MSW:-0}))"
2268 case "$NUM_TOOLKITS" in
2272 if test "$((${DEFAULT_wxUSE_GTK:-0}+${DEFAULT_wxUSE_MOTIF:-0}+${DEFAULT_wxUSE_MSW:-0}))" = 0; then
2273 { echo "configure: error: Please specify a toolkit" 1>&2; exit 1; }
2276 wxUSE_GTK
=$DEFAULT_wxUSE_GTK
2277 wxUSE_MOTIF
=$DEFAULT_wxUSE_MOTIF
2278 wxUSE_MSW
=$DEFAULT_wxUSE_MSW
2281 { echo "configure: error: Please specify at most one toolkit" 1>&2; exit 1; }
2285 cat > confcache
<<\EOF
2286 # This file is a shell script that caches the results of configure
2287 # tests run on this system so they can be shared between configure
2288 # scripts and configure runs. It is not useful on other systems.
2289 # If it contains results you don't want to keep, you may remove or edit it.
2291 # By default, configure uses ./config.cache as the cache file,
2292 # creating it if it does not exist already. You can give configure
2293 # the --cache-file=FILE option to use a different cache file; that is
2294 # what configure does when it calls configure scripts in
2295 # subdirectories, so they share the cache.
2296 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2297 # config.status only pays attention to the cache file if you give it the
2298 # --recheck option to rerun configure.
2301 # The following way of writing the cache mishandles newlines in values,
2302 # but we know of no workaround that is simple, portable, and efficient.
2303 # So, don't put newlines in cache variables' values.
2304 # Ultrix sh set writes to stderr and can't be redirected directly,
2305 # and sets the high bit in the cache file unless we assign to the vars.
2307 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2309 # `set' does not quote correctly, so add quotes (double-quote substitution
2310 # turns \\\\ into \\, and sed turns \\ into \).
2312 -e "s/'/'\\\\''/g" \
2313 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2316 # `set' quotes correctly as required by POSIX, so do not add quotes.
2317 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2320 if cmp -s $cache_file confcache
; then
2323 if test -w $cache_file; then
2324 echo "updating cache $cache_file"
2325 cat confcache
> $cache_file
2327 echo "not updating unwritable cache $cache_file"
2333 if eval "test $host != $build"; then
2334 if eval "test $build != NONE"; then
2337 RANLIB
="$build-ranlib"
2342 # Extract the first word of "gcc", so it can be a program name with args.
2343 set dummy gcc
; ac_word
=$2
2344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2345 echo "configure:2346: checking for $ac_word" >&5
2346 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC
="$CC" # Let the user override the test.
2352 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2354 for ac_dir
in $ac_dummy; do
2355 test -z "$ac_dir" && ac_dir
=.
2356 if test -f $ac_dir/$ac_word; then
2365 if test -n "$CC"; then
2366 echo "$ac_t""$CC" 1>&6
2368 echo "$ac_t""no" 1>&6
2371 if test -z "$CC"; then
2372 # Extract the first word of "cc", so it can be a program name with args.
2373 set dummy cc
; ac_word
=$2
2374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2375 echo "configure:2376: checking for $ac_word" >&5
2376 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC
="$CC" # Let the user override the test.
2382 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2385 for ac_dir
in $ac_dummy; do
2386 test -z "$ac_dir" && ac_dir
=.
2387 if test -f $ac_dir/$ac_word; then
2388 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2389 ac_prog_rejected
=yes
2397 if test $ac_prog_rejected = yes; then
2398 # We found a bogon in the path, so make sure we never use it.
2399 set dummy
$ac_cv_prog_CC
2401 if test $# -gt 0; then
2402 # We chose a different compiler from the bogus one.
2403 # However, it has the same basename, so the bogon will be chosen
2404 # first if we set CC to just the basename; use the full file name.
2406 set dummy
"$ac_dir/$ac_word" "$@"
2414 if test -n "$CC"; then
2415 echo "$ac_t""$CC" 1>&6
2417 echo "$ac_t""no" 1>&6
2420 if test -z "$CC"; then
2421 case "`uname -s`" in
2423 # Extract the first word of "cl", so it can be a program name with args.
2424 set dummy cl
; ac_word
=$2
2425 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2426 echo "configure:2427: checking for $ac_word" >&5
2427 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC
="$CC" # Let the user override the test.
2433 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2435 for ac_dir
in $ac_dummy; do
2436 test -z "$ac_dir" && ac_dir
=.
2437 if test -f $ac_dir/$ac_word; then
2446 if test -n "$CC"; then
2447 echo "$ac_t""$CC" 1>&6
2449 echo "$ac_t""no" 1>&6
2454 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2457 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2458 echo "configure:2459: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2461 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2462 ac_cpp
='$CPP $CPPFLAGS'
2463 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2464 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2465 cross_compiling
=$ac_cv_prog_cc_cross
2467 cat > conftest.
$ac_ext << EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2474 if { (eval echo configure
:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2475 ac_cv_prog_cc_works
=yes
2476 # If we can't run a trivial program, we are probably using a cross compiler.
2477 if (.
/conftest
; exit) 2>/dev
/null
; then
2478 ac_cv_prog_cc_cross
=no
2480 ac_cv_prog_cc_cross
=yes
2483 echo "configure: failed program was:" >&5
2484 cat conftest.
$ac_ext >&5
2485 ac_cv_prog_cc_works
=no
2489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2490 ac_cpp
='$CPP $CPPFLAGS'
2491 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2492 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2493 cross_compiling
=$ac_cv_prog_cc_cross
2495 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2496 if test $ac_cv_prog_cc_works = no
; then
2497 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2499 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2500 echo "configure:2501: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2501 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2502 cross_compiling
=$ac_cv_prog_cc_cross
2504 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2505 echo "configure:2506: checking whether we are using GNU C" >&5
2506 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2507 echo $ac_n "(cached) $ac_c" 1>&6
2509 cat > conftest.c
<<EOF
2514 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
2521 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2523 if test $ac_cv_prog_gcc = yes; then
2529 ac_test_CFLAGS
="${CFLAGS+set}"
2530 ac_save_CFLAGS
="$CFLAGS"
2532 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2533 echo "configure:2534: checking whether ${CC-cc} accepts -g" >&5
2534 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2537 echo 'void f(){}' > conftest.c
2538 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2547 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2548 if test "$ac_test_CFLAGS" = set; then
2549 CFLAGS
="$ac_save_CFLAGS"
2550 elif test $ac_cv_prog_cc_g = yes; then
2551 if test "$GCC" = yes; then
2557 if test "$GCC" = yes; then
2565 CFLAGS
=`echo "$CFLAGS" | sed 's/-g//g'`
2567 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2568 echo "configure:2569: checking how to run the C preprocessor" >&5
2569 # On Suns, sometimes $CPP names a directory.
2570 if test -n "$CPP" && test -d "$CPP"; then
2573 if test -z "$CPP"; then
2574 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2577 # This must be in double quotes, not single quotes, because CPP may get
2578 # substituted into the Makefile and "${CC-cc}" will confuse make.
2580 # On the NeXT, cc -E runs the code through the compiler's parser,
2581 # not just through cpp.
2582 cat > conftest.
$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2588 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2589 { (eval echo configure
:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2590 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2591 if test -z "$ac_err"; then
2595 echo "configure: failed program was:" >&5
2596 cat conftest.
$ac_ext >&5
2598 CPP
="${CC-cc} -E -traditional-cpp"
2599 cat > conftest.
$ac_ext <<EOF
2600 #line 2601 "configure"
2601 #include "confdefs.h"
2605 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2606 { (eval echo configure
:2607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2607 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2608 if test -z "$ac_err"; then
2612 echo "configure: failed program was:" >&5
2613 cat conftest.
$ac_ext >&5
2615 CPP
="${CC-cc} -nologo -E"
2616 cat > conftest.
$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2622 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2623 { (eval echo configure
:2624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2624 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2625 if test -z "$ac_err"; then
2629 echo "configure: failed program was:" >&5
2630 cat conftest.
$ac_ext >&5
2639 ac_cv_prog_CPP
="$CPP"
2641 CPP
="$ac_cv_prog_CPP"
2643 ac_cv_prog_CPP
="$CPP"
2645 echo "$ac_t""$CPP" 1>&6
2648 if test $ac_cv_prog_gcc = yes; then
2649 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2650 echo "configure:2651: checking whether ${CC-cc} needs -traditional" >&5
2651 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2654 ac_pattern
="Autoconf.*'x'"
2655 cat > conftest.
$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2662 egrep "$ac_pattern" >/dev
/null
2>&1; then
2664 ac_cv_prog_gcc_traditional
=yes
2667 ac_cv_prog_gcc_traditional
=no
2672 if test $ac_cv_prog_gcc_traditional = no
; then
2673 cat > conftest.
$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2680 egrep "$ac_pattern" >/dev
/null
2>&1; then
2682 ac_cv_prog_gcc_traditional
=yes
2689 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2690 if test $ac_cv_prog_gcc_traditional = yes; then
2691 CC
="$CC -traditional"
2698 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2699 ac_cpp
='$CXXCPP $CPPFLAGS'
2700 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2701 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2702 cross_compiling
=$ac_cv_prog_cxx_cross
2705 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
2707 # Extract the first word of "$ac_prog", so it can be a program name with args.
2708 set dummy
$ac_prog; ac_word
=$2
2709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_word" >&5
2711 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 if test -n "$CXX"; then
2715 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2717 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2719 for ac_dir
in $ac_dummy; do
2720 test -z "$ac_dir" && ac_dir
=.
2721 if test -f $ac_dir/$ac_word; then
2722 ac_cv_prog_CXX
="$ac_prog"
2729 CXX
="$ac_cv_prog_CXX"
2730 if test -n "$CXX"; then
2731 echo "$ac_t""$CXX" 1>&6
2733 echo "$ac_t""no" 1>&6
2736 test -n "$CXX" && break
2738 test -n "$CXX" || CXX
="gcc"
2741 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2742 echo "configure:2743: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2745 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2746 ac_cpp
='$CXXCPP $CPPFLAGS'
2747 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2748 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2749 cross_compiling
=$ac_cv_prog_cxx_cross
2751 cat > conftest.
$ac_ext << EOF
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2756 int main(){return(0);}
2758 if { (eval echo configure
:2759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2759 ac_cv_prog_cxx_works
=yes
2760 # If we can't run a trivial program, we are probably using a cross compiler.
2761 if (.
/conftest
; exit) 2>/dev
/null
; then
2762 ac_cv_prog_cxx_cross
=no
2764 ac_cv_prog_cxx_cross
=yes
2767 echo "configure: failed program was:" >&5
2768 cat conftest.
$ac_ext >&5
2769 ac_cv_prog_cxx_works
=no
2773 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2774 ac_cpp
='$CXXCPP $CPPFLAGS'
2775 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2776 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2777 cross_compiling
=$ac_cv_prog_cxx_cross
2779 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2780 if test $ac_cv_prog_cxx_works = no
; then
2781 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2783 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2784 echo "configure:2785: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2785 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2786 cross_compiling
=$ac_cv_prog_cxx_cross
2788 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2789 echo "configure:2790: checking whether we are using GNU C++" >&5
2790 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2793 cat > conftest.C
<<EOF
2798 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:2799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
2805 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2807 if test $ac_cv_prog_gxx = yes; then
2813 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
2814 ac_save_CXXFLAGS
="$CXXFLAGS"
2816 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2817 echo "configure:2818: checking whether ${CXX-g++} accepts -g" >&5
2818 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 echo 'void f(){}' > conftest.cc
2822 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2823 ac_cv_prog_cxx_g
=yes
2831 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2832 if test "$ac_test_CXXFLAGS" = set; then
2833 CXXFLAGS
="$ac_save_CXXFLAGS"
2834 elif test $ac_cv_prog_cxx_g = yes; then
2835 if test "$GXX" = yes; then
2841 if test "$GXX" = yes; then
2849 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2850 echo "configure:2851: checking how to run the C++ preprocessor" >&5
2851 if test -z "$CXXCPP"; then
2852 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2856 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2857 ac_cpp
='$CXXCPP $CPPFLAGS'
2858 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2859 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2860 cross_compiling
=$ac_cv_prog_cxx_cross
2861 CXXCPP
="${CXX-g++} -E"
2862 cat > conftest.
$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2867 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2868 { (eval echo configure
:2869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2869 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2870 if test -z "$ac_err"; then
2874 echo "configure: failed program was:" >&5
2875 cat conftest.
$ac_ext >&5
2880 ac_cv_prog_CXXCPP
="$CXXCPP"
2882 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2883 ac_cpp
='$CXXCPP $CPPFLAGS'
2884 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2885 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2886 cross_compiling
=$ac_cv_prog_cxx_cross
2889 CXXCPP
="$ac_cv_prog_CXXCPP"
2890 echo "$ac_t""$CXXCPP" 1>&6
2893 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-g//g'`
2896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2897 ac_cpp
='$CPP $CPPFLAGS'
2898 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2899 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2900 cross_compiling
=$ac_cv_prog_cc_cross
2903 # Extract the first word of "ranlib", so it can be a program name with args.
2904 set dummy ranlib
; ac_word
=$2
2905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2906 echo "configure:2907: checking for $ac_word" >&5
2907 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2910 if test -n "$RANLIB"; then
2911 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2913 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2915 for ac_dir
in $ac_dummy; do
2916 test -z "$ac_dir" && ac_dir
=.
2917 if test -f $ac_dir/$ac_word; then
2918 ac_cv_prog_RANLIB
="ranlib"
2923 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2926 RANLIB
="$ac_cv_prog_RANLIB"
2927 if test -n "$RANLIB"; then
2928 echo "$ac_t""$RANLIB" 1>&6
2930 echo "$ac_t""no" 1>&6
2934 # Extract the first word of "ar", so it can be a program name with args.
2935 set dummy
ar; ac_word
=$2
2936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2937 echo "configure:2938: checking for $ac_word" >&5
2938 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 if test -n "$AR"; then
2942 ac_cv_prog_AR
="$AR" # Let the user override the test.
2944 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2946 for ac_dir
in $ac_dummy; do
2947 test -z "$ac_dir" && ac_dir
=.
2948 if test -f $ac_dir/$ac_word; then
2954 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2958 if test -n "$AR"; then
2959 echo "$ac_t""$AR" 1>&6
2961 echo "$ac_t""no" 1>&6
2965 # Find a good install program. We prefer a C program (faster),
2966 # so one script is as good as another. But avoid the broken or
2967 # incompatible versions:
2968 # SysV /etc/install, /usr/sbin/install
2969 # SunOS /usr/etc/install
2970 # IRIX /sbin/install
2972 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2973 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2974 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2975 # ./install, which can be erroneously created by make from ./install.sh.
2976 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2977 echo "configure:2978: checking for a BSD compatible install" >&5
2978 if test -z "$INSTALL"; then
2979 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2982 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2983 for ac_dir
in $PATH; do
2984 # Account for people who put trailing slashes in PATH elements.
2986 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
2988 # OSF1 and SCO ODT 3.0 have their own names for install.
2989 # Don't use installbsd from OSF since it installs stuff as root
2991 for ac_prog
in ginstall scoinst
install; do
2992 if test -f $ac_dir/$ac_prog; then
2993 if test $ac_prog = install &&
2994 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2995 # AIX install. It has an incompatible calling convention.
2998 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3009 if test "${ac_cv_path_install+set}" = set; then
3010 INSTALL
="$ac_cv_path_install"
3012 # As a last resort, use the slow shell script. We don't cache a
3013 # path for INSTALL within a source directory, because that will
3014 # break other packages using the cache if that directory is
3015 # removed, or if the path is relative.
3016 INSTALL
="$ac_install_sh"
3019 echo "$ac_t""$INSTALL" 1>&6
3021 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3022 # It thinks the first close brace ends the variable substitution.
3023 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3025 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3027 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3030 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3031 echo "configure:3032: checking whether ln -s works" >&5
3032 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3036 if ln -s X conftestdata
2>/dev
/null
3039 ac_cv_prog_LN_S
="ln -s"
3044 LN_S
="$ac_cv_prog_LN_S"
3045 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3046 echo "$ac_t""yes" 1>&6
3048 echo "$ac_t""no" 1>&6
3052 # Extract the first word of "strip", so it can be a program name with args.
3053 set dummy strip
; ac_word
=$2
3054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3055 echo "configure:3056: checking for $ac_word" >&5
3056 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3059 if test -n "$STRIP"; then
3060 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3062 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3064 for ac_dir
in $ac_dummy; do
3065 test -z "$ac_dir" && ac_dir
=.
3066 if test -f $ac_dir/$ac_word; then
3067 ac_cv_prog_STRIP
="strip"
3072 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
="true"
3075 STRIP
="$ac_cv_prog_STRIP"
3076 if test -n "$STRIP"; then
3077 echo "$ac_t""$STRIP" 1>&6
3079 echo "$ac_t""no" 1>&6
3083 echo $ac_n "checking "make for VPATH support
"""... $ac_c" 1>&6
3084 echo "configure:3085: checking "make for VPATH support
"" >&5
3085 cat - << EOF > confMake
3091 if test ! -d sub
; then
3094 echo dummy
> sub
/file
3095 ${MAKE-make} -f confMake VPATH
=sub
2> config.log
> /dev
/null
3097 rm -f sub
/file check final_file confMake
3099 if test "$RESULT" = 0; then
3100 echo "$ac_t""yes" 1>&6
3102 echo "$ac_t""no" 1>&6
3103 { echo "configure: error: You need a make-utility that is able to use the variable
3105 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
3108 for ac_prog
in 'bison -y' byacc
3110 # Extract the first word of "$ac_prog", so it can be a program name with args.
3111 set dummy
$ac_prog; ac_word
=$2
3112 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3113 echo "configure:3114: checking for $ac_word" >&5
3114 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3117 if test -n "$YACC"; then
3118 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3120 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3122 for ac_dir
in $ac_dummy; do
3123 test -z "$ac_dir" && ac_dir
=.
3124 if test -f $ac_dir/$ac_word; then
3125 ac_cv_prog_YACC
="$ac_prog"
3132 YACC
="$ac_cv_prog_YACC"
3133 if test -n "$YACC"; then
3134 echo "$ac_t""$YACC" 1>&6
3136 echo "$ac_t""no" 1>&6
3139 test -n "$YACC" && break
3141 test -n "$YACC" || YACC
="yacc"
3144 missing_dir
=`cd $ac_aux_dir && pwd`
3145 for ac_prog
in flex
lex
3147 # Extract the first word of "$ac_prog", so it can be a program name with args.
3148 set dummy
$ac_prog; ac_word
=$2
3149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3150 echo "configure:3151: checking for $ac_word" >&5
3151 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 if test -n "$LEX"; then
3155 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3157 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3159 for ac_dir
in $ac_dummy; do
3160 test -z "$ac_dir" && ac_dir
=.
3161 if test -f $ac_dir/$ac_word; then
3162 ac_cv_prog_LEX
="$ac_prog"
3169 LEX
="$ac_cv_prog_LEX"
3170 if test -n "$LEX"; then
3171 echo "$ac_t""$LEX" 1>&6
3173 echo "$ac_t""no" 1>&6
3176 test -n "$LEX" && break
3178 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
3180 # Extract the first word of "flex", so it can be a program name with args.
3181 set dummy flex
; ac_word
=$2
3182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3183 echo "configure:3184: checking for $ac_word" >&5
3184 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3187 if test -n "$LEX"; then
3188 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3190 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3192 for ac_dir
in $ac_dummy; do
3193 test -z "$ac_dir" && ac_dir
=.
3194 if test -f $ac_dir/$ac_word; then
3195 ac_cv_prog_LEX
="flex"
3200 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
3203 LEX
="$ac_cv_prog_LEX"
3204 if test -n "$LEX"; then
3205 echo "$ac_t""$LEX" 1>&6
3207 echo "$ac_t""no" 1>&6
3210 if test -z "$LEXLIB"
3216 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3217 echo "configure:3218: checking for yywrap in -l$ac_lib" >&5
3218 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3222 ac_save_LIBS
="$LIBS"
3223 LIBS
="-l$ac_lib $LIBS"
3224 cat > conftest.
$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3227 /* Override any gcc2 internal prototype to avoid an error. */
3228 /* We use char because int might match the return type of a gcc2
3229 builtin and then its argument prototype would still apply. */
3236 if { (eval echo configure
:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3238 eval "ac_cv_lib_$ac_lib_var=yes"
3240 echo "configure: failed program was:" >&5
3241 cat conftest.
$ac_ext >&5
3243 eval "ac_cv_lib_$ac_lib_var=no"
3246 LIBS
="$ac_save_LIBS"
3249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3250 echo "$ac_t""yes" 1>&6
3253 echo "$ac_t""no" 1>&6
3258 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3259 echo "configure:3260: checking lex output file root" >&5
3260 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 # The minimal lex program is just a single line: %%. But some broken lexes
3264 # (Solaris, I think it was) want two %% lines, so accommodate them.
3267 if test -f lex.yy.c
; then
3268 ac_cv_prog_lex_root
=lex.yy
3269 elif test -f lexyy.c
; then
3270 ac_cv_prog_lex_root
=lexyy
3272 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3276 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3277 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3279 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3280 echo "configure:3281: checking whether yytext is a pointer" >&5
3281 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3284 # POSIX says lex can declare yytext either as a pointer or an array; the
3285 # default is implementation-dependent. Figure out which it is, since
3286 # not all implementations provide the %pointer and %array declarations.
3287 ac_cv_prog_lex_yytext_pointer
=no
3288 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3289 ac_save_LIBS
="$LIBS"
3290 LIBS
="$LIBS $LEXLIB"
3291 cat > conftest.
$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3294 `cat $LEX_OUTPUT_ROOT.c`
3299 if { (eval echo configure
:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3301 ac_cv_prog_lex_yytext_pointer
=yes
3303 echo "configure: failed program was:" >&5
3304 cat conftest.
$ac_ext >&5
3307 LIBS
="$ac_save_LIBS"
3308 rm -f "${LEX_OUTPUT_ROOT}.c"
3312 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3313 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3314 cat >> confdefs.h
<<\EOF
3315 #define YYTEXT_POINTER 1
3321 # Check whether --enable-static or --disable-static was given.
3322 if test "${enable_static+set}" = set; then
3323 enableval
="$enable_static"
3324 p
=${PACKAGE-default}
3325 case "$enableval" in
3326 yes) enable_static
=yes ;;
3327 no
) enable_static
=no
;;
3330 # Look at the argument we got. We use all the common list separators.
3331 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
3332 for pkg
in $enableval; do
3333 if test "X$pkg" = "X$p"; then
3344 # Check whether --enable-shared or --disable-shared was given.
3345 if test "${enable_shared+set}" = set; then
3346 enableval
="$enable_shared"
3347 p
=${PACKAGE-default}
3348 case "$enableval" in
3349 yes) enable_shared
=yes ;;
3350 no
) enable_shared
=no
;;
3353 # Look at the argument we got. We use all the common list separators.
3354 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
3355 for pkg
in $enableval; do
3356 if test "X$pkg" = "X$p"; then
3367 echo $ac_n "checking build system type""... $ac_c" 1>&6
3368 echo "configure:3369: checking build system type" >&5
3371 case "$build_alias" in
3374 NONE
) build_alias
=$host_alias ;;
3375 *) build_alias
=$nonopt ;;
3379 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3380 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3381 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3382 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3383 echo "$ac_t""$build" 1>&6
3385 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3386 if test "${with_gnu_ld+set}" = set; then
3387 withval
="$with_gnu_ld"
3388 test "$withval" = no
|| with_gnu_ld
=yes
3394 if test "$ac_cv_prog_gcc" = yes; then
3395 # Check if gcc -print-prog-name=ld gives a path.
3396 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3397 echo "configure:3398: checking for ld used by GCC" >&5
3398 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
3400 # Accept absolute paths.
3402 # Canonicalize the path of ld
3403 re_direlt
='/[^/][^/]*/\.\./'
3404 sub_uncdrive
='s%^\([A-Za-z]\):/%//\1/%'
3405 while echo $ac_prog | grep "$re_direlt" > /dev
/null
2>&1; do
3406 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
3410 # Convert to a UNC path for cygwin
3411 test -z "$LD" && LD
=`echo X$ac_prog | $Xsed -e "$sub_uncdrive"`
3414 test -z "$LD" && LD
="$ac_prog"
3419 ## FIXME: The code fails later on if we try to use an $LD with
3420 ## '\\' path separators.
3423 # Canonicalize the path of ld
3424 re_direlt
='\\[^\\][^\\]*\\\.\.\(\\\)'
3425 sub_uncdrive
='s%^\([A-Za-z]\):\\%//\1/%'
3426 sub_uncdir
='s%\\%/%g'
3427 while echo $ac_prog | grep "$re_direlt" > /dev
/null
2>&1; do
3428 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%\1%"`
3432 # Convert to a UNC path for cygwin
3433 test -z "$LD" && LD
=`echo X$ac_prog | sed -e 's%^X%%' -e "$sub_uncdrive" -e "$sub_uncdir"`
3436 test -z "$LD" && LD
="$ac_prog"
3441 # If it fails, then pretend we aren't using GCC.
3445 # If it is relative, then search for the first ld in PATH.
3449 elif test "$with_gnu_ld" = yes; then
3450 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3451 echo "configure:3452: checking for GNU ld" >&5
3453 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3454 echo "configure:3455: checking for non-GNU ld" >&5
3456 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3459 if test -z "$LD"; then
3460 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3461 for ac_dir
in $PATH; do
3462 test -z "$ac_dir" && ac_dir
=.
3463 if test -f "$ac_dir/$ac_prog"; then
3464 ac_cv_path_LD
="$ac_dir/$ac_prog"
3465 # Check to see if the program is GNU ld. I'd rather use --version,
3466 # but apparently some GNU ld's only accept -v.
3467 # Break only if it was the GNU/non-GNU ld that we prefer.
3468 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null
| egrep '(GNU|with BFD)' > /dev
/null
; then
3469 test "$with_gnu_ld" != no
&& break
3471 test "$with_gnu_ld" != yes && break
3477 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
3482 if test -n "$LD"; then
3483 echo "$ac_t""$LD" 1>&6
3485 echo "$ac_t""no" 1>&6
3487 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3489 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3490 echo "configure:3491: checking if the linker ($LD) is GNU ld" >&5
3491 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3494 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3495 if $LD -v 2>&1 </dev
/null
| egrep '(GNU|with BFD)' 1>&5; then
3496 ac_cv_prog_gnu_ld
=yes
3498 ac_cv_prog_gnu_ld
=no
3502 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3505 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3506 echo "configure:3507: checking for BSD-compatible nm" >&5
3507 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3510 if test -n "$NM"; then
3511 # Let the user override the test.
3514 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3515 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
3516 test -z "$ac_dir" && ac_dir
=.
3517 if test -f $ac_dir/nm
; then
3518 # Check to see if the nm accepts a BSD-compat flag.
3519 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3520 # nm: unknown option "B" ignored
3521 if ($ac_dir/nm
-B /dev
/null
2>&1 | sed '1q'; exit 0) | egrep /dev
/null
>/dev
/null
; then
3522 ac_cv_path_NM
="$ac_dir/nm -B"
3523 elif ($ac_dir/nm
-p /dev
/null
2>&1 | sed '1q'; exit 0) | egrep /dev
/null
>/dev
/null
; then
3524 ac_cv_path_NM
="$ac_dir/nm -p"
3526 ac_cv_path_NM
="$ac_dir/nm"
3532 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
3537 echo "$ac_t""$NM" 1>&6
3540 # Check for command to grab the raw symbol name followed by C symbol from nm.
3541 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3542 echo "configure:3543: checking command to parse $NM output" >&5
3543 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 # These are sane defaults that work on at least a few old systems.
3547 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
3549 # Character class describing NM global symbol codes.
3550 ac_symcode
='[BCDEGRSTU]'
3552 # Regexp to match symbols that can be accessed directly from C.
3553 ac_sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
3555 # Transform the above into a raw symbol and a C symbol.
3558 # Define system-specific variables.
3561 ac_symcode
='[BCDTU]'
3563 sunos
* | cygwin32
* | mingw32
*)
3564 ac_sympat
='_\([_A-Za-z][_A-Za-z0-9]*\)'
3568 # Cannot use undefined symbols on IRIX because inlined functions mess us up.
3569 ac_symcode
='[BCDEGRST]'
3576 # If we're using GNU nm, then use its standard symbol codes.
3577 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev
/null
; then
3578 ac_symcode
='[ABCDGISTUW]'
3582 cygwin32
* | mingw32
*)
3583 # We do not want undefined symbols on cygwin32. The user must
3584 # arrange to define them via -l arguments.
3585 ac_symcode
='[ABCDGISTW]'
3589 # Write the raw and C identifiers.
3590 ac_cv_sys_global_symbol_pipe
="sed -n -e 's/^.* $ac_symcode $ac_sympat$/$ac_symxfrm/p'"
3592 # Check to see that the pipe works correctly.
3594 cat > conftest.
$ac_ext <<EOF
3599 void nm_test_func(){}
3603 int main(){nm_test_var='a';nm_test_func;return 0;}
3605 if { (eval echo configure
:3606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3606 # Now try to grab the symbols.
3607 ac_nlist
=conftest.nm
3608 if { (eval echo configure
:3609: \"$NM conftest.
$ac_objext \
| $ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \
| $ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
3610 # Try sorting and uniquifying the output.
3611 if sort "$ac_nlist" | uniq > "$ac_nlist"T
; then
3612 mv -f "$ac_nlist"T
"$ac_nlist"
3613 ac_wcout
=`wc "$ac_nlist" 2>/dev/null`
3614 ac_count
=`echo "X$ac_wcout" | sed -e 's,^X,,' -e 's/^[ ]*\([0-9][0-9]*\).*$/\1/'`
3615 (test "$ac_count" -ge 0) 2>/dev
/null
|| ac_count
=-1
3621 # Make sure that we snagged all the symbols we need.
3622 if egrep ' nm_test_var$' "$ac_nlist" >/dev
/null
; then
3623 if egrep ' nm_test_func$' "$ac_nlist" >/dev
/null
; then
3624 cat <<EOF > conftest.c
3630 # Now generate the symbol file.
3631 sed 's/^.* \(.*\)$/extern char \1;/' < "$ac_nlist" >> conftest.c
3633 cat <<EOF >> conftest.c
3634 #if defined (__STDC__) && __STDC__
3635 # define __ptr_t void *
3637 # define __ptr_t char *
3640 /* The number of symbols in dld_preloaded_symbols, -1 if unsorted. */
3641 int dld_preloaded_symbol_count = $ac_count;
3643 /* The mapping between symbol names and symbols. */
3648 dld_preloaded_symbols[] =
3651 sed 's/^\(.*\) \(.*\)$/ {"\1", (__ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
3652 cat <<\EOF
>> conftest.c
3660 # Now try linking the two files.
3661 mv conftest.
$ac_objext conftestm.
$ac_objext
3662 ac_save_LIBS
="$LIBS"
3663 ac_save_CFLAGS
="$CFLAGS"
3664 LIBS
="conftestm.$ac_objext"
3665 CFLAGS
="$CFLAGS$no_builtin_flag"
3666 if { (eval echo configure
:3667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3669 echo "configure: failed program was:" >&5
3672 LIBS
="$ac_save_LIBS"
3673 CFLAGS
="$ac_save_CFLAGS"
3675 echo "cannot find nm_test_func in $ac_nlist" >&5
3678 echo "cannot find nm_test_var in $ac_nlist" >&5
3681 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
3684 echo "$progname: failed program was:" >&5
3689 # Do not use the global_symbol_pipe unless it works.
3690 test "$ac_pipe_works" = yes || ac_cv_sys_global_symbol_pipe
=
3696 if test -z "$ac_cv_sys_global_symbol_pipe"; then
3699 echo "$ac_t""$ac_result" 1>&6
3701 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
3702 echo "configure:3703: checking for _ prefix in compiled symbols" >&5
3703 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3706 ac_cv_sys_symbol_underscore
=no
3707 cat > conftest.
$ac_ext <<EOF
3708 void nm_test_func(){}
3709 int main(){nm_test_func;return 0;}
3711 if { (eval echo configure
:3712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3712 # Now try to grab the symbols.
3713 ac_nlist
=conftest.nm
3714 if { (eval echo configure
:3715: \"$NM conftest.
$ac_objext \
| $ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \
| $ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
3715 # See whether the symbols have a leading underscore.
3716 if egrep '^_nm_test_func' "$ac_nlist" >/dev
/null
; then
3717 ac_cv_sys_symbol_underscore
=yes
3719 if egrep '^nm_test_func ' "$ac_nlist" >/dev
/null
; then
3722 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
3726 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
3729 echo "configure: failed program was:" >&5
3736 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
3737 if test x
$ac_cv_sys_symbol_underscore = xyes
; then
3738 cat >> confdefs.h
<<\EOF
3739 #define WITH_SYMBOL_UNDERSCORE 1
3744 if test $host != $build; then
3745 ac_tool_prefix
=${host_alias}-
3750 # Always use our own libtool.
3751 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
3753 # Check for any special flags to pass to ltconfig.
3755 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
3756 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
3757 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
3758 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
3759 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
3761 # Some flags need to be propagated to the compiler or linker for good
3765 # Find out which ABI we are using.
3766 echo '#line 3767 "configure"' > conftest.
$ac_ext
3767 if { (eval echo configure
:3768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3768 case "`/usr/bin/file conftest.o`" in
3784 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3785 SAVE_CFLAGS
="$CFLAGS"
3786 CFLAGS
="$CFLAGS -belf"
3787 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3788 echo "configure:3789: checking whether the C compiler needs -belf" >&5
3789 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3792 cat > conftest.
$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3800 if { (eval echo configure
:3801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3802 lt_cv_cc_needs_belf
=yes
3804 echo "configure: failed program was:" >&5
3805 cat conftest.
$ac_ext >&5
3807 lt_cv_cc_needs_belf
=no
3812 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3813 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
3814 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3815 CFLAGS
="$SAVE_CFLAGS"
3820 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3821 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3823 echo "configure:3824: checking for $ac_word" >&5
3824 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3825 echo $ac_n "(cached) $ac_c" 1>&6
3827 if test -n "$DLLTOOL"; then
3828 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3830 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3832 for ac_dir
in $ac_dummy; do
3833 test -z "$ac_dir" && ac_dir
=.
3834 if test -f $ac_dir/$ac_word; then
3835 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3842 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3843 if test -n "$DLLTOOL"; then
3844 echo "$ac_t""$DLLTOOL" 1>&6
3846 echo "$ac_t""no" 1>&6
3850 if test -z "$ac_cv_prog_DLLTOOL"; then
3851 if test -n "$ac_tool_prefix"; then
3852 # Extract the first word of "dlltool", so it can be a program name with args.
3853 set dummy dlltool
; ac_word
=$2
3854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3855 echo "configure:3856: checking for $ac_word" >&5
3856 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3859 if test -n "$DLLTOOL"; then
3860 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3862 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3864 for ac_dir
in $ac_dummy; do
3865 test -z "$ac_dir" && ac_dir
=.
3866 if test -f $ac_dir/$ac_word; then
3867 ac_cv_prog_DLLTOOL
="dlltool"
3872 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
3875 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3876 if test -n "$DLLTOOL"; then
3877 echo "$ac_t""$DLLTOOL" 1>&6
3879 echo "$ac_t""no" 1>&6
3887 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3888 set dummy
${ac_tool_prefix}as
; ac_word
=$2
3889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3890 echo "configure:3891: checking for $ac_word" >&5
3891 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3894 if test -n "$AS"; then
3895 ac_cv_prog_AS
="$AS" # Let the user override the test.
3897 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3899 for ac_dir
in $ac_dummy; do
3900 test -z "$ac_dir" && ac_dir
=.
3901 if test -f $ac_dir/$ac_word; then
3902 ac_cv_prog_AS
="${ac_tool_prefix}as"
3910 if test -n "$AS"; then
3911 echo "$ac_t""$AS" 1>&6
3913 echo "$ac_t""no" 1>&6
3917 if test -z "$ac_cv_prog_AS"; then
3918 if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "as", so it can be a program name with args.
3920 set dummy as
; ac_word
=$2
3921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3922 echo "configure:3923: checking for $ac_word" >&5
3923 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3924 echo $ac_n "(cached) $ac_c" 1>&6
3926 if test -n "$AS"; then
3927 ac_cv_prog_AS
="$AS" # Let the user override the test.
3929 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3931 for ac_dir
in $ac_dummy; do
3932 test -z "$ac_dir" && ac_dir
=.
3933 if test -f $ac_dir/$ac_word; then
3939 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
3943 if test -n "$AS"; then
3944 echo "$ac_t""$AS" 1>&6
3946 echo "$ac_t""no" 1>&6
3959 # enable the --disable-libtool-lock switch
3961 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3962 if test "${enable_libtool_lock+set}" = set; then
3963 enableval
="$enable_libtool_lock"
3964 need_locks
=$enableval
3970 if test x
"$need_locks" = xno
; then
3971 libtool_flags
="$libtool_flags --disable-lock"
3975 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3976 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
3977 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
3978 DLLTOOL
="$DLLTOOL" AS
="$AS" \
3979 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
3980 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
3981 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3983 # Redirect the config.log output again, so that the ltconfig log is not
3984 # clobbered by the next message.
3985 exec 5>>.
/config.log
3990 /usr/Motif-1.2/include \
3991 /usr/Motif-2.1/include \
3993 /usr/include/Motif1.2 \
3994 /opt/xpm/include/X11 \
3996 /usr/Motif1.2/include \
4000 /usr/X11R6/include \
4001 /usr/X11R5/include \
4002 /usr/X11R4/include \
4008 /usr/include/X11R6 \
4009 /usr/include/X11R5 \
4010 /usr/include/X11R4 \
4012 /usr/local/X11R6/include \
4013 /usr/local/X11R5/include \
4014 /usr/local/X11R4/include \
4016 /usr/local/include/X11R6 \
4017 /usr/local/include/X11R5 \
4018 /usr/local/include/X11R4 \
4022 /usr/local/X11/include \
4023 /usr/local/include/X11 \
4027 /usr/XFree86/include/X11 \
4033 /usr/local/include \
4034 /usr/unsupported/include \
4035 /usr/athena/include \
4036 /usr/local/x11r5/include \
4037 /usr/lpp/Xamples/include \
4039 /usr/local/include/gtk \
4040 /usr/local/include/qt \
4043 /usr/openwin/include \
4044 /usr/openwin/share/include \
4047 SEARCH_LIB
="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
4050 cat > confcache
<<\EOF
4051 # This file is a shell script that caches the results of configure
4052 # tests run on this system so they can be shared between configure
4053 # scripts and configure runs. It is not useful on other systems.
4054 # If it contains results you don't want to keep, you may remove or edit it.
4056 # By default, configure uses ./config.cache as the cache file,
4057 # creating it if it does not exist already. You can give configure
4058 # the --cache-file=FILE option to use a different cache file; that is
4059 # what configure does when it calls configure scripts in
4060 # subdirectories, so they share the cache.
4061 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4062 # config.status only pays attention to the cache file if you give it the
4063 # --recheck option to rerun configure.
4066 # The following way of writing the cache mishandles newlines in values,
4067 # but we know of no workaround that is simple, portable, and efficient.
4068 # So, don't put newlines in cache variables' values.
4069 # Ultrix sh set writes to stderr and can't be redirected directly,
4070 # and sets the high bit in the cache file unless we assign to the vars.
4072 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4074 # `set' does not quote correctly, so add quotes (double-quote substitution
4075 # turns \\\\ into \\, and sed turns \\ into \).
4077 -e "s/'/'\\\\''/g" \
4078 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4081 # `set' quotes correctly as required by POSIX, so do not add quotes.
4082 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4085 if cmp -s $cache_file confcache
; then
4088 if test -w $cache_file; then
4089 echo "updating cache $cache_file"
4090 cat confcache
> $cache_file
4092 echo "not updating unwritable cache $cache_file"
4098 # If we find X, set shell vars x_includes and x_libraries to the
4099 # paths, otherwise set no_x=yes.
4100 # Uses ac_ vars as temps to allow command line to override cache and checks.
4101 # --without-x overrides everything else, but does not touch the cache.
4102 echo $ac_n "checking for X""... $ac_c" 1>&6
4103 echo "configure:4104: checking for X" >&5
4105 # Check whether --with-x or --without-x was given.
4106 if test "${with_x+set}" = set; then
4111 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4112 if test "x$with_x" = xno
; then
4113 # The user explicitly disabled X.
4116 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
4117 # Both variables are already set.
4120 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4123 # One or both of the vars are not set, and there is no cached value.
4124 ac_x_includes
=NO ac_x_libraries
=NO
4126 if mkdir conftestdir
; then
4128 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4129 cat > Imakefile
<<'EOF'
4131 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4133 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4134 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4135 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4136 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4137 for ac_extension
in a so sl
; do
4138 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
4139 test -f $ac_im_libdir/libX11.
$ac_extension; then
4140 ac_im_usrlibdir
=$ac_im_libdir; break
4143 # Screen out bogus values from the imake configuration. They are
4144 # bogus both because they are the default anyway, and because
4145 # using them would break gcc on systems where it needs fixed includes.
4146 case "$ac_im_incroot" in
4148 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
4150 case "$ac_im_usrlibdir" in
4152 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
4159 if test "$ac_x_includes" = NO
; then
4160 # Guess where to find include files, by looking for this one X11 .h file.
4161 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
4163 # First, try using that file with no special directory specified.
4164 cat > conftest.
$ac_ext <<EOF
4165 #line 4166 "configure"
4166 #include "confdefs.h"
4167 #include <$x_direct_test_include>
4169 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4170 { (eval echo configure
:4171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4171 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4172 if test -z "$ac_err"; then
4174 # We can compile using X headers with no special include directory.
4178 echo "configure: failed program was:" >&5
4179 cat conftest.
$ac_ext >&5
4181 # Look for the header file in a standard set of common directories.
4182 # Check X11 before X11Rn because it is often a symlink to the current release.
4185 /usr
/X
11R
6/include \
4186 /usr
/X
11R
5/include \
4187 /usr
/X
11R
4/include \
4190 /usr
/include
/X11R6 \
4191 /usr
/include
/X11R5 \
4192 /usr
/include
/X11R4 \
4194 /usr
/local
/X
11/include \
4195 /usr
/local
/X
11R
6/include \
4196 /usr
/local
/X
11R
5/include \
4197 /usr
/local
/X
11R
4/include \
4199 /usr
/local
/include
/X11 \
4200 /usr
/local
/include
/X11R6 \
4201 /usr
/local
/include
/X11R5 \
4202 /usr
/local
/include
/X11R4 \
4206 /usr
/XFree
86/include
/X11 \
4209 /usr
/local
/include \
4210 /usr
/unsupported
/include \
4211 /usr
/athena
/include \
4212 /usr
/local
/x
11r
5/include \
4213 /usr
/lpp
/Xamples
/include \
4215 /usr
/openwin
/include \
4216 /usr
/openwin
/share
/include \
4219 if test -r "$ac_dir/$x_direct_test_include"; then
4220 ac_x_includes
=$ac_dir
4226 fi # $ac_x_includes = NO
4228 if test "$ac_x_libraries" = NO
; then
4229 # Check for the libraries.
4231 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
4232 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
4234 # See if we find them without any special options.
4235 # Don't add to $LIBS permanently.
4236 ac_save_LIBS
="$LIBS"
4237 LIBS
="-l$x_direct_test_library $LIBS"
4238 cat > conftest.
$ac_ext <<EOF
4239 #line 4240 "configure"
4240 #include "confdefs.h"
4243 ${x_direct_test_function}()
4246 if { (eval echo configure
:4247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4248 LIBS
="$ac_save_LIBS"
4249 # We can link X programs with no special library path.
4252 echo "configure: failed program was:" >&5
4253 cat conftest.
$ac_ext >&5
4255 LIBS
="$ac_save_LIBS"
4256 # First see if replacing the include by lib works.
4257 # Check X11 before X11Rn because it is often a symlink to the current release.
4258 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
4269 /usr
/local
/X
11/lib \
4270 /usr
/local
/X
11R
6/lib \
4271 /usr
/local
/X
11R
5/lib \
4272 /usr
/local
/X
11R
4/lib \
4274 /usr
/local
/lib
/X11 \
4275 /usr
/local
/lib
/X11R6 \
4276 /usr
/local
/lib
/X11R5 \
4277 /usr
/local
/lib
/X11R4 \
4281 /usr
/XFree
86/lib
/X11 \
4285 /usr
/unsupported
/lib \
4287 /usr
/local
/x
11r
5/lib \
4288 /usr
/lpp
/Xamples
/lib \
4292 /usr
/openwin
/share
/lib \
4295 for ac_extension
in a so sl
; do
4296 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
4297 ac_x_libraries
=$ac_dir
4304 fi # $ac_x_libraries = NO
4306 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
4307 # Didn't find X anywhere. Cache the known absence of X.
4308 ac_cv_have_x
="have_x=no"
4310 # Record where we found X for the cache.
4311 ac_cv_have_x
="have_x=yes \
4312 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4316 eval "$ac_cv_have_x"
4319 if test "$have_x" != yes; then
4320 echo "$ac_t""$have_x" 1>&6
4323 # If each of the values was on the command line, it overrides each guess.
4324 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4325 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4326 # Update the cache value to reflect the command line values.
4327 ac_cv_have_x
="have_x=yes \
4328 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4329 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4332 if test "$no_x" = yes; then
4333 # Not all programs may use this symbol, but it does not hurt to define it.
4334 cat >> confdefs.h
<<\EOF
4335 #define X_DISPLAY_MISSING 1
4338 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
4340 if test -n "$x_includes"; then
4341 X_CFLAGS
="$X_CFLAGS -I$x_includes"
4344 # It would also be nice to do this for all -L options, not just this one.
4345 if test -n "$x_libraries"; then
4346 X_LIBS
="$X_LIBS -L$x_libraries"
4347 # For Solaris; some versions of Sun CC require a space after -R and
4348 # others require no space. Words are not sufficient . . . .
4349 case "`(uname -sr) 2>/dev/null`" in
4351 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4352 echo "configure:4353: checking whether -R must be followed by a space" >&5
4353 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
4354 cat > conftest.
$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4362 if { (eval echo configure
:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4366 echo "configure: failed program was:" >&5
4367 cat conftest.
$ac_ext >&5
4372 if test $ac_R_nospace = yes; then
4373 echo "$ac_t""no" 1>&6
4374 X_LIBS
="$X_LIBS -R$x_libraries"
4376 LIBS
="$ac_xsave_LIBS -R $x_libraries"
4377 cat > conftest.
$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4385 if { (eval echo configure
:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4389 echo "configure: failed program was:" >&5
4390 cat conftest.
$ac_ext >&5
4395 if test $ac_R_space = yes; then
4396 echo "$ac_t""yes" 1>&6
4397 X_LIBS
="$X_LIBS -R $x_libraries"
4399 echo "$ac_t""neither works" 1>&6
4402 LIBS
="$ac_xsave_LIBS"
4406 # Check for system-dependent libraries X programs must link with.
4407 # Do this before checking for the system-independent R6 libraries
4408 # (-lICE), since we may need -lsocket or whatever for X linking.
4410 if test "$ISC" = yes; then
4411 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
4413 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4414 # libraries were built with DECnet support. And karl@cs.umb.edu says
4415 # the Alpha needs dnet_stub (dnet does not exist).
4416 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4417 echo "configure:4418: checking for dnet_ntoa in -ldnet" >&5
4418 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4420 echo $ac_n "(cached) $ac_c" 1>&6
4422 ac_save_LIBS
="$LIBS"
4424 cat > conftest.
$ac_ext <<EOF
4425 #line 4426 "configure"
4426 #include "confdefs.h"
4427 /* Override any gcc2 internal prototype to avoid an error. */
4428 /* We use char because int might match the return type of a gcc2
4429 builtin and then its argument prototype would still apply. */
4436 if { (eval echo configure
:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4438 eval "ac_cv_lib_$ac_lib_var=yes"
4440 echo "configure: failed program was:" >&5
4441 cat conftest.
$ac_ext >&5
4443 eval "ac_cv_lib_$ac_lib_var=no"
4446 LIBS
="$ac_save_LIBS"
4449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4450 echo "$ac_t""yes" 1>&6
4451 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
4453 echo "$ac_t""no" 1>&6
4456 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
4457 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4458 echo "configure:4459: checking for dnet_ntoa in -ldnet_stub" >&5
4459 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4463 ac_save_LIBS
="$LIBS"
4464 LIBS
="-ldnet_stub $LIBS"
4465 cat > conftest.
$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4468 /* Override any gcc2 internal prototype to avoid an error. */
4469 /* We use char because int might match the return type of a gcc2
4470 builtin and then its argument prototype would still apply. */
4477 if { (eval echo configure
:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4479 eval "ac_cv_lib_$ac_lib_var=yes"
4481 echo "configure: failed program was:" >&5
4482 cat conftest.
$ac_ext >&5
4484 eval "ac_cv_lib_$ac_lib_var=no"
4487 LIBS
="$ac_save_LIBS"
4490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4491 echo "$ac_t""yes" 1>&6
4492 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
4494 echo "$ac_t""no" 1>&6
4499 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4500 # to get the SysV transport functions.
4501 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4503 # The nsl library prevents programs from opening the X display
4504 # on Irix 5.2, according to dickey@clark.net.
4505 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4506 echo "configure:4507: checking for gethostbyname" >&5
4507 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4510 cat > conftest.
$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 /* System header to define __stub macros and hopefully few prototypes,
4514 which can conflict with char gethostbyname(); below. */
4516 /* Override any gcc2 internal prototype to avoid an error. */
4517 /* We use char because int might match the return type of a gcc2
4518 builtin and then its argument prototype would still apply. */
4519 char gethostbyname();
4523 /* The GNU C library defines this for functions which it implements
4524 to always fail with ENOSYS. Some functions are actually named
4525 something starting with __ and the normal name is an alias. */
4526 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4534 if { (eval echo configure
:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4536 eval "ac_cv_func_gethostbyname=yes"
4538 echo "configure: failed program was:" >&5
4539 cat conftest.
$ac_ext >&5
4541 eval "ac_cv_func_gethostbyname=no"
4546 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4547 echo "$ac_t""yes" 1>&6
4550 echo "$ac_t""no" 1>&6
4553 if test $ac_cv_func_gethostbyname = no
; then
4554 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4555 echo "configure:4556: checking for gethostbyname in -lnsl" >&5
4556 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4558 echo $ac_n "(cached) $ac_c" 1>&6
4560 ac_save_LIBS
="$LIBS"
4562 cat > conftest.
$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4565 /* Override any gcc2 internal prototype to avoid an error. */
4566 /* We use char because int might match the return type of a gcc2
4567 builtin and then its argument prototype would still apply. */
4568 char gethostbyname();
4574 if { (eval echo configure
:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4576 eval "ac_cv_lib_$ac_lib_var=yes"
4578 echo "configure: failed program was:" >&5
4579 cat conftest.
$ac_ext >&5
4581 eval "ac_cv_lib_$ac_lib_var=no"
4584 LIBS
="$ac_save_LIBS"
4587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4588 echo "$ac_t""yes" 1>&6
4589 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4591 echo "$ac_t""no" 1>&6
4596 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4597 # socket/setsockopt and other routines are undefined under SCO ODT
4598 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4599 # on later versions), says simon@lia.di.epfl.ch: it contains
4600 # gethostby* variants that don't use the nameserver (or something).
4601 # -lsocket must be given before -lnsl if both are needed.
4602 # We assume that if connect needs -lnsl, so does gethostbyname.
4603 echo $ac_n "checking for connect""... $ac_c" 1>&6
4604 echo "configure:4605: checking for connect" >&5
4605 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4608 cat > conftest.
$ac_ext <<EOF
4609 #line 4610 "configure"
4610 #include "confdefs.h"
4611 /* System header to define __stub macros and hopefully few prototypes,
4612 which can conflict with char connect(); below. */
4614 /* Override any gcc2 internal prototype to avoid an error. */
4615 /* We use char because int might match the return type of a gcc2
4616 builtin and then its argument prototype would still apply. */
4621 /* The GNU C library defines this for functions which it implements
4622 to always fail with ENOSYS. Some functions are actually named
4623 something starting with __ and the normal name is an alias. */
4624 #if defined (__stub_connect) || defined (__stub___connect)
4632 if { (eval echo configure
:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4634 eval "ac_cv_func_connect=yes"
4636 echo "configure: failed program was:" >&5
4637 cat conftest.
$ac_ext >&5
4639 eval "ac_cv_func_connect=no"
4644 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4648 echo "$ac_t""no" 1>&6
4651 if test $ac_cv_func_connect = no
; then
4652 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4653 echo "configure:4654: checking for connect in -lsocket" >&5
4654 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
4658 ac_save_LIBS
="$LIBS"
4659 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4660 cat > conftest.
$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 /* Override any gcc2 internal prototype to avoid an error. */
4664 /* We use char because int might match the return type of a gcc2
4665 builtin and then its argument prototype would still apply. */
4672 if { (eval echo configure
:4673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4674 eval "ac_cv_lib_$ac_lib_var=yes"
4676 echo "configure: failed program was:" >&5
4677 cat conftest.
$ac_ext >&5
4679 eval "ac_cv_lib_$ac_lib_var=no"
4682 LIBS
="$ac_save_LIBS"
4685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4686 echo "$ac_t""yes" 1>&6
4687 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
4689 echo "$ac_t""no" 1>&6
4694 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4695 echo $ac_n "checking for remove""... $ac_c" 1>&6
4696 echo "configure:4697: checking for remove" >&5
4697 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4700 cat > conftest.
$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4703 /* System header to define __stub macros and hopefully few prototypes,
4704 which can conflict with char remove(); below. */
4706 /* Override any gcc2 internal prototype to avoid an error. */
4707 /* We use char because int might match the return type of a gcc2
4708 builtin and then its argument prototype would still apply. */
4713 /* The GNU C library defines this for functions which it implements
4714 to always fail with ENOSYS. Some functions are actually named
4715 something starting with __ and the normal name is an alias. */
4716 #if defined (__stub_remove) || defined (__stub___remove)
4724 if { (eval echo configure
:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4726 eval "ac_cv_func_remove=yes"
4728 echo "configure: failed program was:" >&5
4729 cat conftest.
$ac_ext >&5
4731 eval "ac_cv_func_remove=no"
4736 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4737 echo "$ac_t""yes" 1>&6
4740 echo "$ac_t""no" 1>&6
4743 if test $ac_cv_func_remove = no
; then
4744 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4745 echo "configure:4746: checking for remove in -lposix" >&5
4746 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4750 ac_save_LIBS
="$LIBS"
4751 LIBS
="-lposix $LIBS"
4752 cat > conftest.
$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4755 /* Override any gcc2 internal prototype to avoid an error. */
4756 /* We use char because int might match the return type of a gcc2
4757 builtin and then its argument prototype would still apply. */
4764 if { (eval echo configure
:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4766 eval "ac_cv_lib_$ac_lib_var=yes"
4768 echo "configure: failed program was:" >&5
4769 cat conftest.
$ac_ext >&5
4771 eval "ac_cv_lib_$ac_lib_var=no"
4774 LIBS
="$ac_save_LIBS"
4777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4778 echo "$ac_t""yes" 1>&6
4779 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4781 echo "$ac_t""no" 1>&6
4786 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4787 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4788 echo "configure:4789: checking for shmat" >&5
4789 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4792 cat > conftest.
$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 /* System header to define __stub macros and hopefully few prototypes,
4796 which can conflict with char shmat(); below. */
4798 /* Override any gcc2 internal prototype to avoid an error. */
4799 /* We use char because int might match the return type of a gcc2
4800 builtin and then its argument prototype would still apply. */
4805 /* The GNU C library defines this for functions which it implements
4806 to always fail with ENOSYS. Some functions are actually named
4807 something starting with __ and the normal name is an alias. */
4808 #if defined (__stub_shmat) || defined (__stub___shmat)
4816 if { (eval echo configure
:4817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4818 eval "ac_cv_func_shmat=yes"
4820 echo "configure: failed program was:" >&5
4821 cat conftest.
$ac_ext >&5
4823 eval "ac_cv_func_shmat=no"
4828 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4829 echo "$ac_t""yes" 1>&6
4832 echo "$ac_t""no" 1>&6
4835 if test $ac_cv_func_shmat = no
; then
4836 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4837 echo "configure:4838: checking for shmat in -lipc" >&5
4838 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4840 echo $ac_n "(cached) $ac_c" 1>&6
4842 ac_save_LIBS
="$LIBS"
4844 cat > conftest.
$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4847 /* Override any gcc2 internal prototype to avoid an error. */
4848 /* We use char because int might match the return type of a gcc2
4849 builtin and then its argument prototype would still apply. */
4856 if { (eval echo configure
:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4858 eval "ac_cv_lib_$ac_lib_var=yes"
4860 echo "configure: failed program was:" >&5
4861 cat conftest.
$ac_ext >&5
4863 eval "ac_cv_lib_$ac_lib_var=no"
4866 LIBS
="$ac_save_LIBS"
4869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4871 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4873 echo "$ac_t""no" 1>&6
4879 # Check for libraries that X11R6 Xt/Xaw programs need.
4880 ac_save_LDFLAGS
="$LDFLAGS"
4881 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4882 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4883 # check for ICE first), but we must link in the order -lSM -lICE or
4884 # we get undefined symbols. So assume we have SM if we have ICE.
4885 # These have to be linked with before -lX11, unlike the other
4886 # libraries we check for below, so use a different variable.
4887 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4888 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4889 echo "configure:4890: checking for IceConnectionNumber in -lICE" >&5
4890 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 ac_save_LIBS
="$LIBS"
4895 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4896 cat > conftest.
$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4899 /* Override any gcc2 internal prototype to avoid an error. */
4900 /* We use char because int might match the return type of a gcc2
4901 builtin and then its argument prototype would still apply. */
4902 char IceConnectionNumber();
4905 IceConnectionNumber()
4908 if { (eval echo configure
:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4910 eval "ac_cv_lib_$ac_lib_var=yes"
4912 echo "configure: failed program was:" >&5
4913 cat conftest.
$ac_ext >&5
4915 eval "ac_cv_lib_$ac_lib_var=no"
4918 LIBS
="$ac_save_LIBS"
4921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4922 echo "$ac_t""yes" 1>&6
4923 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4925 echo "$ac_t""no" 1>&6
4928 LDFLAGS
="$ac_save_LDFLAGS"
4933 if test "$no_x" = "yes"; then
4934 { echo "configure: error: X11 libraries not found" 1>&2; exit 1; }
4937 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
4938 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
4951 if test "$wxUSE_GTK" = 1; then
4952 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
4953 if test "${with_gtk_prefix+set}" = set; then
4954 withval
="$with_gtk_prefix"
4955 gtk_config_prefix
="$withval"
4957 gtk_config_prefix
=""
4960 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
4961 if test "${with_gtk_exec_prefix+set}" = set; then
4962 withval
="$with_gtk_exec_prefix"
4963 gtk_config_exec_prefix
="$withval"
4965 gtk_config_exec_prefix
=""
4969 if test x
$gtk_config_exec_prefix != x
; then
4970 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
4971 if test x
${GTK_CONFIG+set} != xset
; then
4972 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
4975 if test x
$gtk_config_prefix != x
; then
4976 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
4977 if test x
${GTK_CONFIG+set} != xset
; then
4978 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
4982 # Extract the first word of "gtk-config", so it can be a program name with args.
4983 set dummy gtk
-config; ac_word
=$2
4984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4985 echo "configure:4986: checking for $ac_word" >&5
4986 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4989 case "$GTK_CONFIG" in
4991 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
4994 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a dos path.
4997 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4999 for ac_dir
in $ac_dummy; do
5000 test -z "$ac_dir" && ac_dir
=.
5001 if test -f $ac_dir/$ac_word; then
5002 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
5007 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
5011 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
5012 if test -n "$GTK_CONFIG"; then
5013 echo "$ac_t""$GTK_CONFIG" 1>&6
5015 echo "$ac_t""no" 1>&6
5018 min_gtk_version
=1.2.0
5019 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
5020 echo "configure:5021: checking for GTK - version >= $min_gtk_version" >&5
5022 if test "$GTK_CONFIG" != "no" ; then
5023 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
5024 GTK_LIBS
=`$GTK_CONFIG --libs`
5025 ac_save_CFLAGS
="$CFLAGS"
5026 ac_save_LIBS
="$LIBS"
5027 CFLAGS
="$CFLAGS $GTK_CFLAGS"
5028 LIBS
="$LIBS $GTK_LIBS"
5029 if test "$cross_compiling" = yes; then
5030 echo $ac_n "cross compiling; assumed OK... $ac_c"
5032 cat > conftest.
$ac_ext <<EOF
5033 #line 5034 "configure"
5034 #include "confdefs.h"
5036 #include <gtk/gtk.h>
5042 int major, minor, micro;
5044 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
5045 printf("%s, bad version string\n", "$min_gtk_version");
5049 if (gtk_minor_version == 1) return FALSE;
5051 return !((gtk_major_version > major) ||
5052 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
5053 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
5057 if { (eval echo configure
:5058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5061 echo "configure: failed program was:" >&5
5062 cat conftest.
$ac_ext >&5
5069 CFLAGS
="$ac_save_CFLAGS"
5070 LIBS
="$ac_save_LIBS"
5074 if test "x$no_gtk" = x
; then
5075 echo "$ac_t""yes" 1>&6
5078 echo "$ac_t""no" 1>&6
5086 if test "$WXGTK12" != 1; then
5087 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
5088 if test "${with_gtk_prefix+set}" = set; then
5089 withval
="$with_gtk_prefix"
5090 gtk_config_prefix
="$withval"
5092 gtk_config_prefix
=""
5095 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
5096 if test "${with_gtk_exec_prefix+set}" = set; then
5097 withval
="$with_gtk_exec_prefix"
5098 gtk_config_exec_prefix
="$withval"
5100 gtk_config_exec_prefix
=""
5104 if test x
$gtk_config_exec_prefix != x
; then
5105 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
5106 if test x
${GTK_CONFIG+set} != xset
; then
5107 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
5110 if test x
$gtk_config_prefix != x
; then
5111 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
5112 if test x
${GTK_CONFIG+set} != xset
; then
5113 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
5117 # Extract the first word of "gtk-config", so it can be a program name with args.
5118 set dummy gtk
-config; ac_word
=$2
5119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5120 echo "configure:5121: checking for $ac_word" >&5
5121 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5124 case "$GTK_CONFIG" in
5126 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
5129 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a dos path.
5132 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5134 for ac_dir
in $ac_dummy; do
5135 test -z "$ac_dir" && ac_dir
=.
5136 if test -f $ac_dir/$ac_word; then
5137 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
5142 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
5146 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
5147 if test -n "$GTK_CONFIG"; then
5148 echo "$ac_t""$GTK_CONFIG" 1>&6
5150 echo "$ac_t""no" 1>&6
5153 min_gtk_version
=1.0.0
5154 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
5155 echo "configure:5156: checking for GTK - version >= $min_gtk_version" >&5
5157 if test "$GTK_CONFIG" != "no" ; then
5158 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
5159 GTK_LIBS
=`$GTK_CONFIG --libs`
5160 ac_save_CFLAGS
="$CFLAGS"
5161 ac_save_LIBS
="$LIBS"
5162 CFLAGS
="$CFLAGS $GTK_CFLAGS"
5163 LIBS
="$LIBS $GTK_LIBS"
5164 if test "$cross_compiling" = yes; then
5165 echo $ac_n "cross compiling; assumed OK... $ac_c"
5167 cat > conftest.
$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5171 #include <gtk/gtk.h>
5177 int major, minor, micro;
5179 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
5180 printf("%s, bad version string\n", "$min_gtk_version");
5184 if (gtk_minor_version == 1) return FALSE;
5186 return !((gtk_major_version > major) ||
5187 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
5188 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
5192 if { (eval echo configure
:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5196 echo "configure: failed program was:" >&5
5197 cat conftest.
$ac_ext >&5
5204 CFLAGS
="$ac_save_CFLAGS"
5205 LIBS
="$ac_save_LIBS"
5209 if test "x$no_gtk" = x
; then
5210 echo "$ac_t""yes" 1>&6
5213 echo "$ac_t""no" 1>&6
5216 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.X or 1.0.X?" 1>&2; exit 1; }
5223 TOOLKIT_INCLUDE
="$GTK_CFLAGS"
5224 GUI_TK_LIBRARY
="$GTK_LIBS"
5227 LTLIBOBJS
="$LTLIBOBJS image.lo utilsgtk.lo win_gtk.lo"
5230 if test "$wxUSE_MOTIF" = 1; then
5231 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
5232 echo "configure:5233: checking for Motif/Lesstif includes" >&5
5235 for ac_dir
in $SEARCH_INCLUDE;
5237 if test -f "$ac_dir/Xm/Xm.h"; then
5238 ac_find_includes
=$ac_dir
5243 if test "$ac_find_includes" != "" ; then
5244 echo "$ac_t""found $ac_find_includes" 1>&6
5246 echo "$ac_t""no" 1>&6
5247 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
5250 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
5251 echo "configure:5252: checking for Motif/Lesstif library" >&5
5254 for ac_dir
in $SEARCH_LIB;
5256 for ac_extension
in a so sl
; do
5257 if test -f "$ac_dir/libXm.$ac_extension"; then
5258 ac_find_libraries
=$ac_dir
5264 if test "$ac_find_libraries" != "" ; then
5266 ac_path_to_include
=$ac_find_includes
5267 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
5269 if test $result = 0; then
5270 ac_path_to_include
=""
5272 ac_path_to_include
="-I$ac_find_includes"
5276 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5278 if test $result = 0; then
5281 ac_path_to_link
="-L$ac_find_libraries"
5285 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
5286 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
5287 echo "$ac_t""found at $ac_find_libraries" 1>&6
5289 echo "$ac_t""no" 1>&6
5290 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
5293 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
5294 echo "configure:5295: checking for Xt library" >&5
5297 for ac_dir
in $SEARCH_LIB;
5299 for ac_extension
in a so sl
; do
5300 if test -f "$ac_dir/libXt.$ac_extension"; then
5301 ac_find_libraries
=$ac_dir
5307 if test "$ac_find_libraries" != "" ; then
5309 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5311 if test $result = 0; then
5314 ac_path_to_link
="-L$ac_find_libraries"
5317 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
5318 echo "$ac_t""found at $ac_find_libraries" 1>&6
5320 echo "$ac_t""no" 1>&6
5321 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
5325 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
5326 echo "configure:5327: checking for Xpm library" >&5
5329 for ac_dir
in $SEARCH_LIB;
5331 for ac_extension
in a so sl
; do
5332 if test -f "$ac_dir/libXpm.$ac_extension"; then
5333 ac_find_libraries
=$ac_dir
5339 if test "$ac_find_libraries" != "" ; then
5341 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5343 if test $result = 0; then
5346 ac_path_to_link
="-L$ac_find_libraries"
5349 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
5351 cat >> confdefs.h
<<\EOF
5352 #define wxHAVE_LIB_XPM 1
5355 echo "$ac_t""found at $ac_find_libraries" 1>&6
5357 echo "$ac_t""no" 1>&6
5358 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
5361 GUI_TK_LINK
="-lXm $(XPM_LINK)-lXmu -lXt -lX11 -lm"
5362 GUI_TK_LIBRARY
="$CHECK_LIB $GUI_TK_LINK"
5366 TOOLKIT_DIR
=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
5368 TOOLKIT_DEF
=-D__WX${TOOLKIT}__
5370 WX_LIBRARY
=${TOOLKIT_DIR}2
5373 for ac_hdr
in strings.h
5375 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5377 echo "configure:5378: checking for $ac_hdr" >&5
5378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
5381 cat > conftest.
$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5386 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5387 { (eval echo configure
:5388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5388 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5389 if test -z "$ac_err"; then
5391 eval "ac_cv_header_$ac_safe=yes"
5394 echo "configure: failed program was:" >&5
5395 cat conftest.
$ac_ext >&5
5397 eval "ac_cv_header_$ac_safe=no"
5401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5402 echo "$ac_t""yes" 1>&6
5403 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5404 cat >> confdefs.h
<<EOF
5405 #define $ac_tr_hdr 1
5409 echo "$ac_t""no" 1>&6
5413 for ac_hdr
in unistd.h
5415 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5416 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5417 echo "configure:5418: checking for $ac_hdr" >&5
5418 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5421 cat > conftest.
$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5426 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5427 { (eval echo configure
:5428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5428 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5429 if test -z "$ac_err"; then
5431 eval "ac_cv_header_$ac_safe=yes"
5434 echo "configure: failed program was:" >&5
5435 cat conftest.
$ac_ext >&5
5437 eval "ac_cv_header_$ac_safe=no"
5441 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5442 echo "$ac_t""yes" 1>&6
5443 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5444 cat >> confdefs.h
<<EOF
5445 #define $ac_tr_hdr 1
5449 echo "$ac_t""no" 1>&6
5453 for ac_hdr
in wchar.h
5455 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5457 echo "configure:5458: checking for $ac_hdr" >&5
5458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5459 echo $ac_n "(cached) $ac_c" 1>&6
5461 cat > conftest.
$ac_ext <<EOF
5462 #line 5463 "configure"
5463 #include "confdefs.h"
5466 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5467 { (eval echo configure
:5468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5468 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5469 if test -z "$ac_err"; then
5471 eval "ac_cv_header_$ac_safe=yes"
5474 echo "configure: failed program was:" >&5
5475 cat conftest.
$ac_ext >&5
5477 eval "ac_cv_header_$ac_safe=no"
5481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5482 echo "$ac_t""yes" 1>&6
5483 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5484 cat >> confdefs.h
<<EOF
5485 #define $ac_tr_hdr 1
5489 echo "$ac_t""no" 1>&6
5493 for ac_hdr
in wcstr.h
5495 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5497 echo "configure:5498: checking for $ac_hdr" >&5
5498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5499 echo $ac_n "(cached) $ac_c" 1>&6
5501 cat > conftest.
$ac_ext <<EOF
5502 #line 5503 "configure"
5503 #include "confdefs.h"
5506 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5507 { (eval echo configure
:5508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5508 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5509 if test -z "$ac_err"; then
5511 eval "ac_cv_header_$ac_safe=yes"
5514 echo "configure: failed program was:" >&5
5515 cat conftest.
$ac_ext >&5
5517 eval "ac_cv_header_$ac_safe=no"
5521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5522 echo "$ac_t""yes" 1>&6
5523 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5524 cat >> confdefs.h
<<EOF
5525 #define $ac_tr_hdr 1
5529 echo "$ac_t""no" 1>&6
5533 for ac_hdr
in fnmatch.h
5535 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5537 echo "configure:5538: checking for $ac_hdr" >&5
5538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5539 echo $ac_n "(cached) $ac_c" 1>&6
5541 cat > conftest.
$ac_ext <<EOF
5542 #line 5543 "configure"
5543 #include "confdefs.h"
5546 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5547 { (eval echo configure
:5548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5548 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5549 if test -z "$ac_err"; then
5551 eval "ac_cv_header_$ac_safe=yes"
5554 echo "configure: failed program was:" >&5
5555 cat conftest.
$ac_ext >&5
5557 eval "ac_cv_header_$ac_safe=no"
5561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5562 echo "$ac_t""yes" 1>&6
5563 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5564 cat >> confdefs.h
<<EOF
5565 #define $ac_tr_hdr 1
5569 echo "$ac_t""no" 1>&6
5575 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5576 echo "configure:5577: checking for ANSI C header files" >&5
5577 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5580 cat > conftest.
$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5588 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5589 { (eval echo configure
:5590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5590 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5591 if test -z "$ac_err"; then
5593 ac_cv_header_stdc
=yes
5596 echo "configure: failed program was:" >&5
5597 cat conftest.
$ac_ext >&5
5599 ac_cv_header_stdc
=no
5603 if test $ac_cv_header_stdc = yes; then
5604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5605 cat > conftest.
$ac_ext <<EOF
5606 #line 5607 "configure"
5607 #include "confdefs.h"
5610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5611 egrep "memchr" >/dev
/null
2>&1; then
5615 ac_cv_header_stdc
=no
5621 if test $ac_cv_header_stdc = yes; then
5622 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5623 cat > conftest.
$ac_ext <<EOF
5624 #line 5625 "configure"
5625 #include "confdefs.h"
5628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5629 egrep "free" >/dev
/null
2>&1; then
5633 ac_cv_header_stdc
=no
5639 if test $ac_cv_header_stdc = yes; then
5640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5641 if test "$cross_compiling" = yes; then
5644 cat > conftest.
$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5648 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5649 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5651 int main () { int i; for (i = 0; i < 256; i++)
5652 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5656 if { (eval echo configure
:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5660 echo "configure: failed program was:" >&5
5661 cat conftest.
$ac_ext >&5
5663 ac_cv_header_stdc
=no
5671 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5672 if test $ac_cv_header_stdc = yes; then
5673 cat >> confdefs.h
<<\EOF
5674 #define STDC_HEADERS 1
5679 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5680 echo "configure:5681: checking for mode_t" >&5
5681 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5684 cat > conftest.
$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 #include <sys/types.h>
5693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5694 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5696 ac_cv_type_mode_t
=yes
5699 ac_cv_type_mode_t
=no
5704 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5705 if test $ac_cv_type_mode_t = no
; then
5706 cat >> confdefs.h
<<\EOF
5712 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5713 echo "configure:5714: checking for off_t" >&5
5714 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5715 echo $ac_n "(cached) $ac_c" 1>&6
5717 cat > conftest.
$ac_ext <<EOF
5718 #line 5719 "configure"
5719 #include "confdefs.h"
5720 #include <sys/types.h>
5726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5727 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5729 ac_cv_type_off_t
=yes
5737 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5738 if test $ac_cv_type_off_t = no
; then
5739 cat >> confdefs.h
<<\EOF
5745 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5746 echo "configure:5747: checking for pid_t" >&5
5747 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5748 echo $ac_n "(cached) $ac_c" 1>&6
5750 cat > conftest.
$ac_ext <<EOF
5751 #line 5752 "configure"
5752 #include "confdefs.h"
5753 #include <sys/types.h>
5759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5760 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5762 ac_cv_type_pid_t
=yes
5770 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5771 if test $ac_cv_type_pid_t = no
; then
5772 cat >> confdefs.h
<<\EOF
5778 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5779 echo "configure:5780: checking for size_t" >&5
5780 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5781 echo $ac_n "(cached) $ac_c" 1>&6
5783 cat > conftest.
$ac_ext <<EOF
5784 #line 5785 "configure"
5785 #include "confdefs.h"
5786 #include <sys/types.h>
5792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5793 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5795 ac_cv_type_size_t
=yes
5798 ac_cv_type_size_t
=no
5803 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5804 if test $ac_cv_type_size_t = no
; then
5805 cat >> confdefs.h
<<\EOF
5806 #define size_t unsigned
5811 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5812 echo "configure:5813: checking for uid_t in sys/types.h" >&5
5813 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5816 cat > conftest.
$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5819 #include <sys/types.h>
5821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5822 egrep "uid_t" >/dev
/null
2>&1; then
5824 ac_cv_type_uid_t
=yes
5833 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5834 if test $ac_cv_type_uid_t = no
; then
5835 cat >> confdefs.h
<<\EOF
5839 cat >> confdefs.h
<<\EOF
5848 echo $ac_n "checking for working const""... $ac_c" 1>&6
5849 echo "configure:5850: checking for working const" >&5
5850 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5851 echo $ac_n "(cached) $ac_c" 1>&6
5853 cat > conftest.
$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5859 /* Ultrix mips cc rejects this. */
5860 typedef int charset[2]; const charset x;
5861 /* SunOS 4.1.1 cc rejects this. */
5862 char const *const *ccp;
5864 /* NEC SVR4.0.2 mips cc rejects this. */
5865 struct point {int x, y;};
5866 static struct point const zero = {0,0};
5867 /* AIX XL C 1.02.0.0 rejects this.
5868 It does not let you subtract one const X* pointer from another in an arm
5869 of an if-expression whose if-part is not a constant expression */
5870 const char *g = "string";
5871 ccp = &g + (g ? g-g : 0);
5872 /* HPUX 7.0 cc rejects these. */
5875 ccp = (char const *const *) p;
5876 { /* SCO 3.2v4 cc rejects this. */
5878 char const *s = 0 ? (char *) 0 : (char const *) 0;
5882 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5884 const int *foo = &x[0];
5887 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5888 typedef const int *iptr;
5892 { /* AIX XL C 1.02.0.0 rejects this saying
5893 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5894 struct s { int j; const int *ap[3]; };
5895 struct s *b; b->j = 5;
5897 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5903 if { (eval echo configure
:5904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5907 echo "configure: failed program was:" >&5
5908 cat conftest.
$ac_ext >&5
5915 echo "$ac_t""$ac_cv_c_const" 1>&6
5916 if test $ac_cv_c_const = no
; then
5917 cat >> confdefs.h
<<\EOF
5923 echo $ac_n "checking for inline""... $ac_c" 1>&6
5924 echo "configure:5925: checking for inline" >&5
5925 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5926 echo $ac_n "(cached) $ac_c" 1>&6
5929 for ac_kw
in inline __inline__ __inline
; do
5930 cat > conftest.
$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5938 if { (eval echo configure
:5939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5940 ac_cv_c_inline
=$ac_kw; break
5942 echo "configure: failed program was:" >&5
5943 cat conftest.
$ac_ext >&5
5950 echo "$ac_t""$ac_cv_c_inline" 1>&6
5951 case "$ac_cv_c_inline" in
5953 no
) cat >> confdefs.h
<<\EOF
5957 *) cat >> confdefs.h
<<EOF
5958 #define inline $ac_cv_c_inline
5964 echo $ac_n "checking size of int *""... $ac_c" 1>&6
5965 echo "configure:5966: checking size of int *" >&5
5966 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
5967 echo $ac_n "(cached) $ac_c" 1>&6
5969 if test "$cross_compiling" = yes; then
5970 ac_cv_sizeof_int_p
=4
5972 cat > conftest.
$ac_ext <<EOF
5973 #line 5974 "configure"
5974 #include "confdefs.h"
5978 FILE *f=fopen("conftestval", "w");
5980 fprintf(f, "%d\n", sizeof(int *));
5984 if { (eval echo configure
:5985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5986 ac_cv_sizeof_int_p
=`cat conftestval`
5988 echo "configure: failed program was:" >&5
5989 cat conftest.
$ac_ext >&5
5991 ac_cv_sizeof_int_p
=0
5997 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
5998 cat >> confdefs.h
<<EOF
5999 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
6003 echo $ac_n "checking size of int""... $ac_c" 1>&6
6004 echo "configure:6005: checking size of int" >&5
6005 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
6006 echo $ac_n "(cached) $ac_c" 1>&6
6008 if test "$cross_compiling" = yes; then
6011 cat > conftest.
$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6017 FILE *f=fopen("conftestval", "w");
6019 fprintf(f, "%d\n", sizeof(int));
6023 if { (eval echo configure
:6024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6025 ac_cv_sizeof_int
=`cat conftestval`
6027 echo "configure: failed program was:" >&5
6028 cat conftest.
$ac_ext >&5
6036 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
6037 cat >> confdefs.h
<<EOF
6038 #define SIZEOF_INT $ac_cv_sizeof_int
6042 echo $ac_n "checking size of long""... $ac_c" 1>&6
6043 echo "configure:6044: checking size of long" >&5
6044 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
6045 echo $ac_n "(cached) $ac_c" 1>&6
6047 if test "$cross_compiling" = yes; then
6050 cat > conftest.
$ac_ext <<EOF
6051 #line 6052 "configure"
6052 #include "confdefs.h"
6056 FILE *f=fopen("conftestval", "w");
6058 fprintf(f, "%d\n", sizeof(long));
6062 if { (eval echo configure
:6063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6064 ac_cv_sizeof_long
=`cat conftestval`
6066 echo "configure: failed program was:" >&5
6067 cat conftest.
$ac_ext >&5
6075 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
6076 cat >> confdefs.h
<<EOF
6077 #define SIZEOF_LONG $ac_cv_sizeof_long
6081 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6082 echo "configure:6083: checking size of long long" >&5
6083 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6084 echo $ac_n "(cached) $ac_c" 1>&6
6086 if test "$cross_compiling" = yes; then
6087 ac_cv_sizeof_long_long
=0
6089 cat > conftest.
$ac_ext <<EOF
6090 #line 6091 "configure"
6091 #include "confdefs.h"
6095 FILE *f=fopen("conftestval", "w");
6097 fprintf(f, "%d\n", sizeof(long long));
6101 if { (eval echo configure
:6102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6103 ac_cv_sizeof_long_long
=`cat conftestval`
6105 echo "configure: failed program was:" >&5
6106 cat conftest.
$ac_ext >&5
6108 ac_cv_sizeof_long_long
=0
6114 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6115 cat >> confdefs.h
<<EOF
6116 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6122 if test "$cross_compiling" = "yes"; then
6123 cat >> confdefs.h
<<\EOF
6124 #define wxUSE_IOSTREAMH 1
6130 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6131 ac_cpp
='$CXXCPP $CPPFLAGS'
6132 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6133 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6134 cross_compiling
=$ac_cv_prog_cxx_cross
6137 for ac_hdr
in iostream
6139 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6140 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6141 echo "configure:6142: checking for $ac_hdr" >&5
6142 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6145 cat > conftest.
$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6150 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6151 { (eval echo configure
:6152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6152 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6153 if test -z "$ac_err"; then
6155 eval "ac_cv_header_$ac_safe=yes"
6158 echo "configure: failed program was:" >&5
6159 cat conftest.
$ac_ext >&5
6161 eval "ac_cv_header_$ac_safe=no"
6165 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6166 echo "$ac_t""yes" 1>&6
6167 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6168 cat >> confdefs.h
<<EOF
6169 #define $ac_tr_hdr 1
6173 echo "$ac_t""no" 1>&6
6178 if test "x$HAVE_IOSTREAM" = x
; then
6179 cat >> confdefs.h
<<\EOF
6180 #define wxUSE_IOSTREAMH 1
6188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6189 ac_cpp
='$CPP $CPPFLAGS'
6190 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6191 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6192 cross_compiling
=$ac_cv_prog_cc_cross
6198 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
6199 echo "configure:6200: checking if C++ compiler supports bool" >&5
6200 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6206 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6207 ac_cpp
='$CXXCPP $CPPFLAGS'
6208 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6209 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6210 cross_compiling
=$ac_cv_prog_cxx_cross
6213 if test "$cross_compiling" = yes; then
6217 cat > conftest.
$ac_ext <<EOF
6218 #line 6219 "configure"
6219 #include "confdefs.h"
6221 extern "C" void exit(int);
6232 if { (eval echo configure
:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6235 cat >> confdefs.h
<<\EOF
6242 echo "configure: failed program was:" >&5
6243 cat conftest.
$ac_ext >&5
6252 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6253 ac_cpp
='$CPP $CPPFLAGS'
6254 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6255 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6256 cross_compiling
=$ac_cv_prog_cc_cross
6261 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
6263 if test "$wx_cv_cpp_bool" = "yes"; then
6264 cat >> confdefs.h
<<\EOF
6272 echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6
6273 echo "configure:6274: checking if size_t and int are different types" >&5
6274 if eval "test \"`echo '$''{'wx_cv_cpp_sizet_not_int'+set}'`\" = set"; then
6275 echo $ac_n "(cached) $ac_c" 1>&6
6280 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6281 ac_cpp
='$CXXCPP $CPPFLAGS'
6282 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6283 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6284 cross_compiling
=$ac_cv_prog_cxx_cross
6287 if test "$cross_compiling" = yes; then
6288 wx_cv_cpp_sizet_not_int
=no
6291 cat > conftest.
$ac_ext <<EOF
6292 #line 6293 "configure"
6293 #include "confdefs.h"
6295 extern "C" void exit(int);
6303 S(char *s) { m_s = s; }
6305 char operator[](size_t n) const { return m_s[n]; }
6306 char operator[](int n) const { return m_s[n]; }
6318 return s[n1] == s[n2];
6322 if { (eval echo configure
:6323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6324 cat >> confdefs.h
<<\EOF
6325 #define wxUSE_SIZE_T_STRING_OPERATOR 1
6327 wx_cv_cpp_sizet_not_int
=yes
6329 echo "configure: failed program was:" >&5
6330 cat conftest.
$ac_ext >&5
6332 wx_cv_cpp_sizet_not_int
=no
6339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6340 ac_cpp
='$CPP $CPPFLAGS'
6341 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6342 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6343 cross_compiling
=$ac_cv_prog_cc_cross
6348 echo "$ac_t""$wx_cv_cpp_sizet_not_int" 1>&6
6352 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
6353 echo "configure:6354: checking for wcslen in -lc" >&5
6354 ac_lib_var
=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
6355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6
6358 ac_save_LIBS
="$LIBS"
6360 cat > conftest.
$ac_ext <<EOF
6361 #line 6362 "configure"
6362 #include "confdefs.h"
6363 /* Override any gcc2 internal prototype to avoid an error. */
6364 /* We use char because int might match the return type of a gcc2
6365 builtin and then its argument prototype would still apply. */
6372 if { (eval echo configure
:6373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6374 eval "ac_cv_lib_$ac_lib_var=yes"
6376 echo "configure: failed program was:" >&5
6377 cat conftest.
$ac_ext >&5
6379 eval "ac_cv_lib_$ac_lib_var=no"
6382 LIBS
="$ac_save_LIBS"
6385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6386 echo "$ac_t""yes" 1>&6
6388 cat >> confdefs.h
<<\EOF
6389 #define HAVE_WCSLEN 1
6395 echo "$ac_t""no" 1>&6
6397 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
6398 echo "configure:6399: checking for wcslen in -lw" >&5
6399 ac_lib_var
=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
6400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6401 echo $ac_n "(cached) $ac_c" 1>&6
6403 ac_save_LIBS
="$LIBS"
6405 cat > conftest.
$ac_ext <<EOF
6406 #line 6407 "configure"
6407 #include "confdefs.h"
6408 /* Override any gcc2 internal prototype to avoid an error. */
6409 /* We use char because int might match the return type of a gcc2
6410 builtin and then its argument prototype would still apply. */
6417 if { (eval echo configure
:6418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6419 eval "ac_cv_lib_$ac_lib_var=yes"
6421 echo "configure: failed program was:" >&5
6422 cat conftest.
$ac_ext >&5
6424 eval "ac_cv_lib_$ac_lib_var=no"
6427 LIBS
="$ac_save_LIBS"
6430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6431 echo "$ac_t""yes" 1>&6
6433 cat >> confdefs.h
<<\EOF
6434 #define HAVE_WCSLEN 1
6440 echo "$ac_t""no" 1>&6
6447 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
6448 echo "configure:6449: checking for vprintf" >&5
6449 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
6450 echo $ac_n "(cached) $ac_c" 1>&6
6452 cat > conftest.
$ac_ext <<EOF
6453 #line 6454 "configure"
6454 #include "confdefs.h"
6455 /* System header to define __stub macros and hopefully few prototypes,
6456 which can conflict with char vprintf(); below. */
6458 /* Override any gcc2 internal prototype to avoid an error. */
6459 /* We use char because int might match the return type of a gcc2
6460 builtin and then its argument prototype would still apply. */
6465 /* The GNU C library defines this for functions which it implements
6466 to always fail with ENOSYS. Some functions are actually named
6467 something starting with __ and the normal name is an alias. */
6468 #if defined (__stub_vprintf) || defined (__stub___vprintf)
6476 if { (eval echo configure
:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6478 eval "ac_cv_func_vprintf=yes"
6480 echo "configure: failed program was:" >&5
6481 cat conftest.
$ac_ext >&5
6483 eval "ac_cv_func_vprintf=no"
6488 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
6489 echo "$ac_t""yes" 1>&6
6490 cat >> confdefs.h
<<\EOF
6491 #define HAVE_VPRINTF 1
6495 echo "$ac_t""no" 1>&6
6498 if test "$ac_cv_func_vprintf" != yes; then
6499 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
6500 echo "configure:6501: checking for _doprnt" >&5
6501 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
6502 echo $ac_n "(cached) $ac_c" 1>&6
6504 cat > conftest.
$ac_ext <<EOF
6505 #line 6506 "configure"
6506 #include "confdefs.h"
6507 /* System header to define __stub macros and hopefully few prototypes,
6508 which can conflict with char _doprnt(); below. */
6510 /* Override any gcc2 internal prototype to avoid an error. */
6511 /* We use char because int might match the return type of a gcc2
6512 builtin and then its argument prototype would still apply. */
6517 /* The GNU C library defines this for functions which it implements
6518 to always fail with ENOSYS. Some functions are actually named
6519 something starting with __ and the normal name is an alias. */
6520 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6528 if { (eval echo configure
:6529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6530 eval "ac_cv_func__doprnt=yes"
6532 echo "configure: failed program was:" >&5
6533 cat conftest.
$ac_ext >&5
6535 eval "ac_cv_func__doprnt=no"
6540 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
6541 echo "$ac_t""yes" 1>&6
6542 cat >> confdefs.h
<<\EOF
6543 #define HAVE_DOPRNT 1
6547 echo "$ac_t""no" 1>&6
6553 for ac_func
in vsnprintf
6555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6556 echo "configure:6557: checking for $ac_func" >&5
6557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6558 echo $ac_n "(cached) $ac_c" 1>&6
6560 cat > conftest.
$ac_ext <<EOF
6561 #line 6562 "configure"
6562 #include "confdefs.h"
6563 /* System header to define __stub macros and hopefully few prototypes,
6564 which can conflict with char $ac_func(); below. */
6566 /* Override any gcc2 internal prototype to avoid an error. */
6567 /* We use char because int might match the return type of a gcc2
6568 builtin and then its argument prototype would still apply. */
6573 /* The GNU C library defines this for functions which it implements
6574 to always fail with ENOSYS. Some functions are actually named
6575 something starting with __ and the normal name is an alias. */
6576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6584 if { (eval echo configure
:6585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6586 eval "ac_cv_func_$ac_func=yes"
6588 echo "configure: failed program was:" >&5
6589 cat conftest.
$ac_ext >&5
6591 eval "ac_cv_func_$ac_func=no"
6596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6597 echo "$ac_t""yes" 1>&6
6598 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6599 cat >> confdefs.h
<<EOF
6600 #define $ac_tr_func 1
6602 cat >> confdefs.h
<<\EOF
6603 #define HAVE_VSNPRINTF 1
6607 echo "$ac_t""no" 1>&6
6608 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
6614 for ac_func
in vfork
6616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6617 echo "configure:6618: checking for $ac_func" >&5
6618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6619 echo $ac_n "(cached) $ac_c" 1>&6
6621 cat > conftest.
$ac_ext <<EOF
6622 #line 6623 "configure"
6623 #include "confdefs.h"
6624 /* System header to define __stub macros and hopefully few prototypes,
6625 which can conflict with char $ac_func(); below. */
6627 /* Override any gcc2 internal prototype to avoid an error. */
6628 /* We use char because int might match the return type of a gcc2
6629 builtin and then its argument prototype would still apply. */
6634 /* The GNU C library defines this for functions which it implements
6635 to always fail with ENOSYS. Some functions are actually named
6636 something starting with __ and the normal name is an alias. */
6637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6645 if { (eval echo configure
:6646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6647 eval "ac_cv_func_$ac_func=yes"
6649 echo "configure: failed program was:" >&5
6650 cat conftest.
$ac_ext >&5
6652 eval "ac_cv_func_$ac_func=no"
6657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6658 echo "$ac_t""yes" 1>&6
6659 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6660 cat >> confdefs.h
<<EOF
6661 #define $ac_tr_func 1
6665 echo "$ac_t""no" 1>&6
6671 for ac_func
in nanosleep
6673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6674 echo "configure:6675: checking for $ac_func" >&5
6675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6676 echo $ac_n "(cached) $ac_c" 1>&6
6678 cat > conftest.
$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6681 /* System header to define __stub macros and hopefully few prototypes,
6682 which can conflict with char $ac_func(); below. */
6684 /* Override any gcc2 internal prototype to avoid an error. */
6685 /* We use char because int might match the return type of a gcc2
6686 builtin and then its argument prototype would still apply. */
6691 /* The GNU C library defines this for functions which it implements
6692 to always fail with ENOSYS. Some functions are actually named
6693 something starting with __ and the normal name is an alias. */
6694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6702 if { (eval echo configure
:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6704 eval "ac_cv_func_$ac_func=yes"
6706 echo "configure: failed program was:" >&5
6707 cat conftest.
$ac_ext >&5
6709 eval "ac_cv_func_$ac_func=no"
6714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6715 echo "$ac_t""yes" 1>&6
6716 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6717 cat >> confdefs.h
<<EOF
6718 #define $ac_tr_func 1
6720 cat >> confdefs.h
<<\EOF
6721 #define HAVE_NANOSLEEP 1
6725 echo "$ac_t""no" 1>&6
6726 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
6727 echo "configure:6728: checking for nanosleep in -lposix4" >&5
6728 ac_lib_var
=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
6729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6730 echo $ac_n "(cached) $ac_c" 1>&6
6732 ac_save_LIBS
="$LIBS"
6733 LIBS
="-lposix4 $LIBS"
6734 cat > conftest.
$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6746 if { (eval echo configure
:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6748 eval "ac_cv_lib_$ac_lib_var=yes"
6750 echo "configure: failed program was:" >&5
6751 cat conftest.
$ac_ext >&5
6753 eval "ac_cv_lib_$ac_lib_var=no"
6756 LIBS
="$ac_save_LIBS"
6759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6760 echo "$ac_t""yes" 1>&6
6762 cat >> confdefs.h
<<\EOF
6763 #define HAVE_NANOSLEEP 1
6766 POSIX4_LINK
="-lposix4"
6769 echo "$ac_t""no" 1>&6
6771 for ac_func
in usleep
6773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6774 echo "configure:6775: checking for $ac_func" >&5
6775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6776 echo $ac_n "(cached) $ac_c" 1>&6
6778 cat > conftest.
$ac_ext <<EOF
6779 #line 6780 "configure"
6780 #include "confdefs.h"
6781 /* System header to define __stub macros and hopefully few prototypes,
6782 which can conflict with char $ac_func(); below. */
6784 /* Override any gcc2 internal prototype to avoid an error. */
6785 /* We use char because int might match the return type of a gcc2
6786 builtin and then its argument prototype would still apply. */
6791 /* The GNU C library defines this for functions which it implements
6792 to always fail with ENOSYS. Some functions are actually named
6793 something starting with __ and the normal name is an alias. */
6794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6802 if { (eval echo configure
:6803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6804 eval "ac_cv_func_$ac_func=yes"
6806 echo "configure: failed program was:" >&5
6807 cat conftest.
$ac_ext >&5
6809 eval "ac_cv_func_$ac_func=no"
6814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6815 echo "$ac_t""yes" 1>&6
6816 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6817 cat >> confdefs.h
<<EOF
6818 #define $ac_tr_func 1
6820 cat >> confdefs.h
<<\EOF
6821 #define HAVE_USLEEP 1
6825 echo "$ac_t""no" 1>&6
6826 echo "configure: warning: wxSleep() function will not work" 1>&2
6838 for ac_func
in uname gethostname
6840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6841 echo "configure:6842: checking for $ac_func" >&5
6842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6843 echo $ac_n "(cached) $ac_c" 1>&6
6845 cat > conftest.
$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 /* System header to define __stub macros and hopefully few prototypes,
6849 which can conflict with char $ac_func(); below. */
6851 /* Override any gcc2 internal prototype to avoid an error. */
6852 /* We use char because int might match the return type of a gcc2
6853 builtin and then its argument prototype would still apply. */
6858 /* The GNU C library defines this for functions which it implements
6859 to always fail with ENOSYS. Some functions are actually named
6860 something starting with __ and the normal name is an alias. */
6861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6869 if { (eval echo configure
:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6871 eval "ac_cv_func_$ac_func=yes"
6873 echo "configure: failed program was:" >&5
6874 cat conftest.
$ac_ext >&5
6876 eval "ac_cv_func_$ac_func=no"
6881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6882 echo "$ac_t""yes" 1>&6
6883 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6884 cat >> confdefs.h
<<EOF
6885 #define $ac_tr_func 1
6889 echo "$ac_t""no" 1>&6
6895 cat > confcache
<<\EOF
6896 # This file is a shell script that caches the results of configure
6897 # tests run on this system so they can be shared between configure
6898 # scripts and configure runs. It is not useful on other systems.
6899 # If it contains results you don't want to keep, you may remove or edit it.
6901 # By default, configure uses ./config.cache as the cache file,
6902 # creating it if it does not exist already. You can give configure
6903 # the --cache-file=FILE option to use a different cache file; that is
6904 # what configure does when it calls configure scripts in
6905 # subdirectories, so they share the cache.
6906 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6907 # config.status only pays attention to the cache file if you give it the
6908 # --recheck option to rerun configure.
6911 # The following way of writing the cache mishandles newlines in values,
6912 # but we know of no workaround that is simple, portable, and efficient.
6913 # So, don't put newlines in cache variables' values.
6914 # Ultrix sh set writes to stderr and can't be redirected directly,
6915 # and sets the high bit in the cache file unless we assign to the vars.
6917 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6919 # `set' does not quote correctly, so add quotes (double-quote substitution
6920 # turns \\\\ into \\, and sed turns \\ into \).
6922 -e "s/'/'\\\\''/g" \
6923 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6926 # `set' quotes correctly as required by POSIX, so do not add quotes.
6927 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6930 if cmp -s $cache_file confcache
; then
6933 if test -w $cache_file; then
6934 echo "updating cache $cache_file"
6935 cat confcache
> $cache_file
6937 echo "not updating unwritable cache $cache_file"
6948 if test "$wxUSE_THREADS" = "yes"; then
6950 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
6951 echo "configure:6952: checking for pthread_create in -lpthread" >&5
6952 ac_lib_var
=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
6953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6954 echo $ac_n "(cached) $ac_c" 1>&6
6956 ac_save_LIBS
="$LIBS"
6957 LIBS
="-lpthread $LIBS"
6958 cat > conftest.
$ac_ext <<EOF
6959 #line 6960 "configure"
6960 #include "confdefs.h"
6961 /* Override any gcc2 internal prototype to avoid an error. */
6962 /* We use char because int might match the return type of a gcc2
6963 builtin and then its argument prototype would still apply. */
6964 char pthread_create();
6970 if { (eval echo configure
:6971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6972 eval "ac_cv_lib_$ac_lib_var=yes"
6974 echo "configure: failed program was:" >&5
6975 cat conftest.
$ac_ext >&5
6977 eval "ac_cv_lib_$ac_lib_var=no"
6980 LIBS
="$ac_save_LIBS"
6983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6984 echo "$ac_t""yes" 1>&6
6986 THREADS_OBJ
="threadpsx.lo"
6987 THREADS_LINK
="pthread"
6990 echo "$ac_t""no" 1>&6
6992 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
6993 echo "configure:6994: checking for pthread_create in -lc_r" >&5
6994 ac_lib_var
=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
6995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6996 echo $ac_n "(cached) $ac_c" 1>&6
6998 ac_save_LIBS
="$LIBS"
7000 cat > conftest.
$ac_ext <<EOF
7001 #line 7002 "configure"
7002 #include "confdefs.h"
7003 /* Override any gcc2 internal prototype to avoid an error. */
7004 /* We use char because int might match the return type of a gcc2
7005 builtin and then its argument prototype would still apply. */
7006 char pthread_create();
7012 if { (eval echo configure
:7013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7014 eval "ac_cv_lib_$ac_lib_var=yes"
7016 echo "configure: failed program was:" >&5
7017 cat conftest.
$ac_ext >&5
7019 eval "ac_cv_lib_$ac_lib_var=no"
7022 LIBS
="$ac_save_LIBS"
7025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7026 echo "$ac_t""yes" 1>&6
7028 THREADS_OBJ
="threadpsx.lo"
7032 echo "$ac_t""no" 1>&6
7034 ac_safe
=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
7035 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7036 echo "configure:7037: checking for sys/prctl.h" >&5
7037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7038 echo $ac_n "(cached) $ac_c" 1>&6
7040 cat > conftest.
$ac_ext <<EOF
7041 #line 7042 "configure"
7042 #include "confdefs.h"
7043 #include <sys/prctl.h>
7045 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7046 { (eval echo configure
:7047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7047 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7048 if test -z "$ac_err"; then
7050 eval "ac_cv_header_$ac_safe=yes"
7053 echo "configure: failed program was:" >&5
7054 cat conftest.
$ac_ext >&5
7056 eval "ac_cv_header_$ac_safe=no"
7060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7061 echo "$ac_t""yes" 1>&6
7063 THREADS_OBJ
="threadsgi.lo"
7066 echo "$ac_t""no" 1>&6
7075 if test "$THREADS_LINK" != ""; then
7076 cat >> confdefs.h
<<\EOF
7077 #define wxUSE_THREADS 1
7081 echo "configure: warning: No thread support on this system" 1>&2
7085 if test -z "$THREADS_OBJ"; then
7089 if test "$wxUSE_THREADS" = "yes"; then
7090 CFLAGS
="${CFLAGS} -D_REENTRANT"
7091 CXXFLAGS
="${CXXFLAGS} -D_REENTRANT"
7093 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS thread"
7094 LTLIBOBJS
="$LTLIBOBJS $THREADS_OBJ"
7097 for ac_hdr
in sched.h
7099 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7100 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7101 echo "configure:7102: checking for $ac_hdr" >&5
7102 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7103 echo $ac_n "(cached) $ac_c" 1>&6
7105 cat > conftest.
$ac_ext <<EOF
7106 #line 7107 "configure"
7107 #include "confdefs.h"
7110 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7111 { (eval echo configure
:7112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7112 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7113 if test -z "$ac_err"; then
7115 eval "ac_cv_header_$ac_safe=yes"
7118 echo "configure: failed program was:" >&5
7119 cat conftest.
$ac_ext >&5
7121 eval "ac_cv_header_$ac_safe=no"
7125 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7126 echo "$ac_t""yes" 1>&6
7127 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7128 cat >> confdefs.h
<<EOF
7129 #define $ac_tr_hdr 1
7133 echo "$ac_t""no" 1>&6
7138 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
7139 echo "configure:7140: checking for sched_yield in -l$THREADS_LINK" >&5
7140 ac_lib_var
=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
7141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7142 echo $ac_n "(cached) $ac_c" 1>&6
7144 ac_save_LIBS
="$LIBS"
7145 LIBS
="-l$THREADS_LINK $LIBS"
7146 cat > conftest.
$ac_ext <<EOF
7147 #line 7148 "configure"
7148 #include "confdefs.h"
7149 /* Override any gcc2 internal prototype to avoid an error. */
7150 /* We use char because int might match the return type of a gcc2
7151 builtin and then its argument prototype would still apply. */
7158 if { (eval echo configure
:7159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7160 eval "ac_cv_lib_$ac_lib_var=yes"
7162 echo "configure: failed program was:" >&5
7163 cat conftest.
$ac_ext >&5
7165 eval "ac_cv_lib_$ac_lib_var=no"
7168 LIBS
="$ac_save_LIBS"
7171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7172 echo "$ac_t""yes" 1>&6
7173 cat >> confdefs.h
<<\EOF
7174 #define HAVE_SCHED_YIELD 1
7178 echo "$ac_t""no" 1>&6
7179 echo $ac_n "checking for sched_yield in -l"posix4
"""... $ac_c" 1>&6
7180 echo "configure:7181: checking for sched_yield in -l"posix4
"" >&5
7181 ac_lib_var
=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
7182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7183 echo $ac_n "(cached) $ac_c" 1>&6
7185 ac_save_LIBS
="$LIBS"
7186 LIBS
="-l"posix4
" $LIBS"
7187 cat > conftest.
$ac_ext <<EOF
7188 #line 7189 "configure"
7189 #include "confdefs.h"
7190 /* Override any gcc2 internal prototype to avoid an error. */
7191 /* We use char because int might match the return type of a gcc2
7192 builtin and then its argument prototype would still apply. */
7199 if { (eval echo configure
:7200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7201 eval "ac_cv_lib_$ac_lib_var=yes"
7203 echo "configure: failed program was:" >&5
7204 cat conftest.
$ac_ext >&5
7206 eval "ac_cv_lib_$ac_lib_var=no"
7209 LIBS
="$ac_save_LIBS"
7212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7213 echo "$ac_t""yes" 1>&6
7214 cat >> confdefs.h
<<\EOF
7215 #define HAVE_SCHED_YIELD 1
7217 POSIX4_LINK
="-lposix4"
7219 echo "$ac_t""no" 1>&6
7220 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
7228 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
7229 echo "configure:7230: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
7230 ac_lib_var
=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
7231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7232 echo $ac_n "(cached) $ac_c" 1>&6
7234 ac_save_LIBS
="$LIBS"
7235 LIBS
="-l$THREADS_LINK $LIBS"
7236 cat > conftest.
$ac_ext <<EOF
7237 #line 7238 "configure"
7238 #include "confdefs.h"
7239 /* Override any gcc2 internal prototype to avoid an error. */
7240 /* We use char because int might match the return type of a gcc2
7241 builtin and then its argument prototype would still apply. */
7242 char pthread_attr_getschedpolicy();
7245 pthread_attr_getschedpolicy()
7248 if { (eval echo configure
:7249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7250 eval "ac_cv_lib_$ac_lib_var=yes"
7252 echo "configure: failed program was:" >&5
7253 cat conftest.
$ac_ext >&5
7255 eval "ac_cv_lib_$ac_lib_var=no"
7258 LIBS
="$ac_save_LIBS"
7261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7262 echo "$ac_t""yes" 1>&6
7263 cat >> confdefs.h
<<\EOF
7264 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
7268 echo "$ac_t""no" 1>&6
7269 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4
"""... $ac_c" 1>&6
7270 echo "configure:7271: checking for pthread_attr_getschedpolicy in -l"posix4
"" >&5
7271 ac_lib_var
=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
7272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7273 echo $ac_n "(cached) $ac_c" 1>&6
7275 ac_save_LIBS
="$LIBS"
7276 LIBS
="-l"posix4
" $LIBS"
7277 cat > conftest.
$ac_ext <<EOF
7278 #line 7279 "configure"
7279 #include "confdefs.h"
7280 /* Override any gcc2 internal prototype to avoid an error. */
7281 /* We use char because int might match the return type of a gcc2
7282 builtin and then its argument prototype would still apply. */
7283 char pthread_attr_getschedpolicy();
7286 pthread_attr_getschedpolicy()
7289 if { (eval echo configure
:7290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7291 eval "ac_cv_lib_$ac_lib_var=yes"
7293 echo "configure: failed program was:" >&5
7294 cat conftest.
$ac_ext >&5
7296 eval "ac_cv_lib_$ac_lib_var=no"
7299 LIBS
="$ac_save_LIBS"
7302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7303 echo "$ac_t""yes" 1>&6
7304 cat >> confdefs.h
<<\EOF
7305 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
7307 POSIX4_LINK
="-lposix4"
7309 echo "$ac_t""no" 1>&6
7310 echo "configure: warning: Setting thread priority will not work" 1>&2
7318 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
7319 echo "configure:7320: checking for pthread_cancel in -l$THREADS_LINK" >&5
7320 ac_lib_var
=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
7321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7322 echo $ac_n "(cached) $ac_c" 1>&6
7324 ac_save_LIBS
="$LIBS"
7325 LIBS
="-l$THREADS_LINK $LIBS"
7326 cat > conftest.
$ac_ext <<EOF
7327 #line 7328 "configure"
7328 #include "confdefs.h"
7329 /* Override any gcc2 internal prototype to avoid an error. */
7330 /* We use char because int might match the return type of a gcc2
7331 builtin and then its argument prototype would still apply. */
7332 char pthread_cancel();
7338 if { (eval echo configure
:7339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7340 eval "ac_cv_lib_$ac_lib_var=yes"
7342 echo "configure: failed program was:" >&5
7343 cat conftest.
$ac_ext >&5
7345 eval "ac_cv_lib_$ac_lib_var=no"
7348 LIBS
="$ac_save_LIBS"
7351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7352 echo "$ac_t""yes" 1>&6
7353 cat >> confdefs.h
<<\EOF
7354 #define HAVE_PTHREAD_CANCEL 1
7358 echo "$ac_t""no" 1>&6
7359 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
7363 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
7364 echo "configure:7365: checking for pthread_cleanup_push/pop" >&5
7365 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
7366 echo $ac_n "(cached) $ac_c" 1>&6
7369 cat > conftest.
$ac_ext <<EOF
7370 #line 7371 "configure"
7371 #include "confdefs.h"
7372 #include <pthread.h>
7375 pthread_cleanup_push(NULL, NULL);
7376 pthread_cleanup_pop(0);
7380 if { (eval echo configure
:7381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7383 wx_cv_func_pthread_cleanup_push
=yes
7384 cat >> confdefs.h
<<\EOF
7385 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
7390 echo "configure: failed program was:" >&5
7391 cat conftest.
$ac_ext >&5
7394 wx_cv_func_pthread_cleanup_push
=no
7401 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
7403 THREADS_LINK
="-l$THREADS_LINK"
7406 if test "$WXGTK12" = 1 ; then
7407 cat >> confdefs.h
<<EOF
7408 #define __WXGTK12__ $WXGTK12
7414 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
7415 wxUSE_DEBUG_INFO
=yes
7419 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
7424 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
7425 cat >> confdefs.h
<<\EOF
7429 WXDEBUG_DEFINE
="-D__WXDEBUG__"
7431 WXDEBUG_DEFINE
="-DGTK_NO_CHECK_CASTS"
7434 if test "$wxUSE_MEM_TRACING" = "yes" ; then
7435 cat >> confdefs.h
<<\EOF
7436 #define wxUSE_MEMORY_TRACING 1
7439 cat >> confdefs.h
<<\EOF
7440 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
7443 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS memcheck"
7446 if test "$wxUSE_DMALLOC" = "yes" ; then
7447 DMALLOC_LINK
="-ldmalloc"
7451 if test "$wxUSE_PROFILE" = "yes" ; then
7455 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
7456 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
7457 if test "$wxUSE_OPTIMISE" = "no" ; then
7460 if test "$GCC" = yes ; then
7464 OPTIMISE
="${OPTIMISE} "
7473 if test "$wxUSE_ZLIB" = "yes" ; then
7474 cat >> confdefs.h
<<\EOF
7475 #define wxUSE_ZLIB 1
7478 EXTRA_VPATH
="$EXTRA_VPATH:\$(srcdir)/zlib"
7479 LTLIBOBJS
="$LTLIBOBJS adler32.lo compress.lo crc32.lo gzio.lo uncompr.lo deflate.lo trees.lo zutil.lo inflate.lo infblock.lo inftrees.lo infcodes.lo infutil.lo inffast.lo"
7480 if eval "test x$wxUSE_STREAMS = x1"; then
7481 LTLIBOBJS
="$LTLIBOBJS zstream.lo"
7485 if test "$wxUSE_LIBPNG" = "yes" ; then
7486 cat >> confdefs.h
<<\EOF
7487 #define wxUSE_LIBPNG 1
7490 LTLIBOBJS
="$LTLIBOBJS imagpng.lo png.lo pngset.lo pngget.lo pngrutil.lo pngtrans.lo pngwutil.lo pngread.lo pngrio.lo pngwio.lo pngwrite.lo pngrtran.lo pngwtran.lo pngmem.lo pngerror.lo pngpread.lo"
7491 EXTRA_VPATH
="$EXTRA_VPATH:\$(srcdir)/png"
7492 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS png"
7495 if test "$wxUSE_LIBGIF" = "yes" ; then
7496 cat >> confdefs.h
<<\EOF
7497 #define wxUSE_LIBGIF 1
7500 LTLIBOBJS
="$LTLIBOBJS imaggif.lo"
7503 if test "$wxUSE_LIBJPEG" = "yes" ; then
7504 cat >> confdefs.h
<<\EOF
7505 #define wxUSE_LIBJPEG 1
7508 EXTRA_VPATH
="$EXTRA_VPATH:\${srcdir}/jpeg"
7509 LTLIBOBJS
="$LTLIBOBJS imagjpeg.lo \
7510 jcomapi.lo jutils.lo jerror.lo jmemmgr.lo jmemnobs.lo \
7511 jcapimin.lo jcapistd.lo jctrans.lo jcparam.lo jdatadst.lo \
7512 jcinit.lo jcmaster.lo jcmarker.lo jcmainct.lo jcprepct.lo \
7513 jccoefct.lo jccolor.lo jcsample.lo jchuff.lo jcphuff.lo \
7514 jcdctmgr.lo jfdctfst.lo jfdctflt.lo jfdctint.lo \
7515 jdapimin.lo jdapistd.lo jdtrans.lo jdatasrc.lo \
7516 jdmaster.lo jdinput.lo jdmarker.lo jdhuff.lo jdphuff.lo \
7517 jdmainct.lo jdcoefct.lo jdpostct.lo jddctmgr.lo jidctfst.lo \
7518 jidctflt.lo jidctint.lo jidctred.lo jdsample.lo jdcolor.lo \
7519 jquant1.lo jquant2.lo jdmerge.lo"
7522 if test "$wxUSE_OPENGL" = "yes"; then
7523 ac_safe
=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
7524 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
7525 echo "configure:7526: checking for GL/gl.h" >&5
7526 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7527 echo $ac_n "(cached) $ac_c" 1>&6
7529 cat > conftest.
$ac_ext <<EOF
7530 #line 7531 "configure"
7531 #include "confdefs.h"
7534 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7535 { (eval echo configure
:7536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7536 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7537 if test -z "$ac_err"; then
7539 eval "ac_cv_header_$ac_safe=yes"
7542 echo "configure: failed program was:" >&5
7543 cat conftest.
$ac_ext >&5
7545 eval "ac_cv_header_$ac_safe=no"
7549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7550 echo "$ac_t""yes" 1>&6
7552 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
7553 echo "configure:7554: checking for glInitNames in -lGL" >&5
7554 ac_lib_var
=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
7555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7558 ac_save_LIBS
="$LIBS"
7559 LIBS
="-lGL wxUSE_OPENGL=0 $LIBS"
7560 cat > conftest.
$ac_ext <<EOF
7561 #line 7562 "configure"
7562 #include "confdefs.h"
7563 /* Override any gcc2 internal prototype to avoid an error. */
7564 /* We use char because int might match the return type of a gcc2
7565 builtin and then its argument prototype would still apply. */
7572 if { (eval echo configure
:7573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7574 eval "ac_cv_lib_$ac_lib_var=yes"
7576 echo "configure: failed program was:" >&5
7577 cat conftest.
$ac_ext >&5
7579 eval "ac_cv_lib_$ac_lib_var=no"
7582 LIBS
="$ac_save_LIBS"
7585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7586 echo "$ac_t""yes" 1>&6
7589 cat >> confdefs.h
<<\EOF
7590 #define wxUSE_OPENGL 1
7593 UTILS_SUBDIRS
="$UTILS_SUBDIRS glcanvas/src"
7596 echo "$ac_t""no" 1>&6
7598 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
7599 echo "configure:7600: checking for glInitNames in -lMesaGL" >&5
7600 ac_lib_var
=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
7601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7602 echo $ac_n "(cached) $ac_c" 1>&6
7604 ac_save_LIBS
="$LIBS"
7605 LIBS
="-lMesaGL $LIBS"
7606 cat > conftest.
$ac_ext <<EOF
7607 #line 7608 "configure"
7608 #include "confdefs.h"
7609 /* Override any gcc2 internal prototype to avoid an error. */
7610 /* We use char because int might match the return type of a gcc2
7611 builtin and then its argument prototype would still apply. */
7618 if { (eval echo configure
:7619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7620 eval "ac_cv_lib_$ac_lib_var=yes"
7622 echo "configure: failed program was:" >&5
7623 cat conftest.
$ac_ext >&5
7625 eval "ac_cv_lib_$ac_lib_var=no"
7628 LIBS
="$ac_save_LIBS"
7631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7632 echo "$ac_t""yes" 1>&6
7634 OPENGL_LINK
="-lMesaGL"
7635 cat >> confdefs.h
<<\EOF
7636 #define wxUSE_OPENGL 1
7639 UTILS_SUBDIRS
="$UTILS_SUBDIRS glcanvas/src"
7642 echo "$ac_t""no" 1>&6
7651 echo "$ac_t""no" 1>&6
7658 if test "$wxUSE_GUI" = "yes"; then
7659 cat >> confdefs.h
<<\EOF
7664 LTLIBOBJS
="$LTLIBOBJS \
7665 main.lo app.lo event.lo wincmn.lo window.lo control.lo framecmn.lo frame.lo dialog.lo panelg.lo \
7666 button.lo stattext.lo textctrl.lo \
7667 bitmap.lo brush.lo colour.lo cursor.lo data.lo dc.lo dcbase.lo dcclient.lo \
7668 dcmemory.lo dcscreen.lo font.lo gdicmn.lo gdiobj.lo icon.lo palette.lo pen.lo region.lo \
7670 settings.lo timer.lo msgdlgg.lo"
7672 cat >> confdefs.h
<<\EOF
7673 #define wxUSE_NOGUI 1
7679 if test "$wxUSE_UNIX" = "yes"; then
7680 cat >> confdefs.h
<<\EOF
7681 #define wxUSE_UNIX 1
7684 LTLIBOBJS
="$LTLIBOBJS utilsunx.lo"
7688 if test "$wxUSE_APPLE_IEEE" = "yes"; then
7689 cat >> confdefs.h
<<\EOF
7690 #define wxUSE_APPLE_IEEE 1
7693 LTLIBOBJS
="$LTLIBOBJS extended.lo"
7696 if test "$wxUSE_TIMEDATE" = "yes"; then
7697 cat >> confdefs.h
<<\EOF
7698 #define wxUSE_TIMEDATE 1
7701 LTLIBOBJS
="$LTLIBOBJS date.lo time.lo"
7702 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS typetest"
7705 if test "$wxUSE_FILE" = "yes"; then
7706 cat >> confdefs.h
<<\EOF
7707 #define wxUSE_FILE 1
7710 LTLIBOBJS
="$LTLIBOBJS file.lo"
7713 if test "$wxUSE_TEXTFILE" = "yes"; then
7714 if test "$wxUSE_FILE" != "yes"; then
7715 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
7717 cat >> confdefs.h
<<\EOF
7718 #define wxUSE_TEXTFILE 1
7721 LTLIBOBJS
="$LTLIBOBJS textfile.lo"
7725 if test "$wxUSE_CONFIG" = "yes" ; then
7726 if test "$wxUSE_TEXTFILE" != "yes"; then
7727 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
7729 cat >> confdefs.h
<<\EOF
7730 #define wxUSE_CONFIG 1
7733 LTLIBOBJS
="$LTLIBOBJS config.lo fileconf.lo"
7734 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS config"
7738 if test "$wxUSE_INTL" = "yes" ; then
7739 if test "$wxUSE_FILE" != "yes"; then
7740 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
7742 cat >> confdefs.h
<<\EOF
7743 #define wxUSE_INTL 1
7746 LTLIBOBJS
="$LTLIBOBJS intl.lo"
7747 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS internat"
7751 if test "$wxUSE_LOG" = "yes"; then
7752 cat >> confdefs.h
<<\EOF
7756 LTLIBOBJS
="$LTLIBOBJS log.lo"
7759 if test "$wxUSE_LONGLONG" = "yes"; then
7760 cat >> confdefs.h
<<\EOF
7761 #define wxUSE_LONGLONG 1
7764 LTLIBOBJS
="$LTLIBOBJS longlong.lo"
7767 if test "$wxUSE_SOCKETS" = "yes" ; then
7768 if test "$wxUSE_THREADS" = "yes" ; then
7769 cat >> confdefs.h
<<\EOF
7770 #define wxUSE_SOCKETS 1
7773 LTLIBOBJS
="$LTLIBOBJS sckint.lo socket.lo sckaddr.lo protocol.lo http.lo ftp.lo url.lo"
7774 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS wxsocket"
7775 INCLUDE_SUBDIRS
="$INCLUDE_SUBDIRS protocol"
7777 echo "configure: warning: socket classes require --with-threads and won't be compiled without it" 1>&2
7782 if test "$wxUSE_STREAMS" = "yes" ; then
7783 cat >> confdefs.h
<<\EOF
7784 #define wxUSE_STREAMS 1
7787 LTLIBOBJS
="$LTLIBOBJS stream.lo wfstream.lo datstrm.lo mstream.lo objstrm.lo"
7788 if test "$wxUSE_SOCKETS" = "yes" ; then
7789 LTLIBOBJS
="$LTLIBOBJS sckstrm.lo"
7793 if test "$wxUSE_SERIAL" = "yes" ; then
7794 cat >> confdefs.h
<<\EOF
7795 #define wxUSE_SERIAL 1
7801 if test "$wxUSE_SOCKETS" = "yes"; then
7804 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7805 ac_cpp
='$CXXCPP $CPPFLAGS'
7806 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7807 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7808 cross_compiling
=$ac_cv_prog_cxx_cross
7810 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
7811 echo "configure:7812: checking the type of the third argument of getsockname" >&5
7812 cat > conftest.
$ac_ext <<EOF
7813 #line 7814 "configure"
7814 #include "confdefs.h"
7815 #include <sys/socket.h>
7817 socklen_t len; getsockname(0, NULL, &len);
7820 if { (eval echo configure
:7821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7822 cat >> confdefs.h
<<\EOF
7823 #define SOCKLEN_T socklen_t
7825 echo "$ac_t""socklen_t" 1>&6
7827 echo "configure: failed program was:" >&5
7828 cat conftest.
$ac_ext >&5
7830 cat > conftest.
$ac_ext <<EOF
7831 #line 7832 "configure"
7832 #include "confdefs.h"
7833 #include <sys/socket.h>
7835 size_t len; getsockname(0, NULL, &len);
7838 if { (eval echo configure
:7839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7840 cat >> confdefs.h
<<\EOF
7841 #define SOCKLEN_T size_t
7843 echo "$ac_t""size_t" 1>&6
7845 echo "configure: failed program was:" >&5
7846 cat conftest.
$ac_ext >&5
7848 cat > conftest.
$ac_ext <<EOF
7849 #line 7850 "configure"
7850 #include "confdefs.h"
7851 #include <sys/socket.h>
7853 int len; getsockname(0, NULL, &len);
7856 if { (eval echo configure
:7857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7858 cat >> confdefs.h
<<\EOF
7859 #define SOCKLEN_T int
7861 echo "$ac_t""int" 1>&6
7863 echo "configure: failed program was:" >&5
7864 cat conftest.
$ac_ext >&5
7866 echo "$ac_t""unknown" 1>&6
7877 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7878 ac_cpp
='$CPP $CPPFLAGS'
7879 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7880 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7881 cross_compiling
=$ac_cv_prog_cc_cross
7886 if test "$wxUSE_JOYSTICK" = 1; then
7887 for ac_hdr
in linux
/joystick.h
7889 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7891 echo "configure:7892: checking for $ac_hdr" >&5
7892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
7895 cat > conftest.
$ac_ext <<EOF
7896 #line 7897 "configure"
7897 #include "confdefs.h"
7900 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7901 { (eval echo configure
:7902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7902 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7903 if test -z "$ac_err"; then
7905 eval "ac_cv_header_$ac_safe=yes"
7908 echo "configure: failed program was:" >&5
7909 cat conftest.
$ac_ext >&5
7911 eval "ac_cv_header_$ac_safe=no"
7915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7916 echo "$ac_t""yes" 1>&6
7917 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7918 cat >> confdefs.h
<<EOF
7919 #define $ac_tr_hdr 1
7923 echo "$ac_t""no" 1>&6
7927 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
7928 cat >> confdefs.h
<<\EOF
7929 #define wxUSE_JOYSTICK 1
7932 LTLIBOBJS
="$LTLIBOBJS joystick.lo"
7933 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS joytest"
7940 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
7941 for ac_func
in dlopen
7943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7944 echo "configure:7945: checking for $ac_func" >&5
7945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7946 echo $ac_n "(cached) $ac_c" 1>&6
7948 cat > conftest.
$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7951 /* System header to define __stub macros and hopefully few prototypes,
7952 which can conflict with char $ac_func(); below. */
7954 /* Override any gcc2 internal prototype to avoid an error. */
7955 /* We use char because int might match the return type of a gcc2
7956 builtin and then its argument prototype would still apply. */
7961 /* The GNU C library defines this for functions which it implements
7962 to always fail with ENOSYS. Some functions are actually named
7963 something starting with __ and the normal name is an alias. */
7964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7972 if { (eval echo configure
:7973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7974 eval "ac_cv_func_$ac_func=yes"
7976 echo "configure: failed program was:" >&5
7977 cat conftest.
$ac_ext >&5
7979 eval "ac_cv_func_$ac_func=no"
7984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7985 echo "$ac_t""yes" 1>&6
7986 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7987 cat >> confdefs.h
<<EOF
7988 #define $ac_tr_func 1
7990 cat >> confdefs.h
<<\EOF
7991 #define HAVE_DLOPEN 1
7995 echo "$ac_t""no" 1>&6
7996 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7997 echo "configure:7998: checking for dlopen in -ldl" >&5
7998 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
7999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8000 echo $ac_n "(cached) $ac_c" 1>&6
8002 ac_save_LIBS
="$LIBS"
8004 cat > conftest.
$ac_ext <<EOF
8005 #line 8006 "configure"
8006 #include "confdefs.h"
8007 /* Override any gcc2 internal prototype to avoid an error. */
8008 /* We use char because int might match the return type of a gcc2
8009 builtin and then its argument prototype would still apply. */
8016 if { (eval echo configure
:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8018 eval "ac_cv_lib_$ac_lib_var=yes"
8020 echo "configure: failed program was:" >&5
8021 cat conftest.
$ac_ext >&5
8023 eval "ac_cv_lib_$ac_lib_var=no"
8026 LIBS
="$ac_save_LIBS"
8029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8030 echo "$ac_t""yes" 1>&6
8031 cat >> confdefs.h
<<\EOF
8032 #define HAVE_DLOPEN 1
8036 echo "$ac_t""no" 1>&6
8042 for ac_func
in shl_load
8044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8045 echo "configure:8046: checking for $ac_func" >&5
8046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8047 echo $ac_n "(cached) $ac_c" 1>&6
8049 cat > conftest.
$ac_ext <<EOF
8050 #line 8051 "configure"
8051 #include "confdefs.h"
8052 /* System header to define __stub macros and hopefully few prototypes,
8053 which can conflict with char $ac_func(); below. */
8055 /* Override any gcc2 internal prototype to avoid an error. */
8056 /* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8062 /* The GNU C library defines this for functions which it implements
8063 to always fail with ENOSYS. Some functions are actually named
8064 something starting with __ and the normal name is an alias. */
8065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8073 if { (eval echo configure
:8074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8075 eval "ac_cv_func_$ac_func=yes"
8077 echo "configure: failed program was:" >&5
8078 cat conftest.
$ac_ext >&5
8080 eval "ac_cv_func_$ac_func=no"
8085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8086 echo "$ac_t""yes" 1>&6
8087 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8088 cat >> confdefs.h
<<EOF
8089 #define $ac_tr_func 1
8091 cat >> confdefs.h
<<\EOF
8092 #define HAVE_SHL_LOAD 1
8094 HAVE_DL_FUNCS
=1 HAVE_SHL_FUNCS
=1
8096 echo "$ac_t""no" 1>&6
8101 if test "$HAVE_DL_FUNCS" = 0; then
8102 echo "configure: warning: "--with-dynlib and
--with-odbc will be disabled due to missing shared library support
"" 1>&2
8104 wxUSE_DYNLIB_CLASS
=no
8108 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
8109 cat >> confdefs.h
<<\EOF
8110 #define wxUSE_DYNLIB_CLASS 1
8113 LTLIBOBJS
="$LTLIBOBJS dynlib.lo"
8117 if test "$wxUSE_UNICODE" = "yes" ; then
8118 cat >> confdefs.h
<<\EOF
8119 #define wxUSE_UNICODE 1
8124 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
8125 cat >> confdefs.h
<<\EOF
8126 #define wxUSE_WCSRTOMBS 1
8133 if test "$wxUSE_ODBC" = "yes" ; then
8134 cat >> confdefs.h
<<\EOF
8135 #define wxUSE_ODBC 1
8138 EXTRA_VPATH
="$EXTRA_VPATH:\$(srcdir)/iodbc"
8139 LTLIBOBJS
="$LTLIBOBJS catalog.lo connect.lo dlf.lo dlproc.lo execute.lo fetch.lo hdbc.lo henv.lo herr.lo hstmt.lo info.lo itrace.lo misc.lo prepare.lo result.lo"
8140 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS db"
8144 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
8145 cat >> confdefs.h
<<\EOF
8146 #define wxUSE_POSTSCRIPT 1
8149 LTLIBOBJS
="$LTLIBOBJS printps.lo dcpsg.lo"
8152 cat >> confdefs.h
<<\EOF
8153 #define wxUSE_AFM_FOR_POSTSCRIPT 1
8157 cat >> confdefs.h
<<\EOF
8158 #define wxUSE_NORMALIZED_PS_FONTS 1
8163 if test "$wxUSE_CONSTRAINTS" = "yes"; then
8164 cat >> confdefs.h
<<\EOF
8165 #define wxUSE_CONSTRAINTS 1
8169 LTLIBOBJS
="$LTLIBOBJS layout.lo laywin.lo"
8170 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS layout"
8173 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
8174 cat >> confdefs.h
<<\EOF
8175 #define wxUSE_MDI_ARCHITECTURE 1
8178 LTLIBOBJS
="$LTLIBOBJS mdi.lo"
8179 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS mdi"
8182 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
8183 cat >> confdefs.h
<<\EOF
8184 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
8187 LTLIBOBJS
="$LTLIBOBJS docview.lo"
8188 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS docview"
8189 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
8190 LTLIBOBJS
="$LTLIBOBJS docmdi.lo"
8191 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS docvwmdi"
8195 if test "$wxUSE_HELP" = "yes"; then
8196 cat >> confdefs.h
<<\EOF
8197 #define wxUSE_HELP 1
8200 LTLIBOBJS
="$LTLIBOBJS helpext.lo helphtml.lo helpbase.lo"
8201 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS help"
8204 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
8205 cat >> confdefs.h
<<\EOF
8206 #define wxUSE_PRINTING_ARCHITECTURE 1
8209 LTLIBOBJS
="$LTLIBOBJS prntbase.lo paper.lo"
8210 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS printing"
8213 if test "$wxUSE_PROLOGIO" = "yes" ; then
8214 cat >> confdefs.h
<<\EOF
8215 #define wxUSE_PROLOGIO 1
8218 LTLIBOBJS
="$LTLIBOBJS wxexpr.lo parser.lo"
8221 if test "$wxUSE_RESOURCES" = "yes" ; then
8222 if test "$wxUSE_PROLOGIO" = "yes" ; then
8223 cat >> confdefs.h
<<\EOF
8224 #define wxUSE_RESOURCES 1
8227 LTLIBOBJS
="$LTLIBOBJS resource.lo"
8228 if test "$wxUSE_GTK" = 1; then
8229 LTLIBOBJS
="$LTLIBOBJS utilsres.lo"
8231 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS resource"
8233 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
8237 if test "$wxUSE_X_RESOURCES" = "yes"; then
8238 cat >> confdefs.h
<<\EOF
8239 #define wxUSE_X_RESOURCES 1
8245 if test "$wxUSE_IPC" = "yes"; then
8246 cat >> confdefs.h
<<\EOF
8250 LTLIBOBJS
="$LTLIBOBJS ipcbase.lo sckipc.lo"
8253 if test "$wxUSE_CLIPBOARD" = "yes"; then
8254 cat >> confdefs.h
<<\EOF
8255 #define wxUSE_CLIPBOARD 1
8258 LTLIBOBJS
="$LTLIBOBJS clipbrd.lo dataobj.lo"
8261 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
8262 if test "$WXGTK12" = 1 ; then
8263 cat >> confdefs.h
<<\EOF
8264 #define wxUSE_DRAG_AND_DROP 1
8267 LTLIBOBJS
="$LTLIBOBJS dnd.lo"
8268 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS dnd"
8269 if test "$wxUSE_CLIPBOARD" != "yes"; then
8270 LTLIBOBJS
="$LTLIBOBJS dataobj.lo"
8273 echo "configure: warning: drag and drop is only supported under GTK 1.2" 1>&2
8277 if test "$wxUSE_SPLINES" = "yes" ; then
8278 cat >> confdefs.h
<<\EOF
8279 #define wxUSE_SPLINES 1
8285 if test "$wxUSE_ACCEL" = "yes"; then
8286 cat >> confdefs.h
<<\EOF
8287 #define wxUSE_ACCEL 1
8290 LTLIBOBJS
="$LTLIBOBJS accel.lo"
8293 if test "$wxUSE_CARET" = "yes"; then
8294 cat >> confdefs.h
<<\EOF
8295 #define wxUSE_CARET 1
8298 LTLIBOBJS
="$LTLIBOBJS caret.lo"
8299 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS caret"
8302 if test "$wxUSE_COMBOBOX" = "yes"; then
8303 cat >> confdefs.h
<<\EOF
8304 #define wxUSE_COMBOBOX 1
8307 LTLIBOBJS
="$LTLIBOBJS choice.lo combobox.lo"
8310 if test "$wxUSE_BMPBUTTON" = "yes"; then
8311 cat >> confdefs.h
<<\EOF
8312 #define wxUSE_BMPBUTTON 1
8315 LTLIBOBJS
="$LTLIBOBJS bmpbuttn.lo"
8318 if test "$wxUSE_CHECKBOX" = "yes"; then
8319 cat >> confdefs.h
<<\EOF
8320 #define wxUSE_CHECKBOX 1
8323 LTLIBOBJS
="$LTLIBOBJS checkbox.lo"
8326 if test "$wxUSE_CHECKLST" = "yes"; then
8327 cat >> confdefs.h
<<\EOF
8328 #define wxUSE_CHECKLISTBOX 1
8331 LTLIBOBJS
="$LTLIBOBJS checklst.lo"
8332 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS checklst"
8335 if test "$wxUSE_GAUGE" = "yes"; then
8336 cat >> confdefs.h
<<\EOF
8337 #define wxUSE_GAUGE 1
8340 LTLIBOBJS
="$LTLIBOBJS gauge.lo"
8343 if test "$wxUSE_GRID" = "yes"; then
8344 cat >> confdefs.h
<<\EOF
8345 #define wxUSE_GRID 1
8348 LTLIBOBJS
="$LTLIBOBJS gridg.lo"
8349 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS grid"
8352 if test "$wxUSE_IMAGLIST" = "yes"; then
8353 cat >> confdefs.h
<<\EOF
8354 #define wxUSE_IMAGLIST 1
8357 LTLIBOBJS
="$LTLIBOBJS imaglist.lo"
8360 if test "$wxUSE_LISTBOX" = "yes"; then
8361 cat >> confdefs.h
<<\EOF
8362 #define wxUSE_LISTBOX 1
8365 LTLIBOBJS
="$LTLIBOBJS listbox.lo"
8368 if test "$wxUSE_LISTCTRL" = "yes"; then
8369 if test "$wxUSE_IMAGLIST" = "yes"; then
8370 cat >> confdefs.h
<<\EOF
8371 #define wxUSE_LISTCTRL 1
8374 LTLIBOBJS
="$LTLIBOBJS listctrl.lo"
8375 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS listctrl"
8377 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
8381 if test "$wxUSE_NOTEBOOK" = "yes"; then
8382 cat >> confdefs.h
<<\EOF
8383 #define wxUSE_NOTEBOOK 1
8386 LTLIBOBJS
="$LTLIBOBJS notebook.lo"
8387 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS notebook"
8390 if test "$wxUSE_RADIOBOX" = "yes"; then
8391 cat >> confdefs.h
<<\EOF
8392 #define wxUSE_RADIOBOX 1
8395 LTLIBOBJS
="$LTLIBOBJS radiobox.lo"
8398 if test "$wxUSE_RADIOBTN" = "yes"; then
8399 cat >> confdefs.h
<<\EOF
8400 #define wxUSE_RADIOBTN 1
8403 LTLIBOBJS
="$LTLIBOBJS radiobut.lo"
8406 if test "wxUSE_SASH" = 1; then
8407 cat >> confdefs.h
<<\EOF
8408 #define wxUSE_SASH 1
8411 LTLIBOBJS
="$LTLIBOBJS sashwin.lo"
8412 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS sashtest"
8415 if test "$wxUSE_SCROLLBAR" = "yes"; then
8416 cat >> confdefs.h
<<\EOF
8417 #define wxUSE_SCROLLBAR 1
8420 LTLIBOBJS
="$LTLIBOBJS scrolbar.lo scrolwin.lo"
8421 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS scroll"
8424 if test "$wxUSE_SLIDER" = "yes"; then
8425 cat >> confdefs.h
<<\EOF
8426 #define wxUSE_SLIDER 1
8429 LTLIBOBJS
="$LTLIBOBJS slider.lo"
8432 if test "$wxUSE_SPINBTN" = "yes"; then
8433 cat >> confdefs.h
<<\EOF
8434 #define wxUSE_SPINBTN 1
8437 LTLIBOBJS
="$LTLIBOBJS spinbutt.lo"
8440 if test "$wxUSE_SPLITTER" = "yes"; then
8441 cat >> confdefs.h
<<\EOF
8442 #define wxUSE_SPLITTER 1
8445 LTLIBOBJS
="$LTLIBOBJS splitter.lo"
8446 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS splitter"
8449 if test "$wxUSE_STATBMP" = "yes"; then
8450 cat >> confdefs.h
<<\EOF
8451 #define wxUSE_STATBMP 1
8454 LTLIBOBJS
="$LTLIBOBJS statbmp.lo"
8457 if test "$wxUSE_STATBOX" = "yes"; then
8458 cat >> confdefs.h
<<\EOF
8459 #define wxUSE_STATBOX 1
8462 LTLIBOBJS
="$LTLIBOBJS statbox.lo"
8465 if test "$wxUSE_STATLINE" = "yes"; then
8466 cat >> confdefs.h
<<\EOF
8467 #define wxUSE_STATLINE 1
8470 LTLIBOBJS
="$LTLIBOBJS statline.lo"
8473 if test "$wxUSE_STATUSBAR" = "yes"; then
8474 cat >> confdefs.h
<<\EOF
8475 #define wxUSE_STATUSBAR 1
8478 LTLIBOBJS
="$LTLIBOBJS statusbr.lo"
8481 if test "$wxUSE_TABDIALOG" = "yes"; then
8482 cat >> confdefs.h
<<\EOF
8483 #define wxUSE_TAB_DIALOG 1
8486 LTLIBOBJS
="$LTLIBOBJS tabg.lo"
8487 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS tab"
8490 if test "$wxUSE_TOOLBAR" = "yes"; then
8491 cat >> confdefs.h
<<\EOF
8492 #define wxUSE_TOOLBAR 1
8495 LTLIBOBJS
="$LTLIBOBJS tbarbase.lo tbargtk.lo"
8496 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS toolbar"
8499 if test "$wxUSE_TOOLTIPS" = "yes" ; then
8500 if test "$wxUSE_MOTIF" = "yes"; then
8501 echo "configure: warning: tooltips are not supported yet under Motif" 1>&2
8503 cat >> confdefs.h
<<\EOF
8504 #define wxUSE_TOOLTIPS 1
8507 LTLIBOBJS
="$LTLIBOBJS tooltip.lo"
8511 if test "$wxUSE_TREECTRL" = "yes"; then
8512 if test "$wxUSE_IMAGLIST" = "yes"; then
8513 cat >> confdefs.h
<<\EOF
8514 #define wxUSE_TREECTRL 1
8517 LTLIBOBJS
="$LTLIBOBJS treectrl.lo"
8518 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS treectrl"
8520 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
8526 if test "$wxUSE_METAFILE" = "yes"; then
8527 cat >> confdefs.h
<<\EOF
8528 #define wxUSE_METAFILE 1
8531 LTLIBOBJS
="$LTLIBOBJS metafile.lo"
8534 if test "$wxUSE_COMMONDLGS" = "yes"; then
8535 LTLIBOBJS
="$LTLIBOBJS progdlgg.lo filedlg.lo fontdlgg.lo"
8537 if test "$wxUSE_CONSTRAINTS" != "yes"; then
8538 echo "configure: warning: many common dialogs cannot be used without constraints so they won't be compiled without them" 1>&2
8540 cat >> confdefs.h
<<\EOF
8541 #define wxUSE_CONSTRAINTS 1
8544 cat >> confdefs.h
<<\EOF
8545 #define wxUSE_TEXTDLG 1
8548 LTLIBOBJS
="$LTLIBOBJS colrdlgg.lo textdlgg.lo choicdgg.lo"
8550 if test "$wxUSE_TREECTRL" != "yes"; then
8551 echo "configure: warning: wxDirDialog cannot be used without wxTreeCtrl and it won't be compiled without it" 1>&2
8553 cat >> confdefs.h
<<\EOF
8554 #define wxUSE_DIRDLG 1
8557 LTLIBOBJS
="$LTLIBOBJS dirdlgg.lo"
8561 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
8562 LTLIBOBJS
="$LTLIBOBJS prntdlgg.lo"
8564 echo "configure: warning: wxPrintDialog class won't be compiled without printing support" 1>&2
8568 if test "$wxUSE_MINIFRAME" = "yes"; then
8569 cat >> confdefs.h
<<\EOF
8570 #define wxUSE_MINIFRAME 1
8573 LTLIBOBJS
="$LTLIBOBJS minifram.lo"
8574 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS minifram"
8577 if test "$wxUSE_VALIDATORS" = "yes"; then
8578 cat >> confdefs.h
<<\EOF
8579 #define wxUSE_VALIDATORS 1
8582 LTLIBOBJS
="$LTLIBOBJS valgen.lo validate.lo valtext.lo"
8583 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS validate"
8587 GUILIBS
="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
8589 EXTRA_LIBS
="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $GUILIBS"
8591 LIBS
="\${top_builddir}/src/libwx_${WX_LIBRARY}.la $EXTRA_LIBS"
8593 INCLUDES
="$TOOLKIT_INCLUDE $ZLIB_INCLUDE $LIBPNG_INCLUDE -I. -I\${top_builddir}/include -I\${top_srcdir}/include"
8595 if test "$ac_cv_prog_gcc" = "yes"; then
8598 EXTRA_CFLAGS
="$WXDEBUG $PROFILE $OPTIMISE $INCLUDES"
8600 CFLAGS
="$CFLAGS $EXTRA_CFLAGS"
8601 CXXFLAGS
="$CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS"
8603 if test "$wxUSE_GUI" = "yes"; then
8605 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
8606 forty fractal image wxpoem"
8614 LIBTOOL
="$LIBTOOL --silent"
8636 SETUPH_DIR
=include
/wx
/${TOOLKIT_DIR}
8637 mkdir -p ${SETUPH_DIR}
8642 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
8643 echo "configure:8644: checking whether ${MAKE-make} sets \${MAKE}" >&5
8644 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
8645 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
8646 echo $ac_n "(cached) $ac_c" 1>&6
8648 cat > conftestmake
<<\EOF
8650 @
echo 'ac_maketemp="${MAKE}"'
8652 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8653 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
8654 if test -n "$ac_maketemp"; then
8655 eval ac_cv_prog_make_
${ac_make}_set
=yes
8657 eval ac_cv_prog_make_
${ac_make}_set
=no
8661 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8662 echo "$ac_t""yes" 1>&6
8665 echo "$ac_t""no" 1>&6
8666 SET_MAKE
="MAKE=${MAKE-make}"
8671 cat > confcache
<<\EOF
8672 # This file is a shell script that caches the results of configure
8673 # tests run on this system so they can be shared between configure
8674 # scripts and configure runs. It is not useful on other systems.
8675 # If it contains results you don't want to keep, you may remove or edit it.
8677 # By default, configure uses ./config.cache as the cache file,
8678 # creating it if it does not exist already. You can give configure
8679 # the --cache-file=FILE option to use a different cache file; that is
8680 # what configure does when it calls configure scripts in
8681 # subdirectories, so they share the cache.
8682 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8683 # config.status only pays attention to the cache file if you give it the
8684 # --recheck option to rerun configure.
8687 # The following way of writing the cache mishandles newlines in values,
8688 # but we know of no workaround that is simple, portable, and efficient.
8689 # So, don't put newlines in cache variables' values.
8690 # Ultrix sh set writes to stderr and can't be redirected directly,
8691 # and sets the high bit in the cache file unless we assign to the vars.
8693 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8695 # `set' does not quote correctly, so add quotes (double-quote substitution
8696 # turns \\\\ into \\, and sed turns \\ into \).
8698 -e "s/'/'\\\\''/g" \
8699 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8702 # `set' quotes correctly as required by POSIX, so do not add quotes.
8703 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8706 if cmp -s $cache_file confcache
; then
8709 if test -w $cache_file; then
8710 echo "updating cache $cache_file"
8711 cat confcache
> $cache_file
8713 echo "not updating unwritable cache $cache_file"
8718 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8720 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8721 # Let make expand exec_prefix.
8722 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8724 # Any assignment to VPATH causes Sun make to only execute
8725 # the first set of double-colon rules, so remove it if not needed.
8726 # If there is a colon in the path, we need to keep it.
8727 if test "x$srcdir" = x.
; then
8728 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8731 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8733 DEFS
=-DHAVE_CONFIG_H
8735 # Without the "./", some shells look in PATH for config.status.
8736 : ${CONFIG_STATUS=./config.status}
8738 echo creating
$CONFIG_STATUS
8739 rm -f $CONFIG_STATUS
8740 cat > $CONFIG_STATUS <<EOF
8742 # Generated automatically by configure.
8743 # Run this file to recreate the current configuration.
8744 # This directory was configured as follows,
8745 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8747 # $0 $ac_configure_args
8749 # Compiler output produced by configure, useful for debugging
8750 # configure, is in ./config.log if it exists.
8752 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8755 case "\$ac_option" in
8756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8757 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8758 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8759 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8760 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8762 -help | --help | --hel | --he | --h)
8763 echo "\$ac_cs_usage"; exit 0 ;;
8764 *) echo "\$ac_cs_usage"; exit 1 ;;
8768 ac_given_srcdir=$srcdir
8769 ac_given_INSTALL="$INSTALL"
8771 trap 'rm -fr `echo "
8773 Makefile src/Makefile
8776 include/wx/generic/Makefile
8777 include/wx/gtk/Makefile
8778 include/wx/motif/Makefile
8779 include/wx/msw/Makefile
8780 include/wx/protocol/Makefile
8781 include/wx/unix/Makefile
8783 samples/bombs/Makefile
8784 samples/caret/Makefile
8785 samples/checklst/Makefile
8786 samples/config/Makefile
8787 samples/controls/Makefile
8789 samples/dialogs/Makefile
8790 samples/dnd/Makefile
8791 samples/docview/Makefile
8792 samples/docvwmdi/Makefile
8793 samples/drawing/Makefile
8794 samples/dynamic/Makefile
8795 samples/forty/Makefile
8796 samples/fractal/Makefile
8797 samples/grid/Makefile
8798 samples/help/Makefile
8799 samples/image/Makefile
8800 samples/internat/Makefile
8801 samples/joytest/Makefile
8802 samples/layout/Makefile
8803 samples/listctrl/Makefile
8804 samples/mdi/Makefile
8805 samples/memcheck/Makefile
8806 samples/mfc/Makefile
8807 samples/minifram/Makefile
8808 samples/minimal/Makefile
8809 samples/nativdlg/Makefile
8810 samples/notebook/Makefile
8811 samples/oleauto/Makefile
8812 samples/ownerdrw/Makefile
8813 samples/png/Makefile
8814 samples/printing/Makefile
8815 samples/proplist/Makefile
8816 samples/regtest/Makefile
8817 samples/resource/Makefile
8818 samples/sashtest/Makefile
8819 samples/scroll/Makefile
8820 samples/splitter/Makefile
8821 samples/tab/Makefile
8822 samples/taskbar/Makefile
8823 samples/thread/Makefile
8824 samples/toolbar/Makefile
8825 samples/treectrl/Makefile
8826 samples/typetest/Makefile
8827 samples/validate/Makefile
8828 samples/wxpoem/Makefile
8829 samples/wxsocket/Makefile
8830 ${SETUPH_DIR}/setup.h:include/wx/unix/setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8832 cat >> $CONFIG_STATUS <<EOF
8834 # Protect against being on the right side of a sed subst in config.status.
8835 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8836 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8840 s%@CFLAGS@%$CFLAGS%g
8841 s%@CPPFLAGS@%$CPPFLAGS%g
8842 s%@CXXFLAGS@%$CXXFLAGS%g
8843 s%@FFLAGS@%$FFLAGS%g
8845 s%@LDFLAGS@%$LDFLAGS%g
8847 s%@exec_prefix@%$exec_prefix%g
8848 s%@prefix@%$prefix%g
8849 s%@program_transform_name@%$program_transform_name%g
8850 s%@bindir@%$bindir%g
8851 s%@sbindir@%$sbindir%g
8852 s%@libexecdir@%$libexecdir%g
8853 s%@datadir@%$datadir%g
8854 s%@sysconfdir@%$sysconfdir%g
8855 s%@sharedstatedir@%$sharedstatedir%g
8856 s%@localstatedir@%$localstatedir%g
8857 s%@libdir@%$libdir%g
8858 s%@includedir@%$includedir%g
8859 s%@oldincludedir@%$oldincludedir%g
8860 s%@infodir@%$infodir%g
8861 s%@mandir@%$mandir%g
8863 s%@host_alias@%$host_alias%g
8864 s%@host_cpu@%$host_cpu%g
8865 s%@host_vendor@%$host_vendor%g
8866 s%@host_os@%$host_os%g
8867 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8868 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8869 s%@INSTALL_DATA@%$INSTALL_DATA%g
8870 s%@PACKAGE@%$PACKAGE%g
8871 s%@VERSION@%$VERSION%g
8872 s%@ACLOCAL@%$ACLOCAL%g
8873 s%@AUTOCONF@%$AUTOCONF%g
8874 s%@AUTOMAKE@%$AUTOMAKE%g
8875 s%@AUTOHEADER@%$AUTOHEADER%g
8876 s%@MAKEINFO@%$MAKEINFO%g
8877 s%@SET_MAKE@%$SET_MAKE%g
8881 s%@CXXCPP@%$CXXCPP%g
8882 s%@RANLIB@%$RANLIB%g
8888 s%@LEXLIB@%$LEXLIB%g
8889 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
8891 s%@build_alias@%$build_alias%g
8892 s%@build_cpu@%$build_cpu%g
8893 s%@build_vendor@%$build_vendor%g
8894 s%@build_os@%$build_os%g
8897 s%@LIBTOOL@%$LIBTOOL%g
8898 s%@DLLTOOL@%$DLLTOOL%g
8900 s%@X_CFLAGS@%$X_CFLAGS%g
8901 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8902 s%@X_LIBS@%$X_LIBS%g
8903 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8904 s%@GTK_CONFIG@%$GTK_CONFIG%g
8905 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8906 s%@GTK_LIBS@%$GTK_LIBS%g
8907 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
8908 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
8909 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
8910 s%@WX_LIBRARY@%$WX_LIBRARY%g
8911 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
8912 s%@TOOLKIT@%$TOOLKIT%g
8913 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
8914 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
8915 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
8916 s%@EXTRA_VPATH@%$EXTRA_VPATH%g
8917 s%@LTLIBOBJS@%$LTLIBOBJS%g
8918 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
8919 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
8920 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
8921 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
8922 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
8923 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
8928 cat >> $CONFIG_STATUS <<\EOF
8930 # Split the substitutions into bite-sized pieces for seds with
8931 # small command number limits, like on Digital OSF/1 and HP-UX.
8932 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8933 ac_file
=1 # Number of current file.
8934 ac_beg
=1 # First line for current file.
8935 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8938 while $ac_more_lines; do
8939 if test $ac_beg -gt 1; then
8940 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8942 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8944 if test ! -s conftest.s
$ac_file; then
8946 rm -f conftest.s
$ac_file
8948 if test -z "$ac_sed_cmds"; then
8949 ac_sed_cmds
="sed -f conftest.s$ac_file"
8951 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8953 ac_file
=`expr $ac_file + 1`
8955 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8958 if test -z "$ac_sed_cmds"; then
8963 cat >> $CONFIG_STATUS <<EOF
8965 CONFIG_FILES=\${CONFIG_FILES-"wx-config
8966 Makefile src/Makefile
8969 include/wx/generic/Makefile
8970 include/wx/gtk/Makefile
8971 include/wx/motif/Makefile
8972 include/wx/msw/Makefile
8973 include/wx/protocol/Makefile
8974 include/wx/unix/Makefile
8976 samples/bombs/Makefile
8977 samples/caret/Makefile
8978 samples/checklst/Makefile
8979 samples/config/Makefile
8980 samples/controls/Makefile
8982 samples/dialogs/Makefile
8983 samples/dnd/Makefile
8984 samples/docview/Makefile
8985 samples/docvwmdi/Makefile
8986 samples/drawing/Makefile
8987 samples/dynamic/Makefile
8988 samples/forty/Makefile
8989 samples/fractal/Makefile
8990 samples/grid/Makefile
8991 samples/help/Makefile
8992 samples/image/Makefile
8993 samples/internat/Makefile
8994 samples/joytest/Makefile
8995 samples/layout/Makefile
8996 samples/listctrl/Makefile
8997 samples/mdi/Makefile
8998 samples/memcheck/Makefile
8999 samples/mfc/Makefile
9000 samples/minifram/Makefile
9001 samples/minimal/Makefile
9002 samples/nativdlg/Makefile
9003 samples/notebook/Makefile
9004 samples/oleauto/Makefile
9005 samples/ownerdrw/Makefile
9006 samples/png/Makefile
9007 samples/printing/Makefile
9008 samples/proplist/Makefile
9009 samples/regtest/Makefile
9010 samples/resource/Makefile
9011 samples/sashtest/Makefile
9012 samples/scroll/Makefile
9013 samples/splitter/Makefile
9014 samples/tab/Makefile
9015 samples/taskbar/Makefile
9016 samples/thread/Makefile
9017 samples/toolbar/Makefile
9018 samples/treectrl/Makefile
9019 samples/typetest/Makefile
9020 samples/validate/Makefile
9021 samples/wxpoem/Makefile
9022 samples/wxsocket/Makefile
9025 cat >> $CONFIG_STATUS <<\EOF
9026 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9027 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9029 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9030 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9031 *) ac_file_in
="${ac_file}.in" ;;
9034 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9036 # Remove last slash and all that follows it. Not all systems have dirname.
9037 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9038 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9039 # The file is in a subdirectory.
9040 test ! -d "$ac_dir" && mkdir "$ac_dir"
9041 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9042 # A "../" for each directory in $ac_dir_suffix.
9043 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9045 ac_dir_suffix
= ac_dots
=
9048 case "$ac_given_srcdir" in
9050 if test -z "$ac_dots"; then top_srcdir
=.
9051 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9052 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9054 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9055 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9058 case "$ac_given_INSTALL" in
9059 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9060 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9063 echo creating
"$ac_file"
9065 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9067 *Makefile
*) ac_comsub
="1i\\
9068 # $configure_input" ;;
9072 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9074 s%@configure_input@%$configure_input%g
9075 s%@srcdir@%$srcdir%g
9076 s%@top_srcdir@%$top_srcdir%g
9077 s%@INSTALL@%$INSTALL%g
9078 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9082 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9083 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9085 # ac_d sets the value in "#define NAME VALUE" lines.
9086 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9087 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9090 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9091 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9092 ac_uB
='\([ ]\)%\1#\2define\3'
9095 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9096 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9097 ac_eB
='$%\1#\2define\3'
9101 if test "${CONFIG_HEADERS+set}" != set; then
9103 cat >> $CONFIG_STATUS <<EOF
9104 CONFIG_HEADERS="${SETUPH_DIR}/setup.h:include/wx/unix/setup.h.in"
9106 cat >> $CONFIG_STATUS <<\EOF
9108 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9109 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9111 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9112 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9113 *) ac_file_in
="${ac_file}.in" ;;
9116 echo creating
$ac_file
9118 rm -f conftest.frag conftest.
in conftest.out
9119 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9120 cat $ac_file_inputs > conftest.
in
9124 # Transform confdefs.h into a sed script conftest.vals that substitutes
9125 # the proper values into config.h.in to produce config.h. And first:
9126 # Protect against being on the right side of a sed subst in config.status.
9127 # Protect against being in an unquoted here document in config.status.
9129 cat > conftest.hdr
<<\EOF
9132 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9136 sed -n -f conftest.hdr confdefs.h > conftest.vals
9139 # This sed command replaces #undef with comments. This is necessary, for
9140 # example, in the case of _POSIX_SOURCE, which is predefined and required
9141 # on some systems where configure will not decide to define it.
9142 cat >> conftest.vals <<\EOF
9143 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9146 # Break up conftest.vals because some shells have a limit on
9147 # the size of here documents, and old seds have small limits too.
9152 ac_lines=`grep -c . conftest.vals
`
9153 # grep -c gives empty output for an empty file on some AIX systems.
9154 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9155 # Write a limited-size here document to conftest.frag.
9156 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9157 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9159 sed -f conftest.frag conftest.in > conftest.out
9161 mv conftest.out conftest.in
9163 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9165 mv conftest.tail conftest.vals
9169 cat >> $CONFIG_STATUS <<\EOF
9170 rm -f conftest.frag conftest.h
9171 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9172 cat conftest.in >> conftest.h
9174 if cmp -s $ac_file conftest.h 2>/dev/null; then
9175 echo "$ac_file is unchanged"
9178 # Remove last slash and all that follows it. Not all systems have dirname.
9179 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9180 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9181 # The file is in a subdirectory.
9182 test ! -d "$ac_dir" && mkdir "$ac_dir"
9185 mv conftest.h $ac_file
9190 cat >> $CONFIG_STATUS <<EOF
9192 SETUPH_DIR=${SETUPH_DIR}
9194 cat >> $CONFIG_STATUS <<\EOF
9195 test -z "$CONFIG_HEADERS" || echo timestamp > ${SETUPH_DIR}/stamp-h
9199 chmod +x $CONFIG_STATUS
9200 rm -fr confdefs* $ac_clean_files
9201 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1