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
1275 if test "$USE_LINUX" = 1; then
1276 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1277 echo "configure:1278: checking for gettext in -lc" >&5
1278 ac_lib_var
=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 ac_save_LIBS
="$LIBS"
1284 cat > conftest.
$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1287 /* Override any gcc2 internal prototype to avoid an error. */
1288 /* We use char because int might match the return type of a gcc2
1289 builtin and then its argument prototype would still apply. */
1296 if { (eval echo configure
:1297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1298 eval "ac_cv_lib_$ac_lib_var=yes"
1300 echo "configure: failed program was:" >&5
1301 cat conftest.
$ac_ext >&5
1303 eval "ac_cv_lib_$ac_lib_var=no"
1306 LIBS
="$ac_save_LIBS"
1309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1310 echo "$ac_t""yes" 1>&6
1311 cat >> confdefs.h
<<\EOF
1312 #define wxHAVE_GLIBC2 1
1316 echo "$ac_t""no" 1>&6
1321 cat >> confdefs.h
<<\EOF
1330 if test $DEBUG_CONFIGURE = 1; then
1331 DEFAULT_wxUSE_THREADS
=yes
1333 DEFAULT_wxUSE_OPTIMISE
=no
1334 DEFAULT_wxUSE_PROFILE
=no
1335 DEFAULT_wxUSE_DEBUG_FLAG
=yes
1336 DEFAULT_wxUSE_DEBUG_INFO
=yes
1337 DEFAULT_wxUSE_DEBUG_GDB
=yes
1338 DEFAULT_wxUSE_MEM_TRACING
=no
1339 DEFAULT_wxUSE_DMALLOC
=no
1340 DEFAULT_wxUSE_APPLE_IEEE
=no
1342 DEFAULT_wxUSE_LOG
=yes
1344 DEFAULT_wxUSE_GUI
=yes
1346 DEFAULT_wxUSE_ZLIB
=no
1347 DEFAULT_wxUSE_LIBPNG
=no
1348 DEFAULT_wxUSE_LIBGIF
=no
1349 DEFAULT_wxUSE_LIBJPEG
=no
1350 DEFAULT_wxUSE_ODBC
=no
1352 DEFAULT_wxUSE_FILE
=no
1353 DEFAULT_wxUSE_TEXTFILE
=no
1354 DEFAULT_wxUSE_TIMEDATE
=no
1355 DEFAULT_wxUSE_INTL
=no
1356 DEFAULT_wxUSE_CONFIG
=no
1357 DEFAULT_wxUSE_STREAMS
=no
1358 DEFAULT_wxUSE_SOCKETS
=no
1359 DEFAULT_wxUSE_SERIAL
=no
1360 DEFAULT_wxUSE_JOYSTICK
=no
1361 DEFAULT_wxUSE_DYNLIB_CLASS
=no
1362 DEFAULT_wxUSE_LONGLONG
=no
1364 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
=no
1365 DEFAULT_wxUSE_NORMALIZED_PS_FONTS
=no
1366 DEFAULT_wxUSE_POSTSCRIPT
=no
1368 DEFAULT_wxUSE_X_RESOURCES
=no
1369 DEFAULT_wxUSE_CLIPBOARD
=no
1370 DEFAULT_wxUSE_TOOLTIPS
=no
1371 DEFAULT_wxUSE_DRAG_AND_DROP
=no
1372 DEFAULT_wxUSE_SPLINES
=no
1374 DEFAULT_wxUSE_MDI_ARCHITECTURE
=no
1375 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
=no
1376 DEFAULT_wxUSE_PRINTING_ARCHITECTURE
=no
1378 DEFAULT_wxUSE_PROLOGIO
=no
1379 DEFAULT_wxUSE_RESOURCES
=no
1380 DEFAULT_wxUSE_CONSTRAINTS
=no
1381 DEFAULT_wxUSE_IPC
=no
1382 DEFAULT_wxUSE_HELP
=no
1383 DEFAULT_wxUSE_WXTREE
=no
1384 DEFAULT_wxUSE_METAFILE
=no
1386 DEFAULT_wxUSE_COMMONDLGS
=no
1387 DEFAULT_wxUSE_MINIFRAME
=no
1388 DEFAULT_wxUSE_VALIDATORS
=yes
1390 DEFAULT_wxUSE_ACCEL
=no
1391 DEFAULT_wxUSE_CARET
=no
1392 DEFAULT_wxUSE_BMPBUTTON
=no
1393 DEFAULT_wxUSE_CHECKBOX
=no
1394 DEFAULT_wxUSE_CHECKLST
=no
1395 DEFAULT_wxUSE_COMBOBOX
=no
1396 DEFAULT_wxUSE_GAUGE
=no
1397 DEFAULT_wxUSE_GRID
=no
1398 DEFAULT_wxUSE_IMAGLIST
=no
1399 DEFAULT_wxUSE_LISTBOX
=no
1400 DEFAULT_wxUSE_LISTCTRL
=no
1401 DEFAULT_wxUSE_NOTEBOOK
=no
1402 DEFAULT_wxUSE_RADIOBOX
=no
1403 DEFAULT_wxUSE_RADIOBTN
=no
1404 DEFAULT_wxUSE_SASHWINDOW
=no
1405 DEFAULT_wxUSE_SCROLLBAR
=no
1406 DEFAULT_wxUSE_SLIDER
=no
1407 DEFAULT_wxUSE_SPINBTN
=no
1408 DEFAULT_wxUSE_SPLITTER
=no
1409 DEFAULT_wxUSE_STATBMP
=no
1410 DEFAULT_wxUSE_STATBOX
=no
1411 DEFAULT_wxUSE_STATLINE
=no
1412 DEFAULT_wxUSE_STATUSBAR
=yes
1413 DEFAULT_wxUSE_TABDIALOG
=no
1414 DEFAULT_wxUSE_TOOLBAR
=no
1415 DEFAULT_wxUSE_TREECTRL
=no
1417 DEFAULT_wxUSE_UNICODE
=no
1418 DEFAULT_wxUSE_WCSRTOMBS
=no
1420 DEFAULT_wxUSE_THREADS
=yes
1422 DEFAULT_wxUSE_OPTIMISE
=yes
1423 DEFAULT_wxUSE_PROFILE
=no
1424 DEFAULT_wxUSE_DEBUG_FLAG
=no
1425 DEFAULT_wxUSE_DEBUG_INFO
=no
1426 DEFAULT_wxUSE_DEBUG_GDB
=no
1427 DEFAULT_wxUSE_MEM_TRACING
=no
1428 DEFAULT_wxUSE_DMALLOC
=no
1429 DEFAULT_wxUSE_APPLE_IEEE
=yes
1431 DEFAULT_wxUSE_LOG
=yes
1433 DEFAULT_wxUSE_GUI
=yes
1435 DEFAULT_wxUSE_ZLIB
=yes
1436 DEFAULT_wxUSE_LIBPNG
=yes
1437 DEFAULT_wxUSE_LIBGIF
=yes
1438 DEFAULT_wxUSE_LIBJPEG
=yes
1439 DEFAULT_wxUSE_ODBC
=no
1441 DEFAULT_wxUSE_FILE
=yes
1442 DEFAULT_wxUSE_TEXTFILE
=yes
1443 DEFAULT_wxUSE_TIMEDATE
=yes
1444 DEFAULT_wxUSE_INTL
=yes
1445 DEFAULT_wxUSE_CONFIG
=yes
1446 DEFAULT_wxUSE_STREAMS
=yes
1447 DEFAULT_wxUSE_SOCKETS
=yes
1448 DEFAULT_wxUSE_SERIAL
=yes
1449 DEFAULT_wxUSE_JOYSTICK
=yes
1450 DEFAULT_wxUSE_DYNLIB_CLASS
=yes
1451 DEFAULT_wxUSE_LONGLONG
=no
1453 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
=yes
1454 DEFAULT_wxUSE_NORMALIZED_PS_FONTS
=yes
1455 DEFAULT_wxUSE_POSTSCRIPT
=yes
1457 DEFAULT_wxUSE_X_RESOURCES
=no
1458 DEFAULT_wxUSE_CLIPBOARD
=yes
1459 DEFAULT_wxUSE_TOOLTIPS
=yes
1460 DEFAULT_wxUSE_DRAG_AND_DROP
=yes
1461 DEFAULT_wxUSE_SPLINES
=yes
1463 DEFAULT_wxUSE_MDI_ARCHITECTURE
=yes
1464 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
=yes
1465 DEFAULT_wxUSE_PRINTING_ARCHITECTURE
=yes
1467 DEFAULT_wxUSE_PROLOGIO
=yes
1468 DEFAULT_wxUSE_RESOURCES
=yes
1469 DEFAULT_wxUSE_CONSTRAINTS
=yes
1470 DEFAULT_wxUSE_IPC
=yes
1471 DEFAULT_wxUSE_HELP
=yes
1472 DEFAULT_wxUSE_WXTREE
=yes
1473 DEFAULT_wxUSE_METAFILE
=yes
1475 DEFAULT_wxUSE_COMMONDLGS
=yes
1476 DEFAULT_wxUSE_MINIFRAME
=yes
1477 DEFAULT_wxUSE_VALIDATORS
=yes
1479 DEFAULT_wxUSE_ACCEL
=yes
1480 DEFAULT_wxUSE_CARET
=yes
1481 DEFAULT_wxUSE_BMPBUTTON
=yes
1482 DEFAULT_wxUSE_CHECKBOX
=yes
1483 DEFAULT_wxUSE_CHECKLST
=yes
1484 DEFAULT_wxUSE_COMBOBOX
=yes
1485 DEFAULT_wxUSE_GAUGE
=yes
1486 DEFAULT_wxUSE_GRID
=yes
1487 DEFAULT_wxUSE_IMAGLIST
=yes
1488 DEFAULT_wxUSE_LISTBOX
=yes
1489 DEFAULT_wxUSE_LISTCTRL
=yes
1490 DEFAULT_wxUSE_NOTEBOOK
=yes
1491 DEFAULT_wxUSE_RADIOBOX
=yes
1492 DEFAULT_wxUSE_RADIOBTN
=yes
1493 DEFAULT_wxUSE_SASHWINDOW
=yes
1494 DEFAULT_wxUSE_SCROLLBAR
=yes
1495 DEFAULT_wxUSE_SLIDER
=yes
1496 DEFAULT_wxUSE_SPINBTN
=yes
1497 DEFAULT_wxUSE_SPLITTER
=yes
1498 DEFAULT_wxUSE_STATBMP
=yes
1499 DEFAULT_wxUSE_STATBOX
=yes
1500 DEFAULT_wxUSE_STATLINE
=yes
1501 DEFAULT_wxUSE_STATUSBAR
=yes
1502 DEFAULT_wxUSE_TABDIALOG
=no
1503 DEFAULT_wxUSE_TOOLBAR
=yes
1504 DEFAULT_wxUSE_TREECTRL
=yes
1506 DEFAULT_wxUSE_UNICODE
=no
1507 DEFAULT_wxUSE_WCSRTOMBS
=no
1512 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1513 if test "${with_gtk_prefix+set}" = set; then
1514 withval
="$with_gtk_prefix"
1515 gtk_config_prefix
="$withval"
1517 gtk_config_prefix
=""
1520 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1521 if test "${with_gtk_exec_prefix+set}" = set; then
1522 withval
="$with_gtk_exec_prefix"
1523 gtk_config_exec_prefix
="$withval"
1525 gtk_config_exec_prefix
=""
1528 # Check whether --with-gtk or --without-gtk was given.
1529 if test "${with_gtk+set}" = set; then
1531 wxUSE_GTK
="$withval"
1536 # Check whether --with-motif or --without-motif was given.
1537 if test "${with_motif+set}" = set; then
1538 withval
="$with_motif"
1539 wxUSE_MOTIF
="$withval"
1544 # Check whether --with-cygwin or --without-cygwin was given.
1545 if test "${with_cygwin+set}" = set; then
1546 withval
="$with_cygwin"
1547 wxUSE_CYGWIN
="$withval"
1552 # Check whether --with-mingw or --without-mingw was given.
1553 if test "${with_mingw+set}" = set; then
1554 withval
="$with_mingw"
1555 wxUSE_MINGW
="$withval"
1561 # Check whether --with-dmalloc or --without-dmalloc was given.
1562 if test "${with_dmalloc+set}" = set; then
1563 withval
="$with_dmalloc"
1564 wxUSE_DMALLOC
="$withval"
1566 wxUSE_DMALLOC
=$DEFAULT_wxUSE_DMALLOC
1569 # Check whether --with-zlib or --without-zlib was given.
1570 if test "${with_zlib+set}" = set; then
1571 withval
="$with_zlib"
1572 wxUSE_ZLIB
="$withval"
1574 wxUSE_ZLIB
=$DEFAULT_wxUSE_ZLIB
1577 # Check whether --with-libpng or --without-libpng was given.
1578 if test "${with_libpng+set}" = set; then
1579 withval
="$with_libpng"
1580 wxUSE_LIBPNG
="$withval"
1582 wxUSE_LIBPNG
=$DEFAULT_wxUSE_LIBPNG
1585 # Check whether --with-libgif or --without-libgif was given.
1586 if test "${with_libgif+set}" = set; then
1587 withval
="$with_libgif"
1588 wxUSE_LIBGIF
="${withval}"
1590 wxUSE_LIBGIF
=$DEFAULT_wxUSE_LIBGIF
1593 # Check whether --with-libjpeg or --without-libjpeg was given.
1594 if test "${with_libjpeg+set}" = set; then
1595 withval
="$with_libjpeg"
1596 wxUSE_LIBJPEG
="${withval}"
1598 wxUSE_LIBJPEG
=$DEFAULT_wxUSE_LIBJPEG
1601 # Check whether --with-opengl or --without-opengl was given.
1602 if test "${with_opengl+set}" = set; then
1603 withval
="$with_opengl"
1604 wxUSE_OPENGL
="$withval"
1606 wxUSE_OPENGL
=$DEFAULT_wxUSE_OPENGL
1609 # Check whether --with-odbc or --without-odbc was given.
1610 if test "${with_odbc+set}" = set; then
1611 withval
="$with_odbc"
1612 wxUSE_ODBC
="$withval"
1614 wxUSE_ODBC
=$DEFAULT_wxUSE_ODBC
1620 # Check whether --enable-optimise or --disable-optimise was given.
1621 if test "${enable_optimise+set}" = set; then
1622 enableval
="$enable_optimise"
1623 wxUSE_OPTIMISE
="$enableval"
1625 wxUSE_OPTIMISE
=$DEFAULT_wxUSE_OPTIMISE
1628 # Check whether --enable-optimize or --disable-optimize was given.
1629 if test "${enable_optimize+set}" = set; then
1630 enableval
="$enable_optimize"
1631 wxUSE_OPTIMISE
="$enableval"
1633 wxUSE_OPTIMISE
=$DEFAULT_wxUSE_OPTIMISE
1636 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1637 if test "${enable_debug_flag+set}" = set; then
1638 enableval
="$enable_debug_flag"
1639 wxUSE_DEBUG_FLAG
="$enableval"
1641 wxUSE_DEBUG_FLAG
=$DEFAULT_wxUSE_DEBUG_FLAG
1644 # Check whether --enable-debug_info or --disable-debug_info was given.
1645 if test "${enable_debug_info+set}" = set; then
1646 enableval
="$enable_debug_info"
1647 wxUSE_DEBUG_INFO
="$enableval"
1649 wxUSE_DEBUG_INFO
=$DEFAULT_wxUSE_DEBUG_INFO
1652 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
1653 if test "${enable_debug_gdb+set}" = set; then
1654 enableval
="$enable_debug_gdb"
1655 wxUSE_DEBUG_GDB
="$enableval"
1657 wxUSE_DEBUG_GDB
=$DEFAULT_wxUSE_DEBUG_GDB
1660 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
1661 if test "${enable_debug_cntxt+set}" = set; then
1662 enableval
="$enable_debug_cntxt"
1663 cat >> confdefs.h
<<\EOF
1664 #define wxUSE_DEBUG_CONTEXT 1
1669 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
1670 if test "${enable_mem_tracing+set}" = set; then
1671 enableval
="$enable_mem_tracing"
1672 wxUSE_MEM_TRACING
="$enableval"
1674 wxUSE_MEM_TRACING
=$DEFAULT_wxUSE_MEM_TRACING
1677 # Check whether --enable-profile or --disable-profile was given.
1678 if test "${enable_profile+set}" = set; then
1679 enableval
="$enable_profile"
1680 wxUSE_PROFILE
="$enableval"
1682 wxUSE_PROFILE
=$DEFAULT_wxUSE_PROFILE
1687 # Check whether --enable-gui or --disable-gui was given.
1688 if test "${enable_gui+set}" = set; then
1689 enableval
="$enable_gui"
1690 wxUSE_GUI
="$enableval"
1692 wxUSE_GUI
=$DEFAULT_wxUSE_GUI
1697 # Check whether --enable-intl or --disable-intl was given.
1698 if test "${enable_intl+set}" = set; then
1699 enableval
="$enable_intl"
1700 wxUSE_INTL
="$enableval"
1702 wxUSE_INTL
=$DEFAULT_wxUSE_INTL
1705 # Check whether --enable-config or --disable-config was given.
1706 if test "${enable_config+set}" = set; then
1707 enableval
="$enable_config"
1708 wxUSE_CONFIG
="$enableval"
1710 wxUSE_CONFIG
=$DEFAULT_wxUSE_CONFIG
1713 # Check whether --enable-sockets or --disable-sockets was given.
1714 if test "${enable_sockets+set}" = set; then
1715 enableval
="$enable_sockets"
1716 wxUSE_SOCKETS
="$enableval"
1718 wxUSE_SOCKETS
=$DEFAULT_wxUSE_SOCKETS
1721 # Check whether --enable-ipc or --disable-ipc was given.
1722 if test "${enable_ipc+set}" = set; then
1723 enableval
="$enable_ipc"
1724 wxUSE_IPC
="$enableval"
1726 wxUSE_IPC
=$DEFAULT_wxUSE_IPC
1729 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
1730 if test "${enable_apple_ieee+set}" = set; then
1731 enableval
="$enable_apple_ieee"
1732 wxUSE_APPLE_IEEE
="$enableval"
1734 wxUSE_APPLE_IEEE
=$DEFAULT_wxUSE_APPLE_IEEE
1737 # Check whether --enable-timedate or --disable-timedate was given.
1738 if test "${enable_timedate+set}" = set; then
1739 enableval
="$enable_timedate"
1740 wxUSE_TIMEDATE
="$enableval"
1742 wxUSE_TIMEDATE
=$DEFAULT_wxUSE_TIMEDATE
1745 # Check whether --enable-fraction or --disable-fraction was given.
1746 if test "${enable_fraction+set}" = set; then
1747 enableval
="$enable_fraction"
1748 wxUSE_FRACTION
="$enableval"
1750 wxUSE_FRACTION
=$DEFAULT_wxUSE_FRACTION
1753 # Check whether --enable-dynlib or --disable-dynlib was given.
1754 if test "${enable_dynlib+set}" = set; then
1755 enableval
="$enable_dynlib"
1756 wxUSE_DYNLIB_CLASS
="$enableval"
1758 wxUSE_DYNLIB_CLASS
=$DEFAULT_wxUSE_DYNLIB_CLASS
1761 # Check whether --enable-longlong or --disable-longlong was given.
1762 if test "${enable_longlong+set}" = set; then
1763 enableval
="$enable_longlong"
1764 wxUSE_LONGLONG
="${enableval}"
1766 wxUSE_LONGLONG
=$DEFAULT_wxUSE_LONGLONG
1769 # Check whether --enable-log or --disable-log was given.
1770 if test "${enable_log+set}" = set; then
1771 enableval
="$enable_log"
1772 wxUSE_LOG
="$enableval"
1774 wxUSE_LOG
=$DEFAULT_wxUSE_LOG
1777 # Check whether --enable-streams or --disable-streams was given.
1778 if test "${enable_streams+set}" = set; then
1779 enableval
="$enable_streams"
1780 wxUSE_STREAMS
="$enableval"
1782 wxUSE_STREAMS
=$DEFAULT_wxUSE_STREAMS
1785 # Check whether --enable-file or --disable-file was given.
1786 if test "${enable_file+set}" = set; then
1787 enableval
="$enable_file"
1788 wxUSE_FILE
="$enableval"
1790 wxUSE_FILE
=$DEFAULT_wxUSE_FILE
1793 # Check whether --enable-textfile or --disable-textfile was given.
1794 if test "${enable_textfile+set}" = set; then
1795 enableval
="$enable_textfile"
1796 wxUSE_TEXTFILE
="$enableval"
1798 wxUSE_TEXTFILE
=$DEFAULT_wxUSE_TEXTFILE
1801 # Check whether --enable-unicode or --disable-unicode was given.
1802 if test "${enable_unicode+set}" = set; then
1803 enableval
="$enable_unicode"
1804 wxUSE_UNICODE
="$enableval"
1806 wxUSE_UNICODE
=$DEFAULT_wxUSE_UNICODE
1809 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
1810 if test "${enable_wcsrtombs+set}" = set; then
1811 enableval
="$enable_wcsrtombs"
1812 wxUSE_WCSRTOMBS
="$enableval"
1814 wxUSE_WCSRTOMBS
=$DEFAULT_wxUSE_WCSRTOMBS
1817 # Check whether --enable-joystick or --disable-joystick was given.
1818 if test "${enable_joystick+set}" = set; then
1819 enableval
="$enable_joystick"
1820 wxUSE_JOYSTICK
="$enableval"
1822 wxUSE_JOYSTICK
=$DEFAULT_wxUSE_JOYSTICK
1827 # Check whether --enable-threads or --disable-threads was given.
1828 if test "${enable_threads+set}" = set; then
1829 enableval
="$enable_threads"
1830 wxUSE_THREADS
="${enableval}"
1832 wxUSE_THREADS
=$DEFAULT_wxUSE_THREADS
1835 # Check whether --enable-serial or --disable-serial was given.
1836 if test "${enable_serial+set}" = set; then
1837 enableval
="$enable_serial"
1838 wxUSE_SERIAL
="${enableval}"
1840 wxUSE_SERIAL
=$DEFAULT_wxUSE_SERIAL
1845 # Check whether --enable-docview or --disable-docview was given.
1846 if test "${enable_docview+set}" = set; then
1847 enableval
="$enable_docview"
1848 wxUSE_DOC_VIEW_ARCHITECTURE
="$enableval"
1850 wxUSE_DOC_VIEW_ARCHITECTURE
=$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
1853 # Check whether --enable-help or --disable-help was given.
1854 if test "${enable_help+set}" = set; then
1855 enableval
="$enable_help"
1856 wxUSE_HELP
="$enableval"
1858 wxUSE_HELP
=$DEFAULT_wxUSE_HELP
1861 # Check whether --enable-constraints or --disable-constraints was given.
1862 if test "${enable_constraints+set}" = set; then
1863 enableval
="$enable_constraints"
1864 wxUSE_CONSTRAINTS
="$enableval"
1866 wxUSE_CONSTRAINTS
=$DEFAULT_wxUSE_CONSTRAINTS
1869 # Check whether --enable-printarch or --disable-printarch was given.
1870 if test "${enable_printarch+set}" = set; then
1871 enableval
="$enable_printarch"
1872 wxUSE_PRINTING_ARCHITECTURE
="${enableval}"
1874 wxUSE_PRINTING_ARCHITECTURE
=$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
1877 # Check whether --enable-mdi or --disable-mdi was given.
1878 if test "${enable_mdi+set}" = set; then
1879 enableval
="$enable_mdi"
1880 wxUSE_MDI_ARCHITECTURE
="${enableval}"
1882 wxUSE_MDI_ARCHITECTURE
=$DEFAULT_wxUSE_MDI_ARCHITECTURE
1886 # Check whether --enable-postscript or --disable-postscript was given.
1887 if test "${enable_postscript+set}" = set; then
1888 enableval
="$enable_postscript"
1889 wxUSE_POSTSCRIPT
="$enableval"
1891 wxUSE_POSTSCRIPT
=$DEFAULT_wxUSE_POSTSCRIPT
1896 # Check whether --enable-prologio or --disable-prologio was given.
1897 if test "${enable_prologio+set}" = set; then
1898 enableval
="$enable_prologio"
1899 wxUSE_PROLOGIO
="${enableval}"
1901 wxUSE_PROLOGIO
=$DEFAULT_wxUSE_PROLOGIO
1904 # Check whether --enable-resources or --disable-resources was given.
1905 if test "${enable_resources+set}" = set; then
1906 enableval
="$enable_resources"
1907 wxUSE_RESOURCES
="${enableval}"
1909 wxUSE_RESOURCES
=$DEFAULT_wxUSE_RESOURCES
1913 # Check whether --enable-xresources or --disable-xresources was given.
1914 if test "${enable_xresources+set}" = set; then
1915 enableval
="$enable_xresources"
1916 wxUSE_X_RESOURCES
="${enableval}"
1918 wxUSE_X_RESOURCES
=$DEFAULT_wxUSE_X_RESOURCES
1921 # Check whether --enable-clipboard or --disable-clipboard was given.
1922 if test "${enable_clipboard+set}" = set; then
1923 enableval
="$enable_clipboard"
1924 wxUSE_CLIPBOARD
="${enableval}"
1926 wxUSE_CLIPBOARD
=$DEFAULT_wxUSE_CLIPBOARD
1929 # Check whether --enable-dnd or --disable-dnd was given.
1930 if test "${enable_dnd+set}" = set; then
1931 enableval
="$enable_dnd"
1932 wxUSE_DRAG_AND_DROP
="${enableval}"
1934 wxUSE_DRAG_AND_DROP
=$DEFAULT_wxUSE_DRAG_AND_DROP
1938 # Check whether --enable-wxtree or --disable-wxtree was given.
1939 if test "${enable_wxtree+set}" = set; then
1940 enableval
="$enable_wxtree"
1941 wxUSE_WXTREE
="${enableval}"
1943 wxUSE_WXTREE
=$DEFAULT_wxUSE_WXTREE
1948 # Check whether --enable-controls or --disable-controls was given.
1949 if test "${enable_controls+set}" = set; then
1950 enableval
="$enable_controls"
1951 wxUSE_CONTROLS
="${enableval}"
1955 if test "$wxUSE_CONTROLS" = "yes"; then
1956 DEFAULT_wxUSE_ACCEL
=yes
1957 DEFAULT_wxUSE_CARET
=yes
1958 DEFAULT_wxUSE_COMBOBOX
=yes
1959 DEFAULT_wxUSE_BMPBUTTON
=yes
1960 DEFAULT_wxUSE_CHECKBOX
=yes
1961 DEFAULT_wxUSE_CHECKLISTBOX
=yes
1962 DEFAULT_wxUSE_GAUGE
=yes
1963 DEFAULT_wxUSE_GRID
=yes
1964 DEFAULT_wxUSE_IMAGLIST
=yes
1965 DEFAULT_wxUSE_LISTBOX
=yes
1966 DEFAULT_wxUSE_LISTCTRL
=yes
1967 DEFAULT_wxUSE_NOTEBOOK
=yes
1968 DEFAULT_wxUSE_RADIOBOX
=yes
1969 DEFAULT_wxUSE_RADIOBTN
=yes
1970 DEFAULT_wxUSE_SASH
=yes
1971 DEFAULT_wxUSE_SCROLLBAR
=yes
1972 DEFAULT_wxUSE_SLIDER
=yes
1973 DEFAULT_wxUSE_SPINBTN
=yes
1974 DEFAULT_wxUSE_SPLITTER
=yes
1975 DEFAULT_wxUSE_STATBMP
=yes
1976 DEFAULT_wxUSE_STATBOX
=yes
1977 DEFAULT_wxUSE_STATLINE
=yes
1978 DEFAULT_wxUSE_STATUSBAR
=yes
1979 DEFAULT_wxUSE_TAB_DIALOG
=yes
1980 DEFAULT_wxUSE_TOOLBAR
=yes
1981 DEFAULT_wxUSE_TOOLTIPS
=yes
1982 DEFAULT_wxUSE_TREECTRL
=yes
1983 elif test "$wxUSE_CONTROLS" = "no"; then
1984 DEFAULT_wxUSE_ACCEL
=no
1985 DEFAULT_wxUSE_CARET
=no
1986 DEFAULT_wxUSE_COMBOBOX
=no
1987 DEFAULT_wxUSE_BMPBUTTON
=no
1988 DEFAULT_wxUSE_CHECKBOX
=no
1989 DEFAULT_wxUSE_CHECKLISTBOX
=no
1990 DEFAULT_wxUSE_GAUGE
=no
1991 DEFAULT_wxUSE_GRID
=no
1992 DEFAULT_wxUSE_IMAGLIST
=no
1993 DEFAULT_wxUSE_LISTBOX
=no
1994 DEFAULT_wxUSE_LISTCTRL
=no
1995 DEFAULT_wxUSE_NOTEBOOK
=no
1996 DEFAULT_wxUSE_RADIOBOX
=no
1997 DEFAULT_wxUSE_RADIOBTN
=no
1998 DEFAULT_wxUSE_SASH
=no
1999 DEFAULT_wxUSE_SCROLLBAR
=no
2000 DEFAULT_wxUSE_SLIDER
=no
2001 DEFAULT_wxUSE_SPINBTN
=no
2002 DEFAULT_wxUSE_SPLITTER
=no
2003 DEFAULT_wxUSE_STATBMP
=no
2004 DEFAULT_wxUSE_STATBOX
=no
2005 DEFAULT_wxUSE_STATLINE
=no
2006 DEFAULT_wxUSE_STATUSBAR
=no
2007 DEFAULT_wxUSE_TAB_DIALOG
=no
2008 DEFAULT_wxUSE_TOOLBAR
=no
2009 DEFAULT_wxUSE_TOOLTIPS
=no
2010 DEFAULT_wxUSE_TREECTRL
=no
2013 # Check whether --enable-accel or --disable-accel was given.
2014 if test "${enable_accel+set}" = set; then
2015 enableval
="$enable_accel"
2016 wxUSE_ACCEL
="${enableval}"
2018 wxUSE_ACCEL
=$DEFAULT_wxUSE_ACCEL
2021 # Check whether --enable-caret or --disable-caret was given.
2022 if test "${enable_caret+set}" = set; then
2023 enableval
="$enable_caret"
2024 wxUSE_CARET
="${enableval}"
2026 wxUSE_CARET
=$DEFAULT_wxUSE_CARET
2029 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
2030 if test "${enable_bmpbutton+set}" = set; then
2031 enableval
="$enable_bmpbutton"
2032 wxUSE_BMPBUTTON
="${enableval}"
2034 wxUSE_BMPBUTTON
=$DEFAULT_wxUSE_BMPBUTTON
2037 # Check whether --enable-checkbox or --disable-checkbox was given.
2038 if test "${enable_checkbox+set}" = set; then
2039 enableval
="$enable_checkbox"
2040 wxUSE_CHECKBOX
="${enableval}"
2042 wxUSE_CHECKBOX
=$DEFAULT_wxUSE_CHECKBOX
2045 # Check whether --enable-checklst or --disable-checklst was given.
2046 if test "${enable_checklst+set}" = set; then
2047 enableval
="$enable_checklst"
2048 wxUSE_CHECKLST
="${enableval}"
2050 wxUSE_CHECKLST
=$DEFAULT_wxUSE_CHECKLST
2053 # Check whether --enable-combobox or --disable-combobox was given.
2054 if test "${enable_combobox+set}" = set; then
2055 enableval
="$enable_combobox"
2056 wxUSE_COMBOBOX
="${enableval}"
2058 wxUSE_COMBOBOX
=$DEFAULT_wxUSE_COMBOBOX
2061 # Check whether --enable-gauge or --disable-gauge was given.
2062 if test "${enable_gauge+set}" = set; then
2063 enableval
="$enable_gauge"
2064 wxUSE_GAUGE
="${enableval}"
2066 wxUSE_GAUGE
=$DEFAULT_wxUSE_GAUGE
2069 # Check whether --enable-grid or --disable-grid was given.
2070 if test "${enable_grid+set}" = set; then
2071 enableval
="$enable_grid"
2072 wxUSE_GRID
="${enableval}"
2074 wxUSE_GRID
=$DEFAULT_wxUSE_GRID
2077 # Check whether --enable-imaglist or --disable-imaglist was given.
2078 if test "${enable_imaglist+set}" = set; then
2079 enableval
="$enable_imaglist"
2080 wxUSE_IMAGLIST
="${enableval}"
2082 wxUSE_IMAGLIST
=$DEFAULT_wxUSE_IMAGLIST
2085 # Check whether --enable-listbox or --disable-listbox was given.
2086 if test "${enable_listbox+set}" = set; then
2087 enableval
="$enable_listbox"
2088 wxUSE_LISTBOX
="${enableval}"
2090 wxUSE_LISTBOX
=$DEFAULT_wxUSE_LISTBOX
2093 # Check whether --enable-listctrl or --disable-listctrl was given.
2094 if test "${enable_listctrl+set}" = set; then
2095 enableval
="$enable_listctrl"
2096 wxUSE_LISTCTRL
="${enableval}"
2098 wxUSE_LISTCTRL
=$DEFAULT_wxUSE_LISTCTRL
2101 # Check whether --enable-notebook or --disable-notebook was given.
2102 if test "${enable_notebook+set}" = set; then
2103 enableval
="$enable_notebook"
2104 wxUSE_NOTEBOOK
="${enableval}"
2106 wxUSE_NOTEBOOK
=$DEFAULT_wxUSE_NOTEBOOK
2109 # Check whether --enable-radiobox or --disable-radiobox was given.
2110 if test "${enable_radiobox+set}" = set; then
2111 enableval
="$enable_radiobox"
2112 wxUSE_RADIOBOX
="${enableval}"
2114 wxUSE_RADIOBOX
=$DEFAULT_wxUSE_RADIOBOX
2117 # Check whether --enable-radiobtn or --disable-radiobtn was given.
2118 if test "${enable_radiobtn+set}" = set; then
2119 enableval
="$enable_radiobtn"
2120 wxUSE_RADIOBTN
="${enableval}"
2122 wxUSE_RADIOBTN
=$DEFAULT_wxUSE_RADIOBTN
2125 # Check whether --enable-sash or --disable-sash was given.
2126 if test "${enable_sash+set}" = set; then
2127 enableval
="$enable_sash"
2128 wxUSE_SASH
="${enableval}"
2130 wxUSE_SASH
=$DEFAULT_wxUSE_SASH
2133 # Check whether --enable-scrollbar or --disable-scrollbar was given.
2134 if test "${enable_scrollbar+set}" = set; then
2135 enableval
="$enable_scrollbar"
2136 wxUSE_SCROLLBAR
="${enableval}"
2138 wxUSE_SCROLLBAR
=$DEFAULT_wxUSE_SCROLLBAR
2141 # Check whether --enable-slider or --disable-slider was given.
2142 if test "${enable_slider+set}" = set; then
2143 enableval
="$enable_slider"
2144 wxUSE_SLIDER
="${enableval}"
2146 wxUSE_SLIDER
=$DEFAULT_wxUSE_SLIDER
2149 # Check whether --enable-spinbtn or --disable-spinbtn was given.
2150 if test "${enable_spinbtn+set}" = set; then
2151 enableval
="$enable_spinbtn"
2152 wxUSE_SPINBTN
="${enableval}"
2154 wxUSE_SPINBTN
=$DEFAULT_wxUSE_SPINBTN
2157 # Check whether --enable-splitter or --disable-splitter was given.
2158 if test "${enable_splitter+set}" = set; then
2159 enableval
="$enable_splitter"
2160 wxUSE_SPLITTER
="${enableval}"
2162 wxUSE_SPLITTER
=$DEFAULT_wxUSE_SPLITTER
2165 # Check whether --enable-statbmp or --disable-statbmp was given.
2166 if test "${enable_statbmp+set}" = set; then
2167 enableval
="$enable_statbmp"
2168 wxUSE_STATBMP
="${enableval}"
2170 wxUSE_STATBMP
=$DEFAULT_wxUSE_STATBMP
2173 # Check whether --enable-statbox or --disable-statbox was given.
2174 if test "${enable_statbox+set}" = set; then
2175 enableval
="$enable_statbox"
2176 wxUSE_STATBOX
="${enableval}"
2178 wxUSE_STATBOX
=$DEFAULT_wxUSE_STATBOX
2181 # Check whether --enable-statline or --disable-statline was given.
2182 if test "${enable_statline+set}" = set; then
2183 enableval
="$enable_statline"
2184 wxUSE_STATLINE
="${enableval}"
2186 wxUSE_STATLINE
=$DEFAULT_wxUSE_STATLINE
2189 # Check whether --enable-statusbar or --disable-statusbar was given.
2190 if test "${enable_statusbar+set}" = set; then
2191 enableval
="$enable_statusbar"
2192 wxUSE_STATUSBAR
="${enableval}"
2194 wxUSE_STATUSBAR
=$DEFAULT_wxUSE_STATUSBAR
2197 # Check whether --enable-tabdialog or --disable-tabdialog was given.
2198 if test "${enable_tabdialog+set}" = set; then
2199 enableval
="$enable_tabdialog"
2200 wxUSE_TABDIALOG
="${enableval}"
2202 wxUSE_TABDIALOG
=$DEFAULT_wxUSE_TABDIALOG
2205 # Check whether --enable-toolbar or --disable-toolbar was given.
2206 if test "${enable_toolbar+set}" = set; then
2207 enableval
="$enable_toolbar"
2208 wxUSE_TOOLBAR
="${enableval}"
2210 wxUSE_TOOLBAR
=$DEFAULT_wxUSE_TOOLBAR
2213 # Check whether --enable-treectrl or --disable-treectrl was given.
2214 if test "${enable_treectrl+set}" = set; then
2215 enableval
="$enable_treectrl"
2216 wxUSE_TREECTRL
="${enableval}"
2218 wxUSE_TREECTRL
=$DEFAULT_wxUSE_TREECTRL
2223 # Check whether --enable-commondlg or --disable-commondlg was given.
2224 if test "${enable_commondlg+set}" = set; then
2225 enableval
="$enable_commondlg"
2226 wxUSE_COMMONDLGS
="${enableval}"
2228 wxUSE_COMMONDLGS
=$DEFAULT_wxUSE_COMMONDLGS
2231 # Check whether --enable-miniframe or --disable-miniframe was given.
2232 if test "${enable_miniframe+set}" = set; then
2233 enableval
="$enable_miniframe"
2234 wxUSE_MINIFRAME
="${enableval}"
2236 wxUSE_MINIFRAME
=$DEFAULT_wxUSE_MINIFRAME
2239 # Check whether --enable-tooltips or --disable-tooltips was given.
2240 if test "${enable_tooltips+set}" = set; then
2241 enableval
="$enable_tooltips"
2242 wxUSE_TOOLTIPS
="${enableval}"
2244 wxUSE_TOOLTIPS
=$DEFAULT_wxUSE_TOOLTIPS
2247 # Check whether --enable-splines or --disable-splines was given.
2248 if test "${enable_splines+set}" = set; then
2249 enableval
="$enable_splines"
2250 wxUSE_SPLINES
="${enableval}"
2252 wxUSE_SPLINES
=$DEFAULT_wxUSE_SPLINES
2255 # Check whether --enable-validators or --disable-validators was given.
2256 if test "${enable_validators+set}" = set; then
2257 enableval
="$enable_validators"
2258 wxUSE_VALIDATORS
="${enableval}"
2260 wxUSE_VALIDATORS
=$DEFAULT_wxUSE_VALIDATORS
2264 NUM_TOOLKITS
="$((${wxUSE_GTK:-0}+${wxUSE_MOTIF:-0}+${wxUSE_MSW:-0}))"
2266 case "$NUM_TOOLKITS" in
2270 if test "$((${DEFAULT_wxUSE_GTK:-0}+${DEFAULT_wxUSE_MOTIF:-0}+${DEFAULT_wxUSE_MSW:-0}))" = 0; then
2271 { echo "configure: error: Please specify a toolkit" 1>&2; exit 1; }
2274 wxUSE_GTK
=$DEFAULT_wxUSE_GTK
2275 wxUSE_MOTIF
=$DEFAULT_wxUSE_MOTIF
2276 wxUSE_MSW
=$DEFAULT_wxUSE_MSW
2279 { echo "configure: error: Please specify at most one toolkit" 1>&2; exit 1; }
2283 cat > confcache
<<\EOF
2284 # This file is a shell script that caches the results of configure
2285 # tests run on this system so they can be shared between configure
2286 # scripts and configure runs. It is not useful on other systems.
2287 # If it contains results you don't want to keep, you may remove or edit it.
2289 # By default, configure uses ./config.cache as the cache file,
2290 # creating it if it does not exist already. You can give configure
2291 # the --cache-file=FILE option to use a different cache file; that is
2292 # what configure does when it calls configure scripts in
2293 # subdirectories, so they share the cache.
2294 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2295 # config.status only pays attention to the cache file if you give it the
2296 # --recheck option to rerun configure.
2299 # The following way of writing the cache mishandles newlines in values,
2300 # but we know of no workaround that is simple, portable, and efficient.
2301 # So, don't put newlines in cache variables' values.
2302 # Ultrix sh set writes to stderr and can't be redirected directly,
2303 # and sets the high bit in the cache file unless we assign to the vars.
2305 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2307 # `set' does not quote correctly, so add quotes (double-quote substitution
2308 # turns \\\\ into \\, and sed turns \\ into \).
2310 -e "s/'/'\\\\''/g" \
2311 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2314 # `set' quotes correctly as required by POSIX, so do not add quotes.
2315 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2318 if cmp -s $cache_file confcache
; then
2321 if test -w $cache_file; then
2322 echo "updating cache $cache_file"
2323 cat confcache
> $cache_file
2325 echo "not updating unwritable cache $cache_file"
2331 if eval "test $host != $build"; then
2332 if eval "test $build != NONE"; then
2335 RANLIB
="$build-ranlib"
2340 # Extract the first word of "gcc", so it can be a program name with args.
2341 set dummy gcc
; ac_word
=$2
2342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2343 echo "configure:2344: checking for $ac_word" >&5
2344 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2347 if test -n "$CC"; then
2348 ac_cv_prog_CC
="$CC" # Let the user override the test.
2350 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2352 for ac_dir
in $ac_dummy; do
2353 test -z "$ac_dir" && ac_dir
=.
2354 if test -f $ac_dir/$ac_word; then
2363 if test -n "$CC"; then
2364 echo "$ac_t""$CC" 1>&6
2366 echo "$ac_t""no" 1>&6
2369 if test -z "$CC"; then
2370 # Extract the first word of "cc", so it can be a program name with args.
2371 set dummy cc
; ac_word
=$2
2372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2373 echo "configure:2374: checking for $ac_word" >&5
2374 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2377 if test -n "$CC"; then
2378 ac_cv_prog_CC
="$CC" # Let the user override the test.
2380 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2383 for ac_dir
in $ac_dummy; do
2384 test -z "$ac_dir" && ac_dir
=.
2385 if test -f $ac_dir/$ac_word; then
2386 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2387 ac_prog_rejected
=yes
2395 if test $ac_prog_rejected = yes; then
2396 # We found a bogon in the path, so make sure we never use it.
2397 set dummy
$ac_cv_prog_CC
2399 if test $# -gt 0; then
2400 # We chose a different compiler from the bogus one.
2401 # However, it has the same basename, so the bogon will be chosen
2402 # first if we set CC to just the basename; use the full file name.
2404 set dummy
"$ac_dir/$ac_word" "$@"
2412 if test -n "$CC"; then
2413 echo "$ac_t""$CC" 1>&6
2415 echo "$ac_t""no" 1>&6
2418 if test -z "$CC"; then
2419 case "`uname -s`" in
2421 # Extract the first word of "cl", so it can be a program name with args.
2422 set dummy cl
; ac_word
=$2
2423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2424 echo "configure:2425: checking for $ac_word" >&5
2425 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 if test -n "$CC"; then
2429 ac_cv_prog_CC
="$CC" # Let the user override the test.
2431 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2433 for ac_dir
in $ac_dummy; do
2434 test -z "$ac_dir" && ac_dir
=.
2435 if test -f $ac_dir/$ac_word; then
2444 if test -n "$CC"; then
2445 echo "$ac_t""$CC" 1>&6
2447 echo "$ac_t""no" 1>&6
2452 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2455 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2456 echo "configure:2457: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2459 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2460 ac_cpp
='$CPP $CPPFLAGS'
2461 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2462 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2463 cross_compiling
=$ac_cv_prog_cc_cross
2465 cat > conftest.
$ac_ext << EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2472 if { (eval echo configure
:2473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2473 ac_cv_prog_cc_works
=yes
2474 # If we can't run a trivial program, we are probably using a cross compiler.
2475 if (.
/conftest
; exit) 2>/dev
/null
; then
2476 ac_cv_prog_cc_cross
=no
2478 ac_cv_prog_cc_cross
=yes
2481 echo "configure: failed program was:" >&5
2482 cat conftest.
$ac_ext >&5
2483 ac_cv_prog_cc_works
=no
2487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2488 ac_cpp
='$CPP $CPPFLAGS'
2489 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2490 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2491 cross_compiling
=$ac_cv_prog_cc_cross
2493 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2494 if test $ac_cv_prog_cc_works = no
; then
2495 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2497 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2498 echo "configure:2499: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2499 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2500 cross_compiling
=$ac_cv_prog_cc_cross
2502 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2503 echo "configure:2504: checking whether we are using GNU C" >&5
2504 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2507 cat > conftest.c
<<EOF
2512 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
2519 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2521 if test $ac_cv_prog_gcc = yes; then
2527 ac_test_CFLAGS
="${CFLAGS+set}"
2528 ac_save_CFLAGS
="$CFLAGS"
2530 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2531 echo "configure:2532: checking whether ${CC-cc} accepts -g" >&5
2532 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2535 echo 'void f(){}' > conftest.c
2536 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2545 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2546 if test "$ac_test_CFLAGS" = set; then
2547 CFLAGS
="$ac_save_CFLAGS"
2548 elif test $ac_cv_prog_cc_g = yes; then
2549 if test "$GCC" = yes; then
2555 if test "$GCC" = yes; then
2563 CFLAGS
=`echo "$CFLAGS" | sed 's/-g//g'`
2565 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2566 echo "configure:2567: checking how to run the C preprocessor" >&5
2567 # On Suns, sometimes $CPP names a directory.
2568 if test -n "$CPP" && test -d "$CPP"; then
2571 if test -z "$CPP"; then
2572 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2575 # This must be in double quotes, not single quotes, because CPP may get
2576 # substituted into the Makefile and "${CC-cc}" will confuse make.
2578 # On the NeXT, cc -E runs the code through the compiler's parser,
2579 # not just through cpp.
2580 cat > conftest.
$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2586 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2587 { (eval echo configure
:2588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2588 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2589 if test -z "$ac_err"; then
2593 echo "configure: failed program was:" >&5
2594 cat conftest.
$ac_ext >&5
2596 CPP
="${CC-cc} -E -traditional-cpp"
2597 cat > conftest.
$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2603 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2604 { (eval echo configure
:2605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2605 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2606 if test -z "$ac_err"; then
2610 echo "configure: failed program was:" >&5
2611 cat conftest.
$ac_ext >&5
2613 CPP
="${CC-cc} -nologo -E"
2614 cat > conftest.
$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2620 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2621 { (eval echo configure
:2622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2622 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2623 if test -z "$ac_err"; then
2627 echo "configure: failed program was:" >&5
2628 cat conftest.
$ac_ext >&5
2637 ac_cv_prog_CPP
="$CPP"
2639 CPP
="$ac_cv_prog_CPP"
2641 ac_cv_prog_CPP
="$CPP"
2643 echo "$ac_t""$CPP" 1>&6
2646 if test $ac_cv_prog_gcc = yes; then
2647 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2648 echo "configure:2649: checking whether ${CC-cc} needs -traditional" >&5
2649 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2652 ac_pattern
="Autoconf.*'x'"
2653 cat > conftest.
$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2660 egrep "$ac_pattern" >/dev
/null
2>&1; then
2662 ac_cv_prog_gcc_traditional
=yes
2665 ac_cv_prog_gcc_traditional
=no
2670 if test $ac_cv_prog_gcc_traditional = no
; then
2671 cat > conftest.
$ac_ext <<EOF
2672 #line 2673 "configure"
2673 #include "confdefs.h"
2677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2678 egrep "$ac_pattern" >/dev
/null
2>&1; then
2680 ac_cv_prog_gcc_traditional
=yes
2687 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2688 if test $ac_cv_prog_gcc_traditional = yes; then
2689 CC
="$CC -traditional"
2696 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2697 ac_cpp
='$CXXCPP $CPPFLAGS'
2698 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2699 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2700 cross_compiling
=$ac_cv_prog_cxx_cross
2703 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
2705 # Extract the first word of "$ac_prog", so it can be a program name with args.
2706 set dummy
$ac_prog; ac_word
=$2
2707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2708 echo "configure:2709: checking for $ac_word" >&5
2709 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2712 if test -n "$CXX"; then
2713 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2715 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2717 for ac_dir
in $ac_dummy; do
2718 test -z "$ac_dir" && ac_dir
=.
2719 if test -f $ac_dir/$ac_word; then
2720 ac_cv_prog_CXX
="$ac_prog"
2727 CXX
="$ac_cv_prog_CXX"
2728 if test -n "$CXX"; then
2729 echo "$ac_t""$CXX" 1>&6
2731 echo "$ac_t""no" 1>&6
2734 test -n "$CXX" && break
2736 test -n "$CXX" || CXX
="gcc"
2739 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2740 echo "configure:2741: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2743 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2744 ac_cpp
='$CXXCPP $CPPFLAGS'
2745 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2746 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2747 cross_compiling
=$ac_cv_prog_cxx_cross
2749 cat > conftest.
$ac_ext << EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2754 int main(){return(0);}
2756 if { (eval echo configure
:2757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2757 ac_cv_prog_cxx_works
=yes
2758 # If we can't run a trivial program, we are probably using a cross compiler.
2759 if (.
/conftest
; exit) 2>/dev
/null
; then
2760 ac_cv_prog_cxx_cross
=no
2762 ac_cv_prog_cxx_cross
=yes
2765 echo "configure: failed program was:" >&5
2766 cat conftest.
$ac_ext >&5
2767 ac_cv_prog_cxx_works
=no
2771 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2772 ac_cpp
='$CXXCPP $CPPFLAGS'
2773 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2774 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2775 cross_compiling
=$ac_cv_prog_cxx_cross
2777 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2778 if test $ac_cv_prog_cxx_works = no
; then
2779 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2781 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2782 echo "configure:2783: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2783 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2784 cross_compiling
=$ac_cv_prog_cxx_cross
2786 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2787 echo "configure:2788: checking whether we are using GNU C++" >&5
2788 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2791 cat > conftest.C
<<EOF
2796 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:2797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
2803 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2805 if test $ac_cv_prog_gxx = yes; then
2811 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
2812 ac_save_CXXFLAGS
="$CXXFLAGS"
2814 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2815 echo "configure:2816: checking whether ${CXX-g++} accepts -g" >&5
2816 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2819 echo 'void f(){}' > conftest.cc
2820 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2821 ac_cv_prog_cxx_g
=yes
2829 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2830 if test "$ac_test_CXXFLAGS" = set; then
2831 CXXFLAGS
="$ac_save_CXXFLAGS"
2832 elif test $ac_cv_prog_cxx_g = yes; then
2833 if test "$GXX" = yes; then
2839 if test "$GXX" = yes; then
2847 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2848 echo "configure:2849: checking how to run the C++ preprocessor" >&5
2849 if test -z "$CXXCPP"; then
2850 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2854 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2855 ac_cpp
='$CXXCPP $CPPFLAGS'
2856 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2857 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2858 cross_compiling
=$ac_cv_prog_cxx_cross
2859 CXXCPP
="${CXX-g++} -E"
2860 cat > conftest.
$ac_ext <<EOF
2861 #line 2862 "configure"
2862 #include "confdefs.h"
2865 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2866 { (eval echo configure
:2867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2867 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2868 if test -z "$ac_err"; then
2872 echo "configure: failed program was:" >&5
2873 cat conftest.
$ac_ext >&5
2878 ac_cv_prog_CXXCPP
="$CXXCPP"
2880 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2881 ac_cpp
='$CXXCPP $CPPFLAGS'
2882 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2883 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2884 cross_compiling
=$ac_cv_prog_cxx_cross
2887 CXXCPP
="$ac_cv_prog_CXXCPP"
2888 echo "$ac_t""$CXXCPP" 1>&6
2891 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-g//g'`
2894 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2895 ac_cpp
='$CPP $CPPFLAGS'
2896 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2897 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2898 cross_compiling
=$ac_cv_prog_cc_cross
2901 # Extract the first word of "ranlib", so it can be a program name with args.
2902 set dummy ranlib
; ac_word
=$2
2903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2904 echo "configure:2905: checking for $ac_word" >&5
2905 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2908 if test -n "$RANLIB"; then
2909 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2911 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2913 for ac_dir
in $ac_dummy; do
2914 test -z "$ac_dir" && ac_dir
=.
2915 if test -f $ac_dir/$ac_word; then
2916 ac_cv_prog_RANLIB
="ranlib"
2921 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2924 RANLIB
="$ac_cv_prog_RANLIB"
2925 if test -n "$RANLIB"; then
2926 echo "$ac_t""$RANLIB" 1>&6
2928 echo "$ac_t""no" 1>&6
2932 # Extract the first word of "ar", so it can be a program name with args.
2933 set dummy
ar; ac_word
=$2
2934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2935 echo "configure:2936: checking for $ac_word" >&5
2936 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2939 if test -n "$AR"; then
2940 ac_cv_prog_AR
="$AR" # Let the user override the test.
2942 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2944 for ac_dir
in $ac_dummy; do
2945 test -z "$ac_dir" && ac_dir
=.
2946 if test -f $ac_dir/$ac_word; then
2952 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
2956 if test -n "$AR"; then
2957 echo "$ac_t""$AR" 1>&6
2959 echo "$ac_t""no" 1>&6
2963 # Find a good install program. We prefer a C program (faster),
2964 # so one script is as good as another. But avoid the broken or
2965 # incompatible versions:
2966 # SysV /etc/install, /usr/sbin/install
2967 # SunOS /usr/etc/install
2968 # IRIX /sbin/install
2970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2973 # ./install, which can be erroneously created by make from ./install.sh.
2974 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2975 echo "configure:2976: checking for a BSD compatible install" >&5
2976 if test -z "$INSTALL"; then
2977 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2981 for ac_dir
in $PATH; do
2982 # Account for people who put trailing slashes in PATH elements.
2984 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
2986 # OSF1 and SCO ODT 3.0 have their own names for install.
2987 # Don't use installbsd from OSF since it installs stuff as root
2989 for ac_prog
in ginstall scoinst
install; do
2990 if test -f $ac_dir/$ac_prog; then
2991 if test $ac_prog = install &&
2992 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2993 # AIX install. It has an incompatible calling convention.
2996 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3007 if test "${ac_cv_path_install+set}" = set; then
3008 INSTALL
="$ac_cv_path_install"
3010 # As a last resort, use the slow shell script. We don't cache a
3011 # path for INSTALL within a source directory, because that will
3012 # break other packages using the cache if that directory is
3013 # removed, or if the path is relative.
3014 INSTALL
="$ac_install_sh"
3017 echo "$ac_t""$INSTALL" 1>&6
3019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3020 # It thinks the first close brace ends the variable substitution.
3021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3023 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
3025 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3028 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3029 echo "configure:3030: checking whether ln -s works" >&5
3030 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3034 if ln -s X conftestdata
2>/dev
/null
3037 ac_cv_prog_LN_S
="ln -s"
3042 LN_S
="$ac_cv_prog_LN_S"
3043 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3044 echo "$ac_t""yes" 1>&6
3046 echo "$ac_t""no" 1>&6
3050 # Extract the first word of "strip", so it can be a program name with args.
3051 set dummy strip
; ac_word
=$2
3052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3053 echo "configure:3054: checking for $ac_word" >&5
3054 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 if test -n "$STRIP"; then
3058 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3060 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3062 for ac_dir
in $ac_dummy; do
3063 test -z "$ac_dir" && ac_dir
=.
3064 if test -f $ac_dir/$ac_word; then
3065 ac_cv_prog_STRIP
="strip"
3070 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
="true"
3073 STRIP
="$ac_cv_prog_STRIP"
3074 if test -n "$STRIP"; then
3075 echo "$ac_t""$STRIP" 1>&6
3077 echo "$ac_t""no" 1>&6
3081 echo $ac_n "checking "make for VPATH support
"""... $ac_c" 1>&6
3082 echo "configure:3083: checking "make for VPATH support
"" >&5
3083 cat - << EOF > confMake
3089 if test ! -d sub
; then
3092 echo dummy
> sub
/file
3093 ${MAKE-make} -f confMake VPATH
=sub
2> config.log
> /dev
/null
3095 rm -f sub
/file check final_file confMake
3097 if test "$RESULT" = 0; then
3098 echo "$ac_t""yes" 1>&6
3100 echo "$ac_t""no" 1>&6
3101 { echo "configure: error: You need a make-utility that is able to use the variable
3103 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
3106 for ac_prog
in 'bison -y' byacc
3108 # Extract the first word of "$ac_prog", so it can be a program name with args.
3109 set dummy
$ac_prog; ac_word
=$2
3110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3111 echo "configure:3112: checking for $ac_word" >&5
3112 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 if test -n "$YACC"; then
3116 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3118 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3120 for ac_dir
in $ac_dummy; do
3121 test -z "$ac_dir" && ac_dir
=.
3122 if test -f $ac_dir/$ac_word; then
3123 ac_cv_prog_YACC
="$ac_prog"
3130 YACC
="$ac_cv_prog_YACC"
3131 if test -n "$YACC"; then
3132 echo "$ac_t""$YACC" 1>&6
3134 echo "$ac_t""no" 1>&6
3137 test -n "$YACC" && break
3139 test -n "$YACC" || YACC
="yacc"
3142 missing_dir
=`cd $ac_aux_dir && pwd`
3143 for ac_prog
in flex
lex
3145 # Extract the first word of "$ac_prog", so it can be a program name with args.
3146 set dummy
$ac_prog; ac_word
=$2
3147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3148 echo "configure:3149: checking for $ac_word" >&5
3149 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3152 if test -n "$LEX"; then
3153 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3155 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3157 for ac_dir
in $ac_dummy; do
3158 test -z "$ac_dir" && ac_dir
=.
3159 if test -f $ac_dir/$ac_word; then
3160 ac_cv_prog_LEX
="$ac_prog"
3167 LEX
="$ac_cv_prog_LEX"
3168 if test -n "$LEX"; then
3169 echo "$ac_t""$LEX" 1>&6
3171 echo "$ac_t""no" 1>&6
3174 test -n "$LEX" && break
3176 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
3178 # Extract the first word of "flex", so it can be a program name with args.
3179 set dummy flex
; ac_word
=$2
3180 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3181 echo "configure:3182: checking for $ac_word" >&5
3182 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3183 echo $ac_n "(cached) $ac_c" 1>&6
3185 if test -n "$LEX"; then
3186 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3188 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3190 for ac_dir
in $ac_dummy; do
3191 test -z "$ac_dir" && ac_dir
=.
3192 if test -f $ac_dir/$ac_word; then
3193 ac_cv_prog_LEX
="flex"
3198 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
3201 LEX
="$ac_cv_prog_LEX"
3202 if test -n "$LEX"; then
3203 echo "$ac_t""$LEX" 1>&6
3205 echo "$ac_t""no" 1>&6
3208 if test -z "$LEXLIB"
3214 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3215 echo "configure:3216: checking for yywrap in -l$ac_lib" >&5
3216 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3217 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 ac_save_LIBS
="$LIBS"
3221 LIBS
="-l$ac_lib $LIBS"
3222 cat > conftest.
$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3225 /* Override any gcc2 internal prototype to avoid an error. */
3226 /* We use char because int might match the return type of a gcc2
3227 builtin and then its argument prototype would still apply. */
3234 if { (eval echo configure
:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3236 eval "ac_cv_lib_$ac_lib_var=yes"
3238 echo "configure: failed program was:" >&5
3239 cat conftest.
$ac_ext >&5
3241 eval "ac_cv_lib_$ac_lib_var=no"
3244 LIBS
="$ac_save_LIBS"
3247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3248 echo "$ac_t""yes" 1>&6
3251 echo "$ac_t""no" 1>&6
3256 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3257 echo "configure:3258: checking lex output file root" >&5
3258 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 # The minimal lex program is just a single line: %%. But some broken lexes
3262 # (Solaris, I think it was) want two %% lines, so accommodate them.
3265 if test -f lex.yy.c
; then
3266 ac_cv_prog_lex_root
=lex.yy
3267 elif test -f lexyy.c
; then
3268 ac_cv_prog_lex_root
=lexyy
3270 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3274 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3275 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3277 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3278 echo "configure:3279: checking whether yytext is a pointer" >&5
3279 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3282 # POSIX says lex can declare yytext either as a pointer or an array; the
3283 # default is implementation-dependent. Figure out which it is, since
3284 # not all implementations provide the %pointer and %array declarations.
3285 ac_cv_prog_lex_yytext_pointer
=no
3286 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3287 ac_save_LIBS
="$LIBS"
3288 LIBS
="$LIBS $LEXLIB"
3289 cat > conftest.
$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3292 `cat $LEX_OUTPUT_ROOT.c`
3297 if { (eval echo configure
:3298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3299 ac_cv_prog_lex_yytext_pointer
=yes
3301 echo "configure: failed program was:" >&5
3302 cat conftest.
$ac_ext >&5
3305 LIBS
="$ac_save_LIBS"
3306 rm -f "${LEX_OUTPUT_ROOT}.c"
3310 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3311 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3312 cat >> confdefs.h
<<\EOF
3313 #define YYTEXT_POINTER 1
3319 # Check whether --enable-static or --disable-static was given.
3320 if test "${enable_static+set}" = set; then
3321 enableval
="$enable_static"
3322 p
=${PACKAGE-default}
3323 case "$enableval" in
3324 yes) enable_static
=yes ;;
3325 no
) enable_static
=no
;;
3328 # Look at the argument we got. We use all the common list separators.
3329 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
3330 for pkg
in $enableval; do
3331 if test "X$pkg" = "X$p"; then
3342 # Check whether --enable-shared or --disable-shared was given.
3343 if test "${enable_shared+set}" = set; then
3344 enableval
="$enable_shared"
3345 p
=${PACKAGE-default}
3346 case "$enableval" in
3347 yes) enable_shared
=yes ;;
3348 no
) enable_shared
=no
;;
3351 # Look at the argument we got. We use all the common list separators.
3352 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
3353 for pkg
in $enableval; do
3354 if test "X$pkg" = "X$p"; then
3365 echo $ac_n "checking build system type""... $ac_c" 1>&6
3366 echo "configure:3367: checking build system type" >&5
3369 case "$build_alias" in
3372 NONE
) build_alias
=$host_alias ;;
3373 *) build_alias
=$nonopt ;;
3377 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3378 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3379 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3380 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3381 echo "$ac_t""$build" 1>&6
3383 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3384 if test "${with_gnu_ld+set}" = set; then
3385 withval
="$with_gnu_ld"
3386 test "$withval" = no
|| with_gnu_ld
=yes
3392 if test "$ac_cv_prog_gcc" = yes; then
3393 # Check if gcc -print-prog-name=ld gives a path.
3394 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3395 echo "configure:3396: checking for ld used by GCC" >&5
3396 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
3398 # Accept absolute paths.
3400 # Canonicalize the path of ld
3401 re_direlt
='/[^/][^/]*/\.\./'
3402 sub_uncdrive
='s%^\([A-Za-z]\):/%//\1/%'
3403 while echo $ac_prog | grep "$re_direlt" > /dev
/null
2>&1; do
3404 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
3408 # Convert to a UNC path for cygwin
3409 test -z "$LD" && LD
=`echo X$ac_prog | $Xsed -e "$sub_uncdrive"`
3412 test -z "$LD" && LD
="$ac_prog"
3417 ## FIXME: The code fails later on if we try to use an $LD with
3418 ## '\\' path separators.
3421 # Canonicalize the path of ld
3422 re_direlt
='\\[^\\][^\\]*\\\.\.\(\\\)'
3423 sub_uncdrive
='s%^\([A-Za-z]\):\\%//\1/%'
3424 sub_uncdir
='s%\\%/%g'
3425 while echo $ac_prog | grep "$re_direlt" > /dev
/null
2>&1; do
3426 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%\1%"`
3430 # Convert to a UNC path for cygwin
3431 test -z "$LD" && LD
=`echo X$ac_prog | sed -e 's%^X%%' -e "$sub_uncdrive" -e "$sub_uncdir"`
3434 test -z "$LD" && LD
="$ac_prog"
3439 # If it fails, then pretend we aren't using GCC.
3443 # If it is relative, then search for the first ld in PATH.
3447 elif test "$with_gnu_ld" = yes; then
3448 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3449 echo "configure:3450: checking for GNU ld" >&5
3451 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3452 echo "configure:3453: checking for non-GNU ld" >&5
3454 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 if test -z "$LD"; then
3458 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3459 for ac_dir
in $PATH; do
3460 test -z "$ac_dir" && ac_dir
=.
3461 if test -f "$ac_dir/$ac_prog"; then
3462 ac_cv_path_LD
="$ac_dir/$ac_prog"
3463 # Check to see if the program is GNU ld. I'd rather use --version,
3464 # but apparently some GNU ld's only accept -v.
3465 # Break only if it was the GNU/non-GNU ld that we prefer.
3466 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null
| egrep '(GNU|with BFD)' > /dev
/null
; then
3467 test "$with_gnu_ld" != no
&& break
3469 test "$with_gnu_ld" != yes && break
3475 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
3480 if test -n "$LD"; then
3481 echo "$ac_t""$LD" 1>&6
3483 echo "$ac_t""no" 1>&6
3485 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3487 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3488 echo "configure:3489: checking if the linker ($LD) is GNU ld" >&5
3489 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3492 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3493 if $LD -v 2>&1 </dev
/null
| egrep '(GNU|with BFD)' 1>&5; then
3494 ac_cv_prog_gnu_ld
=yes
3496 ac_cv_prog_gnu_ld
=no
3500 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3503 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3504 echo "configure:3505: checking for BSD-compatible nm" >&5
3505 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3508 if test -n "$NM"; then
3509 # Let the user override the test.
3512 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3513 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
3514 test -z "$ac_dir" && ac_dir
=.
3515 if test -f $ac_dir/nm
; then
3516 # Check to see if the nm accepts a BSD-compat flag.
3517 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3518 # nm: unknown option "B" ignored
3519 if ($ac_dir/nm
-B /dev
/null
2>&1 | sed '1q'; exit 0) | egrep /dev
/null
>/dev
/null
; then
3520 ac_cv_path_NM
="$ac_dir/nm -B"
3521 elif ($ac_dir/nm
-p /dev
/null
2>&1 | sed '1q'; exit 0) | egrep /dev
/null
>/dev
/null
; then
3522 ac_cv_path_NM
="$ac_dir/nm -p"
3524 ac_cv_path_NM
="$ac_dir/nm"
3530 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
3535 echo "$ac_t""$NM" 1>&6
3538 # Check for command to grab the raw symbol name followed by C symbol from nm.
3539 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3540 echo "configure:3541: checking command to parse $NM output" >&5
3541 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
3542 echo $ac_n "(cached) $ac_c" 1>&6
3544 # These are sane defaults that work on at least a few old systems.
3545 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
3547 # Character class describing NM global symbol codes.
3548 ac_symcode
='[BCDEGRSTU]'
3550 # Regexp to match symbols that can be accessed directly from C.
3551 ac_sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
3553 # Transform the above into a raw symbol and a C symbol.
3556 # Define system-specific variables.
3559 ac_symcode
='[BCDTU]'
3561 sunos
* | cygwin32
* | mingw32
*)
3562 ac_sympat
='_\([_A-Za-z][_A-Za-z0-9]*\)'
3566 # Cannot use undefined symbols on IRIX because inlined functions mess us up.
3567 ac_symcode
='[BCDEGRST]'
3574 # If we're using GNU nm, then use its standard symbol codes.
3575 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev
/null
; then
3576 ac_symcode
='[ABCDGISTUW]'
3580 cygwin32
* | mingw32
*)
3581 # We do not want undefined symbols on cygwin32. The user must
3582 # arrange to define them via -l arguments.
3583 ac_symcode
='[ABCDGISTW]'
3587 # Write the raw and C identifiers.
3588 ac_cv_sys_global_symbol_pipe
="sed -n -e 's/^.* $ac_symcode $ac_sympat$/$ac_symxfrm/p'"
3590 # Check to see that the pipe works correctly.
3592 cat > conftest.
$ac_ext <<EOF
3597 void nm_test_func(){}
3601 int main(){nm_test_var='a';nm_test_func;return 0;}
3603 if { (eval echo configure
:3604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3604 # Now try to grab the symbols.
3605 ac_nlist
=conftest.nm
3606 if { (eval echo configure
:3607: \"$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
3608 # Try sorting and uniquifying the output.
3609 if sort "$ac_nlist" | uniq > "$ac_nlist"T
; then
3610 mv -f "$ac_nlist"T
"$ac_nlist"
3611 ac_wcout
=`wc "$ac_nlist" 2>/dev/null`
3612 ac_count
=`echo "X$ac_wcout" | sed -e 's,^X,,' -e 's/^[ ]*\([0-9][0-9]*\).*$/\1/'`
3613 (test "$ac_count" -ge 0) 2>/dev
/null
|| ac_count
=-1
3619 # Make sure that we snagged all the symbols we need.
3620 if egrep ' nm_test_var$' "$ac_nlist" >/dev
/null
; then
3621 if egrep ' nm_test_func$' "$ac_nlist" >/dev
/null
; then
3622 cat <<EOF > conftest.c
3628 # Now generate the symbol file.
3629 sed 's/^.* \(.*\)$/extern char \1;/' < "$ac_nlist" >> conftest.c
3631 cat <<EOF >> conftest.c
3632 #if defined (__STDC__) && __STDC__
3633 # define __ptr_t void *
3635 # define __ptr_t char *
3638 /* The number of symbols in dld_preloaded_symbols, -1 if unsorted. */
3639 int dld_preloaded_symbol_count = $ac_count;
3641 /* The mapping between symbol names and symbols. */
3646 dld_preloaded_symbols[] =
3649 sed 's/^\(.*\) \(.*\)$/ {"\1", (__ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
3650 cat <<\EOF
>> conftest.c
3658 # Now try linking the two files.
3659 mv conftest.
$ac_objext conftestm.
$ac_objext
3660 ac_save_LIBS
="$LIBS"
3661 ac_save_CFLAGS
="$CFLAGS"
3662 LIBS
="conftestm.$ac_objext"
3663 CFLAGS
="$CFLAGS$no_builtin_flag"
3664 if { (eval echo configure
:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3667 echo "configure: failed program was:" >&5
3670 LIBS
="$ac_save_LIBS"
3671 CFLAGS
="$ac_save_CFLAGS"
3673 echo "cannot find nm_test_func in $ac_nlist" >&5
3676 echo "cannot find nm_test_var in $ac_nlist" >&5
3679 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
3682 echo "$progname: failed program was:" >&5
3687 # Do not use the global_symbol_pipe unless it works.
3688 test "$ac_pipe_works" = yes || ac_cv_sys_global_symbol_pipe
=
3694 if test -z "$ac_cv_sys_global_symbol_pipe"; then
3697 echo "$ac_t""$ac_result" 1>&6
3699 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
3700 echo "configure:3701: checking for _ prefix in compiled symbols" >&5
3701 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 ac_cv_sys_symbol_underscore
=no
3705 cat > conftest.
$ac_ext <<EOF
3706 void nm_test_func(){}
3707 int main(){nm_test_func;return 0;}
3709 if { (eval echo configure
:3710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3710 # Now try to grab the symbols.
3711 ac_nlist
=conftest.nm
3712 if { (eval echo configure
:3713: \"$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
3713 # See whether the symbols have a leading underscore.
3714 if egrep '^_nm_test_func' "$ac_nlist" >/dev
/null
; then
3715 ac_cv_sys_symbol_underscore
=yes
3717 if egrep '^nm_test_func ' "$ac_nlist" >/dev
/null
; then
3720 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
3724 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
3727 echo "configure: failed program was:" >&5
3734 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
3735 if test x
$ac_cv_sys_symbol_underscore = xyes
; then
3736 cat >> confdefs.h
<<\EOF
3737 #define WITH_SYMBOL_UNDERSCORE 1
3742 if test $host != $build; then
3743 ac_tool_prefix
=${host_alias}-
3748 # Always use our own libtool.
3749 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
3751 # Check for any special flags to pass to ltconfig.
3753 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
3754 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
3755 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
3756 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
3757 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
3759 # Some flags need to be propagated to the compiler or linker for good
3763 # Find out which ABI we are using.
3764 echo '#line 3765 "configure"' > conftest.
$ac_ext
3765 if { (eval echo configure
:3766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3766 case "`/usr/bin/file conftest.o`" in
3782 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3783 SAVE_CFLAGS
="$CFLAGS"
3784 CFLAGS
="$CFLAGS -belf"
3785 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3786 echo "configure:3787: checking whether the C compiler needs -belf" >&5
3787 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3790 cat > conftest.
$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3798 if { (eval echo configure
:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3800 lt_cv_cc_needs_belf
=yes
3802 echo "configure: failed program was:" >&5
3803 cat conftest.
$ac_ext >&5
3805 lt_cv_cc_needs_belf
=no
3810 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3811 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
3812 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3813 CFLAGS
="$SAVE_CFLAGS"
3818 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3819 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3821 echo "configure:3822: checking for $ac_word" >&5
3822 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3823 echo $ac_n "(cached) $ac_c" 1>&6
3825 if test -n "$DLLTOOL"; then
3826 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3828 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3830 for ac_dir
in $ac_dummy; do
3831 test -z "$ac_dir" && ac_dir
=.
3832 if test -f $ac_dir/$ac_word; then
3833 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3840 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3841 if test -n "$DLLTOOL"; then
3842 echo "$ac_t""$DLLTOOL" 1>&6
3844 echo "$ac_t""no" 1>&6
3848 if test -z "$ac_cv_prog_DLLTOOL"; then
3849 if test -n "$ac_tool_prefix"; then
3850 # Extract the first word of "dlltool", so it can be a program name with args.
3851 set dummy dlltool
; ac_word
=$2
3852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3853 echo "configure:3854: checking for $ac_word" >&5
3854 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 if test -n "$DLLTOOL"; then
3858 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3860 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3862 for ac_dir
in $ac_dummy; do
3863 test -z "$ac_dir" && ac_dir
=.
3864 if test -f $ac_dir/$ac_word; then
3865 ac_cv_prog_DLLTOOL
="dlltool"
3870 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
3873 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3874 if test -n "$DLLTOOL"; then
3875 echo "$ac_t""$DLLTOOL" 1>&6
3877 echo "$ac_t""no" 1>&6
3885 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3886 set dummy
${ac_tool_prefix}as
; ac_word
=$2
3887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3888 echo "configure:3889: checking for $ac_word" >&5
3889 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3892 if test -n "$AS"; then
3893 ac_cv_prog_AS
="$AS" # Let the user override the test.
3895 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3897 for ac_dir
in $ac_dummy; do
3898 test -z "$ac_dir" && ac_dir
=.
3899 if test -f $ac_dir/$ac_word; then
3900 ac_cv_prog_AS
="${ac_tool_prefix}as"
3908 if test -n "$AS"; then
3909 echo "$ac_t""$AS" 1>&6
3911 echo "$ac_t""no" 1>&6
3915 if test -z "$ac_cv_prog_AS"; then
3916 if test -n "$ac_tool_prefix"; then
3917 # Extract the first word of "as", so it can be a program name with args.
3918 set dummy as
; ac_word
=$2
3919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3920 echo "configure:3921: checking for $ac_word" >&5
3921 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3922 echo $ac_n "(cached) $ac_c" 1>&6
3924 if test -n "$AS"; then
3925 ac_cv_prog_AS
="$AS" # Let the user override the test.
3927 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3929 for ac_dir
in $ac_dummy; do
3930 test -z "$ac_dir" && ac_dir
=.
3931 if test -f $ac_dir/$ac_word; then
3937 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
3941 if test -n "$AS"; then
3942 echo "$ac_t""$AS" 1>&6
3944 echo "$ac_t""no" 1>&6
3957 # enable the --disable-libtool-lock switch
3959 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3960 if test "${enable_libtool_lock+set}" = set; then
3961 enableval
="$enable_libtool_lock"
3962 need_locks
=$enableval
3968 if test x
"$need_locks" = xno
; then
3969 libtool_flags
="$libtool_flags --disable-lock"
3973 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3974 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
3975 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
3976 DLLTOOL
="$DLLTOOL" AS
="$AS" \
3977 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
3978 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
3979 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3981 # Redirect the config.log output again, so that the ltconfig log is not
3982 # clobbered by the next message.
3983 exec 5>>.
/config.log
3988 /usr/Motif-1.2/include \
3989 /usr/Motif-2.1/include \
3991 /usr/include/Motif1.2 \
3992 /opt/xpm/include/X11 \
3994 /usr/Motif1.2/include \
3998 /usr/X11R6/include \
3999 /usr/X11R5/include \
4000 /usr/X11R4/include \
4006 /usr/include/X11R6 \
4007 /usr/include/X11R5 \
4008 /usr/include/X11R4 \
4010 /usr/local/X11R6/include \
4011 /usr/local/X11R5/include \
4012 /usr/local/X11R4/include \
4014 /usr/local/include/X11R6 \
4015 /usr/local/include/X11R5 \
4016 /usr/local/include/X11R4 \
4020 /usr/local/X11/include \
4021 /usr/local/include/X11 \
4025 /usr/XFree86/include/X11 \
4031 /usr/local/include \
4032 /usr/unsupported/include \
4033 /usr/athena/include \
4034 /usr/local/x11r5/include \
4035 /usr/lpp/Xamples/include \
4037 /usr/local/include/gtk \
4038 /usr/local/include/qt \
4041 /usr/openwin/include \
4042 /usr/openwin/share/include \
4045 SEARCH_LIB
="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
4048 cat > confcache
<<\EOF
4049 # This file is a shell script that caches the results of configure
4050 # tests run on this system so they can be shared between configure
4051 # scripts and configure runs. It is not useful on other systems.
4052 # If it contains results you don't want to keep, you may remove or edit it.
4054 # By default, configure uses ./config.cache as the cache file,
4055 # creating it if it does not exist already. You can give configure
4056 # the --cache-file=FILE option to use a different cache file; that is
4057 # what configure does when it calls configure scripts in
4058 # subdirectories, so they share the cache.
4059 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4060 # config.status only pays attention to the cache file if you give it the
4061 # --recheck option to rerun configure.
4064 # The following way of writing the cache mishandles newlines in values,
4065 # but we know of no workaround that is simple, portable, and efficient.
4066 # So, don't put newlines in cache variables' values.
4067 # Ultrix sh set writes to stderr and can't be redirected directly,
4068 # and sets the high bit in the cache file unless we assign to the vars.
4070 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4072 # `set' does not quote correctly, so add quotes (double-quote substitution
4073 # turns \\\\ into \\, and sed turns \\ into \).
4075 -e "s/'/'\\\\''/g" \
4076 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4079 # `set' quotes correctly as required by POSIX, so do not add quotes.
4080 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4083 if cmp -s $cache_file confcache
; then
4086 if test -w $cache_file; then
4087 echo "updating cache $cache_file"
4088 cat confcache
> $cache_file
4090 echo "not updating unwritable cache $cache_file"
4096 # If we find X, set shell vars x_includes and x_libraries to the
4097 # paths, otherwise set no_x=yes.
4098 # Uses ac_ vars as temps to allow command line to override cache and checks.
4099 # --without-x overrides everything else, but does not touch the cache.
4100 echo $ac_n "checking for X""... $ac_c" 1>&6
4101 echo "configure:4102: checking for X" >&5
4103 # Check whether --with-x or --without-x was given.
4104 if test "${with_x+set}" = set; then
4109 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4110 if test "x$with_x" = xno
; then
4111 # The user explicitly disabled X.
4114 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
4115 # Both variables are already set.
4118 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4119 echo $ac_n "(cached) $ac_c" 1>&6
4121 # One or both of the vars are not set, and there is no cached value.
4122 ac_x_includes
=NO ac_x_libraries
=NO
4124 if mkdir conftestdir
; then
4126 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4127 cat > Imakefile
<<'EOF'
4129 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4131 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4132 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4133 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4134 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4135 for ac_extension
in a so sl
; do
4136 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
4137 test -f $ac_im_libdir/libX11.
$ac_extension; then
4138 ac_im_usrlibdir
=$ac_im_libdir; break
4141 # Screen out bogus values from the imake configuration. They are
4142 # bogus both because they are the default anyway, and because
4143 # using them would break gcc on systems where it needs fixed includes.
4144 case "$ac_im_incroot" in
4146 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
4148 case "$ac_im_usrlibdir" in
4150 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
4157 if test "$ac_x_includes" = NO
; then
4158 # Guess where to find include files, by looking for this one X11 .h file.
4159 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
4161 # First, try using that file with no special directory specified.
4162 cat > conftest.
$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 #include <$x_direct_test_include>
4167 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4168 { (eval echo configure
:4169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4169 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4170 if test -z "$ac_err"; then
4172 # We can compile using X headers with no special include directory.
4176 echo "configure: failed program was:" >&5
4177 cat conftest.
$ac_ext >&5
4179 # Look for the header file in a standard set of common directories.
4180 # Check X11 before X11Rn because it is often a symlink to the current release.
4183 /usr
/X
11R
6/include \
4184 /usr
/X
11R
5/include \
4185 /usr
/X
11R
4/include \
4188 /usr
/include
/X11R6 \
4189 /usr
/include
/X11R5 \
4190 /usr
/include
/X11R4 \
4192 /usr
/local
/X
11/include \
4193 /usr
/local
/X
11R
6/include \
4194 /usr
/local
/X
11R
5/include \
4195 /usr
/local
/X
11R
4/include \
4197 /usr
/local
/include
/X11 \
4198 /usr
/local
/include
/X11R6 \
4199 /usr
/local
/include
/X11R5 \
4200 /usr
/local
/include
/X11R4 \
4204 /usr
/XFree
86/include
/X11 \
4207 /usr
/local
/include \
4208 /usr
/unsupported
/include \
4209 /usr
/athena
/include \
4210 /usr
/local
/x
11r
5/include \
4211 /usr
/lpp
/Xamples
/include \
4213 /usr
/openwin
/include \
4214 /usr
/openwin
/share
/include \
4217 if test -r "$ac_dir/$x_direct_test_include"; then
4218 ac_x_includes
=$ac_dir
4224 fi # $ac_x_includes = NO
4226 if test "$ac_x_libraries" = NO
; then
4227 # Check for the libraries.
4229 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
4230 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
4232 # See if we find them without any special options.
4233 # Don't add to $LIBS permanently.
4234 ac_save_LIBS
="$LIBS"
4235 LIBS
="-l$x_direct_test_library $LIBS"
4236 cat > conftest.
$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4241 ${x_direct_test_function}()
4244 if { (eval echo configure
:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4246 LIBS
="$ac_save_LIBS"
4247 # We can link X programs with no special library path.
4250 echo "configure: failed program was:" >&5
4251 cat conftest.
$ac_ext >&5
4253 LIBS
="$ac_save_LIBS"
4254 # First see if replacing the include by lib works.
4255 # Check X11 before X11Rn because it is often a symlink to the current release.
4256 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
4267 /usr
/local
/X
11/lib \
4268 /usr
/local
/X
11R
6/lib \
4269 /usr
/local
/X
11R
5/lib \
4270 /usr
/local
/X
11R
4/lib \
4272 /usr
/local
/lib
/X11 \
4273 /usr
/local
/lib
/X11R6 \
4274 /usr
/local
/lib
/X11R5 \
4275 /usr
/local
/lib
/X11R4 \
4279 /usr
/XFree
86/lib
/X11 \
4283 /usr
/unsupported
/lib \
4285 /usr
/local
/x
11r
5/lib \
4286 /usr
/lpp
/Xamples
/lib \
4290 /usr
/openwin
/share
/lib \
4293 for ac_extension
in a so sl
; do
4294 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
4295 ac_x_libraries
=$ac_dir
4302 fi # $ac_x_libraries = NO
4304 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
4305 # Didn't find X anywhere. Cache the known absence of X.
4306 ac_cv_have_x
="have_x=no"
4308 # Record where we found X for the cache.
4309 ac_cv_have_x
="have_x=yes \
4310 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4314 eval "$ac_cv_have_x"
4317 if test "$have_x" != yes; then
4318 echo "$ac_t""$have_x" 1>&6
4321 # If each of the values was on the command line, it overrides each guess.
4322 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4323 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4324 # Update the cache value to reflect the command line values.
4325 ac_cv_have_x
="have_x=yes \
4326 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4327 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4330 if test "$no_x" = yes; then
4331 # Not all programs may use this symbol, but it does not hurt to define it.
4332 cat >> confdefs.h
<<\EOF
4333 #define X_DISPLAY_MISSING 1
4336 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
4338 if test -n "$x_includes"; then
4339 X_CFLAGS
="$X_CFLAGS -I$x_includes"
4342 # It would also be nice to do this for all -L options, not just this one.
4343 if test -n "$x_libraries"; then
4344 X_LIBS
="$X_LIBS -L$x_libraries"
4345 # For Solaris; some versions of Sun CC require a space after -R and
4346 # others require no space. Words are not sufficient . . . .
4347 case "`(uname -sr) 2>/dev/null`" in
4349 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4350 echo "configure:4351: checking whether -R must be followed by a space" >&5
4351 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
4352 cat > conftest.
$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4360 if { (eval echo configure
:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4364 echo "configure: failed program was:" >&5
4365 cat conftest.
$ac_ext >&5
4370 if test $ac_R_nospace = yes; then
4371 echo "$ac_t""no" 1>&6
4372 X_LIBS
="$X_LIBS -R$x_libraries"
4374 LIBS
="$ac_xsave_LIBS -R $x_libraries"
4375 cat > conftest.
$ac_ext <<EOF
4376 #line 4377 "configure"
4377 #include "confdefs.h"
4383 if { (eval echo configure
:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4387 echo "configure: failed program was:" >&5
4388 cat conftest.
$ac_ext >&5
4393 if test $ac_R_space = yes; then
4394 echo "$ac_t""yes" 1>&6
4395 X_LIBS
="$X_LIBS -R $x_libraries"
4397 echo "$ac_t""neither works" 1>&6
4400 LIBS
="$ac_xsave_LIBS"
4404 # Check for system-dependent libraries X programs must link with.
4405 # Do this before checking for the system-independent R6 libraries
4406 # (-lICE), since we may need -lsocket or whatever for X linking.
4408 if test "$ISC" = yes; then
4409 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
4411 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4412 # libraries were built with DECnet support. And karl@cs.umb.edu says
4413 # the Alpha needs dnet_stub (dnet does not exist).
4414 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4415 echo "configure:4416: checking for dnet_ntoa in -ldnet" >&5
4416 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4420 ac_save_LIBS
="$LIBS"
4422 cat > conftest.
$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4425 /* Override any gcc2 internal prototype to avoid an error. */
4426 /* We use char because int might match the return type of a gcc2
4427 builtin and then its argument prototype would still apply. */
4434 if { (eval echo configure
:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4436 eval "ac_cv_lib_$ac_lib_var=yes"
4438 echo "configure: failed program was:" >&5
4439 cat conftest.
$ac_ext >&5
4441 eval "ac_cv_lib_$ac_lib_var=no"
4444 LIBS
="$ac_save_LIBS"
4447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4449 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
4451 echo "$ac_t""no" 1>&6
4454 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
4455 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4456 echo "configure:4457: checking for dnet_ntoa in -ldnet_stub" >&5
4457 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4459 echo $ac_n "(cached) $ac_c" 1>&6
4461 ac_save_LIBS
="$LIBS"
4462 LIBS
="-ldnet_stub $LIBS"
4463 cat > conftest.
$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4466 /* Override any gcc2 internal prototype to avoid an error. */
4467 /* We use char because int might match the return type of a gcc2
4468 builtin and then its argument prototype would still apply. */
4475 if { (eval echo configure
:4476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4477 eval "ac_cv_lib_$ac_lib_var=yes"
4479 echo "configure: failed program was:" >&5
4480 cat conftest.
$ac_ext >&5
4482 eval "ac_cv_lib_$ac_lib_var=no"
4485 LIBS
="$ac_save_LIBS"
4488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4489 echo "$ac_t""yes" 1>&6
4490 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
4492 echo "$ac_t""no" 1>&6
4497 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4498 # to get the SysV transport functions.
4499 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4501 # The nsl library prevents programs from opening the X display
4502 # on Irix 5.2, according to dickey@clark.net.
4503 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4504 echo "configure:4505: checking for gethostbyname" >&5
4505 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4506 echo $ac_n "(cached) $ac_c" 1>&6
4508 cat > conftest.
$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4511 /* System header to define __stub macros and hopefully few prototypes,
4512 which can conflict with char gethostbyname(); below. */
4514 /* Override any gcc2 internal prototype to avoid an error. */
4515 /* We use char because int might match the return type of a gcc2
4516 builtin and then its argument prototype would still apply. */
4517 char gethostbyname();
4521 /* The GNU C library defines this for functions which it implements
4522 to always fail with ENOSYS. Some functions are actually named
4523 something starting with __ and the normal name is an alias. */
4524 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4532 if { (eval echo configure
:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4534 eval "ac_cv_func_gethostbyname=yes"
4536 echo "configure: failed program was:" >&5
4537 cat conftest.
$ac_ext >&5
4539 eval "ac_cv_func_gethostbyname=no"
4544 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4545 echo "$ac_t""yes" 1>&6
4548 echo "$ac_t""no" 1>&6
4551 if test $ac_cv_func_gethostbyname = no
; then
4552 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4553 echo "configure:4554: checking for gethostbyname in -lnsl" >&5
4554 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 ac_save_LIBS
="$LIBS"
4560 cat > conftest.
$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 /* Override any gcc2 internal prototype to avoid an error. */
4564 /* We use char because int might match the return type of a gcc2
4565 builtin and then its argument prototype would still apply. */
4566 char gethostbyname();
4572 if { (eval echo configure
:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4574 eval "ac_cv_lib_$ac_lib_var=yes"
4576 echo "configure: failed program was:" >&5
4577 cat conftest.
$ac_ext >&5
4579 eval "ac_cv_lib_$ac_lib_var=no"
4582 LIBS
="$ac_save_LIBS"
4585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4586 echo "$ac_t""yes" 1>&6
4587 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4589 echo "$ac_t""no" 1>&6
4594 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4595 # socket/setsockopt and other routines are undefined under SCO ODT
4596 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4597 # on later versions), says simon@lia.di.epfl.ch: it contains
4598 # gethostby* variants that don't use the nameserver (or something).
4599 # -lsocket must be given before -lnsl if both are needed.
4600 # We assume that if connect needs -lnsl, so does gethostbyname.
4601 echo $ac_n "checking for connect""... $ac_c" 1>&6
4602 echo "configure:4603: checking for connect" >&5
4603 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4606 cat > conftest.
$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4609 /* System header to define __stub macros and hopefully few prototypes,
4610 which can conflict with char connect(); below. */
4612 /* Override any gcc2 internal prototype to avoid an error. */
4613 /* We use char because int might match the return type of a gcc2
4614 builtin and then its argument prototype would still apply. */
4619 /* The GNU C library defines this for functions which it implements
4620 to always fail with ENOSYS. Some functions are actually named
4621 something starting with __ and the normal name is an alias. */
4622 #if defined (__stub_connect) || defined (__stub___connect)
4630 if { (eval echo configure
:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4632 eval "ac_cv_func_connect=yes"
4634 echo "configure: failed program was:" >&5
4635 cat conftest.
$ac_ext >&5
4637 eval "ac_cv_func_connect=no"
4642 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4643 echo "$ac_t""yes" 1>&6
4646 echo "$ac_t""no" 1>&6
4649 if test $ac_cv_func_connect = no
; then
4650 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4651 echo "configure:4652: checking for connect in -lsocket" >&5
4652 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4653 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
4656 ac_save_LIBS
="$LIBS"
4657 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4658 cat > conftest.
$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4661 /* Override any gcc2 internal prototype to avoid an error. */
4662 /* We use char because int might match the return type of a gcc2
4663 builtin and then its argument prototype would still apply. */
4670 if { (eval echo configure
:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4672 eval "ac_cv_lib_$ac_lib_var=yes"
4674 echo "configure: failed program was:" >&5
4675 cat conftest.
$ac_ext >&5
4677 eval "ac_cv_lib_$ac_lib_var=no"
4680 LIBS
="$ac_save_LIBS"
4683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4684 echo "$ac_t""yes" 1>&6
4685 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
4687 echo "$ac_t""no" 1>&6
4692 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4693 echo $ac_n "checking for remove""... $ac_c" 1>&6
4694 echo "configure:4695: checking for remove" >&5
4695 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4698 cat > conftest.
$ac_ext <<EOF
4699 #line 4700 "configure"
4700 #include "confdefs.h"
4701 /* System header to define __stub macros and hopefully few prototypes,
4702 which can conflict with char remove(); below. */
4704 /* Override any gcc2 internal prototype to avoid an error. */
4705 /* We use char because int might match the return type of a gcc2
4706 builtin and then its argument prototype would still apply. */
4711 /* The GNU C library defines this for functions which it implements
4712 to always fail with ENOSYS. Some functions are actually named
4713 something starting with __ and the normal name is an alias. */
4714 #if defined (__stub_remove) || defined (__stub___remove)
4722 if { (eval echo configure
:4723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4724 eval "ac_cv_func_remove=yes"
4726 echo "configure: failed program was:" >&5
4727 cat conftest.
$ac_ext >&5
4729 eval "ac_cv_func_remove=no"
4734 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4735 echo "$ac_t""yes" 1>&6
4738 echo "$ac_t""no" 1>&6
4741 if test $ac_cv_func_remove = no
; then
4742 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4743 echo "configure:4744: checking for remove in -lposix" >&5
4744 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4746 echo $ac_n "(cached) $ac_c" 1>&6
4748 ac_save_LIBS
="$LIBS"
4749 LIBS
="-lposix $LIBS"
4750 cat > conftest.
$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4753 /* Override any gcc2 internal prototype to avoid an error. */
4754 /* We use char because int might match the return type of a gcc2
4755 builtin and then its argument prototype would still apply. */
4762 if { (eval echo configure
:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4764 eval "ac_cv_lib_$ac_lib_var=yes"
4766 echo "configure: failed program was:" >&5
4767 cat conftest.
$ac_ext >&5
4769 eval "ac_cv_lib_$ac_lib_var=no"
4772 LIBS
="$ac_save_LIBS"
4775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4776 echo "$ac_t""yes" 1>&6
4777 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4779 echo "$ac_t""no" 1>&6
4784 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4785 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4786 echo "configure:4787: checking for shmat" >&5
4787 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 cat > conftest.
$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4793 /* System header to define __stub macros and hopefully few prototypes,
4794 which can conflict with char shmat(); below. */
4796 /* Override any gcc2 internal prototype to avoid an error. */
4797 /* We use char because int might match the return type of a gcc2
4798 builtin and then its argument prototype would still apply. */
4803 /* The GNU C library defines this for functions which it implements
4804 to always fail with ENOSYS. Some functions are actually named
4805 something starting with __ and the normal name is an alias. */
4806 #if defined (__stub_shmat) || defined (__stub___shmat)
4814 if { (eval echo configure
:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4816 eval "ac_cv_func_shmat=yes"
4818 echo "configure: failed program was:" >&5
4819 cat conftest.
$ac_ext >&5
4821 eval "ac_cv_func_shmat=no"
4826 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4827 echo "$ac_t""yes" 1>&6
4830 echo "$ac_t""no" 1>&6
4833 if test $ac_cv_func_shmat = no
; then
4834 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4835 echo "configure:4836: checking for shmat in -lipc" >&5
4836 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 ac_save_LIBS
="$LIBS"
4842 cat > conftest.
$ac_ext <<EOF
4843 #line 4844 "configure"
4844 #include "confdefs.h"
4845 /* Override any gcc2 internal prototype to avoid an error. */
4846 /* We use char because int might match the return type of a gcc2
4847 builtin and then its argument prototype would still apply. */
4854 if { (eval echo configure
:4855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4856 eval "ac_cv_lib_$ac_lib_var=yes"
4858 echo "configure: failed program was:" >&5
4859 cat conftest.
$ac_ext >&5
4861 eval "ac_cv_lib_$ac_lib_var=no"
4864 LIBS
="$ac_save_LIBS"
4867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4868 echo "$ac_t""yes" 1>&6
4869 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4871 echo "$ac_t""no" 1>&6
4877 # Check for libraries that X11R6 Xt/Xaw programs need.
4878 ac_save_LDFLAGS
="$LDFLAGS"
4879 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4880 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4881 # check for ICE first), but we must link in the order -lSM -lICE or
4882 # we get undefined symbols. So assume we have SM if we have ICE.
4883 # These have to be linked with before -lX11, unlike the other
4884 # libraries we check for below, so use a different variable.
4885 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4886 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4887 echo "configure:4888: checking for IceConnectionNumber in -lICE" >&5
4888 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4892 ac_save_LIBS
="$LIBS"
4893 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4894 cat > conftest.
$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4897 /* Override any gcc2 internal prototype to avoid an error. */
4898 /* We use char because int might match the return type of a gcc2
4899 builtin and then its argument prototype would still apply. */
4900 char IceConnectionNumber();
4903 IceConnectionNumber()
4906 if { (eval echo configure
:4907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4908 eval "ac_cv_lib_$ac_lib_var=yes"
4910 echo "configure: failed program was:" >&5
4911 cat conftest.
$ac_ext >&5
4913 eval "ac_cv_lib_$ac_lib_var=no"
4916 LIBS
="$ac_save_LIBS"
4919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4920 echo "$ac_t""yes" 1>&6
4921 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4923 echo "$ac_t""no" 1>&6
4926 LDFLAGS
="$ac_save_LDFLAGS"
4931 if test "$no_x" = "yes"; then
4932 { echo "configure: error: X11 libraries not found" 1>&2; exit 1; }
4935 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
4936 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
4949 if test "$wxUSE_GTK" = 1; then
4950 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
4951 if test "${with_gtk_prefix+set}" = set; then
4952 withval
="$with_gtk_prefix"
4953 gtk_config_prefix
="$withval"
4955 gtk_config_prefix
=""
4958 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
4959 if test "${with_gtk_exec_prefix+set}" = set; then
4960 withval
="$with_gtk_exec_prefix"
4961 gtk_config_exec_prefix
="$withval"
4963 gtk_config_exec_prefix
=""
4967 if test x
$gtk_config_exec_prefix != x
; then
4968 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
4969 if test x
${GTK_CONFIG+set} != xset
; then
4970 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
4973 if test x
$gtk_config_prefix != x
; then
4974 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
4975 if test x
${GTK_CONFIG+set} != xset
; then
4976 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
4980 # Extract the first word of "gtk-config", so it can be a program name with args.
4981 set dummy gtk
-config; ac_word
=$2
4982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4983 echo "configure:4984: checking for $ac_word" >&5
4984 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
4985 echo $ac_n "(cached) $ac_c" 1>&6
4987 case "$GTK_CONFIG" in
4989 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
4992 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a dos path.
4995 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4997 for ac_dir
in $ac_dummy; do
4998 test -z "$ac_dir" && ac_dir
=.
4999 if test -f $ac_dir/$ac_word; then
5000 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
5005 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
5009 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
5010 if test -n "$GTK_CONFIG"; then
5011 echo "$ac_t""$GTK_CONFIG" 1>&6
5013 echo "$ac_t""no" 1>&6
5016 min_gtk_version
=1.2.0
5017 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
5018 echo "configure:5019: checking for GTK - version >= $min_gtk_version" >&5
5020 if test "$GTK_CONFIG" != "no" ; then
5021 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
5022 GTK_LIBS
=`$GTK_CONFIG --libs`
5023 ac_save_CFLAGS
="$CFLAGS"
5024 ac_save_LIBS
="$LIBS"
5025 CFLAGS
="$CFLAGS $GTK_CFLAGS"
5026 LIBS
="$LIBS $GTK_LIBS"
5027 if test "$cross_compiling" = yes; then
5028 echo $ac_n "cross compiling; assumed OK... $ac_c"
5030 cat > conftest.
$ac_ext <<EOF
5031 #line 5032 "configure"
5032 #include "confdefs.h"
5034 #include <gtk/gtk.h>
5040 int major, minor, micro;
5042 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
5043 printf("%s, bad version string\n", "$min_gtk_version");
5047 if (gtk_minor_version == 1) return FALSE;
5049 return !((gtk_major_version > major) ||
5050 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
5051 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
5055 if { (eval echo configure
:5056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5059 echo "configure: failed program was:" >&5
5060 cat conftest.
$ac_ext >&5
5067 CFLAGS
="$ac_save_CFLAGS"
5068 LIBS
="$ac_save_LIBS"
5072 if test "x$no_gtk" = x
; then
5073 echo "$ac_t""yes" 1>&6
5076 echo "$ac_t""no" 1>&6
5084 if test "$WXGTK12" != 1; then
5085 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
5086 if test "${with_gtk_prefix+set}" = set; then
5087 withval
="$with_gtk_prefix"
5088 gtk_config_prefix
="$withval"
5090 gtk_config_prefix
=""
5093 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
5094 if test "${with_gtk_exec_prefix+set}" = set; then
5095 withval
="$with_gtk_exec_prefix"
5096 gtk_config_exec_prefix
="$withval"
5098 gtk_config_exec_prefix
=""
5102 if test x
$gtk_config_exec_prefix != x
; then
5103 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
5104 if test x
${GTK_CONFIG+set} != xset
; then
5105 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
5108 if test x
$gtk_config_prefix != x
; then
5109 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
5110 if test x
${GTK_CONFIG+set} != xset
; then
5111 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
5115 # Extract the first word of "gtk-config", so it can be a program name with args.
5116 set dummy gtk
-config; ac_word
=$2
5117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5118 echo "configure:5119: checking for $ac_word" >&5
5119 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5120 echo $ac_n "(cached) $ac_c" 1>&6
5122 case "$GTK_CONFIG" in
5124 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
5127 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a dos path.
5130 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5132 for ac_dir
in $ac_dummy; do
5133 test -z "$ac_dir" && ac_dir
=.
5134 if test -f $ac_dir/$ac_word; then
5135 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
5140 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
5144 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
5145 if test -n "$GTK_CONFIG"; then
5146 echo "$ac_t""$GTK_CONFIG" 1>&6
5148 echo "$ac_t""no" 1>&6
5151 min_gtk_version
=1.0.0
5152 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
5153 echo "configure:5154: checking for GTK - version >= $min_gtk_version" >&5
5155 if test "$GTK_CONFIG" != "no" ; then
5156 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
5157 GTK_LIBS
=`$GTK_CONFIG --libs`
5158 ac_save_CFLAGS
="$CFLAGS"
5159 ac_save_LIBS
="$LIBS"
5160 CFLAGS
="$CFLAGS $GTK_CFLAGS"
5161 LIBS
="$LIBS $GTK_LIBS"
5162 if test "$cross_compiling" = yes; then
5163 echo $ac_n "cross compiling; assumed OK... $ac_c"
5165 cat > conftest.
$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5169 #include <gtk/gtk.h>
5175 int major, minor, micro;
5177 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
5178 printf("%s, bad version string\n", "$min_gtk_version");
5182 if (gtk_minor_version == 1) return FALSE;
5184 return !((gtk_major_version > major) ||
5185 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
5186 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
5190 if { (eval echo configure
:5191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5194 echo "configure: failed program was:" >&5
5195 cat conftest.
$ac_ext >&5
5202 CFLAGS
="$ac_save_CFLAGS"
5203 LIBS
="$ac_save_LIBS"
5207 if test "x$no_gtk" = x
; then
5208 echo "$ac_t""yes" 1>&6
5211 echo "$ac_t""no" 1>&6
5214 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.X or 1.0.X?" 1>&2; exit 1; }
5221 TOOLKIT_INCLUDE
="$GTK_CFLAGS"
5222 GUI_TK_LIBRARY
="$GTK_LIBS"
5225 LTLIBOBJS
="$LTLIBOBJS image.lo utilsgtk.lo win_gtk.lo"
5228 if test "$wxUSE_MOTIF" = 1; then
5229 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
5230 echo "configure:5231: checking for Motif/Lesstif includes" >&5
5233 for ac_dir
in $SEARCH_INCLUDE;
5235 if test -f "$ac_dir/Xm/Xm.h"; then
5236 ac_find_includes
=$ac_dir
5241 if test "$ac_find_includes" != "" ; then
5242 echo "$ac_t""found $ac_find_includes" 1>&6
5244 echo "$ac_t""no" 1>&6
5245 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
5248 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
5249 echo "configure:5250: checking for Motif/Lesstif library" >&5
5252 for ac_dir
in $SEARCH_LIB;
5254 for ac_extension
in a so sl
; do
5255 if test -f "$ac_dir/libXm.$ac_extension"; then
5256 ac_find_libraries
=$ac_dir
5262 if test "$ac_find_libraries" != "" ; then
5264 ac_path_to_include
=$ac_find_includes
5265 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
5267 if test $result = 0; then
5268 ac_path_to_include
=""
5270 ac_path_to_include
="-I$ac_find_includes"
5274 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5276 if test $result = 0; then
5279 ac_path_to_link
="-L$ac_find_libraries"
5283 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
5284 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
5285 echo "$ac_t""found at $ac_find_libraries" 1>&6
5287 echo "$ac_t""no" 1>&6
5288 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
5291 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
5292 echo "configure:5293: checking for Xt library" >&5
5295 for ac_dir
in $SEARCH_LIB;
5297 for ac_extension
in a so sl
; do
5298 if test -f "$ac_dir/libXt.$ac_extension"; then
5299 ac_find_libraries
=$ac_dir
5305 if test "$ac_find_libraries" != "" ; then
5307 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5309 if test $result = 0; then
5312 ac_path_to_link
="-L$ac_find_libraries"
5315 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
5316 echo "$ac_t""found at $ac_find_libraries" 1>&6
5318 echo "$ac_t""no" 1>&6
5319 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
5323 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
5324 echo "configure:5325: checking for Xpm library" >&5
5327 for ac_dir
in $SEARCH_LIB;
5329 for ac_extension
in a so sl
; do
5330 if test -f "$ac_dir/libXpm.$ac_extension"; then
5331 ac_find_libraries
=$ac_dir
5337 if test "$ac_find_libraries" != "" ; then
5339 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5341 if test $result = 0; then
5344 ac_path_to_link
="-L$ac_find_libraries"
5347 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
5349 cat >> confdefs.h
<<\EOF
5350 #define wxHAVE_LIB_XPM 1
5353 echo "$ac_t""found at $ac_find_libraries" 1>&6
5355 echo "$ac_t""no" 1>&6
5356 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
5359 GUI_TK_LINK
="-lXm $(XPM_LINK)-lXmu -lXt -lX11 -lm"
5360 GUI_TK_LIBRARY
="$CHECK_LIB $GUI_TK_LINK"
5364 TOOLKIT_DIR
=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
5366 TOOLKIT_DEF
=-D__WX${TOOLKIT}__
5368 WX_LIBRARY
=${TOOLKIT_DIR}2
5371 for ac_hdr
in strings.h
5373 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5374 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5375 echo "configure:5376: checking for $ac_hdr" >&5
5376 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5379 cat > conftest.
$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5384 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5385 { (eval echo configure
:5386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5386 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5387 if test -z "$ac_err"; then
5389 eval "ac_cv_header_$ac_safe=yes"
5392 echo "configure: failed program was:" >&5
5393 cat conftest.
$ac_ext >&5
5395 eval "ac_cv_header_$ac_safe=no"
5399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5400 echo "$ac_t""yes" 1>&6
5401 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5402 cat >> confdefs.h
<<EOF
5403 #define $ac_tr_hdr 1
5407 echo "$ac_t""no" 1>&6
5411 for ac_hdr
in unistd.h
5413 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5415 echo "configure:5416: checking for $ac_hdr" >&5
5416 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5417 echo $ac_n "(cached) $ac_c" 1>&6
5419 cat > conftest.
$ac_ext <<EOF
5420 #line 5421 "configure"
5421 #include "confdefs.h"
5424 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5425 { (eval echo configure
:5426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5426 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5427 if test -z "$ac_err"; then
5429 eval "ac_cv_header_$ac_safe=yes"
5432 echo "configure: failed program was:" >&5
5433 cat conftest.
$ac_ext >&5
5435 eval "ac_cv_header_$ac_safe=no"
5439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5440 echo "$ac_t""yes" 1>&6
5441 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5442 cat >> confdefs.h
<<EOF
5443 #define $ac_tr_hdr 1
5447 echo "$ac_t""no" 1>&6
5451 for ac_hdr
in wchar.h
5453 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5455 echo "configure:5456: checking for $ac_hdr" >&5
5456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5457 echo $ac_n "(cached) $ac_c" 1>&6
5459 cat > conftest.
$ac_ext <<EOF
5460 #line 5461 "configure"
5461 #include "confdefs.h"
5464 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5465 { (eval echo configure
:5466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5466 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5467 if test -z "$ac_err"; then
5469 eval "ac_cv_header_$ac_safe=yes"
5472 echo "configure: failed program was:" >&5
5473 cat conftest.
$ac_ext >&5
5475 eval "ac_cv_header_$ac_safe=no"
5479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5480 echo "$ac_t""yes" 1>&6
5481 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5482 cat >> confdefs.h
<<EOF
5483 #define $ac_tr_hdr 1
5487 echo "$ac_t""no" 1>&6
5491 for ac_hdr
in wcstr.h
5493 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5494 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5495 echo "configure:5496: checking for $ac_hdr" >&5
5496 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5497 echo $ac_n "(cached) $ac_c" 1>&6
5499 cat > conftest.
$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5504 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5505 { (eval echo configure
:5506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5506 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5507 if test -z "$ac_err"; then
5509 eval "ac_cv_header_$ac_safe=yes"
5512 echo "configure: failed program was:" >&5
5513 cat conftest.
$ac_ext >&5
5515 eval "ac_cv_header_$ac_safe=no"
5519 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5520 echo "$ac_t""yes" 1>&6
5521 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5522 cat >> confdefs.h
<<EOF
5523 #define $ac_tr_hdr 1
5527 echo "$ac_t""no" 1>&6
5531 for ac_hdr
in fnmatch.h
5533 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5535 echo "configure:5536: checking for $ac_hdr" >&5
5536 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5537 echo $ac_n "(cached) $ac_c" 1>&6
5539 cat > conftest.
$ac_ext <<EOF
5540 #line 5541 "configure"
5541 #include "confdefs.h"
5544 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5545 { (eval echo configure
:5546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5546 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5547 if test -z "$ac_err"; then
5549 eval "ac_cv_header_$ac_safe=yes"
5552 echo "configure: failed program was:" >&5
5553 cat conftest.
$ac_ext >&5
5555 eval "ac_cv_header_$ac_safe=no"
5559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5560 echo "$ac_t""yes" 1>&6
5561 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5562 cat >> confdefs.h
<<EOF
5563 #define $ac_tr_hdr 1
5567 echo "$ac_t""no" 1>&6
5573 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5574 echo "configure:5575: checking for ANSI C header files" >&5
5575 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5576 echo $ac_n "(cached) $ac_c" 1>&6
5578 cat > conftest.
$ac_ext <<EOF
5579 #line 5580 "configure"
5580 #include "confdefs.h"
5586 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5587 { (eval echo configure
:5588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5588 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5589 if test -z "$ac_err"; then
5591 ac_cv_header_stdc
=yes
5594 echo "configure: failed program was:" >&5
5595 cat conftest.
$ac_ext >&5
5597 ac_cv_header_stdc
=no
5601 if test $ac_cv_header_stdc = yes; then
5602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5603 cat > conftest.
$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5609 egrep "memchr" >/dev
/null
2>&1; then
5613 ac_cv_header_stdc
=no
5619 if test $ac_cv_header_stdc = yes; then
5620 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5621 cat > conftest.
$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5627 egrep "free" >/dev
/null
2>&1; then
5631 ac_cv_header_stdc
=no
5637 if test $ac_cv_header_stdc = yes; then
5638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5639 if test "$cross_compiling" = yes; then
5642 cat > conftest.
$ac_ext <<EOF
5643 #line 5644 "configure"
5644 #include "confdefs.h"
5646 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5647 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5649 int main () { int i; for (i = 0; i < 256; i++)
5650 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5654 if { (eval echo configure
:5655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5658 echo "configure: failed program was:" >&5
5659 cat conftest.
$ac_ext >&5
5661 ac_cv_header_stdc
=no
5669 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5670 if test $ac_cv_header_stdc = yes; then
5671 cat >> confdefs.h
<<\EOF
5672 #define STDC_HEADERS 1
5677 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
5678 echo "configure:5679: checking for mode_t" >&5
5679 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5680 echo $ac_n "(cached) $ac_c" 1>&6
5682 cat > conftest.
$ac_ext <<EOF
5683 #line 5684 "configure"
5684 #include "confdefs.h"
5685 #include <sys/types.h>
5691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5692 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5694 ac_cv_type_mode_t
=yes
5697 ac_cv_type_mode_t
=no
5702 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5703 if test $ac_cv_type_mode_t = no
; then
5704 cat >> confdefs.h
<<\EOF
5710 echo $ac_n "checking for off_t""... $ac_c" 1>&6
5711 echo "configure:5712: checking for off_t" >&5
5712 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
5713 echo $ac_n "(cached) $ac_c" 1>&6
5715 cat > conftest.
$ac_ext <<EOF
5716 #line 5717 "configure"
5717 #include "confdefs.h"
5718 #include <sys/types.h>
5724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5725 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5727 ac_cv_type_off_t
=yes
5735 echo "$ac_t""$ac_cv_type_off_t" 1>&6
5736 if test $ac_cv_type_off_t = no
; then
5737 cat >> confdefs.h
<<\EOF
5743 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
5744 echo "configure:5745: checking for pid_t" >&5
5745 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
5746 echo $ac_n "(cached) $ac_c" 1>&6
5748 cat > conftest.
$ac_ext <<EOF
5749 #line 5750 "configure"
5750 #include "confdefs.h"
5751 #include <sys/types.h>
5757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5758 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5760 ac_cv_type_pid_t
=yes
5768 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
5769 if test $ac_cv_type_pid_t = no
; then
5770 cat >> confdefs.h
<<\EOF
5776 echo $ac_n "checking for size_t""... $ac_c" 1>&6
5777 echo "configure:5778: checking for size_t" >&5
5778 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5781 cat > conftest.
$ac_ext <<EOF
5782 #line 5783 "configure"
5783 #include "confdefs.h"
5784 #include <sys/types.h>
5790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5791 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5793 ac_cv_type_size_t
=yes
5796 ac_cv_type_size_t
=no
5801 echo "$ac_t""$ac_cv_type_size_t" 1>&6
5802 if test $ac_cv_type_size_t = no
; then
5803 cat >> confdefs.h
<<\EOF
5804 #define size_t unsigned
5809 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
5810 echo "configure:5811: checking for uid_t in sys/types.h" >&5
5811 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5812 echo $ac_n "(cached) $ac_c" 1>&6
5814 cat > conftest.
$ac_ext <<EOF
5815 #line 5816 "configure"
5816 #include "confdefs.h"
5817 #include <sys/types.h>
5819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5820 egrep "uid_t" >/dev
/null
2>&1; then
5822 ac_cv_type_uid_t
=yes
5831 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5832 if test $ac_cv_type_uid_t = no
; then
5833 cat >> confdefs.h
<<\EOF
5837 cat >> confdefs.h
<<\EOF
5846 echo $ac_n "checking for working const""... $ac_c" 1>&6
5847 echo "configure:5848: checking for working const" >&5
5848 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5851 cat > conftest.
$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5857 /* Ultrix mips cc rejects this. */
5858 typedef int charset[2]; const charset x;
5859 /* SunOS 4.1.1 cc rejects this. */
5860 char const *const *ccp;
5862 /* NEC SVR4.0.2 mips cc rejects this. */
5863 struct point {int x, y;};
5864 static struct point const zero = {0,0};
5865 /* AIX XL C 1.02.0.0 rejects this.
5866 It does not let you subtract one const X* pointer from another in an arm
5867 of an if-expression whose if-part is not a constant expression */
5868 const char *g = "string";
5869 ccp = &g + (g ? g-g : 0);
5870 /* HPUX 7.0 cc rejects these. */
5873 ccp = (char const *const *) p;
5874 { /* SCO 3.2v4 cc rejects this. */
5876 char const *s = 0 ? (char *) 0 : (char const *) 0;
5880 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5882 const int *foo = &x[0];
5885 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5886 typedef const int *iptr;
5890 { /* AIX XL C 1.02.0.0 rejects this saying
5891 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5892 struct s { int j; const int *ap[3]; };
5893 struct s *b; b->j = 5;
5895 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5901 if { (eval echo configure
:5902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5905 echo "configure: failed program was:" >&5
5906 cat conftest.
$ac_ext >&5
5913 echo "$ac_t""$ac_cv_c_const" 1>&6
5914 if test $ac_cv_c_const = no
; then
5915 cat >> confdefs.h
<<\EOF
5921 echo $ac_n "checking for inline""... $ac_c" 1>&6
5922 echo "configure:5923: checking for inline" >&5
5923 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5924 echo $ac_n "(cached) $ac_c" 1>&6
5927 for ac_kw
in inline __inline__ __inline
; do
5928 cat > conftest.
$ac_ext <<EOF
5929 #line 5930 "configure"
5930 #include "confdefs.h"
5936 if { (eval echo configure
:5937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5938 ac_cv_c_inline
=$ac_kw; break
5940 echo "configure: failed program was:" >&5
5941 cat conftest.
$ac_ext >&5
5948 echo "$ac_t""$ac_cv_c_inline" 1>&6
5949 case "$ac_cv_c_inline" in
5951 no
) cat >> confdefs.h
<<\EOF
5955 *) cat >> confdefs.h
<<EOF
5956 #define inline $ac_cv_c_inline
5962 echo $ac_n "checking size of int *""... $ac_c" 1>&6
5963 echo "configure:5964: checking size of int *" >&5
5964 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
5965 echo $ac_n "(cached) $ac_c" 1>&6
5967 if test "$cross_compiling" = yes; then
5968 ac_cv_sizeof_int_p
=4
5970 cat > conftest.
$ac_ext <<EOF
5971 #line 5972 "configure"
5972 #include "confdefs.h"
5976 FILE *f=fopen("conftestval", "w");
5978 fprintf(f, "%d\n", sizeof(int *));
5982 if { (eval echo configure
:5983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5984 ac_cv_sizeof_int_p
=`cat conftestval`
5986 echo "configure: failed program was:" >&5
5987 cat conftest.
$ac_ext >&5
5989 ac_cv_sizeof_int_p
=0
5995 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
5996 cat >> confdefs.h
<<EOF
5997 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
6001 echo $ac_n "checking size of int""... $ac_c" 1>&6
6002 echo "configure:6003: checking size of int" >&5
6003 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
6004 echo $ac_n "(cached) $ac_c" 1>&6
6006 if test "$cross_compiling" = yes; then
6009 cat > conftest.
$ac_ext <<EOF
6010 #line 6011 "configure"
6011 #include "confdefs.h"
6015 FILE *f=fopen("conftestval", "w");
6017 fprintf(f, "%d\n", sizeof(int));
6021 if { (eval echo configure
:6022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6023 ac_cv_sizeof_int
=`cat conftestval`
6025 echo "configure: failed program was:" >&5
6026 cat conftest.
$ac_ext >&5
6034 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
6035 cat >> confdefs.h
<<EOF
6036 #define SIZEOF_INT $ac_cv_sizeof_int
6040 echo $ac_n "checking size of long""... $ac_c" 1>&6
6041 echo "configure:6042: checking size of long" >&5
6042 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
6043 echo $ac_n "(cached) $ac_c" 1>&6
6045 if test "$cross_compiling" = yes; then
6048 cat > conftest.
$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6054 FILE *f=fopen("conftestval", "w");
6056 fprintf(f, "%d\n", sizeof(long));
6060 if { (eval echo configure
:6061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6062 ac_cv_sizeof_long
=`cat conftestval`
6064 echo "configure: failed program was:" >&5
6065 cat conftest.
$ac_ext >&5
6073 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
6074 cat >> confdefs.h
<<EOF
6075 #define SIZEOF_LONG $ac_cv_sizeof_long
6079 echo $ac_n "checking size of long long""... $ac_c" 1>&6
6080 echo "configure:6081: checking size of long long" >&5
6081 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
6082 echo $ac_n "(cached) $ac_c" 1>&6
6084 if test "$cross_compiling" = yes; then
6085 ac_cv_sizeof_long_long
=0
6087 cat > conftest.
$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6093 FILE *f=fopen("conftestval", "w");
6095 fprintf(f, "%d\n", sizeof(long long));
6099 if { (eval echo configure
:6100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6101 ac_cv_sizeof_long_long
=`cat conftestval`
6103 echo "configure: failed program was:" >&5
6104 cat conftest.
$ac_ext >&5
6106 ac_cv_sizeof_long_long
=0
6112 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
6113 cat >> confdefs.h
<<EOF
6114 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6120 if test "$cross_compiling" = "yes"; then
6121 cat >> confdefs.h
<<\EOF
6122 #define wxUSE_IOSTREAMH 1
6128 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6129 ac_cpp
='$CXXCPP $CPPFLAGS'
6130 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6131 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6132 cross_compiling
=$ac_cv_prog_cxx_cross
6135 for ac_hdr
in iostream
6137 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6138 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6139 echo "configure:6140: checking for $ac_hdr" >&5
6140 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6141 echo $ac_n "(cached) $ac_c" 1>&6
6143 cat > conftest.
$ac_ext <<EOF
6144 #line 6145 "configure"
6145 #include "confdefs.h"
6148 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6149 { (eval echo configure
:6150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6150 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6151 if test -z "$ac_err"; then
6153 eval "ac_cv_header_$ac_safe=yes"
6156 echo "configure: failed program was:" >&5
6157 cat conftest.
$ac_ext >&5
6159 eval "ac_cv_header_$ac_safe=no"
6163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6164 echo "$ac_t""yes" 1>&6
6165 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6166 cat >> confdefs.h
<<EOF
6167 #define $ac_tr_hdr 1
6171 echo "$ac_t""no" 1>&6
6176 if test "x$HAVE_IOSTREAM" = x
; then
6177 cat >> confdefs.h
<<\EOF
6178 #define wxUSE_IOSTREAMH 1
6186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6187 ac_cpp
='$CPP $CPPFLAGS'
6188 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6189 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6190 cross_compiling
=$ac_cv_prog_cc_cross
6196 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
6197 echo "configure:6198: checking if C++ compiler supports bool" >&5
6198 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6204 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6205 ac_cpp
='$CXXCPP $CPPFLAGS'
6206 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6207 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6208 cross_compiling
=$ac_cv_prog_cxx_cross
6211 if test "$cross_compiling" = yes; then
6215 cat > conftest.
$ac_ext <<EOF
6216 #line 6217 "configure"
6217 #include "confdefs.h"
6219 extern "C" void exit(int);
6230 if { (eval echo configure
:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6233 cat >> confdefs.h
<<\EOF
6240 echo "configure: failed program was:" >&5
6241 cat conftest.
$ac_ext >&5
6250 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6251 ac_cpp
='$CPP $CPPFLAGS'
6252 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6253 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6254 cross_compiling
=$ac_cv_prog_cc_cross
6259 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
6261 if test "$wx_cv_cpp_bool" = "yes"; then
6262 cat >> confdefs.h
<<\EOF
6270 echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6
6271 echo "configure:6272: checking if size_t and int are different types" >&5
6272 if eval "test \"`echo '$''{'wx_cv_cpp_sizet_not_int'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6278 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6279 ac_cpp
='$CXXCPP $CPPFLAGS'
6280 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6281 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6282 cross_compiling
=$ac_cv_prog_cxx_cross
6285 if test "$cross_compiling" = yes; then
6286 wx_cv_cpp_sizet_not_int
=no
6289 cat > conftest.
$ac_ext <<EOF
6290 #line 6291 "configure"
6291 #include "confdefs.h"
6293 extern "C" void exit(int);
6301 S(char *s) { m_s = s; }
6303 char operator[](size_t n) const { return m_s[n]; }
6304 char operator[](int n) const { return m_s[n]; }
6316 return s[n1] == s[n2];
6320 if { (eval echo configure
:6321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6322 cat >> confdefs.h
<<\EOF
6323 #define wxUSE_SIZE_T_STRING_OPERATOR 1
6325 wx_cv_cpp_sizet_not_int
=yes
6327 echo "configure: failed program was:" >&5
6328 cat conftest.
$ac_ext >&5
6330 wx_cv_cpp_sizet_not_int
=no
6337 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6338 ac_cpp
='$CPP $CPPFLAGS'
6339 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6340 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6341 cross_compiling
=$ac_cv_prog_cc_cross
6346 echo "$ac_t""$wx_cv_cpp_sizet_not_int" 1>&6
6350 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
6351 echo "configure:6352: checking for wcslen in -lc" >&5
6352 ac_lib_var
=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
6353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6356 ac_save_LIBS
="$LIBS"
6358 cat > conftest.
$ac_ext <<EOF
6359 #line 6360 "configure"
6360 #include "confdefs.h"
6361 /* Override any gcc2 internal prototype to avoid an error. */
6362 /* We use char because int might match the return type of a gcc2
6363 builtin and then its argument prototype would still apply. */
6370 if { (eval echo configure
:6371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6372 eval "ac_cv_lib_$ac_lib_var=yes"
6374 echo "configure: failed program was:" >&5
6375 cat conftest.
$ac_ext >&5
6377 eval "ac_cv_lib_$ac_lib_var=no"
6380 LIBS
="$ac_save_LIBS"
6383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6384 echo "$ac_t""yes" 1>&6
6386 cat >> confdefs.h
<<\EOF
6387 #define HAVE_WCSLEN 1
6393 echo "$ac_t""no" 1>&6
6395 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
6396 echo "configure:6397: checking for wcslen in -lw" >&5
6397 ac_lib_var
=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
6398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6401 ac_save_LIBS
="$LIBS"
6403 cat > conftest.
$ac_ext <<EOF
6404 #line 6405 "configure"
6405 #include "confdefs.h"
6406 /* Override any gcc2 internal prototype to avoid an error. */
6407 /* We use char because int might match the return type of a gcc2
6408 builtin and then its argument prototype would still apply. */
6415 if { (eval echo configure
:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6417 eval "ac_cv_lib_$ac_lib_var=yes"
6419 echo "configure: failed program was:" >&5
6420 cat conftest.
$ac_ext >&5
6422 eval "ac_cv_lib_$ac_lib_var=no"
6425 LIBS
="$ac_save_LIBS"
6428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6429 echo "$ac_t""yes" 1>&6
6431 cat >> confdefs.h
<<\EOF
6432 #define HAVE_WCSLEN 1
6438 echo "$ac_t""no" 1>&6
6445 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
6446 echo "configure:6447: checking for vprintf" >&5
6447 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
6448 echo $ac_n "(cached) $ac_c" 1>&6
6450 cat > conftest.
$ac_ext <<EOF
6451 #line 6452 "configure"
6452 #include "confdefs.h"
6453 /* System header to define __stub macros and hopefully few prototypes,
6454 which can conflict with char vprintf(); below. */
6456 /* Override any gcc2 internal prototype to avoid an error. */
6457 /* We use char because int might match the return type of a gcc2
6458 builtin and then its argument prototype would still apply. */
6463 /* The GNU C library defines this for functions which it implements
6464 to always fail with ENOSYS. Some functions are actually named
6465 something starting with __ and the normal name is an alias. */
6466 #if defined (__stub_vprintf) || defined (__stub___vprintf)
6474 if { (eval echo configure
:6475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6476 eval "ac_cv_func_vprintf=yes"
6478 echo "configure: failed program was:" >&5
6479 cat conftest.
$ac_ext >&5
6481 eval "ac_cv_func_vprintf=no"
6486 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
6487 echo "$ac_t""yes" 1>&6
6488 cat >> confdefs.h
<<\EOF
6489 #define HAVE_VPRINTF 1
6493 echo "$ac_t""no" 1>&6
6496 if test "$ac_cv_func_vprintf" != yes; then
6497 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
6498 echo "configure:6499: checking for _doprnt" >&5
6499 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
6500 echo $ac_n "(cached) $ac_c" 1>&6
6502 cat > conftest.
$ac_ext <<EOF
6503 #line 6504 "configure"
6504 #include "confdefs.h"
6505 /* System header to define __stub macros and hopefully few prototypes,
6506 which can conflict with char _doprnt(); below. */
6508 /* Override any gcc2 internal prototype to avoid an error. */
6509 /* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6515 /* The GNU C library defines this for functions which it implements
6516 to always fail with ENOSYS. Some functions are actually named
6517 something starting with __ and the normal name is an alias. */
6518 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6526 if { (eval echo configure
:6527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6528 eval "ac_cv_func__doprnt=yes"
6530 echo "configure: failed program was:" >&5
6531 cat conftest.
$ac_ext >&5
6533 eval "ac_cv_func__doprnt=no"
6538 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
6539 echo "$ac_t""yes" 1>&6
6540 cat >> confdefs.h
<<\EOF
6541 #define HAVE_DOPRNT 1
6545 echo "$ac_t""no" 1>&6
6551 for ac_func
in vsnprintf
6553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6554 echo "configure:6555: checking for $ac_func" >&5
6555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6556 echo $ac_n "(cached) $ac_c" 1>&6
6558 cat > conftest.
$ac_ext <<EOF
6559 #line 6560 "configure"
6560 #include "confdefs.h"
6561 /* System header to define __stub macros and hopefully few prototypes,
6562 which can conflict with char $ac_func(); below. */
6564 /* Override any gcc2 internal prototype to avoid an error. */
6565 /* We use char because int might match the return type of a gcc2
6566 builtin and then its argument prototype would still apply. */
6571 /* The GNU C library defines this for functions which it implements
6572 to always fail with ENOSYS. Some functions are actually named
6573 something starting with __ and the normal name is an alias. */
6574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6582 if { (eval echo configure
:6583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6584 eval "ac_cv_func_$ac_func=yes"
6586 echo "configure: failed program was:" >&5
6587 cat conftest.
$ac_ext >&5
6589 eval "ac_cv_func_$ac_func=no"
6594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6595 echo "$ac_t""yes" 1>&6
6596 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6597 cat >> confdefs.h
<<EOF
6598 #define $ac_tr_func 1
6600 cat >> confdefs.h
<<\EOF
6601 #define HAVE_VSNPRINTF 1
6605 echo "$ac_t""no" 1>&6
6606 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
6612 for ac_func
in vfork
6614 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6615 echo "configure:6616: checking for $ac_func" >&5
6616 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6617 echo $ac_n "(cached) $ac_c" 1>&6
6619 cat > conftest.
$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622 /* System header to define __stub macros and hopefully few prototypes,
6623 which can conflict with char $ac_func(); below. */
6625 /* Override any gcc2 internal prototype to avoid an error. */
6626 /* We use char because int might match the return type of a gcc2
6627 builtin and then its argument prototype would still apply. */
6632 /* The GNU C library defines this for functions which it implements
6633 to always fail with ENOSYS. Some functions are actually named
6634 something starting with __ and the normal name is an alias. */
6635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6643 if { (eval echo configure
:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6645 eval "ac_cv_func_$ac_func=yes"
6647 echo "configure: failed program was:" >&5
6648 cat conftest.
$ac_ext >&5
6650 eval "ac_cv_func_$ac_func=no"
6655 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6656 echo "$ac_t""yes" 1>&6
6657 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6658 cat >> confdefs.h
<<EOF
6659 #define $ac_tr_func 1
6663 echo "$ac_t""no" 1>&6
6669 for ac_func
in nanosleep
6671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6672 echo "configure:6673: checking for $ac_func" >&5
6673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6674 echo $ac_n "(cached) $ac_c" 1>&6
6676 cat > conftest.
$ac_ext <<EOF
6677 #line 6678 "configure"
6678 #include "confdefs.h"
6679 /* System header to define __stub macros and hopefully few prototypes,
6680 which can conflict with char $ac_func(); below. */
6682 /* Override any gcc2 internal prototype to avoid an error. */
6683 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
6689 /* The GNU C library defines this for functions which it implements
6690 to always fail with ENOSYS. Some functions are actually named
6691 something starting with __ and the normal name is an alias. */
6692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6700 if { (eval echo configure
:6701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6702 eval "ac_cv_func_$ac_func=yes"
6704 echo "configure: failed program was:" >&5
6705 cat conftest.
$ac_ext >&5
6707 eval "ac_cv_func_$ac_func=no"
6712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6713 echo "$ac_t""yes" 1>&6
6714 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6715 cat >> confdefs.h
<<EOF
6716 #define $ac_tr_func 1
6718 cat >> confdefs.h
<<\EOF
6719 #define HAVE_NANOSLEEP 1
6723 echo "$ac_t""no" 1>&6
6724 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
6725 echo "configure:6726: checking for nanosleep in -lposix4" >&5
6726 ac_lib_var
=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
6727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6730 ac_save_LIBS
="$LIBS"
6731 LIBS
="-lposix4 $LIBS"
6732 cat > conftest.
$ac_ext <<EOF
6733 #line 6734 "configure"
6734 #include "confdefs.h"
6735 /* Override any gcc2 internal prototype to avoid an error. */
6736 /* We use char because int might match the return type of a gcc2
6737 builtin and then its argument prototype would still apply. */
6744 if { (eval echo configure
:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6746 eval "ac_cv_lib_$ac_lib_var=yes"
6748 echo "configure: failed program was:" >&5
6749 cat conftest.
$ac_ext >&5
6751 eval "ac_cv_lib_$ac_lib_var=no"
6754 LIBS
="$ac_save_LIBS"
6757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6758 echo "$ac_t""yes" 1>&6
6760 cat >> confdefs.h
<<\EOF
6761 #define HAVE_NANOSLEEP 1
6764 POSIX4_LINK
="-lposix4"
6767 echo "$ac_t""no" 1>&6
6769 for ac_func
in usleep
6771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6772 echo "configure:6773: checking for $ac_func" >&5
6773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6774 echo $ac_n "(cached) $ac_c" 1>&6
6776 cat > conftest.
$ac_ext <<EOF
6777 #line 6778 "configure"
6778 #include "confdefs.h"
6779 /* System header to define __stub macros and hopefully few prototypes,
6780 which can conflict with char $ac_func(); below. */
6782 /* Override any gcc2 internal prototype to avoid an error. */
6783 /* We use char because int might match the return type of a gcc2
6784 builtin and then its argument prototype would still apply. */
6789 /* The GNU C library defines this for functions which it implements
6790 to always fail with ENOSYS. Some functions are actually named
6791 something starting with __ and the normal name is an alias. */
6792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6800 if { (eval echo configure
:6801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6802 eval "ac_cv_func_$ac_func=yes"
6804 echo "configure: failed program was:" >&5
6805 cat conftest.
$ac_ext >&5
6807 eval "ac_cv_func_$ac_func=no"
6812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6813 echo "$ac_t""yes" 1>&6
6814 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6815 cat >> confdefs.h
<<EOF
6816 #define $ac_tr_func 1
6818 cat >> confdefs.h
<<\EOF
6819 #define HAVE_USLEEP 1
6823 echo "$ac_t""no" 1>&6
6824 echo "configure: warning: wxSleep() function will not work" 1>&2
6836 for ac_func
in uname gethostname
6838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6839 echo "configure:6840: checking for $ac_func" >&5
6840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6841 echo $ac_n "(cached) $ac_c" 1>&6
6843 cat > conftest.
$ac_ext <<EOF
6844 #line 6845 "configure"
6845 #include "confdefs.h"
6846 /* System header to define __stub macros and hopefully few prototypes,
6847 which can conflict with char $ac_func(); below. */
6849 /* Override any gcc2 internal prototype to avoid an error. */
6850 /* We use char because int might match the return type of a gcc2
6851 builtin and then its argument prototype would still apply. */
6856 /* The GNU C library defines this for functions which it implements
6857 to always fail with ENOSYS. Some functions are actually named
6858 something starting with __ and the normal name is an alias. */
6859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6867 if { (eval echo configure
:6868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6869 eval "ac_cv_func_$ac_func=yes"
6871 echo "configure: failed program was:" >&5
6872 cat conftest.
$ac_ext >&5
6874 eval "ac_cv_func_$ac_func=no"
6879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6880 echo "$ac_t""yes" 1>&6
6881 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6882 cat >> confdefs.h
<<EOF
6883 #define $ac_tr_func 1
6887 echo "$ac_t""no" 1>&6
6893 cat > confcache
<<\EOF
6894 # This file is a shell script that caches the results of configure
6895 # tests run on this system so they can be shared between configure
6896 # scripts and configure runs. It is not useful on other systems.
6897 # If it contains results you don't want to keep, you may remove or edit it.
6899 # By default, configure uses ./config.cache as the cache file,
6900 # creating it if it does not exist already. You can give configure
6901 # the --cache-file=FILE option to use a different cache file; that is
6902 # what configure does when it calls configure scripts in
6903 # subdirectories, so they share the cache.
6904 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6905 # config.status only pays attention to the cache file if you give it the
6906 # --recheck option to rerun configure.
6909 # The following way of writing the cache mishandles newlines in values,
6910 # but we know of no workaround that is simple, portable, and efficient.
6911 # So, don't put newlines in cache variables' values.
6912 # Ultrix sh set writes to stderr and can't be redirected directly,
6913 # and sets the high bit in the cache file unless we assign to the vars.
6915 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6917 # `set' does not quote correctly, so add quotes (double-quote substitution
6918 # turns \\\\ into \\, and sed turns \\ into \).
6920 -e "s/'/'\\\\''/g" \
6921 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6924 # `set' quotes correctly as required by POSIX, so do not add quotes.
6925 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6928 if cmp -s $cache_file confcache
; then
6931 if test -w $cache_file; then
6932 echo "updating cache $cache_file"
6933 cat confcache
> $cache_file
6935 echo "not updating unwritable cache $cache_file"
6946 if test "$wxUSE_THREADS" = "yes"; then
6948 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
6949 echo "configure:6950: checking for pthread_create in -lpthread" >&5
6950 ac_lib_var
=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
6951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6952 echo $ac_n "(cached) $ac_c" 1>&6
6954 ac_save_LIBS
="$LIBS"
6955 LIBS
="-lpthread $LIBS"
6956 cat > conftest.
$ac_ext <<EOF
6957 #line 6958 "configure"
6958 #include "confdefs.h"
6959 /* Override any gcc2 internal prototype to avoid an error. */
6960 /* We use char because int might match the return type of a gcc2
6961 builtin and then its argument prototype would still apply. */
6962 char pthread_create();
6968 if { (eval echo configure
:6969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6970 eval "ac_cv_lib_$ac_lib_var=yes"
6972 echo "configure: failed program was:" >&5
6973 cat conftest.
$ac_ext >&5
6975 eval "ac_cv_lib_$ac_lib_var=no"
6978 LIBS
="$ac_save_LIBS"
6981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6982 echo "$ac_t""yes" 1>&6
6984 THREADS_OBJ
="threadpsx.lo"
6985 THREADS_LINK
="pthread"
6988 echo "$ac_t""no" 1>&6
6990 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
6991 echo "configure:6992: checking for pthread_create in -lc_r" >&5
6992 ac_lib_var
=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
6993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6994 echo $ac_n "(cached) $ac_c" 1>&6
6996 ac_save_LIBS
="$LIBS"
6998 cat > conftest.
$ac_ext <<EOF
6999 #line 7000 "configure"
7000 #include "confdefs.h"
7001 /* Override any gcc2 internal prototype to avoid an error. */
7002 /* We use char because int might match the return type of a gcc2
7003 builtin and then its argument prototype would still apply. */
7004 char pthread_create();
7010 if { (eval echo configure
:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7012 eval "ac_cv_lib_$ac_lib_var=yes"
7014 echo "configure: failed program was:" >&5
7015 cat conftest.
$ac_ext >&5
7017 eval "ac_cv_lib_$ac_lib_var=no"
7020 LIBS
="$ac_save_LIBS"
7023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7024 echo "$ac_t""yes" 1>&6
7026 THREADS_OBJ
="threadpsx.lo"
7030 echo "$ac_t""no" 1>&6
7032 ac_safe
=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
7033 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7034 echo "configure:7035: checking for sys/prctl.h" >&5
7035 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7036 echo $ac_n "(cached) $ac_c" 1>&6
7038 cat > conftest.
$ac_ext <<EOF
7039 #line 7040 "configure"
7040 #include "confdefs.h"
7041 #include <sys/prctl.h>
7043 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7044 { (eval echo configure
:7045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7045 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7046 if test -z "$ac_err"; then
7048 eval "ac_cv_header_$ac_safe=yes"
7051 echo "configure: failed program was:" >&5
7052 cat conftest.
$ac_ext >&5
7054 eval "ac_cv_header_$ac_safe=no"
7058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7059 echo "$ac_t""yes" 1>&6
7061 THREADS_OBJ
="threadsgi.lo"
7064 echo "$ac_t""no" 1>&6
7073 if test "$THREADS_LINK" != ""; then
7074 cat >> confdefs.h
<<\EOF
7075 #define wxUSE_THREADS 1
7079 echo "configure: warning: No thread support on this system" 1>&2
7083 if test -z "$THREADS_OBJ"; then
7087 if test "$wxUSE_THREADS" = "yes"; then
7088 CFLAGS
="${CFLAGS} -D_REENTRANT"
7089 CXXFLAGS
="${CXXFLAGS} -D_REENTRANT"
7091 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS thread"
7092 EXTRA_VPATH
="$EXTRA_VPATH:\$(srcdir)/unix"
7093 LTLIBOBJS
="$LTLIBOBJS $THREADS_OBJ"
7096 for ac_hdr
in sched.h
7098 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7100 echo "configure:7101: checking for $ac_hdr" >&5
7101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7102 echo $ac_n "(cached) $ac_c" 1>&6
7104 cat > conftest.
$ac_ext <<EOF
7105 #line 7106 "configure"
7106 #include "confdefs.h"
7109 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7110 { (eval echo configure
:7111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7111 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7112 if test -z "$ac_err"; then
7114 eval "ac_cv_header_$ac_safe=yes"
7117 echo "configure: failed program was:" >&5
7118 cat conftest.
$ac_ext >&5
7120 eval "ac_cv_header_$ac_safe=no"
7124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7125 echo "$ac_t""yes" 1>&6
7126 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7127 cat >> confdefs.h
<<EOF
7128 #define $ac_tr_hdr 1
7132 echo "$ac_t""no" 1>&6
7137 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
7138 echo "configure:7139: checking for sched_yield in -l$THREADS_LINK" >&5
7139 ac_lib_var
=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
7140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7143 ac_save_LIBS
="$LIBS"
7144 LIBS
="-l$THREADS_LINK $LIBS"
7145 cat > conftest.
$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7148 /* Override any gcc2 internal prototype to avoid an error. */
7149 /* We use char because int might match the return type of a gcc2
7150 builtin and then its argument prototype would still apply. */
7157 if { (eval echo configure
:7158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7159 eval "ac_cv_lib_$ac_lib_var=yes"
7161 echo "configure: failed program was:" >&5
7162 cat conftest.
$ac_ext >&5
7164 eval "ac_cv_lib_$ac_lib_var=no"
7167 LIBS
="$ac_save_LIBS"
7170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7171 echo "$ac_t""yes" 1>&6
7172 cat >> confdefs.h
<<\EOF
7173 #define HAVE_SCHED_YIELD 1
7177 echo "$ac_t""no" 1>&6
7178 echo $ac_n "checking for sched_yield in -l"posix4
"""... $ac_c" 1>&6
7179 echo "configure:7180: checking for sched_yield in -l"posix4
"" >&5
7180 ac_lib_var
=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
7181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7182 echo $ac_n "(cached) $ac_c" 1>&6
7184 ac_save_LIBS
="$LIBS"
7185 LIBS
="-l"posix4
" $LIBS"
7186 cat > conftest.
$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7189 /* Override any gcc2 internal prototype to avoid an error. */
7190 /* We use char because int might match the return type of a gcc2
7191 builtin and then its argument prototype would still apply. */
7198 if { (eval echo configure
:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7200 eval "ac_cv_lib_$ac_lib_var=yes"
7202 echo "configure: failed program was:" >&5
7203 cat conftest.
$ac_ext >&5
7205 eval "ac_cv_lib_$ac_lib_var=no"
7208 LIBS
="$ac_save_LIBS"
7211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7212 echo "$ac_t""yes" 1>&6
7213 cat >> confdefs.h
<<\EOF
7214 #define HAVE_SCHED_YIELD 1
7216 POSIX4_LINK
="-lposix4"
7218 echo "$ac_t""no" 1>&6
7219 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
7227 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
7228 echo "configure:7229: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
7229 ac_lib_var
=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
7230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7231 echo $ac_n "(cached) $ac_c" 1>&6
7233 ac_save_LIBS
="$LIBS"
7234 LIBS
="-l$THREADS_LINK $LIBS"
7235 cat > conftest.
$ac_ext <<EOF
7236 #line 7237 "configure"
7237 #include "confdefs.h"
7238 /* Override any gcc2 internal prototype to avoid an error. */
7239 /* We use char because int might match the return type of a gcc2
7240 builtin and then its argument prototype would still apply. */
7241 char pthread_attr_getschedpolicy();
7244 pthread_attr_getschedpolicy()
7247 if { (eval echo configure
:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7249 eval "ac_cv_lib_$ac_lib_var=yes"
7251 echo "configure: failed program was:" >&5
7252 cat conftest.
$ac_ext >&5
7254 eval "ac_cv_lib_$ac_lib_var=no"
7257 LIBS
="$ac_save_LIBS"
7260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7261 echo "$ac_t""yes" 1>&6
7262 cat >> confdefs.h
<<\EOF
7263 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
7267 echo "$ac_t""no" 1>&6
7268 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4
"""... $ac_c" 1>&6
7269 echo "configure:7270: checking for pthread_attr_getschedpolicy in -l"posix4
"" >&5
7270 ac_lib_var
=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
7271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7272 echo $ac_n "(cached) $ac_c" 1>&6
7274 ac_save_LIBS
="$LIBS"
7275 LIBS
="-l"posix4
" $LIBS"
7276 cat > conftest.
$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7279 /* Override any gcc2 internal prototype to avoid an error. */
7280 /* We use char because int might match the return type of a gcc2
7281 builtin and then its argument prototype would still apply. */
7282 char pthread_attr_getschedpolicy();
7285 pthread_attr_getschedpolicy()
7288 if { (eval echo configure
:7289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7290 eval "ac_cv_lib_$ac_lib_var=yes"
7292 echo "configure: failed program was:" >&5
7293 cat conftest.
$ac_ext >&5
7295 eval "ac_cv_lib_$ac_lib_var=no"
7298 LIBS
="$ac_save_LIBS"
7301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7302 echo "$ac_t""yes" 1>&6
7303 cat >> confdefs.h
<<\EOF
7304 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
7306 POSIX4_LINK
="-lposix4"
7308 echo "$ac_t""no" 1>&6
7309 echo "configure: warning: Setting thread priority will not work" 1>&2
7317 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
7318 echo "configure:7319: checking for pthread_cancel in -l$THREADS_LINK" >&5
7319 ac_lib_var
=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
7320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7321 echo $ac_n "(cached) $ac_c" 1>&6
7323 ac_save_LIBS
="$LIBS"
7324 LIBS
="-l$THREADS_LINK $LIBS"
7325 cat > conftest.
$ac_ext <<EOF
7326 #line 7327 "configure"
7327 #include "confdefs.h"
7328 /* Override any gcc2 internal prototype to avoid an error. */
7329 /* We use char because int might match the return type of a gcc2
7330 builtin and then its argument prototype would still apply. */
7331 char pthread_cancel();
7337 if { (eval echo configure
:7338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7339 eval "ac_cv_lib_$ac_lib_var=yes"
7341 echo "configure: failed program was:" >&5
7342 cat conftest.
$ac_ext >&5
7344 eval "ac_cv_lib_$ac_lib_var=no"
7347 LIBS
="$ac_save_LIBS"
7350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7351 echo "$ac_t""yes" 1>&6
7352 cat >> confdefs.h
<<\EOF
7353 #define HAVE_PTHREAD_CANCEL 1
7357 echo "$ac_t""no" 1>&6
7358 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
7362 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
7363 echo "configure:7364: checking for pthread_cleanup_push/pop" >&5
7364 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
7365 echo $ac_n "(cached) $ac_c" 1>&6
7368 cat > conftest.
$ac_ext <<EOF
7369 #line 7370 "configure"
7370 #include "confdefs.h"
7371 #include <pthread.h>
7374 pthread_cleanup_push(NULL, NULL);
7375 pthread_cleanup_pop(0);
7379 if { (eval echo configure
:7380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7382 wx_cv_func_pthread_cleanup_push
=yes
7383 cat >> confdefs.h
<<\EOF
7384 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
7389 echo "configure: failed program was:" >&5
7390 cat conftest.
$ac_ext >&5
7393 wx_cv_func_pthread_cleanup_push
=no
7400 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
7402 THREADS_LINK
="-l$THREADS_LINK"
7405 if test "$WXGTK12" = 1 ; then
7406 cat >> confdefs.h
<<EOF
7407 #define __WXGTK12__ $WXGTK12
7413 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
7414 wxUSE_DEBUG_INFO
=yes
7418 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
7423 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
7424 cat >> confdefs.h
<<\EOF
7428 WXDEBUG_DEFINE
="-D__WXDEBUG__"
7430 WXDEBUG_DEFINE
="-DGTK_NO_CHECK_CASTS"
7433 if test "$wxUSE_MEM_TRACING" = "yes" ; then
7434 cat >> confdefs.h
<<\EOF
7435 #define wxUSE_MEMORY_TRACING 1
7438 cat >> confdefs.h
<<\EOF
7439 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
7442 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS memcheck"
7445 if test "$wxUSE_DMALLOC" = "yes" ; then
7446 DMALLOC_LINK
="-ldmalloc"
7450 if test "$wxUSE_PROFILE" = "yes" ; then
7454 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
7455 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
7456 if test "$wxUSE_OPTIMISE" = "no" ; then
7459 if test "$GCC" = yes ; then
7463 OPTIMISE
="${OPTIMISE} "
7472 if test "$wxUSE_ZLIB" = "yes" ; then
7473 cat >> confdefs.h
<<\EOF
7474 #define wxUSE_ZLIB 1
7477 EXTRA_VPATH
="$EXTRA_VPATH:\$(srcdir)/zlib"
7478 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"
7479 if eval "test x$wxUSE_STREAMS = x1"; then
7480 LTLIBOBJS
="$LTLIBOBJS zstream.lo"
7484 if test "$wxUSE_LIBPNG" = "yes" ; then
7485 cat >> confdefs.h
<<\EOF
7486 #define wxUSE_LIBPNG 1
7489 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"
7490 EXTRA_VPATH
="$EXTRA_VPATH:\$(srcdir)/png"
7491 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS png"
7494 if test "$wxUSE_LIBGIF" = "yes" ; then
7495 cat >> confdefs.h
<<\EOF
7496 #define wxUSE_LIBGIF 1
7499 LTLIBOBJS
="$LTLIBOBJS imaggif.lo"
7502 if test "$wxUSE_LIBJPEG" = "yes" ; then
7503 cat >> confdefs.h
<<\EOF
7504 #define wxUSE_LIBJPEG 1
7507 EXTRA_VPATH
="$EXTRA_VPATH:\${srcdir}/jpeg"
7508 LTLIBOBJS
="$LTLIBOBJS imagjpeg.lo \
7509 jcomapi.lo jutils.lo jerror.lo jmemmgr.lo jmemnobs.lo \
7510 jcapimin.lo jcapistd.lo jctrans.lo jcparam.lo jdatadst.lo \
7511 jcinit.lo jcmaster.lo jcmarker.lo jcmainct.lo jcprepct.lo \
7512 jccoefct.lo jccolor.lo jcsample.lo jchuff.lo jcphuff.lo \
7513 jcdctmgr.lo jfdctfst.lo jfdctflt.lo jfdctint.lo \
7514 jdapimin.lo jdapistd.lo jdtrans.lo jdatasrc.lo \
7515 jdmaster.lo jdinput.lo jdmarker.lo jdhuff.lo jdphuff.lo \
7516 jdmainct.lo jdcoefct.lo jdpostct.lo jddctmgr.lo jidctfst.lo \
7517 jidctflt.lo jidctint.lo jidctred.lo jdsample.lo jdcolor.lo \
7518 jquant1.lo jquant2.lo jdmerge.lo"
7521 if test "$wxUSE_OPENGL" = "yes"; then
7522 ac_safe
=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
7523 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
7524 echo "configure:7525: checking for GL/gl.h" >&5
7525 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7526 echo $ac_n "(cached) $ac_c" 1>&6
7528 cat > conftest.
$ac_ext <<EOF
7529 #line 7530 "configure"
7530 #include "confdefs.h"
7533 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7534 { (eval echo configure
:7535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7535 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7536 if test -z "$ac_err"; then
7538 eval "ac_cv_header_$ac_safe=yes"
7541 echo "configure: failed program was:" >&5
7542 cat conftest.
$ac_ext >&5
7544 eval "ac_cv_header_$ac_safe=no"
7548 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7549 echo "$ac_t""yes" 1>&6
7551 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
7552 echo "configure:7553: checking for glInitNames in -lGL" >&5
7553 ac_lib_var
=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
7554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7555 echo $ac_n "(cached) $ac_c" 1>&6
7557 ac_save_LIBS
="$LIBS"
7558 LIBS
="-lGL wxUSE_OPENGL=0 $LIBS"
7559 cat > conftest.
$ac_ext <<EOF
7560 #line 7561 "configure"
7561 #include "confdefs.h"
7562 /* Override any gcc2 internal prototype to avoid an error. */
7563 /* We use char because int might match the return type of a gcc2
7564 builtin and then its argument prototype would still apply. */
7571 if { (eval echo configure
:7572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7573 eval "ac_cv_lib_$ac_lib_var=yes"
7575 echo "configure: failed program was:" >&5
7576 cat conftest.
$ac_ext >&5
7578 eval "ac_cv_lib_$ac_lib_var=no"
7581 LIBS
="$ac_save_LIBS"
7584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7585 echo "$ac_t""yes" 1>&6
7588 cat >> confdefs.h
<<\EOF
7589 #define wxUSE_OPENGL 1
7592 UTILS_SUBDIRS
="$UTILS_SUBDIRS glcanvas/src"
7595 echo "$ac_t""no" 1>&6
7597 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
7598 echo "configure:7599: checking for glInitNames in -lMesaGL" >&5
7599 ac_lib_var
=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
7600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7601 echo $ac_n "(cached) $ac_c" 1>&6
7603 ac_save_LIBS
="$LIBS"
7604 LIBS
="-lMesaGL $LIBS"
7605 cat > conftest.
$ac_ext <<EOF
7606 #line 7607 "configure"
7607 #include "confdefs.h"
7608 /* Override any gcc2 internal prototype to avoid an error. */
7609 /* We use char because int might match the return type of a gcc2
7610 builtin and then its argument prototype would still apply. */
7617 if { (eval echo configure
:7618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7619 eval "ac_cv_lib_$ac_lib_var=yes"
7621 echo "configure: failed program was:" >&5
7622 cat conftest.
$ac_ext >&5
7624 eval "ac_cv_lib_$ac_lib_var=no"
7627 LIBS
="$ac_save_LIBS"
7630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7631 echo "$ac_t""yes" 1>&6
7633 OPENGL_LINK
="-lMesaGL"
7634 cat >> confdefs.h
<<\EOF
7635 #define wxUSE_OPENGL 1
7638 UTILS_SUBDIRS
="$UTILS_SUBDIRS glcanvas/src"
7641 echo "$ac_t""no" 1>&6
7650 echo "$ac_t""no" 1>&6
7657 if test "$wxUSE_GUI" = "yes"; then
7658 cat >> confdefs.h
<<\EOF
7663 LTLIBOBJS
="$LTLIBOBJS \
7664 main.lo app.lo event.lo wincmn.lo window.lo control.lo framecmn.lo frame.lo dialog.lo panelg.lo \
7665 button.lo stattext.lo textctrl.lo \
7666 bitmap.lo brush.lo colour.lo cursor.lo data.lo dc.lo dcbase.lo dcclient.lo \
7667 dcmemory.lo dcscreen.lo font.lo gdicmn.lo gdiobj.lo icon.lo palette.lo pen.lo region.lo \
7669 settings.lo timer.lo msgdlgg.lo"
7671 cat >> confdefs.h
<<\EOF
7672 #define wxUSE_NOGUI 1
7678 if test "$wxUSE_UNIX" = "yes"; then
7679 cat >> confdefs.h
<<\EOF
7680 #define wxUSE_UNIX 1
7683 LTLIBOBJS
="$LTLIBOBJS utilsunx.lo"
7687 if test "$wxUSE_APPLE_IEEE" = "yes"; then
7688 cat >> confdefs.h
<<\EOF
7689 #define wxUSE_APPLE_IEEE 1
7692 LTLIBOBJS
="$LTLIBOBJS extended.lo"
7695 if test "$wxUSE_TIMEDATE" = "yes"; then
7696 cat >> confdefs.h
<<\EOF
7697 #define wxUSE_TIMEDATE 1
7700 LTLIBOBJS
="$LTLIBOBJS date.lo time.lo"
7701 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS typetest"
7704 if test "$wxUSE_FILE" = "yes"; then
7705 cat >> confdefs.h
<<\EOF
7706 #define wxUSE_FILE 1
7709 LTLIBOBJS
="$LTLIBOBJS file.lo"
7712 if test "$wxUSE_TEXTFILE" = "yes"; then
7713 if test "$wxUSE_FILE" != "yes"; then
7714 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
7716 cat >> confdefs.h
<<\EOF
7717 #define wxUSE_TEXTFILE 1
7720 LTLIBOBJS
="$LTLIBOBJS textfile.lo"
7724 if test "$wxUSE_CONFIG" = "yes" ; then
7725 if test "$wxUSE_TEXTFILE" != "yes"; then
7726 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
7728 cat >> confdefs.h
<<\EOF
7729 #define wxUSE_CONFIG 1
7732 LTLIBOBJS
="$LTLIBOBJS config.lo fileconf.lo"
7733 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS config"
7737 if test "$wxUSE_INTL" = "yes" ; then
7738 if test "$wxUSE_FILE" != "yes"; then
7739 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
7741 cat >> confdefs.h
<<\EOF
7742 #define wxUSE_INTL 1
7745 LTLIBOBJS
="$LTLIBOBJS intl.lo"
7746 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS internat"
7750 if test "$wxUSE_LOG" = "yes"; then
7751 cat >> confdefs.h
<<\EOF
7755 LTLIBOBJS
="$LTLIBOBJS log.lo"
7758 if test "$wxUSE_LONGLONG" = "yes"; then
7759 cat >> confdefs.h
<<\EOF
7760 #define wxUSE_LONGLONG 1
7763 LTLIBOBJS
="$LTLIBOBJS longlong.lo"
7766 if test "$wxUSE_SOCKETS" = "yes" ; then
7767 if test "$wxUSE_THREADS" = "yes" ; then
7768 cat >> confdefs.h
<<\EOF
7769 #define wxUSE_SOCKETS 1
7772 LTLIBOBJS
="$LTLIBOBJS sckint.lo socket.lo sckaddr.lo protocol.lo http.lo ftp.lo url.lo"
7773 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS wxsocket"
7775 echo "configure: warning: socket classes require --with-threads and won't be compiled without it" 1>&2
7780 if test "$wxUSE_STREAMS" = "yes" ; then
7781 cat >> confdefs.h
<<\EOF
7782 #define wxUSE_STREAMS 1
7785 LTLIBOBJS
="$LTLIBOBJS stream.lo wfstream.lo datstrm.lo mstream.lo objstrm.lo"
7786 if test "$wxUSE_SOCKETS" = "yes" ; then
7787 LTLIBOBJS
="$LTLIBOBJS sckstrm.lo"
7791 if test "$wxUSE_SERIAL" = "yes" ; then
7792 cat >> confdefs.h
<<\EOF
7793 #define wxUSE_SERIAL 1
7799 if test "$wxUSE_SOCKETS" = "yes"; then
7802 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7803 ac_cpp
='$CXXCPP $CPPFLAGS'
7804 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7805 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7806 cross_compiling
=$ac_cv_prog_cxx_cross
7808 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
7809 echo "configure:7810: checking the type of the third argument of getsockname" >&5
7810 cat > conftest.
$ac_ext <<EOF
7811 #line 7812 "configure"
7812 #include "confdefs.h"
7813 #include <sys/socket.h>
7815 socklen_t len; getsockname(0, NULL, &len);
7818 if { (eval echo configure
:7819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7820 cat >> confdefs.h
<<\EOF
7821 #define SOCKLEN_T socklen_t
7823 echo "$ac_t""socklen_t" 1>&6
7825 echo "configure: failed program was:" >&5
7826 cat conftest.
$ac_ext >&5
7828 cat > conftest.
$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7831 #include <sys/socket.h>
7833 size_t len; getsockname(0, NULL, &len);
7836 if { (eval echo configure
:7837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7838 cat >> confdefs.h
<<\EOF
7839 #define SOCKLEN_T size_t
7841 echo "$ac_t""size_t" 1>&6
7843 echo "configure: failed program was:" >&5
7844 cat conftest.
$ac_ext >&5
7846 cat > conftest.
$ac_ext <<EOF
7847 #line 7848 "configure"
7848 #include "confdefs.h"
7849 #include <sys/socket.h>
7851 int len; getsockname(0, NULL, &len);
7854 if { (eval echo configure
:7855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7856 cat >> confdefs.h
<<\EOF
7857 #define SOCKLEN_T int
7859 echo "$ac_t""int" 1>&6
7861 echo "configure: failed program was:" >&5
7862 cat conftest.
$ac_ext >&5
7864 echo "$ac_t""unknown" 1>&6
7875 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7876 ac_cpp
='$CPP $CPPFLAGS'
7877 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7878 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7879 cross_compiling
=$ac_cv_prog_cc_cross
7884 if test "$wxUSE_JOYSTICK" = 1; then
7885 for ac_hdr
in linux
/joystick.h
7887 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7888 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7889 echo "configure:7890: checking for $ac_hdr" >&5
7890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7891 echo $ac_n "(cached) $ac_c" 1>&6
7893 cat > conftest.
$ac_ext <<EOF
7894 #line 7895 "configure"
7895 #include "confdefs.h"
7898 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7899 { (eval echo configure
:7900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7900 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7901 if test -z "$ac_err"; then
7903 eval "ac_cv_header_$ac_safe=yes"
7906 echo "configure: failed program was:" >&5
7907 cat conftest.
$ac_ext >&5
7909 eval "ac_cv_header_$ac_safe=no"
7913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7914 echo "$ac_t""yes" 1>&6
7915 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7916 cat >> confdefs.h
<<EOF
7917 #define $ac_tr_hdr 1
7921 echo "$ac_t""no" 1>&6
7925 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
7926 cat >> confdefs.h
<<\EOF
7927 #define wxUSE_JOYSTICK 1
7930 LTLIBOBJS
="$LTLIBOBJS joystick.lo"
7931 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS joytest"
7938 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
7939 for ac_func
in dlopen
7941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7942 echo "configure:7943: checking for $ac_func" >&5
7943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7944 echo $ac_n "(cached) $ac_c" 1>&6
7946 cat > conftest.
$ac_ext <<EOF
7947 #line 7948 "configure"
7948 #include "confdefs.h"
7949 /* System header to define __stub macros and hopefully few prototypes,
7950 which can conflict with char $ac_func(); below. */
7952 /* Override any gcc2 internal prototype to avoid an error. */
7953 /* We use char because int might match the return type of a gcc2
7954 builtin and then its argument prototype would still apply. */
7959 /* The GNU C library defines this for functions which it implements
7960 to always fail with ENOSYS. Some functions are actually named
7961 something starting with __ and the normal name is an alias. */
7962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7970 if { (eval echo configure
:7971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7972 eval "ac_cv_func_$ac_func=yes"
7974 echo "configure: failed program was:" >&5
7975 cat conftest.
$ac_ext >&5
7977 eval "ac_cv_func_$ac_func=no"
7982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7983 echo "$ac_t""yes" 1>&6
7984 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7985 cat >> confdefs.h
<<EOF
7986 #define $ac_tr_func 1
7988 cat >> confdefs.h
<<\EOF
7989 #define HAVE_DLOPEN 1
7993 echo "$ac_t""no" 1>&6
7994 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7995 echo "configure:7996: checking for dlopen in -ldl" >&5
7996 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
7997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7998 echo $ac_n "(cached) $ac_c" 1>&6
8000 ac_save_LIBS
="$LIBS"
8002 cat > conftest.
$ac_ext <<EOF
8003 #line 8004 "configure"
8004 #include "confdefs.h"
8005 /* Override any gcc2 internal prototype to avoid an error. */
8006 /* We use char because int might match the return type of a gcc2
8007 builtin and then its argument prototype would still apply. */
8014 if { (eval echo configure
:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8016 eval "ac_cv_lib_$ac_lib_var=yes"
8018 echo "configure: failed program was:" >&5
8019 cat conftest.
$ac_ext >&5
8021 eval "ac_cv_lib_$ac_lib_var=no"
8024 LIBS
="$ac_save_LIBS"
8027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8028 echo "$ac_t""yes" 1>&6
8029 cat >> confdefs.h
<<\EOF
8030 #define HAVE_DLOPEN 1
8034 echo "$ac_t""no" 1>&6
8040 for ac_func
in shl_load
8042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8043 echo "configure:8044: checking for $ac_func" >&5
8044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8045 echo $ac_n "(cached) $ac_c" 1>&6
8047 cat > conftest.
$ac_ext <<EOF
8048 #line 8049 "configure"
8049 #include "confdefs.h"
8050 /* System header to define __stub macros and hopefully few prototypes,
8051 which can conflict with char $ac_func(); below. */
8053 /* Override any gcc2 internal prototype to avoid an error. */
8054 /* We use char because int might match the return type of a gcc2
8055 builtin and then its argument prototype would still apply. */
8060 /* The GNU C library defines this for functions which it implements
8061 to always fail with ENOSYS. Some functions are actually named
8062 something starting with __ and the normal name is an alias. */
8063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8071 if { (eval echo configure
:8072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8073 eval "ac_cv_func_$ac_func=yes"
8075 echo "configure: failed program was:" >&5
8076 cat conftest.
$ac_ext >&5
8078 eval "ac_cv_func_$ac_func=no"
8083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8084 echo "$ac_t""yes" 1>&6
8085 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8086 cat >> confdefs.h
<<EOF
8087 #define $ac_tr_func 1
8089 cat >> confdefs.h
<<\EOF
8090 #define HAVE_SHL_LOAD 1
8092 HAVE_DL_FUNCS
=1 HAVE_SHL_FUNCS
=1
8094 echo "$ac_t""no" 1>&6
8099 if test "$HAVE_DL_FUNCS" = 0; then
8100 echo "configure: warning: "--with-dynlib and
--with-odbc will be disabled due to missing shared library support
"" 1>&2
8102 wxUSE_DYNLIB_CLASS
=no
8106 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
8107 cat >> confdefs.h
<<\EOF
8108 #define wxUSE_DYNLIB_CLASS 1
8111 LTLIBOBJS
="$LTLIBOBJS dynlib.lo"
8115 if test "$wxUSE_UNICODE" = "yes" ; then
8116 cat >> confdefs.h
<<\EOF
8117 #define wxUSE_UNICODE 1
8122 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
8123 cat >> confdefs.h
<<\EOF
8124 #define wxUSE_WCSRTOMBS 1
8131 if test "$wxUSE_ODBC" = "yes" ; then
8132 cat >> confdefs.h
<<\EOF
8133 #define wxUSE_ODBC 1
8136 EXTRA_VPATH
="$EXTRA_VPATH:\$(srcdir)/iodbc"
8137 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"
8138 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS db"
8142 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
8143 cat >> confdefs.h
<<\EOF
8144 #define wxUSE_POSTSCRIPT 1
8147 LTLIBOBJS
="$LTLIBOBJS printps.lo dcpsg.lo"
8150 cat >> confdefs.h
<<\EOF
8151 #define wxUSE_AFM_FOR_POSTSCRIPT 1
8155 cat >> confdefs.h
<<\EOF
8156 #define wxUSE_NORMALIZED_PS_FONTS 1
8161 if test "$wxUSE_CONSTRAINTS" = "yes"; then
8162 cat >> confdefs.h
<<\EOF
8163 #define wxUSE_CONSTRAINTS 1
8167 LTLIBOBJS
="$LTLIBOBJS layout.lo laywin.lo"
8168 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS layout"
8171 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
8172 cat >> confdefs.h
<<\EOF
8173 #define wxUSE_MDI_ARCHITECTURE 1
8176 LTLIBOBJS
="$LTLIBOBJS mdi.lo"
8177 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS mdi"
8180 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
8181 cat >> confdefs.h
<<\EOF
8182 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
8185 LTLIBOBJS
="$LTLIBOBJS docview.lo"
8186 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS docview"
8187 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
8188 LTLIBOBJS
="$LTLIBOBJS docmdi.lo"
8189 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS docvwmdi"
8193 if test "$wxUSE_HELP" = "yes"; then
8194 cat >> confdefs.h
<<\EOF
8195 #define wxUSE_HELP 1
8198 LTLIBOBJS
="$LTLIBOBJS helpext.lo helphtml.lo helpbase.lo"
8199 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS help"
8202 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
8203 cat >> confdefs.h
<<\EOF
8204 #define wxUSE_PRINTING_ARCHITECTURE 1
8207 LTLIBOBJS
="$LTLIBOBJS prntbase.lo paper.lo"
8208 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS printing"
8211 if test "$wxUSE_PROLOGIO" = "yes" ; then
8212 cat >> confdefs.h
<<\EOF
8213 #define wxUSE_PROLOGIO 1
8216 LTLIBOBJS
="$LTLIBOBJS wxexpr.lo parser.lo"
8219 if test "$wxUSE_RESOURCES" = "yes" ; then
8220 if test "$wxUSE_PROLOGIO" = "yes" ; then
8221 cat >> confdefs.h
<<\EOF
8222 #define wxUSE_RESOURCES 1
8225 LTLIBOBJS
="$LTLIBOBJS resource.lo"
8226 if test "$wxUSE_GTK" = 1; then
8227 LTLIBOBJS
="$LTLIBOBJS utilsres.lo"
8229 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS resource"
8231 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
8235 if test "$wxUSE_X_RESOURCES" = "yes"; then
8236 cat >> confdefs.h
<<\EOF
8237 #define wxUSE_X_RESOURCES 1
8243 if test "$wxUSE_IPC" = "yes"; then
8244 cat >> confdefs.h
<<\EOF
8248 LTLIBOBJS
="$LTLIBOBJS ipcbase.lo sckipc.lo"
8251 if test "$wxUSE_CLIPBOARD" = "yes"; then
8252 cat >> confdefs.h
<<\EOF
8253 #define wxUSE_CLIPBOARD 1
8256 LTLIBOBJS
="$LTLIBOBJS clipbrd.lo dataobj.lo"
8259 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
8260 if test "$WXGTK12" = 1 ; then
8261 cat >> confdefs.h
<<\EOF
8262 #define wxUSE_DRAG_AND_DROP 1
8265 LTLIBOBJS
="$LTLIBOBJS dnd.lo"
8266 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS dnd"
8267 if test "$wxUSE_CLIPBOARD" != "yes"; then
8268 LTLIBOBJS
="$LTLIBOBJS dataobj.lo"
8271 echo "configure: warning: drag and drop is only supported under GTK 1.2" 1>&2
8275 if test "$wxUSE_SPLINES" = "yes" ; then
8276 cat >> confdefs.h
<<\EOF
8277 #define wxUSE_SPLINES 1
8283 if test "$wxUSE_ACCEL" = "yes"; then
8284 cat >> confdefs.h
<<\EOF
8285 #define wxUSE_ACCEL 1
8288 LTLIBOBJS
="$LTLIBOBJS accel.lo"
8291 if test "$wxUSE_CARET" = "yes"; then
8292 cat >> confdefs.h
<<\EOF
8293 #define wxUSE_CARET 1
8296 LTLIBOBJS
="$LTLIBOBJS caret.lo"
8297 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS caret"
8300 if test "$wxUSE_COMBOBOX" = "yes"; then
8301 cat >> confdefs.h
<<\EOF
8302 #define wxUSE_COMBOBOX 1
8305 LTLIBOBJS
="$LTLIBOBJS choice.lo combobox.lo"
8308 if test "$wxUSE_BMPBUTTON" = "yes"; then
8309 cat >> confdefs.h
<<\EOF
8310 #define wxUSE_BMPBUTTON 1
8313 LTLIBOBJS
="$LTLIBOBJS bmpbuttn.lo"
8316 if test "$wxUSE_CHECKBOX" = "yes"; then
8317 cat >> confdefs.h
<<\EOF
8318 #define wxUSE_CHECKBOX 1
8321 LTLIBOBJS
="$LTLIBOBJS checkbox.lo"
8324 if test "$wxUSE_CHECKLST" = "yes"; then
8325 cat >> confdefs.h
<<\EOF
8326 #define wxUSE_CHECKLISTBOX 1
8329 LTLIBOBJS
="$LTLIBOBJS checklst.lo"
8330 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS checklst"
8333 if test "$wxUSE_GAUGE" = "yes"; then
8334 cat >> confdefs.h
<<\EOF
8335 #define wxUSE_GAUGE 1
8338 LTLIBOBJS
="$LTLIBOBJS gauge.lo"
8341 if test "$wxUSE_GRID" = "yes"; then
8342 cat >> confdefs.h
<<\EOF
8343 #define wxUSE_GRID 1
8346 LTLIBOBJS
="$LTLIBOBJS gridg.lo"
8347 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS grid"
8350 if test "$wxUSE_IMAGLIST" = "yes"; then
8351 cat >> confdefs.h
<<\EOF
8352 #define wxUSE_IMAGLIST 1
8355 LTLIBOBJS
="$LTLIBOBJS imaglist.lo"
8358 if test "$wxUSE_LISTBOX" = "yes"; then
8359 cat >> confdefs.h
<<\EOF
8360 #define wxUSE_LISTBOX 1
8363 LTLIBOBJS
="$LTLIBOBJS listbox.lo"
8366 if test "$wxUSE_LISTCTRL" = "yes"; then
8367 if test "$wxUSE_IMAGLIST" = "yes"; then
8368 cat >> confdefs.h
<<\EOF
8369 #define wxUSE_LISTCTRL 1
8372 LTLIBOBJS
="$LTLIBOBJS listctrl.lo"
8373 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS listctrl"
8375 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
8379 if test "$wxUSE_NOTEBOOK" = "yes"; then
8380 cat >> confdefs.h
<<\EOF
8381 #define wxUSE_NOTEBOOK 1
8384 LTLIBOBJS
="$LTLIBOBJS notebook.lo"
8385 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS notebook"
8388 if test "$wxUSE_RADIOBOX" = "yes"; then
8389 cat >> confdefs.h
<<\EOF
8390 #define wxUSE_RADIOBOX 1
8393 LTLIBOBJS
="$LTLIBOBJS radiobox.lo"
8396 if test "$wxUSE_RADIOBTN" = "yes"; then
8397 cat >> confdefs.h
<<\EOF
8398 #define wxUSE_RADIOBTN 1
8401 LTLIBOBJS
="$LTLIBOBJS radiobut.lo"
8404 if test "wxUSE_SASH" = 1; then
8405 cat >> confdefs.h
<<\EOF
8406 #define wxUSE_SASH 1
8409 LTLIBOBJS
="$LTLIBOBJS sashwin.lo"
8410 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS sashtest"
8413 if test "$wxUSE_SCROLLBAR" = "yes"; then
8414 cat >> confdefs.h
<<\EOF
8415 #define wxUSE_SCROLLBAR 1
8418 LTLIBOBJS
="$LTLIBOBJS scrolbar.lo scrolwin.lo"
8419 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS scroll"
8422 if test "$wxUSE_SLIDER" = "yes"; then
8423 cat >> confdefs.h
<<\EOF
8424 #define wxUSE_SLIDER 1
8427 LTLIBOBJS
="$LTLIBOBJS slider.lo"
8430 if test "$wxUSE_SPINBTN" = "yes"; then
8431 cat >> confdefs.h
<<\EOF
8432 #define wxUSE_SPINBTN 1
8435 LTLIBOBJS
="$LTLIBOBJS spinbutt.lo"
8438 if test "$wxUSE_SPLITTER" = "yes"; then
8439 cat >> confdefs.h
<<\EOF
8440 #define wxUSE_SPLITTER 1
8443 LTLIBOBJS
="$LTLIBOBJS splitter.lo"
8444 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS splitter"
8447 if test "$wxUSE_STATBMP" = "yes"; then
8448 cat >> confdefs.h
<<\EOF
8449 #define wxUSE_STATBMP 1
8452 LTLIBOBJS
="$LTLIBOBJS statbmp.lo"
8455 if test "$wxUSE_STATBOX" = "yes"; then
8456 cat >> confdefs.h
<<\EOF
8457 #define wxUSE_STATBOX 1
8460 LTLIBOBJS
="$LTLIBOBJS statbox.lo"
8463 if test "$wxUSE_STATLINE" = "yes"; then
8464 cat >> confdefs.h
<<\EOF
8465 #define wxUSE_STATLINE 1
8468 LTLIBOBJS
="$LTLIBOBJS statline.lo"
8471 if test "$wxUSE_STATUSBAR" = "yes"; then
8472 cat >> confdefs.h
<<\EOF
8473 #define wxUSE_STATUSBAR 1
8476 LTLIBOBJS
="$LTLIBOBJS statusbr.lo"
8479 if test "$wxUSE_TABDIALOG" = "yes"; then
8480 cat >> confdefs.h
<<\EOF
8481 #define wxUSE_TAB_DIALOG 1
8484 LTLIBOBJS
="$LTLIBOBJS tabg.lo"
8485 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS tab"
8488 if test "$wxUSE_TOOLBAR" = "yes"; then
8489 cat >> confdefs.h
<<\EOF
8490 #define wxUSE_TOOLBAR 1
8493 LTLIBOBJS
="$LTLIBOBJS tbarbase.lo tbargtk.lo"
8494 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS toolbar"
8497 if test "$wxUSE_TOOLTIPS" = "yes" ; then
8498 if test "$wxUSE_MOTIF" = "yes"; then
8499 echo "configure: warning: tooltips are not supported yet under Motif" 1>&2
8501 cat >> confdefs.h
<<\EOF
8502 #define wxUSE_TOOLTIPS 1
8505 LTLIBOBJS
="$LTLIBOBJS tooltip.lo"
8509 if test "$wxUSE_TREECTRL" = "yes"; then
8510 if test "$wxUSE_IMAGLIST" = "yes"; then
8511 cat >> confdefs.h
<<\EOF
8512 #define wxUSE_TREECTRL 1
8515 LTLIBOBJS
="$LTLIBOBJS treectrl.lo"
8516 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS treectrl"
8518 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
8523 if test "$wxUSE_WXTREE" = "yes"; then
8524 cat >> confdefs.h
<<\EOF
8525 #define wxUSE_WXTREE 1
8530 if test "$wxUSE_METAFILE" = "yes"; then
8531 cat >> confdefs.h
<<\EOF
8532 #define wxUSE_METAFILE 1
8535 LTLIBOBJS
="$LTLIBOBJS metafile.lo"
8538 if test "$wxUSE_COMMONDLGS" = "yes"; then
8539 LTLIBOBJS
="$LTLIBOBJS progdlgg.lo filedlg.lo fontdlgg.lo"
8541 if test "$wxUSE_CONSTRAINTS" != "yes"; then
8542 echo "configure: warning: many common dialogs cannot be used without constraints so they won't be compiled without them" 1>&2
8544 cat >> confdefs.h
<<\EOF
8545 #define wxUSE_CONSTRAINTS 1
8548 cat >> confdefs.h
<<\EOF
8549 #define wxUSE_TEXTDLG 1
8552 LTLIBOBJS
="$LTLIBOBJS colrdlgg.lo textdlgg.lo choicdgg.lo"
8554 if test "$wxUSE_TREECTRL" != "yes"; then
8555 echo "configure: warning: wxDirDialog cannot be used without wxTreeCtrl and it won't be compiled without it" 1>&2
8557 cat >> confdefs.h
<<\EOF
8558 #define wxUSE_DIRDLG 1
8561 LTLIBOBJS
="$LTLIBOBJS dirdlgg.lo"
8565 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
8566 LTLIBOBJS
="$LTLIBOBJS prntdlgg.lo"
8568 echo "configure: warning: wxPrintDialog class won't be compiled without printing support" 1>&2
8572 if test "$wxUSE_MINIFRAME" = "yes"; then
8573 cat >> confdefs.h
<<\EOF
8574 #define wxUSE_MINIFRAME 1
8577 LTLIBOBJS
="$LTLIBOBJS minifram.lo"
8578 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS minifram"
8581 if test "$wxUSE_VALIDATORS" = "yes"; then
8582 cat >> confdefs.h
<<\EOF
8583 #define wxUSE_VALIDATORS 1
8586 LTLIBOBJS
="$LTLIBOBJS valgen.lo validate.lo valtext.lo"
8587 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS validate"
8591 GUILIBS
="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
8593 EXTRA_LIBS
="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $GUILIBS"
8595 LIBS
="\${top_builddir}/src/libwx_${WX_LIBRARY}.la $EXTRA_LIBS"
8597 INCLUDES
="$TOOLKIT_INCLUDE $ZLIB_INCLUDE $LIBPNG_INCLUDE -I. -I\${top_builddir}/include -I\${top_srcdir}/include"
8599 if test "$ac_cv_prog_gcc" = "yes"; then
8602 EXTRA_CFLAGS
="$WXDEBUG $PROFILE $OPTIMISE $INCLUDES"
8604 CFLAGS
="$CFLAGS $EXTRA_CFLAGS"
8605 CXXFLAGS
="$CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS"
8607 if test "$wxUSE_GUI" = "yes"; then
8609 SAMPLES_SUBDIRS
="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
8610 forty fractal image wxpoem"
8618 LIBTOOL
="$LIBTOOL --silent"
8639 SETUPH_DIR
=include
/wx
/${TOOLKIT_DIR}
8640 mkdir -p ${SETUPH_DIR}
8645 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
8646 echo "configure:8647: checking whether ${MAKE-make} sets \${MAKE}" >&5
8647 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
8648 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
8649 echo $ac_n "(cached) $ac_c" 1>&6
8651 cat > conftestmake
<<\EOF
8653 @
echo 'ac_maketemp="${MAKE}"'
8655 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8656 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
8657 if test -n "$ac_maketemp"; then
8658 eval ac_cv_prog_make_
${ac_make}_set
=yes
8660 eval ac_cv_prog_make_
${ac_make}_set
=no
8664 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8665 echo "$ac_t""yes" 1>&6
8668 echo "$ac_t""no" 1>&6
8669 SET_MAKE
="MAKE=${MAKE-make}"
8674 cat > confcache
<<\EOF
8675 # This file is a shell script that caches the results of configure
8676 # tests run on this system so they can be shared between configure
8677 # scripts and configure runs. It is not useful on other systems.
8678 # If it contains results you don't want to keep, you may remove or edit it.
8680 # By default, configure uses ./config.cache as the cache file,
8681 # creating it if it does not exist already. You can give configure
8682 # the --cache-file=FILE option to use a different cache file; that is
8683 # what configure does when it calls configure scripts in
8684 # subdirectories, so they share the cache.
8685 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8686 # config.status only pays attention to the cache file if you give it the
8687 # --recheck option to rerun configure.
8690 # The following way of writing the cache mishandles newlines in values,
8691 # but we know of no workaround that is simple, portable, and efficient.
8692 # So, don't put newlines in cache variables' values.
8693 # Ultrix sh set writes to stderr and can't be redirected directly,
8694 # and sets the high bit in the cache file unless we assign to the vars.
8696 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8698 # `set' does not quote correctly, so add quotes (double-quote substitution
8699 # turns \\\\ into \\, and sed turns \\ into \).
8701 -e "s/'/'\\\\''/g" \
8702 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8705 # `set' quotes correctly as required by POSIX, so do not add quotes.
8706 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8709 if cmp -s $cache_file confcache
; then
8712 if test -w $cache_file; then
8713 echo "updating cache $cache_file"
8714 cat confcache
> $cache_file
8716 echo "not updating unwritable cache $cache_file"
8721 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8723 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8724 # Let make expand exec_prefix.
8725 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8727 # Any assignment to VPATH causes Sun make to only execute
8728 # the first set of double-colon rules, so remove it if not needed.
8729 # If there is a colon in the path, we need to keep it.
8730 if test "x$srcdir" = x.
; then
8731 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8734 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8736 DEFS
=-DHAVE_CONFIG_H
8738 # Without the "./", some shells look in PATH for config.status.
8739 : ${CONFIG_STATUS=./config.status}
8741 echo creating
$CONFIG_STATUS
8742 rm -f $CONFIG_STATUS
8743 cat > $CONFIG_STATUS <<EOF
8745 # Generated automatically by configure.
8746 # Run this file to recreate the current configuration.
8747 # This directory was configured as follows,
8748 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8750 # $0 $ac_configure_args
8752 # Compiler output produced by configure, useful for debugging
8753 # configure, is in ./config.log if it exists.
8755 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8758 case "\$ac_option" in
8759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8760 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8761 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8762 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8763 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8765 -help | --help | --hel | --he | --h)
8766 echo "\$ac_cs_usage"; exit 0 ;;
8767 *) echo "\$ac_cs_usage"; exit 1 ;;
8771 ac_given_srcdir=$srcdir
8772 ac_given_INSTALL="$INSTALL"
8774 trap 'rm -fr `echo "
8775 Makefile src/Makefile wx-config
8777 samples/bombs/Makefile
8778 samples/caret/Makefile
8779 samples/checklst/Makefile
8780 samples/config/Makefile
8781 samples/controls/Makefile
8783 samples/dialogs/Makefile
8784 samples/dnd/Makefile
8785 samples/docview/Makefile
8786 samples/docvwmdi/Makefile
8787 samples/drawing/Makefile
8788 samples/dynamic/Makefile
8789 samples/forty/Makefile
8790 samples/fractal/Makefile
8791 samples/grid/Makefile
8792 samples/help/Makefile
8793 samples/image/Makefile
8794 samples/internat/Makefile
8795 samples/joytest/Makefile
8796 samples/layout/Makefile
8797 samples/listctrl/Makefile
8798 samples/mdi/Makefile
8799 samples/memcheck/Makefile
8800 samples/mfc/Makefile
8801 samples/minifram/Makefile
8802 samples/minimal/Makefile
8803 samples/nativdlg/Makefile
8804 samples/notebook/Makefile
8805 samples/oleauto/Makefile
8806 samples/ownerdrw/Makefile
8807 samples/png/Makefile
8808 samples/printing/Makefile
8809 samples/proplist/Makefile
8810 samples/regtest/Makefile
8811 samples/resource/Makefile
8812 samples/sashtest/Makefile
8813 samples/scroll/Makefile
8814 samples/splitter/Makefile
8815 samples/tab/Makefile
8816 samples/taskbar/Makefile
8817 samples/thread/Makefile
8818 samples/toolbar/Makefile
8819 samples/treectrl/Makefile
8820 samples/typetest/Makefile
8821 samples/validate/Makefile
8822 samples/wxpoem/Makefile
8823 samples/wxsocket/Makefile
8824 ${SETUPH_DIR}/setup.h:include/wx/unix/setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8826 cat >> $CONFIG_STATUS <<EOF
8828 # Protect against being on the right side of a sed subst in config.status.
8829 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8830 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8834 s%@CFLAGS@%$CFLAGS%g
8835 s%@CPPFLAGS@%$CPPFLAGS%g
8836 s%@CXXFLAGS@%$CXXFLAGS%g
8837 s%@FFLAGS@%$FFLAGS%g
8839 s%@LDFLAGS@%$LDFLAGS%g
8841 s%@exec_prefix@%$exec_prefix%g
8842 s%@prefix@%$prefix%g
8843 s%@program_transform_name@%$program_transform_name%g
8844 s%@bindir@%$bindir%g
8845 s%@sbindir@%$sbindir%g
8846 s%@libexecdir@%$libexecdir%g
8847 s%@datadir@%$datadir%g
8848 s%@sysconfdir@%$sysconfdir%g
8849 s%@sharedstatedir@%$sharedstatedir%g
8850 s%@localstatedir@%$localstatedir%g
8851 s%@libdir@%$libdir%g
8852 s%@includedir@%$includedir%g
8853 s%@oldincludedir@%$oldincludedir%g
8854 s%@infodir@%$infodir%g
8855 s%@mandir@%$mandir%g
8857 s%@host_alias@%$host_alias%g
8858 s%@host_cpu@%$host_cpu%g
8859 s%@host_vendor@%$host_vendor%g
8860 s%@host_os@%$host_os%g
8861 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8862 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8863 s%@INSTALL_DATA@%$INSTALL_DATA%g
8864 s%@PACKAGE@%$PACKAGE%g
8865 s%@VERSION@%$VERSION%g
8866 s%@ACLOCAL@%$ACLOCAL%g
8867 s%@AUTOCONF@%$AUTOCONF%g
8868 s%@AUTOMAKE@%$AUTOMAKE%g
8869 s%@AUTOHEADER@%$AUTOHEADER%g
8870 s%@MAKEINFO@%$MAKEINFO%g
8871 s%@SET_MAKE@%$SET_MAKE%g
8875 s%@CXXCPP@%$CXXCPP%g
8876 s%@RANLIB@%$RANLIB%g
8882 s%@LEXLIB@%$LEXLIB%g
8883 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
8885 s%@build_alias@%$build_alias%g
8886 s%@build_cpu@%$build_cpu%g
8887 s%@build_vendor@%$build_vendor%g
8888 s%@build_os@%$build_os%g
8891 s%@LIBTOOL@%$LIBTOOL%g
8892 s%@DLLTOOL@%$DLLTOOL%g
8894 s%@X_CFLAGS@%$X_CFLAGS%g
8895 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8896 s%@X_LIBS@%$X_LIBS%g
8897 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8898 s%@GTK_CONFIG@%$GTK_CONFIG%g
8899 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8900 s%@GTK_LIBS@%$GTK_LIBS%g
8901 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
8902 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
8903 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
8904 s%@WX_LIBRARY@%$WX_LIBRARY%g
8905 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
8906 s%@TOOLKIT@%$TOOLKIT%g
8907 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
8908 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
8909 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
8910 s%@EXTRA_VPATH@%$EXTRA_VPATH%g
8911 s%@LTLIBOBJS@%$LTLIBOBJS%g
8912 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
8913 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
8914 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
8915 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
8916 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
8921 cat >> $CONFIG_STATUS <<\EOF
8923 # Split the substitutions into bite-sized pieces for seds with
8924 # small command number limits, like on Digital OSF/1 and HP-UX.
8925 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8926 ac_file
=1 # Number of current file.
8927 ac_beg
=1 # First line for current file.
8928 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8931 while $ac_more_lines; do
8932 if test $ac_beg -gt 1; then
8933 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8935 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8937 if test ! -s conftest.s
$ac_file; then
8939 rm -f conftest.s
$ac_file
8941 if test -z "$ac_sed_cmds"; then
8942 ac_sed_cmds
="sed -f conftest.s$ac_file"
8944 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8946 ac_file
=`expr $ac_file + 1`
8948 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8951 if test -z "$ac_sed_cmds"; then
8956 cat >> $CONFIG_STATUS <<EOF
8958 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile wx-config
8960 samples/bombs/Makefile
8961 samples/caret/Makefile
8962 samples/checklst/Makefile
8963 samples/config/Makefile
8964 samples/controls/Makefile
8966 samples/dialogs/Makefile
8967 samples/dnd/Makefile
8968 samples/docview/Makefile
8969 samples/docvwmdi/Makefile
8970 samples/drawing/Makefile
8971 samples/dynamic/Makefile
8972 samples/forty/Makefile
8973 samples/fractal/Makefile
8974 samples/grid/Makefile
8975 samples/help/Makefile
8976 samples/image/Makefile
8977 samples/internat/Makefile
8978 samples/joytest/Makefile
8979 samples/layout/Makefile
8980 samples/listctrl/Makefile
8981 samples/mdi/Makefile
8982 samples/memcheck/Makefile
8983 samples/mfc/Makefile
8984 samples/minifram/Makefile
8985 samples/minimal/Makefile
8986 samples/nativdlg/Makefile
8987 samples/notebook/Makefile
8988 samples/oleauto/Makefile
8989 samples/ownerdrw/Makefile
8990 samples/png/Makefile
8991 samples/printing/Makefile
8992 samples/proplist/Makefile
8993 samples/regtest/Makefile
8994 samples/resource/Makefile
8995 samples/sashtest/Makefile
8996 samples/scroll/Makefile
8997 samples/splitter/Makefile
8998 samples/tab/Makefile
8999 samples/taskbar/Makefile
9000 samples/thread/Makefile
9001 samples/toolbar/Makefile
9002 samples/treectrl/Makefile
9003 samples/typetest/Makefile
9004 samples/validate/Makefile
9005 samples/wxpoem/Makefile
9006 samples/wxsocket/Makefile
9009 cat >> $CONFIG_STATUS <<\EOF
9010 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9013 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9014 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9015 *) ac_file_in
="${ac_file}.in" ;;
9018 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9020 # Remove last slash and all that follows it. Not all systems have dirname.
9021 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9022 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9023 # The file is in a subdirectory.
9024 test ! -d "$ac_dir" && mkdir "$ac_dir"
9025 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9026 # A "../" for each directory in $ac_dir_suffix.
9027 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9029 ac_dir_suffix
= ac_dots
=
9032 case "$ac_given_srcdir" in
9034 if test -z "$ac_dots"; then top_srcdir
=.
9035 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9036 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9038 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9039 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9042 case "$ac_given_INSTALL" in
9043 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9044 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9047 echo creating
"$ac_file"
9049 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9051 *Makefile
*) ac_comsub
="1i\\
9052 # $configure_input" ;;
9056 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9058 s%@configure_input@%$configure_input%g
9059 s%@srcdir@%$srcdir%g
9060 s%@top_srcdir@%$top_srcdir%g
9061 s%@INSTALL@%$INSTALL%g
9062 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9066 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9067 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9069 # ac_d sets the value in "#define NAME VALUE" lines.
9070 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9071 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9074 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9075 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9076 ac_uB
='\([ ]\)%\1#\2define\3'
9079 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9080 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9081 ac_eB
='$%\1#\2define\3'
9085 if test "${CONFIG_HEADERS+set}" != set; then
9087 cat >> $CONFIG_STATUS <<EOF
9088 CONFIG_HEADERS="${SETUPH_DIR}/setup.h:include/wx/unix/setup.h.in"
9090 cat >> $CONFIG_STATUS <<\EOF
9092 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9093 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9095 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9096 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9097 *) ac_file_in
="${ac_file}.in" ;;
9100 echo creating
$ac_file
9102 rm -f conftest.frag conftest.
in conftest.out
9103 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9104 cat $ac_file_inputs > conftest.
in
9108 # Transform confdefs.h into a sed script conftest.vals that substitutes
9109 # the proper values into config.h.in to produce config.h. And first:
9110 # Protect against being on the right side of a sed subst in config.status.
9111 # Protect against being in an unquoted here document in config.status.
9113 cat > conftest.hdr
<<\EOF
9116 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9120 sed -n -f conftest.hdr confdefs.h > conftest.vals
9123 # This sed command replaces #undef with comments. This is necessary, for
9124 # example, in the case of _POSIX_SOURCE, which is predefined and required
9125 # on some systems where configure will not decide to define it.
9126 cat >> conftest.vals <<\EOF
9127 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9130 # Break up conftest.vals because some shells have a limit on
9131 # the size of here documents, and old seds have small limits too.
9136 ac_lines=`grep -c . conftest.vals
`
9137 # grep -c gives empty output for an empty file on some AIX systems.
9138 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9139 # Write a limited-size here document to conftest.frag.
9140 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9141 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9143 sed -f conftest.frag conftest.in > conftest.out
9145 mv conftest.out conftest.in
9147 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9149 mv conftest.tail conftest.vals
9153 cat >> $CONFIG_STATUS <<\EOF
9154 rm -f conftest.frag conftest.h
9155 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9156 cat conftest.in >> conftest.h
9158 if cmp -s $ac_file conftest.h 2>/dev/null; then
9159 echo "$ac_file is unchanged"
9162 # Remove last slash and all that follows it. Not all systems have dirname.
9163 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9164 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9165 # The file is in a subdirectory.
9166 test ! -d "$ac_dir" && mkdir "$ac_dir"
9169 mv conftest.h $ac_file
9174 cat >> $CONFIG_STATUS <<EOF
9176 SETUPH_DIR=${SETUPH_DIR}
9178 cat >> $CONFIG_STATUS <<\EOF
9179 test -z "$CONFIG_HEADERS" || echo timestamp > ${SETUPH_DIR}/stamp-h
9183 chmod +x $CONFIG_STATUS
9184 rm -fr confdefs* $ac_clean_files
9185 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1