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-zlib use zlib for LZW comression"
45 **--with-libpng use libpng (PNG image format)"
47 **--with-odbc use iODBC and wxODBC classes"
49 **--with-timedate use wxTime and wxDate classes"
51 **--with-intl use internationalization system"
53 **--with-config use wxConfig class"
55 **--with-streams use wxStream etc classes"
57 **--with-serial use class serialization"
59 **--with-afmfonts use Adobe Font Metric Font table"
61 **--with-PS-normalized use normalized PS fonts"
63 **--with-postscript use wxPostscriptDC device context"
65 **--with-unicode compile wxString with Unicode support"
67 **--with-wcsrtombs use wcsrtombs instead of (buggy in GNU libc5) wcstombs"
69 **--with-wxresources use wxWindows's resources"
71 **--with-prologio use Prolog IO library"
73 **--with-rpc use Prolog's remote procedure calls"
75 **--with-ipc use interprocess communication (wxSocket etc.)"
77 **--with-resources use X resources for saving information"
79 **--with-clipboard use wxClipboard classes"
81 **--with-dnd use Drag'n'Drop classes"
83 **--with-mdi use multiple document interface architecture"
85 **--with-docview use document view architecture"
87 **--with-printarch use printing architecture"
89 **--with-help use help (using external browser at present)"
91 **--with-gtk-prefix=PFX Prefix where GTK is installed"
93 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
95 # Initialize some variables set by options.
96 # The variables have the same names as the options, with
97 # dashes changed to underlines.
99 cache_file
=.
/config.cache
108 program_transform_name
=s
,x
,x
,
116 bindir
='${exec_prefix}/bin'
117 sbindir
='${exec_prefix}/sbin'
118 libexecdir
='${exec_prefix}/libexec'
119 datadir
='${prefix}/share'
120 sysconfdir
='${prefix}/etc'
121 sharedstatedir
='${prefix}/com'
122 localstatedir
='${prefix}/var'
123 libdir
='${exec_prefix}/lib'
124 includedir
='${prefix}/include'
125 oldincludedir
='/usr/include'
126 infodir
='${prefix}/info'
127 mandir
='${prefix}/man'
129 # Initialize some other variables.
132 # Maximum number of lines to put in a shell here document.
139 # If the previous option needs an argument, assign it.
140 if test -n "$ac_prev"; then
141 eval "$ac_prev=\$ac_option"
147 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
151 # Accept the important Cygnus configure options, so we can diagnose typos.
155 -bindir | --bindir | --bindi | --bind | --bin | --bi)
157 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
158 bindir
="$ac_optarg" ;;
160 -build | --build | --buil | --bui | --bu)
162 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
163 build
="$ac_optarg" ;;
165 -cache-file | --cache-file | --cache-fil | --cache-fi \
166 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
167 ac_prev
=cache_file
;;
168 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
169 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
170 cache_file
="$ac_optarg" ;;
172 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
174 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
176 datadir
="$ac_optarg" ;;
178 -disable-* | --disable-*)
179 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
180 # Reject names that are not valid shell variable names.
181 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
182 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
184 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}=no" ;;
187 -enable-* | --enable-*)
188 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
198 eval "enable_${ac_feature}='$ac_optarg'" ;;
200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
202 | --exec | --exe | --ex)
203 ac_prev
=exec_prefix
;;
204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
206 | --exec=* | --exe=* | --ex=*)
207 exec_prefix
="$ac_optarg" ;;
209 -gas | --gas | --ga | --g)
210 # Obsolete; use --with-gas.
213 -help | --help | --hel | --he)
214 # Omit some internal or obsolete options to make the list less imposing.
215 # This message is too long to be a string in the A/UX 3.1 sh.
217 Usage: configure [options] [host]
218 Options: [defaults in brackets after descriptions]
220 --cache-file=FILE cache test results in FILE
221 --help print this message
222 --no-create do not create output files
223 --quiet, --silent do not print \`checking...' messages
224 --version print the version of autoconf that created configure
225 Directory and file names:
226 --prefix=PREFIX install architecture-independent files in PREFIX
228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
230 --bindir=DIR user executables in DIR [EPREFIX/bin]
231 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
232 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
233 --datadir=DIR read-only architecture-independent data in DIR
235 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
236 --sharedstatedir=DIR modifiable architecture-independent data in DIR
238 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
239 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
240 --includedir=DIR C header files in DIR [PREFIX/include]
241 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
242 --infodir=DIR info documentation in DIR [PREFIX/info]
243 --mandir=DIR man documentation in DIR [PREFIX/man]
244 --srcdir=DIR find the sources in DIR [configure dir or ..]
245 --program-prefix=PREFIX prepend PREFIX to installed program names
246 --program-suffix=SUFFIX append SUFFIX to installed program names
247 --program-transform-name=PROGRAM
248 run sed PROGRAM on installed program names
252 --build=BUILD configure for building on BUILD [BUILD=HOST]
253 --host=HOST configure for HOST [guessed]
254 --target=TARGET configure for TARGET [TARGET=HOST]
255 Features and packages:
256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
258 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
259 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
260 --x-includes=DIR X include files are in DIR
261 --x-libraries=DIR X library files are in DIR
263 if test -n "$ac_help"; then
264 echo "--enable and --with options recognized:$ac_help"
268 -host | --host | --hos | --ho)
270 -host=* | --host=* | --hos=* | --ho=*)
273 -includedir | --includedir | --includedi | --included | --include \
274 | --includ | --inclu | --incl | --inc)
275 ac_prev
=includedir
;;
276 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
277 | --includ=* | --inclu=* | --incl=* | --inc=*)
278 includedir
="$ac_optarg" ;;
280 -infodir | --infodir | --infodi | --infod | --info | --inf)
282 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
283 infodir
="$ac_optarg" ;;
285 -libdir | --libdir | --libdi | --libd)
287 -libdir=* | --libdir=* | --libdi=* | --libd=*)
288 libdir
="$ac_optarg" ;;
290 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
291 | --libexe | --libex | --libe)
292 ac_prev
=libexecdir
;;
293 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
294 | --libexe=* | --libex=* | --libe=*)
295 libexecdir
="$ac_optarg" ;;
297 -localstatedir | --localstatedir | --localstatedi | --localstated \
298 | --localstate | --localstat | --localsta | --localst \
299 | --locals | --local | --loca | --loc | --lo)
300 ac_prev
=localstatedir
;;
301 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
302 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
303 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
304 localstatedir
="$ac_optarg" ;;
306 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
308 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
309 mandir
="$ac_optarg" ;;
312 # Obsolete; use --without-fp.
315 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
319 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
320 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
323 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
324 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
325 | --oldin | --oldi | --old | --ol | --o)
326 ac_prev
=oldincludedir
;;
327 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
328 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
329 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
330 oldincludedir
="$ac_optarg" ;;
332 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
334 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
335 prefix
="$ac_optarg" ;;
337 -program-prefix | --program-prefix | --program-prefi | --program-pref \
338 | --program-pre | --program-pr | --program-p)
339 ac_prev
=program_prefix
;;
340 -program-prefix=* | --program-prefix=* | --program-prefi=* \
341 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
342 program_prefix
="$ac_optarg" ;;
344 -program-suffix | --program-suffix | --program-suffi | --program-suff \
345 | --program-suf | --program-su | --program-s)
346 ac_prev
=program_suffix
;;
347 -program-suffix=* | --program-suffix=* | --program-suffi=* \
348 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
349 program_suffix
="$ac_optarg" ;;
351 -program-transform-name | --program-transform-name \
352 | --program-transform-nam | --program-transform-na \
353 | --program-transform-n | --program-transform- \
354 | --program-transform | --program-transfor \
355 | --program-transfo | --program-transf \
356 | --program-trans | --program-tran \
357 | --progr-tra | --program-tr | --program-t)
358 ac_prev
=program_transform_name
;;
359 -program-transform-name=* | --program-transform-name=* \
360 | --program-transform-nam=* | --program-transform-na=* \
361 | --program-transform-n=* | --program-transform-=* \
362 | --program-transform=* | --program-transfor=* \
363 | --program-transfo=* | --program-transf=* \
364 | --program-trans=* | --program-tran=* \
365 | --progr-tra=* | --program-tr=* | --program-t=*)
366 program_transform_name
="$ac_optarg" ;;
368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
369 | -silent | --silent | --silen | --sile | --sil)
372 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
374 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
376 sbindir
="$ac_optarg" ;;
378 -sharedstatedir | --sharedstatedir | --sharedstatedi \
379 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
380 | --sharedst | --shareds | --shared | --share | --shar \
382 ac_prev
=sharedstatedir
;;
383 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
384 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
385 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
387 sharedstatedir
="$ac_optarg" ;;
389 -site | --site | --sit)
391 -site=* | --site=* | --sit=*)
394 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
396 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
397 srcdir
="$ac_optarg" ;;
399 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
400 | --syscon | --sysco | --sysc | --sys | --sy)
401 ac_prev
=sysconfdir
;;
402 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
403 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
404 sysconfdir
="$ac_optarg" ;;
406 -target | --target | --targe | --targ | --tar | --ta | --t)
408 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
409 target
="$ac_optarg" ;;
411 -v | -verbose | --verbose | --verbos | --verbo | --verb)
414 -version | --version | --versio | --versi | --vers)
415 echo "configure generated by autoconf version 2.12"
419 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package
=`echo $ac_package| sed 's/-/_/g'`
429 eval "with_${ac_package}='$ac_optarg'" ;;
431 -without-* | --without-*)
432 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
435 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
437 ac_package
=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}=no" ;;
441 # Obsolete; use --with-x.
444 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
445 | --x-incl | --x-inc | --x-in | --x-i)
446 ac_prev
=x_includes
;;
447 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
448 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
449 x_includes
="$ac_optarg" ;;
451 -x-libraries | --x-libraries | --x-librarie | --x-librari \
452 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
453 ac_prev
=x_libraries
;;
454 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
455 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
456 x_libraries
="$ac_optarg" ;;
458 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
462 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
463 echo "configure: warning: $ac_option: invalid host type" 1>&2
465 if test "x$nonopt" != xNONE
; then
466 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 if test -n "$ac_prev"; then
475 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
478 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
480 # File descriptor usage:
483 # 2 errors and warnings
484 # 3 some systems may open it to /dev/tty
485 # 4 used on the Kubota Titan
486 # 6 checking for... messages and results
487 # 5 compiler messages saved in config.log
488 if test "$silent" = yes; then
496 This file contains any messages produced by compilers while
497 running configure, to aid debugging if configure makes a mistake.
500 # Strip out --no-create and --no-recursion so they do not pile up.
501 # Also quote any args containing shell metacharacters.
506 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
507 | --no-cr | --no-c) ;;
508 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
509 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
510 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
511 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
512 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
517 # Only set these to C if already set. These must not be set unconditionally
518 # because not all systems understand e.g. LANG=C (notably SCO).
519 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
520 # Non-C LC_CTYPE values break the ctype check.
521 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
522 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
523 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
524 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
527 rm -rf conftest
* confdefs.h
528 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
531 # A filename unique to this package, relative to the directory that
532 # configure is in, which we can look for to find out if srcdir is correct.
533 ac_unique_file
=configure.
in
535 # Find the source files, if location was not specified.
536 if test -z "$srcdir"; then
537 ac_srcdir_defaulted
=yes
538 # Try the directory containing this script, then its parent.
540 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
541 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
543 if test ! -r $srcdir/$ac_unique_file; then
547 ac_srcdir_defaulted
=no
549 if test ! -r $srcdir/$ac_unique_file; then
550 if test "$ac_srcdir_defaulted" = yes; then
551 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
553 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
556 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
558 # Prefer explicitly selected file to automatically selected ones.
559 if test -z "$CONFIG_SITE"; then
560 if test "x$prefix" != xNONE
; then
561 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
563 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
566 for ac_site_file
in $CONFIG_SITE; do
567 if test -r "$ac_site_file"; then
568 echo "loading site script $ac_site_file"
573 if test -r "$cache_file"; then
574 echo "loading cache $cache_file"
577 echo "creating cache $cache_file"
582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
583 ac_cpp
='$CPP $CPPFLAGS'
584 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
585 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
586 cross_compiling
=$ac_cv_prog_cc_cross
588 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
589 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
590 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
597 ac_n
= ac_c
='\c' ac_t
=
605 if test "x$OS" = "x"; then
607 { echo "configure: error: "The system variable OS has not been
set"
608 "please
set is everytime befor compiling on this system
"
609 "A good example
for this system would be
:"
610 "setenv OSTYPE
$UNAME for csh as a SHELL
"
611 "EXPORT OSTYPE
=$UNAME for sh as SHELL
"
612 "please
set this and restart again.
"
622 /usr/Motif1.2/include \
637 /usr/local/X11R6/include \
638 /usr/local/X11R5/include \
639 /usr/local/X11R4/include \
641 /usr/local/include/X11R6 \
642 /usr/local/include/X11R5 \
643 /usr/local/include/X11R4 \
647 /usr/local/X11/include \
648 /usr/local/include/X11 \
652 /usr/XFree86/include/X11 \
659 /usr/unsupported/include \
660 /usr/athena/include \
661 /usr/local/x11r5/include \
662 /usr/lpp/Xamples/include \
664 /usr/local/include/gtk \
665 /usr/local/include/Xm \
666 /usr/local/include/qt \
667 /usr/X11R6/include/Xm \
668 /usr/X11/include/Xm \
671 /usr/openwin/include \
672 /usr/openwin/share/include \
675 SEARCH_LIB
="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` \
681 # Extract the first word of "gcc", so it can be a program name with args.
682 set dummy gcc
; ac_word
=$2
683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
684 echo "configure:685: checking for $ac_word" >&5
685 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
686 echo $ac_n "(cached) $ac_c" 1>&6
688 if test -n "$CC"; then
689 ac_cv_prog_CC
="$CC" # Let the user override the test.
691 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
692 for ac_dir
in $PATH; do
693 test -z "$ac_dir" && ac_dir
=.
694 if test -f $ac_dir/$ac_word; then
703 if test -n "$CC"; then
704 echo "$ac_t""$CC" 1>&6
706 echo "$ac_t""no" 1>&6
709 if test -z "$CC"; then
710 # Extract the first word of "cc", so it can be a program name with args.
711 set dummy cc
; ac_word
=$2
712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
713 echo "configure:714: checking for $ac_word" >&5
714 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
715 echo $ac_n "(cached) $ac_c" 1>&6
717 if test -n "$CC"; then
718 ac_cv_prog_CC
="$CC" # Let the user override the test.
720 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
722 for ac_dir
in $PATH; do
723 test -z "$ac_dir" && ac_dir
=.
724 if test -f $ac_dir/$ac_word; then
725 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
734 if test $ac_prog_rejected = yes; then
735 # We found a bogon in the path, so make sure we never use it.
736 set dummy
$ac_cv_prog_CC
738 if test $# -gt 0; then
739 # We chose a different compiler from the bogus one.
740 # However, it has the same basename, so the bogon will be chosen
741 # first if we set CC to just the basename; use the full file name.
743 set dummy
"$ac_dir/$ac_word" "$@"
751 if test -n "$CC"; then
752 echo "$ac_t""$CC" 1>&6
754 echo "$ac_t""no" 1>&6
757 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
760 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
761 echo "configure:762: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
765 ac_cpp
='$CPP $CPPFLAGS'
766 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
767 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
768 cross_compiling
=$ac_cv_prog_cc_cross
770 cat > conftest.
$ac_ext <<EOF
771 #line 772 "configure"
772 #include "confdefs.h"
775 if { (eval echo configure
:776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
776 ac_cv_prog_cc_works
=yes
777 # If we can't run a trivial program, we are probably using a cross compiler.
778 if (.
/conftest
; exit) 2>/dev
/null
; then
779 ac_cv_prog_cc_cross
=no
781 ac_cv_prog_cc_cross
=yes
784 echo "configure: failed program was:" >&5
785 cat conftest.
$ac_ext >&5
786 ac_cv_prog_cc_works
=no
790 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
791 if test $ac_cv_prog_cc_works = no
; then
792 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
794 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
795 echo "configure:796: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
796 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
797 cross_compiling
=$ac_cv_prog_cc_cross
799 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
800 echo "configure:801: checking whether we are using GNU C" >&5
801 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
804 cat > conftest.c
<<EOF
809 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
816 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
818 if test $ac_cv_prog_gcc = yes; then
820 ac_test_CFLAGS
="${CFLAGS+set}"
821 ac_save_CFLAGS
="$CFLAGS"
823 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
824 echo "configure:825: checking whether ${CC-cc} accepts -g" >&5
825 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
828 echo 'void f(){}' > conftest.c
829 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
838 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
839 if test "$ac_test_CFLAGS" = set; then
840 CFLAGS
="$ac_save_CFLAGS"
841 elif test $ac_cv_prog_cc_g = yes; then
848 test "${CFLAGS+set}" = set || CFLAGS
="-g"
852 CFLAGS
=`echo "$CFLAGS" | sed 's/-g//g'`
854 if test "x$CC" != xcc
; then
855 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
856 echo "configure:857: checking whether $CC and cc understand -c and -o together" >&5
858 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
859 echo "configure:860: checking whether cc understands -c and -o together" >&5
861 set dummy
$CC; ac_cc
="`echo $2 |
862 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
863 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
864 echo $ac_n "(cached) $ac_c" 1>&6
866 echo 'foo(){}' > conftest.c
867 # Make sure it works both with $CC and with simple cc.
868 # We do the test twice because some compilers refuse to overwrite an
869 # existing .o file with -o, though they will create one.
870 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
871 if { (eval echo configure
:872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
872 test -f conftest.o
&& { (eval echo configure
:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
874 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
875 if test "x$CC" != xcc
; then
876 # Test first that cc exists at all.
877 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
878 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
879 if { (eval echo configure
:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
880 test -f conftest.o
&& { (eval echo configure
:881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
885 # cc exists but doesn't like -o.
886 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
891 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
896 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
897 echo "$ac_t""yes" 1>&6
899 echo "$ac_t""no" 1>&6
900 cat >> confdefs.h
<<\EOF
901 #define NO_MINUS_C_MINUS_O 1
906 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
907 echo "configure:908: checking how to run the C preprocessor" >&5
908 # On Suns, sometimes $CPP names a directory.
909 if test -n "$CPP" && test -d "$CPP"; then
912 if test -z "$CPP"; then
913 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
916 # This must be in double quotes, not single quotes, because CPP may get
917 # substituted into the Makefile and "${CC-cc}" will confuse make.
919 # On the NeXT, cc -E runs the code through the compiler's parser,
920 # not just through cpp.
921 cat > conftest.
$ac_ext <<EOF
922 #line 923 "configure"
923 #include "confdefs.h"
927 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
928 { (eval echo configure
:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
929 ac_err
=`grep -v '^ *+' conftest.out`
930 if test -z "$ac_err"; then
934 echo "configure: failed program was:" >&5
935 cat conftest.
$ac_ext >&5
937 CPP
="${CC-cc} -E -traditional-cpp"
938 cat > conftest.
$ac_ext <<EOF
939 #line 940 "configure"
940 #include "confdefs.h"
944 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
945 { (eval echo configure
:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
946 ac_err
=`grep -v '^ *+' conftest.out`
947 if test -z "$ac_err"; then
951 echo "configure: failed program was:" >&5
952 cat conftest.
$ac_ext >&5
959 ac_cv_prog_CPP
="$CPP"
961 CPP
="$ac_cv_prog_CPP"
963 ac_cv_prog_CPP
="$CPP"
965 echo "$ac_t""$CPP" 1>&6
967 if test $ac_cv_prog_gcc = yes; then
968 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
969 echo "configure:970: checking whether ${CC-cc} needs -traditional" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
973 ac_pattern
="Autoconf.*'x'"
974 cat > conftest.
$ac_ext <<EOF
975 #line 976 "configure"
976 #include "confdefs.h"
980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
981 egrep "$ac_pattern" >/dev
/null
2>&1; then
983 ac_cv_prog_gcc_traditional
=yes
986 ac_cv_prog_gcc_traditional
=no
991 if test $ac_cv_prog_gcc_traditional = no
; then
992 cat > conftest.
$ac_ext <<EOF
993 #line 994 "configure"
994 #include "confdefs.h"
998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
999 egrep "$ac_pattern" >/dev
/null
2>&1; then
1001 ac_cv_prog_gcc_traditional
=yes
1008 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1009 if test $ac_cv_prog_gcc_traditional = yes; then
1010 CC
="$CC -traditional"
1017 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1019 # Extract the first word of "$ac_prog", so it can be a program name with args.
1020 set dummy
$ac_prog; ac_word
=$2
1021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022 echo "configure:1023: checking for $ac_word" >&5
1023 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 if test -n "$CXX"; then
1027 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1029 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1030 for ac_dir
in $PATH; do
1031 test -z "$ac_dir" && ac_dir
=.
1032 if test -f $ac_dir/$ac_word; then
1033 ac_cv_prog_CXX
="$ac_prog"
1040 CXX
="$ac_cv_prog_CXX"
1041 if test -n "$CXX"; then
1042 echo "$ac_t""$CXX" 1>&6
1044 echo "$ac_t""no" 1>&6
1047 test -n "$CXX" && break
1049 test -n "$CXX" || CXX
="gcc"
1052 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1053 echo "configure:1054: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1057 ac_cpp
='$CXXCPP $CPPFLAGS'
1058 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1059 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1060 cross_compiling
=$ac_cv_prog_cxx_cross
1062 cat > conftest.
$ac_ext <<EOF
1063 #line 1064 "configure"
1064 #include "confdefs.h"
1067 if { (eval echo configure
:1068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1068 ac_cv_prog_cxx_works
=yes
1069 # If we can't run a trivial program, we are probably using a cross compiler.
1070 if (.
/conftest
; exit) 2>/dev
/null
; then
1071 ac_cv_prog_cxx_cross
=no
1073 ac_cv_prog_cxx_cross
=yes
1076 echo "configure: failed program was:" >&5
1077 cat conftest.
$ac_ext >&5
1078 ac_cv_prog_cxx_works
=no
1082 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1083 ac_cpp
='$CPP $CPPFLAGS'
1084 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1085 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1086 cross_compiling
=$ac_cv_prog_cc_cross
1088 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1089 if test $ac_cv_prog_cxx_works = no
; then
1090 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1092 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1094 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1095 cross_compiling
=$ac_cv_prog_cxx_cross
1097 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether we are using GNU C++" >&5
1099 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1102 cat > conftest.C
<<EOF
1107 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
1114 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1116 if test $ac_cv_prog_gxx = yes; then
1118 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1119 ac_save_CXXFLAGS
="$CXXFLAGS"
1121 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1122 echo "configure:1123: checking whether ${CXX-g++} accepts -g" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 echo 'void f(){}' > conftest.cc
1127 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1128 ac_cv_prog_cxx_g
=yes
1136 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1137 if test "$ac_test_CXXFLAGS" = set; then
1138 CXXFLAGS
="$ac_save_CXXFLAGS"
1139 elif test $ac_cv_prog_cxx_g = yes; then
1146 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1149 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1150 echo "configure:1151: checking how to run the C++ preprocessor" >&5
1151 if test -z "$CXXCPP"; then
1152 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1156 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1157 ac_cpp
='$CXXCPP $CPPFLAGS'
1158 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1159 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1160 cross_compiling
=$ac_cv_prog_cxx_cross
1161 CXXCPP
="${CXX-g++} -E"
1162 cat > conftest.
$ac_ext <<EOF
1163 #line 1164 "configure"
1164 #include "confdefs.h"
1167 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1168 { (eval echo configure
:1169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1169 ac_err
=`grep -v '^ *+' conftest.out`
1170 if test -z "$ac_err"; then
1174 echo "configure: failed program was:" >&5
1175 cat conftest.
$ac_ext >&5
1180 ac_cv_prog_CXXCPP
="$CXXCPP"
1182 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1183 ac_cpp
='$CPP $CPPFLAGS'
1184 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1185 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1186 cross_compiling
=$ac_cv_prog_cc_cross
1189 CXXCPP
="$ac_cv_prog_CXXCPP"
1190 echo "$ac_t""$CXXCPP" 1>&6
1193 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-g//g'`
1197 # Extract the first word of "ranlib", so it can be a program name with args.
1198 set dummy ranlib
; ac_word
=$2
1199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1200 echo "configure:1201: checking for $ac_word" >&5
1201 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 if test -n "$RANLIB"; then
1205 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1207 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1208 for ac_dir
in $PATH; do
1209 test -z "$ac_dir" && ac_dir
=.
1210 if test -f $ac_dir/$ac_word; then
1211 ac_cv_prog_RANLIB
="ranlib"
1216 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1219 RANLIB
="$ac_cv_prog_RANLIB"
1220 if test -n "$RANLIB"; then
1221 echo "$ac_t""$RANLIB" 1>&6
1223 echo "$ac_t""no" 1>&6
1227 # Extract the first word of "ar", so it can be a program name with args.
1228 set dummy
ar; ac_word
=$2
1229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1230 echo "configure:1231: checking for $ac_word" >&5
1231 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1234 if test -n "$AR"; then
1235 ac_cv_prog_AR
="$AR" # Let the user override the test.
1237 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1238 for ac_dir
in $PATH; do
1239 test -z "$ac_dir" && ac_dir
=.
1240 if test -f $ac_dir/$ac_word; then
1246 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1250 if test -n "$AR"; then
1251 echo "$ac_t""$AR" 1>&6
1253 echo "$ac_t""no" 1>&6
1258 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1259 if test -f $ac_dir/install-sh; then
1261 ac_install_sh
="$ac_aux_dir/install-sh -c"
1263 elif test -f $ac_dir/install.sh
; then
1265 ac_install_sh
="$ac_aux_dir/install.sh -c"
1269 if test -z "$ac_aux_dir"; then
1270 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1272 ac_config_guess
=$ac_aux_dir/config.guess
1273 ac_config_sub
=$ac_aux_dir/config.sub
1274 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1276 # Find a good install program. We prefer a C program (faster),
1277 # so one script is as good as another. But avoid the broken or
1278 # incompatible versions:
1279 # SysV /etc/install, /usr/sbin/install
1280 # SunOS /usr/etc/install
1281 # IRIX /sbin/install
1283 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1284 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1285 # ./install, which can be erroneously created by make from ./install.sh.
1286 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1287 echo "configure:1288: checking for a BSD compatible install" >&5
1288 if test -z "$INSTALL"; then
1289 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1293 for ac_dir
in $PATH; do
1294 # Account for people who put trailing slashes in PATH elements.
1296 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1298 # OSF1 and SCO ODT 3.0 have their own names for install.
1299 for ac_prog
in ginstall installbsd scoinst
install; do
1300 if test -f $ac_dir/$ac_prog; then
1301 if test $ac_prog = install &&
1302 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1303 # AIX install. It has an incompatible calling convention.
1304 # OSF/1 installbsd also uses dspmsg, but is usable.
1307 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1318 if test "${ac_cv_path_install+set}" = set; then
1319 INSTALL
="$ac_cv_path_install"
1321 # As a last resort, use the slow shell script. We don't cache a
1322 # path for INSTALL within a source directory, because that will
1323 # break other packages using the cache if that directory is
1324 # removed, or if the path is relative.
1325 INSTALL
="$ac_install_sh"
1328 echo "$ac_t""$INSTALL" 1>&6
1330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1331 # It thinks the first close brace ends the variable substitution.
1332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1334 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1337 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1338 echo "configure:1339: checking whether ln -s works" >&5
1339 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1343 if ln -s X conftestdata
2>/dev
/null
1346 ac_cv_prog_LN_S
="ln -s"
1351 LN_S
="$ac_cv_prog_LN_S"
1352 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1353 echo "$ac_t""yes" 1>&6
1355 echo "$ac_t""no" 1>&6
1359 for ac_prog
in mawk gawk nawk
awk
1361 # Extract the first word of "$ac_prog", so it can be a program name with args.
1362 set dummy
$ac_prog; ac_word
=$2
1363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1364 echo "configure:1365: checking for $ac_word" >&5
1365 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1368 if test -n "$AWK"; then
1369 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1371 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1372 for ac_dir
in $PATH; do
1373 test -z "$ac_dir" && ac_dir
=.
1374 if test -f $ac_dir/$ac_word; then
1375 ac_cv_prog_AWK
="$ac_prog"
1382 AWK
="$ac_cv_prog_AWK"
1383 if test -n "$AWK"; then
1384 echo "$ac_t""$AWK" 1>&6
1386 echo "$ac_t""no" 1>&6
1389 test -n "$AWK" && break
1393 echo $ac_n "checking "make for VPATH support
"""... $ac_c" 1>&6
1394 echo "configure:1395: checking "make for VPATH support
"" >&5
1395 cat - << EOF > confMake
1401 if test ! -d sub
; then
1404 echo dummy
> sub
/file
1405 ${MAKE-make} -f confMake VPATH
=sub
2> config.log
> /dev
/null
1407 rm -f sub
/file check final_file confMake
1409 if test "$RESULT" = 0; then
1410 echo "$ac_t""yes" 1>&6
1412 echo "$ac_t""no" 1>&6
1413 { echo "configure: error: You need a make-utility that is able to use the variable
1415 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
1419 # If we find X, set shell vars x_includes and x_libraries to the
1420 # paths, otherwise set no_x=yes.
1421 # Uses ac_ vars as temps to allow command line to override cache and checks.
1422 # --without-x overrides everything else, but does not touch the cache.
1423 echo $ac_n "checking for X""... $ac_c" 1>&6
1424 echo "configure:1425: checking for X" >&5
1426 # Check whether --with-x or --without-x was given.
1427 if test "${with_x+set}" = set; then
1432 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1433 if test "x$with_x" = xno
; then
1434 # The user explicitly disabled X.
1437 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1438 # Both variables are already set.
1441 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1444 # One or both of the vars are not set, and there is no cached value.
1445 ac_x_includes
=NO ac_x_libraries
=NO
1447 if mkdir conftestdir
; then
1449 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1450 cat > Imakefile
<<'EOF'
1452 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1454 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1455 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1456 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1457 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1458 for ac_extension
in a so sl
; do
1459 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1460 test -f $ac_im_libdir/libX11.
$ac_extension; then
1461 ac_im_usrlibdir
=$ac_im_libdir; break
1464 # Screen out bogus values from the imake configuration. They are
1465 # bogus both because they are the default anyway, and because
1466 # using them would break gcc on systems where it needs fixed includes.
1467 case "$ac_im_incroot" in
1469 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1471 case "$ac_im_usrlibdir" in
1473 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1480 if test "$ac_x_includes" = NO
; then
1481 # Guess where to find include files, by looking for this one X11 .h file.
1482 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1484 # First, try using that file with no special directory specified.
1485 cat > conftest.
$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1488 #include <$x_direct_test_include>
1490 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1491 { (eval echo configure
:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1492 ac_err
=`grep -v '^ *+' conftest.out`
1493 if test -z "$ac_err"; then
1495 # We can compile using X headers with no special include directory.
1499 echo "configure: failed program was:" >&5
1500 cat conftest.
$ac_ext >&5
1502 # Look for the header file in a standard set of common directories.
1503 # Check X11 before X11Rn because it is often a symlink to the current release.
1506 /usr
/X
11R
6/include \
1507 /usr
/X
11R
5/include \
1508 /usr
/X
11R
4/include \
1511 /usr
/include
/X11R6 \
1512 /usr
/include
/X11R5 \
1513 /usr
/include
/X11R4 \
1515 /usr
/local
/X
11/include \
1516 /usr
/local
/X
11R
6/include \
1517 /usr
/local
/X
11R
5/include \
1518 /usr
/local
/X
11R
4/include \
1520 /usr
/local
/include
/X11 \
1521 /usr
/local
/include
/X11R6 \
1522 /usr
/local
/include
/X11R5 \
1523 /usr
/local
/include
/X11R4 \
1527 /usr
/XFree
86/include
/X11 \
1530 /usr
/local
/include \
1531 /usr
/unsupported
/include \
1532 /usr
/athena
/include \
1533 /usr
/local
/x
11r
5/include \
1534 /usr
/lpp
/Xamples
/include \
1536 /usr
/openwin
/include \
1537 /usr
/openwin
/share
/include \
1540 if test -r "$ac_dir/$x_direct_test_include"; then
1541 ac_x_includes
=$ac_dir
1547 fi # $ac_x_includes = NO
1549 if test "$ac_x_libraries" = NO
; then
1550 # Check for the libraries.
1552 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1553 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1555 # See if we find them without any special options.
1556 # Don't add to $LIBS permanently.
1557 ac_save_LIBS
="$LIBS"
1558 LIBS
="-l$x_direct_test_library $LIBS"
1559 cat > conftest.
$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1564 ${x_direct_test_function}()
1567 if { (eval echo configure
:1568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1569 LIBS
="$ac_save_LIBS"
1570 # We can link X programs with no special library path.
1573 echo "configure: failed program was:" >&5
1574 cat conftest.
$ac_ext >&5
1576 LIBS
="$ac_save_LIBS"
1577 # First see if replacing the include by lib works.
1578 # Check X11 before X11Rn because it is often a symlink to the current release.
1579 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1590 /usr
/local
/X
11/lib \
1591 /usr
/local
/X
11R
6/lib \
1592 /usr
/local
/X
11R
5/lib \
1593 /usr
/local
/X
11R
4/lib \
1595 /usr
/local
/lib
/X11 \
1596 /usr
/local
/lib
/X11R6 \
1597 /usr
/local
/lib
/X11R5 \
1598 /usr
/local
/lib
/X11R4 \
1602 /usr
/XFree
86/lib
/X11 \
1606 /usr
/unsupported
/lib \
1608 /usr
/local
/x
11r
5/lib \
1609 /usr
/lpp
/Xamples
/lib \
1613 /usr
/openwin
/share
/lib \
1616 for ac_extension
in a so sl
; do
1617 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1618 ac_x_libraries
=$ac_dir
1625 fi # $ac_x_libraries = NO
1627 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
1628 # Didn't find X anywhere. Cache the known absence of X.
1629 ac_cv_have_x
="have_x=no"
1631 # Record where we found X for the cache.
1632 ac_cv_have_x
="have_x=yes \
1633 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1637 eval "$ac_cv_have_x"
1640 if test "$have_x" != yes; then
1641 echo "$ac_t""$have_x" 1>&6
1644 # If each of the values was on the command line, it overrides each guess.
1645 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1646 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1647 # Update the cache value to reflect the command line values.
1648 ac_cv_have_x
="have_x=yes \
1649 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1650 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1653 if test "$no_x" = yes; then
1654 # Not all programs may use this symbol, but it does not hurt to define it.
1655 cat >> confdefs.h
<<\EOF
1656 #define X_DISPLAY_MISSING 1
1659 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1661 if test -n "$x_includes"; then
1662 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1665 # It would also be nice to do this for all -L options, not just this one.
1666 if test -n "$x_libraries"; then
1667 X_LIBS
="$X_LIBS -L$x_libraries"
1668 # For Solaris; some versions of Sun CC require a space after -R and
1669 # others require no space. Words are not sufficient . . . .
1670 case "`(uname -sr) 2>/dev/null`" in
1672 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1673 echo "configure:1674: checking whether -R must be followed by a space" >&5
1674 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1675 cat > conftest.
$ac_ext <<EOF
1676 #line 1677 "configure"
1677 #include "confdefs.h"
1683 if { (eval echo configure
:1684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1687 echo "configure: failed program was:" >&5
1688 cat conftest.
$ac_ext >&5
1693 if test $ac_R_nospace = yes; then
1694 echo "$ac_t""no" 1>&6
1695 X_LIBS
="$X_LIBS -R$x_libraries"
1697 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1698 cat > conftest.
$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1706 if { (eval echo configure
:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1710 echo "configure: failed program was:" >&5
1711 cat conftest.
$ac_ext >&5
1716 if test $ac_R_space = yes; then
1717 echo "$ac_t""yes" 1>&6
1718 X_LIBS
="$X_LIBS -R $x_libraries"
1720 echo "$ac_t""neither works" 1>&6
1723 LIBS
="$ac_xsave_LIBS"
1727 # Check for system-dependent libraries X programs must link with.
1728 # Do this before checking for the system-independent R6 libraries
1729 # (-lICE), since we may need -lsocket or whatever for X linking.
1731 if test "$ISC" = yes; then
1732 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1734 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1735 # libraries were built with DECnet support. And karl@cs.umb.edu says
1736 # the Alpha needs dnet_stub (dnet does not exist).
1737 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1738 echo "configure:1739: checking for dnet_ntoa in -ldnet" >&5
1739 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1743 ac_save_LIBS
="$LIBS"
1745 cat > conftest.
$ac_ext <<EOF
1746 #line 1747 "configure"
1747 #include "confdefs.h"
1748 /* Override any gcc2 internal prototype to avoid an error. */
1749 /* We use char because int might match the return type of a gcc2
1750 builtin and then its argument prototype would still apply. */
1757 if { (eval echo configure
:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1759 eval "ac_cv_lib_$ac_lib_var=yes"
1761 echo "configure: failed program was:" >&5
1762 cat conftest.
$ac_ext >&5
1764 eval "ac_cv_lib_$ac_lib_var=no"
1767 LIBS
="$ac_save_LIBS"
1770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1771 echo "$ac_t""yes" 1>&6
1772 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1774 echo "$ac_t""no" 1>&6
1777 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1778 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1779 echo "configure:1780: checking for dnet_ntoa in -ldnet_stub" >&5
1780 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 ac_save_LIBS
="$LIBS"
1785 LIBS
="-ldnet_stub $LIBS"
1786 cat > conftest.
$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1789 /* Override any gcc2 internal prototype to avoid an error. */
1790 /* We use char because int might match the return type of a gcc2
1791 builtin and then its argument prototype would still apply. */
1798 if { (eval echo configure
:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1800 eval "ac_cv_lib_$ac_lib_var=yes"
1802 echo "configure: failed program was:" >&5
1803 cat conftest.
$ac_ext >&5
1805 eval "ac_cv_lib_$ac_lib_var=no"
1808 LIBS
="$ac_save_LIBS"
1811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1812 echo "$ac_t""yes" 1>&6
1813 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1815 echo "$ac_t""no" 1>&6
1820 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1821 # to get the SysV transport functions.
1822 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1824 # The nsl library prevents programs from opening the X display
1825 # on Irix 5.2, according to dickey@clark.net.
1826 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1827 echo "configure:1828: checking for gethostbyname" >&5
1828 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1831 cat > conftest.
$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1834 /* System header to define __stub macros and hopefully few prototypes,
1835 which can conflict with char gethostbyname(); below. */
1837 /* Override any gcc2 internal prototype to avoid an error. */
1838 /* We use char because int might match the return type of a gcc2
1839 builtin and then its argument prototype would still apply. */
1840 char gethostbyname();
1844 /* The GNU C library defines this for functions which it implements
1845 to always fail with ENOSYS. Some functions are actually named
1846 something starting with __ and the normal name is an alias. */
1847 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1855 if { (eval echo configure
:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1857 eval "ac_cv_func_gethostbyname=yes"
1859 echo "configure: failed program was:" >&5
1860 cat conftest.
$ac_ext >&5
1862 eval "ac_cv_func_gethostbyname=no"
1867 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1868 echo "$ac_t""yes" 1>&6
1871 echo "$ac_t""no" 1>&6
1874 if test $ac_cv_func_gethostbyname = no
; then
1875 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1876 echo "configure:1877: checking for gethostbyname in -lnsl" >&5
1877 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1881 ac_save_LIBS
="$LIBS"
1883 cat > conftest.
$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1886 /* Override any gcc2 internal prototype to avoid an error. */
1887 /* We use char because int might match the return type of a gcc2
1888 builtin and then its argument prototype would still apply. */
1889 char gethostbyname();
1895 if { (eval echo configure
:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1897 eval "ac_cv_lib_$ac_lib_var=yes"
1899 echo "configure: failed program was:" >&5
1900 cat conftest.
$ac_ext >&5
1902 eval "ac_cv_lib_$ac_lib_var=no"
1905 LIBS
="$ac_save_LIBS"
1908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1909 echo "$ac_t""yes" 1>&6
1910 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1912 echo "$ac_t""no" 1>&6
1917 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1918 # socket/setsockopt and other routines are undefined under SCO ODT
1919 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1920 # on later versions), says simon@lia.di.epfl.ch: it contains
1921 # gethostby* variants that don't use the nameserver (or something).
1922 # -lsocket must be given before -lnsl if both are needed.
1923 # We assume that if connect needs -lnsl, so does gethostbyname.
1924 echo $ac_n "checking for connect""... $ac_c" 1>&6
1925 echo "configure:1926: checking for connect" >&5
1926 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1929 cat > conftest.
$ac_ext <<EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1932 /* System header to define __stub macros and hopefully few prototypes,
1933 which can conflict with char connect(); below. */
1935 /* Override any gcc2 internal prototype to avoid an error. */
1936 /* We use char because int might match the return type of a gcc2
1937 builtin and then its argument prototype would still apply. */
1942 /* The GNU C library defines this for functions which it implements
1943 to always fail with ENOSYS. Some functions are actually named
1944 something starting with __ and the normal name is an alias. */
1945 #if defined (__stub_connect) || defined (__stub___connect)
1953 if { (eval echo configure
:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1955 eval "ac_cv_func_connect=yes"
1957 echo "configure: failed program was:" >&5
1958 cat conftest.
$ac_ext >&5
1960 eval "ac_cv_func_connect=no"
1965 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1966 echo "$ac_t""yes" 1>&6
1969 echo "$ac_t""no" 1>&6
1972 if test $ac_cv_func_connect = no
; then
1973 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1974 echo "configure:1975: checking for connect in -lsocket" >&5
1975 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1979 ac_save_LIBS
="$LIBS"
1980 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1981 cat > conftest.
$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1984 /* Override any gcc2 internal prototype to avoid an error. */
1985 /* We use char because int might match the return type of a gcc2
1986 builtin and then its argument prototype would still apply. */
1993 if { (eval echo configure
:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1995 eval "ac_cv_lib_$ac_lib_var=yes"
1997 echo "configure: failed program was:" >&5
1998 cat conftest.
$ac_ext >&5
2000 eval "ac_cv_lib_$ac_lib_var=no"
2003 LIBS
="$ac_save_LIBS"
2006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2007 echo "$ac_t""yes" 1>&6
2008 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2010 echo "$ac_t""no" 1>&6
2015 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2016 echo $ac_n "checking for remove""... $ac_c" 1>&6
2017 echo "configure:2018: checking for remove" >&5
2018 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 cat > conftest.
$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2024 /* System header to define __stub macros and hopefully few prototypes,
2025 which can conflict with char remove(); below. */
2027 /* Override any gcc2 internal prototype to avoid an error. */
2028 /* We use char because int might match the return type of a gcc2
2029 builtin and then its argument prototype would still apply. */
2034 /* The GNU C library defines this for functions which it implements
2035 to always fail with ENOSYS. Some functions are actually named
2036 something starting with __ and the normal name is an alias. */
2037 #if defined (__stub_remove) || defined (__stub___remove)
2045 if { (eval echo configure
:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2047 eval "ac_cv_func_remove=yes"
2049 echo "configure: failed program was:" >&5
2050 cat conftest.
$ac_ext >&5
2052 eval "ac_cv_func_remove=no"
2057 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2058 echo "$ac_t""yes" 1>&6
2061 echo "$ac_t""no" 1>&6
2064 if test $ac_cv_func_remove = no
; then
2065 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2066 echo "configure:2067: checking for remove in -lposix" >&5
2067 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2071 ac_save_LIBS
="$LIBS"
2072 LIBS
="-lposix $LIBS"
2073 cat > conftest.
$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2076 /* Override any gcc2 internal prototype to avoid an error. */
2077 /* We use char because int might match the return type of a gcc2
2078 builtin and then its argument prototype would still apply. */
2085 if { (eval echo configure
:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2087 eval "ac_cv_lib_$ac_lib_var=yes"
2089 echo "configure: failed program was:" >&5
2090 cat conftest.
$ac_ext >&5
2092 eval "ac_cv_lib_$ac_lib_var=no"
2095 LIBS
="$ac_save_LIBS"
2098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2099 echo "$ac_t""yes" 1>&6
2100 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2102 echo "$ac_t""no" 1>&6
2107 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2108 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2109 echo "configure:2110: checking for shmat" >&5
2110 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2113 cat > conftest.
$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2116 /* System header to define __stub macros and hopefully few prototypes,
2117 which can conflict with char shmat(); below. */
2119 /* Override any gcc2 internal prototype to avoid an error. */
2120 /* We use char because int might match the return type of a gcc2
2121 builtin and then its argument prototype would still apply. */
2126 /* The GNU C library defines this for functions which it implements
2127 to always fail with ENOSYS. Some functions are actually named
2128 something starting with __ and the normal name is an alias. */
2129 #if defined (__stub_shmat) || defined (__stub___shmat)
2137 if { (eval echo configure
:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2139 eval "ac_cv_func_shmat=yes"
2141 echo "configure: failed program was:" >&5
2142 cat conftest.
$ac_ext >&5
2144 eval "ac_cv_func_shmat=no"
2149 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2150 echo "$ac_t""yes" 1>&6
2153 echo "$ac_t""no" 1>&6
2156 if test $ac_cv_func_shmat = no
; then
2157 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2158 echo "configure:2159: checking for shmat in -lipc" >&5
2159 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2161 echo $ac_n "(cached) $ac_c" 1>&6
2163 ac_save_LIBS
="$LIBS"
2165 cat > conftest.
$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2168 /* Override any gcc2 internal prototype to avoid an error. */
2169 /* We use char because int might match the return type of a gcc2
2170 builtin and then its argument prototype would still apply. */
2177 if { (eval echo configure
:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2179 eval "ac_cv_lib_$ac_lib_var=yes"
2181 echo "configure: failed program was:" >&5
2182 cat conftest.
$ac_ext >&5
2184 eval "ac_cv_lib_$ac_lib_var=no"
2187 LIBS
="$ac_save_LIBS"
2190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2191 echo "$ac_t""yes" 1>&6
2192 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2194 echo "$ac_t""no" 1>&6
2200 # Check for libraries that X11R6 Xt/Xaw programs need.
2201 ac_save_LDFLAGS
="$LDFLAGS"
2202 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2203 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2204 # check for ICE first), but we must link in the order -lSM -lICE or
2205 # we get undefined symbols. So assume we have SM if we have ICE.
2206 # These have to be linked with before -lX11, unlike the other
2207 # libraries we check for below, so use a different variable.
2208 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2209 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2210 echo "configure:2211: checking for IceConnectionNumber in -lICE" >&5
2211 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2213 echo $ac_n "(cached) $ac_c" 1>&6
2215 ac_save_LIBS
="$LIBS"
2217 cat > conftest.
$ac_ext <<EOF
2218 #line 2219 "configure"
2219 #include "confdefs.h"
2220 /* Override any gcc2 internal prototype to avoid an error. */
2221 /* We use char because int might match the return type of a gcc2
2222 builtin and then its argument prototype would still apply. */
2223 char IceConnectionNumber();
2226 IceConnectionNumber()
2229 if { (eval echo configure
:2230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2231 eval "ac_cv_lib_$ac_lib_var=yes"
2233 echo "configure: failed program was:" >&5
2234 cat conftest.
$ac_ext >&5
2236 eval "ac_cv_lib_$ac_lib_var=no"
2239 LIBS
="$ac_save_LIBS"
2242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2243 echo "$ac_t""yes" 1>&6
2244 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2246 echo "$ac_t""no" 1>&6
2249 LDFLAGS
="$ac_save_LDFLAGS"
2255 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2257 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2258 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2259 echo "configure:2260: checking for $ac_hdr that defines DIR" >&5
2260 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 cat > conftest.
$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 #include <sys/types.h>
2272 if { (eval echo configure
:2273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2274 eval "ac_cv_header_dirent_$ac_safe=yes"
2276 echo "configure: failed program was:" >&5
2277 cat conftest.
$ac_ext >&5
2279 eval "ac_cv_header_dirent_$ac_safe=no"
2283 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2284 echo "$ac_t""yes" 1>&6
2285 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2286 cat >> confdefs.h
<<EOF
2287 #define $ac_tr_hdr 1
2289 ac_header_dirent
=$ac_hdr; break
2291 echo "$ac_t""no" 1>&6
2294 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2295 if test $ac_header_dirent = dirent.h
; then
2296 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2297 echo "configure:2298: checking for opendir in -ldir" >&5
2298 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2302 ac_save_LIBS
="$LIBS"
2304 cat > conftest.
$ac_ext <<EOF
2305 #line 2306 "configure"
2306 #include "confdefs.h"
2307 /* Override any gcc2 internal prototype to avoid an error. */
2308 /* We use char because int might match the return type of a gcc2
2309 builtin and then its argument prototype would still apply. */
2316 if { (eval echo configure
:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2318 eval "ac_cv_lib_$ac_lib_var=yes"
2320 echo "configure: failed program was:" >&5
2321 cat conftest.
$ac_ext >&5
2323 eval "ac_cv_lib_$ac_lib_var=no"
2326 LIBS
="$ac_save_LIBS"
2329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2330 echo "$ac_t""yes" 1>&6
2333 echo "$ac_t""no" 1>&6
2337 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2338 echo "configure:2339: checking for opendir in -lx" >&5
2339 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2343 ac_save_LIBS
="$LIBS"
2345 cat > conftest.
$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2348 /* Override any gcc2 internal prototype to avoid an error. */
2349 /* We use char because int might match the return type of a gcc2
2350 builtin and then its argument prototype would still apply. */
2357 if { (eval echo configure
:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2359 eval "ac_cv_lib_$ac_lib_var=yes"
2361 echo "configure: failed program was:" >&5
2362 cat conftest.
$ac_ext >&5
2364 eval "ac_cv_lib_$ac_lib_var=no"
2367 LIBS
="$ac_save_LIBS"
2370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2371 echo "$ac_t""yes" 1>&6
2374 echo "$ac_t""no" 1>&6
2379 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2380 echo "configure:2381: checking for ANSI C header files" >&5
2381 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2384 cat > conftest.
$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2392 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2393 { (eval echo configure
:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2394 ac_err
=`grep -v '^ *+' conftest.out`
2395 if test -z "$ac_err"; then
2397 ac_cv_header_stdc
=yes
2400 echo "configure: failed program was:" >&5
2401 cat conftest.
$ac_ext >&5
2403 ac_cv_header_stdc
=no
2407 if test $ac_cv_header_stdc = yes; then
2408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2409 cat > conftest.
$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2415 egrep "memchr" >/dev
/null
2>&1; then
2419 ac_cv_header_stdc
=no
2425 if test $ac_cv_header_stdc = yes; then
2426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2427 cat > conftest.
$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2433 egrep "free" >/dev
/null
2>&1; then
2437 ac_cv_header_stdc
=no
2443 if test $ac_cv_header_stdc = yes; then
2444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2445 if test "$cross_compiling" = yes; then
2448 cat > conftest.
$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2452 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2453 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2455 int main () { int i; for (i = 0; i < 256; i++)
2456 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2460 if { (eval echo configure
:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2464 echo "configure: failed program was:" >&5
2465 cat conftest.
$ac_ext >&5
2467 ac_cv_header_stdc
=no
2475 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2476 if test $ac_cv_header_stdc = yes; then
2477 cat >> confdefs.h
<<\EOF
2478 #define STDC_HEADERS 1
2483 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2484 echo "configure:2485: checking for sys/wait.h that is POSIX.1 compatible" >&5
2485 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2488 cat > conftest.
$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2491 #include <sys/types.h>
2492 #include <sys/wait.h>
2494 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2497 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2502 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2505 if { (eval echo configure
:2506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2507 ac_cv_header_sys_wait_h
=yes
2509 echo "configure: failed program was:" >&5
2510 cat conftest.
$ac_ext >&5
2512 ac_cv_header_sys_wait_h
=no
2517 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2518 if test $ac_cv_header_sys_wait_h = yes; then
2519 cat >> confdefs.h
<<\EOF
2520 #define HAVE_SYS_WAIT_H 1
2525 for ac_hdr
in fcntl.h
2527 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2529 echo "configure:2530: checking for $ac_hdr" >&5
2530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2533 cat > conftest.
$ac_ext <<EOF
2534 #line 2535 "configure"
2535 #include "confdefs.h"
2538 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2539 { (eval echo configure
:2540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2540 ac_err
=`grep -v '^ *+' conftest.out`
2541 if test -z "$ac_err"; then
2543 eval "ac_cv_header_$ac_safe=yes"
2546 echo "configure: failed program was:" >&5
2547 cat conftest.
$ac_ext >&5
2549 eval "ac_cv_header_$ac_safe=no"
2553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2554 echo "$ac_t""yes" 1>&6
2555 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2556 cat >> confdefs.h
<<EOF
2557 #define $ac_tr_hdr 1
2561 echo "$ac_t""no" 1>&6
2565 for ac_hdr
in limits.h
2567 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2568 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2569 echo "configure:2570: checking for $ac_hdr" >&5
2570 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2573 cat > conftest.
$ac_ext <<EOF
2574 #line 2575 "configure"
2575 #include "confdefs.h"
2578 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2579 { (eval echo configure
:2580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2580 ac_err
=`grep -v '^ *+' conftest.out`
2581 if test -z "$ac_err"; then
2583 eval "ac_cv_header_$ac_safe=yes"
2586 echo "configure: failed program was:" >&5
2587 cat conftest.
$ac_ext >&5
2589 eval "ac_cv_header_$ac_safe=no"
2593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2594 echo "$ac_t""yes" 1>&6
2595 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2596 cat >> confdefs.h
<<EOF
2597 #define $ac_tr_hdr 1
2601 echo "$ac_t""no" 1>&6
2605 for ac_hdr
in sys
/file.h
2607 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2609 echo "configure:2610: checking for $ac_hdr" >&5
2610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2613 cat > conftest.
$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2618 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2619 { (eval echo configure
:2620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2620 ac_err
=`grep -v '^ *+' conftest.out`
2621 if test -z "$ac_err"; then
2623 eval "ac_cv_header_$ac_safe=yes"
2626 echo "configure: failed program was:" >&5
2627 cat conftest.
$ac_ext >&5
2629 eval "ac_cv_header_$ac_safe=no"
2633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2634 echo "$ac_t""yes" 1>&6
2635 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2636 cat >> confdefs.h
<<EOF
2637 #define $ac_tr_hdr 1
2641 echo "$ac_t""no" 1>&6
2645 for ac_hdr
in sys
/time.h
2647 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2649 echo "configure:2650: checking for $ac_hdr" >&5
2650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2653 cat > conftest.
$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2658 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2659 { (eval echo configure
:2660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2660 ac_err
=`grep -v '^ *+' conftest.out`
2661 if test -z "$ac_err"; then
2663 eval "ac_cv_header_$ac_safe=yes"
2666 echo "configure: failed program was:" >&5
2667 cat conftest.
$ac_ext >&5
2669 eval "ac_cv_header_$ac_safe=no"
2673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2674 echo "$ac_t""yes" 1>&6
2675 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2676 cat >> confdefs.h
<<EOF
2677 #define $ac_tr_hdr 1
2681 echo "$ac_t""no" 1>&6
2685 for ac_hdr
in unistd.h
2687 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2689 echo "configure:2690: checking for $ac_hdr" >&5
2690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2693 cat > conftest.
$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2698 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2699 { (eval echo configure
:2700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2700 ac_err
=`grep -v '^ *+' conftest.out`
2701 if test -z "$ac_err"; then
2703 eval "ac_cv_header_$ac_safe=yes"
2706 echo "configure: failed program was:" >&5
2707 cat conftest.
$ac_ext >&5
2709 eval "ac_cv_header_$ac_safe=no"
2713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2714 echo "$ac_t""yes" 1>&6
2715 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2716 cat >> confdefs.h
<<EOF
2717 #define $ac_tr_hdr 1
2721 echo "$ac_t""no" 1>&6
2725 for ac_hdr
in fnmatch.h
2727 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2729 echo "configure:2730: checking for $ac_hdr" >&5
2730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2733 cat > conftest.
$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2738 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2739 { (eval echo configure
:2740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2740 ac_err
=`grep -v '^ *+' conftest.out`
2741 if test -z "$ac_err"; then
2743 eval "ac_cv_header_$ac_safe=yes"
2746 echo "configure: failed program was:" >&5
2747 cat conftest.
$ac_ext >&5
2749 eval "ac_cv_header_$ac_safe=no"
2753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2754 echo "$ac_t""yes" 1>&6
2755 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2756 cat >> confdefs.h
<<EOF
2757 #define $ac_tr_hdr 1
2761 echo "$ac_t""no" 1>&6
2765 for ac_hdr
in linux
/joystick.h
2767 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2769 echo "configure:2770: checking for $ac_hdr" >&5
2770 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2773 cat > conftest.
$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2778 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2779 { (eval echo configure
:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2780 ac_err
=`grep -v '^ *+' conftest.out`
2781 if test -z "$ac_err"; then
2783 eval "ac_cv_header_$ac_safe=yes"
2786 echo "configure: failed program was:" >&5
2787 cat conftest.
$ac_ext >&5
2789 eval "ac_cv_header_$ac_safe=no"
2793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2794 echo "$ac_t""yes" 1>&6
2795 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2796 cat >> confdefs.h
<<EOF
2797 #define $ac_tr_hdr 1
2801 echo "$ac_t""no" 1>&6
2806 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
2807 GTK_JOYSTICK
="gtk/joystick.cpp"
2811 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2812 echo "configure:2813: checking for vprintf" >&5
2813 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.
$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 /* System header to define __stub macros and hopefully few prototypes,
2820 which can conflict with char vprintf(); below. */
2822 /* Override any gcc2 internal prototype to avoid an error. */
2823 /* We use char because int might match the return type of a gcc2
2824 builtin and then its argument prototype would still apply. */
2829 /* The GNU C library defines this for functions which it implements
2830 to always fail with ENOSYS. Some functions are actually named
2831 something starting with __ and the normal name is an alias. */
2832 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2840 if { (eval echo configure
:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2842 eval "ac_cv_func_vprintf=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.
$ac_ext >&5
2847 eval "ac_cv_func_vprintf=no"
2852 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2853 echo "$ac_t""yes" 1>&6
2854 cat >> confdefs.h
<<\EOF
2855 #define HAVE_VPRINTF 1
2859 echo "$ac_t""no" 1>&6
2862 if test "$ac_cv_func_vprintf" != yes; then
2863 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2864 echo "configure:2865: checking for _doprnt" >&5
2865 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2868 cat > conftest.
$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2871 /* System header to define __stub macros and hopefully few prototypes,
2872 which can conflict with char _doprnt(); below. */
2874 /* Override any gcc2 internal prototype to avoid an error. */
2875 /* We use char because int might match the return type of a gcc2
2876 builtin and then its argument prototype would still apply. */
2881 /* The GNU C library defines this for functions which it implements
2882 to always fail with ENOSYS. Some functions are actually named
2883 something starting with __ and the normal name is an alias. */
2884 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2892 if { (eval echo configure
:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2894 eval "ac_cv_func__doprnt=yes"
2896 echo "configure: failed program was:" >&5
2897 cat conftest.
$ac_ext >&5
2899 eval "ac_cv_func__doprnt=no"
2904 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2905 echo "$ac_t""yes" 1>&6
2906 cat >> confdefs.h
<<\EOF
2907 #define HAVE_DOPRNT 1
2911 echo "$ac_t""no" 1>&6
2916 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
2917 echo "configure:2918: checking for vsnprintf" >&5
2918 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
2919 echo $ac_n "(cached) $ac_c" 1>&6
2921 cat > conftest.
$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2924 /* System header to define __stub macros and hopefully few prototypes,
2925 which can conflict with char vsnprintf(); below. */
2927 /* Override any gcc2 internal prototype to avoid an error. */
2928 /* We use char because int might match the return type of a gcc2
2929 builtin and then its argument prototype would still apply. */
2934 /* The GNU C library defines this for functions which it implements
2935 to always fail with ENOSYS. Some functions are actually named
2936 something starting with __ and the normal name is an alias. */
2937 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
2945 if { (eval echo configure
:2946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2947 eval "ac_cv_func_vsnprintf=yes"
2949 echo "configure: failed program was:" >&5
2950 cat conftest.
$ac_ext >&5
2952 eval "ac_cv_func_vsnprintf=no"
2957 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
2958 echo "$ac_t""yes" 1>&6
2961 echo "$ac_t""no" 1>&6
2967 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2968 ac_cpp
='$CXXCPP $CPPFLAGS'
2969 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2970 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2971 cross_compiling
=$ac_cv_prog_cxx_cross
2973 for ac_hdr
in iostream
2975 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2977 echo "configure:2978: checking for $ac_hdr" >&5
2978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2981 cat > conftest.
$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2986 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2987 { (eval echo configure
:2988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2988 ac_err
=`grep -v '^ *+' conftest.out`
2989 if test -z "$ac_err"; then
2991 eval "ac_cv_header_$ac_safe=yes"
2994 echo "configure: failed program was:" >&5
2995 cat conftest.
$ac_ext >&5
2997 eval "ac_cv_header_$ac_safe=no"
3001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3002 echo "$ac_t""yes" 1>&6
3003 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3004 cat >> confdefs.h
<<EOF
3005 #define $ac_tr_hdr 1
3009 echo "$ac_t""no" 1>&6
3013 if test "x$HAVE_IOSTREAM" = "x" ; then
3014 cat >> confdefs.h
<<\EOF
3015 #define wxUSE_IOSTREAMH 1
3020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3021 ac_cpp
='$CPP $CPPFLAGS'
3022 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3023 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3024 cross_compiling
=$ac_cv_prog_cc_cross
3027 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3028 echo "configure:3029: checking for uid_t in sys/types.h" >&5
3029 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 cat > conftest.
$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3035 #include <sys/types.h>
3037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3038 egrep "uid_t" >/dev
/null
2>&1; then
3040 ac_cv_type_uid_t
=yes
3049 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3050 if test $ac_cv_type_uid_t = no
; then
3051 cat >> confdefs.h
<<\EOF
3055 cat >> confdefs.h
<<\EOF
3061 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3062 echo "configure:3063: checking type of array argument to getgroups" >&5
3063 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 if test "$cross_compiling" = yes; then
3067 ac_cv_type_getgroups
=cross
3069 cat > conftest.
$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3073 /* Thanks to Mike Rendell for this test. */
3074 #include <sys/types.h>
3077 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3082 union { gid_t gval; long lval; } val;
3085 for (i = 0; i < NGID; i++)
3086 gidset[i] = val.gval;
3087 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3089 /* Exit non-zero if getgroups seems to require an array of ints. This
3090 happens when gid_t is short but getgroups modifies an array of ints. */
3091 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3095 if { (eval echo configure
:3096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3097 ac_cv_type_getgroups
=gid_t
3099 echo "configure: failed program was:" >&5
3100 cat conftest.
$ac_ext >&5
3102 ac_cv_type_getgroups
=int
3107 if test $ac_cv_type_getgroups = cross
; then
3108 cat > conftest.
$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3114 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3116 ac_cv_type_getgroups
=gid_t
3119 ac_cv_type_getgroups
=int
3126 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3127 cat >> confdefs.h
<<EOF
3128 #define GETGROUPS_T $ac_cv_type_getgroups
3132 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3133 echo "configure:3134: checking for mode_t" >&5
3134 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3135 echo $ac_n "(cached) $ac_c" 1>&6
3137 cat > conftest.
$ac_ext <<EOF
3138 #line 3139 "configure"
3139 #include "confdefs.h"
3140 #include <sys/types.h>
3146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3147 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3149 ac_cv_type_mode_t
=yes
3152 ac_cv_type_mode_t
=no
3157 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3158 if test $ac_cv_type_mode_t = no
; then
3159 cat >> confdefs.h
<<\EOF
3165 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3166 echo "configure:3167: checking for off_t" >&5
3167 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3170 cat > conftest.
$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3173 #include <sys/types.h>
3179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3182 ac_cv_type_off_t
=yes
3190 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3191 if test $ac_cv_type_off_t = no
; then
3192 cat >> confdefs.h
<<\EOF
3198 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3199 echo "configure:3200: checking for pid_t" >&5
3200 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 cat > conftest.
$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3206 #include <sys/types.h>
3212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3213 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3215 ac_cv_type_pid_t
=yes
3223 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3224 if test $ac_cv_type_pid_t = no
; then
3225 cat >> confdefs.h
<<\EOF
3231 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3232 echo "configure:3233: checking return type of signal handlers" >&5
3233 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.
$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 #include <sys/types.h>
3245 extern "C" void (*signal (int, void (*)(int)))(int);
3247 void (*signal ()) ();
3254 if { (eval echo configure
:3255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3256 ac_cv_type_signal
=void
3258 echo "configure: failed program was:" >&5
3259 cat conftest.
$ac_ext >&5
3261 ac_cv_type_signal
=int
3266 echo "$ac_t""$ac_cv_type_signal" 1>&6
3267 cat >> confdefs.h
<<EOF
3268 #define RETSIGTYPE $ac_cv_type_signal
3272 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3273 echo "configure:3274: checking for size_t" >&5
3274 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3277 cat > conftest.
$ac_ext <<EOF
3278 #line 3279 "configure"
3279 #include "confdefs.h"
3280 #include <sys/types.h>
3286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3287 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3289 ac_cv_type_size_t
=yes
3292 ac_cv_type_size_t
=no
3297 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3298 if test $ac_cv_type_size_t = no
; then
3299 cat >> confdefs.h
<<\EOF
3300 #define size_t unsigned
3305 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3306 echo "configure:3307: checking for uid_t in sys/types.h" >&5
3307 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3308 echo $ac_n "(cached) $ac_c" 1>&6
3310 cat > conftest.
$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 #include <sys/types.h>
3315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3316 egrep "uid_t" >/dev
/null
2>&1; then
3318 ac_cv_type_uid_t
=yes
3327 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3328 if test $ac_cv_type_uid_t = no
; then
3329 cat >> confdefs.h
<<\EOF
3333 cat >> confdefs.h
<<\EOF
3341 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3342 echo "configure:3343: checking whether stat file-mode macros are broken" >&5
3343 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3344 echo $ac_n "(cached) $ac_c" 1>&6
3346 cat > conftest.
$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 #include <sys/types.h>
3350 #include <sys/stat.h>
3352 #if defined(S_ISBLK) && defined(S_IFDIR)
3353 # if S_ISBLK (S_IFDIR)
3358 #if defined(S_ISBLK) && defined(S_IFCHR)
3359 # if S_ISBLK (S_IFCHR)
3364 #if defined(S_ISLNK) && defined(S_IFREG)
3365 # if S_ISLNK (S_IFREG)
3370 #if defined(S_ISSOCK) && defined(S_IFREG)
3371 # if S_ISSOCK (S_IFREG)
3377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3378 egrep "You lose" >/dev
/null
2>&1; then
3380 ac_cv_header_stat_broken
=yes
3383 ac_cv_header_stat_broken
=no
3389 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3390 if test $ac_cv_header_stat_broken = yes; then
3391 cat >> confdefs.h
<<\EOF
3392 #define STAT_MACROS_BROKEN 1
3397 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3398 echo "configure:3399: checking whether time.h and sys/time.h may both be included" >&5
3399 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3400 echo $ac_n "(cached) $ac_c" 1>&6
3402 cat > conftest.
$ac_ext <<EOF
3403 #line 3404 "configure"
3404 #include "confdefs.h"
3405 #include <sys/types.h>
3406 #include <sys/time.h>
3412 if { (eval echo configure
:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3414 ac_cv_header_time
=yes
3416 echo "configure: failed program was:" >&5
3417 cat conftest.
$ac_ext >&5
3419 ac_cv_header_time
=no
3424 echo "$ac_t""$ac_cv_header_time" 1>&6
3425 if test $ac_cv_header_time = yes; then
3426 cat >> confdefs.h
<<\EOF
3427 #define TIME_WITH_SYS_TIME 1
3432 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3433 echo "configure:3434: checking for st_blksize in struct stat" >&5
3434 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3437 cat > conftest.
$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <sys/types.h>
3441 #include <sys/stat.h>
3443 struct stat s; s.st_blksize;
3446 if { (eval echo configure
:3447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3448 ac_cv_struct_st_blksize
=yes
3450 echo "configure: failed program was:" >&5
3451 cat conftest.
$ac_ext >&5
3453 ac_cv_struct_st_blksize
=no
3458 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3459 if test $ac_cv_struct_st_blksize = yes; then
3460 cat >> confdefs.h
<<\EOF
3461 #define HAVE_ST_BLKSIZE 1
3466 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3467 echo "configure:3468: checking for st_blocks in struct stat" >&5
3468 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3469 echo $ac_n "(cached) $ac_c" 1>&6
3471 cat > conftest.
$ac_ext <<EOF
3472 #line 3473 "configure"
3473 #include "confdefs.h"
3474 #include <sys/types.h>
3475 #include <sys/stat.h>
3477 struct stat s; s.st_blocks;
3480 if { (eval echo configure
:3481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3482 ac_cv_struct_st_blocks
=yes
3484 echo "configure: failed program was:" >&5
3485 cat conftest.
$ac_ext >&5
3487 ac_cv_struct_st_blocks
=no
3492 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3493 if test $ac_cv_struct_st_blocks = yes; then
3494 cat >> confdefs.h
<<\EOF
3495 #define HAVE_ST_BLOCKS 1
3499 LIBOBJS
="$LIBOBJS fileblocks.o"
3502 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3503 echo "configure:3504: checking for st_rdev in struct stat" >&5
3504 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3507 cat > conftest.
$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 #include <sys/types.h>
3511 #include <sys/stat.h>
3513 struct stat s; s.st_rdev;
3516 if { (eval echo configure
:3517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3518 ac_cv_struct_st_rdev
=yes
3520 echo "configure: failed program was:" >&5
3521 cat conftest.
$ac_ext >&5
3523 ac_cv_struct_st_rdev
=no
3528 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3529 if test $ac_cv_struct_st_rdev = yes; then
3530 cat >> confdefs.h
<<\EOF
3531 #define HAVE_ST_RDEV 1
3536 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3537 echo "configure:3538: checking whether struct tm is in sys/time.h or time.h" >&5
3538 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 cat > conftest.
$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 #include <sys/types.h>
3547 struct tm *tp; tp->tm_sec;
3550 if { (eval echo configure
:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3552 ac_cv_struct_tm
=time.h
3554 echo "configure: failed program was:" >&5
3555 cat conftest.
$ac_ext >&5
3557 ac_cv_struct_tm
=sys
/time.h
3562 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3563 if test $ac_cv_struct_tm = sys
/time.h
; then
3564 cat >> confdefs.h
<<\EOF
3565 #define TM_IN_SYS_TIME 1
3570 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3571 echo "configure:3572: checking for tm_zone in struct tm" >&5
3572 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 cat > conftest.
$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <sys/types.h>
3579 #include <$ac_cv_struct_tm>
3581 struct tm tm; tm.tm_zone;
3584 if { (eval echo configure
:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3586 ac_cv_struct_tm_zone
=yes
3588 echo "configure: failed program was:" >&5
3589 cat conftest.
$ac_ext >&5
3591 ac_cv_struct_tm_zone
=no
3596 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3597 if test "$ac_cv_struct_tm_zone" = yes; then
3598 cat >> confdefs.h
<<\EOF
3599 #define HAVE_TM_ZONE 1
3603 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3604 echo "configure:3605: checking for tzname" >&5
3605 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3608 cat > conftest.
$ac_ext <<EOF
3609 #line 3610 "configure"
3610 #include "confdefs.h"
3612 #ifndef tzname /* For SGI. */
3613 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3619 if { (eval echo configure
:3620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3621 ac_cv_var_tzname
=yes
3623 echo "configure: failed program was:" >&5
3624 cat conftest.
$ac_ext >&5
3631 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3632 if test $ac_cv_var_tzname = yes; then
3633 cat >> confdefs.h
<<\EOF
3634 #define HAVE_TZNAME 1
3642 echo $ac_n "checking for working const""... $ac_c" 1>&6
3643 echo "configure:3644: checking for working const" >&5
3644 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3647 cat > conftest.
$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3653 /* Ultrix mips cc rejects this. */
3654 typedef int charset[2]; const charset x;
3655 /* SunOS 4.1.1 cc rejects this. */
3656 char const *const *ccp;
3658 /* NEC SVR4.0.2 mips cc rejects this. */
3659 struct point {int x, y;};
3660 static struct point const zero = {0,0};
3661 /* AIX XL C 1.02.0.0 rejects this.
3662 It does not let you subtract one const X* pointer from another in an arm
3663 of an if-expression whose if-part is not a constant expression */
3664 const char *g = "string";
3665 ccp = &g + (g ? g-g : 0);
3666 /* HPUX 7.0 cc rejects these. */
3669 ccp = (char const *const *) p;
3670 { /* SCO 3.2v4 cc rejects this. */
3672 char const *s = 0 ? (char *) 0 : (char const *) 0;
3676 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3678 const int *foo = &x[0];
3681 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3682 typedef const int *iptr;
3686 { /* AIX XL C 1.02.0.0 rejects this saying
3687 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3688 struct s { int j; const int *ap[3]; };
3689 struct s *b; b->j = 5;
3691 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3697 if { (eval echo configure
:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3701 echo "configure: failed program was:" >&5
3702 cat conftest.
$ac_ext >&5
3709 echo "$ac_t""$ac_cv_c_const" 1>&6
3710 if test $ac_cv_c_const = no
; then
3711 cat >> confdefs.h
<<\EOF
3717 echo $ac_n "checking for inline""... $ac_c" 1>&6
3718 echo "configure:3719: checking for inline" >&5
3719 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3720 echo $ac_n "(cached) $ac_c" 1>&6
3723 for ac_kw
in inline __inline__ __inline
; do
3724 cat > conftest.
$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3732 if { (eval echo configure
:3733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3734 ac_cv_c_inline
=$ac_kw; break
3736 echo "configure: failed program was:" >&5
3737 cat conftest.
$ac_ext >&5
3744 echo "$ac_t""$ac_cv_c_inline" 1>&6
3745 case "$ac_cv_c_inline" in
3747 no
) cat >> confdefs.h
<<\EOF
3751 *) cat >> confdefs.h
<<EOF
3752 #define inline $ac_cv_c_inline
3757 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3758 echo "configure:3759: checking whether char is unsigned" >&5
3759 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3762 if test "$GCC" = yes; then
3763 # GCC predefines this symbol on systems where it applies.
3764 cat > conftest.
$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 #ifdef __CHAR_UNSIGNED__
3772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3773 egrep "yes" >/dev
/null
2>&1; then
3775 ac_cv_c_char_unsigned
=yes
3778 ac_cv_c_char_unsigned
=no
3783 if test "$cross_compiling" = yes; then
3784 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3786 cat > conftest.
$ac_ext <<EOF
3787 #line 3788 "configure"
3788 #include "confdefs.h"
3789 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3790 #if !defined(__STDC__) || __STDC__ != 1
3794 volatile char c = 255; exit(c < 0);
3797 if { (eval echo configure
:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3799 ac_cv_c_char_unsigned
=yes
3801 echo "configure: failed program was:" >&5
3802 cat conftest.
$ac_ext >&5
3804 ac_cv_c_char_unsigned
=no
3812 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3813 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3814 cat >> confdefs.h
<<\EOF
3815 #define __CHAR_UNSIGNED__ 1
3820 echo $ac_n "checking for long double""... $ac_c" 1>&6
3821 echo "configure:3822: checking for long double" >&5
3822 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3823 echo $ac_n "(cached) $ac_c" 1>&6
3825 if test "$GCC" = yes; then
3826 ac_cv_c_long_double
=yes
3828 if test "$cross_compiling" = yes; then
3829 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3831 cat > conftest.
$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3835 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
3836 long double foo = 0.0;
3837 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3838 exit(sizeof(long double) < sizeof(double)); }
3840 if { (eval echo configure
:3841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3842 ac_cv_c_long_double
=yes
3844 echo "configure: failed program was:" >&5
3845 cat conftest.
$ac_ext >&5
3847 ac_cv_c_long_double
=no
3855 echo "$ac_t""$ac_cv_c_long_double" 1>&6
3856 if test $ac_cv_c_long_double = yes; then
3857 cat >> confdefs.h
<<\EOF
3858 #define HAVE_LONG_DOUBLE 1
3864 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3865 echo "configure:3866: checking whether byte ordering is bigendian" >&5
3866 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 ac_cv_c_bigendian
=unknown
3870 # See if sys/param.h defines the BYTE_ORDER macro.
3871 cat > conftest.
$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 #include <sys/types.h>
3875 #include <sys/param.h>
3878 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3883 if { (eval echo configure
:3884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3885 # It does; now see whether it defined to BIG_ENDIAN or not.
3886 cat > conftest.
$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 #include <sys/types.h>
3890 #include <sys/param.h>
3893 #if BYTE_ORDER != BIG_ENDIAN
3898 if { (eval echo configure
:3899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3900 ac_cv_c_bigendian
=yes
3902 echo "configure: failed program was:" >&5
3903 cat conftest.
$ac_ext >&5
3905 ac_cv_c_bigendian
=no
3909 echo "configure: failed program was:" >&5
3910 cat conftest.
$ac_ext >&5
3913 if test $ac_cv_c_bigendian = unknown
; then
3914 if test "$cross_compiling" = yes; then
3915 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3917 cat > conftest.
$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3921 /* Are we little or big endian? From Harbison&Steele. */
3925 char c[sizeof (long)];
3928 exit (u.c[sizeof (long) - 1] == 1);
3931 if { (eval echo configure
:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3933 ac_cv_c_bigendian
=no
3935 echo "configure: failed program was:" >&5
3936 cat conftest.
$ac_ext >&5
3938 ac_cv_c_bigendian
=yes
3946 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3947 if test $ac_cv_c_bigendian = yes; then
3948 cat >> confdefs.h
<<\EOF
3949 #define WORDS_BIGENDIAN 1
3955 echo $ac_n "checking size of int *""... $ac_c" 1>&6
3956 echo "configure:3957: checking size of int *" >&5
3957 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
3958 echo $ac_n "(cached) $ac_c" 1>&6
3960 if test "$cross_compiling" = yes; then
3961 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3963 cat > conftest.
$ac_ext <<EOF
3964 #line 3965 "configure"
3965 #include "confdefs.h"
3969 FILE *f=fopen("conftestval", "w");
3971 fprintf(f, "%d\n", sizeof(int *));
3975 if { (eval echo configure
:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3977 ac_cv_sizeof_int_p
=`cat conftestval`
3979 echo "configure: failed program was:" >&5
3980 cat conftest.
$ac_ext >&5
3982 ac_cv_sizeof_int_p
=0
3988 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
3989 cat >> confdefs.h
<<EOF
3990 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
3994 echo $ac_n "checking size of int""... $ac_c" 1>&6
3995 echo "configure:3996: checking size of int" >&5
3996 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3999 if test "$cross_compiling" = yes; then
4000 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4002 cat > conftest.
$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4008 FILE *f=fopen("conftestval", "w");
4010 fprintf(f, "%d\n", sizeof(int));
4014 if { (eval echo configure
:4015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4016 ac_cv_sizeof_int
=`cat conftestval`
4018 echo "configure: failed program was:" >&5
4019 cat conftest.
$ac_ext >&5
4027 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4028 cat >> confdefs.h
<<EOF
4029 #define SIZEOF_INT $ac_cv_sizeof_int
4033 echo $ac_n "checking size of long""... $ac_c" 1>&6
4034 echo "configure:4035: checking size of long" >&5
4035 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4036 echo $ac_n "(cached) $ac_c" 1>&6
4038 if test "$cross_compiling" = yes; then
4039 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4041 cat > conftest.
$ac_ext <<EOF
4042 #line 4043 "configure"
4043 #include "confdefs.h"
4047 FILE *f=fopen("conftestval", "w");
4049 fprintf(f, "%d\n", sizeof(long));
4053 if { (eval echo configure
:4054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4055 ac_cv_sizeof_long
=`cat conftestval`
4057 echo "configure: failed program was:" >&5
4058 cat conftest.
$ac_ext >&5
4066 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4067 cat >> confdefs.h
<<EOF
4068 #define SIZEOF_LONG $ac_cv_sizeof_long
4076 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4077 echo "configure:4078: checking for long file names" >&5
4078 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
4079 echo $ac_n "(cached) $ac_c" 1>&6
4081 ac_cv_sys_long_file_names
=yes
4082 # Test for long file names in all the places we know might matter:
4083 # . the current directory, where building will happen
4084 # $prefix/lib where we will be installing things
4085 # $exec_prefix/lib likewise
4086 # eval it to expand exec_prefix.
4087 # $TMPDIR if set, where it might want to write temporary files
4088 # if $TMPDIR is not set:
4089 # /tmp where it might want to write temporary files
4092 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4093 ac_tmpdirs
="$TMPDIR"
4095 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
4097 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4098 test -d $ac_dir || continue
4099 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4100 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
4101 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
4102 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
4103 if test ! -f $ac_dir/conftest9012345
|| test "$val" != 1; then
4104 ac_cv_sys_long_file_names
=no
4105 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4108 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4112 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4113 if test $ac_cv_sys_long_file_names = yes; then
4114 cat >> confdefs.h
<<\EOF
4115 #define HAVE_LONG_FILE_NAMES 1
4123 for ac_prog
in 'bison -y' byacc
4125 # Extract the first word of "$ac_prog", so it can be a program name with args.
4126 set dummy
$ac_prog; ac_word
=$2
4127 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4128 echo "configure:4129: checking for $ac_word" >&5
4129 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4132 if test -n "$YACC"; then
4133 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4135 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4136 for ac_dir
in $PATH; do
4137 test -z "$ac_dir" && ac_dir
=.
4138 if test -f $ac_dir/$ac_word; then
4139 ac_cv_prog_YACC
="$ac_prog"
4146 YACC
="$ac_cv_prog_YACC"
4147 if test -n "$YACC"; then
4148 echo "$ac_t""$YACC" 1>&6
4150 echo "$ac_t""no" 1>&6
4153 test -n "$YACC" && break
4155 test -n "$YACC" || YACC
="yacc"
4158 # Extract the first word of "flex", so it can be a program name with args.
4159 set dummy flex
; ac_word
=$2
4160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4161 echo "configure:4162: checking for $ac_word" >&5
4162 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4165 if test -n "$LEX"; then
4166 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4168 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4169 for ac_dir
in $PATH; do
4170 test -z "$ac_dir" && ac_dir
=.
4171 if test -f $ac_dir/$ac_word; then
4172 ac_cv_prog_LEX
="flex"
4177 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4180 LEX
="$ac_cv_prog_LEX"
4181 if test -n "$LEX"; then
4182 echo "$ac_t""$LEX" 1>&6
4184 echo "$ac_t""no" 1>&6
4187 if test -z "$LEXLIB"
4193 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4194 echo "configure:4195: checking for yywrap in -l$ac_lib" >&5
4195 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4199 ac_save_LIBS
="$LIBS"
4200 LIBS
="-l$ac_lib $LIBS"
4201 cat > conftest.
$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4204 /* Override any gcc2 internal prototype to avoid an error. */
4205 /* We use char because int might match the return type of a gcc2
4206 builtin and then its argument prototype would still apply. */
4213 if { (eval echo configure
:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4215 eval "ac_cv_lib_$ac_lib_var=yes"
4217 echo "configure: failed program was:" >&5
4218 cat conftest.
$ac_ext >&5
4220 eval "ac_cv_lib_$ac_lib_var=no"
4223 LIBS
="$ac_save_LIBS"
4226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4227 echo "$ac_t""yes" 1>&6
4230 echo "$ac_t""no" 1>&6
4235 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4236 echo "configure:4237: checking lex output file root" >&5
4237 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 # The minimal lex program is just a single line: %%. But some broken lexes
4241 # (Solaris, I think it was) want two %% lines, so accommodate them.
4244 if test -f lex.yy.c
; then
4245 ac_cv_prog_lex_root
=lex.yy
4246 elif test -f lexyy.c
; then
4247 ac_cv_prog_lex_root
=lexyy
4249 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4253 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4254 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4256 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4257 echo "configure:4258: checking whether yytext is a pointer" >&5
4258 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 # POSIX says lex can declare yytext either as a pointer or an array; the
4262 # default is implementation-dependent. Figure out which it is, since
4263 # not all implementations provide the %pointer and %array declarations.
4264 ac_cv_prog_lex_yytext_pointer
=no
4265 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4266 ac_save_LIBS
="$LIBS"
4267 LIBS
="$LIBS $LEXLIB"
4268 cat > conftest.
$ac_ext <<EOF
4269 #line 4270 "configure"
4270 #include "confdefs.h"
4271 `cat $LEX_OUTPUT_ROOT.c`
4276 if { (eval echo configure
:4277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4278 ac_cv_prog_lex_yytext_pointer
=yes
4280 echo "configure: failed program was:" >&5
4281 cat conftest.
$ac_ext >&5
4284 LIBS
="$ac_save_LIBS"
4285 rm -f "${LEX_OUTPUT_ROOT}.c"
4289 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4290 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4291 cat >> confdefs.h
<<\EOF
4292 #define YYTEXT_POINTER 1
4299 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
4300 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
4304 # Make sure we can run config.sub.
4305 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
4306 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
4309 echo $ac_n "checking host system type""... $ac_c" 1>&6
4310 echo "configure:4311: checking host system type" >&5
4313 case "$host_alias" in
4317 if host_alias
=`$ac_config_guess`; then :
4318 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
4320 *) host_alias
=$nonopt ;;
4324 host=`$ac_config_sub $host_alias`
4325 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4326 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4327 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4328 echo "$ac_t""$host" 1>&6
4331 configuration
=$host_alias
4353 cat >> confdefs.h
<<\EOF
4357 case "${canonical}" in
4360 cat >> confdefs.h
<<\EOF
4367 cat >> confdefs.h
<<\EOF
4372 if test "x$TMP" = "xalpha"
4375 cat >> confdefs.h
<<\EOF
4381 *-*-irix5* | *-*-irix6* )
4384 cat >> confdefs.h
<<\EOF
4388 cat >> confdefs.h
<<\EOF
4397 cat >> confdefs.h
<<\EOF
4401 cat >> confdefs.h
<<\EOF
4402 #define __SOLARIS__ 1
4405 cat >> confdefs.h
<<\EOF
4414 cat >> confdefs.h
<<\EOF
4418 cat >> confdefs.h
<<\EOF
4422 cat >> confdefs.h
<<\EOF
4427 *-*-freebsd* | *-*-netbsd*)
4430 cat >> confdefs.h
<<\EOF
4431 #define __FREEBSD__ 1
4434 cat >> confdefs.h
<<\EOF
4442 cat >> confdefs.h
<<\EOF
4446 cat >> confdefs.h
<<\EOF
4454 cat >> confdefs.h
<<\EOF
4458 cat >> confdefs.h
<<\EOF
4466 cat >> confdefs.h
<<\EOF
4470 cat >> confdefs.h
<<\EOF
4479 cat >> confdefs.h
<<\EOF
4483 cat >> confdefs.h
<<\EOF
4487 cat >> confdefs.h
<<\EOF
4493 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
4498 rm -f ${OSTYPE}.system.cache.tmp
4499 touch ${OSTYPE}.system.cache.tmp
4500 touch ${OSTYPE}.system.cache
4505 DEFAULT_wxUSE_MOTIF
=0
4507 DEFAULT_wxUSE_THREADS
=0
4509 DEFAULT_wxUSE_SHARED
=1
4510 DEFAULT_wxUSE_OPTIMISE
=1
4511 DEFAULT_wxUSE_PROFILE
=0
4512 DEFAULT_wxUSE_DEBUG_FLAG
=0
4513 DEFAULT_wxUSE_DEBUG_INFO
=0
4514 DEFAULT_wxUSE_MEM_TRACING
=0
4515 DEFAULT_wxUSE_DMALLOC
=0
4516 DEFAULT_wxUSE_APPLE_IEEE
=1
4517 DEFAULT_wxUSE_IOSTREAMH
=1
4519 DEFAULT_wxUSE_ZLIB
=1
4520 DEFAULT_wxUSE_LIBPNG
=1
4521 DEFAULT_wxUSE_ODBC
=1
4523 DEFAULT_wxUSE_TIMEDATE
=1
4524 DEFAULT_wxUSE_INTL
=1
4525 DEFAULT_wxUSE_CONFIG
=1
4526 DEFAULT_wxUSE_STREAMS
=1
4527 DEFAULT_wxUSE_SERIAL
=1
4529 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
=1
4530 DEFAULT_WX_NORMALIZED_PS_FONTS
=1
4531 DEFAULT_wxUSE_POSTSCRIPT
=1
4534 DEFAULT_wxUSE_RESOURCES
=1
4535 DEFAULT_wxUSE_CLIPBOARD
=1
4536 DEFAULT_wxUSE_DRAG_AND_DROP
=1
4538 DEFAULT_wxUSE_MDI_ARCHITECTURE
=1
4539 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
=1
4540 DEFAULT_wxUSE_PRINTING_ARCHITECTURE
=1
4542 DEFAULT_wxUSE_PROLOGIO
=1
4543 DEFAULT_wxUSE_WX_RESOURCES
=1
4545 DEFAULT_wxUSE_HELP
=1
4547 DEFAULT_wxUSE_UNICODE
=1
4548 DEFAULT_wxUSE_WCSRTOMBS
=0
4552 echo $ac_n "checking "for gtk
"""... $ac_c" 1>&6
4553 echo "configure:4554: checking "for gtk
"" >&5
4554 # Check whether --with-gtk or --without-gtk was given.
4555 if test "${with_gtk+set}" = set; then
4557 if test "x$with_gtk" = xyes
; then
4558 ac_cv_use_gtk
='wxUSE_GTK="1"'
4560 ac_cv_use_gtk
='wxUSE_GTK="0"'
4564 LINE
=`grep "wxUSE_GTK" ${OSTYPE}.system.cache`
4565 if test "x$LINE" != x
; then
4566 eval "DEFAULT_$LINE"
4568 ac_cv_use_gtk
='wxUSE_GTK='$DEFAULT_wxUSE_GTK
4572 eval "$ac_cv_use_gtk"
4573 echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp
4574 if test "$wxUSE_GTK" = 1; then
4575 echo "$ac_t""yes" 1>&6
4577 echo "$ac_t""no" 1>&6
4582 echo $ac_n "checking "for qt
"""... $ac_c" 1>&6
4583 echo "configure:4584: checking "for qt
"" >&5
4584 # Check whether --with-qt or --without-qt was given.
4585 if test "${with_qt+set}" = set; then
4587 if test "x$with_qt" = xyes
; then
4588 ac_cv_use_qt
='wxUSE_QT="1"'
4590 ac_cv_use_qt
='wxUSE_QT="0"'
4594 LINE
=`grep "wxUSE_QT" ${OSTYPE}.system.cache`
4595 if test "x$LINE" != x
; then
4596 eval "DEFAULT_$LINE"
4598 ac_cv_use_qt
='wxUSE_QT='$DEFAULT_wxUSE_QT
4602 eval "$ac_cv_use_qt"
4603 echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp
4604 if test "$wxUSE_QT" = 1; then
4605 echo "$ac_t""yes" 1>&6
4607 echo "$ac_t""no" 1>&6
4612 echo $ac_n "checking "for motif
"""... $ac_c" 1>&6
4613 echo "configure:4614: checking "for motif
"" >&5
4614 # Check whether --with-motif or --without-motif was given.
4615 if test "${with_motif+set}" = set; then
4616 withval
="$with_motif"
4617 if test "x$with_motif" = xyes
; then
4618 ac_cv_use_motif
='wxUSE_MOTIF="1"'
4620 ac_cv_use_motif
='wxUSE_MOTIF="0"'
4624 LINE
=`grep "wxUSE_MOTIF" ${OSTYPE}.system.cache`
4625 if test "x$LINE" != x
; then
4626 eval "DEFAULT_$LINE"
4628 ac_cv_use_motif
='wxUSE_MOTIF='$DEFAULT_wxUSE_MOTIF
4632 eval "$ac_cv_use_motif"
4633 echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp
4634 if test "$wxUSE_MOTIF" = 1; then
4635 echo "$ac_t""yes" 1>&6
4637 echo "$ac_t""no" 1>&6
4643 echo $ac_n "checking "for shared
"""... $ac_c" 1>&6
4644 echo "configure:4645: checking "for shared
"" >&5
4645 # Check whether --with-shared or --without-shared was given.
4646 if test "${with_shared+set}" = set; then
4647 withval
="$with_shared"
4648 if test "x$with_shared" = xyes
; then
4649 ac_cv_use_shared
='wxUSE_SHARED="1"'
4651 ac_cv_use_shared
='wxUSE_SHARED="0"'
4655 LINE
=`grep "wxUSE_SHARED" ${OSTYPE}.system.cache`
4656 if test "x$LINE" != x
; then
4657 eval "DEFAULT_$LINE"
4659 ac_cv_use_shared
='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
4663 eval "$ac_cv_use_shared"
4664 echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
4665 if test "$wxUSE_SHARED" = 1; then
4666 echo "$ac_t""yes" 1>&6
4668 echo "$ac_t""no" 1>&6
4673 echo $ac_n "checking "for optimise
"""... $ac_c" 1>&6
4674 echo "configure:4675: checking "for optimise
"" >&5
4675 # Check whether --with-optimise or --without-optimise was given.
4676 if test "${with_optimise+set}" = set; then
4677 withval
="$with_optimise"
4678 if test "x$with_optimise" = xyes
; then
4679 ac_cv_use_optimise
='wxUSE_OPTIMISE="1"'
4681 ac_cv_use_optimise
='wxUSE_OPTIMISE="0"'
4685 LINE
=`grep "wxUSE_OPTIMISE" ${OSTYPE}.system.cache`
4686 if test "x$LINE" != x
; then
4687 eval "DEFAULT_$LINE"
4689 ac_cv_use_optimise
='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
4693 eval "$ac_cv_use_optimise"
4694 echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
4695 if test "$wxUSE_OPTIMISE" = 1; then
4696 echo "$ac_t""yes" 1>&6
4698 echo "$ac_t""no" 1>&6
4703 echo $ac_n "checking "for debug_flag
"""... $ac_c" 1>&6
4704 echo "configure:4705: checking "for debug_flag
"" >&5
4705 # Check whether --with-debug_flag or --without-debug_flag was given.
4706 if test "${with_debug_flag+set}" = set; then
4707 withval
="$with_debug_flag"
4708 if test "x$with_debug_flag" = xyes
; then
4709 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="1"'
4711 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="0"'
4715 LINE
=`grep "wxUSE_DEBUG_FLAG" ${OSTYPE}.system.cache`
4716 if test "x$LINE" != x
; then
4717 eval "DEFAULT_$LINE"
4719 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4723 eval "$ac_cv_use_debug_flag"
4724 echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
4725 if test "$wxUSE_DEBUG_FLAG" = 1; then
4726 echo "$ac_t""yes" 1>&6
4728 echo "$ac_t""no" 1>&6
4733 echo $ac_n "checking "for debug_info
"""... $ac_c" 1>&6
4734 echo "configure:4735: checking "for debug_info
"" >&5
4735 # Check whether --with-debug_info or --without-debug_info was given.
4736 if test "${with_debug_info+set}" = set; then
4737 withval
="$with_debug_info"
4738 if test "x$with_debug_info" = xyes
; then
4739 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="1"'
4741 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="0"'
4745 LINE
=`grep "wxUSE_DEBUG_INFO" ${OSTYPE}.system.cache`
4746 if test "x$LINE" != x
; then
4747 eval "DEFAULT_$LINE"
4749 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4753 eval "$ac_cv_use_debug_info"
4754 echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
4755 if test "$wxUSE_DEBUG_INFO" = 1; then
4756 echo "$ac_t""yes" 1>&6
4758 echo "$ac_t""no" 1>&6
4763 echo $ac_n "checking "for debug_gdb
"""... $ac_c" 1>&6
4764 echo "configure:4765: checking "for debug_gdb
"" >&5
4765 # Check whether --with-debug_gdb or --without-debug_gdb was given.
4766 if test "${with_debug_gdb+set}" = set; then
4767 withval
="$with_debug_gdb"
4768 if test "x$with_debug_gdb" = xyes
; then
4769 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="1"'
4771 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="0"'
4775 LINE
=`grep "wxUSE_DEBUG_GDB" ${OSTYPE}.system.cache`
4776 if test "x$LINE" != x
; then
4777 eval "DEFAULT_$LINE"
4779 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4783 eval "$ac_cv_use_debug_gdb"
4784 echo $ac_cv_use_debug_gdb >> ${OSTYPE}.system.cache.tmp
4785 if test "$wxUSE_DEBUG_GDB" = 1; then
4786 echo "$ac_t""yes" 1>&6
4788 echo "$ac_t""no" 1>&6
4793 echo $ac_n "checking "for mem_tracing
"""... $ac_c" 1>&6
4794 echo "configure:4795: checking "for mem_tracing
"" >&5
4795 # Check whether --with-mem_tracing or --without-mem_tracing was given.
4796 if test "${with_mem_tracing+set}" = set; then
4797 withval
="$with_mem_tracing"
4798 if test "x$with_mem_tracing" = xyes
; then
4799 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="1"'
4801 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="0"'
4805 LINE
=`grep "wxUSE_MEM_TRACING" ${OSTYPE}.system.cache`
4806 if test "x$LINE" != x
; then
4807 eval "DEFAULT_$LINE"
4809 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4813 eval "$ac_cv_use_mem_tracing"
4814 echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
4815 if test "$wxUSE_MEM_TRACING" = 1; then
4816 echo "$ac_t""yes" 1>&6
4818 echo "$ac_t""no" 1>&6
4823 echo $ac_n "checking "for dmalloc
"""... $ac_c" 1>&6
4824 echo "configure:4825: checking "for dmalloc
"" >&5
4825 # Check whether --with-dmalloc or --without-dmalloc was given.
4826 if test "${with_dmalloc+set}" = set; then
4827 withval
="$with_dmalloc"
4828 if test "x$with_dmalloc" = xyes
; then
4829 ac_cv_use_dmalloc
='wxUSE_DMALLOC="1"'
4831 ac_cv_use_dmalloc
='wxUSE_DMALLOC="0"'
4835 LINE
=`grep "wxUSE_DMALLOC" ${OSTYPE}.system.cache`
4836 if test "x$LINE" != x
; then
4837 eval "DEFAULT_$LINE"
4839 ac_cv_use_dmalloc
='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
4843 eval "$ac_cv_use_dmalloc"
4844 echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp
4845 if test "$wxUSE_DMALLOC" = 1; then
4846 echo "$ac_t""yes" 1>&6
4848 echo "$ac_t""no" 1>&6
4853 echo $ac_n "checking "for profile
"""... $ac_c" 1>&6
4854 echo "configure:4855: checking "for profile
"" >&5
4855 # Check whether --with-profile or --without-profile was given.
4856 if test "${with_profile+set}" = set; then
4857 withval
="$with_profile"
4858 if test "x$with_profile" = xyes
; then
4859 ac_cv_use_profile
='wxUSE_PROFILE="1"'
4861 ac_cv_use_profile
='wxUSE_PROFILE="0"'
4865 LINE
=`grep "wxUSE_PROFILE" ${OSTYPE}.system.cache`
4866 if test "x$LINE" != x
; then
4867 eval "DEFAULT_$LINE"
4869 ac_cv_use_profile
='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4873 eval "$ac_cv_use_profile"
4874 echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
4875 if test "$wxUSE_PROFILE" = 1; then
4876 echo "$ac_t""yes" 1>&6
4878 echo "$ac_t""no" 1>&6
4883 echo $ac_n "checking "for apple_ieee
"""... $ac_c" 1>&6
4884 echo "configure:4885: checking "for apple_ieee
"" >&5
4885 # Check whether --with-apple_ieee or --without-apple_ieee was given.
4886 if test "${with_apple_ieee+set}" = set; then
4887 withval
="$with_apple_ieee"
4888 if test "x$with_apple_ieee" = xyes
; then
4889 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="1"'
4891 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="0"'
4895 LINE
=`grep "wxUSE_APPLE_IEEE" ${OSTYPE}.system.cache`
4896 if test "x$LINE" != x
; then
4897 eval "DEFAULT_$LINE"
4899 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4903 eval "$ac_cv_use_apple_ieee"
4904 echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp
4905 if test "$wxUSE_APPLE_IEEE" = 1; then
4906 echo "$ac_t""yes" 1>&6
4908 echo "$ac_t""no" 1>&6
4913 echo $ac_n "checking "for threads
"""... $ac_c" 1>&6
4914 echo "configure:4915: checking "for threads
"" >&5
4915 # Check whether --with-threads or --without-threads was given.
4916 if test "${with_threads+set}" = set; then
4917 withval
="$with_threads"
4918 if test "x$with_threads" = xyes
; then
4919 ac_cv_use_threads
='wxUSE_THREADS="1"'
4921 ac_cv_use_threads
='wxUSE_THREADS="0"'
4925 LINE
=`grep "wxUSE_THREADS" ${OSTYPE}.system.cache`
4926 if test "x$LINE" != x
; then
4927 eval "DEFAULT_$LINE"
4929 ac_cv_use_threads
='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4933 eval "$ac_cv_use_threads"
4934 echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
4935 if test "$wxUSE_THREADS" = 1; then
4936 echo "$ac_t""yes" 1>&6
4938 echo "$ac_t""no" 1>&6
4944 echo $ac_n "checking "for zlib
"""... $ac_c" 1>&6
4945 echo "configure:4946: checking "for zlib
"" >&5
4946 # Check whether --with-zlib or --without-zlib was given.
4947 if test "${with_zlib+set}" = set; then
4948 withval
="$with_zlib"
4949 if test "x$with_zlib" = xyes
; then
4950 ac_cv_use_zlib
='wxUSE_ZLIB="1"'
4952 ac_cv_use_zlib
='wxUSE_ZLIB="0"'
4956 LINE
=`grep "wxUSE_ZLIB" ${OSTYPE}.system.cache`
4957 if test "x$LINE" != x
; then
4958 eval "DEFAULT_$LINE"
4960 ac_cv_use_zlib
='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
4964 eval "$ac_cv_use_zlib"
4965 echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
4966 if test "$wxUSE_ZLIB" = 1; then
4967 echo "$ac_t""yes" 1>&6
4969 echo "$ac_t""no" 1>&6
4974 echo $ac_n "checking "for libpng
"""... $ac_c" 1>&6
4975 echo "configure:4976: checking "for libpng
"" >&5
4976 # Check whether --with-libpng or --without-libpng was given.
4977 if test "${with_libpng+set}" = set; then
4978 withval
="$with_libpng"
4979 if test "x$with_libpng" = xyes
; then
4980 ac_cv_use_libpng
='wxUSE_LIBPNG="1"'
4982 ac_cv_use_libpng
='wxUSE_LIBPNG="0"'
4986 LINE
=`grep "wxUSE_LIBPNG" ${OSTYPE}.system.cache`
4987 if test "x$LINE" != x
; then
4988 eval "DEFAULT_$LINE"
4990 ac_cv_use_libpng
='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
4994 eval "$ac_cv_use_libpng"
4995 echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
4996 if test "$wxUSE_LIBPNG" = 1; then
4997 echo "$ac_t""yes" 1>&6
4999 echo "$ac_t""no" 1>&6
5004 echo $ac_n "checking "for odbc
"""... $ac_c" 1>&6
5005 echo "configure:5006: checking "for odbc
"" >&5
5006 # Check whether --with-odbc or --without-odbc was given.
5007 if test "${with_odbc+set}" = set; then
5008 withval
="$with_odbc"
5009 if test "x$with_odbc" = xyes
; then
5010 ac_cv_use_odbc
='wxUSE_ODBC="1"'
5012 ac_cv_use_odbc
='wxUSE_ODBC="0"'
5016 LINE
=`grep "wxUSE_ODBC" ${OSTYPE}.system.cache`
5017 if test "x$LINE" != x
; then
5018 eval "DEFAULT_$LINE"
5020 ac_cv_use_odbc
='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
5024 eval "$ac_cv_use_odbc"
5025 echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp
5026 if test "$wxUSE_ODBC" = 1; then
5027 echo "$ac_t""yes" 1>&6
5029 echo "$ac_t""no" 1>&6
5035 echo $ac_n "checking "for timedate
"""... $ac_c" 1>&6
5036 echo "configure:5037: checking "for timedate
"" >&5
5037 # Check whether --with-timedate or --without-timedate was given.
5038 if test "${with_timedate+set}" = set; then
5039 withval
="$with_timedate"
5040 if test "x$with_timedate" = xyes
; then
5041 ac_cv_use_timedate
='wxUSE_TIMEDATE="1"'
5043 ac_cv_use_timedate
='wxUSE_TIMEDATE="0"'
5047 LINE
=`grep "wxUSE_TIMEDATE" ${OSTYPE}.system.cache`
5048 if test "x$LINE" != x
; then
5049 eval "DEFAULT_$LINE"
5051 ac_cv_use_timedate
='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
5055 eval "$ac_cv_use_timedate"
5056 echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
5057 if test "$wxUSE_TIMEDATE" = 1; then
5058 echo "$ac_t""yes" 1>&6
5060 echo "$ac_t""no" 1>&6
5065 echo $ac_n "checking "for intl
"""... $ac_c" 1>&6
5066 echo "configure:5067: checking "for intl
"" >&5
5067 # Check whether --with-intl or --without-intl was given.
5068 if test "${with_intl+set}" = set; then
5069 withval
="$with_intl"
5070 if test "x$with_intl" = xyes
; then
5071 ac_cv_use_intl
='wxUSE_INTL="1"'
5073 ac_cv_use_intl
='wxUSE_INTL="0"'
5077 LINE
=`grep "wxUSE_INTL" ${OSTYPE}.system.cache`
5078 if test "x$LINE" != x
; then
5079 eval "DEFAULT_$LINE"
5081 ac_cv_use_intl
='wxUSE_INTL='$DEFAULT_wxUSE_INTL
5085 eval "$ac_cv_use_intl"
5086 echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp
5087 if test "$wxUSE_INTL" = 1; then
5088 echo "$ac_t""yes" 1>&6
5090 echo "$ac_t""no" 1>&6
5095 echo $ac_n "checking "for config
"""... $ac_c" 1>&6
5096 echo "configure:5097: checking "for config
"" >&5
5097 # Check whether --with-config or --without-config was given.
5098 if test "${with_config+set}" = set; then
5099 withval
="$with_config"
5100 if test "x$with_config" = xyes
; then
5101 ac_cv_use_config
='wxUSE_CONFIG="1"'
5103 ac_cv_use_config
='wxUSE_CONFIG="0"'
5107 LINE
=`grep "wxUSE_CONFIG" ${OSTYPE}.system.cache`
5108 if test "x$LINE" != x
; then
5109 eval "DEFAULT_$LINE"
5111 ac_cv_use_config
='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
5115 eval "$ac_cv_use_config"
5116 echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp
5117 if test "$wxUSE_CONFIG" = 1; then
5118 echo "$ac_t""yes" 1>&6
5120 echo "$ac_t""no" 1>&6
5125 echo $ac_n "checking "for streams
"""... $ac_c" 1>&6
5126 echo "configure:5127: checking "for streams
"" >&5
5127 # Check whether --with-streams or --without-streams was given.
5128 if test "${with_streams+set}" = set; then
5129 withval
="$with_streams"
5130 if test "x$with_streams" = xyes
; then
5131 ac_cv_use_streams
='wxUSE_STREAMS="1"'
5133 ac_cv_use_streams
='wxUSE_STREAMS="0"'
5137 LINE
=`grep "wxUSE_STREAMS" ${OSTYPE}.system.cache`
5138 if test "x$LINE" != x
; then
5139 eval "DEFAULT_$LINE"
5141 ac_cv_use_streams
='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5145 eval "$ac_cv_use_streams"
5146 echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp
5147 if test "$wxUSE_STREAMS" = 1; then
5148 echo "$ac_t""yes" 1>&6
5150 echo "$ac_t""no" 1>&6
5155 echo $ac_n "checking "for serial
"""... $ac_c" 1>&6
5156 echo "configure:5157: checking "for serial
"" >&5
5157 # Check whether --with-serial or --without-serial was given.
5158 if test "${with_serial+set}" = set; then
5159 withval
="$with_serial"
5160 if test "x$with_serial" = xyes
; then
5161 ac_cv_use_serial
='wxUSE_SERIAL="1"'
5163 ac_cv_use_serial
='wxUSE_SERIAL="0"'
5167 LINE
=`grep "wxUSE_SERIAL" ${OSTYPE}.system.cache`
5168 if test "x$LINE" != x
; then
5169 eval "DEFAULT_$LINE"
5171 ac_cv_use_serial
='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
5175 eval "$ac_cv_use_serial"
5176 echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp
5177 if test "$wxUSE_SERIAL" = 1; then
5178 echo "$ac_t""yes" 1>&6
5180 echo "$ac_t""no" 1>&6
5186 echo $ac_n "checking "for afmfonts
"""... $ac_c" 1>&6
5187 echo "configure:5188: checking "for afmfonts
"" >&5
5188 # Check whether --with-afmfonts or --without-afmfonts was given.
5189 if test "${with_afmfonts+set}" = set; then
5190 withval
="$with_afmfonts"
5191 if test "x$with_afmfonts" = xyes
; then
5192 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="1"'
5194 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="0"'
5198 LINE
=`grep "wxUSE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
5199 if test "x$LINE" != x
; then
5200 eval "DEFAULT_$LINE"
5202 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT='$DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
5206 eval "$ac_cv_use_afmfonts"
5207 echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
5208 if test "$wxUSE_AFM_FOR_POSTSCRIPT" = 1; then
5209 echo "$ac_t""yes" 1>&6
5211 echo "$ac_t""no" 1>&6
5216 echo $ac_n "checking "for normalized
"""... $ac_c" 1>&6
5217 echo "configure:5218: checking "for normalized
"" >&5
5218 # Check whether --with-normalized or --without-normalized was given.
5219 if test "${with_normalized+set}" = set; then
5220 withval
="$with_normalized"
5221 if test "x$with_normalized" = xyes
; then
5222 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="1"'
5224 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="0"'
5228 LINE
=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
5229 if test "x$LINE" != x
; then
5230 eval "DEFAULT_$LINE"
5232 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
5236 eval "$ac_cv_use_normalized"
5237 echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
5238 if test "$WX_NORMALIZED_PS_FONTS" = 1; then
5239 echo "$ac_t""yes" 1>&6
5241 echo "$ac_t""no" 1>&6
5246 echo $ac_n "checking "for postscript
"""... $ac_c" 1>&6
5247 echo "configure:5248: checking "for postscript
"" >&5
5248 # Check whether --with-postscript or --without-postscript was given.
5249 if test "${with_postscript+set}" = set; then
5250 withval
="$with_postscript"
5251 if test "x$with_postscript" = xyes
; then
5252 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="1"'
5254 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="0"'
5258 LINE
=`grep "wxUSE_POSTSCRIPT" ${OSTYPE}.system.cache`
5259 if test "x$LINE" != x
; then
5260 eval "DEFAULT_$LINE"
5262 ac_cv_use_postscript
='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5266 eval "$ac_cv_use_postscript"
5267 echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
5268 if test "$wxUSE_POSTSCRIPT" = 1; then
5269 echo "$ac_t""yes" 1>&6
5271 echo "$ac_t""no" 1>&6
5277 echo $ac_n "checking "for unicode
"""... $ac_c" 1>&6
5278 echo "configure:5279: checking "for unicode
"" >&5
5279 # Check whether --with-unicode or --without-unicode was given.
5280 if test "${with_unicode+set}" = set; then
5281 withval
="$with_unicode"
5282 if test "x$with_unicode" = xyes
; then
5283 ac_cv_use_unicode
='wxUSE_UNICODE="1"'
5285 ac_cv_use_unicode
='wxUSE_UNICODE="0"'
5289 LINE
=`grep "wxUSE_UNICODE" ${OSTYPE}.system.cache`
5290 if test "x$LINE" != x
; then
5291 eval "DEFAULT_$LINE"
5293 ac_cv_use_unicode
='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5297 eval "$ac_cv_use_unicode"
5298 echo $ac_cv_use_unicode >> ${OSTYPE}.system.cache.tmp
5299 if test "$wxUSE_UNICODE" = 1; then
5300 echo "$ac_t""yes" 1>&6
5302 echo "$ac_t""no" 1>&6
5307 echo $ac_n "checking "for wcsrtombs
"""... $ac_c" 1>&6
5308 echo "configure:5309: checking "for wcsrtombs
"" >&5
5309 # Check whether --with-wcsrtombs or --without-wcsrtombs was given.
5310 if test "${with_wcsrtombs+set}" = set; then
5311 withval
="$with_wcsrtombs"
5312 if test "x$with_wcsrtombs" = xyes
; then
5313 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="1"'
5315 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="0"'
5319 LINE
=`grep "wxUSE_WCSRTOMBS" ${OSTYPE}.system.cache`
5320 if test "x$LINE" != x
; then
5321 eval "DEFAULT_$LINE"
5323 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
5327 eval "$ac_cv_use_wcsrtombs"
5328 echo $ac_cv_use_wcsrtombs >> ${OSTYPE}.system.cache.tmp
5329 if test "$wxUSE_WCSRTOMBS" = 1; then
5330 echo "$ac_t""yes" 1>&6
5332 echo "$ac_t""no" 1>&6
5338 echo $ac_n "checking "for wxresources
"""... $ac_c" 1>&6
5339 echo "configure:5340: checking "for wxresources
"" >&5
5340 # Check whether --with-wxresources or --without-wxresources was given.
5341 if test "${with_wxresources+set}" = set; then
5342 withval
="$with_wxresources"
5343 if test "x$with_wxresources" = xyes
; then
5344 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="1"'
5346 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="0"'
5350 LINE
=`grep "wxUSE_WX_RESOURCES" ${OSTYPE}.system.cache`
5351 if test "x$LINE" != x
; then
5352 eval "DEFAULT_$LINE"
5354 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES='$DEFAULT_wxUSE_WX_RESOURCES
5358 eval "$ac_cv_use_wxresources"
5359 echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
5360 if test "$wxUSE_WX_RESOURCES" = 1; then
5361 echo "$ac_t""yes" 1>&6
5363 echo "$ac_t""no" 1>&6
5368 echo $ac_n "checking "for prologio
"""... $ac_c" 1>&6
5369 echo "configure:5370: checking "for prologio
"" >&5
5370 # Check whether --with-prologio or --without-prologio was given.
5371 if test "${with_prologio+set}" = set; then
5372 withval
="$with_prologio"
5373 if test "x$with_prologio" = xyes
; then
5374 ac_cv_use_prologio
='wxUSE_PROLOGIO="1"'
5376 ac_cv_use_prologio
='wxUSE_PROLOGIO="0"'
5380 LINE
=`grep "wxUSE_PROLOGIO" ${OSTYPE}.system.cache`
5381 if test "x$LINE" != x
; then
5382 eval "DEFAULT_$LINE"
5384 ac_cv_use_prologio
='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5388 eval "$ac_cv_use_prologio"
5389 echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
5390 if test "$wxUSE_PROLOGIO" = 1; then
5391 echo "$ac_t""yes" 1>&6
5393 echo "$ac_t""no" 1>&6
5398 echo $ac_n "checking "for RPC
"""... $ac_c" 1>&6
5399 echo "configure:5400: checking "for RPC
"" >&5
5400 # Check whether --with-rpc or --without-rpc was given.
5401 if test "${with_rpc+set}" = set; then
5403 if test "x$with_rpc" = xyes
; then
5404 ac_cv_use_rpc
='wxUSE_RPC="1"'
5406 ac_cv_use_rpc
='wxUSE_RPC="0"'
5410 LINE
=`grep "wxUSE_RPC" ${OSTYPE}.system.cache`
5411 if test "x$LINE" != x
; then
5412 eval "DEFAULT_$LINE"
5414 ac_cv_use_rpc
='wxUSE_RPC='$DEFAULT_wxUSE_RPC
5418 eval "$ac_cv_use_rpc"
5419 echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
5420 if test "$wxUSE_RPC" = 1; then
5421 echo "$ac_t""yes" 1>&6
5423 echo "$ac_t""no" 1>&6
5429 echo $ac_n "checking "for IPC
"""... $ac_c" 1>&6
5430 echo "configure:5431: checking "for IPC
"" >&5
5431 # Check whether --with-ipc or --without-ipc was given.
5432 if test "${with_ipc+set}" = set; then
5434 if test "x$with_ipc" = xyes
; then
5435 ac_cv_use_ipc
='wxUSE_IPC="1"'
5437 ac_cv_use_ipc
='wxUSE_IPC="0"'
5441 LINE
=`grep "wxUSE_IPC" ${OSTYPE}.system.cache`
5442 if test "x$LINE" != x
; then
5443 eval "DEFAULT_$LINE"
5445 ac_cv_use_ipc
='wxUSE_IPC='$DEFAULT_wxUSE_IPC
5449 eval "$ac_cv_use_ipc"
5450 echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
5451 if test "$wxUSE_IPC" = 1; then
5452 echo "$ac_t""yes" 1>&6
5454 echo "$ac_t""no" 1>&6
5459 echo $ac_n "checking "for resources
"""... $ac_c" 1>&6
5460 echo "configure:5461: checking "for resources
"" >&5
5461 # Check whether --with-resources or --without-resources was given.
5462 if test "${with_resources+set}" = set; then
5463 withval
="$with_resources"
5464 if test "x$with_resources" = xyes
; then
5465 ac_cv_use_resources
='wxUSE_RESOURCES="1"'
5467 ac_cv_use_resources
='wxUSE_RESOURCES="0"'
5471 LINE
=`grep "wxUSE_RESOURCES" ${OSTYPE}.system.cache`
5472 if test "x$LINE" != x
; then
5473 eval "DEFAULT_$LINE"
5475 ac_cv_use_resources
='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5479 eval "$ac_cv_use_resources"
5480 echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
5481 if test "$wxUSE_RESOURCES" = 1; then
5482 echo "$ac_t""yes" 1>&6
5484 echo "$ac_t""no" 1>&6
5489 echo $ac_n "checking "for clipboard
"""... $ac_c" 1>&6
5490 echo "configure:5491: checking "for clipboard
"" >&5
5491 # Check whether --with-clipboard or --without-clipboard was given.
5492 if test "${with_clipboard+set}" = set; then
5493 withval
="$with_clipboard"
5494 if test "x$with_clipboard" = xyes
; then
5495 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="1"'
5497 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="0"'
5501 LINE
=`grep "wxUSE_CLIPBOARD" ${OSTYPE}.system.cache`
5502 if test "x$LINE" != x
; then
5503 eval "DEFAULT_$LINE"
5505 ac_cv_use_clipboard
='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5509 eval "$ac_cv_use_clipboard"
5510 echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
5511 if test "$wxUSE_CLIPBOARD" = 1; then
5512 echo "$ac_t""yes" 1>&6
5514 echo "$ac_t""no" 1>&6
5519 echo $ac_n "checking "for dnd
"""... $ac_c" 1>&6
5520 echo "configure:5521: checking "for dnd
"" >&5
5521 # Check whether --with-dnd or --without-dnd was given.
5522 if test "${with_dnd+set}" = set; then
5524 if test "x$with_dnd" = xyes
; then
5525 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="1"'
5527 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="0"'
5531 LINE
=`grep "wxUSE_DRAG_AND_DROP" ${OSTYPE}.system.cache`
5532 if test "x$LINE" != x
; then
5533 eval "DEFAULT_$LINE"
5535 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5539 eval "$ac_cv_use_dnd"
5540 echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp
5541 if test "$wxUSE_DRAG_AND_DROP" = 1; then
5542 echo "$ac_t""yes" 1>&6
5544 echo "$ac_t""no" 1>&6
5550 echo $ac_n "checking "for mdi
"""... $ac_c" 1>&6
5551 echo "configure:5552: checking "for mdi
"" >&5
5552 # Check whether --with-mdi or --without-mdi was given.
5553 if test "${with_mdi+set}" = set; then
5555 if test "x$with_mdi" = xyes
; then
5556 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="1"'
5558 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="0"'
5562 LINE
=`grep "wxUSE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache`
5563 if test "x$LINE" != x
; then
5564 eval "DEFAULT_$LINE"
5566 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5570 eval "$ac_cv_use_mdi"
5571 echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp
5572 if test "$wxUSE_MDI_ARCHITECTURE" = 1; then
5573 echo "$ac_t""yes" 1>&6
5575 echo "$ac_t""no" 1>&6
5580 echo $ac_n "checking "for docview
"""... $ac_c" 1>&6
5581 echo "configure:5582: checking "for docview
"" >&5
5582 # Check whether --with-docview or --without-docview was given.
5583 if test "${with_docview+set}" = set; then
5584 withval
="$with_docview"
5585 if test "x$with_docview" = xyes
; then
5586 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="1"'
5588 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="0"'
5592 LINE
=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
5593 if test "x$LINE" != x
; then
5594 eval "DEFAULT_$LINE"
5596 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5600 eval "$ac_cv_use_docview"
5601 echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
5602 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1; then
5603 echo "$ac_t""yes" 1>&6
5605 echo "$ac_t""no" 1>&6
5610 echo $ac_n "checking "for printarch
"""... $ac_c" 1>&6
5611 echo "configure:5612: checking "for printarch
"" >&5
5612 # Check whether --with-printarch or --without-printarch was given.
5613 if test "${with_printarch+set}" = set; then
5614 withval
="$with_printarch"
5615 if test "x$with_printarch" = xyes
; then
5616 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="1"'
5618 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="0"'
5622 LINE
=`grep "wxUSE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
5623 if test "x$LINE" != x
; then
5624 eval "DEFAULT_$LINE"
5626 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5630 eval "$ac_cv_use_printarch"
5631 echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
5632 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1; then
5633 echo "$ac_t""yes" 1>&6
5635 echo "$ac_t""no" 1>&6
5640 echo $ac_n "checking "for help"""... $ac_c" 1>&6
5641 echo "configure:5642: checking "for help"" >&5
5642 # Check whether --with-help or --without-help was given.
5643 if test "${with_help+set}" = set; then
5644 withval
="$with_help"
5645 if test "x$with_help" = xyes
; then
5646 ac_cv_use_help
='wxUSE_HELP="1"'
5648 ac_cv_use_help
='wxUSE_HELP="0"'
5652 LINE
=`grep "wxUSE_HELP" ${OSTYPE}.system.cache`
5653 if test "x$LINE" != x
; then
5654 eval "DEFAULT_$LINE"
5656 ac_cv_use_help
='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5660 eval "$ac_cv_use_help"
5661 echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
5662 if test "$wxUSE_HELP" = 1; then
5663 echo "$ac_t""yes" 1>&6
5665 echo "$ac_t""no" 1>&6
5670 if test "$wxUSE_UNIX" = 1 ; then
5671 cat >> confdefs.h
<<\EOF
5689 if test "$wxUSE_GTK" = 1; then
5690 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
5691 if test "${with_gtk_prefix+set}" = set; then
5692 withval
="$with_gtk_prefix"
5693 gtk_config_prefix
="$withval"
5695 gtk_config_prefix
=""
5698 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
5699 if test "${with_gtk_exec_prefix+set}" = set; then
5700 withval
="$with_gtk_exec_prefix"
5701 gtk_config_exec_prefix
="$withval"
5703 gtk_config_exec_prefix
=""
5707 if test x
$gtk_config_exec_prefix != x
; then
5708 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
5709 if test x
${GTK_CONFIG+set} != xset
; then
5710 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
5713 if test x
$gtk_config_prefix != x
; then
5714 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
5715 if test x
${GTK_CONFIG+set} != xset
; then
5716 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
5720 # Extract the first word of "gtk-config", so it can be a program name with args.
5721 set dummy gtk
-config; ac_word
=$2
5722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5723 echo "configure:5724: checking for $ac_word" >&5
5724 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5725 echo $ac_n "(cached) $ac_c" 1>&6
5727 case "$GTK_CONFIG" in
5729 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
5732 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5733 for ac_dir
in $PATH; do
5734 test -z "$ac_dir" && ac_dir
=.
5735 if test -f $ac_dir/$ac_word; then
5736 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
5741 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
5745 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
5746 if test -n "$GTK_CONFIG"; then
5747 echo "$ac_t""$GTK_CONFIG" 1>&6
5749 echo "$ac_t""no" 1>&6
5752 min_gtk_version
=1.0.4
5753 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
5754 echo "configure:5755: checking for GTK - version >= $min_gtk_version" >&5
5756 if test "$GTK_CONFIG" != "no" ; then
5757 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
5758 GTK_LIBS
=`$GTK_CONFIG --libs`
5759 ac_save_CFLAGS
="$CFLAGS"
5760 ac_save_LIBS
="$LIBS"
5761 CFLAGS
="$CFLAGS $GTK_CFLAGS"
5762 LIBS
="$LIBS $GTK_LIBS"
5763 if test "$cross_compiling" = yes; then
5764 echo $ac_n "cross compiling; assumed OK... $ac_c"
5766 cat > conftest.
$ac_ext <<EOF
5767 #line 5768 "configure"
5768 #include "confdefs.h"
5770 #include <gtk/gtk.h>
5776 int major, minor, micro;
5778 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
5779 printf("%s, bad version string\n", "$min_gtk_version");
5783 if (gtk_minor_version > 0) return FALSE;
5785 return !((gtk_major_version > major) ||
5786 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
5787 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
5791 if { (eval echo configure
:5792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5795 echo "configure: failed program was:" >&5
5796 cat conftest.
$ac_ext >&5
5803 CFLAGS
="$ac_save_CFLAGS"
5804 LIBS
="$ac_save_LIBS"
5808 if test "x$no_gtk" = x
; then
5809 echo "$ac_t""yes" 1>&6
5811 GUI_TK_INCLUDE
="$GTK_CFLAGS"
5812 GUI_TK_LIBRARY
="$GTK_LIBS"
5815 echo "$ac_t""no" 1>&6
5818 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.0.4 up-to 1.0.6?" 1>&2; exit 1; }
5824 TOOLKIT_DEF
=__WXGTK__
5826 MAKEINCLUDE
=..
/gtk.inc
5829 if test "$wxUSE_QT" = 1; then
5830 echo $ac_n "checking for Qt includes""... $ac_c" 1>&6
5831 echo "configure:5832: checking for Qt includes" >&5
5834 for ac_dir
in $SEARCH_INCLUDE;
5836 if test -f "$ac_dir/qapp.h"; then
5837 ac_find_includes
=$ac_dir
5842 if test "$ac_find_includes" != "" ; then
5843 echo "$ac_t""found $ac_find_includes" 1>&6
5844 echo $ac_n "checking for Qt library""... $ac_c" 1>&6
5845 echo "configure:5846: checking for Qt library" >&5
5848 for ac_dir
in $SEARCH_LIB;
5850 for ac_extension
in a so sl
; do
5851 if test -f "$ac_dir/libqt.$ac_extension"; then
5852 ac_find_libraries
=$ac_dir
5858 if test "$ac_find_libraries" != "" ; then
5860 ac_path_to_include
=$ac_find_includes
5861 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
5863 if test $result = 0; then
5864 ac_path_to_include
=""
5866 ac_path_to_include
="-I$ac_find_includes"
5870 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5872 if test $result = 0; then
5875 ac_path_to_link
="-L$ac_find_libraries"
5878 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
5879 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
5880 echo "$ac_t""found Qt at $ac_find_libraries" 1>&6
5882 { echo "configure: error: no" 1>&2; exit 1; }
5885 { echo "configure: error: no" 1>&2; exit 1; }
5887 GUI_TK_LINK
="-lX11 -lqt -lm"
5889 TOOLKIT_DEF
=__WXQT__
5891 MAKEINCLUDE
=..
/qt.inc
5894 if test "$wxUSE_MOTIF" = 1; then
5895 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
5896 echo "configure:5897: checking for Motif/Lesstif includes" >&5
5899 for ac_dir
in $SEARCH_INCLUDE;
5901 if test -f "$ac_dir/Xm.h"; then
5902 ac_find_includes
=$ac_dir
5907 if test "$ac_find_includes" != "" ; then
5908 echo "$ac_t""found $ac_find_includes" 1>&6
5909 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
5910 echo "configure:5911: checking for Motif/Lesstif library" >&5
5913 for ac_dir
in $SEARCH_LIB;
5915 for ac_extension
in a so sl
; do
5916 if test -f "$ac_dir/libXm.$ac_extension"; then
5917 ac_find_libraries
=$ac_dir
5923 if test "$ac_find_libraries" != "" ; then
5925 ac_path_to_include
=$ac_find_includes
5926 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
5928 if test $result = 0; then
5929 ac_path_to_include
=""
5931 ac_path_to_include
="-I$ac_find_includes"
5935 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5937 if test $result = 0; then
5940 ac_path_to_link
="-L$ac_find_libraries"
5943 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
5944 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
5945 echo "$ac_t""found at $ac_find_libraries" 1>&6
5946 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
5947 echo "configure:5948: checking for Xt library" >&5
5950 for ac_dir
in $SEARCH_LIB;
5952 for ac_extension
in a so sl
; do
5953 if test -f "$ac_dir/libXt.$ac_extension"; then
5954 ac_find_libraries
=$ac_dir
5960 if test "$ac_find_libraries" != "" ; then
5962 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5964 if test $result = 0; then
5967 ac_path_to_link
="-L$ac_find_libraries"
5970 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
5971 echo "$ac_t""found at $ac_find_libraries" 1>&6
5972 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
5973 echo "configure:5974: checking for Xpm library" >&5
5976 for ac_dir
in $SEARCH_LIB;
5978 for ac_extension
in a so sl
; do
5979 if test -f "$ac_dir/libXpm.$ac_extension"; then
5980 ac_find_libraries
=$ac_dir
5986 if test "$ac_find_libraries" != "" ; then
5988 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5990 if test $result = 0; then
5993 ac_path_to_link
="-L$ac_find_libraries"
5996 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
5997 echo "$ac_t""found at $ac_find_libraries" 1>&6
5999 { echo "configure: error: no" 1>&2; exit 1; }
6002 { echo "configure: error: no" 1>&2; exit 1; }
6005 { echo "configure: error: no" 1>&2; exit 1; }
6008 { echo "configure: error: no" 1>&2; exit 1; }
6011 GUI_TK_LINK
="-lXm -lXmu -lXt -lXpm -lX11 -lm"
6012 GUI_TK_LINK
="$CHECK_LINK $GUI_TK_LINK"
6014 TOOLKIT_DEF
="__WXMOTIF__ -D__LINUX__ -D__UNIX__"
6016 MAKEINCLUDE
=..
/motif.inc
6019 if test "$TOOLKIT" = ""; then
6020 { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; }
6036 if test "$wxUSE_DEBUG_GDB" = 1 ; then
6041 if test "$wxUSE_DEBUG_INFO" = 1 ; then
6045 WX_LINK
="-s $WX_LINK"
6050 if test "$wxUSE_DEBUG_FLAG" = 1 ; then
6051 cat >> confdefs.h
<<EOF
6052 #define WXDEBUG $wxUSE_DEBUG_FLAG
6055 WXDEBUG_DEFINE
="-D__WXDEBUG__"
6058 WXDEBUG_DEFINE
="-DGTK_NO_CHECK_CASTS"
6062 if test "$wxUSE_MEM_TRACING" = 1 ; then
6063 cat >> confdefs.h
<<EOF
6064 #define wxUSE_MEMORY_TRACING $wxUSE_MEM_TRACING
6067 cat >> confdefs.h
<<EOF
6068 #define wxUSE_GLOBAL_MEMORY_OPERATORS $wxUSE_MEM_TRACING
6074 if test "$wxUSE_DMALLOC" = 1 ; then
6075 EXTRA_LINK
="$EXTRA_LINK -ldmalloc"
6080 if test "$wxUSE_PROFILE" = 1 ; then
6085 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
6086 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
6087 if test "$wxUSE_OPTIMISE" = 0 ; then
6090 if test "$GCC" = yes ; then
6092 case "${canonical}" in
6094 OPTIMISE
="${OPTIMISE} "
6104 if test "$wxUSE_APPLE_IEEE" = 1 ; then
6105 APPLE_IEEE
="APPLE_IEEE"
6106 cat >> confdefs.h
<<EOF
6107 #define wxUSE_APPLE_IEEE $wxUSE_APPLE_IEEE
6112 wxUSE_IOSTREAMH
=$DEFAULT_wxUSE_IOSTREAMH
6113 cat >> confdefs.h
<<EOF
6114 #define wxUSE_IOSTREAMH $wxUSE_IOSTREAMH
6119 if test "$wxUSE_ZLIB" = 1 ; then
6120 cat >> confdefs.h
<<EOF
6121 #define wxUSE_ZLIB $wxUSE_ZLIB
6124 Z_C_SRC
="\$(Z_C_SRC)"
6128 if test "$wxUSE_LIBPNG" = 1 ; then
6129 cat >> confdefs.h
<<EOF
6130 #define wxUSE_LIBPNG $wxUSE_LIBPNG
6133 PNG_C_SRC
="\$(PNG_C_SRC)"
6138 if test "$wxUSE_ODBC" = 1 ; then
6139 cat >> confdefs.h
<<EOF
6140 #define wxUSE_ODBC $wxUSE_ODBC
6143 IODBC_C_SRC
="\$(IODBC_C_SRC)"
6148 if test "$wxUSE_CONFIG" = 1 ; then
6149 cat >> confdefs.h
<<EOF
6150 #define wxUSE_CONFIG $wxUSE_CONFIG
6155 if test "$wxUSE_TIMEDATE" = 1 ; then
6156 cat >> confdefs.h
<<EOF
6157 #define wxUSE_TIMEDATE $wxUSE_TIMEDATE
6162 if test "$wxUSE_INTL" = 1 ; then
6163 cat >> confdefs.h
<<EOF
6164 #define wxUSE_INTL $wxUSE_INTL
6169 if test "$wxUSE_STREAMS" = 1 ; then
6170 cat >> confdefs.h
<<EOF
6171 #define wxUSE_STREAMS $wxUSE_STREAMS
6176 if test "$wxUSE_SERIAL" = 1 ; then
6177 cat >> confdefs.h
<<EOF
6178 #define wxUSE_SERIAL $wxUSE_SERIAL
6184 if test "$wxUSE_RPC" = 1 ; then
6185 cat >> confdefs.h
<<EOF
6186 #define wxUSE_RPC $wxUSE_RPC
6191 if test "$wxUSE_WX_RESOURCES" = 1 ; then
6192 cat >> confdefs.h
<<EOF
6193 #define wxUSE_WX_RESOURCES $wxUSE_WX_RESOURCES
6198 if test "$wxUSE_PROLOGIO" = 1 ; then
6199 cat >> confdefs.h
<<EOF
6200 #define wxUSE_PROLOGIO 1
6206 if test "$wxUSE_POSTSCRIPT" = 1 ; then
6207 cat >> confdefs.h
<<EOF
6208 #define wxUSE_POSTSCRIPT 1
6213 cat >> confdefs.h
<<EOF
6214 #define wxUSE_AFM_FOR_POSTSCRIPT $wxUSE_AFM_FOR_POSTSCRIPT
6218 cat >> confdefs.h
<<EOF
6219 #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
6224 if test "$wxUSE_MDI_ARCHITECTURE" = 1 ; then
6225 cat >> confdefs.h
<<EOF
6226 #define wxUSE_MDI_ARCHITECTURE $wxUSE_MDI_ARCHITECTURE
6231 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1 ; then
6232 cat >> confdefs.h
<<EOF
6233 #define wxUSE_DOC_VIEW_ARCHITECTURE $wxUSE_DOC_VIEW_ARCHITECTURE
6238 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1 ; then
6239 cat >> confdefs.h
<<EOF
6240 #define wxUSE_PRINTING_ARCHITECTURE $wxUSE_PRINTING_ARCHITECTURE
6246 if test "$wxUSE_UNICODE" = 1 ; then
6247 cat >> confdefs.h
<<EOF
6248 #define wxUSE_UNICODE 1
6253 if test "$wxUSE_WCSRTOMBS" = 1 ; then
6254 cat >> confdefs.h
<<EOF
6255 #define wxUSE_WCSRTOMBS 1
6261 if test "$wxUSE_IPC" = 1 ; then
6262 cat >> confdefs.h
<<EOF
6268 if test "$wxUSE_RESOURCES" = 1 ; then
6269 cat >> confdefs.h
<<EOF
6270 #define wxUSE_RESOURCES $wxUSE_RESOURCES
6275 if test "$wxUSE_CLIPBOARD" = 1 ; then
6276 cat >> confdefs.h
<<EOF
6277 #define wxUSE_CLIPBOARD $wxUSE_CLIPBOARD
6282 if test "$wxUSE_DRAG_AND_DROP" = 1 ; then
6283 cat >> confdefs.h
<<EOF
6284 #define wxUSE_DRAG_AND_DROP $wxUSE_DRAG_AND_DROP
6291 if test "$wxUSE_HELP" = 1 ; then
6293 cat >> confdefs.h
<<EOF
6294 #define wxUSE_HELP $wxUSE_HELP
6301 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
6302 echo "configure:6303: checking for main in -ldl" >&5
6303 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
6304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6305 echo $ac_n "(cached) $ac_c" 1>&6
6307 ac_save_LIBS
="$LIBS"
6309 cat > conftest.
$ac_ext <<EOF
6310 #line 6311 "configure"
6311 #include "confdefs.h"
6317 if { (eval echo configure
:6318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6319 eval "ac_cv_lib_$ac_lib_var=yes"
6321 echo "configure: failed program was:" >&5
6322 cat conftest.
$ac_ext >&5
6324 eval "ac_cv_lib_$ac_lib_var=no"
6327 LIBS
="$ac_save_LIBS"
6330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6331 echo "$ac_t""yes" 1>&6
6334 echo "$ac_t""no" 1>&6
6344 if test "$wxUSE_THREADS" = "1"; then
6347 echo $ac_n "checking for pthread_create in -lpthread-0.7""... $ac_c" 1>&6
6348 echo "configure:6349: checking for pthread_create in -lpthread-0.7" >&5
6349 ac_lib_var
=`echo pthread-0.7'_'pthread_create | sed 'y%./+-%__p_%'`
6350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6353 ac_save_LIBS
="$LIBS"
6354 LIBS
="-lpthread-0.7 $LIBS"
6355 cat > conftest.
$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6358 /* Override any gcc2 internal prototype to avoid an error. */
6359 /* We use char because int might match the return type of a gcc2
6360 builtin and then its argument prototype would still apply. */
6361 char pthread_create();
6367 if { (eval echo configure
:6368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6369 eval "ac_cv_lib_$ac_lib_var=yes"
6371 echo "configure: failed program was:" >&5
6372 cat conftest.
$ac_ext >&5
6374 eval "ac_cv_lib_$ac_lib_var=no"
6377 LIBS
="$ac_save_LIBS"
6380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6381 echo "$ac_t""yes" 1>&6
6383 UNIX_THREAD
="gtk/threadpsx.cpp"
6384 THREADS_LINK
="-lpthread-0.7"
6387 echo "$ac_t""no" 1>&6
6389 ac_safe
=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
6390 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
6391 echo "configure:6392: checking for sys/prctl.h" >&5
6392 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6393 echo $ac_n "(cached) $ac_c" 1>&6
6395 cat > conftest.
$ac_ext <<EOF
6396 #line 6397 "configure"
6397 #include "confdefs.h"
6398 #include <sys/prctl.h>
6400 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6401 { (eval echo configure
:6402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6402 ac_err
=`grep -v '^ *+' conftest.out`
6403 if test -z "$ac_err"; then
6405 eval "ac_cv_header_$ac_safe=yes"
6408 echo "configure: failed program was:" >&5
6409 cat conftest.
$ac_ext >&5
6411 eval "ac_cv_header_$ac_safe=no"
6415 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6416 echo "$ac_t""yes" 1>&6
6418 UNIX_THREAD
="gtk/threadsgi.cpp"
6421 echo "$ac_t""no" 1>&6
6426 echo $ac_n "checking for pthread_setcanceltype in -lpthread""... $ac_c" 1>&6
6427 echo "configure:6428: checking for pthread_setcanceltype in -lpthread" >&5
6428 ac_lib_var
=`echo pthread'_'pthread_setcanceltype | sed 'y%./+-%__p_%'`
6429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6430 echo $ac_n "(cached) $ac_c" 1>&6
6432 ac_save_LIBS
="$LIBS"
6433 LIBS
="-lpthread $LIBS"
6434 cat > conftest.
$ac_ext <<EOF
6435 #line 6436 "configure"
6436 #include "confdefs.h"
6437 /* Override any gcc2 internal prototype to avoid an error. */
6438 /* We use char because int might match the return type of a gcc2
6439 builtin and then its argument prototype would still apply. */
6440 char pthread_setcanceltype();
6443 pthread_setcanceltype()
6446 if { (eval echo configure
:6447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6448 eval "ac_cv_lib_$ac_lib_var=yes"
6450 echo "configure: failed program was:" >&5
6451 cat conftest.
$ac_ext >&5
6453 eval "ac_cv_lib_$ac_lib_var=no"
6456 LIBS
="$ac_save_LIBS"
6459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6460 echo "$ac_t""yes" 1>&6
6462 UNIX_THREAD
="gtk/threadpsx.cpp"
6463 THREADS_LINK
="-lpthread"
6466 echo "$ac_t""no" 1>&6
6473 if test "$THREADS_LINK" != ""; then
6474 cat >> confdefs.h
<<\EOF
6475 #define wxUSE_THREADS 1
6481 echo $ac_n "checking for printf in -lposix4""... $ac_c" 1>&6
6482 echo "configure:6483: checking for printf in -lposix4" >&5
6483 ac_lib_var
=`echo posix4'_'printf | sed 'y%./+-%__p_%'`
6484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6485 echo $ac_n "(cached) $ac_c" 1>&6
6487 ac_save_LIBS
="$LIBS"
6488 LIBS
="-lposix4 $LIBS"
6489 cat > conftest.
$ac_ext <<EOF
6490 #line 6491 "configure"
6491 #include "confdefs.h"
6492 /* Override any gcc2 internal prototype to avoid an error. */
6493 /* We use char because int might match the return type of a gcc2
6494 builtin and then its argument prototype would still apply. */
6501 if { (eval echo configure
:6502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6503 eval "ac_cv_lib_$ac_lib_var=yes"
6505 echo "configure: failed program was:" >&5
6506 cat conftest.
$ac_ext >&5
6508 eval "ac_cv_lib_$ac_lib_var=no"
6511 LIBS
="$ac_save_LIBS"
6514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6515 echo "$ac_t""yes" 1>&6
6517 THREADS_LINK
="$THREADS_LINK -lposix4"
6520 echo "$ac_t""no" 1>&6
6526 if test "$wxUSE_MOTIF" = "1"; then
6527 UNIX_THREAD
="motif/thread.cpp"
6530 if test -z "$UNIX_THREAD"; then
6541 case "${canonical}" in
6544 if test "$GCC" != "yes" ; then
6545 CXXFLAGS
="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
6546 CFLAGS
="${CFLAGS} -z -D_HPUX_SOURCE"
6552 CREATE_SHARED
=sharedHpux
6557 CREATE_SHARED
=sharedLinux
6560 *-*-irix5* | *-*-irix6* )
6561 # PICFLAGS can remain empty, as pic is the default
6563 CREATE_SHARED
=sharedIrix
6564 cat >> confdefs.h
<<\EOF
6571 if test "$GCC" != "yes" ; then
6576 CREATE_SHARED
=sharedSolaris2
6577 cat >> confdefs.h
<<\EOF
6584 if test "$GCC" != "yes" ; then
6590 CREATE_SHARED
=sharedSunos4
6591 cat >> confdefs.h
<<\EOF
6597 *-*-freebsd* | *-*-netbsd*)
6599 CREATE_SHARED
=sharedBsd
6600 cat >> confdefs.h
<<\EOF
6608 CREATE_SHARED
=sharedOSF
6612 if test "$GCC" != "yes" ; then
6617 CREATE_SHARED
=sharedDgux
6618 cat >> confdefs.h
<<\EOF
6625 if test "$GCC" != "yes" ; then
6630 CREATE_SHARED
=sharedSysV
6631 cat >> confdefs.h
<<\EOF
6638 if test "$GCC" != "yes" ; then
6643 CREATE_SHARED
=sharedAIX
6644 cat >> confdefs.h
<<\EOF
6655 if test "x$GCC" = xyes
; then
6656 CFLAGS
="${CFLAGS} -Wall"
6659 if test "x$GXX" = xyes
; then
6660 if test "$wxUSE_MOTIF" = 1; then
6661 CXXFLAGS
="${CXXFLAGS} -Wall -Wno-unused"
6663 CXXFLAGS
="${CXXFLAGS} -Wall"
6667 if test "$wxUSE_SHARED" != 1; then
6677 echo $OS >> system.list
6681 cat > confcache
<<\EOF
6682 # This file is a shell script that caches the results of configure
6683 # tests run on this system so they can be shared between configure
6684 # scripts and configure runs. It is not useful on other systems.
6685 # If it contains results you don't want to keep, you may remove or edit it.
6687 # By default, configure uses ./config.cache as the cache file,
6688 # creating it if it does not exist already. You can give configure
6689 # the --cache-file=FILE option to use a different cache file; that is
6690 # what configure does when it calls configure scripts in
6691 # subdirectories, so they share the cache.
6692 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6693 # config.status only pays attention to the cache file if you give it the
6694 # --recheck option to rerun configure.
6697 # The following way of writing the cache mishandles newlines in values,
6698 # but we know of no workaround that is simple, portable, and efficient.
6699 # So, don't put newlines in cache variables' values.
6700 # Ultrix sh set writes to stderr and can't be redirected directly,
6701 # and sets the high bit in the cache file unless we assign to the vars.
6703 case `(ac_space=' '; set) 2>&1` in
6705 # `set' does not quote correctly, so add quotes (double-quote substitution
6706 # turns \\\\ into \\, and sed turns \\ into \).
6708 -e "s/'/'\\\\''/g" \
6709 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6712 # `set' quotes correctly as required by POSIX, so do not add quotes.
6713 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6716 if cmp -s $cache_file confcache
; then
6719 if test -w $cache_file; then
6720 echo "updating cache $cache_file"
6721 cat confcache
> $cache_file
6723 echo "not updating unwritable cache $cache_file"
6728 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6730 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6731 # Let make expand exec_prefix.
6732 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6734 # Any assignment to VPATH causes Sun make to only execute
6735 # the first set of double-colon rules, so remove it if not needed.
6736 # If there is a colon in the path, we need to keep it.
6737 if test "x$srcdir" = x.
; then
6738 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6741 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6743 DEFS
=-DHAVE_CONFIG_H
6745 # Without the "./", some shells look in PATH for config.status.
6746 : ${CONFIG_STATUS=./config.status}
6748 echo creating
$CONFIG_STATUS
6749 rm -f $CONFIG_STATUS
6750 cat > $CONFIG_STATUS <<EOF
6752 # Generated automatically by configure.
6753 # Run this file to recreate the current configuration.
6754 # This directory was configured as follows,
6755 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6757 # $0 $ac_configure_args
6759 # Compiler output produced by configure, useful for debugging
6760 # configure, is in ./config.log if it exists.
6762 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6765 case "\$ac_option" in
6766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6767 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6768 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6769 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6770 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6772 -help | --help | --hel | --he | --h)
6773 echo "\$ac_cs_usage"; exit 0 ;;
6774 *) echo "\$ac_cs_usage"; exit 1 ;;
6778 ac_given_srcdir=$srcdir
6779 ac_given_INSTALL="$INSTALL"
6781 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
6783 cat >> $CONFIG_STATUS <<EOF
6785 # Protect against being on the right side of a sed subst in config.status.
6786 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6787 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6790 s%@CFLAGS@%$CFLAGS%g
6791 s%@CPPFLAGS@%$CPPFLAGS%g
6792 s%@CXXFLAGS@%$CXXFLAGS%g
6794 s%@LDFLAGS@%$LDFLAGS%g
6796 s%@exec_prefix@%$exec_prefix%g
6797 s%@prefix@%$prefix%g
6798 s%@program_transform_name@%$program_transform_name%g
6799 s%@bindir@%$bindir%g
6800 s%@sbindir@%$sbindir%g
6801 s%@libexecdir@%$libexecdir%g
6802 s%@datadir@%$datadir%g
6803 s%@sysconfdir@%$sysconfdir%g
6804 s%@sharedstatedir@%$sharedstatedir%g
6805 s%@localstatedir@%$localstatedir%g
6806 s%@libdir@%$libdir%g
6807 s%@includedir@%$includedir%g
6808 s%@oldincludedir@%$oldincludedir%g
6809 s%@infodir@%$infodir%g
6810 s%@mandir@%$mandir%g
6811 s%@WXBASEDIR@%$WXBASEDIR%g
6815 s%@CXXCPP@%$CXXCPP%g
6816 s%@RANLIB@%$RANLIB%g
6818 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6819 s%@INSTALL_DATA@%$INSTALL_DATA%g
6822 s%@X_CFLAGS@%$X_CFLAGS%g
6823 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6824 s%@X_LIBS@%$X_LIBS%g
6825 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6826 s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
6827 s%@LIBOBJS@%$LIBOBJS%g
6830 s%@LEXLIB@%$LEXLIB%g
6831 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6833 s%@host_alias@%$host_alias%g
6834 s%@host_cpu@%$host_cpu%g
6835 s%@host_vendor@%$host_vendor%g
6836 s%@host_os@%$host_os%g
6837 s%@GTK_CONFIG@%$GTK_CONFIG%g
6838 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
6839 s%@GTK_LIBS@%$GTK_LIBS%g
6840 s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
6841 s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
6842 s%@GUI_TK_LINK@%$GUI_TK_LINK%g
6843 s%@WX_LINK@%$WX_LINK%g
6844 s%@TOOLKIT@%$TOOLKIT%g
6845 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
6846 s%@MAKEINCLUDE@%$MAKEINCLUDE%g
6847 s%@WXDEBUG@%$WXDEBUG%g
6848 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
6849 s%@EXTRA_LINK@%$EXTRA_LINK%g
6850 s%@PROFILE@%$PROFILE%g
6851 s%@OPTIMISE@%$OPTIMISE%g
6852 s%@Z_C_SRC@%$Z_C_SRC%g
6853 s%@PNG_C_SRC@%$PNG_C_SRC%g
6854 s%@IODBC_C_SRC@%$IODBC_C_SRC%g
6856 s%@DL_LIBRARY@%$DL_LIBRARY%g
6857 s%@UNIX_THREAD@%$UNIX_THREAD%g
6858 s%@THREADS_LINK@%$THREADS_LINK%g
6860 s%@PICFLAGS@%$PICFLAGS%g
6861 s%@CREATE_SHARED@%$CREATE_SHARED%g
6866 cat >> $CONFIG_STATUS <<\EOF
6868 # Split the substitutions into bite-sized pieces for seds with
6869 # small command number limits, like on Digital OSF/1 and HP-UX.
6870 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6871 ac_file
=1 # Number of current file.
6872 ac_beg
=1 # First line for current file.
6873 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6876 while $ac_more_lines; do
6877 if test $ac_beg -gt 1; then
6878 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6880 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6882 if test ! -s conftest.s
$ac_file; then
6884 rm -f conftest.s
$ac_file
6886 if test -z "$ac_sed_cmds"; then
6887 ac_sed_cmds
="sed -f conftest.s$ac_file"
6889 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6891 ac_file
=`expr $ac_file + 1`
6893 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6896 if test -z "$ac_sed_cmds"; then
6901 cat >> $CONFIG_STATUS <<EOF
6903 CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"}
6905 cat >> $CONFIG_STATUS <<\EOF
6906 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6907 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6909 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6910 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6911 *) ac_file_in
="${ac_file}.in" ;;
6914 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6916 # Remove last slash and all that follows it. Not all systems have dirname.
6917 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6918 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6919 # The file is in a subdirectory.
6920 test ! -d "$ac_dir" && mkdir "$ac_dir"
6921 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6922 # A "../" for each directory in $ac_dir_suffix.
6923 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6925 ac_dir_suffix
= ac_dots
=
6928 case "$ac_given_srcdir" in
6930 if test -z "$ac_dots"; then top_srcdir
=.
6931 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6932 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6934 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6935 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6938 case "$ac_given_INSTALL" in
6939 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6940 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6943 echo creating
"$ac_file"
6945 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6947 *Makefile
*) ac_comsub
="1i\\
6948 # $configure_input" ;;
6952 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6954 s%@configure_input@%$configure_input%g
6955 s%@srcdir@%$srcdir%g
6956 s%@top_srcdir@%$top_srcdir%g
6957 s%@INSTALL@%$INSTALL%g
6958 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6962 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6963 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6965 # ac_d sets the value in "#define NAME VALUE" lines.
6966 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6967 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6970 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6971 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6972 ac_uB
='\([ ]\)%\1#\2define\3'
6975 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6976 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6977 ac_eB
='$%\1#\2define\3'
6981 if test "${CONFIG_HEADERS+set}" != set; then
6983 cat >> $CONFIG_STATUS <<EOF
6984 CONFIG_HEADERS="./include/wx/gtk/setup.h:./setup/setup.hin"
6986 cat >> $CONFIG_STATUS <<\EOF
6988 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6989 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6991 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6992 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6993 *) ac_file_in
="${ac_file}.in" ;;
6996 echo creating
$ac_file
6998 rm -f conftest.frag conftest.
in conftest.out
6999 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7000 cat $ac_file_inputs > conftest.
in
7004 # Transform confdefs.h into a sed script conftest.vals that substitutes
7005 # the proper values into config.h.in to produce config.h. And first:
7006 # Protect against being on the right side of a sed subst in config.status.
7007 # Protect against being in an unquoted here document in config.status.
7009 cat > conftest.hdr
<<\EOF
7012 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7016 sed -n -f conftest.hdr confdefs.h > conftest.vals
7019 # This sed command replaces #undef with comments. This is necessary, for
7020 # example, in the case of _POSIX_SOURCE, which is predefined and required
7021 # on some systems where configure will not decide to define it.
7022 cat >> conftest.vals <<\EOF
7023 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7026 # Break up conftest.vals because some shells have a limit on
7027 # the size of here documents, and old seds have small limits too.
7032 ac_lines=`grep -c . conftest.vals
`
7033 # grep -c gives empty output for an empty file on some AIX systems.
7034 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7035 # Write a limited-size here document to conftest.frag.
7036 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7037 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7039 sed -f conftest.frag conftest.in > conftest.out
7041 mv conftest.out conftest.in
7043 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7045 mv conftest.tail conftest.vals
7049 cat >> $CONFIG_STATUS <<\EOF
7050 rm -f conftest.frag conftest.h
7051 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7052 cat conftest.in >> conftest.h
7054 if cmp -s $ac_file conftest.h 2>/dev/null; then
7055 echo "$ac_file is unchanged"
7058 # Remove last slash and all that follows it. Not all systems have dirname.
7059 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7060 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7061 # The file is in a subdirectory.
7062 test ! -d "$ac_dir" && mkdir "$ac_dir"
7065 mv conftest.h $ac_file
7070 cat >> $CONFIG_STATUS <<EOF
7073 cat >> $CONFIG_STATUS <<\EOF
7074 ./setup/general/createall
7077 chmod +x $CONFIG_STATUS
7078 rm -fr confdefs* $ac_clean_files
7079 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7083 mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache