3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 **--with-zlib use zlib for LZW comression"
47 **--with-libpng use libpng (PNG image format)"
49 **--with-libjpeg 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-afmfonts use Adobe Font Metric Font table"
65 **--with-PS-normalized use normalized PS fonts"
67 **--with-postscript use wxPostscriptDC device context"
69 **--with-unicode compile wxString with Unicode support"
71 **--with-wcsrtombs use wcsrtombs instead of (buggy in GNU libc5) wcstombs"
73 **--with-wxresources use wxWindows's resources"
75 **--with-prologio use Prolog IO library"
77 **--with-rpc use Prolog's remote procedure calls"
79 **--with-ipc use interprocess communication (wxSocket etc.)"
81 **--with-resources use X resources for saving information"
83 **--with-clipboard use wxClipboard classes"
85 **--with-tooltips use tooltips"
87 **--with-dnd use Drag'n'Drop classes"
89 **--with-mdi use multiple document interface architecture"
91 **--with-docview use document view architecture"
93 **--with-printarch use printing architecture"
95 **--with-help use help (using external browser at present)"
97 **--with-gtk-prefix=PFX Prefix where GTK is installed"
99 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
101 # Initialize some variables set by options.
102 # The variables have the same names as the options, with
103 # dashes changed to underlines.
105 cache_file
=.
/config.cache
114 program_transform_name
=s
,x
,x
,
122 bindir
='${exec_prefix}/bin'
123 sbindir
='${exec_prefix}/sbin'
124 libexecdir
='${exec_prefix}/libexec'
125 datadir
='${prefix}/share'
126 sysconfdir
='${prefix}/etc'
127 sharedstatedir
='${prefix}/com'
128 localstatedir
='${prefix}/var'
129 libdir
='${exec_prefix}/lib'
130 includedir
='${prefix}/include'
131 oldincludedir
='/usr/include'
132 infodir
='${prefix}/info'
133 mandir
='${prefix}/man'
135 # Initialize some other variables.
138 # Maximum number of lines to put in a shell here document.
145 # If the previous option needs an argument, assign it.
146 if test -n "$ac_prev"; then
147 eval "$ac_prev=\$ac_option"
153 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
157 # Accept the important Cygnus configure options, so we can diagnose typos.
161 -bindir | --bindir | --bindi | --bind | --bin | --bi)
163 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
164 bindir
="$ac_optarg" ;;
166 -build | --build | --buil | --bui | --bu)
168 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
169 build
="$ac_optarg" ;;
171 -cache-file | --cache-file | --cache-fil | --cache-fi \
172 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
173 ac_prev
=cache_file
;;
174 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
175 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
176 cache_file
="$ac_optarg" ;;
178 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
180 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
182 datadir
="$ac_optarg" ;;
184 -disable-* | --disable-*)
185 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
186 # Reject names that are not valid shell variable names.
187 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
188 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}=no" ;;
193 -enable-* | --enable-*)
194 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
204 eval "enable_${ac_feature}='$ac_optarg'" ;;
206 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
207 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
208 | --exec | --exe | --ex)
209 ac_prev
=exec_prefix
;;
210 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
211 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
212 | --exec=* | --exe=* | --ex=*)
213 exec_prefix
="$ac_optarg" ;;
215 -gas | --gas | --ga | --g)
216 # Obsolete; use --with-gas.
219 -help | --help | --hel | --he)
220 # Omit some internal or obsolete options to make the list less imposing.
221 # This message is too long to be a string in the A/UX 3.1 sh.
223 Usage: configure [options] [host]
224 Options: [defaults in brackets after descriptions]
226 --cache-file=FILE cache test results in FILE
227 --help print this message
228 --no-create do not create output files
229 --quiet, --silent do not print \`checking...' messages
230 --version print the version of autoconf that created configure
231 Directory and file names:
232 --prefix=PREFIX install architecture-independent files in PREFIX
234 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
236 --bindir=DIR user executables in DIR [EPREFIX/bin]
237 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
238 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
239 --datadir=DIR read-only architecture-independent data in DIR
241 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
242 --sharedstatedir=DIR modifiable architecture-independent data in DIR
244 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
245 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
246 --includedir=DIR C header files in DIR [PREFIX/include]
247 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
248 --infodir=DIR info documentation in DIR [PREFIX/info]
249 --mandir=DIR man documentation in DIR [PREFIX/man]
250 --srcdir=DIR find the sources in DIR [configure dir or ..]
251 --program-prefix=PREFIX prepend PREFIX to installed program names
252 --program-suffix=SUFFIX append SUFFIX to installed program names
253 --program-transform-name=PROGRAM
254 run sed PROGRAM on installed program names
258 --build=BUILD configure for building on BUILD [BUILD=HOST]
259 --host=HOST configure for HOST [guessed]
260 --target=TARGET configure for TARGET [TARGET=HOST]
261 Features and packages:
262 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
263 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
264 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
265 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
266 --x-includes=DIR X include files are in DIR
267 --x-libraries=DIR X library files are in DIR
269 if test -n "$ac_help"; then
270 echo "--enable and --with options recognized:$ac_help"
274 -host | --host | --hos | --ho)
276 -host=* | --host=* | --hos=* | --ho=*)
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev
=includedir
;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir
="$ac_optarg" ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir
="$ac_optarg" ;;
291 -libdir | --libdir | --libdi | --libd)
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir
="$ac_optarg" ;;
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev
=libexecdir
;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir
="$ac_optarg" ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev
=localstatedir
;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir
="$ac_optarg" ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir
="$ac_optarg" ;;
318 # Obsolete; use --without-fp.
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev
=oldincludedir
;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir
="$ac_optarg" ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix
="$ac_optarg" ;;
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev
=program_prefix
;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix
="$ac_optarg" ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev
=program_suffix
;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix
="$ac_optarg" ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev
=program_transform_name
;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name
="$ac_optarg" ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 sbindir
="$ac_optarg" ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
388 ac_prev
=sharedstatedir
;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 sharedstatedir
="$ac_optarg" ;;
395 -site | --site | --sit)
397 -site=* | --site=* | --sit=*)
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir
="$ac_optarg" ;;
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev
=sysconfdir
;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir
="$ac_optarg" ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target
="$ac_optarg" ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers)
421 echo "configure generated by autoconf version 2.12"
425 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package
=`echo $ac_package| sed 's/-/_/g'`
435 eval "with_${ac_package}='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
439 # Reject names that are not valid shell variable names.
440 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
441 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
443 ac_package
=`echo $ac_package| sed 's/-/_/g'`
444 eval "with_${ac_package}=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev
=x_includes
;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes
="$ac_optarg" ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev
=x_libraries
;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries
="$ac_optarg" ;;
464 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
468 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
469 echo "configure: warning: $ac_option: invalid host type" 1>&2
471 if test "x$nonopt" != xNONE
; then
472 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
480 if test -n "$ac_prev"; then
481 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
484 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
486 # File descriptor usage:
489 # 2 errors and warnings
490 # 3 some systems may open it to /dev/tty
491 # 4 used on the Kubota Titan
492 # 6 checking for... messages and results
493 # 5 compiler messages saved in config.log
494 if test "$silent" = yes; then
502 This file contains any messages produced by compilers while
503 running configure, to aid debugging if configure makes a mistake.
506 # Strip out --no-create and --no-recursion so they do not pile up.
507 # Also quote any args containing shell metacharacters.
512 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
513 | --no-cr | --no-c) ;;
514 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
515 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
516 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
517 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
518 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
523 # Only set these to C if already set. These must not be set unconditionally
524 # because not all systems understand e.g. LANG=C (notably SCO).
525 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
526 # Non-C LC_CTYPE values break the ctype check.
527 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
528 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
529 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
530 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
532 # confdefs.h avoids OS command line length limits that DEFS can exceed.
533 rm -rf conftest
* confdefs.h
534 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
537 # A filename unique to this package, relative to the directory that
538 # configure is in, which we can look for to find out if srcdir is correct.
539 ac_unique_file
=configure.
in
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted
=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted
=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
559 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
562 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
564 # Prefer explicitly selected file to automatically selected ones.
565 if test -z "$CONFIG_SITE"; then
566 if test "x$prefix" != xNONE
; then
567 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
569 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
572 for ac_site_file
in $CONFIG_SITE; do
573 if test -r "$ac_site_file"; then
574 echo "loading site script $ac_site_file"
579 if test -r "$cache_file"; then
580 echo "loading cache $cache_file"
583 echo "creating cache $cache_file"
588 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
589 ac_cpp
='$CPP $CPPFLAGS'
590 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
591 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
592 cross_compiling
=$ac_cv_prog_cc_cross
594 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
595 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
596 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
603 ac_n
= ac_c
='\c' ac_t
=
611 if test "x$OS" = "x"; then
613 { echo "configure: error: "The system variable OS has not been
set"
614 "please
set is everytime befor compiling on this system
"
615 "A good example
for this system would be
:"
616 "setenv OSTYPE
$UNAME for csh as a SHELL
"
617 "EXPORT OSTYPE
=$UNAME for sh as SHELL
"
618 "please
set this and restart again.
"
628 /usr/Motif-1.2/include \
629 /usr/Motif-2.1/include \
631 /usr/include/Motif1.2 \
632 /opt/xpm/include/X11 \
634 /usr/Motif1.2/include \
649 /usr/local/X11R6/include \
650 /usr/local/X11R5/include \
651 /usr/local/X11R4/include \
653 /usr/local/include/X11R6 \
654 /usr/local/include/X11R5 \
655 /usr/local/include/X11R4 \
659 /usr/local/X11/include \
660 /usr/local/include/X11 \
664 /usr/XFree86/include/X11 \
671 /usr/unsupported/include \
672 /usr/athena/include \
673 /usr/local/x11r5/include \
674 /usr/lpp/Xamples/include \
676 /usr/local/include/gtk \
677 /usr/local/include/qt \
680 /usr/openwin/include \
681 /usr/openwin/share/include \
684 SEARCH_LIB
="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
688 # Extract the first word of "gcc", so it can be a program name with args.
689 set dummy gcc
; ac_word
=$2
690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
691 echo "configure:692: checking for $ac_word" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 if test -n "$CC"; then
696 ac_cv_prog_CC
="$CC" # Let the user override the test.
698 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
699 for ac_dir
in $PATH; do
700 test -z "$ac_dir" && ac_dir
=.
701 if test -f $ac_dir/$ac_word; then
710 if test -n "$CC"; then
711 echo "$ac_t""$CC" 1>&6
713 echo "$ac_t""no" 1>&6
716 if test -z "$CC"; then
717 # Extract the first word of "cc", so it can be a program name with args.
718 set dummy cc
; ac_word
=$2
719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
720 echo "configure:721: checking for $ac_word" >&5
721 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&6
724 if test -n "$CC"; then
725 ac_cv_prog_CC
="$CC" # Let the user override the test.
727 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
729 for ac_dir
in $PATH; do
730 test -z "$ac_dir" && ac_dir
=.
731 if test -f $ac_dir/$ac_word; then
732 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
741 if test $ac_prog_rejected = yes; then
742 # We found a bogon in the path, so make sure we never use it.
743 set dummy
$ac_cv_prog_CC
745 if test $# -gt 0; then
746 # We chose a different compiler from the bogus one.
747 # However, it has the same basename, so the bogon will be chosen
748 # first if we set CC to just the basename; use the full file name.
750 set dummy
"$ac_dir/$ac_word" "$@"
758 if test -n "$CC"; then
759 echo "$ac_t""$CC" 1>&6
761 echo "$ac_t""no" 1>&6
764 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
767 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
768 echo "configure:769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
771 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
772 ac_cpp
='$CPP $CPPFLAGS'
773 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
774 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
775 cross_compiling
=$ac_cv_prog_cc_cross
777 cat > conftest.
$ac_ext <<EOF
778 #line 779 "configure"
779 #include "confdefs.h"
782 if { (eval echo configure
:783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
783 ac_cv_prog_cc_works
=yes
784 # If we can't run a trivial program, we are probably using a cross compiler.
785 if (.
/conftest
; exit) 2>/dev
/null
; then
786 ac_cv_prog_cc_cross
=no
788 ac_cv_prog_cc_cross
=yes
791 echo "configure: failed program was:" >&5
792 cat conftest.
$ac_ext >&5
793 ac_cv_prog_cc_works
=no
797 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
798 if test $ac_cv_prog_cc_works = no
; then
799 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
801 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
802 echo "configure:803: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
803 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
804 cross_compiling
=$ac_cv_prog_cc_cross
806 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
807 echo "configure:808: checking whether we are using GNU C" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 cat > conftest.c
<<EOF
816 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
823 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
825 if test $ac_cv_prog_gcc = yes; then
827 ac_test_CFLAGS
="${CFLAGS+set}"
828 ac_save_CFLAGS
="$CFLAGS"
830 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
831 echo "configure:832: checking whether ${CC-cc} accepts -g" >&5
832 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
835 echo 'void f(){}' > conftest.c
836 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
845 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
846 if test "$ac_test_CFLAGS" = set; then
847 CFLAGS
="$ac_save_CFLAGS"
848 elif test $ac_cv_prog_cc_g = yes; then
855 test "${CFLAGS+set}" = set || CFLAGS
="-g"
859 CFLAGS
=`echo "$CFLAGS" | sed 's/-g//g'`
861 if test "x$CC" != xcc
; then
862 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
863 echo "configure:864: checking whether $CC and cc understand -c and -o together" >&5
865 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
866 echo "configure:867: checking whether cc understands -c and -o together" >&5
868 set dummy
$CC; ac_cc
="`echo $2 |
869 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
870 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
873 echo 'foo(){}' > conftest.c
874 # Make sure it works both with $CC and with simple cc.
875 # We do the test twice because some compilers refuse to overwrite an
876 # existing .o file with -o, though they will create one.
877 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
878 if { (eval echo configure
:879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
879 test -f conftest.o
&& { (eval echo configure
:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
881 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
882 if test "x$CC" != xcc
; then
883 # Test first that cc exists at all.
884 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
885 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
886 if { (eval echo configure
:887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
887 test -f conftest.o
&& { (eval echo configure
:888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
892 # cc exists but doesn't like -o.
893 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
898 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
904 echo "$ac_t""yes" 1>&6
906 echo "$ac_t""no" 1>&6
907 cat >> confdefs.h
<<\EOF
908 #define NO_MINUS_C_MINUS_O 1
913 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
914 echo "configure:915: checking how to run the C preprocessor" >&5
915 # On Suns, sometimes $CPP names a directory.
916 if test -n "$CPP" && test -d "$CPP"; then
919 if test -z "$CPP"; then
920 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
921 echo $ac_n "(cached) $ac_c" 1>&6
923 # This must be in double quotes, not single quotes, because CPP may get
924 # substituted into the Makefile and "${CC-cc}" will confuse make.
926 # On the NeXT, cc -E runs the code through the compiler's parser,
927 # not just through cpp.
928 cat > conftest.
$ac_ext <<EOF
929 #line 930 "configure"
930 #include "confdefs.h"
934 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
935 { (eval echo configure
:936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
936 ac_err
=`grep -v '^ *+' conftest.out`
937 if test -z "$ac_err"; then
941 echo "configure: failed program was:" >&5
942 cat conftest.
$ac_ext >&5
944 CPP
="${CC-cc} -E -traditional-cpp"
945 cat > conftest.
$ac_ext <<EOF
946 #line 947 "configure"
947 #include "confdefs.h"
951 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
952 { (eval echo configure
:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
953 ac_err
=`grep -v '^ *+' conftest.out`
954 if test -z "$ac_err"; then
958 echo "configure: failed program was:" >&5
959 cat conftest.
$ac_ext >&5
966 ac_cv_prog_CPP
="$CPP"
968 CPP
="$ac_cv_prog_CPP"
970 ac_cv_prog_CPP
="$CPP"
972 echo "$ac_t""$CPP" 1>&6
974 if test $ac_cv_prog_gcc = yes; then
975 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
976 echo "configure:977: checking whether ${CC-cc} needs -traditional" >&5
977 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 ac_pattern
="Autoconf.*'x'"
981 cat > conftest.
$ac_ext <<EOF
982 #line 983 "configure"
983 #include "confdefs.h"
987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
988 egrep "$ac_pattern" >/dev
/null
2>&1; then
990 ac_cv_prog_gcc_traditional
=yes
993 ac_cv_prog_gcc_traditional
=no
998 if test $ac_cv_prog_gcc_traditional = no
; then
999 cat > conftest.
$ac_ext <<EOF
1000 #line 1001 "configure"
1001 #include "confdefs.h"
1005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1006 egrep "$ac_pattern" >/dev
/null
2>&1; then
1008 ac_cv_prog_gcc_traditional
=yes
1015 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1016 if test $ac_cv_prog_gcc_traditional = yes; then
1017 CC
="$CC -traditional"
1024 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1026 # Extract the first word of "$ac_prog", so it can be a program name with args.
1027 set dummy
$ac_prog; ac_word
=$2
1028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1029 echo "configure:1030: checking for $ac_word" >&5
1030 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1031 echo $ac_n "(cached) $ac_c" 1>&6
1033 if test -n "$CXX"; then
1034 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1036 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1037 for ac_dir
in $PATH; do
1038 test -z "$ac_dir" && ac_dir
=.
1039 if test -f $ac_dir/$ac_word; then
1040 ac_cv_prog_CXX
="$ac_prog"
1047 CXX
="$ac_cv_prog_CXX"
1048 if test -n "$CXX"; then
1049 echo "$ac_t""$CXX" 1>&6
1051 echo "$ac_t""no" 1>&6
1054 test -n "$CXX" && break
1056 test -n "$CXX" || CXX
="gcc"
1059 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1060 echo "configure:1061: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1063 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1064 ac_cpp
='$CXXCPP $CPPFLAGS'
1065 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1066 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1067 cross_compiling
=$ac_cv_prog_cxx_cross
1069 cat > conftest.
$ac_ext <<EOF
1070 #line 1071 "configure"
1071 #include "confdefs.h"
1074 if { (eval echo configure
:1075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1075 ac_cv_prog_cxx_works
=yes
1076 # If we can't run a trivial program, we are probably using a cross compiler.
1077 if (.
/conftest
; exit) 2>/dev
/null
; then
1078 ac_cv_prog_cxx_cross
=no
1080 ac_cv_prog_cxx_cross
=yes
1083 echo "configure: failed program was:" >&5
1084 cat conftest.
$ac_ext >&5
1085 ac_cv_prog_cxx_works
=no
1089 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1090 ac_cpp
='$CPP $CPPFLAGS'
1091 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1092 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1093 cross_compiling
=$ac_cv_prog_cc_cross
1095 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1096 if test $ac_cv_prog_cxx_works = no
; then
1097 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1099 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1100 echo "configure:1101: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1101 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1102 cross_compiling
=$ac_cv_prog_cxx_cross
1104 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1105 echo "configure:1106: checking whether we are using GNU C++" >&5
1106 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 cat > conftest.C
<<EOF
1114 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
1121 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1123 if test $ac_cv_prog_gxx = yes; then
1125 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1126 ac_save_CXXFLAGS
="$CXXFLAGS"
1128 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1129 echo "configure:1130: checking whether ${CXX-g++} accepts -g" >&5
1130 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 echo 'void f(){}' > conftest.cc
1134 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1135 ac_cv_prog_cxx_g
=yes
1143 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1144 if test "$ac_test_CXXFLAGS" = set; then
1145 CXXFLAGS
="$ac_save_CXXFLAGS"
1146 elif test $ac_cv_prog_cxx_g = yes; then
1153 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1156 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1157 echo "configure:1158: checking how to run the C++ preprocessor" >&5
1158 if test -z "$CXXCPP"; then
1159 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1163 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1164 ac_cpp
='$CXXCPP $CPPFLAGS'
1165 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1166 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1167 cross_compiling
=$ac_cv_prog_cxx_cross
1168 CXXCPP
="${CXX-g++} -E"
1169 cat > conftest.
$ac_ext <<EOF
1170 #line 1171 "configure"
1171 #include "confdefs.h"
1174 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1175 { (eval echo configure
:1176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1176 ac_err
=`grep -v '^ *+' conftest.out`
1177 if test -z "$ac_err"; then
1181 echo "configure: failed program was:" >&5
1182 cat conftest.
$ac_ext >&5
1187 ac_cv_prog_CXXCPP
="$CXXCPP"
1189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1190 ac_cpp
='$CPP $CPPFLAGS'
1191 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1192 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1193 cross_compiling
=$ac_cv_prog_cc_cross
1196 CXXCPP
="$ac_cv_prog_CXXCPP"
1197 echo "$ac_t""$CXXCPP" 1>&6
1200 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-g//g'`
1204 # Extract the first word of "ranlib", so it can be a program name with args.
1205 set dummy ranlib
; ac_word
=$2
1206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1207 echo "configure:1208: checking for $ac_word" >&5
1208 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 if test -n "$RANLIB"; then
1212 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1214 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1215 for ac_dir
in $PATH; do
1216 test -z "$ac_dir" && ac_dir
=.
1217 if test -f $ac_dir/$ac_word; then
1218 ac_cv_prog_RANLIB
="ranlib"
1223 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1226 RANLIB
="$ac_cv_prog_RANLIB"
1227 if test -n "$RANLIB"; then
1228 echo "$ac_t""$RANLIB" 1>&6
1230 echo "$ac_t""no" 1>&6
1234 # Extract the first word of "ar", so it can be a program name with args.
1235 set dummy
ar; ac_word
=$2
1236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1237 echo "configure:1238: checking for $ac_word" >&5
1238 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 if test -n "$AR"; then
1242 ac_cv_prog_AR
="$AR" # Let the user override the test.
1244 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1245 for ac_dir
in $PATH; do
1246 test -z "$ac_dir" && ac_dir
=.
1247 if test -f $ac_dir/$ac_word; then
1253 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1257 if test -n "$AR"; then
1258 echo "$ac_t""$AR" 1>&6
1260 echo "$ac_t""no" 1>&6
1265 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1266 if test -f $ac_dir/install-sh; then
1268 ac_install_sh
="$ac_aux_dir/install-sh -c"
1270 elif test -f $ac_dir/install.sh
; then
1272 ac_install_sh
="$ac_aux_dir/install.sh -c"
1276 if test -z "$ac_aux_dir"; then
1277 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1279 ac_config_guess
=$ac_aux_dir/config.guess
1280 ac_config_sub
=$ac_aux_dir/config.sub
1281 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1283 # Find a good install program. We prefer a C program (faster),
1284 # so one script is as good as another. But avoid the broken or
1285 # incompatible versions:
1286 # SysV /etc/install, /usr/sbin/install
1287 # SunOS /usr/etc/install
1288 # IRIX /sbin/install
1290 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1291 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1292 # ./install, which can be erroneously created by make from ./install.sh.
1293 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1294 echo "configure:1295: checking for a BSD compatible install" >&5
1295 if test -z "$INSTALL"; then
1296 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1299 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1300 for ac_dir
in $PATH; do
1301 # Account for people who put trailing slashes in PATH elements.
1303 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1305 # OSF1 and SCO ODT 3.0 have their own names for install.
1306 for ac_prog
in ginstall installbsd scoinst
install; do
1307 if test -f $ac_dir/$ac_prog; then
1308 if test $ac_prog = install &&
1309 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1310 # AIX install. It has an incompatible calling convention.
1311 # OSF/1 installbsd also uses dspmsg, but is usable.
1314 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1325 if test "${ac_cv_path_install+set}" = set; then
1326 INSTALL
="$ac_cv_path_install"
1328 # As a last resort, use the slow shell script. We don't cache a
1329 # path for INSTALL within a source directory, because that will
1330 # break other packages using the cache if that directory is
1331 # removed, or if the path is relative.
1332 INSTALL
="$ac_install_sh"
1335 echo "$ac_t""$INSTALL" 1>&6
1337 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1338 # It thinks the first close brace ends the variable substitution.
1339 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1341 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1344 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1345 echo "configure:1346: checking whether ln -s works" >&5
1346 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1350 if ln -s X conftestdata
2>/dev
/null
1353 ac_cv_prog_LN_S
="ln -s"
1358 LN_S
="$ac_cv_prog_LN_S"
1359 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1360 echo "$ac_t""yes" 1>&6
1362 echo "$ac_t""no" 1>&6
1366 for ac_prog
in mawk gawk nawk
awk
1368 # Extract the first word of "$ac_prog", so it can be a program name with args.
1369 set dummy
$ac_prog; ac_word
=$2
1370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1371 echo "configure:1372: checking for $ac_word" >&5
1372 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1375 if test -n "$AWK"; then
1376 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1378 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1379 for ac_dir
in $PATH; do
1380 test -z "$ac_dir" && ac_dir
=.
1381 if test -f $ac_dir/$ac_word; then
1382 ac_cv_prog_AWK
="$ac_prog"
1389 AWK
="$ac_cv_prog_AWK"
1390 if test -n "$AWK"; then
1391 echo "$ac_t""$AWK" 1>&6
1393 echo "$ac_t""no" 1>&6
1396 test -n "$AWK" && break
1400 echo $ac_n "checking "make for VPATH support
"""... $ac_c" 1>&6
1401 echo "configure:1402: checking "make for VPATH support
"" >&5
1402 cat - << EOF > confMake
1408 if test ! -d sub
; then
1411 echo dummy
> sub
/file
1412 ${MAKE-make} -f confMake VPATH
=sub
2> config.log
> /dev
/null
1414 rm -f sub
/file check final_file confMake
1416 if test "$RESULT" = 0; then
1417 echo "$ac_t""yes" 1>&6
1419 echo "$ac_t""no" 1>&6
1420 { echo "configure: error: You need a make-utility that is able to use the variable
1422 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
1426 # If we find X, set shell vars x_includes and x_libraries to the
1427 # paths, otherwise set no_x=yes.
1428 # Uses ac_ vars as temps to allow command line to override cache and checks.
1429 # --without-x overrides everything else, but does not touch the cache.
1430 echo $ac_n "checking for X""... $ac_c" 1>&6
1431 echo "configure:1432: checking for X" >&5
1433 # Check whether --with-x or --without-x was given.
1434 if test "${with_x+set}" = set; then
1439 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1440 if test "x$with_x" = xno
; then
1441 # The user explicitly disabled X.
1444 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1445 # Both variables are already set.
1448 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1449 echo $ac_n "(cached) $ac_c" 1>&6
1451 # One or both of the vars are not set, and there is no cached value.
1452 ac_x_includes
=NO ac_x_libraries
=NO
1454 if mkdir conftestdir
; then
1456 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1457 cat > Imakefile
<<'EOF'
1459 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1461 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1462 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1463 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1464 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1465 for ac_extension
in a so sl
; do
1466 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1467 test -f $ac_im_libdir/libX11.
$ac_extension; then
1468 ac_im_usrlibdir
=$ac_im_libdir; break
1471 # Screen out bogus values from the imake configuration. They are
1472 # bogus both because they are the default anyway, and because
1473 # using them would break gcc on systems where it needs fixed includes.
1474 case "$ac_im_incroot" in
1476 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1478 case "$ac_im_usrlibdir" in
1480 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1487 if test "$ac_x_includes" = NO
; then
1488 # Guess where to find include files, by looking for this one X11 .h file.
1489 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1491 # First, try using that file with no special directory specified.
1492 cat > conftest.
$ac_ext <<EOF
1493 #line 1494 "configure"
1494 #include "confdefs.h"
1495 #include <$x_direct_test_include>
1497 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1498 { (eval echo configure
:1499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1499 ac_err
=`grep -v '^ *+' conftest.out`
1500 if test -z "$ac_err"; then
1502 # We can compile using X headers with no special include directory.
1506 echo "configure: failed program was:" >&5
1507 cat conftest.
$ac_ext >&5
1509 # Look for the header file in a standard set of common directories.
1510 # Check X11 before X11Rn because it is often a symlink to the current release.
1513 /usr
/X
11R
6/include \
1514 /usr
/X
11R
5/include \
1515 /usr
/X
11R
4/include \
1518 /usr
/include
/X11R6 \
1519 /usr
/include
/X11R5 \
1520 /usr
/include
/X11R4 \
1522 /usr
/local
/X
11/include \
1523 /usr
/local
/X
11R
6/include \
1524 /usr
/local
/X
11R
5/include \
1525 /usr
/local
/X
11R
4/include \
1527 /usr
/local
/include
/X11 \
1528 /usr
/local
/include
/X11R6 \
1529 /usr
/local
/include
/X11R5 \
1530 /usr
/local
/include
/X11R4 \
1534 /usr
/XFree
86/include
/X11 \
1537 /usr
/local
/include \
1538 /usr
/unsupported
/include \
1539 /usr
/athena
/include \
1540 /usr
/local
/x
11r
5/include \
1541 /usr
/lpp
/Xamples
/include \
1543 /usr
/openwin
/include \
1544 /usr
/openwin
/share
/include \
1547 if test -r "$ac_dir/$x_direct_test_include"; then
1548 ac_x_includes
=$ac_dir
1554 fi # $ac_x_includes = NO
1556 if test "$ac_x_libraries" = NO
; then
1557 # Check for the libraries.
1559 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1560 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1562 # See if we find them without any special options.
1563 # Don't add to $LIBS permanently.
1564 ac_save_LIBS
="$LIBS"
1565 LIBS
="-l$x_direct_test_library $LIBS"
1566 cat > conftest.
$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1571 ${x_direct_test_function}()
1574 if { (eval echo configure
:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1576 LIBS
="$ac_save_LIBS"
1577 # We can link X programs with no special library path.
1580 echo "configure: failed program was:" >&5
1581 cat conftest.
$ac_ext >&5
1583 LIBS
="$ac_save_LIBS"
1584 # First see if replacing the include by lib works.
1585 # Check X11 before X11Rn because it is often a symlink to the current release.
1586 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1597 /usr
/local
/X
11/lib \
1598 /usr
/local
/X
11R
6/lib \
1599 /usr
/local
/X
11R
5/lib \
1600 /usr
/local
/X
11R
4/lib \
1602 /usr
/local
/lib
/X11 \
1603 /usr
/local
/lib
/X11R6 \
1604 /usr
/local
/lib
/X11R5 \
1605 /usr
/local
/lib
/X11R4 \
1609 /usr
/XFree
86/lib
/X11 \
1613 /usr
/unsupported
/lib \
1615 /usr
/local
/x
11r
5/lib \
1616 /usr
/lpp
/Xamples
/lib \
1620 /usr
/openwin
/share
/lib \
1623 for ac_extension
in a so sl
; do
1624 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1625 ac_x_libraries
=$ac_dir
1632 fi # $ac_x_libraries = NO
1634 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
1635 # Didn't find X anywhere. Cache the known absence of X.
1636 ac_cv_have_x
="have_x=no"
1638 # Record where we found X for the cache.
1639 ac_cv_have_x
="have_x=yes \
1640 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1644 eval "$ac_cv_have_x"
1647 if test "$have_x" != yes; then
1648 echo "$ac_t""$have_x" 1>&6
1651 # If each of the values was on the command line, it overrides each guess.
1652 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1653 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1654 # Update the cache value to reflect the command line values.
1655 ac_cv_have_x
="have_x=yes \
1656 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1657 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1660 if test "$no_x" = yes; then
1661 # Not all programs may use this symbol, but it does not hurt to define it.
1662 cat >> confdefs.h
<<\EOF
1663 #define X_DISPLAY_MISSING 1
1666 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1668 if test -n "$x_includes"; then
1669 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1672 # It would also be nice to do this for all -L options, not just this one.
1673 if test -n "$x_libraries"; then
1674 X_LIBS
="$X_LIBS -L$x_libraries"
1675 # For Solaris; some versions of Sun CC require a space after -R and
1676 # others require no space. Words are not sufficient . . . .
1677 case "`(uname -sr) 2>/dev/null`" in
1679 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1680 echo "configure:1681: checking whether -R must be followed by a space" >&5
1681 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1682 cat > conftest.
$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1690 if { (eval echo configure
:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1694 echo "configure: failed program was:" >&5
1695 cat conftest.
$ac_ext >&5
1700 if test $ac_R_nospace = yes; then
1701 echo "$ac_t""no" 1>&6
1702 X_LIBS
="$X_LIBS -R$x_libraries"
1704 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1705 cat > conftest.
$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1713 if { (eval echo configure
:1714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1717 echo "configure: failed program was:" >&5
1718 cat conftest.
$ac_ext >&5
1723 if test $ac_R_space = yes; then
1724 echo "$ac_t""yes" 1>&6
1725 X_LIBS
="$X_LIBS -R $x_libraries"
1727 echo "$ac_t""neither works" 1>&6
1730 LIBS
="$ac_xsave_LIBS"
1734 # Check for system-dependent libraries X programs must link with.
1735 # Do this before checking for the system-independent R6 libraries
1736 # (-lICE), since we may need -lsocket or whatever for X linking.
1738 if test "$ISC" = yes; then
1739 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1741 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1742 # libraries were built with DECnet support. And karl@cs.umb.edu says
1743 # the Alpha needs dnet_stub (dnet does not exist).
1744 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1745 echo "configure:1746: checking for dnet_ntoa in -ldnet" >&5
1746 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1750 ac_save_LIBS
="$LIBS"
1752 cat > conftest.
$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1755 /* Override any gcc2 internal prototype to avoid an error. */
1756 /* We use char because int might match the return type of a gcc2
1757 builtin and then its argument prototype would still apply. */
1764 if { (eval echo configure
:1765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1766 eval "ac_cv_lib_$ac_lib_var=yes"
1768 echo "configure: failed program was:" >&5
1769 cat conftest.
$ac_ext >&5
1771 eval "ac_cv_lib_$ac_lib_var=no"
1774 LIBS
="$ac_save_LIBS"
1777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1778 echo "$ac_t""yes" 1>&6
1779 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1781 echo "$ac_t""no" 1>&6
1784 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1785 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1786 echo "configure:1787: checking for dnet_ntoa in -ldnet_stub" >&5
1787 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 ac_save_LIBS
="$LIBS"
1792 LIBS
="-ldnet_stub $LIBS"
1793 cat > conftest.
$ac_ext <<EOF
1794 #line 1795 "configure"
1795 #include "confdefs.h"
1796 /* Override any gcc2 internal prototype to avoid an error. */
1797 /* We use char because int might match the return type of a gcc2
1798 builtin and then its argument prototype would still apply. */
1805 if { (eval echo configure
:1806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1807 eval "ac_cv_lib_$ac_lib_var=yes"
1809 echo "configure: failed program was:" >&5
1810 cat conftest.
$ac_ext >&5
1812 eval "ac_cv_lib_$ac_lib_var=no"
1815 LIBS
="$ac_save_LIBS"
1818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1819 echo "$ac_t""yes" 1>&6
1820 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1822 echo "$ac_t""no" 1>&6
1827 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1828 # to get the SysV transport functions.
1829 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1831 # The nsl library prevents programs from opening the X display
1832 # on Irix 5.2, according to dickey@clark.net.
1833 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1834 echo "configure:1835: checking for gethostbyname" >&5
1835 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1838 cat > conftest.
$ac_ext <<EOF
1839 #line 1840 "configure"
1840 #include "confdefs.h"
1841 /* System header to define __stub macros and hopefully few prototypes,
1842 which can conflict with char gethostbyname(); below. */
1844 /* Override any gcc2 internal prototype to avoid an error. */
1845 /* We use char because int might match the return type of a gcc2
1846 builtin and then its argument prototype would still apply. */
1847 char gethostbyname();
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1862 if { (eval echo configure
:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1864 eval "ac_cv_func_gethostbyname=yes"
1866 echo "configure: failed program was:" >&5
1867 cat conftest.
$ac_ext >&5
1869 eval "ac_cv_func_gethostbyname=no"
1874 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1875 echo "$ac_t""yes" 1>&6
1878 echo "$ac_t""no" 1>&6
1881 if test $ac_cv_func_gethostbyname = no
; then
1882 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1883 echo "configure:1884: checking for gethostbyname in -lnsl" >&5
1884 ac_lib_var
=`echo nsl'_'gethostbyname | 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. */
1896 char gethostbyname();
1902 if { (eval echo configure
:1903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; 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 -lnsl"
1919 echo "$ac_t""no" 1>&6
1924 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1925 # socket/setsockopt and other routines are undefined under SCO ODT
1926 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1927 # on later versions), says simon@lia.di.epfl.ch: it contains
1928 # gethostby* variants that don't use the nameserver (or something).
1929 # -lsocket must be given before -lnsl if both are needed.
1930 # We assume that if connect needs -lnsl, so does gethostbyname.
1931 echo $ac_n "checking for connect""... $ac_c" 1>&6
1932 echo "configure:1933: checking for connect" >&5
1933 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1934 echo $ac_n "(cached) $ac_c" 1>&6
1936 cat > conftest.
$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1939 /* System header to define __stub macros and hopefully few prototypes,
1940 which can conflict with char connect(); below. */
1942 /* Override any gcc2 internal prototype to avoid an error. */
1943 /* We use char because int might match the return type of a gcc2
1944 builtin and then its argument prototype would still apply. */
1949 /* The GNU C library defines this for functions which it implements
1950 to always fail with ENOSYS. Some functions are actually named
1951 something starting with __ and the normal name is an alias. */
1952 #if defined (__stub_connect) || defined (__stub___connect)
1960 if { (eval echo configure
:1961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1962 eval "ac_cv_func_connect=yes"
1964 echo "configure: failed program was:" >&5
1965 cat conftest.
$ac_ext >&5
1967 eval "ac_cv_func_connect=no"
1972 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1973 echo "$ac_t""yes" 1>&6
1976 echo "$ac_t""no" 1>&6
1979 if test $ac_cv_func_connect = no
; then
1980 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1981 echo "configure:1982: checking for connect in -lsocket" >&5
1982 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 ac_save_LIBS
="$LIBS"
1987 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1988 cat > conftest.
$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1991 /* Override any gcc2 internal prototype to avoid an error. */
1992 /* We use char because int might match the return type of a gcc2
1993 builtin and then its argument prototype would still apply. */
2000 if { (eval echo configure
:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2002 eval "ac_cv_lib_$ac_lib_var=yes"
2004 echo "configure: failed program was:" >&5
2005 cat conftest.
$ac_ext >&5
2007 eval "ac_cv_lib_$ac_lib_var=no"
2010 LIBS
="$ac_save_LIBS"
2013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2015 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2017 echo "$ac_t""no" 1>&6
2022 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2023 echo $ac_n "checking for remove""... $ac_c" 1>&6
2024 echo "configure:2025: checking for remove" >&5
2025 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 cat > conftest.
$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 /* System header to define __stub macros and hopefully few prototypes,
2032 which can conflict with char remove(); below. */
2034 /* Override any gcc2 internal prototype to avoid an error. */
2035 /* We use char because int might match the return type of a gcc2
2036 builtin and then its argument prototype would still apply. */
2041 /* The GNU C library defines this for functions which it implements
2042 to always fail with ENOSYS. Some functions are actually named
2043 something starting with __ and the normal name is an alias. */
2044 #if defined (__stub_remove) || defined (__stub___remove)
2052 if { (eval echo configure
:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2054 eval "ac_cv_func_remove=yes"
2056 echo "configure: failed program was:" >&5
2057 cat conftest.
$ac_ext >&5
2059 eval "ac_cv_func_remove=no"
2064 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2065 echo "$ac_t""yes" 1>&6
2068 echo "$ac_t""no" 1>&6
2071 if test $ac_cv_func_remove = no
; then
2072 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2073 echo "configure:2074: checking for remove in -lposix" >&5
2074 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 ac_save_LIBS
="$LIBS"
2079 LIBS
="-lposix $LIBS"
2080 cat > conftest.
$ac_ext <<EOF
2081 #line 2082 "configure"
2082 #include "confdefs.h"
2083 /* Override any gcc2 internal prototype to avoid an error. */
2084 /* We use char because int might match the return type of a gcc2
2085 builtin and then its argument prototype would still apply. */
2092 if { (eval echo configure
:2093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2094 eval "ac_cv_lib_$ac_lib_var=yes"
2096 echo "configure: failed program was:" >&5
2097 cat conftest.
$ac_ext >&5
2099 eval "ac_cv_lib_$ac_lib_var=no"
2102 LIBS
="$ac_save_LIBS"
2105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2106 echo "$ac_t""yes" 1>&6
2107 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2109 echo "$ac_t""no" 1>&6
2114 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2115 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2116 echo "configure:2117: checking for shmat" >&5
2117 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2120 cat > conftest.
$ac_ext <<EOF
2121 #line 2122 "configure"
2122 #include "confdefs.h"
2123 /* System header to define __stub macros and hopefully few prototypes,
2124 which can conflict with char shmat(); below. */
2126 /* Override any gcc2 internal prototype to avoid an error. */
2127 /* We use char because int might match the return type of a gcc2
2128 builtin and then its argument prototype would still apply. */
2133 /* The GNU C library defines this for functions which it implements
2134 to always fail with ENOSYS. Some functions are actually named
2135 something starting with __ and the normal name is an alias. */
2136 #if defined (__stub_shmat) || defined (__stub___shmat)
2144 if { (eval echo configure
:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2146 eval "ac_cv_func_shmat=yes"
2148 echo "configure: failed program was:" >&5
2149 cat conftest.
$ac_ext >&5
2151 eval "ac_cv_func_shmat=no"
2156 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2157 echo "$ac_t""yes" 1>&6
2160 echo "$ac_t""no" 1>&6
2163 if test $ac_cv_func_shmat = no
; then
2164 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2165 echo "configure:2166: checking for shmat in -lipc" >&5
2166 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2170 ac_save_LIBS
="$LIBS"
2172 cat > conftest.
$ac_ext <<EOF
2173 #line 2174 "configure"
2174 #include "confdefs.h"
2175 /* Override any gcc2 internal prototype to avoid an error. */
2176 /* We use char because int might match the return type of a gcc2
2177 builtin and then its argument prototype would still apply. */
2184 if { (eval echo configure
:2185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2186 eval "ac_cv_lib_$ac_lib_var=yes"
2188 echo "configure: failed program was:" >&5
2189 cat conftest.
$ac_ext >&5
2191 eval "ac_cv_lib_$ac_lib_var=no"
2194 LIBS
="$ac_save_LIBS"
2197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2198 echo "$ac_t""yes" 1>&6
2199 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2201 echo "$ac_t""no" 1>&6
2207 # Check for libraries that X11R6 Xt/Xaw programs need.
2208 ac_save_LDFLAGS
="$LDFLAGS"
2209 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2210 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2211 # check for ICE first), but we must link in the order -lSM -lICE or
2212 # we get undefined symbols. So assume we have SM if we have ICE.
2213 # These have to be linked with before -lX11, unlike the other
2214 # libraries we check for below, so use a different variable.
2215 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2216 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2217 echo "configure:2218: checking for IceConnectionNumber in -lICE" >&5
2218 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2222 ac_save_LIBS
="$LIBS"
2224 cat > conftest.
$ac_ext <<EOF
2225 #line 2226 "configure"
2226 #include "confdefs.h"
2227 /* Override any gcc2 internal prototype to avoid an error. */
2228 /* We use char because int might match the return type of a gcc2
2229 builtin and then its argument prototype would still apply. */
2230 char IceConnectionNumber();
2233 IceConnectionNumber()
2236 if { (eval echo configure
:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2238 eval "ac_cv_lib_$ac_lib_var=yes"
2240 echo "configure: failed program was:" >&5
2241 cat conftest.
$ac_ext >&5
2243 eval "ac_cv_lib_$ac_lib_var=no"
2246 LIBS
="$ac_save_LIBS"
2249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2250 echo "$ac_t""yes" 1>&6
2251 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2253 echo "$ac_t""no" 1>&6
2256 LDFLAGS
="$ac_save_LDFLAGS"
2262 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2264 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2265 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2266 echo "configure:2267: checking for $ac_hdr that defines DIR" >&5
2267 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2270 cat > conftest.
$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273 #include <sys/types.h>
2279 if { (eval echo configure
:2280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2281 eval "ac_cv_header_dirent_$ac_safe=yes"
2283 echo "configure: failed program was:" >&5
2284 cat conftest.
$ac_ext >&5
2286 eval "ac_cv_header_dirent_$ac_safe=no"
2290 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2291 echo "$ac_t""yes" 1>&6
2292 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2293 cat >> confdefs.h
<<EOF
2294 #define $ac_tr_hdr 1
2296 ac_header_dirent
=$ac_hdr; break
2298 echo "$ac_t""no" 1>&6
2301 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2302 if test $ac_header_dirent = dirent.h
; then
2303 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2304 echo "configure:2305: checking for opendir in -ldir" >&5
2305 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2309 ac_save_LIBS
="$LIBS"
2311 cat > conftest.
$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2314 /* Override any gcc2 internal prototype to avoid an error. */
2315 /* We use char because int might match the return type of a gcc2
2316 builtin and then its argument prototype would still apply. */
2323 if { (eval echo configure
:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2325 eval "ac_cv_lib_$ac_lib_var=yes"
2327 echo "configure: failed program was:" >&5
2328 cat conftest.
$ac_ext >&5
2330 eval "ac_cv_lib_$ac_lib_var=no"
2333 LIBS
="$ac_save_LIBS"
2336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2337 echo "$ac_t""yes" 1>&6
2340 echo "$ac_t""no" 1>&6
2344 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2345 echo "configure:2346: checking for opendir in -lx" >&5
2346 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 ac_save_LIBS
="$LIBS"
2352 cat > conftest.
$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355 /* Override any gcc2 internal prototype to avoid an error. */
2356 /* We use char because int might match the return type of a gcc2
2357 builtin and then its argument prototype would still apply. */
2364 if { (eval echo configure
:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2366 eval "ac_cv_lib_$ac_lib_var=yes"
2368 echo "configure: failed program was:" >&5
2369 cat conftest.
$ac_ext >&5
2371 eval "ac_cv_lib_$ac_lib_var=no"
2374 LIBS
="$ac_save_LIBS"
2377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2378 echo "$ac_t""yes" 1>&6
2381 echo "$ac_t""no" 1>&6
2386 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2387 echo "configure:2388: checking for ANSI C header files" >&5
2388 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2391 cat > conftest.
$ac_ext <<EOF
2392 #line 2393 "configure"
2393 #include "confdefs.h"
2399 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2400 { (eval echo configure
:2401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2401 ac_err
=`grep -v '^ *+' conftest.out`
2402 if test -z "$ac_err"; then
2404 ac_cv_header_stdc
=yes
2407 echo "configure: failed program was:" >&5
2408 cat conftest.
$ac_ext >&5
2410 ac_cv_header_stdc
=no
2414 if test $ac_cv_header_stdc = yes; then
2415 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2416 cat > conftest.
$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2422 egrep "memchr" >/dev
/null
2>&1; then
2426 ac_cv_header_stdc
=no
2432 if test $ac_cv_header_stdc = yes; then
2433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2434 cat > conftest.
$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2440 egrep "free" >/dev
/null
2>&1; then
2444 ac_cv_header_stdc
=no
2450 if test $ac_cv_header_stdc = yes; then
2451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2452 if test "$cross_compiling" = yes; then
2455 cat > conftest.
$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2459 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2460 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2461 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2462 int main () { int i; for (i = 0; i < 256; i++)
2463 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2467 if { (eval echo configure
:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2471 echo "configure: failed program was:" >&5
2472 cat conftest.
$ac_ext >&5
2474 ac_cv_header_stdc
=no
2482 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2483 if test $ac_cv_header_stdc = yes; then
2484 cat >> confdefs.h
<<\EOF
2485 #define STDC_HEADERS 1
2490 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2491 echo "configure:2492: checking for sys/wait.h that is POSIX.1 compatible" >&5
2492 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2495 cat > conftest.
$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2498 #include <sys/types.h>
2499 #include <sys/wait.h>
2501 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2504 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2509 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2512 if { (eval echo configure
:2513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2514 ac_cv_header_sys_wait_h
=yes
2516 echo "configure: failed program was:" >&5
2517 cat conftest.
$ac_ext >&5
2519 ac_cv_header_sys_wait_h
=no
2524 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2525 if test $ac_cv_header_sys_wait_h = yes; then
2526 cat >> confdefs.h
<<\EOF
2527 #define HAVE_SYS_WAIT_H 1
2532 for ac_hdr
in fcntl.h
2534 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2536 echo "configure:2537: checking for $ac_hdr" >&5
2537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 cat > conftest.
$ac_ext <<EOF
2541 #line 2542 "configure"
2542 #include "confdefs.h"
2545 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2546 { (eval echo configure
:2547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2547 ac_err
=`grep -v '^ *+' conftest.out`
2548 if test -z "$ac_err"; then
2550 eval "ac_cv_header_$ac_safe=yes"
2553 echo "configure: failed program was:" >&5
2554 cat conftest.
$ac_ext >&5
2556 eval "ac_cv_header_$ac_safe=no"
2560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2561 echo "$ac_t""yes" 1>&6
2562 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2563 cat >> confdefs.h
<<EOF
2564 #define $ac_tr_hdr 1
2568 echo "$ac_t""no" 1>&6
2572 for ac_hdr
in limits.h
2574 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2576 echo "configure:2577: checking for $ac_hdr" >&5
2577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2578 echo $ac_n "(cached) $ac_c" 1>&6
2580 cat > conftest.
$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2585 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2586 { (eval echo configure
:2587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2587 ac_err
=`grep -v '^ *+' conftest.out`
2588 if test -z "$ac_err"; then
2590 eval "ac_cv_header_$ac_safe=yes"
2593 echo "configure: failed program was:" >&5
2594 cat conftest.
$ac_ext >&5
2596 eval "ac_cv_header_$ac_safe=no"
2600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2601 echo "$ac_t""yes" 1>&6
2602 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2603 cat >> confdefs.h
<<EOF
2604 #define $ac_tr_hdr 1
2608 echo "$ac_t""no" 1>&6
2612 for ac_hdr
in sys
/file.h
2614 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2616 echo "configure:2617: checking for $ac_hdr" >&5
2617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2620 cat > conftest.
$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2625 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2626 { (eval echo configure
:2627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2627 ac_err
=`grep -v '^ *+' conftest.out`
2628 if test -z "$ac_err"; then
2630 eval "ac_cv_header_$ac_safe=yes"
2633 echo "configure: failed program was:" >&5
2634 cat conftest.
$ac_ext >&5
2636 eval "ac_cv_header_$ac_safe=no"
2640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2641 echo "$ac_t""yes" 1>&6
2642 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2643 cat >> confdefs.h
<<EOF
2644 #define $ac_tr_hdr 1
2648 echo "$ac_t""no" 1>&6
2652 for ac_hdr
in sys
/time.h
2654 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2656 echo "configure:2657: checking for $ac_hdr" >&5
2657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2660 cat > conftest.
$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2665 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2666 { (eval echo configure
:2667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2667 ac_err
=`grep -v '^ *+' conftest.out`
2668 if test -z "$ac_err"; then
2670 eval "ac_cv_header_$ac_safe=yes"
2673 echo "configure: failed program was:" >&5
2674 cat conftest.
$ac_ext >&5
2676 eval "ac_cv_header_$ac_safe=no"
2680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2681 echo "$ac_t""yes" 1>&6
2682 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2683 cat >> confdefs.h
<<EOF
2684 #define $ac_tr_hdr 1
2688 echo "$ac_t""no" 1>&6
2692 for ac_hdr
in unistd.h
2694 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2696 echo "configure:2697: checking for $ac_hdr" >&5
2697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 cat > conftest.
$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2705 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2706 { (eval echo configure
:2707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2707 ac_err
=`grep -v '^ *+' conftest.out`
2708 if test -z "$ac_err"; then
2710 eval "ac_cv_header_$ac_safe=yes"
2713 echo "configure: failed program was:" >&5
2714 cat conftest.
$ac_ext >&5
2716 eval "ac_cv_header_$ac_safe=no"
2720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2723 cat >> confdefs.h
<<EOF
2724 #define $ac_tr_hdr 1
2728 echo "$ac_t""no" 1>&6
2732 for ac_hdr
in fnmatch.h
2734 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2736 echo "configure:2737: checking for $ac_hdr" >&5
2737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2740 cat > conftest.
$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2745 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2746 { (eval echo configure
:2747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2747 ac_err
=`grep -v '^ *+' conftest.out`
2748 if test -z "$ac_err"; then
2750 eval "ac_cv_header_$ac_safe=yes"
2753 echo "configure: failed program was:" >&5
2754 cat conftest.
$ac_ext >&5
2756 eval "ac_cv_header_$ac_safe=no"
2760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2761 echo "$ac_t""yes" 1>&6
2762 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2763 cat >> confdefs.h
<<EOF
2764 #define $ac_tr_hdr 1
2768 echo "$ac_t""no" 1>&6
2772 for ac_hdr
in linux
/joystick.h
2774 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2776 echo "configure:2777: checking for $ac_hdr" >&5
2777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2780 cat > conftest.
$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2785 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2786 { (eval echo configure
:2787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2787 ac_err
=`grep -v '^ *+' conftest.out`
2788 if test -z "$ac_err"; then
2790 eval "ac_cv_header_$ac_safe=yes"
2793 echo "configure: failed program was:" >&5
2794 cat conftest.
$ac_ext >&5
2796 eval "ac_cv_header_$ac_safe=no"
2800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2801 echo "$ac_t""yes" 1>&6
2802 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2803 cat >> confdefs.h
<<EOF
2804 #define $ac_tr_hdr 1
2808 echo "$ac_t""no" 1>&6
2813 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
2814 GTK_JOYSTICK
="gtk/joystick.cpp"
2818 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2819 echo "configure:2820: checking for vprintf" >&5
2820 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2823 cat > conftest.
$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2826 /* System header to define __stub macros and hopefully few prototypes,
2827 which can conflict with char vprintf(); below. */
2829 /* Override any gcc2 internal prototype to avoid an error. */
2830 /* We use char because int might match the return type of a gcc2
2831 builtin and then its argument prototype would still apply. */
2836 /* The GNU C library defines this for functions which it implements
2837 to always fail with ENOSYS. Some functions are actually named
2838 something starting with __ and the normal name is an alias. */
2839 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2847 if { (eval echo configure
:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2849 eval "ac_cv_func_vprintf=yes"
2851 echo "configure: failed program was:" >&5
2852 cat conftest.
$ac_ext >&5
2854 eval "ac_cv_func_vprintf=no"
2859 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2860 echo "$ac_t""yes" 1>&6
2861 cat >> confdefs.h
<<\EOF
2862 #define HAVE_VPRINTF 1
2866 echo "$ac_t""no" 1>&6
2869 if test "$ac_cv_func_vprintf" != yes; then
2870 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2871 echo "configure:2872: checking for _doprnt" >&5
2872 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2875 cat > conftest.
$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2878 /* System header to define __stub macros and hopefully few prototypes,
2879 which can conflict with char _doprnt(); below. */
2881 /* Override any gcc2 internal prototype to avoid an error. */
2882 /* We use char because int might match the return type of a gcc2
2883 builtin and then its argument prototype would still apply. */
2888 /* The GNU C library defines this for functions which it implements
2889 to always fail with ENOSYS. Some functions are actually named
2890 something starting with __ and the normal name is an alias. */
2891 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2899 if { (eval echo configure
:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2901 eval "ac_cv_func__doprnt=yes"
2903 echo "configure: failed program was:" >&5
2904 cat conftest.
$ac_ext >&5
2906 eval "ac_cv_func__doprnt=no"
2911 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2912 echo "$ac_t""yes" 1>&6
2913 cat >> confdefs.h
<<\EOF
2914 #define HAVE_DOPRNT 1
2918 echo "$ac_t""no" 1>&6
2923 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
2924 echo "configure:2925: checking for vsnprintf" >&5
2925 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2928 cat > conftest.
$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 /* System header to define __stub macros and hopefully few prototypes,
2932 which can conflict with char vsnprintf(); below. */
2934 /* Override any gcc2 internal prototype to avoid an error. */
2935 /* We use char because int might match the return type of a gcc2
2936 builtin and then its argument prototype would still apply. */
2941 /* The GNU C library defines this for functions which it implements
2942 to always fail with ENOSYS. Some functions are actually named
2943 something starting with __ and the normal name is an alias. */
2944 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
2952 if { (eval echo configure
:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2954 eval "ac_cv_func_vsnprintf=yes"
2956 echo "configure: failed program was:" >&5
2957 cat conftest.
$ac_ext >&5
2959 eval "ac_cv_func_vsnprintf=no"
2964 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
2965 echo "$ac_t""yes" 1>&6
2966 cat >> confdefs.h
<<\EOF
2967 #define HAVE_VSNPRINTF 1
2971 echo "$ac_t""no" 1>&6
2977 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2978 ac_cpp
='$CXXCPP $CPPFLAGS'
2979 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2980 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2981 cross_compiling
=$ac_cv_prog_cxx_cross
2983 for ac_hdr
in iostream
2985 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_hdr" >&5
2988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 cat > conftest.
$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2996 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2997 { (eval echo configure
:2998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2998 ac_err
=`grep -v '^ *+' conftest.out`
2999 if test -z "$ac_err"; then
3001 eval "ac_cv_header_$ac_safe=yes"
3004 echo "configure: failed program was:" >&5
3005 cat conftest.
$ac_ext >&5
3007 eval "ac_cv_header_$ac_safe=no"
3011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3012 echo "$ac_t""yes" 1>&6
3013 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3014 cat >> confdefs.h
<<EOF
3015 #define $ac_tr_hdr 1
3019 echo "$ac_t""no" 1>&6
3023 if test "x$HAVE_IOSTREAM" = "x" ; then
3024 cat >> confdefs.h
<<\EOF
3025 #define wxUSE_IOSTREAMH 1
3030 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3031 ac_cpp
='$CPP $CPPFLAGS'
3032 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3033 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3034 cross_compiling
=$ac_cv_prog_cc_cross
3037 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3038 echo "configure:3039: checking for uid_t in sys/types.h" >&5
3039 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3040 echo $ac_n "(cached) $ac_c" 1>&6
3042 cat > conftest.
$ac_ext <<EOF
3043 #line 3044 "configure"
3044 #include "confdefs.h"
3045 #include <sys/types.h>
3047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3048 egrep "uid_t" >/dev
/null
2>&1; then
3050 ac_cv_type_uid_t
=yes
3059 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3060 if test $ac_cv_type_uid_t = no
; then
3061 cat >> confdefs.h
<<\EOF
3065 cat >> confdefs.h
<<\EOF
3071 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3072 echo "configure:3073: checking type of array argument to getgroups" >&5
3073 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3076 if test "$cross_compiling" = yes; then
3077 ac_cv_type_getgroups
=cross
3079 cat > conftest.
$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3083 /* Thanks to Mike Rendell for this test. */
3084 #include <sys/types.h>
3087 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3092 union { gid_t gval; long lval; } val;
3095 for (i = 0; i < NGID; i++)
3096 gidset[i] = val.gval;
3097 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3099 /* Exit non-zero if getgroups seems to require an array of ints. This
3100 happens when gid_t is short but getgroups modifies an array of ints. */
3101 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3105 if { (eval echo configure
:3106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3107 ac_cv_type_getgroups
=gid_t
3109 echo "configure: failed program was:" >&5
3110 cat conftest.
$ac_ext >&5
3112 ac_cv_type_getgroups
=int
3117 if test $ac_cv_type_getgroups = cross
; then
3118 cat > conftest.
$ac_ext <<EOF
3119 #line 3120 "configure"
3120 #include "confdefs.h"
3123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3124 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3126 ac_cv_type_getgroups
=gid_t
3129 ac_cv_type_getgroups
=int
3136 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3137 cat >> confdefs.h
<<EOF
3138 #define GETGROUPS_T $ac_cv_type_getgroups
3142 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3143 echo "configure:3144: checking for mode_t" >&5
3144 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3147 cat > conftest.
$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3150 #include <sys/types.h>
3156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3157 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3159 ac_cv_type_mode_t
=yes
3162 ac_cv_type_mode_t
=no
3167 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3168 if test $ac_cv_type_mode_t = no
; then
3169 cat >> confdefs.h
<<\EOF
3175 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3176 echo "configure:3177: checking for off_t" >&5
3177 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 cat > conftest.
$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3183 #include <sys/types.h>
3189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3190 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3192 ac_cv_type_off_t
=yes
3200 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3201 if test $ac_cv_type_off_t = no
; then
3202 cat >> confdefs.h
<<\EOF
3208 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3209 echo "configure:3210: checking for pid_t" >&5
3210 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3213 cat > conftest.
$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 #include <sys/types.h>
3222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3223 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3225 ac_cv_type_pid_t
=yes
3233 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3234 if test $ac_cv_type_pid_t = no
; then
3235 cat >> confdefs.h
<<\EOF
3241 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3242 echo "configure:3243: checking return type of signal handlers" >&5
3243 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3246 cat > conftest.
$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 #include <sys/types.h>
3255 extern "C" void (*signal (int, void (*)(int)))(int);
3257 void (*signal ()) ();
3264 if { (eval echo configure
:3265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3266 ac_cv_type_signal
=void
3268 echo "configure: failed program was:" >&5
3269 cat conftest.
$ac_ext >&5
3271 ac_cv_type_signal
=int
3276 echo "$ac_t""$ac_cv_type_signal" 1>&6
3277 cat >> confdefs.h
<<EOF
3278 #define RETSIGTYPE $ac_cv_type_signal
3282 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3283 echo "configure:3284: checking for size_t" >&5
3284 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3287 cat > conftest.
$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 #include <sys/types.h>
3296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3299 ac_cv_type_size_t
=yes
3302 ac_cv_type_size_t
=no
3307 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3308 if test $ac_cv_type_size_t = no
; then
3309 cat >> confdefs.h
<<\EOF
3310 #define size_t unsigned
3315 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3316 echo "configure:3317: checking for uid_t in sys/types.h" >&5
3317 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3320 cat > conftest.
$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 #include <sys/types.h>
3325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3326 egrep "uid_t" >/dev
/null
2>&1; then
3328 ac_cv_type_uid_t
=yes
3337 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3338 if test $ac_cv_type_uid_t = no
; then
3339 cat >> confdefs.h
<<\EOF
3343 cat >> confdefs.h
<<\EOF
3351 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3352 echo "configure:3353: checking whether stat file-mode macros are broken" >&5
3353 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 cat > conftest.
$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3359 #include <sys/types.h>
3360 #include <sys/stat.h>
3362 #if defined(S_ISBLK) && defined(S_IFDIR)
3363 # if S_ISBLK (S_IFDIR)
3368 #if defined(S_ISBLK) && defined(S_IFCHR)
3369 # if S_ISBLK (S_IFCHR)
3374 #if defined(S_ISLNK) && defined(S_IFREG)
3375 # if S_ISLNK (S_IFREG)
3380 #if defined(S_ISSOCK) && defined(S_IFREG)
3381 # if S_ISSOCK (S_IFREG)
3387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3388 egrep "You lose" >/dev
/null
2>&1; then
3390 ac_cv_header_stat_broken
=yes
3393 ac_cv_header_stat_broken
=no
3399 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3400 if test $ac_cv_header_stat_broken = yes; then
3401 cat >> confdefs.h
<<\EOF
3402 #define STAT_MACROS_BROKEN 1
3407 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3408 echo "configure:3409: checking whether time.h and sys/time.h may both be included" >&5
3409 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 cat > conftest.
$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 #include <sys/types.h>
3416 #include <sys/time.h>
3422 if { (eval echo configure
:3423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3424 ac_cv_header_time
=yes
3426 echo "configure: failed program was:" >&5
3427 cat conftest.
$ac_ext >&5
3429 ac_cv_header_time
=no
3434 echo "$ac_t""$ac_cv_header_time" 1>&6
3435 if test $ac_cv_header_time = yes; then
3436 cat >> confdefs.h
<<\EOF
3437 #define TIME_WITH_SYS_TIME 1
3442 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3443 echo "configure:3444: checking for st_blksize in struct stat" >&5
3444 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3447 cat > conftest.
$ac_ext <<EOF
3448 #line 3449 "configure"
3449 #include "confdefs.h"
3450 #include <sys/types.h>
3451 #include <sys/stat.h>
3453 struct stat s; s.st_blksize;
3456 if { (eval echo configure
:3457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3458 ac_cv_struct_st_blksize
=yes
3460 echo "configure: failed program was:" >&5
3461 cat conftest.
$ac_ext >&5
3463 ac_cv_struct_st_blksize
=no
3468 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3469 if test $ac_cv_struct_st_blksize = yes; then
3470 cat >> confdefs.h
<<\EOF
3471 #define HAVE_ST_BLKSIZE 1
3476 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3477 echo "configure:3478: checking for st_blocks in struct stat" >&5
3478 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3479 echo $ac_n "(cached) $ac_c" 1>&6
3481 cat > conftest.
$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3484 #include <sys/types.h>
3485 #include <sys/stat.h>
3487 struct stat s; s.st_blocks;
3490 if { (eval echo configure
:3491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3492 ac_cv_struct_st_blocks
=yes
3494 echo "configure: failed program was:" >&5
3495 cat conftest.
$ac_ext >&5
3497 ac_cv_struct_st_blocks
=no
3502 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3503 if test $ac_cv_struct_st_blocks = yes; then
3504 cat >> confdefs.h
<<\EOF
3505 #define HAVE_ST_BLOCKS 1
3509 LIBOBJS
="$LIBOBJS fileblocks.o"
3512 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3513 echo "configure:3514: checking for st_rdev in struct stat" >&5
3514 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3517 cat > conftest.
$ac_ext <<EOF
3518 #line 3519 "configure"
3519 #include "confdefs.h"
3520 #include <sys/types.h>
3521 #include <sys/stat.h>
3523 struct stat s; s.st_rdev;
3526 if { (eval echo configure
:3527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3528 ac_cv_struct_st_rdev
=yes
3530 echo "configure: failed program was:" >&5
3531 cat conftest.
$ac_ext >&5
3533 ac_cv_struct_st_rdev
=no
3538 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3539 if test $ac_cv_struct_st_rdev = yes; then
3540 cat >> confdefs.h
<<\EOF
3541 #define HAVE_ST_RDEV 1
3546 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3547 echo "configure:3548: checking whether struct tm is in sys/time.h or time.h" >&5
3548 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3551 cat > conftest.
$ac_ext <<EOF
3552 #line 3553 "configure"
3553 #include "confdefs.h"
3554 #include <sys/types.h>
3557 struct tm *tp; tp->tm_sec;
3560 if { (eval echo configure
:3561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3562 ac_cv_struct_tm
=time.h
3564 echo "configure: failed program was:" >&5
3565 cat conftest.
$ac_ext >&5
3567 ac_cv_struct_tm
=sys
/time.h
3572 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3573 if test $ac_cv_struct_tm = sys
/time.h
; then
3574 cat >> confdefs.h
<<\EOF
3575 #define TM_IN_SYS_TIME 1
3580 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3581 echo "configure:3582: checking for tm_zone in struct tm" >&5
3582 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3585 cat > conftest.
$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 #include <sys/types.h>
3589 #include <$ac_cv_struct_tm>
3591 struct tm tm; tm.tm_zone;
3594 if { (eval echo configure
:3595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3596 ac_cv_struct_tm_zone
=yes
3598 echo "configure: failed program was:" >&5
3599 cat conftest.
$ac_ext >&5
3601 ac_cv_struct_tm_zone
=no
3606 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3607 if test "$ac_cv_struct_tm_zone" = yes; then
3608 cat >> confdefs.h
<<\EOF
3609 #define HAVE_TM_ZONE 1
3613 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3614 echo "configure:3615: checking for tzname" >&5
3615 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 cat > conftest.
$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3622 #ifndef tzname /* For SGI. */
3623 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3629 if { (eval echo configure
:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3631 ac_cv_var_tzname
=yes
3633 echo "configure: failed program was:" >&5
3634 cat conftest.
$ac_ext >&5
3641 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3642 if test $ac_cv_var_tzname = yes; then
3643 cat >> confdefs.h
<<\EOF
3644 #define HAVE_TZNAME 1
3652 echo $ac_n "checking for working const""... $ac_c" 1>&6
3653 echo "configure:3654: checking for working const" >&5
3654 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3657 cat > conftest.
$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3663 /* Ultrix mips cc rejects this. */
3664 typedef int charset[2]; const charset x;
3665 /* SunOS 4.1.1 cc rejects this. */
3666 char const *const *ccp;
3668 /* NEC SVR4.0.2 mips cc rejects this. */
3669 struct point {int x, y;};
3670 static struct point const zero = {0,0};
3671 /* AIX XL C 1.02.0.0 rejects this.
3672 It does not let you subtract one const X* pointer from another in an arm
3673 of an if-expression whose if-part is not a constant expression */
3674 const char *g = "string";
3675 ccp = &g + (g ? g-g : 0);
3676 /* HPUX 7.0 cc rejects these. */
3679 ccp = (char const *const *) p;
3680 { /* SCO 3.2v4 cc rejects this. */
3682 char const *s = 0 ? (char *) 0 : (char const *) 0;
3686 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3688 const int *foo = &x[0];
3691 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3692 typedef const int *iptr;
3696 { /* AIX XL C 1.02.0.0 rejects this saying
3697 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3698 struct s { int j; const int *ap[3]; };
3699 struct s *b; b->j = 5;
3701 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3707 if { (eval echo configure
:3708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3711 echo "configure: failed program was:" >&5
3712 cat conftest.
$ac_ext >&5
3719 echo "$ac_t""$ac_cv_c_const" 1>&6
3720 if test $ac_cv_c_const = no
; then
3721 cat >> confdefs.h
<<\EOF
3727 echo $ac_n "checking for inline""... $ac_c" 1>&6
3728 echo "configure:3729: checking for inline" >&5
3729 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3733 for ac_kw
in inline __inline__ __inline
; do
3734 cat > conftest.
$ac_ext <<EOF
3735 #line 3736 "configure"
3736 #include "confdefs.h"
3742 if { (eval echo configure
:3743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3744 ac_cv_c_inline
=$ac_kw; break
3746 echo "configure: failed program was:" >&5
3747 cat conftest.
$ac_ext >&5
3754 echo "$ac_t""$ac_cv_c_inline" 1>&6
3755 case "$ac_cv_c_inline" in
3757 no
) cat >> confdefs.h
<<\EOF
3761 *) cat >> confdefs.h
<<EOF
3762 #define inline $ac_cv_c_inline
3767 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3768 echo "configure:3769: checking whether char is unsigned" >&5
3769 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3770 echo $ac_n "(cached) $ac_c" 1>&6
3772 if test "$GCC" = yes; then
3773 # GCC predefines this symbol on systems where it applies.
3774 cat > conftest.
$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777 #ifdef __CHAR_UNSIGNED__
3782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3783 egrep "yes" >/dev
/null
2>&1; then
3785 ac_cv_c_char_unsigned
=yes
3788 ac_cv_c_char_unsigned
=no
3793 if test "$cross_compiling" = yes; then
3794 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3796 cat > conftest.
$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3800 #if !defined(__STDC__) || __STDC__ != 1
3804 volatile char c = 255; exit(c < 0);
3807 if { (eval echo configure
:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3809 ac_cv_c_char_unsigned
=yes
3811 echo "configure: failed program was:" >&5
3812 cat conftest.
$ac_ext >&5
3814 ac_cv_c_char_unsigned
=no
3822 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3823 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3824 cat >> confdefs.h
<<\EOF
3825 #define __CHAR_UNSIGNED__ 1
3830 echo $ac_n "checking for long double""... $ac_c" 1>&6
3831 echo "configure:3832: checking for long double" >&5
3832 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3833 echo $ac_n "(cached) $ac_c" 1>&6
3835 if test "$GCC" = yes; then
3836 ac_cv_c_long_double
=yes
3838 if test "$cross_compiling" = yes; then
3839 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3841 cat > conftest.
$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3845 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
3846 long double foo = 0.0;
3847 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3848 exit(sizeof(long double) < sizeof(double)); }
3850 if { (eval echo configure
:3851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3852 ac_cv_c_long_double
=yes
3854 echo "configure: failed program was:" >&5
3855 cat conftest.
$ac_ext >&5
3857 ac_cv_c_long_double
=no
3865 echo "$ac_t""$ac_cv_c_long_double" 1>&6
3866 if test $ac_cv_c_long_double = yes; then
3867 cat >> confdefs.h
<<\EOF
3868 #define HAVE_LONG_DOUBLE 1
3874 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3875 echo "configure:3876: checking whether byte ordering is bigendian" >&5
3876 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3877 echo $ac_n "(cached) $ac_c" 1>&6
3879 ac_cv_c_bigendian
=unknown
3880 # See if sys/param.h defines the BYTE_ORDER macro.
3881 cat > conftest.
$ac_ext <<EOF
3882 #line 3883 "configure"
3883 #include "confdefs.h"
3884 #include <sys/types.h>
3885 #include <sys/param.h>
3888 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3893 if { (eval echo configure
:3894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3895 # It does; now see whether it defined to BIG_ENDIAN or not.
3896 cat > conftest.
$ac_ext <<EOF
3897 #line 3898 "configure"
3898 #include "confdefs.h"
3899 #include <sys/types.h>
3900 #include <sys/param.h>
3903 #if BYTE_ORDER != BIG_ENDIAN
3908 if { (eval echo configure
:3909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3910 ac_cv_c_bigendian
=yes
3912 echo "configure: failed program was:" >&5
3913 cat conftest.
$ac_ext >&5
3915 ac_cv_c_bigendian
=no
3919 echo "configure: failed program was:" >&5
3920 cat conftest.
$ac_ext >&5
3923 if test $ac_cv_c_bigendian = unknown
; then
3924 if test "$cross_compiling" = yes; then
3925 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3927 cat > conftest.
$ac_ext <<EOF
3928 #line 3929 "configure"
3929 #include "confdefs.h"
3931 /* Are we little or big endian? From Harbison&Steele. */
3935 char c[sizeof (long)];
3938 exit (u.c[sizeof (long) - 1] == 1);
3941 if { (eval echo configure
:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3943 ac_cv_c_bigendian
=no
3945 echo "configure: failed program was:" >&5
3946 cat conftest.
$ac_ext >&5
3948 ac_cv_c_bigendian
=yes
3956 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3957 if test $ac_cv_c_bigendian = yes; then
3958 cat >> confdefs.h
<<\EOF
3959 #define WORDS_BIGENDIAN 1
3965 echo $ac_n "checking size of int *""... $ac_c" 1>&6
3966 echo "configure:3967: checking size of int *" >&5
3967 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3970 if test "$cross_compiling" = yes; then
3971 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3973 cat > conftest.
$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3979 FILE *f=fopen("conftestval", "w");
3981 fprintf(f, "%d\n", sizeof(int *));
3985 if { (eval echo configure
:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3987 ac_cv_sizeof_int_p
=`cat conftestval`
3989 echo "configure: failed program was:" >&5
3990 cat conftest.
$ac_ext >&5
3992 ac_cv_sizeof_int_p
=0
3998 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
3999 cat >> confdefs.h
<<EOF
4000 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
4004 echo $ac_n "checking size of int""... $ac_c" 1>&6
4005 echo "configure:4006: checking size of int" >&5
4006 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4007 echo $ac_n "(cached) $ac_c" 1>&6
4009 if test "$cross_compiling" = yes; then
4010 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4012 cat > conftest.
$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4018 FILE *f=fopen("conftestval", "w");
4020 fprintf(f, "%d\n", sizeof(int));
4024 if { (eval echo configure
:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4026 ac_cv_sizeof_int
=`cat conftestval`
4028 echo "configure: failed program was:" >&5
4029 cat conftest.
$ac_ext >&5
4037 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4038 cat >> confdefs.h
<<EOF
4039 #define SIZEOF_INT $ac_cv_sizeof_int
4043 echo $ac_n "checking size of long""... $ac_c" 1>&6
4044 echo "configure:4045: checking size of long" >&5
4045 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4048 if test "$cross_compiling" = yes; then
4049 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4051 cat > conftest.
$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4057 FILE *f=fopen("conftestval", "w");
4059 fprintf(f, "%d\n", sizeof(long));
4063 if { (eval echo configure
:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4065 ac_cv_sizeof_long
=`cat conftestval`
4067 echo "configure: failed program was:" >&5
4068 cat conftest.
$ac_ext >&5
4076 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4077 cat >> confdefs.h
<<EOF
4078 #define SIZEOF_LONG $ac_cv_sizeof_long
4082 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4083 echo "configure:4084: checking size of long long" >&5
4084 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4087 if test "$cross_compiling" = yes; then
4088 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4090 cat > conftest.
$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4096 FILE *f=fopen("conftestval", "w");
4098 fprintf(f, "%d\n", sizeof(long long));
4102 if { (eval echo configure
:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4104 ac_cv_sizeof_long_long
=`cat conftestval`
4106 echo "configure: failed program was:" >&5
4107 cat conftest.
$ac_ext >&5
4109 ac_cv_sizeof_long_long
=0
4115 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4116 cat >> confdefs.h
<<EOF
4117 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4125 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4126 echo "configure:4127: checking for long file names" >&5
4127 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4130 ac_cv_sys_long_file_names
=yes
4131 # Test for long file names in all the places we know might matter:
4132 # . the current directory, where building will happen
4133 # $prefix/lib where we will be installing things
4134 # $exec_prefix/lib likewise
4135 # eval it to expand exec_prefix.
4136 # $TMPDIR if set, where it might want to write temporary files
4137 # if $TMPDIR is not set:
4138 # /tmp where it might want to write temporary files
4141 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4142 ac_tmpdirs
="$TMPDIR"
4144 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
4146 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4147 test -d $ac_dir || continue
4148 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4149 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
4150 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
4151 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
4152 if test ! -f $ac_dir/conftest9012345
|| test "$val" != 1; then
4153 ac_cv_sys_long_file_names
=no
4154 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4157 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4161 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4162 if test $ac_cv_sys_long_file_names = yes; then
4163 cat >> confdefs.h
<<\EOF
4164 #define HAVE_LONG_FILE_NAMES 1
4172 for ac_prog
in 'bison -y' byacc
4174 # Extract the first word of "$ac_prog", so it can be a program name with args.
4175 set dummy
$ac_prog; ac_word
=$2
4176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4177 echo "configure:4178: checking for $ac_word" >&5
4178 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4181 if test -n "$YACC"; then
4182 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4184 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4185 for ac_dir
in $PATH; do
4186 test -z "$ac_dir" && ac_dir
=.
4187 if test -f $ac_dir/$ac_word; then
4188 ac_cv_prog_YACC
="$ac_prog"
4195 YACC
="$ac_cv_prog_YACC"
4196 if test -n "$YACC"; then
4197 echo "$ac_t""$YACC" 1>&6
4199 echo "$ac_t""no" 1>&6
4202 test -n "$YACC" && break
4204 test -n "$YACC" || YACC
="yacc"
4207 # Extract the first word of "flex", so it can be a program name with args.
4208 set dummy flex
; ac_word
=$2
4209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4210 echo "configure:4211: checking for $ac_word" >&5
4211 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4214 if test -n "$LEX"; then
4215 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4217 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4218 for ac_dir
in $PATH; do
4219 test -z "$ac_dir" && ac_dir
=.
4220 if test -f $ac_dir/$ac_word; then
4221 ac_cv_prog_LEX
="flex"
4226 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4229 LEX
="$ac_cv_prog_LEX"
4230 if test -n "$LEX"; then
4231 echo "$ac_t""$LEX" 1>&6
4233 echo "$ac_t""no" 1>&6
4236 if test -z "$LEXLIB"
4242 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4243 echo "configure:4244: checking for yywrap in -l$ac_lib" >&5
4244 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 ac_save_LIBS
="$LIBS"
4249 LIBS
="-l$ac_lib $LIBS"
4250 cat > conftest.
$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253 /* Override any gcc2 internal prototype to avoid an error. */
4254 /* We use char because int might match the return type of a gcc2
4255 builtin and then its argument prototype would still apply. */
4262 if { (eval echo configure
:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4264 eval "ac_cv_lib_$ac_lib_var=yes"
4266 echo "configure: failed program was:" >&5
4267 cat conftest.
$ac_ext >&5
4269 eval "ac_cv_lib_$ac_lib_var=no"
4272 LIBS
="$ac_save_LIBS"
4275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4276 echo "$ac_t""yes" 1>&6
4279 echo "$ac_t""no" 1>&6
4284 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4285 echo "configure:4286: checking lex output file root" >&5
4286 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4289 # The minimal lex program is just a single line: %%. But some broken lexes
4290 # (Solaris, I think it was) want two %% lines, so accommodate them.
4293 if test -f lex.yy.c
; then
4294 ac_cv_prog_lex_root
=lex.yy
4295 elif test -f lexyy.c
; then
4296 ac_cv_prog_lex_root
=lexyy
4298 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4302 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4303 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4305 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4306 echo "configure:4307: checking whether yytext is a pointer" >&5
4307 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4310 # POSIX says lex can declare yytext either as a pointer or an array; the
4311 # default is implementation-dependent. Figure out which it is, since
4312 # not all implementations provide the %pointer and %array declarations.
4313 ac_cv_prog_lex_yytext_pointer
=no
4314 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4315 ac_save_LIBS
="$LIBS"
4316 LIBS
="$LIBS $LEXLIB"
4317 cat > conftest.
$ac_ext <<EOF
4318 #line 4319 "configure"
4319 #include "confdefs.h"
4320 `cat $LEX_OUTPUT_ROOT.c`
4325 if { (eval echo configure
:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4327 ac_cv_prog_lex_yytext_pointer
=yes
4329 echo "configure: failed program was:" >&5
4330 cat conftest.
$ac_ext >&5
4333 LIBS
="$ac_save_LIBS"
4334 rm -f "${LEX_OUTPUT_ROOT}.c"
4338 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4339 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4340 cat >> confdefs.h
<<\EOF
4341 #define YYTEXT_POINTER 1
4349 for ac_func
in dlopen
4351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4352 echo "configure:4353: checking for $ac_func" >&5
4353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4354 echo $ac_n "(cached) $ac_c" 1>&6
4356 cat > conftest.
$ac_ext <<EOF
4357 #line 4358 "configure"
4358 #include "confdefs.h"
4359 /* System header to define __stub macros and hopefully few prototypes,
4360 which can conflict with char $ac_func(); below. */
4362 /* Override any gcc2 internal prototype to avoid an error. */
4363 /* We use char because int might match the return type of a gcc2
4364 builtin and then its argument prototype would still apply. */
4369 /* The GNU C library defines this for functions which it implements
4370 to always fail with ENOSYS. Some functions are actually named
4371 something starting with __ and the normal name is an alias. */
4372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4380 if { (eval echo configure
:4381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4382 eval "ac_cv_func_$ac_func=yes"
4384 echo "configure: failed program was:" >&5
4385 cat conftest.
$ac_ext >&5
4387 eval "ac_cv_func_$ac_func=no"
4392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4393 echo "$ac_t""yes" 1>&6
4394 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4395 cat >> confdefs.h
<<EOF
4396 #define $ac_tr_func 1
4398 cat >> confdefs.h
<<\EOF
4399 #define HAVE_LIBDL 1
4403 echo "$ac_t""no" 1>&6
4404 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4405 echo "configure:4406: checking for dlopen in -ldl" >&5
4406 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4410 ac_save_LIBS
="$LIBS"
4412 cat > conftest.
$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4415 /* Override any gcc2 internal prototype to avoid an error. */
4416 /* We use char because int might match the return type of a gcc2
4417 builtin and then its argument prototype would still apply. */
4424 if { (eval echo configure
:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4426 eval "ac_cv_lib_$ac_lib_var=yes"
4428 echo "configure: failed program was:" >&5
4429 cat conftest.
$ac_ext >&5
4431 eval "ac_cv_lib_$ac_lib_var=no"
4434 LIBS
="$ac_save_LIBS"
4437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4438 echo "$ac_t""yes" 1>&6
4439 cat >> confdefs.h
<<\EOF
4440 #define HAVE_LIBDL 1
4444 echo "$ac_t""no" 1>&6
4445 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4446 echo "configure:4447: checking for dld_link in -ldld" >&5
4447 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4451 ac_save_LIBS
="$LIBS"
4453 cat > conftest.
$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4456 /* Override any gcc2 internal prototype to avoid an error. */
4457 /* We use char because int might match the return type of a gcc2
4458 builtin and then its argument prototype would still apply. */
4465 if { (eval echo configure
:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4467 eval "ac_cv_lib_$ac_lib_var=yes"
4469 echo "configure: failed program was:" >&5
4470 cat conftest.
$ac_ext >&5
4472 eval "ac_cv_lib_$ac_lib_var=no"
4475 LIBS
="$ac_save_LIBS"
4478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4479 echo "$ac_t""yes" 1>&6
4480 cat >> confdefs.h
<<\EOF
4485 echo "$ac_t""no" 1>&6
4486 for ac_func
in shl_load
4488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4489 echo "configure:4490: checking for $ac_func" >&5
4490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4493 cat > conftest.
$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4496 /* System header to define __stub macros and hopefully few prototypes,
4497 which can conflict with char $ac_func(); below. */
4499 /* Override any gcc2 internal prototype to avoid an error. */
4500 /* We use char because int might match the return type of a gcc2
4501 builtin and then its argument prototype would still apply. */
4506 /* The GNU C library defines this for functions which it implements
4507 to always fail with ENOSYS. Some functions are actually named
4508 something starting with __ and the normal name is an alias. */
4509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4517 if { (eval echo configure
:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4519 eval "ac_cv_func_$ac_func=yes"
4521 echo "configure: failed program was:" >&5
4522 cat conftest.
$ac_ext >&5
4524 eval "ac_cv_func_$ac_func=no"
4529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4530 echo "$ac_t""yes" 1>&6
4531 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4532 cat >> confdefs.h
<<EOF
4533 #define $ac_tr_func 1
4535 cat >> confdefs.h
<<\EOF
4536 #define HAVE_SHL_LOAD 1
4540 echo "$ac_t""no" 1>&6
4556 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
4557 echo "configure:4558: checking for underscore before symbols" >&5
4558 if eval "test \"`echo '$''{'libltdl_cv_uscore'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4562 echo "main(){int i=1;} fnord(){int i=23; int ltuae=42;}" > conftest.c
4563 ${CC} -c conftest.c
> /dev
/null
4564 if (nm conftest.o
| grep _fnord
) > /dev
/null
; then
4565 libltdl_cv_uscore
=yes
4567 libltdl_cv_uscore
=no
4573 echo "$ac_t""$libltdl_cv_uscore" 1>&6
4575 if test x
"$libltdl_cv_uscore" = xyes
; then
4576 if test x
"$ac_cv_func_dlopen" = xyes
||
4577 test x
"$ac_cv_lib_dl_dlopen" = xyes
; then
4578 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
4579 echo "configure:4580: checking whether we have to add an underscore for dlsym" >&5
4580 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4583 if test "$cross_compiling" = yes; then
4584 libltdl_cv_need_uscore
=no
4587 cat > conftest.
$ac_ext <<EOF
4588 #line 4589 "configure"
4589 #include "confdefs.h"
4593 fnord() { int i=42;}
4594 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
4595 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
4596 if(ptr1 && !ptr2) exit(0); } exit(1); }
4599 if { (eval echo configure
:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4601 libltdl_cv_need_uscore
=no
4603 echo "configure: failed program was:" >&5
4604 cat conftest.
$ac_ext >&5
4606 libltdl_cv_need_uscore
=yes
4613 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
4617 if test x
"$libltdl_cv_need_uscore" = xyes
; then
4618 cat >> confdefs.h
<<\EOF
4619 #define NEED_USCORE 1
4625 for ac_func
in strerror
4627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4628 echo "configure:4629: checking for $ac_func" >&5
4629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4632 cat > conftest.
$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4635 /* System header to define __stub macros and hopefully few prototypes,
4636 which can conflict with char $ac_func(); below. */
4638 /* Override any gcc2 internal prototype to avoid an error. */
4639 /* We use char because int might match the return type of a gcc2
4640 builtin and then its argument prototype would still apply. */
4645 /* The GNU C library defines this for functions which it implements
4646 to always fail with ENOSYS. Some functions are actually named
4647 something starting with __ and the normal name is an alias. */
4648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4656 if { (eval echo configure
:4657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4658 eval "ac_cv_func_$ac_func=yes"
4660 echo "configure: failed program was:" >&5
4661 cat conftest.
$ac_ext >&5
4663 eval "ac_cv_func_$ac_func=no"
4668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4669 echo "$ac_t""yes" 1>&6
4670 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4671 cat >> confdefs.h
<<EOF
4672 #define $ac_tr_func 1
4676 echo "$ac_t""no" 1>&6
4682 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
4683 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
4687 # Make sure we can run config.sub.
4688 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
4689 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
4692 echo $ac_n "checking host system type""... $ac_c" 1>&6
4693 echo "configure:4694: checking host system type" >&5
4696 case "$host_alias" in
4700 if host_alias
=`$ac_config_guess`; then :
4701 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
4703 *) host_alias
=$nonopt ;;
4707 host=`$ac_config_sub $host_alias`
4708 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4709 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4710 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4711 echo "$ac_t""$host" 1>&6
4714 configuration
=$host_alias
4736 cat >> confdefs.h
<<\EOF
4740 case "${canonical}" in
4743 cat >> confdefs.h
<<\EOF
4750 cat >> confdefs.h
<<\EOF
4755 if test "x$TMP" = "xalpha"
4758 cat >> confdefs.h
<<\EOF
4764 *-*-irix5* | *-*-irix6* )
4767 cat >> confdefs.h
<<\EOF
4771 cat >> confdefs.h
<<\EOF
4780 cat >> confdefs.h
<<\EOF
4784 cat >> confdefs.h
<<\EOF
4785 #define __SOLARIS__ 1
4788 cat >> confdefs.h
<<\EOF
4797 cat >> confdefs.h
<<\EOF
4801 cat >> confdefs.h
<<\EOF
4805 cat >> confdefs.h
<<\EOF
4810 *-*-freebsd* | *-*-netbsd*)
4813 cat >> confdefs.h
<<\EOF
4814 #define __FREEBSD__ 1
4817 cat >> confdefs.h
<<\EOF
4825 cat >> confdefs.h
<<\EOF
4829 cat >> confdefs.h
<<\EOF
4837 cat >> confdefs.h
<<\EOF
4841 cat >> confdefs.h
<<\EOF
4849 cat >> confdefs.h
<<\EOF
4853 cat >> confdefs.h
<<\EOF
4862 cat >> confdefs.h
<<\EOF
4866 cat >> confdefs.h
<<\EOF
4870 cat >> confdefs.h
<<\EOF
4876 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
4881 rm -f ${OSTYPE}.system.cache.tmp
4882 touch ${OSTYPE}.system.cache.tmp
4883 touch ${OSTYPE}.system.cache
4888 DEFAULT_wxUSE_MOTIF
=0
4890 DEFAULT_wxUSE_THREADS
=0
4892 DEFAULT_wxUSE_SHARED
=1
4893 DEFAULT_wxUSE_OPTIMISE
=1
4894 DEFAULT_wxUSE_PROFILE
=0
4895 DEFAULT_wxUSE_DEBUG_FLAG
=0
4896 DEFAULT_wxUSE_DEBUG_INFO
=0
4897 DEFAULT_wxUSE_MEM_TRACING
=0
4898 DEFAULT_wxUSE_DMALLOC
=0
4899 DEFAULT_wxUSE_APPLE_IEEE
=1
4900 DEFAULT_wxUSE_IOSTREAMH
=1
4902 DEFAULT_wxUSE_ZLIB
=1
4903 DEFAULT_wxUSE_LIBPNG
=1
4904 DEFAULT_wxUSE_LIBJPEG
=0
4905 DEFAULT_wxUSE_ODBC
=1
4907 DEFAULT_wxUSE_TIMEDATE
=1
4908 DEFAULT_wxUSE_INTL
=1
4909 DEFAULT_wxUSE_CONFIG
=1
4910 DEFAULT_wxUSE_STREAMS
=1
4911 DEFAULT_wxUSE_SERIAL
=1
4912 DEFAULT_wxUSE_DYNLIB_CLASS
=1
4914 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
=1
4915 DEFAULT_WX_NORMALIZED_PS_FONTS
=1
4916 DEFAULT_wxUSE_POSTSCRIPT
=1
4919 DEFAULT_wxUSE_RESOURCES
=1
4920 DEFAULT_wxUSE_CLIPBOARD
=1
4921 DEFAULT_wxUSE_TOOLTIPS
=1
4922 DEFAULT_wxUSE_DRAG_AND_DROP
=1
4924 DEFAULT_wxUSE_MDI_ARCHITECTURE
=1
4925 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
=1
4926 DEFAULT_wxUSE_PRINTING_ARCHITECTURE
=1
4928 DEFAULT_wxUSE_PROLOGIO
=1
4929 DEFAULT_wxUSE_WX_RESOURCES
=1
4931 DEFAULT_wxUSE_HELP
=1
4933 DEFAULT_wxUSE_UNICODE
=1
4934 DEFAULT_wxUSE_WCSRTOMBS
=0
4938 echo $ac_n "checking "for gtk
"""... $ac_c" 1>&6
4939 echo "configure:4940: checking "for gtk
"" >&5
4940 # Check whether --with-gtk or --without-gtk was given.
4941 if test "${with_gtk+set}" = set; then
4943 if test "x$with_gtk" = xyes
; then
4944 ac_cv_use_gtk
='wxUSE_GTK="1"'
4946 ac_cv_use_gtk
='wxUSE_GTK="0"'
4950 LINE
=`grep "wxUSE_GTK" ${OSTYPE}.system.cache`
4951 if test "x$LINE" != x
; then
4952 eval "DEFAULT_$LINE"
4954 ac_cv_use_gtk
='wxUSE_GTK='$DEFAULT_wxUSE_GTK
4958 eval "$ac_cv_use_gtk"
4959 echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp
4960 if test "$wxUSE_GTK" = 1; then
4961 echo "$ac_t""yes" 1>&6
4963 echo "$ac_t""no" 1>&6
4968 echo $ac_n "checking "for qt
"""... $ac_c" 1>&6
4969 echo "configure:4970: checking "for qt
"" >&5
4970 # Check whether --with-qt or --without-qt was given.
4971 if test "${with_qt+set}" = set; then
4973 if test "x$with_qt" = xyes
; then
4974 ac_cv_use_qt
='wxUSE_QT="1"'
4976 ac_cv_use_qt
='wxUSE_QT="0"'
4980 LINE
=`grep "wxUSE_QT" ${OSTYPE}.system.cache`
4981 if test "x$LINE" != x
; then
4982 eval "DEFAULT_$LINE"
4984 ac_cv_use_qt
='wxUSE_QT='$DEFAULT_wxUSE_QT
4988 eval "$ac_cv_use_qt"
4989 echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp
4990 if test "$wxUSE_QT" = 1; then
4991 echo "$ac_t""yes" 1>&6
4993 echo "$ac_t""no" 1>&6
4998 echo $ac_n "checking "for motif
"""... $ac_c" 1>&6
4999 echo "configure:5000: checking "for motif
"" >&5
5000 # Check whether --with-motif or --without-motif was given.
5001 if test "${with_motif+set}" = set; then
5002 withval
="$with_motif"
5003 if test "x$with_motif" = xyes
; then
5004 ac_cv_use_motif
='wxUSE_MOTIF="1"'
5006 ac_cv_use_motif
='wxUSE_MOTIF="0"'
5010 LINE
=`grep "wxUSE_MOTIF" ${OSTYPE}.system.cache`
5011 if test "x$LINE" != x
; then
5012 eval "DEFAULT_$LINE"
5014 ac_cv_use_motif
='wxUSE_MOTIF='$DEFAULT_wxUSE_MOTIF
5018 eval "$ac_cv_use_motif"
5019 echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp
5020 if test "$wxUSE_MOTIF" = 1; then
5021 echo "$ac_t""yes" 1>&6
5023 echo "$ac_t""no" 1>&6
5029 echo $ac_n "checking "for shared
"""... $ac_c" 1>&6
5030 echo "configure:5031: checking "for shared
"" >&5
5031 # Check whether --with-shared or --without-shared was given.
5032 if test "${with_shared+set}" = set; then
5033 withval
="$with_shared"
5034 if test "x$with_shared" = xyes
; then
5035 ac_cv_use_shared
='wxUSE_SHARED="1"'
5037 ac_cv_use_shared
='wxUSE_SHARED="0"'
5041 LINE
=`grep "wxUSE_SHARED" ${OSTYPE}.system.cache`
5042 if test "x$LINE" != x
; then
5043 eval "DEFAULT_$LINE"
5045 ac_cv_use_shared
='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
5049 eval "$ac_cv_use_shared"
5050 echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
5051 if test "$wxUSE_SHARED" = 1; then
5052 echo "$ac_t""yes" 1>&6
5054 echo "$ac_t""no" 1>&6
5059 echo $ac_n "checking "for optimise
"""... $ac_c" 1>&6
5060 echo "configure:5061: checking "for optimise
"" >&5
5061 # Check whether --with-optimise or --without-optimise was given.
5062 if test "${with_optimise+set}" = set; then
5063 withval
="$with_optimise"
5064 if test "x$with_optimise" = xyes
; then
5065 ac_cv_use_optimise
='wxUSE_OPTIMISE="1"'
5067 ac_cv_use_optimise
='wxUSE_OPTIMISE="0"'
5071 LINE
=`grep "wxUSE_OPTIMISE" ${OSTYPE}.system.cache`
5072 if test "x$LINE" != x
; then
5073 eval "DEFAULT_$LINE"
5075 ac_cv_use_optimise
='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
5079 eval "$ac_cv_use_optimise"
5080 echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
5081 if test "$wxUSE_OPTIMISE" = 1; then
5082 echo "$ac_t""yes" 1>&6
5084 echo "$ac_t""no" 1>&6
5089 echo $ac_n "checking "for debug_flag
"""... $ac_c" 1>&6
5090 echo "configure:5091: checking "for debug_flag
"" >&5
5091 # Check whether --with-debug_flag or --without-debug_flag was given.
5092 if test "${with_debug_flag+set}" = set; then
5093 withval
="$with_debug_flag"
5094 if test "x$with_debug_flag" = xyes
; then
5095 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="1"'
5097 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="0"'
5101 LINE
=`grep "wxUSE_DEBUG_FLAG" ${OSTYPE}.system.cache`
5102 if test "x$LINE" != x
; then
5103 eval "DEFAULT_$LINE"
5105 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
5109 eval "$ac_cv_use_debug_flag"
5110 echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
5111 if test "$wxUSE_DEBUG_FLAG" = 1; then
5112 echo "$ac_t""yes" 1>&6
5114 echo "$ac_t""no" 1>&6
5119 echo $ac_n "checking "for debug_info
"""... $ac_c" 1>&6
5120 echo "configure:5121: checking "for debug_info
"" >&5
5121 # Check whether --with-debug_info or --without-debug_info was given.
5122 if test "${with_debug_info+set}" = set; then
5123 withval
="$with_debug_info"
5124 if test "x$with_debug_info" = xyes
; then
5125 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="1"'
5127 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="0"'
5131 LINE
=`grep "wxUSE_DEBUG_INFO" ${OSTYPE}.system.cache`
5132 if test "x$LINE" != x
; then
5133 eval "DEFAULT_$LINE"
5135 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
5139 eval "$ac_cv_use_debug_info"
5140 echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
5141 if test "$wxUSE_DEBUG_INFO" = 1; then
5142 echo "$ac_t""yes" 1>&6
5144 echo "$ac_t""no" 1>&6
5149 echo $ac_n "checking "for debug_gdb
"""... $ac_c" 1>&6
5150 echo "configure:5151: checking "for debug_gdb
"" >&5
5151 # Check whether --with-debug_gdb or --without-debug_gdb was given.
5152 if test "${with_debug_gdb+set}" = set; then
5153 withval
="$with_debug_gdb"
5154 if test "x$with_debug_gdb" = xyes
; then
5155 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="1"'
5157 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="0"'
5161 LINE
=`grep "wxUSE_DEBUG_GDB" ${OSTYPE}.system.cache`
5162 if test "x$LINE" != x
; then
5163 eval "DEFAULT_$LINE"
5165 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
5169 eval "$ac_cv_use_debug_gdb"
5170 echo $ac_cv_use_debug_gdb >> ${OSTYPE}.system.cache.tmp
5171 if test "$wxUSE_DEBUG_GDB" = 1; then
5172 echo "$ac_t""yes" 1>&6
5174 echo "$ac_t""no" 1>&6
5179 echo $ac_n "checking "for mem_tracing
"""... $ac_c" 1>&6
5180 echo "configure:5181: checking "for mem_tracing
"" >&5
5181 # Check whether --with-mem_tracing or --without-mem_tracing was given.
5182 if test "${with_mem_tracing+set}" = set; then
5183 withval
="$with_mem_tracing"
5184 if test "x$with_mem_tracing" = xyes
; then
5185 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="1"'
5187 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="0"'
5191 LINE
=`grep "wxUSE_MEM_TRACING" ${OSTYPE}.system.cache`
5192 if test "x$LINE" != x
; then
5193 eval "DEFAULT_$LINE"
5195 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
5199 eval "$ac_cv_use_mem_tracing"
5200 echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
5201 if test "$wxUSE_MEM_TRACING" = 1; then
5202 echo "$ac_t""yes" 1>&6
5204 echo "$ac_t""no" 1>&6
5209 echo $ac_n "checking "for dmalloc
"""... $ac_c" 1>&6
5210 echo "configure:5211: checking "for dmalloc
"" >&5
5211 # Check whether --with-dmalloc or --without-dmalloc was given.
5212 if test "${with_dmalloc+set}" = set; then
5213 withval
="$with_dmalloc"
5214 if test "x$with_dmalloc" = xyes
; then
5215 ac_cv_use_dmalloc
='wxUSE_DMALLOC="1"'
5217 ac_cv_use_dmalloc
='wxUSE_DMALLOC="0"'
5221 LINE
=`grep "wxUSE_DMALLOC" ${OSTYPE}.system.cache`
5222 if test "x$LINE" != x
; then
5223 eval "DEFAULT_$LINE"
5225 ac_cv_use_dmalloc
='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
5229 eval "$ac_cv_use_dmalloc"
5230 echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp
5231 if test "$wxUSE_DMALLOC" = 1; then
5232 echo "$ac_t""yes" 1>&6
5234 echo "$ac_t""no" 1>&6
5239 echo $ac_n "checking "for profile
"""... $ac_c" 1>&6
5240 echo "configure:5241: checking "for profile
"" >&5
5241 # Check whether --with-profile or --without-profile was given.
5242 if test "${with_profile+set}" = set; then
5243 withval
="$with_profile"
5244 if test "x$with_profile" = xyes
; then
5245 ac_cv_use_profile
='wxUSE_PROFILE="1"'
5247 ac_cv_use_profile
='wxUSE_PROFILE="0"'
5251 LINE
=`grep "wxUSE_PROFILE" ${OSTYPE}.system.cache`
5252 if test "x$LINE" != x
; then
5253 eval "DEFAULT_$LINE"
5255 ac_cv_use_profile
='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
5259 eval "$ac_cv_use_profile"
5260 echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
5261 if test "$wxUSE_PROFILE" = 1; then
5262 echo "$ac_t""yes" 1>&6
5264 echo "$ac_t""no" 1>&6
5269 echo $ac_n "checking "for apple_ieee
"""... $ac_c" 1>&6
5270 echo "configure:5271: checking "for apple_ieee
"" >&5
5271 # Check whether --with-apple_ieee or --without-apple_ieee was given.
5272 if test "${with_apple_ieee+set}" = set; then
5273 withval
="$with_apple_ieee"
5274 if test "x$with_apple_ieee" = xyes
; then
5275 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="1"'
5277 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="0"'
5281 LINE
=`grep "wxUSE_APPLE_IEEE" ${OSTYPE}.system.cache`
5282 if test "x$LINE" != x
; then
5283 eval "DEFAULT_$LINE"
5285 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5289 eval "$ac_cv_use_apple_ieee"
5290 echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp
5291 if test "$wxUSE_APPLE_IEEE" = 1; then
5292 echo "$ac_t""yes" 1>&6
5294 echo "$ac_t""no" 1>&6
5299 echo $ac_n "checking "for threads
"""... $ac_c" 1>&6
5300 echo "configure:5301: checking "for threads
"" >&5
5301 # Check whether --with-threads or --without-threads was given.
5302 if test "${with_threads+set}" = set; then
5303 withval
="$with_threads"
5304 if test "x$with_threads" = xyes
; then
5305 ac_cv_use_threads
='wxUSE_THREADS="1"'
5307 ac_cv_use_threads
='wxUSE_THREADS="0"'
5311 LINE
=`grep "wxUSE_THREADS" ${OSTYPE}.system.cache`
5312 if test "x$LINE" != x
; then
5313 eval "DEFAULT_$LINE"
5315 ac_cv_use_threads
='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5319 eval "$ac_cv_use_threads"
5320 echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
5321 if test "$wxUSE_THREADS" = 1; then
5322 echo "$ac_t""yes" 1>&6
5324 echo "$ac_t""no" 1>&6
5329 echo $ac_n "checking "for dynlib
"""... $ac_c" 1>&6
5330 echo "configure:5331: checking "for dynlib
"" >&5
5331 # Check whether --with-dynlib or --without-dynlib was given.
5332 if test "${with_dynlib+set}" = set; then
5333 withval
="$with_dynlib"
5334 if test "x$with_dynlib" = xyes
; then
5335 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="1"'
5337 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="0"'
5341 LINE
=`grep "wxUSE_DYNLIB_CLASS" ${OSTYPE}.system.cache`
5342 if test "x$LINE" != x
; then
5343 eval "DEFAULT_$LINE"
5345 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5349 eval "$ac_cv_use_dynlib"
5350 echo $ac_cv_use_dynlib >> ${OSTYPE}.system.cache.tmp
5351 if test "$wxUSE_DYNLIB_CLASS" = 1; then
5352 echo "$ac_t""yes" 1>&6
5354 echo "$ac_t""no" 1>&6
5360 echo $ac_n "checking "for zlib
"""... $ac_c" 1>&6
5361 echo "configure:5362: checking "for zlib
"" >&5
5362 # Check whether --with-zlib or --without-zlib was given.
5363 if test "${with_zlib+set}" = set; then
5364 withval
="$with_zlib"
5365 if test "x$with_zlib" = xyes
; then
5366 ac_cv_use_zlib
='wxUSE_ZLIB="1"'
5368 ac_cv_use_zlib
='wxUSE_ZLIB="0"'
5372 LINE
=`grep "wxUSE_ZLIB" ${OSTYPE}.system.cache`
5373 if test "x$LINE" != x
; then
5374 eval "DEFAULT_$LINE"
5376 ac_cv_use_zlib
='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
5380 eval "$ac_cv_use_zlib"
5381 echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
5382 if test "$wxUSE_ZLIB" = 1; then
5383 echo "$ac_t""yes" 1>&6
5385 echo "$ac_t""no" 1>&6
5390 echo $ac_n "checking "for libpng
"""... $ac_c" 1>&6
5391 echo "configure:5392: checking "for libpng
"" >&5
5392 # Check whether --with-libpng or --without-libpng was given.
5393 if test "${with_libpng+set}" = set; then
5394 withval
="$with_libpng"
5395 if test "x$with_libpng" = xyes
; then
5396 ac_cv_use_libpng
='wxUSE_LIBPNG="1"'
5398 ac_cv_use_libpng
='wxUSE_LIBPNG="0"'
5402 LINE
=`grep "wxUSE_LIBPNG" ${OSTYPE}.system.cache`
5403 if test "x$LINE" != x
; then
5404 eval "DEFAULT_$LINE"
5406 ac_cv_use_libpng
='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
5410 eval "$ac_cv_use_libpng"
5411 echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
5412 if test "$wxUSE_LIBPNG" = 1; then
5413 echo "$ac_t""yes" 1>&6
5415 echo "$ac_t""no" 1>&6
5420 echo $ac_n "checking "for libjpeg
"""... $ac_c" 1>&6
5421 echo "configure:5422: checking "for libjpeg
"" >&5
5422 # Check whether --with-libjpeg or --without-libjpeg was given.
5423 if test "${with_libjpeg+set}" = set; then
5424 withval
="$with_libjpeg"
5425 if test "x$with_libjpeg" = xyes
; then
5426 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="1"'
5428 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="0"'
5432 LINE
=`grep "wxUSE_LIBJPEG" ${OSTYPE}.system.cache`
5433 if test "x$LINE" != x
; then
5434 eval "DEFAULT_$LINE"
5436 ac_cv_use_libjpeg
='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
5440 eval "$ac_cv_use_libjpeg"
5441 echo $ac_cv_use_libjpeg >> ${OSTYPE}.system.cache.tmp
5442 if test "$wxUSE_LIBJPEG" = 1; then
5443 echo "$ac_t""yes" 1>&6
5445 echo "$ac_t""no" 1>&6
5450 echo $ac_n "checking "for odbc
"""... $ac_c" 1>&6
5451 echo "configure:5452: checking "for odbc
"" >&5
5452 # Check whether --with-odbc or --without-odbc was given.
5453 if test "${with_odbc+set}" = set; then
5454 withval
="$with_odbc"
5455 if test "x$with_odbc" = xyes
; then
5456 ac_cv_use_odbc
='wxUSE_ODBC="1"'
5458 ac_cv_use_odbc
='wxUSE_ODBC="0"'
5462 LINE
=`grep "wxUSE_ODBC" ${OSTYPE}.system.cache`
5463 if test "x$LINE" != x
; then
5464 eval "DEFAULT_$LINE"
5466 ac_cv_use_odbc
='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
5470 eval "$ac_cv_use_odbc"
5471 echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp
5472 if test "$wxUSE_ODBC" = 1; then
5473 echo "$ac_t""yes" 1>&6
5475 echo "$ac_t""no" 1>&6
5481 echo $ac_n "checking "for timedate
"""... $ac_c" 1>&6
5482 echo "configure:5483: checking "for timedate
"" >&5
5483 # Check whether --with-timedate or --without-timedate was given.
5484 if test "${with_timedate+set}" = set; then
5485 withval
="$with_timedate"
5486 if test "x$with_timedate" = xyes
; then
5487 ac_cv_use_timedate
='wxUSE_TIMEDATE="1"'
5489 ac_cv_use_timedate
='wxUSE_TIMEDATE="0"'
5493 LINE
=`grep "wxUSE_TIMEDATE" ${OSTYPE}.system.cache`
5494 if test "x$LINE" != x
; then
5495 eval "DEFAULT_$LINE"
5497 ac_cv_use_timedate
='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
5501 eval "$ac_cv_use_timedate"
5502 echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
5503 if test "$wxUSE_TIMEDATE" = 1; then
5504 echo "$ac_t""yes" 1>&6
5506 echo "$ac_t""no" 1>&6
5511 echo $ac_n "checking "for intl
"""... $ac_c" 1>&6
5512 echo "configure:5513: checking "for intl
"" >&5
5513 # Check whether --with-intl or --without-intl was given.
5514 if test "${with_intl+set}" = set; then
5515 withval
="$with_intl"
5516 if test "x$with_intl" = xyes
; then
5517 ac_cv_use_intl
='wxUSE_INTL="1"'
5519 ac_cv_use_intl
='wxUSE_INTL="0"'
5523 LINE
=`grep "wxUSE_INTL" ${OSTYPE}.system.cache`
5524 if test "x$LINE" != x
; then
5525 eval "DEFAULT_$LINE"
5527 ac_cv_use_intl
='wxUSE_INTL='$DEFAULT_wxUSE_INTL
5531 eval "$ac_cv_use_intl"
5532 echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp
5533 if test "$wxUSE_INTL" = 1; then
5534 echo "$ac_t""yes" 1>&6
5536 echo "$ac_t""no" 1>&6
5541 echo $ac_n "checking "for config
"""... $ac_c" 1>&6
5542 echo "configure:5543: checking "for config
"" >&5
5543 # Check whether --with-config or --without-config was given.
5544 if test "${with_config+set}" = set; then
5545 withval
="$with_config"
5546 if test "x$with_config" = xyes
; then
5547 ac_cv_use_config
='wxUSE_CONFIG="1"'
5549 ac_cv_use_config
='wxUSE_CONFIG="0"'
5553 LINE
=`grep "wxUSE_CONFIG" ${OSTYPE}.system.cache`
5554 if test "x$LINE" != x
; then
5555 eval "DEFAULT_$LINE"
5557 ac_cv_use_config
='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
5561 eval "$ac_cv_use_config"
5562 echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp
5563 if test "$wxUSE_CONFIG" = 1; then
5564 echo "$ac_t""yes" 1>&6
5566 echo "$ac_t""no" 1>&6
5571 echo $ac_n "checking "for streams
"""... $ac_c" 1>&6
5572 echo "configure:5573: checking "for streams
"" >&5
5573 # Check whether --with-streams or --without-streams was given.
5574 if test "${with_streams+set}" = set; then
5575 withval
="$with_streams"
5576 if test "x$with_streams" = xyes
; then
5577 ac_cv_use_streams
='wxUSE_STREAMS="1"'
5579 ac_cv_use_streams
='wxUSE_STREAMS="0"'
5583 LINE
=`grep "wxUSE_STREAMS" ${OSTYPE}.system.cache`
5584 if test "x$LINE" != x
; then
5585 eval "DEFAULT_$LINE"
5587 ac_cv_use_streams
='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5591 eval "$ac_cv_use_streams"
5592 echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp
5593 if test "$wxUSE_STREAMS" = 1; then
5594 echo "$ac_t""yes" 1>&6
5596 echo "$ac_t""no" 1>&6
5601 echo $ac_n "checking "for serial
"""... $ac_c" 1>&6
5602 echo "configure:5603: checking "for serial
"" >&5
5603 # Check whether --with-serial or --without-serial was given.
5604 if test "${with_serial+set}" = set; then
5605 withval
="$with_serial"
5606 if test "x$with_serial" = xyes
; then
5607 ac_cv_use_serial
='wxUSE_SERIAL="1"'
5609 ac_cv_use_serial
='wxUSE_SERIAL="0"'
5613 LINE
=`grep "wxUSE_SERIAL" ${OSTYPE}.system.cache`
5614 if test "x$LINE" != x
; then
5615 eval "DEFAULT_$LINE"
5617 ac_cv_use_serial
='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
5621 eval "$ac_cv_use_serial"
5622 echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp
5623 if test "$wxUSE_SERIAL" = 1; then
5624 echo "$ac_t""yes" 1>&6
5626 echo "$ac_t""no" 1>&6
5632 echo $ac_n "checking "for afmfonts
"""... $ac_c" 1>&6
5633 echo "configure:5634: checking "for afmfonts
"" >&5
5634 # Check whether --with-afmfonts or --without-afmfonts was given.
5635 if test "${with_afmfonts+set}" = set; then
5636 withval
="$with_afmfonts"
5637 if test "x$with_afmfonts" = xyes
; then
5638 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="1"'
5640 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="0"'
5644 LINE
=`grep "wxUSE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
5645 if test "x$LINE" != x
; then
5646 eval "DEFAULT_$LINE"
5648 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT='$DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
5652 eval "$ac_cv_use_afmfonts"
5653 echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
5654 if test "$wxUSE_AFM_FOR_POSTSCRIPT" = 1; then
5655 echo "$ac_t""yes" 1>&6
5657 echo "$ac_t""no" 1>&6
5662 echo $ac_n "checking "for normalized
"""... $ac_c" 1>&6
5663 echo "configure:5664: checking "for normalized
"" >&5
5664 # Check whether --with-normalized or --without-normalized was given.
5665 if test "${with_normalized+set}" = set; then
5666 withval
="$with_normalized"
5667 if test "x$with_normalized" = xyes
; then
5668 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="1"'
5670 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="0"'
5674 LINE
=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
5675 if test "x$LINE" != x
; then
5676 eval "DEFAULT_$LINE"
5678 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
5682 eval "$ac_cv_use_normalized"
5683 echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
5684 if test "$WX_NORMALIZED_PS_FONTS" = 1; then
5685 echo "$ac_t""yes" 1>&6
5687 echo "$ac_t""no" 1>&6
5692 echo $ac_n "checking "for postscript
"""... $ac_c" 1>&6
5693 echo "configure:5694: checking "for postscript
"" >&5
5694 # Check whether --with-postscript or --without-postscript was given.
5695 if test "${with_postscript+set}" = set; then
5696 withval
="$with_postscript"
5697 if test "x$with_postscript" = xyes
; then
5698 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="1"'
5700 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="0"'
5704 LINE
=`grep "wxUSE_POSTSCRIPT" ${OSTYPE}.system.cache`
5705 if test "x$LINE" != x
; then
5706 eval "DEFAULT_$LINE"
5708 ac_cv_use_postscript
='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5712 eval "$ac_cv_use_postscript"
5713 echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
5714 if test "$wxUSE_POSTSCRIPT" = 1; then
5715 echo "$ac_t""yes" 1>&6
5717 echo "$ac_t""no" 1>&6
5723 echo $ac_n "checking "for unicode
"""... $ac_c" 1>&6
5724 echo "configure:5725: checking "for unicode
"" >&5
5725 # Check whether --with-unicode or --without-unicode was given.
5726 if test "${with_unicode+set}" = set; then
5727 withval
="$with_unicode"
5728 if test "x$with_unicode" = xyes
; then
5729 ac_cv_use_unicode
='wxUSE_UNICODE="1"'
5731 ac_cv_use_unicode
='wxUSE_UNICODE="0"'
5735 LINE
=`grep "wxUSE_UNICODE" ${OSTYPE}.system.cache`
5736 if test "x$LINE" != x
; then
5737 eval "DEFAULT_$LINE"
5739 ac_cv_use_unicode
='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5743 eval "$ac_cv_use_unicode"
5744 echo $ac_cv_use_unicode >> ${OSTYPE}.system.cache.tmp
5745 if test "$wxUSE_UNICODE" = 1; then
5746 echo "$ac_t""yes" 1>&6
5748 echo "$ac_t""no" 1>&6
5753 echo $ac_n "checking "for wcsrtombs
"""... $ac_c" 1>&6
5754 echo "configure:5755: checking "for wcsrtombs
"" >&5
5755 # Check whether --with-wcsrtombs or --without-wcsrtombs was given.
5756 if test "${with_wcsrtombs+set}" = set; then
5757 withval
="$with_wcsrtombs"
5758 if test "x$with_wcsrtombs" = xyes
; then
5759 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="1"'
5761 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="0"'
5765 LINE
=`grep "wxUSE_WCSRTOMBS" ${OSTYPE}.system.cache`
5766 if test "x$LINE" != x
; then
5767 eval "DEFAULT_$LINE"
5769 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
5773 eval "$ac_cv_use_wcsrtombs"
5774 echo $ac_cv_use_wcsrtombs >> ${OSTYPE}.system.cache.tmp
5775 if test "$wxUSE_WCSRTOMBS" = 1; then
5776 echo "$ac_t""yes" 1>&6
5778 echo "$ac_t""no" 1>&6
5784 echo $ac_n "checking "for wxresources
"""... $ac_c" 1>&6
5785 echo "configure:5786: checking "for wxresources
"" >&5
5786 # Check whether --with-wxresources or --without-wxresources was given.
5787 if test "${with_wxresources+set}" = set; then
5788 withval
="$with_wxresources"
5789 if test "x$with_wxresources" = xyes
; then
5790 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="1"'
5792 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="0"'
5796 LINE
=`grep "wxUSE_WX_RESOURCES" ${OSTYPE}.system.cache`
5797 if test "x$LINE" != x
; then
5798 eval "DEFAULT_$LINE"
5800 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES='$DEFAULT_wxUSE_WX_RESOURCES
5804 eval "$ac_cv_use_wxresources"
5805 echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
5806 if test "$wxUSE_WX_RESOURCES" = 1; then
5807 echo "$ac_t""yes" 1>&6
5809 echo "$ac_t""no" 1>&6
5814 echo $ac_n "checking "for prologio
"""... $ac_c" 1>&6
5815 echo "configure:5816: checking "for prologio
"" >&5
5816 # Check whether --with-prologio or --without-prologio was given.
5817 if test "${with_prologio+set}" = set; then
5818 withval
="$with_prologio"
5819 if test "x$with_prologio" = xyes
; then
5820 ac_cv_use_prologio
='wxUSE_PROLOGIO="1"'
5822 ac_cv_use_prologio
='wxUSE_PROLOGIO="0"'
5826 LINE
=`grep "wxUSE_PROLOGIO" ${OSTYPE}.system.cache`
5827 if test "x$LINE" != x
; then
5828 eval "DEFAULT_$LINE"
5830 ac_cv_use_prologio
='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5834 eval "$ac_cv_use_prologio"
5835 echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
5836 if test "$wxUSE_PROLOGIO" = 1; then
5837 echo "$ac_t""yes" 1>&6
5839 echo "$ac_t""no" 1>&6
5844 echo $ac_n "checking "for RPC
"""... $ac_c" 1>&6
5845 echo "configure:5846: checking "for RPC
"" >&5
5846 # Check whether --with-rpc or --without-rpc was given.
5847 if test "${with_rpc+set}" = set; then
5849 if test "x$with_rpc" = xyes
; then
5850 ac_cv_use_rpc
='wxUSE_RPC="1"'
5852 ac_cv_use_rpc
='wxUSE_RPC="0"'
5856 LINE
=`grep "wxUSE_RPC" ${OSTYPE}.system.cache`
5857 if test "x$LINE" != x
; then
5858 eval "DEFAULT_$LINE"
5860 ac_cv_use_rpc
='wxUSE_RPC='$DEFAULT_wxUSE_RPC
5864 eval "$ac_cv_use_rpc"
5865 echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
5866 if test "$wxUSE_RPC" = 1; then
5867 echo "$ac_t""yes" 1>&6
5869 echo "$ac_t""no" 1>&6
5875 echo $ac_n "checking "for IPC
"""... $ac_c" 1>&6
5876 echo "configure:5877: checking "for IPC
"" >&5
5877 # Check whether --with-ipc or --without-ipc was given.
5878 if test "${with_ipc+set}" = set; then
5880 if test "x$with_ipc" = xyes
; then
5881 ac_cv_use_ipc
='wxUSE_IPC="1"'
5883 ac_cv_use_ipc
='wxUSE_IPC="0"'
5887 LINE
=`grep "wxUSE_IPC" ${OSTYPE}.system.cache`
5888 if test "x$LINE" != x
; then
5889 eval "DEFAULT_$LINE"
5891 ac_cv_use_ipc
='wxUSE_IPC='$DEFAULT_wxUSE_IPC
5895 eval "$ac_cv_use_ipc"
5896 echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
5897 if test "$wxUSE_IPC" = 1; then
5898 echo "$ac_t""yes" 1>&6
5900 echo "$ac_t""no" 1>&6
5905 echo $ac_n "checking "for resources
"""... $ac_c" 1>&6
5906 echo "configure:5907: checking "for resources
"" >&5
5907 # Check whether --with-resources or --without-resources was given.
5908 if test "${with_resources+set}" = set; then
5909 withval
="$with_resources"
5910 if test "x$with_resources" = xyes
; then
5911 ac_cv_use_resources
='wxUSE_RESOURCES="1"'
5913 ac_cv_use_resources
='wxUSE_RESOURCES="0"'
5917 LINE
=`grep "wxUSE_RESOURCES" ${OSTYPE}.system.cache`
5918 if test "x$LINE" != x
; then
5919 eval "DEFAULT_$LINE"
5921 ac_cv_use_resources
='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5925 eval "$ac_cv_use_resources"
5926 echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
5927 if test "$wxUSE_RESOURCES" = 1; then
5928 echo "$ac_t""yes" 1>&6
5930 echo "$ac_t""no" 1>&6
5935 echo $ac_n "checking "for clipboard
"""... $ac_c" 1>&6
5936 echo "configure:5937: checking "for clipboard
"" >&5
5937 # Check whether --with-clipboard or --without-clipboard was given.
5938 if test "${with_clipboard+set}" = set; then
5939 withval
="$with_clipboard"
5940 if test "x$with_clipboard" = xyes
; then
5941 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="1"'
5943 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="0"'
5947 LINE
=`grep "wxUSE_CLIPBOARD" ${OSTYPE}.system.cache`
5948 if test "x$LINE" != x
; then
5949 eval "DEFAULT_$LINE"
5951 ac_cv_use_clipboard
='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5955 eval "$ac_cv_use_clipboard"
5956 echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
5957 if test "$wxUSE_CLIPBOARD" = 1; then
5958 echo "$ac_t""yes" 1>&6
5960 echo "$ac_t""no" 1>&6
5965 echo $ac_n "checking "for tooltips
"""... $ac_c" 1>&6
5966 echo "configure:5967: checking "for tooltips
"" >&5
5967 # Check whether --with-tooltips or --without-tooltips was given.
5968 if test "${with_tooltips+set}" = set; then
5969 withval
="$with_tooltips"
5970 if test "x$with_tooltips" = xyes
; then
5971 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="1"'
5973 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="0"'
5977 LINE
=`grep "wxUSE_TOOLTIPS" ${OSTYPE}.system.cache`
5978 if test "x$LINE" != x
; then
5979 eval "DEFAULT_$LINE"
5981 ac_cv_use_tooltips
='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5985 eval "$ac_cv_use_tooltips"
5986 echo $ac_cv_use_tooltips >> ${OSTYPE}.system.cache.tmp
5987 if test "$wxUSE_TOOLTIPS" = 1; then
5988 echo "$ac_t""yes" 1>&6
5990 echo "$ac_t""no" 1>&6
5995 echo $ac_n "checking "for dnd
"""... $ac_c" 1>&6
5996 echo "configure:5997: checking "for dnd
"" >&5
5997 # Check whether --with-dnd or --without-dnd was given.
5998 if test "${with_dnd+set}" = set; then
6000 if test "x$with_dnd" = xyes
; then
6001 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="1"'
6003 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="0"'
6007 LINE
=`grep "wxUSE_DRAG_AND_DROP" ${OSTYPE}.system.cache`
6008 if test "x$LINE" != x
; then
6009 eval "DEFAULT_$LINE"
6011 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6015 eval "$ac_cv_use_dnd"
6016 echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp
6017 if test "$wxUSE_DRAG_AND_DROP" = 1; then
6018 echo "$ac_t""yes" 1>&6
6020 echo "$ac_t""no" 1>&6
6026 echo $ac_n "checking "for mdi
"""... $ac_c" 1>&6
6027 echo "configure:6028: checking "for mdi
"" >&5
6028 # Check whether --with-mdi or --without-mdi was given.
6029 if test "${with_mdi+set}" = set; then
6031 if test "x$with_mdi" = xyes
; then
6032 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="1"'
6034 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="0"'
6038 LINE
=`grep "wxUSE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache`
6039 if test "x$LINE" != x
; then
6040 eval "DEFAULT_$LINE"
6042 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6046 eval "$ac_cv_use_mdi"
6047 echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp
6048 if test "$wxUSE_MDI_ARCHITECTURE" = 1; then
6049 echo "$ac_t""yes" 1>&6
6051 echo "$ac_t""no" 1>&6
6056 echo $ac_n "checking "for docview
"""... $ac_c" 1>&6
6057 echo "configure:6058: checking "for docview
"" >&5
6058 # Check whether --with-docview or --without-docview was given.
6059 if test "${with_docview+set}" = set; then
6060 withval
="$with_docview"
6061 if test "x$with_docview" = xyes
; then
6062 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="1"'
6064 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="0"'
6068 LINE
=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
6069 if test "x$LINE" != x
; then
6070 eval "DEFAULT_$LINE"
6072 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6076 eval "$ac_cv_use_docview"
6077 echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
6078 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1; then
6079 echo "$ac_t""yes" 1>&6
6081 echo "$ac_t""no" 1>&6
6086 echo $ac_n "checking "for printarch
"""... $ac_c" 1>&6
6087 echo "configure:6088: checking "for printarch
"" >&5
6088 # Check whether --with-printarch or --without-printarch was given.
6089 if test "${with_printarch+set}" = set; then
6090 withval
="$with_printarch"
6091 if test "x$with_printarch" = xyes
; then
6092 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="1"'
6094 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="0"'
6098 LINE
=`grep "wxUSE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
6099 if test "x$LINE" != x
; then
6100 eval "DEFAULT_$LINE"
6102 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6106 eval "$ac_cv_use_printarch"
6107 echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
6108 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1; then
6109 echo "$ac_t""yes" 1>&6
6111 echo "$ac_t""no" 1>&6
6116 echo $ac_n "checking "for help"""... $ac_c" 1>&6
6117 echo "configure:6118: checking "for help"" >&5
6118 # Check whether --with-help or --without-help was given.
6119 if test "${with_help+set}" = set; then
6120 withval
="$with_help"
6121 if test "x$with_help" = xyes
; then
6122 ac_cv_use_help
='wxUSE_HELP="1"'
6124 ac_cv_use_help
='wxUSE_HELP="0"'
6128 LINE
=`grep "wxUSE_HELP" ${OSTYPE}.system.cache`
6129 if test "x$LINE" != x
; then
6130 eval "DEFAULT_$LINE"
6132 ac_cv_use_help
='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6136 eval "$ac_cv_use_help"
6137 echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
6138 if test "$wxUSE_HELP" = 1; then
6139 echo "$ac_t""yes" 1>&6
6141 echo "$ac_t""no" 1>&6
6146 if test "$wxUSE_UNIX" = 1 ; then
6147 cat >> confdefs.h
<<\EOF
6153 if test "$USE_LINUX" = 1; then
6154 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
6155 echo "configure:6156: checking for gettext in -lc" >&5
6156 ac_lib_var
=`echo c'_'gettext | sed 'y%./+-%__p_%'`
6157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6158 echo $ac_n "(cached) $ac_c" 1>&6
6160 ac_save_LIBS
="$LIBS"
6162 cat > conftest.
$ac_ext <<EOF
6163 #line 6164 "configure"
6164 #include "confdefs.h"
6165 /* Override any gcc2 internal prototype to avoid an error. */
6166 /* We use char because int might match the return type of a gcc2
6167 builtin and then its argument prototype would still apply. */
6174 if { (eval echo configure
:6175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6176 eval "ac_cv_lib_$ac_lib_var=yes"
6178 echo "configure: failed program was:" >&5
6179 cat conftest.
$ac_ext >&5
6181 eval "ac_cv_lib_$ac_lib_var=no"
6184 LIBS
="$ac_save_LIBS"
6187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6188 echo "$ac_t""yes" 1>&6
6189 cat >> confdefs.h
<<\EOF
6190 #define wxHAVE_GLIBC2 1
6194 echo "$ac_t""no" 1>&6
6211 if test "$wxUSE_GTK" = 1; then
6212 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6213 if test "${with_gtk_prefix+set}" = set; then
6214 withval
="$with_gtk_prefix"
6215 gtk_config_prefix
="$withval"
6217 gtk_config_prefix
=""
6220 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
6221 if test "${with_gtk_exec_prefix+set}" = set; then
6222 withval
="$with_gtk_exec_prefix"
6223 gtk_config_exec_prefix
="$withval"
6225 gtk_config_exec_prefix
=""
6229 if test x
$gtk_config_exec_prefix != x
; then
6230 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6231 if test x
${GTK_CONFIG+set} != xset
; then
6232 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
6235 if test x
$gtk_config_prefix != x
; then
6236 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
6237 if test x
${GTK_CONFIG+set} != xset
; then
6238 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
6242 # Extract the first word of "gtk-config", so it can be a program name with args.
6243 set dummy gtk
-config; ac_word
=$2
6244 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6245 echo "configure:6246: checking for $ac_word" >&5
6246 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6247 echo $ac_n "(cached) $ac_c" 1>&6
6249 case "$GTK_CONFIG" in
6251 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
6254 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6255 for ac_dir
in $PATH; do
6256 test -z "$ac_dir" && ac_dir
=.
6257 if test -f $ac_dir/$ac_word; then
6258 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
6263 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
6267 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
6268 if test -n "$GTK_CONFIG"; then
6269 echo "$ac_t""$GTK_CONFIG" 1>&6
6271 echo "$ac_t""no" 1>&6
6274 min_gtk_version
=1.0.4
6275 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6276 echo "configure:6277: checking for GTK - version >= $min_gtk_version" >&5
6278 if test "$GTK_CONFIG" != "no" ; then
6279 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
6280 GTK_LIBS
=`$GTK_CONFIG --libs`
6281 ac_save_CFLAGS
="$CFLAGS"
6282 ac_save_LIBS
="$LIBS"
6283 CFLAGS
="$CFLAGS $GTK_CFLAGS"
6284 LIBS
="$LIBS $GTK_LIBS"
6285 if test "$cross_compiling" = yes; then
6286 echo $ac_n "cross compiling; assumed OK... $ac_c"
6288 cat > conftest.
$ac_ext <<EOF
6289 #line 6290 "configure"
6290 #include "confdefs.h"
6292 #include <gtk/gtk.h>
6298 int major, minor, micro;
6300 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
6301 printf("%s, bad version string\n", "$min_gtk_version");
6305 if (gtk_minor_version > 0) return FALSE;
6307 return !((gtk_major_version > major) ||
6308 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6309 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6313 if { (eval echo configure
:6314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6317 echo "configure: failed program was:" >&5
6318 cat conftest.
$ac_ext >&5
6325 CFLAGS
="$ac_save_CFLAGS"
6326 LIBS
="$ac_save_LIBS"
6330 if test "x$no_gtk" = x
; then
6331 echo "$ac_t""yes" 1>&6
6333 GUI_TK_INCLUDE
="$GTK_CFLAGS"
6334 GUI_TK_LIBRARY
="$GTK_LIBS"
6337 echo "$ac_t""no" 1>&6
6340 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.0.4 up-to 1.0.6?" 1>&2; exit 1; }
6346 TOOLKIT_DEF
=__WXGTK__
6348 MAKEINCLUDE
=..
/gtk.inc
6351 if test "$wxUSE_QT" = 1; then
6352 echo $ac_n "checking for Qt includes""... $ac_c" 1>&6
6353 echo "configure:6354: checking for Qt includes" >&5
6356 for ac_dir
in $SEARCH_INCLUDE;
6358 if test -f "$ac_dir/qapp.h"; then
6359 ac_find_includes
=$ac_dir
6364 if test "$ac_find_includes" != "" ; then
6365 echo "$ac_t""found $ac_find_includes" 1>&6
6366 echo $ac_n "checking for Qt library""... $ac_c" 1>&6
6367 echo "configure:6368: checking for Qt library" >&5
6370 for ac_dir
in $SEARCH_LIB;
6372 for ac_extension
in a so sl
; do
6373 if test -f "$ac_dir/libqt.$ac_extension"; then
6374 ac_find_libraries
=$ac_dir
6380 if test "$ac_find_libraries" != "" ; then
6382 ac_path_to_include
=$ac_find_includes
6383 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
6385 if test $result = 0; then
6386 ac_path_to_include
=""
6388 ac_path_to_include
="-I$ac_find_includes"
6392 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6394 if test $result = 0; then
6397 ac_path_to_link
="-L$ac_find_libraries"
6400 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
6401 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
6402 echo "$ac_t""found Qt at $ac_find_libraries" 1>&6
6404 { echo "configure: error: no" 1>&2; exit 1; }
6407 { echo "configure: error: no" 1>&2; exit 1; }
6409 GUI_TK_LINK
="-lX11 -lqt -lm"
6411 TOOLKIT_DEF
=__WXQT__
6413 MAKEINCLUDE
=..
/qt.inc
6416 if test "$wxUSE_MOTIF" = 1; then
6417 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
6418 echo "configure:6419: checking for Motif/Lesstif includes" >&5
6421 for ac_dir
in $SEARCH_INCLUDE;
6423 if test -f "$ac_dir/Xm/Xm.h"; then
6424 ac_find_includes
=$ac_dir
6429 if test "$ac_find_includes" != "" ; then
6430 echo "$ac_t""found $ac_find_includes" 1>&6
6431 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
6432 echo "configure:6433: checking for Motif/Lesstif library" >&5
6435 for ac_dir
in $SEARCH_LIB;
6437 for ac_extension
in a so sl
; do
6438 if test -f "$ac_dir/libXm.$ac_extension"; then
6439 ac_find_libraries
=$ac_dir
6445 if test "$ac_find_libraries" != "" ; then
6447 ac_path_to_include
=$ac_find_includes
6448 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
6450 if test $result = 0; then
6451 ac_path_to_include
=""
6453 ac_path_to_include
="-I$ac_find_includes"
6457 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6459 if test $result = 0; then
6462 ac_path_to_link
="-L$ac_find_libraries"
6465 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6466 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
6467 echo "$ac_t""found at $ac_find_libraries" 1>&6
6468 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
6469 echo "configure:6470: checking for Xt library" >&5
6472 for ac_dir
in $SEARCH_LIB;
6474 for ac_extension
in a so sl
; do
6475 if test -f "$ac_dir/libXt.$ac_extension"; then
6476 ac_find_libraries
=$ac_dir
6482 if test "$ac_find_libraries" != "" ; then
6484 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6486 if test $result = 0; then
6489 ac_path_to_link
="-L$ac_find_libraries"
6492 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6493 echo "$ac_t""found at $ac_find_libraries" 1>&6
6494 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6495 echo "configure:6496: checking for Xpm library" >&5
6498 for ac_dir
in $SEARCH_LIB;
6500 for ac_extension
in a so sl
; do
6501 if test -f "$ac_dir/libXpm.$ac_extension"; then
6502 ac_find_libraries
=$ac_dir
6508 if test "$ac_find_libraries" != "" ; then
6510 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6512 if test $result = 0; then
6515 ac_path_to_link
="-L$ac_find_libraries"
6518 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6519 echo "$ac_t""found at $ac_find_libraries" 1>&6
6521 { echo "configure: error: no" 1>&2; exit 1; }
6524 { echo "configure: error: no" 1>&2; exit 1; }
6527 { echo "configure: error: no" 1>&2; exit 1; }
6530 { echo "configure: error: no" 1>&2; exit 1; }
6533 GUI_TK_LINK
="-lXm -lXpm -lXmu -lXt -lX11 -lm"
6534 GUI_TK_LIBRARY
="$CHECK_LIB $GUI_TK_LINK"
6536 TOOLKIT_DEF
="__WXMOTIF__ -D__LINUX__ -D__UNIX__"
6538 MAKEINCLUDE
=..
/motif.inc
6541 if test "$TOOLKIT" = ""; then
6542 { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; }
6560 if test "$wxUSE_DEBUG_GDB" = 1 ; then
6565 if test "$wxUSE_DEBUG_INFO" = 1 ; then
6569 EXTRA_LINK
="-s $EXTRA_LINK"
6574 if test "$wxUSE_DEBUG_FLAG" = 1 ; then
6575 cat >> confdefs.h
<<EOF
6576 #define WXDEBUG $wxUSE_DEBUG_FLAG
6579 WXDEBUG_DEFINE
="-D__WXDEBUG__"
6582 WXDEBUG_DEFINE
="-DGTK_NO_CHECK_CASTS"
6586 if test "$wxUSE_MEM_TRACING" = 1 ; then
6587 cat >> confdefs.h
<<EOF
6588 #define wxUSE_MEMORY_TRACING $wxUSE_MEM_TRACING
6591 cat >> confdefs.h
<<EOF
6592 #define wxUSE_GLOBAL_MEMORY_OPERATORS $wxUSE_MEM_TRACING
6597 if test "$wxUSE_DMALLOC" = 1 ; then
6598 EXTRA_LINK
="$EXTRA_LINK -ldmalloc"
6603 if test "$wxUSE_PROFILE" = 1 ; then
6608 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
6609 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
6610 if test "$wxUSE_OPTIMISE" = 0 ; then
6613 if test "$GCC" = yes ; then
6615 case "${canonical}" in
6617 OPTIMISE
="${OPTIMISE} "
6627 if test "$wxUSE_APPLE_IEEE" = 1 ; then
6628 APPLE_IEEE
="APPLE_IEEE"
6629 cat >> confdefs.h
<<EOF
6630 #define wxUSE_APPLE_IEEE $wxUSE_APPLE_IEEE
6635 wxUSE_IOSTREAMH
=$DEFAULT_wxUSE_IOSTREAMH
6636 cat >> confdefs.h
<<EOF
6637 #define wxUSE_IOSTREAMH $wxUSE_IOSTREAMH
6642 if test "$wxUSE_ZLIB" = 1 ; then
6643 cat >> confdefs.h
<<EOF
6644 #define wxUSE_ZLIB $wxUSE_ZLIB
6647 Z_C_SRC
="\$(Z_C_SRC)"
6651 if test "$wxUSE_LIBPNG" = 1 ; then
6652 cat >> confdefs.h
<<EOF
6653 #define wxUSE_LIBPNG $wxUSE_LIBPNG
6656 PNG_C_SRC
="\$(PNG_C_SRC)"
6661 if test "$wxUSE_LIBJPEG" = 1 ; then
6662 cat >> confdefs.h
<<EOF
6663 #define wxUSE_LIBJPEG $wxUSE_LIBJPEG
6666 echo $ac_n "checking for in -ljpeg""... $ac_c" 1>&6
6667 echo "configure:6668: checking for in -ljpeg" >&5
6668 ac_lib_var
=`echo jpeg'_' | sed 'y%./+-%__p_%'`
6669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6672 ac_save_LIBS
="$LIBS"
6674 cat > conftest.
$ac_ext <<EOF
6675 #line 6676 "configure"
6676 #include "confdefs.h"
6677 /* Override any gcc2 internal prototype to avoid an error. */
6678 /* We use char because int might match the return type of a gcc2
6679 builtin and then its argument prototype would still apply. */
6686 if { (eval echo configure
:6687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6688 eval "ac_cv_lib_$ac_lib_var=yes"
6690 echo "configure: failed program was:" >&5
6691 cat conftest.
$ac_ext >&5
6693 eval "ac_cv_lib_$ac_lib_var=no"
6696 LIBS
="$ac_save_LIBS"
6699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6700 echo "$ac_t""yes" 1>&6
6701 ac_tr_lib
=HAVE_LIB
`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6702 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6703 cat >> confdefs.h
<<EOF
6704 #define $ac_tr_lib 1
6710 echo "$ac_t""no" 1>&6
6718 if test "$wxUSE_ODBC" = 1 ; then
6719 cat >> confdefs.h
<<EOF
6720 #define wxUSE_ODBC $wxUSE_ODBC
6723 IODBC_C_SRC
="\$(IODBC_C_SRC)"
6728 if test "$wxUSE_CONFIG" = 1 ; then
6729 cat >> confdefs.h
<<EOF
6730 #define wxUSE_CONFIG $wxUSE_CONFIG
6735 if test "$wxUSE_TIMEDATE" = 1 ; then
6736 cat >> confdefs.h
<<EOF
6737 #define wxUSE_TIMEDATE $wxUSE_TIMEDATE
6742 if test "$wxUSE_INTL" = 1 ; then
6743 cat >> confdefs.h
<<EOF
6744 #define wxUSE_INTL $wxUSE_INTL
6749 if test "$wxUSE_STREAMS" = 1 ; then
6750 cat >> confdefs.h
<<EOF
6751 #define wxUSE_STREAMS $wxUSE_STREAMS
6756 if test "$wxUSE_SERIAL" = 1 ; then
6757 cat >> confdefs.h
<<EOF
6758 #define wxUSE_SERIAL $wxUSE_SERIAL
6765 if test "$wxUSE_DYNLIB_CLASS" = "1"; then
6766 for ac_func
in dlopen
6768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6769 echo "configure:6770: checking for $ac_func" >&5
6770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6771 echo $ac_n "(cached) $ac_c" 1>&6
6773 cat > conftest.
$ac_ext <<EOF
6774 #line 6775 "configure"
6775 #include "confdefs.h"
6776 /* System header to define __stub macros and hopefully few prototypes,
6777 which can conflict with char $ac_func(); below. */
6779 /* Override any gcc2 internal prototype to avoid an error. */
6780 /* We use char because int might match the return type of a gcc2
6781 builtin and then its argument prototype would still apply. */
6786 /* The GNU C library defines this for functions which it implements
6787 to always fail with ENOSYS. Some functions are actually named
6788 something starting with __ and the normal name is an alias. */
6789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6797 if { (eval echo configure
:6798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6799 eval "ac_cv_func_$ac_func=yes"
6801 echo "configure: failed program was:" >&5
6802 cat conftest.
$ac_ext >&5
6804 eval "ac_cv_func_$ac_func=no"
6809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6810 echo "$ac_t""yes" 1>&6
6811 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6812 cat >> confdefs.h
<<EOF
6813 #define $ac_tr_func 1
6815 cat >> confdefs.h
<<\EOF
6816 #define HAVE_DLOPEN 1
6820 echo "$ac_t""no" 1>&6
6821 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6822 echo "configure:6823: checking for dlopen in -ldl" >&5
6823 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6825 echo $ac_n "(cached) $ac_c" 1>&6
6827 ac_save_LIBS
="$LIBS"
6829 cat > conftest.
$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 /* Override any gcc2 internal prototype to avoid an error. */
6833 /* We use char because int might match the return type of a gcc2
6834 builtin and then its argument prototype would still apply. */
6841 if { (eval echo configure
:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6843 eval "ac_cv_lib_$ac_lib_var=yes"
6845 echo "configure: failed program was:" >&5
6846 cat conftest.
$ac_ext >&5
6848 eval "ac_cv_lib_$ac_lib_var=no"
6851 LIBS
="$ac_save_LIBS"
6854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6855 echo "$ac_t""yes" 1>&6
6856 cat >> confdefs.h
<<\EOF
6857 #define HAVE_DLOPEN 1
6861 echo "$ac_t""no" 1>&6
6867 for ac_func
in shl_load
6869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6870 echo "configure:6871: checking for $ac_func" >&5
6871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6872 echo $ac_n "(cached) $ac_c" 1>&6
6874 cat > conftest.
$ac_ext <<EOF
6875 #line 6876 "configure"
6876 #include "confdefs.h"
6877 /* System header to define __stub macros and hopefully few prototypes,
6878 which can conflict with char $ac_func(); below. */
6880 /* Override any gcc2 internal prototype to avoid an error. */
6881 /* We use char because int might match the return type of a gcc2
6882 builtin and then its argument prototype would still apply. */
6887 /* The GNU C library defines this for functions which it implements
6888 to always fail with ENOSYS. Some functions are actually named
6889 something starting with __ and the normal name is an alias. */
6890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6898 if { (eval echo configure
:6899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6900 eval "ac_cv_func_$ac_func=yes"
6902 echo "configure: failed program was:" >&5
6903 cat conftest.
$ac_ext >&5
6905 eval "ac_cv_func_$ac_func=no"
6910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6911 echo "$ac_t""yes" 1>&6
6912 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6913 cat >> confdefs.h
<<EOF
6914 #define $ac_tr_func 1
6916 cat >> confdefs.h
<<\EOF
6917 #define HAVE_SHL_LOAD 1
6921 echo "$ac_t""no" 1>&6
6926 if test "$HAVE_DL_FUNCS" = 0; then
6927 echo "configure: warning: "--with-dynlib will be disabled because no
function was found to load a shared library on this platform
"" 1>&2
6929 wxUSE_DYNLIB_CLASS
=0
6933 if test "$wxUSE_DYNLIB_CLASS" = 1 ; then
6934 cat >> confdefs.h
<<EOF
6935 #define wxUSE_DYNLIB_CLASS $wxUSE_DYNLIB_CLASS
6941 if test "$wxUSE_RPC" = 1 ; then
6942 cat >> confdefs.h
<<EOF
6943 #define wxUSE_RPC $wxUSE_RPC
6948 if test "$wxUSE_WX_RESOURCES" = 1 ; then
6949 cat >> confdefs.h
<<EOF
6950 #define wxUSE_WX_RESOURCES $wxUSE_WX_RESOURCES
6955 if test "$wxUSE_PROLOGIO" = 1 ; then
6956 cat >> confdefs.h
<<EOF
6957 #define wxUSE_PROLOGIO 1
6963 if test "$wxUSE_POSTSCRIPT" = 1 ; then
6964 cat >> confdefs.h
<<EOF
6965 #define wxUSE_POSTSCRIPT 1
6970 cat >> confdefs.h
<<EOF
6971 #define wxUSE_AFM_FOR_POSTSCRIPT $wxUSE_AFM_FOR_POSTSCRIPT
6975 cat >> confdefs.h
<<EOF
6976 #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
6981 if test "$wxUSE_MDI_ARCHITECTURE" = 1 ; then
6982 cat >> confdefs.h
<<EOF
6983 #define wxUSE_MDI_ARCHITECTURE $wxUSE_MDI_ARCHITECTURE
6988 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1 ; then
6989 cat >> confdefs.h
<<EOF
6990 #define wxUSE_DOC_VIEW_ARCHITECTURE $wxUSE_DOC_VIEW_ARCHITECTURE
6995 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1 ; then
6996 cat >> confdefs.h
<<EOF
6997 #define wxUSE_PRINTING_ARCHITECTURE $wxUSE_PRINTING_ARCHITECTURE
7003 if test "$wxUSE_UNICODE" = 1 ; then
7004 cat >> confdefs.h
<<EOF
7005 #define wxUSE_UNICODE 1
7010 if test "$wxUSE_WCSRTOMBS" = 1 ; then
7011 cat >> confdefs.h
<<EOF
7012 #define wxUSE_WCSRTOMBS 1
7018 if test "$wxUSE_IPC" = 1 ; then
7019 cat >> confdefs.h
<<EOF
7025 if test "$wxUSE_RESOURCES" = 1 ; then
7026 cat >> confdefs.h
<<EOF
7027 #define wxUSE_RESOURCES $wxUSE_RESOURCES
7032 if test "$wxUSE_CLIPBOARD" = 1 ; then
7033 cat >> confdefs.h
<<EOF
7034 #define wxUSE_CLIPBOARD $wxUSE_CLIPBOARD
7039 if test "$wxUSE_TOOLTIPS" = 1 ; then
7040 cat >> confdefs.h
<<EOF
7041 #define wxUSE_TOOLTIPS $wxUSE_TOOLTIPS
7046 if test "$wxUSE_DRAG_AND_DROP" = 1 ; then
7047 cat >> confdefs.h
<<EOF
7048 #define wxUSE_DRAG_AND_DROP $wxUSE_DRAG_AND_DROP
7055 if test "$wxUSE_HELP" = 1 ; then
7057 cat >> confdefs.h
<<EOF
7058 #define wxUSE_HELP $wxUSE_HELP
7068 if test "$wxUSE_THREADS" = "1"; then
7071 echo $ac_n "checking for pthread_create in -lpthread-0.7""... $ac_c" 1>&6
7072 echo "configure:7073: checking for pthread_create in -lpthread-0.7" >&5
7073 ac_lib_var
=`echo pthread-0.7'_'pthread_create | sed 'y%./+-%__p_%'`
7074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7075 echo $ac_n "(cached) $ac_c" 1>&6
7077 ac_save_LIBS
="$LIBS"
7078 LIBS
="-lpthread-0.7 $LIBS"
7079 cat > conftest.
$ac_ext <<EOF
7080 #line 7081 "configure"
7081 #include "confdefs.h"
7082 /* Override any gcc2 internal prototype to avoid an error. */
7083 /* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */
7085 char pthread_create();
7091 if { (eval echo configure
:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7093 eval "ac_cv_lib_$ac_lib_var=yes"
7095 echo "configure: failed program was:" >&5
7096 cat conftest.
$ac_ext >&5
7098 eval "ac_cv_lib_$ac_lib_var=no"
7101 LIBS
="$ac_save_LIBS"
7104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7105 echo "$ac_t""yes" 1>&6
7107 UNIX_THREAD
="gtk/threadpsx.cpp"
7108 THREADS_LINK
="-lpthread-0.7"
7111 echo "$ac_t""no" 1>&6
7113 ac_safe
=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
7114 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7115 echo "configure:7116: checking for sys/prctl.h" >&5
7116 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7117 echo $ac_n "(cached) $ac_c" 1>&6
7119 cat > conftest.
$ac_ext <<EOF
7120 #line 7121 "configure"
7121 #include "confdefs.h"
7122 #include <sys/prctl.h>
7124 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7125 { (eval echo configure
:7126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7126 ac_err
=`grep -v '^ *+' conftest.out`
7127 if test -z "$ac_err"; then
7129 eval "ac_cv_header_$ac_safe=yes"
7132 echo "configure: failed program was:" >&5
7133 cat conftest.
$ac_ext >&5
7135 eval "ac_cv_header_$ac_safe=no"
7139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7140 echo "$ac_t""yes" 1>&6
7142 UNIX_THREAD
="gtk/threadsgi.cpp"
7145 echo "$ac_t""no" 1>&6
7150 echo $ac_n "checking for pthread_setcanceltype in -lpthread""... $ac_c" 1>&6
7151 echo "configure:7152: checking for pthread_setcanceltype in -lpthread" >&5
7152 ac_lib_var
=`echo pthread'_'pthread_setcanceltype | sed 'y%./+-%__p_%'`
7153 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7156 ac_save_LIBS
="$LIBS"
7157 LIBS
="-lpthread $LIBS"
7158 cat > conftest.
$ac_ext <<EOF
7159 #line 7160 "configure"
7160 #include "confdefs.h"
7161 /* Override any gcc2 internal prototype to avoid an error. */
7162 /* We use char because int might match the return type of a gcc2
7163 builtin and then its argument prototype would still apply. */
7164 char pthread_setcanceltype();
7167 pthread_setcanceltype()
7170 if { (eval echo configure
:7171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7172 eval "ac_cv_lib_$ac_lib_var=yes"
7174 echo "configure: failed program was:" >&5
7175 cat conftest.
$ac_ext >&5
7177 eval "ac_cv_lib_$ac_lib_var=no"
7180 LIBS
="$ac_save_LIBS"
7183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7184 echo "$ac_t""yes" 1>&6
7186 UNIX_THREAD
="gtk/threadpsx.cpp"
7187 THREADS_LINK
="-lpthread"
7190 echo "$ac_t""no" 1>&6
7197 if test "$THREADS_LINK" != ""; then
7198 cat >> confdefs.h
<<\EOF
7199 #define wxUSE_THREADS 1
7205 echo $ac_n "checking for printf in -lposix4""... $ac_c" 1>&6
7206 echo "configure:7207: checking for printf in -lposix4" >&5
7207 ac_lib_var
=`echo posix4'_'printf | sed 'y%./+-%__p_%'`
7208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7209 echo $ac_n "(cached) $ac_c" 1>&6
7211 ac_save_LIBS
="$LIBS"
7212 LIBS
="-lposix4 $LIBS"
7213 cat > conftest.
$ac_ext <<EOF
7214 #line 7215 "configure"
7215 #include "confdefs.h"
7216 /* Override any gcc2 internal prototype to avoid an error. */
7217 /* We use char because int might match the return type of a gcc2
7218 builtin and then its argument prototype would still apply. */
7225 if { (eval echo configure
:7226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7227 eval "ac_cv_lib_$ac_lib_var=yes"
7229 echo "configure: failed program was:" >&5
7230 cat conftest.
$ac_ext >&5
7232 eval "ac_cv_lib_$ac_lib_var=no"
7235 LIBS
="$ac_save_LIBS"
7238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7239 echo "$ac_t""yes" 1>&6
7241 THREADS_LINK
="$THREADS_LINK -lposix4"
7244 echo "$ac_t""no" 1>&6
7250 if test "$wxUSE_MOTIF" = "1"; then
7251 UNIX_THREAD
="motif/thread.cpp"
7254 if test -z "$UNIX_THREAD"; then
7265 case "${canonical}" in
7268 if test "$GCC" != "yes" ; then
7269 CXXFLAGS
="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
7270 CFLAGS
="${CFLAGS} -z -D_HPUX_SOURCE"
7276 CREATE_SHARED
=sharedHpux
7281 CREATE_SHARED
=sharedLinux
7284 *-*-irix5* | *-*-irix6* )
7285 # PICFLAGS can remain empty, as pic is the default
7287 CREATE_SHARED
=sharedIrix
7288 cat >> confdefs.h
<<\EOF
7295 if test "$GCC" != "yes" ; then
7300 CREATE_SHARED
=sharedSolaris2
7301 cat >> confdefs.h
<<\EOF
7308 if test "$GCC" != "yes" ; then
7314 CREATE_SHARED
=sharedSunos4
7315 cat >> confdefs.h
<<\EOF
7321 *-*-freebsd* | *-*-netbsd*)
7323 CREATE_SHARED
=sharedBsd
7324 cat >> confdefs.h
<<\EOF
7332 CREATE_SHARED
=sharedOSF
7336 if test "$GCC" != "yes" ; then
7341 CREATE_SHARED
=sharedDgux
7342 cat >> confdefs.h
<<\EOF
7349 if test "$GCC" != "yes" ; then
7354 CREATE_SHARED
=sharedSysV
7355 cat >> confdefs.h
<<\EOF
7362 if test "$GCC" != "yes" ; then
7367 CREATE_SHARED
=sharedAIX
7368 cat >> confdefs.h
<<\EOF
7379 if test "x$GCC" = xyes
; then
7380 CFLAGS
="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER -DHAVE_LIBDL"
7383 if test "x$GXX" = xyes
; then
7384 if test "$wxUSE_MOTIF" = 1; then
7385 CXXFLAGS
="${CXXFLAGS} -Wall -Wno-unused -D_REENTRANT"
7387 CXXFLAGS
="${CXXFLAGS} -Wall -D_REENTRANT"
7391 if test "$wxUSE_SHARED" != 1; then
7401 echo $OS >> system.list
7405 cat > confcache
<<\EOF
7406 # This file is a shell script that caches the results of configure
7407 # tests run on this system so they can be shared between configure
7408 # scripts and configure runs. It is not useful on other systems.
7409 # If it contains results you don't want to keep, you may remove or edit it.
7411 # By default, configure uses ./config.cache as the cache file,
7412 # creating it if it does not exist already. You can give configure
7413 # the --cache-file=FILE option to use a different cache file; that is
7414 # what configure does when it calls configure scripts in
7415 # subdirectories, so they share the cache.
7416 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7417 # config.status only pays attention to the cache file if you give it the
7418 # --recheck option to rerun configure.
7421 # The following way of writing the cache mishandles newlines in values,
7422 # but we know of no workaround that is simple, portable, and efficient.
7423 # So, don't put newlines in cache variables' values.
7424 # Ultrix sh set writes to stderr and can't be redirected directly,
7425 # and sets the high bit in the cache file unless we assign to the vars.
7427 case `(ac_space=' '; set) 2>&1` in
7429 # `set' does not quote correctly, so add quotes (double-quote substitution
7430 # turns \\\\ into \\, and sed turns \\ into \).
7432 -e "s/'/'\\\\''/g" \
7433 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7436 # `set' quotes correctly as required by POSIX, so do not add quotes.
7437 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7440 if cmp -s $cache_file confcache
; then
7443 if test -w $cache_file; then
7444 echo "updating cache $cache_file"
7445 cat confcache
> $cache_file
7447 echo "not updating unwritable cache $cache_file"
7452 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7454 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7455 # Let make expand exec_prefix.
7456 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7458 # Any assignment to VPATH causes Sun make to only execute
7459 # the first set of double-colon rules, so remove it if not needed.
7460 # If there is a colon in the path, we need to keep it.
7461 if test "x$srcdir" = x.
; then
7462 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7465 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7467 DEFS
=-DHAVE_CONFIG_H
7469 # Without the "./", some shells look in PATH for config.status.
7470 : ${CONFIG_STATUS=./config.status}
7472 echo creating
$CONFIG_STATUS
7473 rm -f $CONFIG_STATUS
7474 cat > $CONFIG_STATUS <<EOF
7476 # Generated automatically by configure.
7477 # Run this file to recreate the current configuration.
7478 # This directory was configured as follows,
7479 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7481 # $0 $ac_configure_args
7483 # Compiler output produced by configure, useful for debugging
7484 # configure, is in ./config.log if it exists.
7486 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7489 case "\$ac_option" in
7490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7491 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7492 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7493 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7494 echo "$CONFIG_STATUS generated by autoconf version 2.12"
7496 -help | --help | --hel | --he | --h)
7497 echo "\$ac_cs_usage"; exit 0 ;;
7498 *) echo "\$ac_cs_usage"; exit 1 ;;
7502 ac_given_srcdir=$srcdir
7503 ac_given_INSTALL="$INSTALL"
7505 trap 'rm -fr `echo "./setup/substit ./wx-config:./wx-config.in ./include/wx/gtk/setup.h:./setup/setup.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7507 cat >> $CONFIG_STATUS <<EOF
7509 # Protect against being on the right side of a sed subst in config.status.
7510 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7511 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7514 s%@CFLAGS@%$CFLAGS%g
7515 s%@CPPFLAGS@%$CPPFLAGS%g
7516 s%@CXXFLAGS@%$CXXFLAGS%g
7518 s%@LDFLAGS@%$LDFLAGS%g
7520 s%@exec_prefix@%$exec_prefix%g
7521 s%@prefix@%$prefix%g
7522 s%@program_transform_name@%$program_transform_name%g
7523 s%@bindir@%$bindir%g
7524 s%@sbindir@%$sbindir%g
7525 s%@libexecdir@%$libexecdir%g
7526 s%@datadir@%$datadir%g
7527 s%@sysconfdir@%$sysconfdir%g
7528 s%@sharedstatedir@%$sharedstatedir%g
7529 s%@localstatedir@%$localstatedir%g
7530 s%@libdir@%$libdir%g
7531 s%@includedir@%$includedir%g
7532 s%@oldincludedir@%$oldincludedir%g
7533 s%@infodir@%$infodir%g
7534 s%@mandir@%$mandir%g
7535 s%@WXBASEDIR@%$WXBASEDIR%g
7539 s%@CXXCPP@%$CXXCPP%g
7540 s%@RANLIB@%$RANLIB%g
7542 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7543 s%@INSTALL_DATA@%$INSTALL_DATA%g
7546 s%@X_CFLAGS@%$X_CFLAGS%g
7547 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7548 s%@X_LIBS@%$X_LIBS%g
7549 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7550 s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
7551 s%@LIBOBJS@%$LIBOBJS%g
7554 s%@LEXLIB@%$LEXLIB%g
7555 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
7556 s%@DL_LIBRARY@%$DL_LIBRARY%g
7558 s%@host_alias@%$host_alias%g
7559 s%@host_cpu@%$host_cpu%g
7560 s%@host_vendor@%$host_vendor%g
7561 s%@host_os@%$host_os%g
7562 s%@GTK_CONFIG@%$GTK_CONFIG%g
7563 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
7564 s%@GTK_LIBS@%$GTK_LIBS%g
7565 s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
7566 s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
7567 s%@GUI_TK_LINK@%$GUI_TK_LINK%g
7568 s%@WX_LINK@%$WX_LINK%g
7569 s%@TOOLKIT@%$TOOLKIT%g
7570 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
7571 s%@MAKEINCLUDE@%$MAKEINCLUDE%g
7572 s%@WXDEBUG@%$WXDEBUG%g
7573 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
7574 s%@EXTRA_LINK@%$EXTRA_LINK%g
7575 s%@PROFILE@%$PROFILE%g
7576 s%@OPTIMISE@%$OPTIMISE%g
7577 s%@Z_C_SRC@%$Z_C_SRC%g
7578 s%@PNG_C_SRC@%$PNG_C_SRC%g
7579 s%@JPEG_LINK@%$JPEG_LINK%g
7580 s%@IODBC_C_SRC@%$IODBC_C_SRC%g
7582 s%@UNIX_THREAD@%$UNIX_THREAD%g
7583 s%@THREADS_LINK@%$THREADS_LINK%g
7585 s%@PICFLAGS@%$PICFLAGS%g
7586 s%@CREATE_SHARED@%$CREATE_SHARED%g
7591 cat >> $CONFIG_STATUS <<\EOF
7593 # Split the substitutions into bite-sized pieces for seds with
7594 # small command number limits, like on Digital OSF/1 and HP-UX.
7595 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7596 ac_file
=1 # Number of current file.
7597 ac_beg
=1 # First line for current file.
7598 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7601 while $ac_more_lines; do
7602 if test $ac_beg -gt 1; then
7603 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7605 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7607 if test ! -s conftest.s
$ac_file; then
7609 rm -f conftest.s
$ac_file
7611 if test -z "$ac_sed_cmds"; then
7612 ac_sed_cmds
="sed -f conftest.s$ac_file"
7614 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7616 ac_file
=`expr $ac_file + 1`
7618 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7621 if test -z "$ac_sed_cmds"; then
7626 cat >> $CONFIG_STATUS <<EOF
7628 CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"}
7630 cat >> $CONFIG_STATUS <<\EOF
7631 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7632 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7634 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7635 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7636 *) ac_file_in
="${ac_file}.in" ;;
7639 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7641 # Remove last slash and all that follows it. Not all systems have dirname.
7642 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7643 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7644 # The file is in a subdirectory.
7645 test ! -d "$ac_dir" && mkdir "$ac_dir"
7646 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7647 # A "../" for each directory in $ac_dir_suffix.
7648 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7650 ac_dir_suffix
= ac_dots
=
7653 case "$ac_given_srcdir" in
7655 if test -z "$ac_dots"; then top_srcdir
=.
7656 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7657 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7659 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7660 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7663 case "$ac_given_INSTALL" in
7664 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7665 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7668 echo creating
"$ac_file"
7670 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7672 *Makefile
*) ac_comsub
="1i\\
7673 # $configure_input" ;;
7677 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7679 s%@configure_input@%$configure_input%g
7680 s%@srcdir@%$srcdir%g
7681 s%@top_srcdir@%$top_srcdir%g
7682 s%@INSTALL@%$INSTALL%g
7683 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7687 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7688 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7690 # ac_d sets the value in "#define NAME VALUE" lines.
7691 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7692 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7695 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7696 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7697 ac_uB
='\([ ]\)%\1#\2define\3'
7700 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7701 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7702 ac_eB
='$%\1#\2define\3'
7706 if test "${CONFIG_HEADERS+set}" != set; then
7708 cat >> $CONFIG_STATUS <<EOF
7709 CONFIG_HEADERS="./include/wx/gtk/setup.h:./setup/setup.hin"
7711 cat >> $CONFIG_STATUS <<\EOF
7713 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7714 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7716 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7717 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7718 *) ac_file_in
="${ac_file}.in" ;;
7721 echo creating
$ac_file
7723 rm -f conftest.frag conftest.
in conftest.out
7724 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7725 cat $ac_file_inputs > conftest.
in
7729 # Transform confdefs.h into a sed script conftest.vals that substitutes
7730 # the proper values into config.h.in to produce config.h. And first:
7731 # Protect against being on the right side of a sed subst in config.status.
7732 # Protect against being in an unquoted here document in config.status.
7734 cat > conftest.hdr
<<\EOF
7737 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7741 sed -n -f conftest.hdr confdefs.h > conftest.vals
7744 # This sed command replaces #undef with comments. This is necessary, for
7745 # example, in the case of _POSIX_SOURCE, which is predefined and required
7746 # on some systems where configure will not decide to define it.
7747 cat >> conftest.vals <<\EOF
7748 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7751 # Break up conftest.vals because some shells have a limit on
7752 # the size of here documents, and old seds have small limits too.
7757 ac_lines=`grep -c . conftest.vals
`
7758 # grep -c gives empty output for an empty file on some AIX systems.
7759 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7760 # Write a limited-size here document to conftest.frag.
7761 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7762 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7764 sed -f conftest.frag conftest.in > conftest.out
7766 mv conftest.out conftest.in
7768 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7770 mv conftest.tail conftest.vals
7774 cat >> $CONFIG_STATUS <<\EOF
7775 rm -f conftest.frag conftest.h
7776 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7777 cat conftest.in >> conftest.h
7779 if cmp -s $ac_file conftest.h 2>/dev/null; then
7780 echo "$ac_file is unchanged"
7783 # Remove last slash and all that follows it. Not all systems have dirname.
7784 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7785 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7786 # The file is in a subdirectory.
7787 test ! -d "$ac_dir" && mkdir "$ac_dir"
7790 mv conftest.h $ac_file
7795 cat >> $CONFIG_STATUS <<EOF
7798 cat >> $CONFIG_STATUS <<\EOF
7799 ./setup/general/createall
7802 chmod +x $CONFIG_STATUS
7803 rm -fr confdefs* $ac_clean_files
7804 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7808 mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache