3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.14
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-x use the X Window System"
21 **--with-motif use Motif/Lesstif"
23 **--with-shared create shared libraries"
25 **--with-optimise create optimised code"
27 **--with-debug_flag create code with WXDEBUG define set to 1"
29 **--with-debug_info create code with debuging information"
31 **--with-debug_gdb create code with extra GDB debuging information"
33 **--with-mem_traing create code with memory tracing"
35 **--with-dmalloc use dmalloc memory debug library (www.letters.com/dmalloc/)"
37 **--with-profile create code with profiling information"
39 **--with_apple_ieee use the Apple IEEE codec"
41 **--with-threads for enabling threads"
43 **--with-dynlib to compile wxLibrary class"
45 **--without-zlib don't use zlib for LZW comression"
47 **--without-libpng don't use libpng (PNG image format)"
49 **--without-libjpeg don't use libjpeg (JPEG image format)"
51 **--with-odbc use iODBC and wxODBC classes"
53 **--with-timedate use wxTime and wxDate classes"
55 **--with-intl use internationalization system"
57 **--with-config use wxConfig class"
59 **--with-streams use wxStream etc classes"
61 **--with-serial use class serialization"
63 **--with-sockets use wxSocket etc classes"
65 **--with-afmfonts use Adobe Font Metric Font table"
67 **--with-PS-normalized use normalized PS fonts"
69 **--with-postscript use wxPostscriptDC device context"
71 **--with-unicode compile wxString with Unicode support"
73 **--with-wcsrtombs use wcsrtombs instead of (buggy in GNU libc5) wcstombs"
75 **--with-wxresources use wxWindows's resources"
77 **--with-prologio use Prolog IO library"
79 **--with-rpc use Prolog's remote procedure calls"
81 **--with-ipc use interprocess communication (wxSocket etc.)"
83 **--with-resources use X resources for saving information"
85 **--with-clipboard use wxClipboard classes"
87 **--with-tooltips use tooltips"
89 **--with-dnd use Drag'n'Drop classes"
91 **--with-spline use Spline drawing code"
93 **--with-mdi use multiple document interface architecture"
95 **--with-docview use document view architecture"
97 **--with-printarch use printing architecture"
99 **--with-help use help (using external browser at present)"
101 **--with-gtk-prefix=PFX Prefix where GTK is installed"
103 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
105 **--with-gtk-prefix=PFX Prefix where GTK is installed"
107 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
109 # Initialize some variables set by options.
110 # The variables have the same names as the options, with
111 # dashes changed to underlines.
113 cache_file
=.
/config.cache
122 program_transform_name
=s
,x
,x
,
130 bindir
='${exec_prefix}/bin'
131 sbindir
='${exec_prefix}/sbin'
132 libexecdir
='${exec_prefix}/libexec'
133 datadir
='${prefix}/share'
134 sysconfdir
='${prefix}/etc'
135 sharedstatedir
='${prefix}/com'
136 localstatedir
='${prefix}/var'
137 libdir
='${exec_prefix}/lib'
138 includedir
='${prefix}/include'
139 oldincludedir
='/usr/include'
140 infodir
='${prefix}/info'
141 mandir
='${prefix}/man'
143 # Initialize some other variables.
146 SHELL
=${CONFIG_SHELL-/bin/sh}
147 # Maximum number of lines to put in a shell here document.
154 # If the previous option needs an argument, assign it.
155 if test -n "$ac_prev"; then
156 eval "$ac_prev=\$ac_option"
162 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
166 # Accept the important Cygnus configure options, so we can diagnose typos.
170 -bindir | --bindir | --bindi | --bind | --bin | --bi)
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
173 bindir
="$ac_optarg" ;;
175 -build | --build | --buil | --bui | --bu)
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178 build
="$ac_optarg" ;;
180 -cache-file | --cache-file | --cache-fil | --cache-fi \
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182 ac_prev
=cache_file
;;
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185 cache_file
="$ac_optarg" ;;
187 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
189 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
191 datadir
="$ac_optarg" ;;
193 -disable-* | --disable-*)
194 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
195 # Reject names that are not valid shell variable names.
196 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
197 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
199 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
200 eval "enable_${ac_feature}=no" ;;
202 -enable-* | --enable-*)
203 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
204 # Reject names that are not valid shell variable names.
205 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
206 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
208 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
213 eval "enable_${ac_feature}='$ac_optarg'" ;;
215 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
216 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
217 | --exec | --exe | --ex)
218 ac_prev
=exec_prefix
;;
219 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
220 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
221 | --exec=* | --exe=* | --ex=*)
222 exec_prefix
="$ac_optarg" ;;
224 -gas | --gas | --ga | --g)
225 # Obsolete; use --with-gas.
228 -help | --help | --hel | --he)
229 # Omit some internal or obsolete options to make the list less imposing.
230 # This message is too long to be a string in the A/UX 3.1 sh.
232 Usage: configure [options] [host]
233 Options: [defaults in brackets after descriptions]
235 --cache-file=FILE cache test results in FILE
236 --help print this message
237 --no-create do not create output files
238 --quiet, --silent do not print \`checking...' messages
239 --version print the version of autoconf that created configure
240 Directory and file names:
241 --prefix=PREFIX install architecture-independent files in PREFIX
243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
245 --bindir=DIR user executables in DIR [EPREFIX/bin]
246 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
247 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
248 --datadir=DIR read-only architecture-independent data in DIR
250 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
251 --sharedstatedir=DIR modifiable architecture-independent data in DIR
253 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
254 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
255 --includedir=DIR C header files in DIR [PREFIX/include]
256 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
257 --infodir=DIR info documentation in DIR [PREFIX/info]
258 --mandir=DIR man documentation in DIR [PREFIX/man]
259 --srcdir=DIR find the sources in DIR [configure dir or ..]
260 --program-prefix=PREFIX prepend PREFIX to installed program names
261 --program-suffix=SUFFIX append SUFFIX to installed program names
262 --program-transform-name=PROGRAM
263 run sed PROGRAM on installed program names
267 --build=BUILD configure for building on BUILD [BUILD=HOST]
268 --host=HOST configure for HOST [guessed]
269 --target=TARGET configure for TARGET [TARGET=HOST]
270 Features and packages:
271 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
272 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
273 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
274 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
275 --x-includes=DIR X include files are in DIR
276 --x-libraries=DIR X library files are in DIR
278 if test -n "$ac_help"; then
279 echo "--enable and --with options recognized:$ac_help"
283 -host | --host | --hos | --ho)
285 -host=* | --host=* | --hos=* | --ho=*)
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev
=includedir
;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir
="$ac_optarg" ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir
="$ac_optarg" ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
303 libdir
="$ac_optarg" ;;
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev
=libexecdir
;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir
="$ac_optarg" ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev
=localstatedir
;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir
="$ac_optarg" ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
324 mandir
="$ac_optarg" ;;
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev
=oldincludedir
;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir
="$ac_optarg" ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
350 prefix
="$ac_optarg" ;;
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev
=program_prefix
;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix
="$ac_optarg" ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev
=program_suffix
;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix
="$ac_optarg" ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev
=program_transform_name
;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name
="$ac_optarg" ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir
="$ac_optarg" ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev
=sharedstatedir
;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir
="$ac_optarg" ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
412 srcdir
="$ac_optarg" ;;
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev
=sysconfdir
;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir
="$ac_optarg" ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target
="$ac_optarg" ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers)
430 echo "configure generated by autoconf version 2.14"
434 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
435 # Reject names that are not valid shell variable names.
436 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
437 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
439 ac_package
=`echo $ac_package| sed 's/-/_/g'`
444 eval "with_${ac_package}='$ac_optarg'" ;;
446 -without-* | --without-*)
447 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
448 # Reject names that are not valid shell variable names.
449 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
450 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
452 ac_package
=`echo $ac_package| sed 's/-/_/g'`
453 eval "with_${ac_package}=no" ;;
456 # Obsolete; use --with-x.
459 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
460 | --x-incl | --x-inc | --x-in | --x-i)
461 ac_prev
=x_includes
;;
462 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
463 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
464 x_includes
="$ac_optarg" ;;
466 -x-libraries | --x-libraries | --x-librarie | --x-librari \
467 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
468 ac_prev
=x_libraries
;;
469 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
470 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
471 x_libraries
="$ac_optarg" ;;
473 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
477 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
478 echo "configure: warning: $ac_option: invalid host type" 1>&2
480 if test "x$nonopt" != xNONE
; then
481 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
489 if test -n "$ac_prev"; then
490 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
493 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
495 # File descriptor usage:
498 # 2 errors and warnings
499 # 3 some systems may open it to /dev/tty
500 # 4 used on the Kubota Titan
501 # 6 checking for... messages and results
502 # 5 compiler messages saved in config.log
503 if test "$silent" = yes; then
511 This file contains any messages produced by compilers while
512 running configure, to aid debugging if configure makes a mistake.
515 # Strip out --no-create and --no-recursion so they do not pile up.
516 # Also quote any args containing shell metacharacters.
521 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
522 | --no-cr | --no-c) ;;
523 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
524 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
525 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
526 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
527 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
532 # Only set these to C if already set. These must not be set unconditionally
533 # because not all systems understand e.g. LANG=C (notably SCO).
534 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
535 # Non-C LC_CTYPE values break the ctype check.
536 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
537 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
538 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
539 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
541 # confdefs.h avoids OS command line length limits that DEFS can exceed.
542 rm -rf conftest
* confdefs.h
543 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
546 # A filename unique to this package, relative to the directory that
547 # configure is in, which we can look for to find out if srcdir is correct.
548 ac_unique_file
=configure.
in
550 # Find the source files, if location was not specified.
551 if test -z "$srcdir"; then
552 ac_srcdir_defaulted
=yes
553 # Try the directory containing this script, then its parent.
555 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
556 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
558 if test ! -r $srcdir/$ac_unique_file; then
562 ac_srcdir_defaulted
=no
564 if test ! -r $srcdir/$ac_unique_file; then
565 if test "$ac_srcdir_defaulted" = yes; then
566 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
568 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
571 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
573 # Prefer explicitly selected file to automatically selected ones.
574 if test -z "$CONFIG_SITE"; then
575 if test "x$prefix" != xNONE
; then
576 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
578 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
581 for ac_site_file
in $CONFIG_SITE; do
582 if test -r "$ac_site_file"; then
583 echo "loading site script $ac_site_file"
588 if test -r "$cache_file"; then
589 echo "loading cache $cache_file"
592 echo "creating cache $cache_file"
597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
598 ac_cpp
='$CPP $CPPFLAGS'
599 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
600 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
601 cross_compiling
=$ac_cv_prog_cc_cross
605 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
606 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
607 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
614 ac_n
= ac_c
='\c' ac_t
=
622 if test "x$OS" = "x"; then
624 { echo "configure: error: "The system variable OS has not been
set"
625 "please
set is everytime befor compiling on this system
"
626 "A good example
for this system would be
:"
627 "setenv OSTYPE
$UNAME for csh as a SHELL
"
628 "EXPORT OSTYPE
=$UNAME for sh as SHELL
"
629 "please
set this and restart again.
"
639 /usr/Motif-1.2/include \
640 /usr/Motif-2.1/include \
642 /usr/include/Motif1.2 \
643 /opt/xpm/include/X11 \
645 /usr/Motif1.2/include \
661 /usr/local/X11R6/include \
662 /usr/local/X11R5/include \
663 /usr/local/X11R4/include \
665 /usr/local/include/X11R6 \
666 /usr/local/include/X11R5 \
667 /usr/local/include/X11R4 \
671 /usr/local/X11/include \
672 /usr/local/include/X11 \
676 /usr/XFree86/include/X11 \
683 /usr/unsupported/include \
684 /usr/athena/include \
685 /usr/local/x11r5/include \
686 /usr/lpp/Xamples/include \
688 /usr/local/include/gtk \
689 /usr/local/include/qt \
692 /usr/openwin/include \
693 /usr/openwin/share/include \
696 SEARCH_LIB
="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
700 # Extract the first word of "gcc", so it can be a program name with args.
701 set dummy gcc
; ac_word
=$2
702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
703 echo "configure:704: checking for $ac_word" >&5
704 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
705 echo $ac_n "(cached) $ac_c" 1>&6
707 if test -n "$CC"; then
708 ac_cv_prog_CC
="$CC" # Let the user override the test.
710 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
712 for ac_dir
in $ac_dummy; do
713 test -z "$ac_dir" && ac_dir
=.
714 if test -f $ac_dir/$ac_word; then
723 if test -n "$CC"; then
724 echo "$ac_t""$CC" 1>&6
726 echo "$ac_t""no" 1>&6
729 if test -z "$CC"; then
730 # Extract the first word of "cc", so it can be a program name with args.
731 set dummy cc
; ac_word
=$2
732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
733 echo "configure:734: checking for $ac_word" >&5
734 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
735 echo $ac_n "(cached) $ac_c" 1>&6
737 if test -n "$CC"; then
738 ac_cv_prog_CC
="$CC" # Let the user override the test.
740 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
743 for ac_dir
in $ac_dummy; do
744 test -z "$ac_dir" && ac_dir
=.
745 if test -f $ac_dir/$ac_word; then
746 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
755 if test $ac_prog_rejected = yes; then
756 # We found a bogon in the path, so make sure we never use it.
757 set dummy
$ac_cv_prog_CC
759 if test $# -gt 0; then
760 # We chose a different compiler from the bogus one.
761 # However, it has the same basename, so the bogon will be chosen
762 # first if we set CC to just the basename; use the full file name.
764 set dummy
"$ac_dir/$ac_word" "$@"
772 if test -n "$CC"; then
773 echo "$ac_t""$CC" 1>&6
775 echo "$ac_t""no" 1>&6
778 if test -z "$CC"; then
781 # Extract the first word of "cl", so it can be a program name with args.
782 set dummy cl
; ac_word
=$2
783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
784 echo "configure:785: checking for $ac_word" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
788 if test -n "$CC"; then
789 ac_cv_prog_CC
="$CC" # Let the user override the test.
791 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
793 for ac_dir
in $ac_dummy; do
794 test -z "$ac_dir" && ac_dir
=.
795 if test -f $ac_dir/$ac_word; then
804 if test -n "$CC"; then
805 echo "$ac_t""$CC" 1>&6
807 echo "$ac_t""no" 1>&6
812 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
815 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
816 echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
820 ac_cpp
='$CPP $CPPFLAGS'
821 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
822 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
823 cross_compiling
=$ac_cv_prog_cc_cross
825 cat > conftest.
$ac_ext << EOF
827 #line 828 "configure"
828 #include "confdefs.h"
832 if { (eval echo configure
:833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
833 ac_cv_prog_cc_works
=yes
834 # If we can't run a trivial program, we are probably using a cross compiler.
835 if (.
/conftest
; exit) 2>/dev
/null
; then
836 ac_cv_prog_cc_cross
=no
838 ac_cv_prog_cc_cross
=yes
841 echo "configure: failed program was:" >&5
842 cat conftest.
$ac_ext >&5
843 ac_cv_prog_cc_works
=no
847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
848 ac_cpp
='$CPP $CPPFLAGS'
849 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
850 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
851 cross_compiling
=$ac_cv_prog_cc_cross
853 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
854 if test $ac_cv_prog_cc_works = no
; then
855 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
857 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
858 echo "configure:859: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
859 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
860 cross_compiling
=$ac_cv_prog_cc_cross
862 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
863 echo "configure:864: checking whether we are using GNU C" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
867 cat > conftest.c
<<EOF
872 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
879 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
881 if test $ac_cv_prog_gcc = yes; then
887 ac_test_CFLAGS
="${CFLAGS+set}"
888 ac_save_CFLAGS
="$CFLAGS"
890 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
891 echo "configure:892: checking whether ${CC-cc} accepts -g" >&5
892 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
893 echo $ac_n "(cached) $ac_c" 1>&6
895 echo 'void f(){}' > conftest.c
896 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
905 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
906 if test "$ac_test_CFLAGS" = set; then
907 CFLAGS
="$ac_save_CFLAGS"
908 elif test $ac_cv_prog_cc_g = yes; then
909 if test "$GCC" = yes; then
915 if test "$GCC" = yes; then
923 CFLAGS
=`echo "$CFLAGS" | sed 's/-g//g'`
925 if test "x$CC" != xcc
; then
926 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
927 echo "configure:928: checking whether $CC and cc understand -c and -o together" >&5
929 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
930 echo "configure:931: checking whether cc understands -c and -o together" >&5
932 set dummy
$CC; ac_cc
="`echo $2 |
933 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
934 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
937 echo 'foo(){}' > conftest.c
938 # Make sure it works both with $CC and with simple cc.
939 # We do the test twice because some compilers refuse to overwrite an
940 # existing .o file with -o, though they will create one.
941 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
942 if { (eval echo configure
:943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
943 test -f conftest.o
&& { (eval echo configure
:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
945 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
946 if test "x$CC" != xcc
; then
947 # Test first that cc exists at all.
948 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
949 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
950 if { (eval echo configure
:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
951 test -f conftest.o
&& { (eval echo configure
:952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
956 # cc exists but doesn't like -o.
957 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
962 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
967 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
968 echo "$ac_t""yes" 1>&6
970 echo "$ac_t""no" 1>&6
971 cat >> confdefs.h
<<\EOF
972 #define NO_MINUS_C_MINUS_O 1
977 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
978 echo "configure:979: checking how to run the C preprocessor" >&5
979 # On Suns, sometimes $CPP names a directory.
980 if test -n "$CPP" && test -d "$CPP"; then
983 if test -z "$CPP"; then
984 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
987 # This must be in double quotes, not single quotes, because CPP may get
988 # substituted into the Makefile and "${CC-cc}" will confuse make.
990 # On the NeXT, cc -E runs the code through the compiler's parser,
991 # not just through cpp.
992 cat > conftest.
$ac_ext <<EOF
993 #line 994 "configure"
994 #include "confdefs.h"
998 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
999 { (eval echo configure
:1000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1000 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1001 if test -z "$ac_err"; then
1005 echo "configure: failed program was:" >&5
1006 cat conftest.
$ac_ext >&5
1008 CPP
="${CC-cc} -E -traditional-cpp"
1009 cat > conftest.
$ac_ext <<EOF
1010 #line 1011 "configure"
1011 #include "confdefs.h"
1015 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1016 { (eval echo configure
:1017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1017 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1018 if test -z "$ac_err"; then
1022 echo "configure: failed program was:" >&5
1023 cat conftest.
$ac_ext >&5
1025 CPP
="${CC-cc} -nologo -E"
1026 cat > conftest.
$ac_ext <<EOF
1027 #line 1028 "configure"
1028 #include "confdefs.h"
1032 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1033 { (eval echo configure
:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1034 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1035 if test -z "$ac_err"; then
1039 echo "configure: failed program was:" >&5
1040 cat conftest.
$ac_ext >&5
1049 ac_cv_prog_CPP
="$CPP"
1051 CPP
="$ac_cv_prog_CPP"
1053 ac_cv_prog_CPP
="$CPP"
1055 echo "$ac_t""$CPP" 1>&6
1057 if test $ac_cv_prog_gcc = yes; then
1058 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1059 echo "configure:1060: checking whether ${CC-cc} needs -traditional" >&5
1060 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1063 ac_pattern
="Autoconf.*'x'"
1064 cat > conftest.
$ac_ext <<EOF
1065 #line 1066 "configure"
1066 #include "confdefs.h"
1070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1071 egrep "$ac_pattern" >/dev
/null
2>&1; then
1073 ac_cv_prog_gcc_traditional
=yes
1076 ac_cv_prog_gcc_traditional
=no
1081 if test $ac_cv_prog_gcc_traditional = no
; then
1082 cat > conftest.
$ac_ext <<EOF
1083 #line 1084 "configure"
1084 #include "confdefs.h"
1088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1089 egrep "$ac_pattern" >/dev
/null
2>&1; then
1091 ac_cv_prog_gcc_traditional
=yes
1098 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1099 if test $ac_cv_prog_gcc_traditional = yes; then
1100 CC
="$CC -traditional"
1107 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1109 # Extract the first word of "$ac_prog", so it can be a program name with args.
1110 set dummy
$ac_prog; ac_word
=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 if test -n "$CXX"; then
1117 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1119 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1121 for ac_dir
in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir
=.
1123 if test -f $ac_dir/$ac_word; then
1124 ac_cv_prog_CXX
="$ac_prog"
1131 CXX
="$ac_cv_prog_CXX"
1132 if test -n "$CXX"; then
1133 echo "$ac_t""$CXX" 1>&6
1135 echo "$ac_t""no" 1>&6
1138 test -n "$CXX" && break
1140 test -n "$CXX" || CXX
="gcc"
1143 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1147 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1148 ac_cpp
='$CXXCPP $CPPFLAGS'
1149 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1150 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1151 cross_compiling
=$ac_cv_prog_cxx_cross
1153 cat > conftest.
$ac_ext << EOF
1155 #line 1156 "configure"
1156 #include "confdefs.h"
1158 int main(){return(0);}
1160 if { (eval echo configure
:1161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1161 ac_cv_prog_cxx_works
=yes
1162 # If we can't run a trivial program, we are probably using a cross compiler.
1163 if (.
/conftest
; exit) 2>/dev
/null
; then
1164 ac_cv_prog_cxx_cross
=no
1166 ac_cv_prog_cxx_cross
=yes
1169 echo "configure: failed program was:" >&5
1170 cat conftest.
$ac_ext >&5
1171 ac_cv_prog_cxx_works
=no
1175 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1176 ac_cpp
='$CPP $CPPFLAGS'
1177 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1178 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1179 cross_compiling
=$ac_cv_prog_cc_cross
1181 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1182 if test $ac_cv_prog_cxx_works = no
; then
1183 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1185 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1186 echo "configure:1187: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1187 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1188 cross_compiling
=$ac_cv_prog_cxx_cross
1190 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1191 echo "configure:1192: checking whether we are using GNU C++" >&5
1192 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 cat > conftest.C
<<EOF
1200 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
1207 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1209 if test $ac_cv_prog_gxx = yes; then
1215 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1216 ac_save_CXXFLAGS
="$CXXFLAGS"
1218 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1219 echo "configure:1220: checking whether ${CXX-g++} accepts -g" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 echo 'void f(){}' > conftest.cc
1224 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1225 ac_cv_prog_cxx_g
=yes
1233 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1234 if test "$ac_test_CXXFLAGS" = set; then
1235 CXXFLAGS
="$ac_save_CXXFLAGS"
1236 elif test $ac_cv_prog_cxx_g = yes; then
1237 if test "$GXX" = yes; then
1243 if test "$GXX" = yes; then
1250 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1251 echo "configure:1252: checking how to run the C++ preprocessor" >&5
1252 if test -z "$CXXCPP"; then
1253 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1257 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1258 ac_cpp
='$CXXCPP $CPPFLAGS'
1259 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1260 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1261 cross_compiling
=$ac_cv_prog_cxx_cross
1262 CXXCPP
="${CXX-g++} -E"
1263 cat > conftest.
$ac_ext <<EOF
1264 #line 1265 "configure"
1265 #include "confdefs.h"
1268 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1269 { (eval echo configure
:1270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1270 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1271 if test -z "$ac_err"; then
1275 echo "configure: failed program was:" >&5
1276 cat conftest.
$ac_ext >&5
1281 ac_cv_prog_CXXCPP
="$CXXCPP"
1283 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1284 ac_cpp
='$CPP $CPPFLAGS'
1285 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1286 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1287 cross_compiling
=$ac_cv_prog_cc_cross
1290 CXXCPP
="$ac_cv_prog_CXXCPP"
1291 echo "$ac_t""$CXXCPP" 1>&6
1294 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-g//g'`
1297 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1298 ac_cpp
='$CPP $CPPFLAGS'
1299 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1300 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1301 cross_compiling
=$ac_cv_prog_cc_cross
1304 # Extract the first word of "ranlib", so it can be a program name with args.
1305 set dummy ranlib
; ac_word
=$2
1306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1307 echo "configure:1308: checking for $ac_word" >&5
1308 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1311 if test -n "$RANLIB"; then
1312 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1314 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1316 for ac_dir
in $ac_dummy; do
1317 test -z "$ac_dir" && ac_dir
=.
1318 if test -f $ac_dir/$ac_word; then
1319 ac_cv_prog_RANLIB
="ranlib"
1324 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1327 RANLIB
="$ac_cv_prog_RANLIB"
1328 if test -n "$RANLIB"; then
1329 echo "$ac_t""$RANLIB" 1>&6
1331 echo "$ac_t""no" 1>&6
1335 # Extract the first word of "ar", so it can be a program name with args.
1336 set dummy
ar; ac_word
=$2
1337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1338 echo "configure:1339: checking for $ac_word" >&5
1339 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 if test -n "$AR"; then
1343 ac_cv_prog_AR
="$AR" # Let the user override the test.
1345 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1347 for ac_dir
in $ac_dummy; do
1348 test -z "$ac_dir" && ac_dir
=.
1349 if test -f $ac_dir/$ac_word; then
1355 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1359 if test -n "$AR"; then
1360 echo "$ac_t""$AR" 1>&6
1362 echo "$ac_t""no" 1>&6
1367 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1368 if test -f $ac_dir/install-sh; then
1370 ac_install_sh
="$ac_aux_dir/install-sh -c"
1372 elif test -f $ac_dir/install.sh
; then
1374 ac_install_sh
="$ac_aux_dir/install.sh -c"
1378 if test -z "$ac_aux_dir"; then
1379 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1381 ac_config_guess
=$ac_aux_dir/config.guess
1382 ac_config_sub
=$ac_aux_dir/config.sub
1383 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1385 # Find a good install program. We prefer a C program (faster),
1386 # so one script is as good as another. But avoid the broken or
1387 # incompatible versions:
1388 # SysV /etc/install, /usr/sbin/install
1389 # SunOS /usr/etc/install
1390 # IRIX /sbin/install
1392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1395 # ./install, which can be erroneously created by make from ./install.sh.
1396 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1397 echo "configure:1398: checking for a BSD compatible install" >&5
1398 if test -z "$INSTALL"; then
1399 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1402 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1403 for ac_dir
in $PATH; do
1404 # Account for people who put trailing slashes in PATH elements.
1406 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1408 # OSF1 and SCO ODT 3.0 have their own names for install.
1409 # Don't use installbsd from OSF since it installs stuff as root
1411 for ac_prog
in ginstall scoinst
install; do
1412 if test -f $ac_dir/$ac_prog; then
1413 if test $ac_prog = install &&
1414 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1415 # AIX install. It has an incompatible calling convention.
1418 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1429 if test "${ac_cv_path_install+set}" = set; then
1430 INSTALL
="$ac_cv_path_install"
1432 # As a last resort, use the slow shell script. We don't cache a
1433 # path for INSTALL within a source directory, because that will
1434 # break other packages using the cache if that directory is
1435 # removed, or if the path is relative.
1436 INSTALL
="$ac_install_sh"
1439 echo "$ac_t""$INSTALL" 1>&6
1441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1442 # It thinks the first close brace ends the variable substitution.
1443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1447 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1450 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1451 echo "configure:1452: checking whether ln -s works" >&5
1452 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1456 if ln -s X conftestdata
2>/dev
/null
1459 ac_cv_prog_LN_S
="ln -s"
1464 LN_S
="$ac_cv_prog_LN_S"
1465 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1466 echo "$ac_t""yes" 1>&6
1468 echo "$ac_t""no" 1>&6
1472 for ac_prog
in mawk gawk nawk
awk
1474 # Extract the first word of "$ac_prog", so it can be a program name with args.
1475 set dummy
$ac_prog; ac_word
=$2
1476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1477 echo "configure:1478: checking for $ac_word" >&5
1478 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1481 if test -n "$AWK"; then
1482 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1484 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1486 for ac_dir
in $ac_dummy; do
1487 test -z "$ac_dir" && ac_dir
=.
1488 if test -f $ac_dir/$ac_word; then
1489 ac_cv_prog_AWK
="$ac_prog"
1496 AWK
="$ac_cv_prog_AWK"
1497 if test -n "$AWK"; then
1498 echo "$ac_t""$AWK" 1>&6
1500 echo "$ac_t""no" 1>&6
1503 test -n "$AWK" && break
1507 # Extract the first word of "strip", so it can be a program name with args.
1508 set dummy strip
; ac_word
=$2
1509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1510 echo "configure:1511: checking for $ac_word" >&5
1511 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1514 if test -n "$STRIP"; then
1515 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1517 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1519 for ac_dir
in $ac_dummy; do
1520 test -z "$ac_dir" && ac_dir
=.
1521 if test -f $ac_dir/$ac_word; then
1522 ac_cv_prog_STRIP
="strip"
1527 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
="true"
1530 STRIP
="$ac_cv_prog_STRIP"
1531 if test -n "$STRIP"; then
1532 echo "$ac_t""$STRIP" 1>&6
1534 echo "$ac_t""no" 1>&6
1538 echo $ac_n "checking "make for VPATH support
"""... $ac_c" 1>&6
1539 echo "configure:1540: checking "make for VPATH support
"" >&5
1540 cat - << EOF > confMake
1546 if test ! -d sub
; then
1549 echo dummy
> sub
/file
1550 ${MAKE-make} -f confMake VPATH
=sub
2> config.log
> /dev
/null
1552 rm -f sub
/file check final_file confMake
1554 if test "$RESULT" = 0; then
1555 echo "$ac_t""yes" 1>&6
1557 echo "$ac_t""no" 1>&6
1558 { echo "configure: error: You need a make-utility that is able to use the variable
1560 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
1564 # If we find X, set shell vars x_includes and x_libraries to the
1565 # paths, otherwise set no_x=yes.
1566 # Uses ac_ vars as temps to allow command line to override cache and checks.
1567 # --without-x overrides everything else, but does not touch the cache.
1568 echo $ac_n "checking for X""... $ac_c" 1>&6
1569 echo "configure:1570: checking for X" >&5
1571 # Check whether --with-x or --without-x was given.
1572 if test "${with_x+set}" = set; then
1577 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1578 if test "x$with_x" = xno
; then
1579 # The user explicitly disabled X.
1582 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1583 # Both variables are already set.
1586 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1589 # One or both of the vars are not set, and there is no cached value.
1590 ac_x_includes
=NO ac_x_libraries
=NO
1592 if mkdir conftestdir
; then
1594 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1595 cat > Imakefile
<<'EOF'
1597 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1599 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1600 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1601 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1602 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1603 for ac_extension
in a so sl
; do
1604 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1605 test -f $ac_im_libdir/libX11.
$ac_extension; then
1606 ac_im_usrlibdir
=$ac_im_libdir; break
1609 # Screen out bogus values from the imake configuration. They are
1610 # bogus both because they are the default anyway, and because
1611 # using them would break gcc on systems where it needs fixed includes.
1612 case "$ac_im_incroot" in
1614 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1616 case "$ac_im_usrlibdir" in
1618 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1625 if test "$ac_x_includes" = NO
; then
1626 # Guess where to find include files, by looking for this one X11 .h file.
1627 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1629 # First, try using that file with no special directory specified.
1630 cat > conftest.
$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1633 #include <$x_direct_test_include>
1635 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1636 { (eval echo configure
:1637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1637 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1638 if test -z "$ac_err"; then
1640 # We can compile using X headers with no special include directory.
1644 echo "configure: failed program was:" >&5
1645 cat conftest.
$ac_ext >&5
1647 # Look for the header file in a standard set of common directories.
1648 # Check X11 before X11Rn because it is often a symlink to the current release.
1651 /usr
/X
11R
6/include \
1652 /usr
/X
11R
5/include \
1653 /usr
/X
11R
4/include \
1656 /usr
/include
/X11R6 \
1657 /usr
/include
/X11R5 \
1658 /usr
/include
/X11R4 \
1660 /usr
/local
/X
11/include \
1661 /usr
/local
/X
11R
6/include \
1662 /usr
/local
/X
11R
5/include \
1663 /usr
/local
/X
11R
4/include \
1665 /usr
/local
/include
/X11 \
1666 /usr
/local
/include
/X11R6 \
1667 /usr
/local
/include
/X11R5 \
1668 /usr
/local
/include
/X11R4 \
1672 /usr
/XFree
86/include
/X11 \
1675 /usr
/local
/include \
1676 /usr
/unsupported
/include \
1677 /usr
/athena
/include \
1678 /usr
/local
/x
11r
5/include \
1679 /usr
/lpp
/Xamples
/include \
1681 /usr
/openwin
/include \
1682 /usr
/openwin
/share
/include \
1685 if test -r "$ac_dir/$x_direct_test_include"; then
1686 ac_x_includes
=$ac_dir
1692 fi # $ac_x_includes = NO
1694 if test "$ac_x_libraries" = NO
; then
1695 # Check for the libraries.
1697 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1698 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1700 # See if we find them without any special options.
1701 # Don't add to $LIBS permanently.
1702 ac_save_LIBS
="$LIBS"
1703 LIBS
="-l$x_direct_test_library $LIBS"
1704 cat > conftest.
$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1709 ${x_direct_test_function}()
1712 if { (eval echo configure
:1713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1714 LIBS
="$ac_save_LIBS"
1715 # We can link X programs with no special library path.
1718 echo "configure: failed program was:" >&5
1719 cat conftest.
$ac_ext >&5
1721 LIBS
="$ac_save_LIBS"
1722 # First see if replacing the include by lib works.
1723 # Check X11 before X11Rn because it is often a symlink to the current release.
1724 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1735 /usr
/local
/X
11/lib \
1736 /usr
/local
/X
11R
6/lib \
1737 /usr
/local
/X
11R
5/lib \
1738 /usr
/local
/X
11R
4/lib \
1740 /usr
/local
/lib
/X11 \
1741 /usr
/local
/lib
/X11R6 \
1742 /usr
/local
/lib
/X11R5 \
1743 /usr
/local
/lib
/X11R4 \
1747 /usr
/XFree
86/lib
/X11 \
1751 /usr
/unsupported
/lib \
1753 /usr
/local
/x
11r
5/lib \
1754 /usr
/lpp
/Xamples
/lib \
1758 /usr
/openwin
/share
/lib \
1761 for ac_extension
in a so sl
; do
1762 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1763 ac_x_libraries
=$ac_dir
1770 fi # $ac_x_libraries = NO
1772 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
1773 # Didn't find X anywhere. Cache the known absence of X.
1774 ac_cv_have_x
="have_x=no"
1776 # Record where we found X for the cache.
1777 ac_cv_have_x
="have_x=yes \
1778 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1782 eval "$ac_cv_have_x"
1785 if test "$have_x" != yes; then
1786 echo "$ac_t""$have_x" 1>&6
1789 # If each of the values was on the command line, it overrides each guess.
1790 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1791 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1792 # Update the cache value to reflect the command line values.
1793 ac_cv_have_x
="have_x=yes \
1794 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1795 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1798 if test "$no_x" = yes; then
1799 # Not all programs may use this symbol, but it does not hurt to define it.
1800 cat >> confdefs.h
<<\EOF
1801 #define X_DISPLAY_MISSING 1
1804 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1806 if test -n "$x_includes"; then
1807 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1810 # It would also be nice to do this for all -L options, not just this one.
1811 if test -n "$x_libraries"; then
1812 X_LIBS
="$X_LIBS -L$x_libraries"
1813 # For Solaris; some versions of Sun CC require a space after -R and
1814 # others require no space. Words are not sufficient . . . .
1815 case "`(uname -sr) 2>/dev/null`" in
1817 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1818 echo "configure:1819: checking whether -R must be followed by a space" >&5
1819 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1820 cat > conftest.
$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1828 if { (eval echo configure
:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1832 echo "configure: failed program was:" >&5
1833 cat conftest.
$ac_ext >&5
1838 if test $ac_R_nospace = yes; then
1839 echo "$ac_t""no" 1>&6
1840 X_LIBS
="$X_LIBS -R$x_libraries"
1842 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1843 cat > conftest.
$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1851 if { (eval echo configure
:1852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1855 echo "configure: failed program was:" >&5
1856 cat conftest.
$ac_ext >&5
1861 if test $ac_R_space = yes; then
1862 echo "$ac_t""yes" 1>&6
1863 X_LIBS
="$X_LIBS -R $x_libraries"
1865 echo "$ac_t""neither works" 1>&6
1868 LIBS
="$ac_xsave_LIBS"
1872 # Check for system-dependent libraries X programs must link with.
1873 # Do this before checking for the system-independent R6 libraries
1874 # (-lICE), since we may need -lsocket or whatever for X linking.
1876 if test "$ISC" = yes; then
1877 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1879 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1880 # libraries were built with DECnet support. And karl@cs.umb.edu says
1881 # the Alpha needs dnet_stub (dnet does not exist).
1882 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1883 echo "configure:1884: checking for dnet_ntoa in -ldnet" >&5
1884 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1888 ac_save_LIBS
="$LIBS"
1890 cat > conftest.
$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1893 /* Override any gcc2 internal prototype to avoid an error. */
1894 /* We use char because int might match the return type of a gcc2
1895 builtin and then its argument prototype would still apply. */
1902 if { (eval echo configure
:1903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1904 eval "ac_cv_lib_$ac_lib_var=yes"
1906 echo "configure: failed program was:" >&5
1907 cat conftest.
$ac_ext >&5
1909 eval "ac_cv_lib_$ac_lib_var=no"
1912 LIBS
="$ac_save_LIBS"
1915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1916 echo "$ac_t""yes" 1>&6
1917 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1919 echo "$ac_t""no" 1>&6
1922 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1923 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1924 echo "configure:1925: checking for dnet_ntoa in -ldnet_stub" >&5
1925 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1929 ac_save_LIBS
="$LIBS"
1930 LIBS
="-ldnet_stub $LIBS"
1931 cat > conftest.
$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1934 /* Override any gcc2 internal prototype to avoid an error. */
1935 /* We use char because int might match the return type of a gcc2
1936 builtin and then its argument prototype would still apply. */
1943 if { (eval echo configure
:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1945 eval "ac_cv_lib_$ac_lib_var=yes"
1947 echo "configure: failed program was:" >&5
1948 cat conftest.
$ac_ext >&5
1950 eval "ac_cv_lib_$ac_lib_var=no"
1953 LIBS
="$ac_save_LIBS"
1956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1957 echo "$ac_t""yes" 1>&6
1958 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1960 echo "$ac_t""no" 1>&6
1965 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1966 # to get the SysV transport functions.
1967 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1969 # The nsl library prevents programs from opening the X display
1970 # on Irix 5.2, according to dickey@clark.net.
1971 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1972 echo "configure:1973: checking for gethostbyname" >&5
1973 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1976 cat > conftest.
$ac_ext <<EOF
1977 #line 1978 "configure"
1978 #include "confdefs.h"
1979 /* System header to define __stub macros and hopefully few prototypes,
1980 which can conflict with char gethostbyname(); below. */
1982 /* Override any gcc2 internal prototype to avoid an error. */
1983 /* We use char because int might match the return type of a gcc2
1984 builtin and then its argument prototype would still apply. */
1985 char gethostbyname();
1990 /* The GNU C library defines this for functions which it implements
1991 to always fail with ENOSYS. Some functions are actually named
1992 something starting with __ and the normal name is an alias. */
1993 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2001 if { (eval echo configure
:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2003 eval "ac_cv_func_gethostbyname=yes"
2005 echo "configure: failed program was:" >&5
2006 cat conftest.
$ac_ext >&5
2008 eval "ac_cv_func_gethostbyname=no"
2013 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2017 echo "$ac_t""no" 1>&6
2020 if test $ac_cv_func_gethostbyname = no
; then
2021 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2022 echo "configure:2023: checking for gethostbyname in -lnsl" >&5
2023 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 ac_save_LIBS
="$LIBS"
2029 cat > conftest.
$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2032 /* Override any gcc2 internal prototype to avoid an error. */
2033 /* We use char because int might match the return type of a gcc2
2034 builtin and then its argument prototype would still apply. */
2035 char gethostbyname();
2041 if { (eval echo configure
:2042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2043 eval "ac_cv_lib_$ac_lib_var=yes"
2045 echo "configure: failed program was:" >&5
2046 cat conftest.
$ac_ext >&5
2048 eval "ac_cv_lib_$ac_lib_var=no"
2051 LIBS
="$ac_save_LIBS"
2054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2055 echo "$ac_t""yes" 1>&6
2056 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2058 echo "$ac_t""no" 1>&6
2063 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2064 # socket/setsockopt and other routines are undefined under SCO ODT
2065 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2066 # on later versions), says simon@lia.di.epfl.ch: it contains
2067 # gethostby* variants that don't use the nameserver (or something).
2068 # -lsocket must be given before -lnsl if both are needed.
2069 # We assume that if connect needs -lnsl, so does gethostbyname.
2070 echo $ac_n "checking for connect""... $ac_c" 1>&6
2071 echo "configure:2072: checking for connect" >&5
2072 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 cat > conftest.
$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2078 /* System header to define __stub macros and hopefully few prototypes,
2079 which can conflict with char connect(); below. */
2081 /* Override any gcc2 internal prototype to avoid an error. */
2082 /* We use char because int might match the return type of a gcc2
2083 builtin and then its argument prototype would still apply. */
2089 /* The GNU C library defines this for functions which it implements
2090 to always fail with ENOSYS. Some functions are actually named
2091 something starting with __ and the normal name is an alias. */
2092 #if defined (__stub_connect) || defined (__stub___connect)
2100 if { (eval echo configure
:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2102 eval "ac_cv_func_connect=yes"
2104 echo "configure: failed program was:" >&5
2105 cat conftest.
$ac_ext >&5
2107 eval "ac_cv_func_connect=no"
2112 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2113 echo "$ac_t""yes" 1>&6
2116 echo "$ac_t""no" 1>&6
2119 if test $ac_cv_func_connect = no
; then
2120 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2121 echo "configure:2122: checking for connect in -lsocket" >&5
2122 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2126 ac_save_LIBS
="$LIBS"
2127 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
2128 cat > conftest.
$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2131 /* Override any gcc2 internal prototype to avoid an error. */
2132 /* We use char because int might match the return type of a gcc2
2133 builtin and then its argument prototype would still apply. */
2140 if { (eval echo configure
:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2142 eval "ac_cv_lib_$ac_lib_var=yes"
2144 echo "configure: failed program was:" >&5
2145 cat conftest.
$ac_ext >&5
2147 eval "ac_cv_lib_$ac_lib_var=no"
2150 LIBS
="$ac_save_LIBS"
2153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2154 echo "$ac_t""yes" 1>&6
2155 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2157 echo "$ac_t""no" 1>&6
2162 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2163 echo $ac_n "checking for remove""... $ac_c" 1>&6
2164 echo "configure:2165: checking for remove" >&5
2165 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2168 cat > conftest.
$ac_ext <<EOF
2169 #line 2170 "configure"
2170 #include "confdefs.h"
2171 /* System header to define __stub macros and hopefully few prototypes,
2172 which can conflict with char remove(); below. */
2174 /* Override any gcc2 internal prototype to avoid an error. */
2175 /* We use char because int might match the return type of a gcc2
2176 builtin and then its argument prototype would still apply. */
2182 /* The GNU C library defines this for functions which it implements
2183 to always fail with ENOSYS. Some functions are actually named
2184 something starting with __ and the normal name is an alias. */
2185 #if defined (__stub_remove) || defined (__stub___remove)
2193 if { (eval echo configure
:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2195 eval "ac_cv_func_remove=yes"
2197 echo "configure: failed program was:" >&5
2198 cat conftest.
$ac_ext >&5
2200 eval "ac_cv_func_remove=no"
2205 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2206 echo "$ac_t""yes" 1>&6
2209 echo "$ac_t""no" 1>&6
2212 if test $ac_cv_func_remove = no
; then
2213 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2214 echo "configure:2215: checking for remove in -lposix" >&5
2215 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2219 ac_save_LIBS
="$LIBS"
2220 LIBS
="-lposix $LIBS"
2221 cat > conftest.
$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2224 /* Override any gcc2 internal prototype to avoid an error. */
2225 /* We use char because int might match the return type of a gcc2
2226 builtin and then its argument prototype would still apply. */
2233 if { (eval echo configure
:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2235 eval "ac_cv_lib_$ac_lib_var=yes"
2237 echo "configure: failed program was:" >&5
2238 cat conftest.
$ac_ext >&5
2240 eval "ac_cv_lib_$ac_lib_var=no"
2243 LIBS
="$ac_save_LIBS"
2246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2247 echo "$ac_t""yes" 1>&6
2248 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2250 echo "$ac_t""no" 1>&6
2255 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2256 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2257 echo "configure:2258: checking for shmat" >&5
2258 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2261 cat > conftest.
$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2264 /* System header to define __stub macros and hopefully few prototypes,
2265 which can conflict with char shmat(); below. */
2267 /* Override any gcc2 internal prototype to avoid an error. */
2268 /* We use char because int might match the return type of a gcc2
2269 builtin and then its argument prototype would still apply. */
2275 /* The GNU C library defines this for functions which it implements
2276 to always fail with ENOSYS. Some functions are actually named
2277 something starting with __ and the normal name is an alias. */
2278 #if defined (__stub_shmat) || defined (__stub___shmat)
2286 if { (eval echo configure
:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2288 eval "ac_cv_func_shmat=yes"
2290 echo "configure: failed program was:" >&5
2291 cat conftest.
$ac_ext >&5
2293 eval "ac_cv_func_shmat=no"
2298 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2302 echo "$ac_t""no" 1>&6
2305 if test $ac_cv_func_shmat = no
; then
2306 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2307 echo "configure:2308: checking for shmat in -lipc" >&5
2308 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2312 ac_save_LIBS
="$LIBS"
2314 cat > conftest.
$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2317 /* Override any gcc2 internal prototype to avoid an error. */
2318 /* We use char because int might match the return type of a gcc2
2319 builtin and then its argument prototype would still apply. */
2326 if { (eval echo configure
:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2328 eval "ac_cv_lib_$ac_lib_var=yes"
2330 echo "configure: failed program was:" >&5
2331 cat conftest.
$ac_ext >&5
2333 eval "ac_cv_lib_$ac_lib_var=no"
2336 LIBS
="$ac_save_LIBS"
2339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2340 echo "$ac_t""yes" 1>&6
2341 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2343 echo "$ac_t""no" 1>&6
2349 # Check for libraries that X11R6 Xt/Xaw programs need.
2350 ac_save_LDFLAGS
="$LDFLAGS"
2351 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2352 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2353 # check for ICE first), but we must link in the order -lSM -lICE or
2354 # we get undefined symbols. So assume we have SM if we have ICE.
2355 # These have to be linked with before -lX11, unlike the other
2356 # libraries we check for below, so use a different variable.
2357 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2358 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2359 echo "configure:2360: checking for IceConnectionNumber in -lICE" >&5
2360 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2362 echo $ac_n "(cached) $ac_c" 1>&6
2364 ac_save_LIBS
="$LIBS"
2365 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
2366 cat > conftest.
$ac_ext <<EOF
2367 #line 2368 "configure"
2368 #include "confdefs.h"
2369 /* Override any gcc2 internal prototype to avoid an error. */
2370 /* We use char because int might match the return type of a gcc2
2371 builtin and then its argument prototype would still apply. */
2372 char IceConnectionNumber();
2375 IceConnectionNumber()
2378 if { (eval echo configure
:2379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2380 eval "ac_cv_lib_$ac_lib_var=yes"
2382 echo "configure: failed program was:" >&5
2383 cat conftest.
$ac_ext >&5
2385 eval "ac_cv_lib_$ac_lib_var=no"
2388 LIBS
="$ac_save_LIBS"
2391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2392 echo "$ac_t""yes" 1>&6
2393 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2395 echo "$ac_t""no" 1>&6
2398 LDFLAGS
="$ac_save_LDFLAGS"
2404 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2406 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2407 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2408 echo "configure:2409: checking for $ac_hdr that defines DIR" >&5
2409 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6
2412 cat > conftest.
$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2415 #include <sys/types.h>
2421 if { (eval echo configure
:2422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2423 eval "ac_cv_header_dirent_$ac_safe=yes"
2425 echo "configure: failed program was:" >&5
2426 cat conftest.
$ac_ext >&5
2428 eval "ac_cv_header_dirent_$ac_safe=no"
2432 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2433 echo "$ac_t""yes" 1>&6
2434 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2435 cat >> confdefs.h
<<EOF
2436 #define $ac_tr_hdr 1
2438 ac_header_dirent
=$ac_hdr; break
2440 echo "$ac_t""no" 1>&6
2443 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2444 if test $ac_header_dirent = dirent.h
; then
2445 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2446 echo "configure:2447: checking for opendir in -ldir" >&5
2447 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2451 ac_save_LIBS
="$LIBS"
2453 cat > conftest.
$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2456 /* Override any gcc2 internal prototype to avoid an error. */
2457 /* We use char because int might match the return type of a gcc2
2458 builtin and then its argument prototype would still apply. */
2465 if { (eval echo configure
:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2467 eval "ac_cv_lib_$ac_lib_var=yes"
2469 echo "configure: failed program was:" >&5
2470 cat conftest.
$ac_ext >&5
2472 eval "ac_cv_lib_$ac_lib_var=no"
2475 LIBS
="$ac_save_LIBS"
2478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2479 echo "$ac_t""yes" 1>&6
2482 echo "$ac_t""no" 1>&6
2486 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2487 echo "configure:2488: checking for opendir in -lx" >&5
2488 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2492 ac_save_LIBS
="$LIBS"
2494 cat > conftest.
$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2497 /* Override any gcc2 internal prototype to avoid an error. */
2498 /* We use char because int might match the return type of a gcc2
2499 builtin and then its argument prototype would still apply. */
2506 if { (eval echo configure
:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2508 eval "ac_cv_lib_$ac_lib_var=yes"
2510 echo "configure: failed program was:" >&5
2511 cat conftest.
$ac_ext >&5
2513 eval "ac_cv_lib_$ac_lib_var=no"
2516 LIBS
="$ac_save_LIBS"
2519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2520 echo "$ac_t""yes" 1>&6
2523 echo "$ac_t""no" 1>&6
2528 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2529 echo "configure:2530: checking for ANSI C header files" >&5
2530 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2533 cat > conftest.
$ac_ext <<EOF
2534 #line 2535 "configure"
2535 #include "confdefs.h"
2541 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2542 { (eval echo configure
:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2543 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2544 if test -z "$ac_err"; then
2546 ac_cv_header_stdc
=yes
2549 echo "configure: failed program was:" >&5
2550 cat conftest.
$ac_ext >&5
2552 ac_cv_header_stdc
=no
2556 if test $ac_cv_header_stdc = yes; then
2557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2558 cat > conftest.
$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2564 egrep "memchr" >/dev
/null
2>&1; then
2568 ac_cv_header_stdc
=no
2574 if test $ac_cv_header_stdc = yes; then
2575 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2576 cat > conftest.
$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2582 egrep "free" >/dev
/null
2>&1; then
2586 ac_cv_header_stdc
=no
2592 if test $ac_cv_header_stdc = yes; then
2593 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2594 if test "$cross_compiling" = yes; then
2597 cat > conftest.
$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2601 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2602 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2604 int main () { int i; for (i = 0; i < 256; i++)
2605 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2609 if { (eval echo configure
:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2613 echo "configure: failed program was:" >&5
2614 cat conftest.
$ac_ext >&5
2616 ac_cv_header_stdc
=no
2624 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2625 if test $ac_cv_header_stdc = yes; then
2626 cat >> confdefs.h
<<\EOF
2627 #define STDC_HEADERS 1
2632 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2633 echo "configure:2634: checking for sys/wait.h that is POSIX.1 compatible" >&5
2634 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2637 cat > conftest.
$ac_ext <<EOF
2638 #line 2639 "configure"
2639 #include "confdefs.h"
2640 #include <sys/types.h>
2641 #include <sys/wait.h>
2643 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2646 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2651 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2654 if { (eval echo configure
:2655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2656 ac_cv_header_sys_wait_h
=yes
2658 echo "configure: failed program was:" >&5
2659 cat conftest.
$ac_ext >&5
2661 ac_cv_header_sys_wait_h
=no
2666 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2667 if test $ac_cv_header_sys_wait_h = yes; then
2668 cat >> confdefs.h
<<\EOF
2669 #define HAVE_SYS_WAIT_H 1
2674 for ac_hdr
in fcntl.h
2676 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2678 echo "configure:2679: checking for $ac_hdr" >&5
2679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
2682 cat > conftest.
$ac_ext <<EOF
2683 #line 2684 "configure"
2684 #include "confdefs.h"
2687 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2688 { (eval echo configure
:2689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2689 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2690 if test -z "$ac_err"; then
2692 eval "ac_cv_header_$ac_safe=yes"
2695 echo "configure: failed program was:" >&5
2696 cat conftest.
$ac_ext >&5
2698 eval "ac_cv_header_$ac_safe=no"
2702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2703 echo "$ac_t""yes" 1>&6
2704 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2705 cat >> confdefs.h
<<EOF
2706 #define $ac_tr_hdr 1
2710 echo "$ac_t""no" 1>&6
2714 for ac_hdr
in limits.h
2716 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2717 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2718 echo "configure:2719: checking for $ac_hdr" >&5
2719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2722 cat > conftest.
$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2727 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2728 { (eval echo configure
:2729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2729 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2730 if test -z "$ac_err"; then
2732 eval "ac_cv_header_$ac_safe=yes"
2735 echo "configure: failed program was:" >&5
2736 cat conftest.
$ac_ext >&5
2738 eval "ac_cv_header_$ac_safe=no"
2742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2743 echo "$ac_t""yes" 1>&6
2744 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2745 cat >> confdefs.h
<<EOF
2746 #define $ac_tr_hdr 1
2750 echo "$ac_t""no" 1>&6
2754 for ac_hdr
in sys
/file.h
2756 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2758 echo "configure:2759: checking for $ac_hdr" >&5
2759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2762 cat > conftest.
$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2767 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2768 { (eval echo configure
:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2769 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2770 if test -z "$ac_err"; then
2772 eval "ac_cv_header_$ac_safe=yes"
2775 echo "configure: failed program was:" >&5
2776 cat conftest.
$ac_ext >&5
2778 eval "ac_cv_header_$ac_safe=no"
2782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2783 echo "$ac_t""yes" 1>&6
2784 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2785 cat >> confdefs.h
<<EOF
2786 #define $ac_tr_hdr 1
2790 echo "$ac_t""no" 1>&6
2794 for ac_hdr
in sys
/time.h
2796 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2798 echo "configure:2799: checking for $ac_hdr" >&5
2799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2802 cat > conftest.
$ac_ext <<EOF
2803 #line 2804 "configure"
2804 #include "confdefs.h"
2807 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2808 { (eval echo configure
:2809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2809 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2810 if test -z "$ac_err"; then
2812 eval "ac_cv_header_$ac_safe=yes"
2815 echo "configure: failed program was:" >&5
2816 cat conftest.
$ac_ext >&5
2818 eval "ac_cv_header_$ac_safe=no"
2822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2823 echo "$ac_t""yes" 1>&6
2824 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2825 cat >> confdefs.h
<<EOF
2826 #define $ac_tr_hdr 1
2830 echo "$ac_t""no" 1>&6
2834 for ac_hdr
in unistd.h
2836 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2837 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2838 echo "configure:2839: checking for $ac_hdr" >&5
2839 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2840 echo $ac_n "(cached) $ac_c" 1>&6
2842 cat > conftest.
$ac_ext <<EOF
2843 #line 2844 "configure"
2844 #include "confdefs.h"
2847 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2848 { (eval echo configure
:2849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2849 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2850 if test -z "$ac_err"; then
2852 eval "ac_cv_header_$ac_safe=yes"
2855 echo "configure: failed program was:" >&5
2856 cat conftest.
$ac_ext >&5
2858 eval "ac_cv_header_$ac_safe=no"
2862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2863 echo "$ac_t""yes" 1>&6
2864 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2865 cat >> confdefs.h
<<EOF
2866 #define $ac_tr_hdr 1
2870 echo "$ac_t""no" 1>&6
2874 for ac_hdr
in wchar.h
2876 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2878 echo "configure:2879: checking for $ac_hdr" >&5
2879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2882 cat > conftest.
$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2887 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2888 { (eval echo configure
:2889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2889 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2890 if test -z "$ac_err"; then
2892 eval "ac_cv_header_$ac_safe=yes"
2895 echo "configure: failed program was:" >&5
2896 cat conftest.
$ac_ext >&5
2898 eval "ac_cv_header_$ac_safe=no"
2902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2903 echo "$ac_t""yes" 1>&6
2904 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2905 cat >> confdefs.h
<<EOF
2906 #define $ac_tr_hdr 1
2910 echo "$ac_t""no" 1>&6
2914 for ac_hdr
in wcstr.h
2916 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2918 echo "configure:2919: checking for $ac_hdr" >&5
2919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 cat > conftest.
$ac_ext <<EOF
2923 #line 2924 "configure"
2924 #include "confdefs.h"
2927 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2928 { (eval echo configure
:2929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2929 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2930 if test -z "$ac_err"; then
2932 eval "ac_cv_header_$ac_safe=yes"
2935 echo "configure: failed program was:" >&5
2936 cat conftest.
$ac_ext >&5
2938 eval "ac_cv_header_$ac_safe=no"
2942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2943 echo "$ac_t""yes" 1>&6
2944 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2945 cat >> confdefs.h
<<EOF
2946 #define $ac_tr_hdr 1
2950 echo "$ac_t""no" 1>&6
2954 for ac_hdr
in fnmatch.h
2956 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2958 echo "configure:2959: checking for $ac_hdr" >&5
2959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 cat > conftest.
$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2967 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2968 { (eval echo configure
:2969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2969 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2970 if test -z "$ac_err"; then
2972 eval "ac_cv_header_$ac_safe=yes"
2975 echo "configure: failed program was:" >&5
2976 cat conftest.
$ac_ext >&5
2978 eval "ac_cv_header_$ac_safe=no"
2982 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2983 echo "$ac_t""yes" 1>&6
2984 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2985 cat >> confdefs.h
<<EOF
2986 #define $ac_tr_hdr 1
2990 echo "$ac_t""no" 1>&6
2994 for ac_hdr
in linux
/joystick.h
2996 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2998 echo "configure:2999: checking for $ac_hdr" >&5
2999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3000 echo $ac_n "(cached) $ac_c" 1>&6
3002 cat > conftest.
$ac_ext <<EOF
3003 #line 3004 "configure"
3004 #include "confdefs.h"
3007 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3008 { (eval echo configure
:3009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3009 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3010 if test -z "$ac_err"; then
3012 eval "ac_cv_header_$ac_safe=yes"
3015 echo "configure: failed program was:" >&5
3016 cat conftest.
$ac_ext >&5
3018 eval "ac_cv_header_$ac_safe=no"
3022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3023 echo "$ac_t""yes" 1>&6
3024 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3025 cat >> confdefs.h
<<EOF
3026 #define $ac_tr_hdr 1
3030 echo "$ac_t""no" 1>&6
3035 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
3036 GTK_JOYSTICK
="gtk/joystick.cpp"
3040 for ac_hdr
in strings.h
3042 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3044 echo "configure:3045: checking for $ac_hdr" >&5
3045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3046 echo $ac_n "(cached) $ac_c" 1>&6
3048 cat > conftest.
$ac_ext <<EOF
3049 #line 3050 "configure"
3050 #include "confdefs.h"
3053 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3054 { (eval echo configure
:3055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3055 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3056 if test -z "$ac_err"; then
3058 eval "ac_cv_header_$ac_safe=yes"
3061 echo "configure: failed program was:" >&5
3062 cat conftest.
$ac_ext >&5
3064 eval "ac_cv_header_$ac_safe=no"
3068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3069 echo "$ac_t""yes" 1>&6
3070 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3071 cat >> confdefs.h
<<EOF
3072 #define $ac_tr_hdr 1
3076 echo "$ac_t""no" 1>&6
3082 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
3083 echo "configure:3084: checking for wcslen in -lc" >&5
3084 ac_lib_var
=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
3085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3086 echo $ac_n "(cached) $ac_c" 1>&6
3088 ac_save_LIBS
="$LIBS"
3090 cat > conftest.
$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3093 /* Override any gcc2 internal prototype to avoid an error. */
3094 /* We use char because int might match the return type of a gcc2
3095 builtin and then its argument prototype would still apply. */
3102 if { (eval echo configure
:3103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3104 eval "ac_cv_lib_$ac_lib_var=yes"
3106 echo "configure: failed program was:" >&5
3107 cat conftest.
$ac_ext >&5
3109 eval "ac_cv_lib_$ac_lib_var=no"
3112 LIBS
="$ac_save_LIBS"
3115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3116 echo "$ac_t""yes" 1>&6
3118 cat >> confdefs.h
<<\EOF
3119 #define HAVE_WCSLEN 1
3125 echo "$ac_t""no" 1>&6
3127 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
3128 echo "configure:3129: checking for wcslen in -lw" >&5
3129 ac_lib_var
=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
3130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3131 echo $ac_n "(cached) $ac_c" 1>&6
3133 ac_save_LIBS
="$LIBS"
3135 cat > conftest.
$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3138 /* Override any gcc2 internal prototype to avoid an error. */
3139 /* We use char because int might match the return type of a gcc2
3140 builtin and then its argument prototype would still apply. */
3147 if { (eval echo configure
:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3149 eval "ac_cv_lib_$ac_lib_var=yes"
3151 echo "configure: failed program was:" >&5
3152 cat conftest.
$ac_ext >&5
3154 eval "ac_cv_lib_$ac_lib_var=no"
3157 LIBS
="$ac_save_LIBS"
3160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3161 echo "$ac_t""yes" 1>&6
3163 cat >> confdefs.h
<<\EOF
3164 #define HAVE_WCSLEN 1
3170 echo "$ac_t""no" 1>&6
3178 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3179 echo "configure:3180: checking for vprintf" >&5
3180 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3181 echo $ac_n "(cached) $ac_c" 1>&6
3183 cat > conftest.
$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3186 /* System header to define __stub macros and hopefully few prototypes,
3187 which can conflict with char vprintf(); below. */
3189 /* Override any gcc2 internal prototype to avoid an error. */
3190 /* We use char because int might match the return type of a gcc2
3191 builtin and then its argument prototype would still apply. */
3197 /* The GNU C library defines this for functions which it implements
3198 to always fail with ENOSYS. Some functions are actually named
3199 something starting with __ and the normal name is an alias. */
3200 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3208 if { (eval echo configure
:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3210 eval "ac_cv_func_vprintf=yes"
3212 echo "configure: failed program was:" >&5
3213 cat conftest.
$ac_ext >&5
3215 eval "ac_cv_func_vprintf=no"
3220 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3221 echo "$ac_t""yes" 1>&6
3222 cat >> confdefs.h
<<\EOF
3223 #define HAVE_VPRINTF 1
3227 echo "$ac_t""no" 1>&6
3230 if test "$ac_cv_func_vprintf" != yes; then
3231 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3232 echo "configure:3233: checking for _doprnt" >&5
3233 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.
$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 /* System header to define __stub macros and hopefully few prototypes,
3240 which can conflict with char _doprnt(); below. */
3242 /* Override any gcc2 internal prototype to avoid an error. */
3243 /* We use char because int might match the return type of a gcc2
3244 builtin and then its argument prototype would still apply. */
3250 /* The GNU C library defines this for functions which it implements
3251 to always fail with ENOSYS. Some functions are actually named
3252 something starting with __ and the normal name is an alias. */
3253 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3261 if { (eval echo configure
:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3263 eval "ac_cv_func__doprnt=yes"
3265 echo "configure: failed program was:" >&5
3266 cat conftest.
$ac_ext >&5
3268 eval "ac_cv_func__doprnt=no"
3273 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3274 echo "$ac_t""yes" 1>&6
3275 cat >> confdefs.h
<<\EOF
3276 #define HAVE_DOPRNT 1
3280 echo "$ac_t""no" 1>&6
3286 for ac_func
in vsnprintf
3288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3289 echo "configure:3290: checking for $ac_func" >&5
3290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 cat > conftest.
$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 /* System header to define __stub macros and hopefully few prototypes,
3297 which can conflict with char $ac_func(); below. */
3299 /* Override any gcc2 internal prototype to avoid an error. */
3300 /* We use char because int might match the return type of a gcc2
3301 builtin and then its argument prototype would still apply. */
3307 /* The GNU C library defines this for functions which it implements
3308 to always fail with ENOSYS. Some functions are actually named
3309 something starting with __ and the normal name is an alias. */
3310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3318 if { (eval echo configure
:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3320 eval "ac_cv_func_$ac_func=yes"
3322 echo "configure: failed program was:" >&5
3323 cat conftest.
$ac_ext >&5
3325 eval "ac_cv_func_$ac_func=no"
3330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3331 echo "$ac_t""yes" 1>&6
3332 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3333 cat >> confdefs.h
<<EOF
3334 #define $ac_tr_func 1
3336 cat >> confdefs.h
<<\EOF
3337 #define HAVE_VSNPRINTF 1
3341 echo "$ac_t""no" 1>&6
3342 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
3348 for ac_func
in vfork
3350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3351 echo "configure:3352: checking for $ac_func" >&5
3352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.
$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 /* System header to define __stub macros and hopefully few prototypes,
3359 which can conflict with char $ac_func(); below. */
3361 /* Override any gcc2 internal prototype to avoid an error. */
3362 /* We use char because int might match the return type of a gcc2
3363 builtin and then its argument prototype would still apply. */
3369 /* The GNU C library defines this for functions which it implements
3370 to always fail with ENOSYS. Some functions are actually named
3371 something starting with __ and the normal name is an alias. */
3372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3380 if { (eval echo configure
:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3382 eval "ac_cv_func_$ac_func=yes"
3384 echo "configure: failed program was:" >&5
3385 cat conftest.
$ac_ext >&5
3387 eval "ac_cv_func_$ac_func=no"
3392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3393 echo "$ac_t""yes" 1>&6
3394 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3395 cat >> confdefs.h
<<EOF
3396 #define $ac_tr_func 1
3400 echo "$ac_t""no" 1>&6
3406 for ac_func
in nanosleep
3408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3409 echo "configure:3410: checking for $ac_func" >&5
3410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 cat > conftest.
$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3416 /* System header to define __stub macros and hopefully few prototypes,
3417 which can conflict with char $ac_func(); below. */
3419 /* Override any gcc2 internal prototype to avoid an error. */
3420 /* We use char because int might match the return type of a gcc2
3421 builtin and then its argument prototype would still apply. */
3427 /* The GNU C library defines this for functions which it implements
3428 to always fail with ENOSYS. Some functions are actually named
3429 something starting with __ and the normal name is an alias. */
3430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3438 if { (eval echo configure
:3439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3440 eval "ac_cv_func_$ac_func=yes"
3442 echo "configure: failed program was:" >&5
3443 cat conftest.
$ac_ext >&5
3445 eval "ac_cv_func_$ac_func=no"
3450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3451 echo "$ac_t""yes" 1>&6
3452 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3453 cat >> confdefs.h
<<EOF
3454 #define $ac_tr_func 1
3456 cat >> confdefs.h
<<\EOF
3457 #define HAVE_NANOSLEEP 1
3461 echo "$ac_t""no" 1>&6
3462 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3463 echo "configure:3464: checking for nanosleep in -lposix4" >&5
3464 ac_lib_var
=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 ac_save_LIBS
="$LIBS"
3469 LIBS
="-lposix4 $LIBS"
3470 cat > conftest.
$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 /* Override any gcc2 internal prototype to avoid an error. */
3474 /* We use char because int might match the return type of a gcc2
3475 builtin and then its argument prototype would still apply. */
3482 if { (eval echo configure
:3483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3484 eval "ac_cv_lib_$ac_lib_var=yes"
3486 echo "configure: failed program was:" >&5
3487 cat conftest.
$ac_ext >&5
3489 eval "ac_cv_lib_$ac_lib_var=no"
3492 LIBS
="$ac_save_LIBS"
3495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3498 cat >> confdefs.h
<<\EOF
3499 #define HAVE_NANOSLEEP 1
3502 POSIX4_LINK
="-lposix4"
3505 echo "$ac_t""no" 1>&6
3507 for ac_func
in usleep
3509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3510 echo "configure:3511: checking for $ac_func" >&5
3511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 cat > conftest.
$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 /* System header to define __stub macros and hopefully few prototypes,
3518 which can conflict with char $ac_func(); below. */
3520 /* Override any gcc2 internal prototype to avoid an error. */
3521 /* We use char because int might match the return type of a gcc2
3522 builtin and then its argument prototype would still apply. */
3528 /* The GNU C library defines this for functions which it implements
3529 to always fail with ENOSYS. Some functions are actually named
3530 something starting with __ and the normal name is an alias. */
3531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3539 if { (eval echo configure
:3540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3541 eval "ac_cv_func_$ac_func=yes"
3543 echo "configure: failed program was:" >&5
3544 cat conftest.
$ac_ext >&5
3546 eval "ac_cv_func_$ac_func=no"
3551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3552 echo "$ac_t""yes" 1>&6
3553 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3554 cat >> confdefs.h
<<EOF
3555 #define $ac_tr_func 1
3557 cat >> confdefs.h
<<\EOF
3558 #define HAVE_USLEEP 1
3562 echo "$ac_t""no" 1>&6
3563 echo "configure: warning: Sleep() function will not work" 1>&2
3575 for ac_func
in uname gethostname
3577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3578 echo "configure:3579: checking for $ac_func" >&5
3579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 cat > conftest.
$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 /* System header to define __stub macros and hopefully few prototypes,
3586 which can conflict with char $ac_func(); below. */
3588 /* Override any gcc2 internal prototype to avoid an error. */
3589 /* We use char because int might match the return type of a gcc2
3590 builtin and then its argument prototype would still apply. */
3596 /* The GNU C library defines this for functions which it implements
3597 to always fail with ENOSYS. Some functions are actually named
3598 something starting with __ and the normal name is an alias. */
3599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3607 if { (eval echo configure
:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3609 eval "ac_cv_func_$ac_func=yes"
3611 echo "configure: failed program was:" >&5
3612 cat conftest.
$ac_ext >&5
3614 eval "ac_cv_func_$ac_func=no"
3619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3620 echo "$ac_t""yes" 1>&6
3621 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3622 cat >> confdefs.h
<<EOF
3623 #define $ac_tr_func 1
3627 echo "$ac_t""no" 1>&6
3632 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3633 echo "configure:3634: checking for uid_t in sys/types.h" >&5
3634 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3637 cat > conftest.
$ac_ext <<EOF
3638 #line 3639 "configure"
3639 #include "confdefs.h"
3640 #include <sys/types.h>
3642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3643 egrep "uid_t" >/dev
/null
2>&1; then
3645 ac_cv_type_uid_t
=yes
3654 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3655 if test $ac_cv_type_uid_t = no
; then
3656 cat >> confdefs.h
<<\EOF
3660 cat >> confdefs.h
<<\EOF
3666 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3667 echo "configure:3668: checking type of array argument to getgroups" >&5
3668 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3671 if test "$cross_compiling" = yes; then
3672 ac_cv_type_getgroups
=cross
3674 cat > conftest.
$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3678 /* Thanks to Mike Rendell for this test. */
3679 #include <sys/types.h>
3682 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3687 union { gid_t gval; long lval; } val;
3690 for (i = 0; i < NGID; i++)
3691 gidset[i] = val.gval;
3692 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3694 /* Exit non-zero if getgroups seems to require an array of ints. This
3695 happens when gid_t is short but getgroups modifies an array of ints. */
3696 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3700 if { (eval echo configure
:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3702 ac_cv_type_getgroups
=gid_t
3704 echo "configure: failed program was:" >&5
3705 cat conftest.
$ac_ext >&5
3707 ac_cv_type_getgroups
=int
3712 if test $ac_cv_type_getgroups = cross
; then
3713 cat > conftest.
$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3719 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3721 ac_cv_type_getgroups
=gid_t
3724 ac_cv_type_getgroups
=int
3731 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3732 cat >> confdefs.h
<<EOF
3733 #define GETGROUPS_T $ac_cv_type_getgroups
3737 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3738 echo "configure:3739: checking for mode_t" >&5
3739 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3742 cat > conftest.
$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3745 #include <sys/types.h>
3751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3752 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3754 ac_cv_type_mode_t
=yes
3757 ac_cv_type_mode_t
=no
3762 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3763 if test $ac_cv_type_mode_t = no
; then
3764 cat >> confdefs.h
<<\EOF
3770 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3771 echo "configure:3772: checking for off_t" >&5
3772 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3775 cat > conftest.
$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3778 #include <sys/types.h>
3784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3785 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3787 ac_cv_type_off_t
=yes
3795 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3796 if test $ac_cv_type_off_t = no
; then
3797 cat >> confdefs.h
<<\EOF
3803 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3804 echo "configure:3805: checking for pid_t" >&5
3805 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3806 echo $ac_n "(cached) $ac_c" 1>&6
3808 cat > conftest.
$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3811 #include <sys/types.h>
3817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3818 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3820 ac_cv_type_pid_t
=yes
3828 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3829 if test $ac_cv_type_pid_t = no
; then
3830 cat >> confdefs.h
<<\EOF
3836 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3837 echo "configure:3838: checking return type of signal handlers" >&5
3838 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3839 echo $ac_n "(cached) $ac_c" 1>&6
3841 cat > conftest.
$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3844 #include <sys/types.h>
3850 extern "C" void (*signal (int, void (*)(int)))(int);
3852 void (*signal ()) ();
3859 if { (eval echo configure
:3860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3861 ac_cv_type_signal
=void
3863 echo "configure: failed program was:" >&5
3864 cat conftest.
$ac_ext >&5
3866 ac_cv_type_signal
=int
3871 echo "$ac_t""$ac_cv_type_signal" 1>&6
3872 cat >> confdefs.h
<<EOF
3873 #define RETSIGTYPE $ac_cv_type_signal
3877 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3878 echo "configure:3879: checking for size_t" >&5
3879 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3882 cat > conftest.
$ac_ext <<EOF
3883 #line 3884 "configure"
3884 #include "confdefs.h"
3885 #include <sys/types.h>
3891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3892 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3894 ac_cv_type_size_t
=yes
3897 ac_cv_type_size_t
=no
3902 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3903 if test $ac_cv_type_size_t = no
; then
3904 cat >> confdefs.h
<<\EOF
3905 #define size_t unsigned
3910 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3911 echo "configure:3912: checking for uid_t in sys/types.h" >&5
3912 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3915 cat > conftest.
$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3918 #include <sys/types.h>
3920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3921 egrep "uid_t" >/dev
/null
2>&1; then
3923 ac_cv_type_uid_t
=yes
3932 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3933 if test $ac_cv_type_uid_t = no
; then
3934 cat >> confdefs.h
<<\EOF
3938 cat >> confdefs.h
<<\EOF
3946 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3947 echo "configure:3948: checking whether stat file-mode macros are broken" >&5
3948 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3951 cat > conftest.
$ac_ext <<EOF
3952 #line 3953 "configure"
3953 #include "confdefs.h"
3954 #include <sys/types.h>
3955 #include <sys/stat.h>
3957 #if defined(S_ISBLK) && defined(S_IFDIR)
3958 # if S_ISBLK (S_IFDIR)
3963 #if defined(S_ISBLK) && defined(S_IFCHR)
3964 # if S_ISBLK (S_IFCHR)
3969 #if defined(S_ISLNK) && defined(S_IFREG)
3970 # if S_ISLNK (S_IFREG)
3975 #if defined(S_ISSOCK) && defined(S_IFREG)
3976 # if S_ISSOCK (S_IFREG)
3982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3983 egrep "You lose" >/dev
/null
2>&1; then
3985 ac_cv_header_stat_broken
=yes
3988 ac_cv_header_stat_broken
=no
3994 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3995 if test $ac_cv_header_stat_broken = yes; then
3996 cat >> confdefs.h
<<\EOF
3997 #define STAT_MACROS_BROKEN 1
4002 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4003 echo "configure:4004: checking whether time.h and sys/time.h may both be included" >&5
4004 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4007 cat > conftest.
$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4010 #include <sys/types.h>
4011 #include <sys/time.h>
4017 if { (eval echo configure
:4018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4019 ac_cv_header_time
=yes
4021 echo "configure: failed program was:" >&5
4022 cat conftest.
$ac_ext >&5
4024 ac_cv_header_time
=no
4029 echo "$ac_t""$ac_cv_header_time" 1>&6
4030 if test $ac_cv_header_time = yes; then
4031 cat >> confdefs.h
<<\EOF
4032 #define TIME_WITH_SYS_TIME 1
4037 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4038 echo "configure:4039: checking for st_blksize in struct stat" >&5
4039 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4042 cat > conftest.
$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4045 #include <sys/types.h>
4046 #include <sys/stat.h>
4048 struct stat s; s.st_blksize;
4051 if { (eval echo configure
:4052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4053 ac_cv_struct_st_blksize
=yes
4055 echo "configure: failed program was:" >&5
4056 cat conftest.
$ac_ext >&5
4058 ac_cv_struct_st_blksize
=no
4063 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4064 if test $ac_cv_struct_st_blksize = yes; then
4065 cat >> confdefs.h
<<\EOF
4066 #define HAVE_ST_BLKSIZE 1
4071 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
4072 echo "configure:4073: checking for st_blocks in struct stat" >&5
4073 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4076 cat > conftest.
$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 #include <sys/types.h>
4080 #include <sys/stat.h>
4082 struct stat s; s.st_blocks;
4085 if { (eval echo configure
:4086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4087 ac_cv_struct_st_blocks
=yes
4089 echo "configure: failed program was:" >&5
4090 cat conftest.
$ac_ext >&5
4092 ac_cv_struct_st_blocks
=no
4097 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
4098 if test $ac_cv_struct_st_blocks = yes; then
4099 cat >> confdefs.h
<<\EOF
4100 #define HAVE_ST_BLOCKS 1
4104 LIBOBJS
="$LIBOBJS fileblocks.${ac_objext}"
4107 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
4108 echo "configure:4109: checking for st_rdev in struct stat" >&5
4109 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
4110 echo $ac_n "(cached) $ac_c" 1>&6
4112 cat > conftest.
$ac_ext <<EOF
4113 #line 4114 "configure"
4114 #include "confdefs.h"
4115 #include <sys/types.h>
4116 #include <sys/stat.h>
4118 struct stat s; s.st_rdev;
4121 if { (eval echo configure
:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4123 ac_cv_struct_st_rdev
=yes
4125 echo "configure: failed program was:" >&5
4126 cat conftest.
$ac_ext >&5
4128 ac_cv_struct_st_rdev
=no
4133 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
4134 if test $ac_cv_struct_st_rdev = yes; then
4135 cat >> confdefs.h
<<\EOF
4136 #define HAVE_ST_RDEV 1
4141 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4142 echo "configure:4143: checking whether struct tm is in sys/time.h or time.h" >&5
4143 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4146 cat > conftest.
$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4149 #include <sys/types.h>
4152 struct tm *tp; tp->tm_sec;
4155 if { (eval echo configure
:4156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4157 ac_cv_struct_tm
=time.h
4159 echo "configure: failed program was:" >&5
4160 cat conftest.
$ac_ext >&5
4162 ac_cv_struct_tm
=sys
/time.h
4167 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4168 if test $ac_cv_struct_tm = sys
/time.h
; then
4169 cat >> confdefs.h
<<\EOF
4170 #define TM_IN_SYS_TIME 1
4175 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4176 echo "configure:4177: checking for tm_zone in struct tm" >&5
4177 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4178 echo $ac_n "(cached) $ac_c" 1>&6
4180 cat > conftest.
$ac_ext <<EOF
4181 #line 4182 "configure"
4182 #include "confdefs.h"
4183 #include <sys/types.h>
4184 #include <$ac_cv_struct_tm>
4186 struct tm tm; tm.tm_zone;
4189 if { (eval echo configure
:4190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4191 ac_cv_struct_tm_zone
=yes
4193 echo "configure: failed program was:" >&5
4194 cat conftest.
$ac_ext >&5
4196 ac_cv_struct_tm_zone
=no
4201 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4202 if test "$ac_cv_struct_tm_zone" = yes; then
4203 cat >> confdefs.h
<<\EOF
4204 #define HAVE_TM_ZONE 1
4208 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4209 echo "configure:4210: checking for tzname" >&5
4210 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4211 echo $ac_n "(cached) $ac_c" 1>&6
4213 cat > conftest.
$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4217 #ifndef tzname /* For SGI. */
4218 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4224 if { (eval echo configure
:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4226 ac_cv_var_tzname
=yes
4228 echo "configure: failed program was:" >&5
4229 cat conftest.
$ac_ext >&5
4236 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4237 if test $ac_cv_var_tzname = yes; then
4238 cat >> confdefs.h
<<\EOF
4239 #define HAVE_TZNAME 1
4247 echo $ac_n "checking for working const""... $ac_c" 1>&6
4248 echo "configure:4249: checking for working const" >&5
4249 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4252 cat > conftest.
$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4258 /* Ultrix mips cc rejects this. */
4259 typedef int charset[2]; const charset x;
4260 /* SunOS 4.1.1 cc rejects this. */
4261 char const *const *ccp;
4263 /* NEC SVR4.0.2 mips cc rejects this. */
4264 struct point {int x, y;};
4265 static struct point const zero = {0,0};
4266 /* AIX XL C 1.02.0.0 rejects this.
4267 It does not let you subtract one const X* pointer from another in an arm
4268 of an if-expression whose if-part is not a constant expression */
4269 const char *g = "string";
4270 ccp = &g + (g ? g-g : 0);
4271 /* HPUX 7.0 cc rejects these. */
4274 ccp = (char const *const *) p;
4275 { /* SCO 3.2v4 cc rejects this. */
4277 char const *s = 0 ? (char *) 0 : (char const *) 0;
4281 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4283 const int *foo = &x[0];
4286 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4287 typedef const int *iptr;
4291 { /* AIX XL C 1.02.0.0 rejects this saying
4292 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4293 struct s { int j; const int *ap[3]; };
4294 struct s *b; b->j = 5;
4296 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4302 if { (eval echo configure
:4303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4306 echo "configure: failed program was:" >&5
4307 cat conftest.
$ac_ext >&5
4314 echo "$ac_t""$ac_cv_c_const" 1>&6
4315 if test $ac_cv_c_const = no
; then
4316 cat >> confdefs.h
<<\EOF
4322 echo $ac_n "checking for inline""... $ac_c" 1>&6
4323 echo "configure:4324: checking for inline" >&5
4324 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4328 for ac_kw
in inline __inline__ __inline
; do
4329 cat > conftest.
$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4337 if { (eval echo configure
:4338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4339 ac_cv_c_inline
=$ac_kw; break
4341 echo "configure: failed program was:" >&5
4342 cat conftest.
$ac_ext >&5
4349 echo "$ac_t""$ac_cv_c_inline" 1>&6
4350 case "$ac_cv_c_inline" in
4352 no
) cat >> confdefs.h
<<\EOF
4356 *) cat >> confdefs.h
<<EOF
4357 #define inline $ac_cv_c_inline
4362 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
4363 echo "configure:4364: checking whether char is unsigned" >&5
4364 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
4365 echo $ac_n "(cached) $ac_c" 1>&6
4367 if test "$GCC" = yes; then
4368 # GCC predefines this symbol on systems where it applies.
4369 cat > conftest.
$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4372 #ifdef __CHAR_UNSIGNED__
4377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4378 egrep "yes" >/dev
/null
2>&1; then
4380 ac_cv_c_char_unsigned
=yes
4383 ac_cv_c_char_unsigned
=no
4388 if test "$cross_compiling" = yes; then
4389 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4391 cat > conftest.
$ac_ext <<EOF
4392 #line 4393 "configure"
4393 #include "confdefs.h"
4394 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
4395 #if !defined(__STDC__) || __STDC__ != 1
4399 volatile char c = 255; exit(c < 0);
4402 if { (eval echo configure
:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4404 ac_cv_c_char_unsigned
=yes
4406 echo "configure: failed program was:" >&5
4407 cat conftest.
$ac_ext >&5
4409 ac_cv_c_char_unsigned
=no
4417 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
4418 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4419 cat >> confdefs.h
<<\EOF
4420 #define __CHAR_UNSIGNED__ 1
4425 echo $ac_n "checking for long double""... $ac_c" 1>&6
4426 echo "configure:4427: checking for long double" >&5
4427 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4430 if test "$GCC" = yes; then
4431 ac_cv_c_long_double
=yes
4433 if test "$cross_compiling" = yes; then
4434 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4436 cat > conftest.
$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4440 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4441 long double foo = 0.0;
4442 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4443 exit(sizeof(long double) < sizeof(double)); }
4445 if { (eval echo configure
:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4447 ac_cv_c_long_double
=yes
4449 echo "configure: failed program was:" >&5
4450 cat conftest.
$ac_ext >&5
4452 ac_cv_c_long_double
=no
4460 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4461 if test $ac_cv_c_long_double = yes; then
4462 cat >> confdefs.h
<<\EOF
4463 #define HAVE_LONG_DOUBLE 1
4469 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4470 echo "configure:4471: checking whether byte ordering is bigendian" >&5
4471 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4472 echo $ac_n "(cached) $ac_c" 1>&6
4474 ac_cv_c_bigendian
=unknown
4475 # See if sys/param.h defines the BYTE_ORDER macro.
4476 cat > conftest.
$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4479 #include <sys/types.h>
4480 #include <sys/param.h>
4483 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4488 if { (eval echo configure
:4489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4490 # It does; now see whether it defined to BIG_ENDIAN or not.
4491 cat > conftest.
$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4494 #include <sys/types.h>
4495 #include <sys/param.h>
4498 #if BYTE_ORDER != BIG_ENDIAN
4503 if { (eval echo configure
:4504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4505 ac_cv_c_bigendian
=yes
4507 echo "configure: failed program was:" >&5
4508 cat conftest.
$ac_ext >&5
4510 ac_cv_c_bigendian
=no
4514 echo "configure: failed program was:" >&5
4515 cat conftest.
$ac_ext >&5
4518 if test $ac_cv_c_bigendian = unknown
; then
4519 if test "$cross_compiling" = yes; then
4520 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4522 cat > conftest.
$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4526 /* Are we little or big endian? From Harbison&Steele. */
4530 char c[sizeof (long)];
4533 exit (u.c[sizeof (long) - 1] == 1);
4536 if { (eval echo configure
:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4538 ac_cv_c_bigendian
=no
4540 echo "configure: failed program was:" >&5
4541 cat conftest.
$ac_ext >&5
4543 ac_cv_c_bigendian
=yes
4551 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4552 if test $ac_cv_c_bigendian = yes; then
4553 cat >> confdefs.h
<<\EOF
4554 #define WORDS_BIGENDIAN 1
4560 echo $ac_n "checking size of int *""... $ac_c" 1>&6
4561 echo "configure:4562: checking size of int *" >&5
4562 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4565 if test "$cross_compiling" = yes; then
4566 ac_cv_sizeof_int_p
=4
4568 cat > conftest.
$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4574 FILE *f=fopen("conftestval", "w");
4576 fprintf(f, "%d\n", sizeof(int *));
4580 if { (eval echo configure
:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4582 ac_cv_sizeof_int_p
=`cat conftestval`
4584 echo "configure: failed program was:" >&5
4585 cat conftest.
$ac_ext >&5
4587 ac_cv_sizeof_int_p
=0
4593 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
4594 cat >> confdefs.h
<<EOF
4595 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
4599 echo $ac_n "checking size of int""... $ac_c" 1>&6
4600 echo "configure:4601: checking size of int" >&5
4601 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4604 if test "$cross_compiling" = yes; then
4607 cat > conftest.
$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4613 FILE *f=fopen("conftestval", "w");
4615 fprintf(f, "%d\n", sizeof(int));
4619 if { (eval echo configure
:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4621 ac_cv_sizeof_int
=`cat conftestval`
4623 echo "configure: failed program was:" >&5
4624 cat conftest.
$ac_ext >&5
4632 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4633 cat >> confdefs.h
<<EOF
4634 #define SIZEOF_INT $ac_cv_sizeof_int
4638 echo $ac_n "checking size of long""... $ac_c" 1>&6
4639 echo "configure:4640: checking size of long" >&5
4640 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4641 echo $ac_n "(cached) $ac_c" 1>&6
4643 if test "$cross_compiling" = yes; then
4646 cat > conftest.
$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4652 FILE *f=fopen("conftestval", "w");
4654 fprintf(f, "%d\n", sizeof(long));
4658 if { (eval echo configure
:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4660 ac_cv_sizeof_long
=`cat conftestval`
4662 echo "configure: failed program was:" >&5
4663 cat conftest.
$ac_ext >&5
4671 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4672 cat >> confdefs.h
<<EOF
4673 #define SIZEOF_LONG $ac_cv_sizeof_long
4677 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4678 echo "configure:4679: checking size of long long" >&5
4679 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 if test "$cross_compiling" = yes; then
4683 ac_cv_sizeof_long_long
=0
4685 cat > conftest.
$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4691 FILE *f=fopen("conftestval", "w");
4693 fprintf(f, "%d\n", sizeof(long long));
4697 if { (eval echo configure
:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4699 ac_cv_sizeof_long_long
=`cat conftestval`
4701 echo "configure: failed program was:" >&5
4702 cat conftest.
$ac_ext >&5
4704 ac_cv_sizeof_long_long
=0
4710 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4711 cat >> confdefs.h
<<EOF
4712 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4720 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4721 ac_cpp
='$CXXCPP $CPPFLAGS'
4722 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4723 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4724 cross_compiling
=$ac_cv_prog_cxx_cross
4727 for ac_hdr
in iostream
4729 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4731 echo "configure:4732: checking for $ac_hdr" >&5
4732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4735 cat > conftest.
$ac_ext <<EOF
4736 #line 4737 "configure"
4737 #include "confdefs.h"
4740 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4741 { (eval echo configure
:4742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4742 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4743 if test -z "$ac_err"; then
4745 eval "ac_cv_header_$ac_safe=yes"
4748 echo "configure: failed program was:" >&5
4749 cat conftest.
$ac_ext >&5
4751 eval "ac_cv_header_$ac_safe=no"
4755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4756 echo "$ac_t""yes" 1>&6
4757 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4758 cat >> confdefs.h
<<EOF
4759 #define $ac_tr_hdr 1
4763 echo "$ac_t""no" 1>&6
4767 if test "x$HAVE_IOSTREAM" = "x" ; then
4768 cat >> confdefs.h
<<\EOF
4769 #define wxUSE_IOSTREAMH 1
4774 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
4775 echo "configure:4776: checking if C++ compiler supports bool" >&5
4776 if test "$cross_compiling" = yes; then
4777 echo "$ac_t""no assumed for cross-compilation" 1>&6
4779 cat > conftest.
$ac_ext <<EOF
4780 #line 4781 "configure"
4781 #include "confdefs.h"
4783 extern "C" void exit(int);
4795 if { (eval echo configure
:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4797 cat >> confdefs.h
<<\EOF
4800 echo "$ac_t""yes" 1>&6
4802 echo "configure: failed program was:" >&5
4803 cat conftest.
$ac_ext >&5
4805 echo "$ac_t""no" 1>&6
4811 echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6
4812 echo "configure:4813: checking if size_t and int are different types" >&5
4813 if test "$cross_compiling" = yes; then
4814 echo "$ac_t""no assumed for cross-compilation" 1>&6
4816 cat > conftest.
$ac_ext <<EOF
4817 #line 4818 "configure"
4818 #include "confdefs.h"
4820 extern "C" void exit(int);
4825 void wxFoo(int i) { }
4826 void wxFoo(size_t n) { }
4843 if { (eval echo configure
:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4845 cat >> confdefs.h
<<\EOF
4846 #define wxUSE_SIZE_T_STRING_OPERATOR 1
4848 echo "$ac_t""yes" 1>&6
4850 echo "configure: failed program was:" >&5
4851 cat conftest.
$ac_ext >&5
4853 echo "$ac_t""no" 1>&6
4860 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4861 ac_cpp
='$CPP $CPPFLAGS'
4862 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4863 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4864 cross_compiling
=$ac_cv_prog_cc_cross
4870 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4871 echo "configure:4872: checking for long file names" >&5
4872 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
4873 echo $ac_n "(cached) $ac_c" 1>&6
4875 ac_cv_sys_long_file_names
=yes
4876 # Test for long file names in all the places we know might matter:
4877 # . the current directory, where building will happen
4878 # $prefix/lib where we will be installing things
4879 # $exec_prefix/lib likewise
4880 # eval it to expand exec_prefix.
4881 # $TMPDIR if set, where it might want to write temporary files
4882 # if $TMPDIR is not set:
4883 # /tmp where it might want to write temporary files
4886 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4887 ac_tmpdirs
="$TMPDIR"
4889 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
4891 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4892 test -d $ac_dir || continue
4893 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4894 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
4895 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
4896 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
4897 if test ! -f $ac_dir/conftest9012345
|| test "$val" != 1; then
4898 ac_cv_sys_long_file_names
=no
4899 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4902 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4906 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4907 if test $ac_cv_sys_long_file_names = yes; then
4908 cat >> confdefs.h
<<\EOF
4909 #define HAVE_LONG_FILE_NAMES 1
4917 for ac_prog
in 'bison -y' byacc
4919 # Extract the first word of "$ac_prog", so it can be a program name with args.
4920 set dummy
$ac_prog; ac_word
=$2
4921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4922 echo "configure:4923: checking for $ac_word" >&5
4923 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4924 echo $ac_n "(cached) $ac_c" 1>&6
4926 if test -n "$YACC"; then
4927 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4929 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4931 for ac_dir
in $ac_dummy; do
4932 test -z "$ac_dir" && ac_dir
=.
4933 if test -f $ac_dir/$ac_word; then
4934 ac_cv_prog_YACC
="$ac_prog"
4941 YACC
="$ac_cv_prog_YACC"
4942 if test -n "$YACC"; then
4943 echo "$ac_t""$YACC" 1>&6
4945 echo "$ac_t""no" 1>&6
4948 test -n "$YACC" && break
4950 test -n "$YACC" || YACC
="yacc"
4953 # Extract the first word of "flex", so it can be a program name with args.
4954 set dummy flex
; ac_word
=$2
4955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4956 echo "configure:4957: checking for $ac_word" >&5
4957 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4958 echo $ac_n "(cached) $ac_c" 1>&6
4960 if test -n "$LEX"; then
4961 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4963 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4965 for ac_dir
in $ac_dummy; do
4966 test -z "$ac_dir" && ac_dir
=.
4967 if test -f $ac_dir/$ac_word; then
4968 ac_cv_prog_LEX
="flex"
4973 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4976 LEX
="$ac_cv_prog_LEX"
4977 if test -n "$LEX"; then
4978 echo "$ac_t""$LEX" 1>&6
4980 echo "$ac_t""no" 1>&6
4983 if test -z "$LEXLIB"
4989 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4990 echo "configure:4991: checking for yywrap in -l$ac_lib" >&5
4991 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4993 echo $ac_n "(cached) $ac_c" 1>&6
4995 ac_save_LIBS
="$LIBS"
4996 LIBS
="-l$ac_lib $LIBS"
4997 cat > conftest.
$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5000 /* Override any gcc2 internal prototype to avoid an error. */
5001 /* We use char because int might match the return type of a gcc2
5002 builtin and then its argument prototype would still apply. */
5009 if { (eval echo configure
:5010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5011 eval "ac_cv_lib_$ac_lib_var=yes"
5013 echo "configure: failed program was:" >&5
5014 cat conftest.
$ac_ext >&5
5016 eval "ac_cv_lib_$ac_lib_var=no"
5019 LIBS
="$ac_save_LIBS"
5022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5023 echo "$ac_t""yes" 1>&6
5026 echo "$ac_t""no" 1>&6
5031 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
5032 echo "configure:5033: checking lex output file root" >&5
5033 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5036 # The minimal lex program is just a single line: %%. But some broken lexes
5037 # (Solaris, I think it was) want two %% lines, so accommodate them.
5040 if test -f lex.yy.c
; then
5041 ac_cv_prog_lex_root
=lex.yy
5042 elif test -f lexyy.c
; then
5043 ac_cv_prog_lex_root
=lexyy
5045 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
5049 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
5050 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
5052 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
5053 echo "configure:5054: checking whether yytext is a pointer" >&5
5054 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
5055 echo $ac_n "(cached) $ac_c" 1>&6
5057 # POSIX says lex can declare yytext either as a pointer or an array; the
5058 # default is implementation-dependent. Figure out which it is, since
5059 # not all implementations provide the %pointer and %array declarations.
5060 ac_cv_prog_lex_yytext_pointer
=no
5061 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5062 ac_save_LIBS
="$LIBS"
5063 LIBS
="$LIBS $LEXLIB"
5064 cat > conftest.
$ac_ext <<EOF
5065 #line 5066 "configure"
5066 #include "confdefs.h"
5067 `cat $LEX_OUTPUT_ROOT.c`
5072 if { (eval echo configure
:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5074 ac_cv_prog_lex_yytext_pointer
=yes
5076 echo "configure: failed program was:" >&5
5077 cat conftest.
$ac_ext >&5
5080 LIBS
="$ac_save_LIBS"
5081 rm -f "${LEX_OUTPUT_ROOT}.c"
5085 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
5086 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5087 cat >> confdefs.h
<<\EOF
5088 #define YYTEXT_POINTER 1
5096 for ac_func
in dlopen
5098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5099 echo "configure:5100: checking for $ac_func" >&5
5100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5101 echo $ac_n "(cached) $ac_c" 1>&6
5103 cat > conftest.
$ac_ext <<EOF
5104 #line 5105 "configure"
5105 #include "confdefs.h"
5106 /* System header to define __stub macros and hopefully few prototypes,
5107 which can conflict with char $ac_func(); below. */
5109 /* Override any gcc2 internal prototype to avoid an error. */
5110 /* We use char because int might match the return type of a gcc2
5111 builtin and then its argument prototype would still apply. */
5117 /* The GNU C library defines this for functions which it implements
5118 to always fail with ENOSYS. Some functions are actually named
5119 something starting with __ and the normal name is an alias. */
5120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5128 if { (eval echo configure
:5129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5130 eval "ac_cv_func_$ac_func=yes"
5132 echo "configure: failed program was:" >&5
5133 cat conftest.
$ac_ext >&5
5135 eval "ac_cv_func_$ac_func=no"
5140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5141 echo "$ac_t""yes" 1>&6
5142 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5143 cat >> confdefs.h
<<EOF
5144 #define $ac_tr_func 1
5146 cat >> confdefs.h
<<\EOF
5147 #define HAVE_LIBDL 1
5151 echo "$ac_t""no" 1>&6
5152 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5153 echo "configure:5154: checking for dlopen in -ldl" >&5
5154 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5158 ac_save_LIBS
="$LIBS"
5160 cat > conftest.
$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5163 /* Override any gcc2 internal prototype to avoid an error. */
5164 /* We use char because int might match the return type of a gcc2
5165 builtin and then its argument prototype would still apply. */
5172 if { (eval echo configure
:5173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5174 eval "ac_cv_lib_$ac_lib_var=yes"
5176 echo "configure: failed program was:" >&5
5177 cat conftest.
$ac_ext >&5
5179 eval "ac_cv_lib_$ac_lib_var=no"
5182 LIBS
="$ac_save_LIBS"
5185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5186 echo "$ac_t""yes" 1>&6
5187 cat >> confdefs.h
<<\EOF
5188 #define HAVE_LIBDL 1
5192 echo "$ac_t""no" 1>&6
5193 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
5194 echo "configure:5195: checking for dld_link in -ldld" >&5
5195 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
5196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5199 ac_save_LIBS
="$LIBS"
5201 cat > conftest.
$ac_ext <<EOF
5202 #line 5203 "configure"
5203 #include "confdefs.h"
5204 /* Override any gcc2 internal prototype to avoid an error. */
5205 /* We use char because int might match the return type of a gcc2
5206 builtin and then its argument prototype would still apply. */
5213 if { (eval echo configure
:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5215 eval "ac_cv_lib_$ac_lib_var=yes"
5217 echo "configure: failed program was:" >&5
5218 cat conftest.
$ac_ext >&5
5220 eval "ac_cv_lib_$ac_lib_var=no"
5223 LIBS
="$ac_save_LIBS"
5226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5227 echo "$ac_t""yes" 1>&6
5228 cat >> confdefs.h
<<\EOF
5233 echo "$ac_t""no" 1>&6
5234 for ac_func
in shl_load
5236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5237 echo "configure:5238: checking for $ac_func" >&5
5238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5239 echo $ac_n "(cached) $ac_c" 1>&6
5241 cat > conftest.
$ac_ext <<EOF
5242 #line 5243 "configure"
5243 #include "confdefs.h"
5244 /* System header to define __stub macros and hopefully few prototypes,
5245 which can conflict with char $ac_func(); below. */
5247 /* Override any gcc2 internal prototype to avoid an error. */
5248 /* We use char because int might match the return type of a gcc2
5249 builtin and then its argument prototype would still apply. */
5255 /* The GNU C library defines this for functions which it implements
5256 to always fail with ENOSYS. Some functions are actually named
5257 something starting with __ and the normal name is an alias. */
5258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5266 if { (eval echo configure
:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5268 eval "ac_cv_func_$ac_func=yes"
5270 echo "configure: failed program was:" >&5
5271 cat conftest.
$ac_ext >&5
5273 eval "ac_cv_func_$ac_func=no"
5278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5279 echo "$ac_t""yes" 1>&6
5280 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5281 cat >> confdefs.h
<<EOF
5282 #define $ac_tr_func 1
5284 cat >> confdefs.h
<<\EOF
5285 #define HAVE_SHL_LOAD 1
5289 echo "$ac_t""no" 1>&6
5305 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
5306 echo "configure:5307: checking for underscore before symbols" >&5
5307 if eval "test \"`echo '$''{'libltdl_cv_uscore'+set}'`\" = set"; then
5308 echo $ac_n "(cached) $ac_c" 1>&6
5311 echo "main(){int i=1;} fnord(){int i=23; int ltuae=42;}" > conftest.c
5312 ${CC} -c conftest.c
> /dev
/null
5313 if (nm conftest.o
| grep _fnord
) > /dev
/null
; then
5314 libltdl_cv_uscore
=yes
5316 libltdl_cv_uscore
=no
5322 echo "$ac_t""$libltdl_cv_uscore" 1>&6
5324 if test x
"$libltdl_cv_uscore" = xyes
; then
5325 if test x
"$ac_cv_func_dlopen" = xyes
||
5326 test x
"$ac_cv_lib_dl_dlopen" = xyes
; then
5327 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
5328 echo "configure:5329: checking whether we have to add an underscore for dlsym" >&5
5329 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
5330 echo $ac_n "(cached) $ac_c" 1>&6
5332 if test "$cross_compiling" = yes; then
5333 libltdl_cv_need_uscore
=no
5336 cat > conftest.
$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5342 fnord() { int i=42;}
5343 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
5344 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
5345 if(ptr1 && !ptr2) exit(0); } exit(1); }
5348 if { (eval echo configure
:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5350 libltdl_cv_need_uscore
=no
5352 echo "configure: failed program was:" >&5
5353 cat conftest.
$ac_ext >&5
5355 libltdl_cv_need_uscore
=yes
5362 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
5366 if test x
"$libltdl_cv_need_uscore" = xyes
; then
5367 cat >> confdefs.h
<<\EOF
5368 #define NEED_USCORE 1
5374 for ac_func
in strerror
5376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5377 echo "configure:5378: checking for $ac_func" >&5
5378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
5381 cat > conftest.
$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5384 /* System header to define __stub macros and hopefully few prototypes,
5385 which can conflict with char $ac_func(); below. */
5387 /* Override any gcc2 internal prototype to avoid an error. */
5388 /* We use char because int might match the return type of a gcc2
5389 builtin and then its argument prototype would still apply. */
5395 /* The GNU C library defines this for functions which it implements
5396 to always fail with ENOSYS. Some functions are actually named
5397 something starting with __ and the normal name is an alias. */
5398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5406 if { (eval echo configure
:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5408 eval "ac_cv_func_$ac_func=yes"
5410 echo "configure: failed program was:" >&5
5411 cat conftest.
$ac_ext >&5
5413 eval "ac_cv_func_$ac_func=no"
5418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5419 echo "$ac_t""yes" 1>&6
5420 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5421 cat >> confdefs.h
<<EOF
5422 #define $ac_tr_func 1
5426 echo "$ac_t""no" 1>&6
5432 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
5433 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
5437 # Make sure we can run config.sub.
5438 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
5439 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5442 echo $ac_n "checking host system type""... $ac_c" 1>&6
5443 echo "configure:5444: checking host system type" >&5
5446 case "$host_alias" in
5450 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5451 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5453 *) host_alias
=$nonopt ;;
5457 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5458 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5459 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5460 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5461 echo "$ac_t""$host" 1>&6
5464 configuration
=$host_alias
5486 cat >> confdefs.h
<<\EOF
5490 case "${canonical}" in
5493 cat >> confdefs.h
<<\EOF
5500 cat >> confdefs.h
<<\EOF
5505 if test "x$TMP" = "xalpha"
5508 cat >> confdefs.h
<<\EOF
5514 *-*-irix5* | *-*-irix6* )
5517 cat >> confdefs.h
<<\EOF
5521 cat >> confdefs.h
<<\EOF
5530 cat >> confdefs.h
<<\EOF
5534 cat >> confdefs.h
<<\EOF
5535 #define __SOLARIS__ 1
5538 cat >> confdefs.h
<<\EOF
5547 cat >> confdefs.h
<<\EOF
5551 cat >> confdefs.h
<<\EOF
5555 cat >> confdefs.h
<<\EOF
5560 *-*-freebsd* | *-*-netbsd*)
5563 cat >> confdefs.h
<<\EOF
5564 #define __FREEBSD__ 1
5567 cat >> confdefs.h
<<\EOF
5575 cat >> confdefs.h
<<\EOF
5579 cat >> confdefs.h
<<\EOF
5587 cat >> confdefs.h
<<\EOF
5591 cat >> confdefs.h
<<\EOF
5599 cat >> confdefs.h
<<\EOF
5603 cat >> confdefs.h
<<\EOF
5612 cat >> confdefs.h
<<\EOF
5616 cat >> confdefs.h
<<\EOF
5620 cat >> confdefs.h
<<\EOF
5626 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
5631 rm -f ${OSTYPE}.system.cache.tmp
5632 touch ${OSTYPE}.system.cache.tmp
5633 touch ${OSTYPE}.system.cache
5638 DEFAULT_wxUSE_MOTIF
=0
5640 DEFAULT_wxUSE_THREADS
=0
5642 DEFAULT_wxUSE_SHARED
=1
5643 DEFAULT_wxUSE_OPTIMISE
=1
5644 DEFAULT_wxUSE_PROFILE
=0
5645 DEFAULT_wxUSE_DEBUG_FLAG
=0
5646 DEFAULT_wxUSE_DEBUG_INFO
=0
5647 DEFAULT_wxUSE_MEM_TRACING
=0
5648 DEFAULT_wxUSE_DMALLOC
=0
5649 DEFAULT_wxUSE_APPLE_IEEE
=1
5650 DEFAULT_wxUSE_IOSTREAMH
=1
5652 DEFAULT_wxUSE_ZLIB
=1
5653 DEFAULT_wxUSE_LIBPNG
=1
5654 DEFAULT_wxUSE_LIBJPEG
=1
5655 DEFAULT_wxUSE_ODBC
=1
5657 DEFAULT_wxUSE_TIMEDATE
=1
5658 DEFAULT_wxUSE_INTL
=1
5659 DEFAULT_wxUSE_CONFIG
=1
5660 DEFAULT_wxUSE_STREAMS
=1
5661 DEFAULT_wxUSE_SOCKETS
=1
5662 DEFAULT_wxUSE_SERIAL
=1
5663 DEFAULT_wxUSE_DYNLIB_CLASS
=1
5665 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
=1
5666 DEFAULT_WX_NORMALIZED_PS_FONTS
=1
5667 DEFAULT_wxUSE_POSTSCRIPT
=1
5670 DEFAULT_wxUSE_RESOURCES
=1
5671 DEFAULT_wxUSE_CLIPBOARD
=1
5672 DEFAULT_wxUSE_TOOLTIPS
=1
5673 DEFAULT_wxUSE_DRAG_AND_DROP
=1
5674 DEFAULT_wxUSE_SPLINE
=1
5676 DEFAULT_wxUSE_MDI_ARCHITECTURE
=1
5677 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
=1
5678 DEFAULT_wxUSE_PRINTING_ARCHITECTURE
=1
5680 DEFAULT_wxUSE_PROLOGIO
=1
5681 DEFAULT_wxUSE_WX_RESOURCES
=1
5683 DEFAULT_wxUSE_HELP
=1
5685 DEFAULT_wxUSE_UNICODE
=0
5686 DEFAULT_wxUSE_WCSRTOMBS
=0
5690 echo $ac_n "checking "for gtk
"""... $ac_c" 1>&6
5691 echo "configure:5692: checking "for gtk
"" >&5
5692 # Check whether --with-gtk or --without-gtk was given.
5693 if test "${with_gtk+set}" = set; then
5695 if test "x$with_gtk" = xyes
; then
5696 ac_cv_use_gtk
='wxUSE_GTK="1"'
5698 ac_cv_use_gtk
='wxUSE_GTK="0"'
5702 LINE
=`grep "wxUSE_GTK" ${OSTYPE}.system.cache`
5703 if test "x$LINE" != x
; then
5704 eval "DEFAULT_$LINE"
5706 ac_cv_use_gtk
='wxUSE_GTK='$DEFAULT_wxUSE_GTK
5710 eval "$ac_cv_use_gtk"
5711 echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp
5712 if test "$wxUSE_GTK" = 1; then
5713 echo "$ac_t""yes" 1>&6
5715 echo "$ac_t""no" 1>&6
5720 echo $ac_n "checking "for qt
"""... $ac_c" 1>&6
5721 echo "configure:5722: checking "for qt
"" >&5
5722 # Check whether --with-qt or --without-qt was given.
5723 if test "${with_qt+set}" = set; then
5725 if test "x$with_qt" = xyes
; then
5726 ac_cv_use_qt
='wxUSE_QT="1"'
5728 ac_cv_use_qt
='wxUSE_QT="0"'
5732 LINE
=`grep "wxUSE_QT" ${OSTYPE}.system.cache`
5733 if test "x$LINE" != x
; then
5734 eval "DEFAULT_$LINE"
5736 ac_cv_use_qt
='wxUSE_QT='$DEFAULT_wxUSE_QT
5740 eval "$ac_cv_use_qt"
5741 echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp
5742 if test "$wxUSE_QT" = 1; then
5743 echo "$ac_t""yes" 1>&6
5745 echo "$ac_t""no" 1>&6
5750 echo $ac_n "checking "for motif
"""... $ac_c" 1>&6
5751 echo "configure:5752: checking "for motif
"" >&5
5752 # Check whether --with-motif or --without-motif was given.
5753 if test "${with_motif+set}" = set; then
5754 withval
="$with_motif"
5755 if test "x$with_motif" = xyes
; then
5756 ac_cv_use_motif
='wxUSE_MOTIF="1"'
5758 ac_cv_use_motif
='wxUSE_MOTIF="0"'
5762 LINE
=`grep "wxUSE_MOTIF" ${OSTYPE}.system.cache`
5763 if test "x$LINE" != x
; then
5764 eval "DEFAULT_$LINE"
5766 ac_cv_use_motif
='wxUSE_MOTIF='$DEFAULT_wxUSE_MOTIF
5770 eval "$ac_cv_use_motif"
5771 echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp
5772 if test "$wxUSE_MOTIF" = 1; then
5773 echo "$ac_t""yes" 1>&6
5775 echo "$ac_t""no" 1>&6
5781 echo $ac_n "checking "for shared
"""... $ac_c" 1>&6
5782 echo "configure:5783: checking "for shared
"" >&5
5783 # Check whether --with-shared or --without-shared was given.
5784 if test "${with_shared+set}" = set; then
5785 withval
="$with_shared"
5786 if test "x$with_shared" = xyes
; then
5787 ac_cv_use_shared
='wxUSE_SHARED="1"'
5789 ac_cv_use_shared
='wxUSE_SHARED="0"'
5793 LINE
=`grep "wxUSE_SHARED" ${OSTYPE}.system.cache`
5794 if test "x$LINE" != x
; then
5795 eval "DEFAULT_$LINE"
5797 ac_cv_use_shared
='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
5801 eval "$ac_cv_use_shared"
5802 echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
5803 if test "$wxUSE_SHARED" = 1; then
5804 echo "$ac_t""yes" 1>&6
5806 echo "$ac_t""no" 1>&6
5811 echo $ac_n "checking "for optimise
"""... $ac_c" 1>&6
5812 echo "configure:5813: checking "for optimise
"" >&5
5813 # Check whether --with-optimise or --without-optimise was given.
5814 if test "${with_optimise+set}" = set; then
5815 withval
="$with_optimise"
5816 if test "x$with_optimise" = xyes
; then
5817 ac_cv_use_optimise
='wxUSE_OPTIMISE="1"'
5819 ac_cv_use_optimise
='wxUSE_OPTIMISE="0"'
5823 LINE
=`grep "wxUSE_OPTIMISE" ${OSTYPE}.system.cache`
5824 if test "x$LINE" != x
; then
5825 eval "DEFAULT_$LINE"
5827 ac_cv_use_optimise
='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
5831 eval "$ac_cv_use_optimise"
5832 echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
5833 if test "$wxUSE_OPTIMISE" = 1; then
5834 echo "$ac_t""yes" 1>&6
5836 echo "$ac_t""no" 1>&6
5841 echo $ac_n "checking "for debug_flag
"""... $ac_c" 1>&6
5842 echo "configure:5843: checking "for debug_flag
"" >&5
5843 # Check whether --with-debug_flag or --without-debug_flag was given.
5844 if test "${with_debug_flag+set}" = set; then
5845 withval
="$with_debug_flag"
5846 if test "x$with_debug_flag" = xyes
; then
5847 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="1"'
5849 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="0"'
5853 LINE
=`grep "wxUSE_DEBUG_FLAG" ${OSTYPE}.system.cache`
5854 if test "x$LINE" != x
; then
5855 eval "DEFAULT_$LINE"
5857 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
5861 eval "$ac_cv_use_debug_flag"
5862 echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
5863 if test "$wxUSE_DEBUG_FLAG" = 1; then
5864 echo "$ac_t""yes" 1>&6
5866 echo "$ac_t""no" 1>&6
5871 echo $ac_n "checking "for debug_info
"""... $ac_c" 1>&6
5872 echo "configure:5873: checking "for debug_info
"" >&5
5873 # Check whether --with-debug_info or --without-debug_info was given.
5874 if test "${with_debug_info+set}" = set; then
5875 withval
="$with_debug_info"
5876 if test "x$with_debug_info" = xyes
; then
5877 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="1"'
5879 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="0"'
5883 LINE
=`grep "wxUSE_DEBUG_INFO" ${OSTYPE}.system.cache`
5884 if test "x$LINE" != x
; then
5885 eval "DEFAULT_$LINE"
5887 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
5891 eval "$ac_cv_use_debug_info"
5892 echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
5893 if test "$wxUSE_DEBUG_INFO" = 1; then
5894 echo "$ac_t""yes" 1>&6
5896 echo "$ac_t""no" 1>&6
5901 echo $ac_n "checking "for debug_gdb
"""... $ac_c" 1>&6
5902 echo "configure:5903: checking "for debug_gdb
"" >&5
5903 # Check whether --with-debug_gdb or --without-debug_gdb was given.
5904 if test "${with_debug_gdb+set}" = set; then
5905 withval
="$with_debug_gdb"
5906 if test "x$with_debug_gdb" = xyes
; then
5907 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="1"'
5909 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="0"'
5913 LINE
=`grep "wxUSE_DEBUG_GDB" ${OSTYPE}.system.cache`
5914 if test "x$LINE" != x
; then
5915 eval "DEFAULT_$LINE"
5917 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
5921 eval "$ac_cv_use_debug_gdb"
5922 echo $ac_cv_use_debug_gdb >> ${OSTYPE}.system.cache.tmp
5923 if test "$wxUSE_DEBUG_GDB" = 1; then
5924 echo "$ac_t""yes" 1>&6
5926 echo "$ac_t""no" 1>&6
5931 echo $ac_n "checking "for mem_tracing
"""... $ac_c" 1>&6
5932 echo "configure:5933: checking "for mem_tracing
"" >&5
5933 # Check whether --with-mem_tracing or --without-mem_tracing was given.
5934 if test "${with_mem_tracing+set}" = set; then
5935 withval
="$with_mem_tracing"
5936 if test "x$with_mem_tracing" = xyes
; then
5937 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="1"'
5939 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="0"'
5943 LINE
=`grep "wxUSE_MEM_TRACING" ${OSTYPE}.system.cache`
5944 if test "x$LINE" != x
; then
5945 eval "DEFAULT_$LINE"
5947 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
5951 eval "$ac_cv_use_mem_tracing"
5952 echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
5953 if test "$wxUSE_MEM_TRACING" = 1; then
5954 echo "$ac_t""yes" 1>&6
5956 echo "$ac_t""no" 1>&6
5961 echo $ac_n "checking "for dmalloc
"""... $ac_c" 1>&6
5962 echo "configure:5963: checking "for dmalloc
"" >&5
5963 # Check whether --with-dmalloc or --without-dmalloc was given.
5964 if test "${with_dmalloc+set}" = set; then
5965 withval
="$with_dmalloc"
5966 if test "x$with_dmalloc" = xyes
; then
5967 ac_cv_use_dmalloc
='wxUSE_DMALLOC="1"'
5969 ac_cv_use_dmalloc
='wxUSE_DMALLOC="0"'
5973 LINE
=`grep "wxUSE_DMALLOC" ${OSTYPE}.system.cache`
5974 if test "x$LINE" != x
; then
5975 eval "DEFAULT_$LINE"
5977 ac_cv_use_dmalloc
='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
5981 eval "$ac_cv_use_dmalloc"
5982 echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp
5983 if test "$wxUSE_DMALLOC" = 1; then
5984 echo "$ac_t""yes" 1>&6
5986 echo "$ac_t""no" 1>&6
5991 echo $ac_n "checking "for profile
"""... $ac_c" 1>&6
5992 echo "configure:5993: checking "for profile
"" >&5
5993 # Check whether --with-profile or --without-profile was given.
5994 if test "${with_profile+set}" = set; then
5995 withval
="$with_profile"
5996 if test "x$with_profile" = xyes
; then
5997 ac_cv_use_profile
='wxUSE_PROFILE="1"'
5999 ac_cv_use_profile
='wxUSE_PROFILE="0"'
6003 LINE
=`grep "wxUSE_PROFILE" ${OSTYPE}.system.cache`
6004 if test "x$LINE" != x
; then
6005 eval "DEFAULT_$LINE"
6007 ac_cv_use_profile
='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
6011 eval "$ac_cv_use_profile"
6012 echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
6013 if test "$wxUSE_PROFILE" = 1; then
6014 echo "$ac_t""yes" 1>&6
6016 echo "$ac_t""no" 1>&6
6021 echo $ac_n "checking "for apple_ieee
"""... $ac_c" 1>&6
6022 echo "configure:6023: checking "for apple_ieee
"" >&5
6023 # Check whether --with-apple_ieee or --without-apple_ieee was given.
6024 if test "${with_apple_ieee+set}" = set; then
6025 withval
="$with_apple_ieee"
6026 if test "x$with_apple_ieee" = xyes
; then
6027 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="1"'
6029 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="0"'
6033 LINE
=`grep "wxUSE_APPLE_IEEE" ${OSTYPE}.system.cache`
6034 if test "x$LINE" != x
; then
6035 eval "DEFAULT_$LINE"
6037 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
6041 eval "$ac_cv_use_apple_ieee"
6042 echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp
6043 if test "$wxUSE_APPLE_IEEE" = 1; then
6044 echo "$ac_t""yes" 1>&6
6046 echo "$ac_t""no" 1>&6
6051 echo $ac_n "checking "for threads
"""... $ac_c" 1>&6
6052 echo "configure:6053: checking "for threads
"" >&5
6053 # Check whether --with-threads or --without-threads was given.
6054 if test "${with_threads+set}" = set; then
6055 withval
="$with_threads"
6056 if test "x$with_threads" = xyes
; then
6057 ac_cv_use_threads
='wxUSE_THREADS="1"'
6059 ac_cv_use_threads
='wxUSE_THREADS="0"'
6063 LINE
=`grep "wxUSE_THREADS" ${OSTYPE}.system.cache`
6064 if test "x$LINE" != x
; then
6065 eval "DEFAULT_$LINE"
6067 ac_cv_use_threads
='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6071 eval "$ac_cv_use_threads"
6072 echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
6073 if test "$wxUSE_THREADS" = 1; then
6074 echo "$ac_t""yes" 1>&6
6076 echo "$ac_t""no" 1>&6
6081 echo $ac_n "checking "for dynlib
"""... $ac_c" 1>&6
6082 echo "configure:6083: checking "for dynlib
"" >&5
6083 # Check whether --with-dynlib or --without-dynlib was given.
6084 if test "${with_dynlib+set}" = set; then
6085 withval
="$with_dynlib"
6086 if test "x$with_dynlib" = xyes
; then
6087 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="1"'
6089 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="0"'
6093 LINE
=`grep "wxUSE_DYNLIB_CLASS" ${OSTYPE}.system.cache`
6094 if test "x$LINE" != x
; then
6095 eval "DEFAULT_$LINE"
6097 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
6101 eval "$ac_cv_use_dynlib"
6102 echo $ac_cv_use_dynlib >> ${OSTYPE}.system.cache.tmp
6103 if test "$wxUSE_DYNLIB_CLASS" = 1; then
6104 echo "$ac_t""yes" 1>&6
6106 echo "$ac_t""no" 1>&6
6112 echo $ac_n "checking "for zlib
"""... $ac_c" 1>&6
6113 echo "configure:6114: checking "for zlib
"" >&5
6114 # Check whether --with-zlib or --without-zlib was given.
6115 if test "${with_zlib+set}" = set; then
6116 withval
="$with_zlib"
6117 if test "x$with_zlib" = xyes
; then
6118 ac_cv_use_zlib
='wxUSE_ZLIB="1"'
6120 ac_cv_use_zlib
='wxUSE_ZLIB="0"'
6124 LINE
=`grep "wxUSE_ZLIB" ${OSTYPE}.system.cache`
6125 if test "x$LINE" != x
; then
6126 eval "DEFAULT_$LINE"
6128 ac_cv_use_zlib
='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
6132 eval "$ac_cv_use_zlib"
6133 echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
6134 if test "$wxUSE_ZLIB" = 1; then
6135 echo "$ac_t""yes" 1>&6
6137 echo "$ac_t""no" 1>&6
6142 echo $ac_n "checking "for libpng
"""... $ac_c" 1>&6
6143 echo "configure:6144: checking "for libpng
"" >&5
6144 # Check whether --with-libpng or --without-libpng was given.
6145 if test "${with_libpng+set}" = set; then
6146 withval
="$with_libpng"
6147 if test "x$with_libpng" = xyes
; then
6148 ac_cv_use_libpng
='wxUSE_LIBPNG="1"'
6150 ac_cv_use_libpng
='wxUSE_LIBPNG="0"'
6154 LINE
=`grep "wxUSE_LIBPNG" ${OSTYPE}.system.cache`
6155 if test "x$LINE" != x
; then
6156 eval "DEFAULT_$LINE"
6158 ac_cv_use_libpng
='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
6162 eval "$ac_cv_use_libpng"
6163 echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
6164 if test "$wxUSE_LIBPNG" = 1; then
6165 echo "$ac_t""yes" 1>&6
6167 echo "$ac_t""no" 1>&6
6172 echo $ac_n "checking "for libjpeg
"""... $ac_c" 1>&6
6173 echo "configure:6174: checking "for libjpeg
"" >&5
6174 # Check whether --with-libjpeg or --without-libjpeg was given.
6175 if test "${with_libjpeg+set}" = set; then
6176 withval
="$with_libjpeg"
6177 if test "x$with_libjpeg" = xyes
; then
6178 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="1"'
6180 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="0"'
6184 LINE
=`grep "wxUSE_LIBJPEG" ${OSTYPE}.system.cache`
6185 if test "x$LINE" != x
; then
6186 eval "DEFAULT_$LINE"
6188 ac_cv_use_libjpeg
='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
6192 eval "$ac_cv_use_libjpeg"
6193 echo $ac_cv_use_libjpeg >> ${OSTYPE}.system.cache.tmp
6194 if test "$wxUSE_LIBJPEG" = 1; then
6195 echo "$ac_t""yes" 1>&6
6197 echo "$ac_t""no" 1>&6
6202 echo $ac_n "checking "for odbc
"""... $ac_c" 1>&6
6203 echo "configure:6204: checking "for odbc
"" >&5
6204 # Check whether --with-odbc or --without-odbc was given.
6205 if test "${with_odbc+set}" = set; then
6206 withval
="$with_odbc"
6207 if test "x$with_odbc" = xyes
; then
6208 ac_cv_use_odbc
='wxUSE_ODBC="1"'
6210 ac_cv_use_odbc
='wxUSE_ODBC="0"'
6214 LINE
=`grep "wxUSE_ODBC" ${OSTYPE}.system.cache`
6215 if test "x$LINE" != x
; then
6216 eval "DEFAULT_$LINE"
6218 ac_cv_use_odbc
='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
6222 eval "$ac_cv_use_odbc"
6223 echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp
6224 if test "$wxUSE_ODBC" = 1; then
6225 echo "$ac_t""yes" 1>&6
6227 echo "$ac_t""no" 1>&6
6233 echo $ac_n "checking "for timedate
"""... $ac_c" 1>&6
6234 echo "configure:6235: checking "for timedate
"" >&5
6235 # Check whether --with-timedate or --without-timedate was given.
6236 if test "${with_timedate+set}" = set; then
6237 withval
="$with_timedate"
6238 if test "x$with_timedate" = xyes
; then
6239 ac_cv_use_timedate
='wxUSE_TIMEDATE="1"'
6241 ac_cv_use_timedate
='wxUSE_TIMEDATE="0"'
6245 LINE
=`grep "wxUSE_TIMEDATE" ${OSTYPE}.system.cache`
6246 if test "x$LINE" != x
; then
6247 eval "DEFAULT_$LINE"
6249 ac_cv_use_timedate
='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
6253 eval "$ac_cv_use_timedate"
6254 echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
6255 if test "$wxUSE_TIMEDATE" = 1; then
6256 echo "$ac_t""yes" 1>&6
6258 echo "$ac_t""no" 1>&6
6263 echo $ac_n "checking "for intl
"""... $ac_c" 1>&6
6264 echo "configure:6265: checking "for intl
"" >&5
6265 # Check whether --with-intl or --without-intl was given.
6266 if test "${with_intl+set}" = set; then
6267 withval
="$with_intl"
6268 if test "x$with_intl" = xyes
; then
6269 ac_cv_use_intl
='wxUSE_INTL="1"'
6271 ac_cv_use_intl
='wxUSE_INTL="0"'
6275 LINE
=`grep "wxUSE_INTL" ${OSTYPE}.system.cache`
6276 if test "x$LINE" != x
; then
6277 eval "DEFAULT_$LINE"
6279 ac_cv_use_intl
='wxUSE_INTL='$DEFAULT_wxUSE_INTL
6283 eval "$ac_cv_use_intl"
6284 echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp
6285 if test "$wxUSE_INTL" = 1; then
6286 echo "$ac_t""yes" 1>&6
6288 echo "$ac_t""no" 1>&6
6293 echo $ac_n "checking "for config
"""... $ac_c" 1>&6
6294 echo "configure:6295: checking "for config
"" >&5
6295 # Check whether --with-config or --without-config was given.
6296 if test "${with_config+set}" = set; then
6297 withval
="$with_config"
6298 if test "x$with_config" = xyes
; then
6299 ac_cv_use_config
='wxUSE_CONFIG="1"'
6301 ac_cv_use_config
='wxUSE_CONFIG="0"'
6305 LINE
=`grep "wxUSE_CONFIG" ${OSTYPE}.system.cache`
6306 if test "x$LINE" != x
; then
6307 eval "DEFAULT_$LINE"
6309 ac_cv_use_config
='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
6313 eval "$ac_cv_use_config"
6314 echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp
6315 if test "$wxUSE_CONFIG" = 1; then
6316 echo "$ac_t""yes" 1>&6
6318 echo "$ac_t""no" 1>&6
6323 echo $ac_n "checking "for streams
"""... $ac_c" 1>&6
6324 echo "configure:6325: checking "for streams
"" >&5
6325 # Check whether --with-streams or --without-streams was given.
6326 if test "${with_streams+set}" = set; then
6327 withval
="$with_streams"
6328 if test "x$with_streams" = xyes
; then
6329 ac_cv_use_streams
='wxUSE_STREAMS="1"'
6331 ac_cv_use_streams
='wxUSE_STREAMS="0"'
6335 LINE
=`grep "wxUSE_STREAMS" ${OSTYPE}.system.cache`
6336 if test "x$LINE" != x
; then
6337 eval "DEFAULT_$LINE"
6339 ac_cv_use_streams
='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6343 eval "$ac_cv_use_streams"
6344 echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp
6345 if test "$wxUSE_STREAMS" = 1; then
6346 echo "$ac_t""yes" 1>&6
6348 echo "$ac_t""no" 1>&6
6353 echo $ac_n "checking "for serial
"""... $ac_c" 1>&6
6354 echo "configure:6355: checking "for serial
"" >&5
6355 # Check whether --with-serial or --without-serial was given.
6356 if test "${with_serial+set}" = set; then
6357 withval
="$with_serial"
6358 if test "x$with_serial" = xyes
; then
6359 ac_cv_use_serial
='wxUSE_SERIAL="1"'
6361 ac_cv_use_serial
='wxUSE_SERIAL="0"'
6365 LINE
=`grep "wxUSE_SERIAL" ${OSTYPE}.system.cache`
6366 if test "x$LINE" != x
; then
6367 eval "DEFAULT_$LINE"
6369 ac_cv_use_serial
='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
6373 eval "$ac_cv_use_serial"
6374 echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp
6375 if test "$wxUSE_SERIAL" = 1; then
6376 echo "$ac_t""yes" 1>&6
6378 echo "$ac_t""no" 1>&6
6383 echo $ac_n "checking "for sockets
"""... $ac_c" 1>&6
6384 echo "configure:6385: checking "for sockets
"" >&5
6385 # Check whether --with-sockets or --without-sockets was given.
6386 if test "${with_sockets+set}" = set; then
6387 withval
="$with_sockets"
6388 if test "x$with_sockets" = xyes
; then
6389 ac_cv_use_sockets
='wxUSE_SOCKETS="1"'
6391 ac_cv_use_sockets
='wxUSE_SOCKETS="0"'
6395 LINE
=`grep "wxUSE_SOCKETS" ${OSTYPE}.system.cache`
6396 if test "x$LINE" != x
; then
6397 eval "DEFAULT_$LINE"
6399 ac_cv_use_sockets
='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
6403 eval "$ac_cv_use_sockets"
6404 echo $ac_cv_use_sockets >> ${OSTYPE}.system.cache.tmp
6405 if test "$wxUSE_SOCKETS" = 1; then
6406 echo "$ac_t""yes" 1>&6
6408 echo "$ac_t""no" 1>&6
6414 echo $ac_n "checking "for afmfonts
"""... $ac_c" 1>&6
6415 echo "configure:6416: checking "for afmfonts
"" >&5
6416 # Check whether --with-afmfonts or --without-afmfonts was given.
6417 if test "${with_afmfonts+set}" = set; then
6418 withval
="$with_afmfonts"
6419 if test "x$with_afmfonts" = xyes
; then
6420 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="1"'
6422 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="0"'
6426 LINE
=`grep "wxUSE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
6427 if test "x$LINE" != x
; then
6428 eval "DEFAULT_$LINE"
6430 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT='$DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
6434 eval "$ac_cv_use_afmfonts"
6435 echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
6436 if test "$wxUSE_AFM_FOR_POSTSCRIPT" = 1; then
6437 echo "$ac_t""yes" 1>&6
6439 echo "$ac_t""no" 1>&6
6444 echo $ac_n "checking "for normalized
"""... $ac_c" 1>&6
6445 echo "configure:6446: checking "for normalized
"" >&5
6446 # Check whether --with-normalized or --without-normalized was given.
6447 if test "${with_normalized+set}" = set; then
6448 withval
="$with_normalized"
6449 if test "x$with_normalized" = xyes
; then
6450 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="1"'
6452 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="0"'
6456 LINE
=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
6457 if test "x$LINE" != x
; then
6458 eval "DEFAULT_$LINE"
6460 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
6464 eval "$ac_cv_use_normalized"
6465 echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
6466 if test "$WX_NORMALIZED_PS_FONTS" = 1; then
6467 echo "$ac_t""yes" 1>&6
6469 echo "$ac_t""no" 1>&6
6474 echo $ac_n "checking "for postscript
"""... $ac_c" 1>&6
6475 echo "configure:6476: checking "for postscript
"" >&5
6476 # Check whether --with-postscript or --without-postscript was given.
6477 if test "${with_postscript+set}" = set; then
6478 withval
="$with_postscript"
6479 if test "x$with_postscript" = xyes
; then
6480 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="1"'
6482 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="0"'
6486 LINE
=`grep "wxUSE_POSTSCRIPT" ${OSTYPE}.system.cache`
6487 if test "x$LINE" != x
; then
6488 eval "DEFAULT_$LINE"
6490 ac_cv_use_postscript
='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6494 eval "$ac_cv_use_postscript"
6495 echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
6496 if test "$wxUSE_POSTSCRIPT" = 1; then
6497 echo "$ac_t""yes" 1>&6
6499 echo "$ac_t""no" 1>&6
6505 echo $ac_n "checking "for unicode
"""... $ac_c" 1>&6
6506 echo "configure:6507: checking "for unicode
"" >&5
6507 # Check whether --with-unicode or --without-unicode was given.
6508 if test "${with_unicode+set}" = set; then
6509 withval
="$with_unicode"
6510 if test "x$with_unicode" = xyes
; then
6511 ac_cv_use_unicode
='wxUSE_UNICODE="1"'
6513 ac_cv_use_unicode
='wxUSE_UNICODE="0"'
6517 LINE
=`grep "wxUSE_UNICODE" ${OSTYPE}.system.cache`
6518 if test "x$LINE" != x
; then
6519 eval "DEFAULT_$LINE"
6521 ac_cv_use_unicode
='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6525 eval "$ac_cv_use_unicode"
6526 echo $ac_cv_use_unicode >> ${OSTYPE}.system.cache.tmp
6527 if test "$wxUSE_UNICODE" = 1; then
6528 echo "$ac_t""yes" 1>&6
6530 echo "$ac_t""no" 1>&6
6535 echo $ac_n "checking "for wcsrtombs
"""... $ac_c" 1>&6
6536 echo "configure:6537: checking "for wcsrtombs
"" >&5
6537 # Check whether --with-wcsrtombs or --without-wcsrtombs was given.
6538 if test "${with_wcsrtombs+set}" = set; then
6539 withval
="$with_wcsrtombs"
6540 if test "x$with_wcsrtombs" = xyes
; then
6541 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="1"'
6543 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="0"'
6547 LINE
=`grep "wxUSE_WCSRTOMBS" ${OSTYPE}.system.cache`
6548 if test "x$LINE" != x
; then
6549 eval "DEFAULT_$LINE"
6551 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
6555 eval "$ac_cv_use_wcsrtombs"
6556 echo $ac_cv_use_wcsrtombs >> ${OSTYPE}.system.cache.tmp
6557 if test "$wxUSE_WCSRTOMBS" = 1; then
6558 echo "$ac_t""yes" 1>&6
6560 echo "$ac_t""no" 1>&6
6566 echo $ac_n "checking "for wxresources
"""... $ac_c" 1>&6
6567 echo "configure:6568: checking "for wxresources
"" >&5
6568 # Check whether --with-wxresources or --without-wxresources was given.
6569 if test "${with_wxresources+set}" = set; then
6570 withval
="$with_wxresources"
6571 if test "x$with_wxresources" = xyes
; then
6572 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="1"'
6574 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="0"'
6578 LINE
=`grep "wxUSE_WX_RESOURCES" ${OSTYPE}.system.cache`
6579 if test "x$LINE" != x
; then
6580 eval "DEFAULT_$LINE"
6582 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES='$DEFAULT_wxUSE_WX_RESOURCES
6586 eval "$ac_cv_use_wxresources"
6587 echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
6588 if test "$wxUSE_WX_RESOURCES" = 1; then
6589 echo "$ac_t""yes" 1>&6
6591 echo "$ac_t""no" 1>&6
6596 echo $ac_n "checking "for prologio
"""... $ac_c" 1>&6
6597 echo "configure:6598: checking "for prologio
"" >&5
6598 # Check whether --with-prologio or --without-prologio was given.
6599 if test "${with_prologio+set}" = set; then
6600 withval
="$with_prologio"
6601 if test "x$with_prologio" = xyes
; then
6602 ac_cv_use_prologio
='wxUSE_PROLOGIO="1"'
6604 ac_cv_use_prologio
='wxUSE_PROLOGIO="0"'
6608 LINE
=`grep "wxUSE_PROLOGIO" ${OSTYPE}.system.cache`
6609 if test "x$LINE" != x
; then
6610 eval "DEFAULT_$LINE"
6612 ac_cv_use_prologio
='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6616 eval "$ac_cv_use_prologio"
6617 echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
6618 if test "$wxUSE_PROLOGIO" = 1; then
6619 echo "$ac_t""yes" 1>&6
6621 echo "$ac_t""no" 1>&6
6626 echo $ac_n "checking "for RPC
"""... $ac_c" 1>&6
6627 echo "configure:6628: checking "for RPC
"" >&5
6628 # Check whether --with-rpc or --without-rpc was given.
6629 if test "${with_rpc+set}" = set; then
6631 if test "x$with_rpc" = xyes
; then
6632 ac_cv_use_rpc
='wxUSE_RPC="1"'
6634 ac_cv_use_rpc
='wxUSE_RPC="0"'
6638 LINE
=`grep "wxUSE_RPC" ${OSTYPE}.system.cache`
6639 if test "x$LINE" != x
; then
6640 eval "DEFAULT_$LINE"
6642 ac_cv_use_rpc
='wxUSE_RPC='$DEFAULT_wxUSE_RPC
6646 eval "$ac_cv_use_rpc"
6647 echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
6648 if test "$wxUSE_RPC" = 1; then
6649 echo "$ac_t""yes" 1>&6
6651 echo "$ac_t""no" 1>&6
6657 echo $ac_n "checking "for IPC
"""... $ac_c" 1>&6
6658 echo "configure:6659: checking "for IPC
"" >&5
6659 # Check whether --with-ipc or --without-ipc was given.
6660 if test "${with_ipc+set}" = set; then
6662 if test "x$with_ipc" = xyes
; then
6663 ac_cv_use_ipc
='wxUSE_IPC="1"'
6665 ac_cv_use_ipc
='wxUSE_IPC="0"'
6669 LINE
=`grep "wxUSE_IPC" ${OSTYPE}.system.cache`
6670 if test "x$LINE" != x
; then
6671 eval "DEFAULT_$LINE"
6673 ac_cv_use_ipc
='wxUSE_IPC='$DEFAULT_wxUSE_IPC
6677 eval "$ac_cv_use_ipc"
6678 echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
6679 if test "$wxUSE_IPC" = 1; then
6680 echo "$ac_t""yes" 1>&6
6682 echo "$ac_t""no" 1>&6
6687 echo $ac_n "checking "for resources
"""... $ac_c" 1>&6
6688 echo "configure:6689: checking "for resources
"" >&5
6689 # Check whether --with-resources or --without-resources was given.
6690 if test "${with_resources+set}" = set; then
6691 withval
="$with_resources"
6692 if test "x$with_resources" = xyes
; then
6693 ac_cv_use_resources
='wxUSE_RESOURCES="1"'
6695 ac_cv_use_resources
='wxUSE_RESOURCES="0"'
6699 LINE
=`grep "wxUSE_RESOURCES" ${OSTYPE}.system.cache`
6700 if test "x$LINE" != x
; then
6701 eval "DEFAULT_$LINE"
6703 ac_cv_use_resources
='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6707 eval "$ac_cv_use_resources"
6708 echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
6709 if test "$wxUSE_RESOURCES" = 1; then
6710 echo "$ac_t""yes" 1>&6
6712 echo "$ac_t""no" 1>&6
6717 echo $ac_n "checking "for clipboard
"""... $ac_c" 1>&6
6718 echo "configure:6719: checking "for clipboard
"" >&5
6719 # Check whether --with-clipboard or --without-clipboard was given.
6720 if test "${with_clipboard+set}" = set; then
6721 withval
="$with_clipboard"
6722 if test "x$with_clipboard" = xyes
; then
6723 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="1"'
6725 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="0"'
6729 LINE
=`grep "wxUSE_CLIPBOARD" ${OSTYPE}.system.cache`
6730 if test "x$LINE" != x
; then
6731 eval "DEFAULT_$LINE"
6733 ac_cv_use_clipboard
='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6737 eval "$ac_cv_use_clipboard"
6738 echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
6739 if test "$wxUSE_CLIPBOARD" = 1; then
6740 echo "$ac_t""yes" 1>&6
6742 echo "$ac_t""no" 1>&6
6747 echo $ac_n "checking "for tooltips
"""... $ac_c" 1>&6
6748 echo "configure:6749: checking "for tooltips
"" >&5
6749 # Check whether --with-tooltips or --without-tooltips was given.
6750 if test "${with_tooltips+set}" = set; then
6751 withval
="$with_tooltips"
6752 if test "x$with_tooltips" = xyes
; then
6753 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="1"'
6755 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="0"'
6759 LINE
=`grep "wxUSE_TOOLTIPS" ${OSTYPE}.system.cache`
6760 if test "x$LINE" != x
; then
6761 eval "DEFAULT_$LINE"
6763 ac_cv_use_tooltips
='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6767 eval "$ac_cv_use_tooltips"
6768 echo $ac_cv_use_tooltips >> ${OSTYPE}.system.cache.tmp
6769 if test "$wxUSE_TOOLTIPS" = 1; then
6770 echo "$ac_t""yes" 1>&6
6772 echo "$ac_t""no" 1>&6
6777 echo $ac_n "checking "for dnd
"""... $ac_c" 1>&6
6778 echo "configure:6779: checking "for dnd
"" >&5
6779 # Check whether --with-dnd or --without-dnd was given.
6780 if test "${with_dnd+set}" = set; then
6782 if test "x$with_dnd" = xyes
; then
6783 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="1"'
6785 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="0"'
6789 LINE
=`grep "wxUSE_DRAG_AND_DROP" ${OSTYPE}.system.cache`
6790 if test "x$LINE" != x
; then
6791 eval "DEFAULT_$LINE"
6793 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6797 eval "$ac_cv_use_dnd"
6798 echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp
6799 if test "$wxUSE_DRAG_AND_DROP" = 1; then
6800 echo "$ac_t""yes" 1>&6
6802 echo "$ac_t""no" 1>&6
6807 echo $ac_n "checking "for spline
"""... $ac_c" 1>&6
6808 echo "configure:6809: checking "for spline
"" >&5
6809 # Check whether --with-spline or --without-spline was given.
6810 if test "${with_spline+set}" = set; then
6811 withval
="$with_spline"
6812 if test "x$with_spline" = xyes
; then
6813 ac_cv_use_spline
='wxUSE_SPLINE="1"'
6815 ac_cv_use_spline
='wxUSE_SPLINE="0"'
6819 LINE
=`grep "wxUSE_SPLINE" ${OSTYPE}.system.cache`
6820 if test "x$LINE" != x
; then
6821 eval "DEFAULT_$LINE"
6823 ac_cv_use_spline
='wxUSE_SPLINE='$DEFAULT_wxUSE_SPLINE
6827 eval "$ac_cv_use_spline"
6828 echo $ac_cv_use_spline >> ${OSTYPE}.system.cache.tmp
6829 if test "$wxUSE_SPLINE" = 1; then
6830 echo "$ac_t""yes" 1>&6
6832 echo "$ac_t""no" 1>&6
6838 echo $ac_n "checking "for mdi
"""... $ac_c" 1>&6
6839 echo "configure:6840: checking "for mdi
"" >&5
6840 # Check whether --with-mdi or --without-mdi was given.
6841 if test "${with_mdi+set}" = set; then
6843 if test "x$with_mdi" = xyes
; then
6844 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="1"'
6846 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="0"'
6850 LINE
=`grep "wxUSE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache`
6851 if test "x$LINE" != x
; then
6852 eval "DEFAULT_$LINE"
6854 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6858 eval "$ac_cv_use_mdi"
6859 echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp
6860 if test "$wxUSE_MDI_ARCHITECTURE" = 1; then
6861 echo "$ac_t""yes" 1>&6
6863 echo "$ac_t""no" 1>&6
6868 echo $ac_n "checking "for docview
"""... $ac_c" 1>&6
6869 echo "configure:6870: checking "for docview
"" >&5
6870 # Check whether --with-docview or --without-docview was given.
6871 if test "${with_docview+set}" = set; then
6872 withval
="$with_docview"
6873 if test "x$with_docview" = xyes
; then
6874 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="1"'
6876 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="0"'
6880 LINE
=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
6881 if test "x$LINE" != x
; then
6882 eval "DEFAULT_$LINE"
6884 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6888 eval "$ac_cv_use_docview"
6889 echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
6890 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1; then
6891 echo "$ac_t""yes" 1>&6
6893 echo "$ac_t""no" 1>&6
6898 echo $ac_n "checking "for printarch
"""... $ac_c" 1>&6
6899 echo "configure:6900: checking "for printarch
"" >&5
6900 # Check whether --with-printarch or --without-printarch was given.
6901 if test "${with_printarch+set}" = set; then
6902 withval
="$with_printarch"
6903 if test "x$with_printarch" = xyes
; then
6904 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="1"'
6906 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="0"'
6910 LINE
=`grep "wxUSE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
6911 if test "x$LINE" != x
; then
6912 eval "DEFAULT_$LINE"
6914 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6918 eval "$ac_cv_use_printarch"
6919 echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
6920 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1; then
6921 echo "$ac_t""yes" 1>&6
6923 echo "$ac_t""no" 1>&6
6928 echo $ac_n "checking "for help"""... $ac_c" 1>&6
6929 echo "configure:6930: checking "for help"" >&5
6930 # Check whether --with-help or --without-help was given.
6931 if test "${with_help+set}" = set; then
6932 withval
="$with_help"
6933 if test "x$with_help" = xyes
; then
6934 ac_cv_use_help
='wxUSE_HELP="1"'
6936 ac_cv_use_help
='wxUSE_HELP="0"'
6940 LINE
=`grep "wxUSE_HELP" ${OSTYPE}.system.cache`
6941 if test "x$LINE" != x
; then
6942 eval "DEFAULT_$LINE"
6944 ac_cv_use_help
='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6948 eval "$ac_cv_use_help"
6949 echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
6950 if test "$wxUSE_HELP" = 1; then
6951 echo "$ac_t""yes" 1>&6
6953 echo "$ac_t""no" 1>&6
6958 if test "$wxUSE_UNIX" = 1 ; then
6959 cat >> confdefs.h
<<\EOF
6965 if test "$USE_LINUX" = 1; then
6966 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
6967 echo "configure:6968: checking for gettext in -lc" >&5
6968 ac_lib_var
=`echo c'_'gettext | sed 'y%./+-%__p_%'`
6969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6970 echo $ac_n "(cached) $ac_c" 1>&6
6972 ac_save_LIBS
="$LIBS"
6974 cat > conftest.
$ac_ext <<EOF
6975 #line 6976 "configure"
6976 #include "confdefs.h"
6977 /* Override any gcc2 internal prototype to avoid an error. */
6978 /* We use char because int might match the return type of a gcc2
6979 builtin and then its argument prototype would still apply. */
6986 if { (eval echo configure
:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6988 eval "ac_cv_lib_$ac_lib_var=yes"
6990 echo "configure: failed program was:" >&5
6991 cat conftest.
$ac_ext >&5
6993 eval "ac_cv_lib_$ac_lib_var=no"
6996 LIBS
="$ac_save_LIBS"
6999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7000 echo "$ac_t""yes" 1>&6
7001 cat >> confdefs.h
<<\EOF
7002 #define wxHAVE_GLIBC2 1
7006 echo "$ac_t""no" 1>&6
7025 if test "$wxUSE_GTK" = 1; then
7026 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7027 if test "${with_gtk_prefix+set}" = set; then
7028 withval
="$with_gtk_prefix"
7029 gtk_config_prefix
="$withval"
7031 gtk_config_prefix
=""
7034 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7035 if test "${with_gtk_exec_prefix+set}" = set; then
7036 withval
="$with_gtk_exec_prefix"
7037 gtk_config_exec_prefix
="$withval"
7039 gtk_config_exec_prefix
=""
7043 if test x
$gtk_config_exec_prefix != x
; then
7044 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7045 if test x
${GTK_CONFIG+set} != xset
; then
7046 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
7049 if test x
$gtk_config_prefix != x
; then
7050 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
7051 if test x
${GTK_CONFIG+set} != xset
; then
7052 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
7056 # Extract the first word of "gtk-config", so it can be a program name with args.
7057 set dummy gtk
-config; ac_word
=$2
7058 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7059 echo "configure:7060: checking for $ac_word" >&5
7060 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7061 echo $ac_n "(cached) $ac_c" 1>&6
7063 case "$GTK_CONFIG" in
7065 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
7068 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a dos path.
7071 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7073 for ac_dir
in $ac_dummy; do
7074 test -z "$ac_dir" && ac_dir
=.
7075 if test -f $ac_dir/$ac_word; then
7076 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
7081 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
7085 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
7086 if test -n "$GTK_CONFIG"; then
7087 echo "$ac_t""$GTK_CONFIG" 1>&6
7089 echo "$ac_t""no" 1>&6
7092 min_gtk_version
=1.0.0
7093 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7094 echo "configure:7095: checking for GTK - version >= $min_gtk_version" >&5
7096 if test "$GTK_CONFIG" != "no" ; then
7097 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
7098 GTK_LIBS
=`$GTK_CONFIG --libs`
7099 ac_save_CFLAGS
="$CFLAGS"
7100 ac_save_LIBS
="$LIBS"
7101 CFLAGS
="$CFLAGS $GTK_CFLAGS"
7102 LIBS
="$LIBS $GTK_LIBS"
7103 if test "$cross_compiling" = yes; then
7104 echo $ac_n "cross compiling; assumed OK... $ac_c"
7106 cat > conftest.
$ac_ext <<EOF
7107 #line 7108 "configure"
7108 #include "confdefs.h"
7110 #include <gtk/gtk.h>
7116 int major, minor, micro;
7118 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
7119 printf("%s, bad version string\n", "$min_gtk_version");
7123 if (gtk_minor_version == 1) return FALSE;
7125 return !((gtk_major_version > major) ||
7126 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7127 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7131 if { (eval echo configure
:7132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7135 echo "configure: failed program was:" >&5
7136 cat conftest.
$ac_ext >&5
7143 CFLAGS
="$ac_save_CFLAGS"
7144 LIBS
="$ac_save_LIBS"
7148 if test "x$no_gtk" = x
; then
7149 echo "$ac_t""yes" 1>&6
7151 GUI_TK_INCLUDE
="$GTK_CFLAGS"
7152 GUI_TK_LIBRARY
="$GTK_LIBS"
7155 echo "$ac_t""no" 1>&6
7158 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.X or 1.0.X?" 1>&2; exit 1; }
7164 TOOLKIT_DEF
=__WXGTK__
7166 MAKEINCLUDE
=..
/gtk.inc
7167 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7168 if test "${with_gtk_prefix+set}" = set; then
7169 withval
="$with_gtk_prefix"
7170 gtk_config_prefix
="$withval"
7172 gtk_config_prefix
=""
7175 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7176 if test "${with_gtk_exec_prefix+set}" = set; then
7177 withval
="$with_gtk_exec_prefix"
7178 gtk_config_exec_prefix
="$withval"
7180 gtk_config_exec_prefix
=""
7184 if test x
$gtk_config_exec_prefix != x
; then
7185 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7186 if test x
${GTK_CONFIG+set} != xset
; then
7187 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
7190 if test x
$gtk_config_prefix != x
; then
7191 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
7192 if test x
${GTK_CONFIG+set} != xset
; then
7193 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
7197 # Extract the first word of "gtk-config", so it can be a program name with args.
7198 set dummy gtk
-config; ac_word
=$2
7199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7200 echo "configure:7201: checking for $ac_word" >&5
7201 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7202 echo $ac_n "(cached) $ac_c" 1>&6
7204 case "$GTK_CONFIG" in
7206 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
7209 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a dos path.
7212 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7214 for ac_dir
in $ac_dummy; do
7215 test -z "$ac_dir" && ac_dir
=.
7216 if test -f $ac_dir/$ac_word; then
7217 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
7222 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
7226 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
7227 if test -n "$GTK_CONFIG"; then
7228 echo "$ac_t""$GTK_CONFIG" 1>&6
7230 echo "$ac_t""no" 1>&6
7233 min_gtk_version
=1.2.0
7234 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7235 echo "configure:7236: checking for GTK - version >= $min_gtk_version" >&5
7237 if test "$GTK_CONFIG" != "no" ; then
7238 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
7239 GTK_LIBS
=`$GTK_CONFIG --libs`
7240 ac_save_CFLAGS
="$CFLAGS"
7241 ac_save_LIBS
="$LIBS"
7242 CFLAGS
="$CFLAGS $GTK_CFLAGS"
7243 LIBS
="$LIBS $GTK_LIBS"
7244 if test "$cross_compiling" = yes; then
7245 echo $ac_n "cross compiling; assumed OK... $ac_c"
7247 cat > conftest.
$ac_ext <<EOF
7248 #line 7249 "configure"
7249 #include "confdefs.h"
7251 #include <gtk/gtk.h>
7257 int major, minor, micro;
7259 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
7260 printf("%s, bad version string\n", "$min_gtk_version");
7264 if (gtk_minor_version == 1) return FALSE;
7266 return !((gtk_major_version > major) ||
7267 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7268 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7272 if { (eval echo configure
:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7276 echo "configure: failed program was:" >&5
7277 cat conftest.
$ac_ext >&5
7284 CFLAGS
="$ac_save_CFLAGS"
7285 LIBS
="$ac_save_LIBS"
7289 if test "x$no_gtk" = x
; then
7290 echo "$ac_t""yes" 1>&6
7295 echo "$ac_t""no" 1>&6
7305 if test "$wxUSE_QT" = 1; then
7306 echo $ac_n "checking for Qt includes""... $ac_c" 1>&6
7307 echo "configure:7308: checking for Qt includes" >&5
7310 for ac_dir
in $SEARCH_INCLUDE;
7312 if test -f "$ac_dir/qapp.h"; then
7313 ac_find_includes
=$ac_dir
7318 if test "$ac_find_includes" != "" ; then
7319 echo "$ac_t""found $ac_find_includes" 1>&6
7320 echo $ac_n "checking for Qt library""... $ac_c" 1>&6
7321 echo "configure:7322: checking for Qt library" >&5
7324 for ac_dir
in $SEARCH_LIB;
7326 for ac_extension
in a so sl
; do
7327 if test -f "$ac_dir/libqt.$ac_extension"; then
7328 ac_find_libraries
=$ac_dir
7334 if test "$ac_find_libraries" != "" ; then
7336 ac_path_to_include
=$ac_find_includes
7337 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
7339 if test $result = 0; then
7340 ac_path_to_include
=""
7342 ac_path_to_include
="-I$ac_find_includes"
7346 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7348 if test $result = 0; then
7351 ac_path_to_link
="-L$ac_find_libraries"
7354 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
7355 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
7356 echo "$ac_t""found Qt at $ac_find_libraries" 1>&6
7358 { echo "configure: error: no" 1>&2; exit 1; }
7361 { echo "configure: error: no" 1>&2; exit 1; }
7363 GUI_TK_LINK
="-lX11 -lqt -lm"
7365 TOOLKIT_DEF
=__WXQT__
7367 MAKEINCLUDE
=..
/qt.inc
7370 if test "$wxUSE_MOTIF" = 1; then
7371 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
7372 echo "configure:7373: checking for Motif/Lesstif includes" >&5
7375 for ac_dir
in $SEARCH_INCLUDE;
7377 if test -f "$ac_dir/Xm/Xm.h"; then
7378 ac_find_includes
=$ac_dir
7383 if test "$ac_find_includes" != "" ; then
7384 echo "$ac_t""found $ac_find_includes" 1>&6
7386 echo "$ac_t""no" 1>&6
7387 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7390 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
7391 echo "configure:7392: checking for Motif/Lesstif library" >&5
7394 for ac_dir
in $SEARCH_LIB;
7396 for ac_extension
in a so sl
; do
7397 if test -f "$ac_dir/libXm.$ac_extension"; then
7398 ac_find_libraries
=$ac_dir
7404 if test "$ac_find_libraries" != "" ; then
7406 ac_path_to_include
=$ac_find_includes
7407 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
7409 if test $result = 0; then
7410 ac_path_to_include
=""
7412 ac_path_to_include
="-I$ac_find_includes"
7416 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7418 if test $result = 0; then
7421 ac_path_to_link
="-L$ac_find_libraries"
7425 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
7426 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
7427 echo "$ac_t""found at $ac_find_libraries" 1>&6
7429 echo "$ac_t""no" 1>&6
7430 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7433 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
7434 echo "configure:7435: checking for Xt library" >&5
7437 for ac_dir
in $SEARCH_LIB;
7439 for ac_extension
in a so sl
; do
7440 if test -f "$ac_dir/libXt.$ac_extension"; then
7441 ac_find_libraries
=$ac_dir
7447 if test "$ac_find_libraries" != "" ; then
7449 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7451 if test $result = 0; then
7454 ac_path_to_link
="-L$ac_find_libraries"
7457 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
7458 echo "$ac_t""found at $ac_find_libraries" 1>&6
7460 echo "$ac_t""no" 1>&6
7461 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7465 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7466 echo "configure:7467: checking for Xpm library" >&5
7469 for ac_dir
in $SEARCH_LIB;
7471 for ac_extension
in a so sl
; do
7472 if test -f "$ac_dir/libXpm.$ac_extension"; then
7473 ac_find_libraries
=$ac_dir
7479 if test "$ac_find_libraries" != "" ; then
7481 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7483 if test $result = 0; then
7486 ac_path_to_link
="-L$ac_find_libraries"
7489 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
7491 cat >> confdefs.h
<<\EOF
7492 #define wxHAVE_LIB_XPM 1
7495 echo "$ac_t""found at $ac_find_libraries" 1>&6
7497 echo "$ac_t""no" 1>&6
7498 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7501 GUI_TK_LINK
="-lXm $(XPM_LINK)-lXmu -lXt -lX11 -lm"
7502 GUI_TK_LIBRARY
="$CHECK_LIB $GUI_TK_LINK"
7504 TOOLKIT_DEF
=__WXMOTIF__
7506 MAKEINCLUDE
=..
/motif.inc
7509 if test "$TOOLKIT" = ""; then
7510 { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; }
7525 if test "$WXGTK12" = 1 ; then
7526 cat >> confdefs.h
<<EOF
7527 #define __WXGTK12__ $WXGTK12
7535 if test "$wxUSE_DEBUG_GDB" = 1 ; then
7540 if test "$wxUSE_DEBUG_INFO" = 1 ; then
7547 if test "$wxUSE_DEBUG_FLAG" = 1 ; then
7548 cat >> confdefs.h
<<EOF
7549 #define WXDEBUG $wxUSE_DEBUG_FLAG
7552 WXDEBUG_DEFINE
="-D__WXDEBUG__"
7555 WXDEBUG_DEFINE
="-DGTK_NO_CHECK_CASTS"
7559 if test "$wxUSE_MEM_TRACING" = 1 ; then
7560 cat >> confdefs.h
<<EOF
7561 #define wxUSE_MEMORY_TRACING $wxUSE_MEM_TRACING
7564 cat >> confdefs.h
<<EOF
7565 #define wxUSE_GLOBAL_MEMORY_OPERATORS $wxUSE_MEM_TRACING
7570 if test "$wxUSE_DMALLOC" = 1 ; then
7571 EXTRA_LINK
="$EXTRA_LINK -ldmalloc"
7576 if test "$wxUSE_PROFILE" = 1 ; then
7581 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
7582 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
7583 if test "$wxUSE_OPTIMISE" = 0 ; then
7586 if test "$GCC" = yes ; then
7588 case "${canonical}" in
7590 OPTIMISE
="${OPTIMISE} "
7600 if test "$wxUSE_APPLE_IEEE" = 1 ; then
7601 APPLE_IEEE
="APPLE_IEEE"
7602 cat >> confdefs.h
<<EOF
7603 #define wxUSE_APPLE_IEEE $wxUSE_APPLE_IEEE
7608 wxUSE_IOSTREAMH
=$DEFAULT_wxUSE_IOSTREAMH
7609 cat >> confdefs.h
<<EOF
7610 #define wxUSE_IOSTREAMH $wxUSE_IOSTREAMH
7615 if test "$wxUSE_ZLIB" = 1 ; then
7616 cat >> confdefs.h
<<EOF
7617 #define wxUSE_ZLIB $wxUSE_ZLIB
7620 Z_C_SRC
="\$(Z_C_SRC)"
7624 if test "$wxUSE_LIBPNG" = 1 ; then
7625 cat >> confdefs.h
<<EOF
7626 #define wxUSE_LIBPNG $wxUSE_LIBPNG
7629 PNG_C_SRC
="\$(PNG_C_SRC)"
7633 if test "$wxUSE_LIBJPEG" = 1 ; then
7634 cat >> confdefs.h
<<EOF
7635 #define wxUSE_LIBJPEG $wxUSE_LIBJPEG
7638 JPEG_C_SRC
="\$(JPEG_C_SRC)"
7650 if test "$wxUSE_THREADS" = "1"; then
7652 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
7653 echo "configure:7654: checking for pthread_create in -lpthread" >&5
7654 ac_lib_var
=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
7655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7656 echo $ac_n "(cached) $ac_c" 1>&6
7658 ac_save_LIBS
="$LIBS"
7659 LIBS
="-lpthread $LIBS"
7660 cat > conftest.
$ac_ext <<EOF
7661 #line 7662 "configure"
7662 #include "confdefs.h"
7663 /* Override any gcc2 internal prototype to avoid an error. */
7664 /* We use char because int might match the return type of a gcc2
7665 builtin and then its argument prototype would still apply. */
7666 char pthread_create();
7672 if { (eval echo configure
:7673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7674 eval "ac_cv_lib_$ac_lib_var=yes"
7676 echo "configure: failed program was:" >&5
7677 cat conftest.
$ac_ext >&5
7679 eval "ac_cv_lib_$ac_lib_var=no"
7682 LIBS
="$ac_save_LIBS"
7685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7686 echo "$ac_t""yes" 1>&6
7688 UNIX_THREAD
="unix/threadpsx.cpp"
7689 THREADS_LINK
="pthread"
7692 echo "$ac_t""no" 1>&6
7694 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
7695 echo "configure:7696: checking for pthread_create in -lc_r" >&5
7696 ac_lib_var
=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
7697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7698 echo $ac_n "(cached) $ac_c" 1>&6
7700 ac_save_LIBS
="$LIBS"
7702 cat > conftest.
$ac_ext <<EOF
7703 #line 7704 "configure"
7704 #include "confdefs.h"
7705 /* Override any gcc2 internal prototype to avoid an error. */
7706 /* We use char because int might match the return type of a gcc2
7707 builtin and then its argument prototype would still apply. */
7708 char pthread_create();
7714 if { (eval echo configure
:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7716 eval "ac_cv_lib_$ac_lib_var=yes"
7718 echo "configure: failed program was:" >&5
7719 cat conftest.
$ac_ext >&5
7721 eval "ac_cv_lib_$ac_lib_var=no"
7724 LIBS
="$ac_save_LIBS"
7727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7728 echo "$ac_t""yes" 1>&6
7730 UNIX_THREAD
="unix/threadpsx.cpp"
7734 echo "$ac_t""no" 1>&6
7736 ac_safe
=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
7737 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7738 echo "configure:7739: checking for sys/prctl.h" >&5
7739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7740 echo $ac_n "(cached) $ac_c" 1>&6
7742 cat > conftest.
$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7745 #include <sys/prctl.h>
7747 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7748 { (eval echo configure
:7749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7749 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7750 if test -z "$ac_err"; then
7752 eval "ac_cv_header_$ac_safe=yes"
7755 echo "configure: failed program was:" >&5
7756 cat conftest.
$ac_ext >&5
7758 eval "ac_cv_header_$ac_safe=no"
7762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7763 echo "$ac_t""yes" 1>&6
7765 UNIX_THREAD
="gtk/threadsgi.cpp"
7768 echo "$ac_t""no" 1>&6
7777 if test "$THREADS_LINK" != ""; then
7778 cat >> confdefs.h
<<\EOF
7779 #define wxUSE_THREADS 1
7783 echo "configure: warning: No thread support on this system" 1>&2
7787 if test -z "$UNIX_THREAD"; then
7791 if test "$wxUSE_THREADS" = "1"; then
7794 for ac_hdr
in sched.h
7796 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7798 echo "configure:7799: checking for $ac_hdr" >&5
7799 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7800 echo $ac_n "(cached) $ac_c" 1>&6
7802 cat > conftest.
$ac_ext <<EOF
7803 #line 7804 "configure"
7804 #include "confdefs.h"
7807 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7808 { (eval echo configure
:7809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7809 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7810 if test -z "$ac_err"; then
7812 eval "ac_cv_header_$ac_safe=yes"
7815 echo "configure: failed program was:" >&5
7816 cat conftest.
$ac_ext >&5
7818 eval "ac_cv_header_$ac_safe=no"
7822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7823 echo "$ac_t""yes" 1>&6
7824 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7825 cat >> confdefs.h
<<EOF
7826 #define $ac_tr_hdr 1
7830 echo "$ac_t""no" 1>&6
7835 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
7836 echo "configure:7837: checking for sched_yield in -l$THREADS_LINK" >&5
7837 ac_lib_var
=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
7838 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7839 echo $ac_n "(cached) $ac_c" 1>&6
7841 ac_save_LIBS
="$LIBS"
7842 LIBS
="-l$THREADS_LINK $LIBS"
7843 cat > conftest.
$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7846 /* Override any gcc2 internal prototype to avoid an error. */
7847 /* We use char because int might match the return type of a gcc2
7848 builtin and then its argument prototype would still apply. */
7855 if { (eval echo configure
:7856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7857 eval "ac_cv_lib_$ac_lib_var=yes"
7859 echo "configure: failed program was:" >&5
7860 cat conftest.
$ac_ext >&5
7862 eval "ac_cv_lib_$ac_lib_var=no"
7865 LIBS
="$ac_save_LIBS"
7868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7869 echo "$ac_t""yes" 1>&6
7870 cat >> confdefs.h
<<\EOF
7871 #define HAVE_SCHED_YIELD 1
7875 echo "$ac_t""no" 1>&6
7876 echo $ac_n "checking for sched_yield in -l"posix4
"""... $ac_c" 1>&6
7877 echo "configure:7878: checking for sched_yield in -l"posix4
"" >&5
7878 ac_lib_var
=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
7879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7880 echo $ac_n "(cached) $ac_c" 1>&6
7882 ac_save_LIBS
="$LIBS"
7883 LIBS
="-l"posix4
" $LIBS"
7884 cat > conftest.
$ac_ext <<EOF
7885 #line 7886 "configure"
7886 #include "confdefs.h"
7887 /* Override any gcc2 internal prototype to avoid an error. */
7888 /* We use char because int might match the return type of a gcc2
7889 builtin and then its argument prototype would still apply. */
7896 if { (eval echo configure
:7897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7898 eval "ac_cv_lib_$ac_lib_var=yes"
7900 echo "configure: failed program was:" >&5
7901 cat conftest.
$ac_ext >&5
7903 eval "ac_cv_lib_$ac_lib_var=no"
7906 LIBS
="$ac_save_LIBS"
7909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7910 echo "$ac_t""yes" 1>&6
7911 cat >> confdefs.h
<<\EOF
7912 #define HAVE_SCHED_YIELD 1
7914 POSIX4_LINK
="-lposix4"
7916 echo "$ac_t""no" 1>&6
7917 echo "configure: warning: wxThread::Yield() will not work properly" 1>&2
7925 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
7926 echo "configure:7927: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
7927 ac_lib_var
=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
7928 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7929 echo $ac_n "(cached) $ac_c" 1>&6
7931 ac_save_LIBS
="$LIBS"
7932 LIBS
="-l$THREADS_LINK $LIBS"
7933 cat > conftest.
$ac_ext <<EOF
7934 #line 7935 "configure"
7935 #include "confdefs.h"
7936 /* Override any gcc2 internal prototype to avoid an error. */
7937 /* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7939 char pthread_attr_getschedpolicy();
7942 pthread_attr_getschedpolicy()
7945 if { (eval echo configure
:7946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7947 eval "ac_cv_lib_$ac_lib_var=yes"
7949 echo "configure: failed program was:" >&5
7950 cat conftest.
$ac_ext >&5
7952 eval "ac_cv_lib_$ac_lib_var=no"
7955 LIBS
="$ac_save_LIBS"
7958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7959 echo "$ac_t""yes" 1>&6
7960 cat >> confdefs.h
<<\EOF
7961 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
7965 echo "$ac_t""no" 1>&6
7966 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4
"""... $ac_c" 1>&6
7967 echo "configure:7968: checking for pthread_attr_getschedpolicy in -l"posix4
"" >&5
7968 ac_lib_var
=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
7969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7970 echo $ac_n "(cached) $ac_c" 1>&6
7972 ac_save_LIBS
="$LIBS"
7973 LIBS
="-l"posix4
" $LIBS"
7974 cat > conftest.
$ac_ext <<EOF
7975 #line 7976 "configure"
7976 #include "confdefs.h"
7977 /* Override any gcc2 internal prototype to avoid an error. */
7978 /* We use char because int might match the return type of a gcc2
7979 builtin and then its argument prototype would still apply. */
7980 char pthread_attr_getschedpolicy();
7983 pthread_attr_getschedpolicy()
7986 if { (eval echo configure
:7987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7988 eval "ac_cv_lib_$ac_lib_var=yes"
7990 echo "configure: failed program was:" >&5
7991 cat conftest.
$ac_ext >&5
7993 eval "ac_cv_lib_$ac_lib_var=no"
7996 LIBS
="$ac_save_LIBS"
7999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8000 echo "$ac_t""yes" 1>&6
8001 cat >> confdefs.h
<<\EOF
8002 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
8004 POSIX4_LINK
="-lposix4"
8006 echo "$ac_t""no" 1>&6
8007 echo "configure: warning: Setting thread priority will not work" 1>&2
8015 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
8016 echo "configure:8017: checking for pthread_cancel in -l$THREADS_LINK" >&5
8017 ac_lib_var
=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
8018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8019 echo $ac_n "(cached) $ac_c" 1>&6
8021 ac_save_LIBS
="$LIBS"
8022 LIBS
="-l$THREADS_LINK $LIBS"
8023 cat > conftest.
$ac_ext <<EOF
8024 #line 8025 "configure"
8025 #include "confdefs.h"
8026 /* Override any gcc2 internal prototype to avoid an error. */
8027 /* We use char because int might match the return type of a gcc2
8028 builtin and then its argument prototype would still apply. */
8029 char pthread_cancel();
8035 if { (eval echo configure
:8036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8037 eval "ac_cv_lib_$ac_lib_var=yes"
8039 echo "configure: failed program was:" >&5
8040 cat conftest.
$ac_ext >&5
8042 eval "ac_cv_lib_$ac_lib_var=no"
8045 LIBS
="$ac_save_LIBS"
8048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8049 echo "$ac_t""yes" 1>&6
8050 cat >> confdefs.h
<<\EOF
8051 #define HAVE_PTHREAD_CANCEL 1
8055 echo "$ac_t""no" 1>&6
8056 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
8060 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
8061 echo "configure:8062: checking for pthread_cleanup_push/pop" >&5
8062 cat > conftest.
$ac_ext <<EOF
8063 #line 8064 "configure"
8064 #include "confdefs.h"
8065 #include <pthread.h>
8068 pthread_cleanup_push(NULL, NULL);
8069 pthread_cleanup_pop(0);
8073 if { (eval echo configure
:8074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8075 echo "$ac_t""yes" 1>&6
8076 cat >> confdefs.h
<<\EOF
8077 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
8082 echo "configure: failed program was:" >&5
8083 cat conftest.
$ac_ext >&5
8085 echo "$ac_t""no" 1>&6
8090 THREADS_LINK
="-l$THREADS_LINK"
8098 if test "$wxUSE_CONFIG" = 1 ; then
8099 cat >> confdefs.h
<<EOF
8100 #define wxUSE_CONFIG $wxUSE_CONFIG
8105 if test "$wxUSE_TIMEDATE" = 1 ; then
8106 cat >> confdefs.h
<<EOF
8107 #define wxUSE_TIMEDATE $wxUSE_TIMEDATE
8112 if test "$wxUSE_INTL" = 1 ; then
8113 cat >> confdefs.h
<<EOF
8114 #define wxUSE_INTL $wxUSE_INTL
8119 if test "$wxUSE_STREAMS" = 1 ; then
8120 cat >> confdefs.h
<<EOF
8121 #define wxUSE_STREAMS $wxUSE_STREAMS
8126 if test "$wxUSE_SOCKETS" = 1 ; then
8127 if test "$wxUSE_THREADS" = 1 ; then
8128 cat >> confdefs.h
<<EOF
8129 #define wxUSE_SOCKETS $wxUSE_SOCKETS
8133 echo "configure: warning: sockets or only supported with threads" 1>&2
8138 if test "$wxUSE_SERIAL" = 1 ; then
8139 cat >> confdefs.h
<<EOF
8140 #define wxUSE_SERIAL $wxUSE_SERIAL
8146 if test "$wxUSE_SOCKETS" = "1"; then
8149 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8150 ac_cpp
='$CXXCPP $CPPFLAGS'
8151 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8152 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8153 cross_compiling
=$ac_cv_prog_cxx_cross
8155 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
8156 echo "configure:8157: checking the type of the third argument of getsockname" >&5
8157 cat > conftest.
$ac_ext <<EOF
8158 #line 8159 "configure"
8159 #include "confdefs.h"
8160 #include <sys/socket.h>
8162 socklen_t len; getsockname(0, NULL, &len);
8165 if { (eval echo configure
:8166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8167 cat >> confdefs.h
<<\EOF
8168 #define SOCKLEN_T socklen_t
8170 echo "$ac_t""socklen_t" 1>&6
8172 echo "configure: failed program was:" >&5
8173 cat conftest.
$ac_ext >&5
8175 cat > conftest.
$ac_ext <<EOF
8176 #line 8177 "configure"
8177 #include "confdefs.h"
8178 #include <sys/socket.h>
8180 size_t len; getsockname(0, NULL, &len);
8183 if { (eval echo configure
:8184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8185 cat >> confdefs.h
<<\EOF
8186 #define SOCKLEN_T size_t
8188 echo "$ac_t""size_t" 1>&6
8190 echo "configure: failed program was:" >&5
8191 cat conftest.
$ac_ext >&5
8193 cat > conftest.
$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 #include <sys/socket.h>
8198 int len; getsockname(0, NULL, &len);
8201 if { (eval echo configure
:8202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8203 cat >> confdefs.h
<<\EOF
8204 #define SOCKLEN_T int
8206 echo "$ac_t""int" 1>&6
8208 echo "configure: failed program was:" >&5
8209 cat conftest.
$ac_ext >&5
8211 echo "$ac_t""unknown" 1>&6
8222 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8223 ac_cpp
='$CPP $CPPFLAGS'
8224 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8225 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8226 cross_compiling
=$ac_cv_prog_cc_cross
8233 if test "$wxUSE_DYNLIB_CLASS" = "1"; then
8234 for ac_func
in dlopen
8236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8237 echo "configure:8238: checking for $ac_func" >&5
8238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8239 echo $ac_n "(cached) $ac_c" 1>&6
8241 cat > conftest.
$ac_ext <<EOF
8242 #line 8243 "configure"
8243 #include "confdefs.h"
8244 /* System header to define __stub macros and hopefully few prototypes,
8245 which can conflict with char $ac_func(); below. */
8247 /* Override any gcc2 internal prototype to avoid an error. */
8248 /* We use char because int might match the return type of a gcc2
8249 builtin and then its argument prototype would still apply. */
8255 /* The GNU C library defines this for functions which it implements
8256 to always fail with ENOSYS. Some functions are actually named
8257 something starting with __ and the normal name is an alias. */
8258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8266 if { (eval echo configure
:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8268 eval "ac_cv_func_$ac_func=yes"
8270 echo "configure: failed program was:" >&5
8271 cat conftest.
$ac_ext >&5
8273 eval "ac_cv_func_$ac_func=no"
8278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8279 echo "$ac_t""yes" 1>&6
8280 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8281 cat >> confdefs.h
<<EOF
8282 #define $ac_tr_func 1
8284 cat >> confdefs.h
<<\EOF
8285 #define HAVE_DLOPEN 1
8289 echo "$ac_t""no" 1>&6
8290 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8291 echo "configure:8292: checking for dlopen in -ldl" >&5
8292 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
8293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8294 echo $ac_n "(cached) $ac_c" 1>&6
8296 ac_save_LIBS
="$LIBS"
8298 cat > conftest.
$ac_ext <<EOF
8299 #line 8300 "configure"
8300 #include "confdefs.h"
8301 /* Override any gcc2 internal prototype to avoid an error. */
8302 /* We use char because int might match the return type of a gcc2
8303 builtin and then its argument prototype would still apply. */
8310 if { (eval echo configure
:8311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8312 eval "ac_cv_lib_$ac_lib_var=yes"
8314 echo "configure: failed program was:" >&5
8315 cat conftest.
$ac_ext >&5
8317 eval "ac_cv_lib_$ac_lib_var=no"
8320 LIBS
="$ac_save_LIBS"
8323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8324 echo "$ac_t""yes" 1>&6
8325 cat >> confdefs.h
<<\EOF
8326 #define HAVE_DLOPEN 1
8330 echo "$ac_t""no" 1>&6
8336 for ac_func
in shl_load
8338 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8339 echo "configure:8340: checking for $ac_func" >&5
8340 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8341 echo $ac_n "(cached) $ac_c" 1>&6
8343 cat > conftest.
$ac_ext <<EOF
8344 #line 8345 "configure"
8345 #include "confdefs.h"
8346 /* System header to define __stub macros and hopefully few prototypes,
8347 which can conflict with char $ac_func(); below. */
8349 /* Override any gcc2 internal prototype to avoid an error. */
8350 /* We use char because int might match the return type of a gcc2
8351 builtin and then its argument prototype would still apply. */
8357 /* The GNU C library defines this for functions which it implements
8358 to always fail with ENOSYS. Some functions are actually named
8359 something starting with __ and the normal name is an alias. */
8360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8368 if { (eval echo configure
:8369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8370 eval "ac_cv_func_$ac_func=yes"
8372 echo "configure: failed program was:" >&5
8373 cat conftest.
$ac_ext >&5
8375 eval "ac_cv_func_$ac_func=no"
8380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8381 echo "$ac_t""yes" 1>&6
8382 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8383 cat >> confdefs.h
<<EOF
8384 #define $ac_tr_func 1
8386 cat >> confdefs.h
<<\EOF
8387 #define HAVE_SHL_LOAD 1
8389 HAVE_DL_FUNCS
=1 HAVE_SHL_FUNCS
=1
8391 echo "$ac_t""no" 1>&6
8396 if test "$HAVE_DL_FUNCS" = 0; then
8397 echo "configure: warning: "--with-dynlib and
--with-odbc will be disabled due to missing shared library support
"" 1>&2
8399 wxUSE_DYNLIB_CLASS
=0
8403 if test "$wxUSE_DYNLIB_CLASS" = 1 ; then
8404 cat >> confdefs.h
<<EOF
8405 #define wxUSE_DYNLIB_CLASS $wxUSE_DYNLIB_CLASS
8412 if test "$wxUSE_ODBC" = 1 ; then
8413 cat >> confdefs.h
<<EOF
8414 #define wxUSE_ODBC $wxUSE_ODBC
8417 IODBC_C_SRC
="\$(IODBC_C_SRC)"
8422 if test "$wxUSE_RPC" = 1 ; then
8423 cat >> confdefs.h
<<EOF
8424 #define wxUSE_RPC $wxUSE_RPC
8429 if test "$wxUSE_WX_RESOURCES" = 1 ; then
8430 cat >> confdefs.h
<<EOF
8431 #define wxUSE_WX_RESOURCES $wxUSE_WX_RESOURCES
8436 if test "$wxUSE_PROLOGIO" = 1 ; then
8437 cat >> confdefs.h
<<EOF
8438 #define wxUSE_PROLOGIO 1
8444 if test "$wxUSE_POSTSCRIPT" = 1 ; then
8445 cat >> confdefs.h
<<EOF
8446 #define wxUSE_POSTSCRIPT 1
8451 cat >> confdefs.h
<<EOF
8452 #define wxUSE_AFM_FOR_POSTSCRIPT $wxUSE_AFM_FOR_POSTSCRIPT
8456 cat >> confdefs.h
<<EOF
8457 #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
8462 if test "$wxUSE_MDI_ARCHITECTURE" = 1 ; then
8463 cat >> confdefs.h
<<EOF
8464 #define wxUSE_MDI_ARCHITECTURE $wxUSE_MDI_ARCHITECTURE
8469 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1 ; then
8470 cat >> confdefs.h
<<EOF
8471 #define wxUSE_DOC_VIEW_ARCHITECTURE $wxUSE_DOC_VIEW_ARCHITECTURE
8476 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1 ; then
8477 cat >> confdefs.h
<<EOF
8478 #define wxUSE_PRINTING_ARCHITECTURE $wxUSE_PRINTING_ARCHITECTURE
8484 if test "$wxUSE_UNICODE" = 1 ; then
8485 cat >> confdefs.h
<<EOF
8486 #define wxUSE_UNICODE 1
8491 if test "$wxUSE_WCSRTOMBS" = 1 ; then
8492 cat >> confdefs.h
<<EOF
8493 #define wxUSE_WCSRTOMBS 1
8499 if test "$wxUSE_IPC" = 1 ; then
8500 cat >> confdefs.h
<<EOF
8506 if test "$wxUSE_RESOURCES" = 1 ; then
8507 cat >> confdefs.h
<<EOF
8508 #define wxUSE_RESOURCES $wxUSE_RESOURCES
8513 if test "$wxUSE_CLIPBOARD" = 1 ; then
8514 cat >> confdefs.h
<<EOF
8515 #define wxUSE_CLIPBOARD $wxUSE_CLIPBOARD
8520 if test "$wxUSE_TOOLTIPS" = 1 ; then
8521 if test "$wxUSE_MOTIF" = 1; then
8522 echo "configure: warning: tooltips are not supported yet under Motif" 1>&2
8525 cat >> confdefs.h
<<EOF
8526 #define wxUSE_TOOLTIPS $wxUSE_TOOLTIPS
8531 if test "$wxUSE_DRAG_AND_DROP" = 1 ; then
8532 if test "$WXGTK12" = 1 ; then
8533 cat >> confdefs.h
<<EOF
8534 #define wxUSE_DRAG_AND_DROP $wxUSE_DRAG_AND_DROP
8538 echo "configure: warning: drag and drop is only supported under GTK 1.2" 1>&2
8539 wxUSE_DRAG_AND_DROP
=0
8543 if test "$wxUSE_SPLINE" = 1 ; then
8544 cat >> confdefs.h
<<EOF
8545 #define wxUSE_SPLINE $wxUSE_SPLINE
8552 if test "$wxUSE_HELP" = 1 ; then
8554 cat >> confdefs.h
<<EOF
8555 #define wxUSE_HELP $wxUSE_HELP
8564 case "${canonical}" in
8566 if test "$GCC" != "yes" ; then
8567 CXXFLAGS
="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
8568 CFLAGS
="${CFLAGS} -z -D_HPUX_SOURCE"
8574 CREATE_SHARED
=sharedHpux
8579 CREATE_SHARED
=sharedLinux
8582 *-*-irix5* | *-*-irix6* )
8583 # PICFLAGS can remain empty, as pic is the default
8585 CREATE_SHARED
=sharedIrix
8586 cat >> confdefs.h
<<\EOF
8593 if test "$GCC" != "yes" ; then
8598 CREATE_SHARED
=sharedSolaris2
8599 cat >> confdefs.h
<<\EOF
8606 if test "$GCC" != "yes" ; then
8612 CREATE_SHARED
=sharedSunos4
8613 cat >> confdefs.h
<<\EOF
8619 *-*-freebsd* | *-*-netbsd*)
8621 CREATE_SHARED
=sharedBsd
8622 cat >> confdefs.h
<<\EOF
8630 CREATE_SHARED
=sharedOSF
8634 if test "$GCC" != "yes" ; then
8639 CREATE_SHARED
=sharedDgux
8640 cat >> confdefs.h
<<\EOF
8647 if test "$GCC" != "yes" ; then
8652 CREATE_SHARED
=sharedSysV
8653 cat >> confdefs.h
<<\EOF
8660 if test "$GCC" != "yes" ; then
8663 PICFLAGS
="-fPIC -D__SYSV__"
8665 CREATE_SHARED
=sharedAIX
8666 cat >> confdefs.h
<<\EOF
8679 if test "$HAVE_SHL_FUNCS" = 1; then
8680 CFLAGS
="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER -DHAVE_SHL_LOAD"
8682 CFLAGS
="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER -DHAVE_LIBDL"
8685 if test "$wxUSE_MOTIF" = 1; then
8686 CXXFLAGS
="${CXXFLAGS} -Wall -Wno-unused -D_REENTRANT"
8688 CXXFLAGS
="${CXXFLAGS} -Wall -D_REENTRANT"
8692 if test "$wxUSE_SHARED" != 1; then
8702 echo $OS >> system.list
8704 TOOLKIT_DIR
=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
8708 cat > confcache
<<\EOF
8709 # This file is a shell script that caches the results of configure
8710 # tests run on this system so they can be shared between configure
8711 # scripts and configure runs. It is not useful on other systems.
8712 # If it contains results you don't want to keep, you may remove or edit it.
8714 # By default, configure uses ./config.cache as the cache file,
8715 # creating it if it does not exist already. You can give configure
8716 # the --cache-file=FILE option to use a different cache file; that is
8717 # what configure does when it calls configure scripts in
8718 # subdirectories, so they share the cache.
8719 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8720 # config.status only pays attention to the cache file if you give it the
8721 # --recheck option to rerun configure.
8724 # The following way of writing the cache mishandles newlines in values,
8725 # but we know of no workaround that is simple, portable, and efficient.
8726 # So, don't put newlines in cache variables' values.
8727 # Ultrix sh set writes to stderr and can't be redirected directly,
8728 # and sets the high bit in the cache file unless we assign to the vars.
8730 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8732 # `set' does not quote correctly, so add quotes (double-quote substitution
8733 # turns \\\\ into \\, and sed turns \\ into \).
8735 -e "s/'/'\\\\''/g" \
8736 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8739 # `set' quotes correctly as required by POSIX, so do not add quotes.
8740 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8743 if cmp -s $cache_file confcache
; then
8746 if test -w $cache_file; then
8747 echo "updating cache $cache_file"
8748 cat confcache
> $cache_file
8750 echo "not updating unwritable cache $cache_file"
8755 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8757 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8758 # Let make expand exec_prefix.
8759 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8761 # Any assignment to VPATH causes Sun make to only execute
8762 # the first set of double-colon rules, so remove it if not needed.
8763 # If there is a colon in the path, we need to keep it.
8764 if test "x$srcdir" = x.
; then
8765 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8768 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8770 DEFS
=-DHAVE_CONFIG_H
8772 # Without the "./", some shells look in PATH for config.status.
8773 : ${CONFIG_STATUS=./config.status}
8775 echo creating
$CONFIG_STATUS
8776 rm -f $CONFIG_STATUS
8777 cat > $CONFIG_STATUS <<EOF
8779 # Generated automatically by configure.
8780 # Run this file to recreate the current configuration.
8781 # This directory was configured as follows,
8782 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8784 # $0 $ac_configure_args
8786 # Compiler output produced by configure, useful for debugging
8787 # configure, is in ./config.log if it exists.
8789 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8792 case "\$ac_option" in
8793 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8794 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8795 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8796 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8797 echo "$CONFIG_STATUS generated by autoconf version 2.14"
8799 -help | --help | --hel | --he | --h)
8800 echo "\$ac_cs_usage"; exit 0 ;;
8801 *) echo "\$ac_cs_usage"; exit 1 ;;
8805 ac_given_srcdir=$srcdir
8806 ac_given_INSTALL="$INSTALL"
8808 trap 'rm -fr `echo "./setup/substit ./wx-config:./wx-config.in ./include/wx/${TOOLKIT_DIR}/setup.h:./setup/setup.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8810 cat >> $CONFIG_STATUS <<EOF
8812 # Protect against being on the right side of a sed subst in config.status.
8813 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8814 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8818 s%@CFLAGS@%$CFLAGS%g
8819 s%@CPPFLAGS@%$CPPFLAGS%g
8820 s%@CXXFLAGS@%$CXXFLAGS%g
8821 s%@FFLAGS@%$FFLAGS%g
8823 s%@LDFLAGS@%$LDFLAGS%g
8825 s%@exec_prefix@%$exec_prefix%g
8826 s%@prefix@%$prefix%g
8827 s%@program_transform_name@%$program_transform_name%g
8828 s%@bindir@%$bindir%g
8829 s%@sbindir@%$sbindir%g
8830 s%@libexecdir@%$libexecdir%g
8831 s%@datadir@%$datadir%g
8832 s%@sysconfdir@%$sysconfdir%g
8833 s%@sharedstatedir@%$sharedstatedir%g
8834 s%@localstatedir@%$localstatedir%g
8835 s%@libdir@%$libdir%g
8836 s%@includedir@%$includedir%g
8837 s%@oldincludedir@%$oldincludedir%g
8838 s%@infodir@%$infodir%g
8839 s%@mandir@%$mandir%g
8840 s%@WXBASEDIR@%$WXBASEDIR%g
8844 s%@CXXCPP@%$CXXCPP%g
8845 s%@RANLIB@%$RANLIB%g
8847 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8848 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8849 s%@INSTALL_DATA@%$INSTALL_DATA%g
8853 s%@X_CFLAGS@%$X_CFLAGS%g
8854 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8855 s%@X_LIBS@%$X_LIBS%g
8856 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8857 s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
8858 s%@WCHAR_LINK@%$WCHAR_LINK%g
8859 s%@LIBOBJS@%$LIBOBJS%g
8862 s%@LEXLIB@%$LEXLIB%g
8863 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
8864 s%@DL_LIBRARY@%$DL_LIBRARY%g
8866 s%@host_alias@%$host_alias%g
8867 s%@host_cpu@%$host_cpu%g
8868 s%@host_vendor@%$host_vendor%g
8869 s%@host_os@%$host_os%g
8870 s%@GTK_CONFIG@%$GTK_CONFIG%g
8871 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8872 s%@GTK_LIBS@%$GTK_LIBS%g
8873 s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
8874 s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
8875 s%@GUI_TK_LINK@%$GUI_TK_LINK%g
8876 s%@WX_LINK@%$WX_LINK%g
8877 s%@TOOLKIT@%$TOOLKIT%g
8878 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
8879 s%@MAKEINCLUDE@%$MAKEINCLUDE%g
8880 s%@WXDEBUG@%$WXDEBUG%g
8881 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
8882 s%@EXTRA_LINK@%$EXTRA_LINK%g
8883 s%@PROFILE@%$PROFILE%g
8884 s%@OPTIMISE@%$OPTIMISE%g
8885 s%@Z_C_SRC@%$Z_C_SRC%g
8886 s%@PNG_C_SRC@%$PNG_C_SRC%g
8887 s%@JPEG_C_SRC@%$JPEG_C_SRC%g
8888 s%@JPEG_LINK@%$JPEG_LINK%g
8889 s%@UNIX_THREAD@%$UNIX_THREAD%g
8890 s%@THREADS_LINK@%$THREADS_LINK%g
8891 s%@POSIX4_LINK@%$POSIX4_LINK%g
8892 s%@IODBC_C_SRC@%$IODBC_C_SRC%g
8895 s%@PICFLAGS@%$PICFLAGS%g
8896 s%@CREATE_SHARED@%$CREATE_SHARED%g
8901 cat >> $CONFIG_STATUS <<\EOF
8903 # Split the substitutions into bite-sized pieces for seds with
8904 # small command number limits, like on Digital OSF/1 and HP-UX.
8905 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8906 ac_file
=1 # Number of current file.
8907 ac_beg
=1 # First line for current file.
8908 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8911 while $ac_more_lines; do
8912 if test $ac_beg -gt 1; then
8913 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8915 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8917 if test ! -s conftest.s
$ac_file; then
8919 rm -f conftest.s
$ac_file
8921 if test -z "$ac_sed_cmds"; then
8922 ac_sed_cmds
="sed -f conftest.s$ac_file"
8924 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8926 ac_file
=`expr $ac_file + 1`
8928 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8931 if test -z "$ac_sed_cmds"; then
8936 cat >> $CONFIG_STATUS <<EOF
8938 CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"}
8940 cat >> $CONFIG_STATUS <<\EOF
8941 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8942 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8944 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8945 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8946 *) ac_file_in
="${ac_file}.in" ;;
8949 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8951 # Remove last slash and all that follows it. Not all systems have dirname.
8952 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8953 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8954 # The file is in a subdirectory.
8955 test ! -d "$ac_dir" && mkdir "$ac_dir"
8956 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8957 # A "../" for each directory in $ac_dir_suffix.
8958 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8960 ac_dir_suffix
= ac_dots
=
8963 case "$ac_given_srcdir" in
8965 if test -z "$ac_dots"; then top_srcdir
=.
8966 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8967 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8969 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8970 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8973 case "$ac_given_INSTALL" in
8974 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
8975 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
8978 echo creating
"$ac_file"
8980 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8982 *Makefile
*) ac_comsub
="1i\\
8983 # $configure_input" ;;
8987 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8989 s%@configure_input@%$configure_input%g
8990 s%@srcdir@%$srcdir%g
8991 s%@top_srcdir@%$top_srcdir%g
8992 s%@INSTALL@%$INSTALL%g
8993 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8997 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8998 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9000 # ac_d sets the value in "#define NAME VALUE" lines.
9001 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9002 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9005 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9006 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9007 ac_uB
='\([ ]\)%\1#\2define\3'
9010 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9011 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9012 ac_eB
='$%\1#\2define\3'
9016 if test "${CONFIG_HEADERS+set}" != set; then
9018 cat >> $CONFIG_STATUS <<EOF
9019 CONFIG_HEADERS="./include/wx/${TOOLKIT_DIR}/setup.h:./setup/setup.hin"
9021 cat >> $CONFIG_STATUS <<\EOF
9023 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9024 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9026 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9027 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9028 *) ac_file_in
="${ac_file}.in" ;;
9031 echo creating
$ac_file
9033 rm -f conftest.frag conftest.
in conftest.out
9034 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9035 cat $ac_file_inputs > conftest.
in
9039 # Transform confdefs.h into a sed script conftest.vals that substitutes
9040 # the proper values into config.h.in to produce config.h. And first:
9041 # Protect against being on the right side of a sed subst in config.status.
9042 # Protect against being in an unquoted here document in config.status.
9044 cat > conftest.hdr
<<\EOF
9047 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9051 sed -n -f conftest.hdr confdefs.h > conftest.vals
9054 # This sed command replaces #undef with comments. This is necessary, for
9055 # example, in the case of _POSIX_SOURCE, which is predefined and required
9056 # on some systems where configure will not decide to define it.
9057 cat >> conftest.vals <<\EOF
9058 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9061 # Break up conftest.vals because some shells have a limit on
9062 # the size of here documents, and old seds have small limits too.
9067 ac_lines=`grep -c . conftest.vals
`
9068 # grep -c gives empty output for an empty file on some AIX systems.
9069 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9070 # Write a limited-size here document to conftest.frag.
9071 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9072 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9074 sed -f conftest.frag conftest.in > conftest.out
9076 mv conftest.out conftest.in
9078 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9080 mv conftest.tail conftest.vals
9084 cat >> $CONFIG_STATUS <<\EOF
9085 rm -f conftest.frag conftest.h
9086 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9087 cat conftest.in >> conftest.h
9089 if cmp -s $ac_file conftest.h 2>/dev/null; then
9090 echo "$ac_file is unchanged"
9093 # Remove last slash and all that follows it. Not all systems have dirname.
9094 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9095 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9096 # The file is in a subdirectory.
9097 test ! -d "$ac_dir" && mkdir "$ac_dir"
9100 mv conftest.h $ac_file
9105 cat >> $CONFIG_STATUS <<EOF
9108 cat >> $CONFIG_STATUS <<\EOF
9109 ./setup/general/createall
9112 chmod +x $CONFIG_STATUS
9113 rm -fr confdefs* $ac_clean_files
9114 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9118 mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache