3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-x use the X Window System"
21 **--with-motif use Motif/Lesstif"
23 **--with-shared create shared libraries"
25 **--with-optimise create optimised code"
27 **--with-debug_flag create code with WXDEBUG define set to 1"
29 **--with-debug_info create code with debuging information"
31 **--with-debug_gdb create code with extra GDB debuging information"
33 **--with-mem_traing create code with memory tracing"
35 **--with-dmalloc use dmalloc memory debug library (www.letters.com/dmalloc/)"
37 **--with-profile create code with profiling information"
39 **--with_apple_ieee use the Apple IEEE codec"
41 **--with-threads for enabling threads"
43 **--with-dynlib to compile wxLibrary class"
45 **--without-zlib don't use zlib for LZW comression"
47 **--without-libpng don't use libpng (PNG image format)"
49 **--without-libjpeg don't use libjpeg (JPEG image format)"
51 **--with-odbc use iODBC and wxODBC classes"
53 **--with-timedate use wxTime and wxDate classes"
55 **--with-intl use internationalization system"
57 **--with-config use wxConfig class"
59 **--with-streams use wxStream etc classes"
61 **--with-serial use class serialization"
63 **--with-sockets use wxSocket etc classes"
65 **--with-afmfonts use Adobe Font Metric Font table"
67 **--with-PS-normalized use normalized PS fonts"
69 **--with-postscript use wxPostscriptDC device context"
71 **--with-unicode compile wxString with Unicode support"
73 **--with-wcsrtombs use wcsrtombs instead of (buggy in GNU libc5) wcstombs"
75 **--with-wxresources use wxWindows's resources"
77 **--with-prologio use Prolog IO library"
79 **--with-rpc use Prolog's remote procedure calls"
81 **--with-ipc use interprocess communication (wxSocket etc.)"
83 **--with-resources use X resources for saving information"
85 **--with-clipboard use wxClipboard classes"
87 **--with-tooltips use tooltips"
89 **--with-dnd use Drag'n'Drop classes"
91 **--with-mdi use multiple document interface architecture"
93 **--with-docview use document view architecture"
95 **--with-printarch use printing architecture"
97 **--with-help use help (using external browser at present)"
99 **--with-gtk-prefix=PFX Prefix where GTK is installed"
101 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
103 # Initialize some variables set by options.
104 # The variables have the same names as the options, with
105 # dashes changed to underlines.
107 cache_file
=.
/config.cache
116 program_transform_name
=s
,x
,x
,
124 bindir
='${exec_prefix}/bin'
125 sbindir
='${exec_prefix}/sbin'
126 libexecdir
='${exec_prefix}/libexec'
127 datadir
='${prefix}/share'
128 sysconfdir
='${prefix}/etc'
129 sharedstatedir
='${prefix}/com'
130 localstatedir
='${prefix}/var'
131 libdir
='${exec_prefix}/lib'
132 includedir
='${prefix}/include'
133 oldincludedir
='/usr/include'
134 infodir
='${prefix}/info'
135 mandir
='${prefix}/man'
137 # Initialize some other variables.
140 # Maximum number of lines to put in a shell here document.
147 # If the previous option needs an argument, assign it.
148 if test -n "$ac_prev"; then
149 eval "$ac_prev=\$ac_option"
155 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
159 # Accept the important Cygnus configure options, so we can diagnose typos.
163 -bindir | --bindir | --bindi | --bind | --bin | --bi)
165 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
166 bindir
="$ac_optarg" ;;
168 -build | --build | --buil | --bui | --bu)
170 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
171 build
="$ac_optarg" ;;
173 -cache-file | --cache-file | --cache-fil | --cache-fi \
174 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
175 ac_prev
=cache_file
;;
176 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
177 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
178 cache_file
="$ac_optarg" ;;
180 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
182 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
184 datadir
="$ac_optarg" ;;
186 -disable-* | --disable-*)
187 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
188 # Reject names that are not valid shell variable names.
189 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
190 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
192 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}=no" ;;
195 -enable-* | --enable-*)
196 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
197 # Reject names that are not valid shell variable names.
198 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
199 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
201 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
206 eval "enable_${ac_feature}='$ac_optarg'" ;;
208 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
209 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
210 | --exec | --exe | --ex)
211 ac_prev
=exec_prefix
;;
212 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
213 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
214 | --exec=* | --exe=* | --ex=*)
215 exec_prefix
="$ac_optarg" ;;
217 -gas | --gas | --ga | --g)
218 # Obsolete; use --with-gas.
221 -help | --help | --hel | --he)
222 # Omit some internal or obsolete options to make the list less imposing.
223 # This message is too long to be a string in the A/UX 3.1 sh.
225 Usage: configure [options] [host]
226 Options: [defaults in brackets after descriptions]
228 --cache-file=FILE cache test results in FILE
229 --help print this message
230 --no-create do not create output files
231 --quiet, --silent do not print \`checking...' messages
232 --version print the version of autoconf that created configure
233 Directory and file names:
234 --prefix=PREFIX install architecture-independent files in PREFIX
236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
238 --bindir=DIR user executables in DIR [EPREFIX/bin]
239 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
240 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
241 --datadir=DIR read-only architecture-independent data in DIR
243 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
244 --sharedstatedir=DIR modifiable architecture-independent data in DIR
246 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
247 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
248 --includedir=DIR C header files in DIR [PREFIX/include]
249 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
250 --infodir=DIR info documentation in DIR [PREFIX/info]
251 --mandir=DIR man documentation in DIR [PREFIX/man]
252 --srcdir=DIR find the sources in DIR [configure dir or ..]
253 --program-prefix=PREFIX prepend PREFIX to installed program names
254 --program-suffix=SUFFIX append SUFFIX to installed program names
255 --program-transform-name=PROGRAM
256 run sed PROGRAM on installed program names
260 --build=BUILD configure for building on BUILD [BUILD=HOST]
261 --host=HOST configure for HOST [guessed]
262 --target=TARGET configure for TARGET [TARGET=HOST]
263 Features and packages:
264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
266 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
267 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
268 --x-includes=DIR X include files are in DIR
269 --x-libraries=DIR X library files are in DIR
271 if test -n "$ac_help"; then
272 echo "--enable and --with options recognized:$ac_help"
276 -host | --host | --hos | --ho)
278 -host=* | --host=* | --hos=* | --ho=*)
281 -includedir | --includedir | --includedi | --included | --include \
282 | --includ | --inclu | --incl | --inc)
283 ac_prev
=includedir
;;
284 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
285 | --includ=* | --inclu=* | --incl=* | --inc=*)
286 includedir
="$ac_optarg" ;;
288 -infodir | --infodir | --infodi | --infod | --info | --inf)
290 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
291 infodir
="$ac_optarg" ;;
293 -libdir | --libdir | --libdi | --libd)
295 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 libdir
="$ac_optarg" ;;
298 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
299 | --libexe | --libex | --libe)
300 ac_prev
=libexecdir
;;
301 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
302 | --libexe=* | --libex=* | --libe=*)
303 libexecdir
="$ac_optarg" ;;
305 -localstatedir | --localstatedir | --localstatedi | --localstated \
306 | --localstate | --localstat | --localsta | --localst \
307 | --locals | --local | --loca | --loc | --lo)
308 ac_prev
=localstatedir
;;
309 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
310 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
311 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
312 localstatedir
="$ac_optarg" ;;
314 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
317 mandir
="$ac_optarg" ;;
320 # Obsolete; use --without-fp.
323 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
327 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
328 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
331 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
332 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
333 | --oldin | --oldi | --old | --ol | --o)
334 ac_prev
=oldincludedir
;;
335 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
336 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
337 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
338 oldincludedir
="$ac_optarg" ;;
340 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 prefix
="$ac_optarg" ;;
345 -program-prefix | --program-prefix | --program-prefi | --program-pref \
346 | --program-pre | --program-pr | --program-p)
347 ac_prev
=program_prefix
;;
348 -program-prefix=* | --program-prefix=* | --program-prefi=* \
349 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
350 program_prefix
="$ac_optarg" ;;
352 -program-suffix | --program-suffix | --program-suffi | --program-suff \
353 | --program-suf | --program-su | --program-s)
354 ac_prev
=program_suffix
;;
355 -program-suffix=* | --program-suffix=* | --program-suffi=* \
356 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
357 program_suffix
="$ac_optarg" ;;
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 ac_prev
=program_transform_name
;;
367 -program-transform-name=* | --program-transform-name=* \
368 | --program-transform-nam=* | --program-transform-na=* \
369 | --program-transform-n=* | --program-transform-=* \
370 | --program-transform=* | --program-transfor=* \
371 | --program-transfo=* | --program-transf=* \
372 | --program-trans=* | --program-tran=* \
373 | --progr-tra=* | --program-tr=* | --program-t=*)
374 program_transform_name
="$ac_optarg" ;;
376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
377 | -silent | --silent | --silen | --sile | --sil)
380 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
382 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
384 sbindir
="$ac_optarg" ;;
386 -sharedstatedir | --sharedstatedir | --sharedstatedi \
387 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
388 | --sharedst | --shareds | --shared | --share | --shar \
390 ac_prev
=sharedstatedir
;;
391 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
392 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
393 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
395 sharedstatedir
="$ac_optarg" ;;
397 -site | --site | --sit)
399 -site=* | --site=* | --sit=*)
402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 srcdir
="$ac_optarg" ;;
407 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
408 | --syscon | --sysco | --sysc | --sys | --sy)
409 ac_prev
=sysconfdir
;;
410 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
411 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
412 sysconfdir
="$ac_optarg" ;;
414 -target | --target | --targe | --targ | --tar | --ta | --t)
416 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
417 target
="$ac_optarg" ;;
419 -v | -verbose | --verbose | --verbos | --verbo | --verb)
422 -version | --version | --versio | --versi | --vers)
423 echo "configure generated by autoconf version 2.12"
427 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package
=`echo $ac_package| sed 's/-/_/g'`
437 eval "with_${ac_package}='$ac_optarg'" ;;
439 -without-* | --without-*)
440 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
441 # Reject names that are not valid shell variable names.
442 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
443 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 ac_package
=`echo $ac_package| sed 's/-/_/g'`
446 eval "with_${ac_package}=no" ;;
449 # Obsolete; use --with-x.
452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453 | --x-incl | --x-inc | --x-in | --x-i)
454 ac_prev
=x_includes
;;
455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
457 x_includes
="$ac_optarg" ;;
459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461 ac_prev
=x_libraries
;;
462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
464 x_libraries
="$ac_optarg" ;;
466 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
470 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
471 echo "configure: warning: $ac_option: invalid host type" 1>&2
473 if test "x$nonopt" != xNONE
; then
474 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
482 if test -n "$ac_prev"; then
483 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
488 # File descriptor usage:
491 # 2 errors and warnings
492 # 3 some systems may open it to /dev/tty
493 # 4 used on the Kubota Titan
494 # 6 checking for... messages and results
495 # 5 compiler messages saved in config.log
496 if test "$silent" = yes; then
504 This file contains any messages produced by compilers while
505 running configure, to aid debugging if configure makes a mistake.
508 # Strip out --no-create and --no-recursion so they do not pile up.
509 # Also quote any args containing shell metacharacters.
514 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
515 | --no-cr | --no-c) ;;
516 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
517 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
518 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
519 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
520 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
525 # Only set these to C if already set. These must not be set unconditionally
526 # because not all systems understand e.g. LANG=C (notably SCO).
527 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
528 # Non-C LC_CTYPE values break the ctype check.
529 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
530 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
531 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
532 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
535 rm -rf conftest
* confdefs.h
536 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
539 # A filename unique to this package, relative to the directory that
540 # configure is in, which we can look for to find out if srcdir is correct.
541 ac_unique_file
=configure.
in
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545 ac_srcdir_defaulted
=yes
546 # Try the directory containing this script, then its parent.
548 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
551 if test ! -r $srcdir/$ac_unique_file; then
555 ac_srcdir_defaulted
=no
557 if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
559 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
561 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
564 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
566 # Prefer explicitly selected file to automatically selected ones.
567 if test -z "$CONFIG_SITE"; then
568 if test "x$prefix" != xNONE
; then
569 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
571 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
574 for ac_site_file
in $CONFIG_SITE; do
575 if test -r "$ac_site_file"; then
576 echo "loading site script $ac_site_file"
581 if test -r "$cache_file"; then
582 echo "loading cache $cache_file"
585 echo "creating cache $cache_file"
590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
591 ac_cpp
='$CPP $CPPFLAGS'
592 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
593 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
594 cross_compiling
=$ac_cv_prog_cc_cross
596 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
597 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
598 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
605 ac_n
= ac_c
='\c' ac_t
=
613 if test "x$OS" = "x"; then
615 { echo "configure: error: "The system variable OS has not been
set"
616 "please
set is everytime befor compiling on this system
"
617 "A good example
for this system would be
:"
618 "setenv OSTYPE
$UNAME for csh as a SHELL
"
619 "EXPORT OSTYPE
=$UNAME for sh as SHELL
"
620 "please
set this and restart again.
"
630 /usr/Motif-1.2/include \
631 /usr/Motif-2.1/include \
633 /usr/include/Motif1.2 \
634 /opt/xpm/include/X11 \
636 /usr/Motif1.2/include \
652 /usr/local/X11R6/include \
653 /usr/local/X11R5/include \
654 /usr/local/X11R4/include \
656 /usr/local/include/X11R6 \
657 /usr/local/include/X11R5 \
658 /usr/local/include/X11R4 \
662 /usr/local/X11/include \
663 /usr/local/include/X11 \
667 /usr/XFree86/include/X11 \
674 /usr/unsupported/include \
675 /usr/athena/include \
676 /usr/local/x11r5/include \
677 /usr/lpp/Xamples/include \
679 /usr/local/include/gtk \
680 /usr/local/include/qt \
683 /usr/openwin/include \
684 /usr/openwin/share/include \
687 SEARCH_LIB
="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
691 # Extract the first word of "gcc", so it can be a program name with args.
692 set dummy gcc
; ac_word
=$2
693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
694 echo "configure:695: checking for $ac_word" >&5
695 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 if test -n "$CC"; then
699 ac_cv_prog_CC
="$CC" # Let the user override the test.
701 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
702 for ac_dir
in $PATH; do
703 test -z "$ac_dir" && ac_dir
=.
704 if test -f $ac_dir/$ac_word; then
713 if test -n "$CC"; then
714 echo "$ac_t""$CC" 1>&6
716 echo "$ac_t""no" 1>&6
719 if test -z "$CC"; then
720 # Extract the first word of "cc", so it can be a program name with args.
721 set dummy cc
; ac_word
=$2
722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
723 echo "configure:724: checking for $ac_word" >&5
724 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
725 echo $ac_n "(cached) $ac_c" 1>&6
727 if test -n "$CC"; then
728 ac_cv_prog_CC
="$CC" # Let the user override the test.
730 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
732 for ac_dir
in $PATH; do
733 test -z "$ac_dir" && ac_dir
=.
734 if test -f $ac_dir/$ac_word; then
735 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
744 if test $ac_prog_rejected = yes; then
745 # We found a bogon in the path, so make sure we never use it.
746 set dummy
$ac_cv_prog_CC
748 if test $# -gt 0; then
749 # We chose a different compiler from the bogus one.
750 # However, it has the same basename, so the bogon will be chosen
751 # first if we set CC to just the basename; use the full file name.
753 set dummy
"$ac_dir/$ac_word" "$@"
761 if test -n "$CC"; then
762 echo "$ac_t""$CC" 1>&6
764 echo "$ac_t""no" 1>&6
767 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
771 echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775 ac_cpp
='$CPP $CPPFLAGS'
776 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778 cross_compiling
=$ac_cv_prog_cc_cross
780 cat > conftest.
$ac_ext <<EOF
781 #line 782 "configure"
782 #include "confdefs.h"
785 if { (eval echo configure
:786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
786 ac_cv_prog_cc_works
=yes
787 # If we can't run a trivial program, we are probably using a cross compiler.
788 if (.
/conftest
; exit) 2>/dev
/null
; then
789 ac_cv_prog_cc_cross
=no
791 ac_cv_prog_cc_cross
=yes
794 echo "configure: failed program was:" >&5
795 cat conftest.
$ac_ext >&5
796 ac_cv_prog_cc_works
=no
800 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
801 if test $ac_cv_prog_cc_works = no
; then
802 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
804 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
805 echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
806 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
807 cross_compiling
=$ac_cv_prog_cc_cross
809 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
810 echo "configure:811: checking whether we are using GNU C" >&5
811 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 cat > conftest.c
<<EOF
819 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
826 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
828 if test $ac_cv_prog_gcc = yes; then
830 ac_test_CFLAGS
="${CFLAGS+set}"
831 ac_save_CFLAGS
="$CFLAGS"
833 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
834 echo "configure:835: checking whether ${CC-cc} accepts -g" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 echo 'void f(){}' > conftest.c
839 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
848 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
849 if test "$ac_test_CFLAGS" = set; then
850 CFLAGS
="$ac_save_CFLAGS"
851 elif test $ac_cv_prog_cc_g = yes; then
858 test "${CFLAGS+set}" = set || CFLAGS
="-g"
862 CFLAGS
=`echo "$CFLAGS" | sed 's/-g//g'`
864 if test "x$CC" != xcc
; then
865 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
866 echo "configure:867: checking whether $CC and cc understand -c and -o together" >&5
868 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
869 echo "configure:870: checking whether cc understands -c and -o together" >&5
871 set dummy
$CC; ac_cc
="`echo $2 |
872 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
873 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
876 echo 'foo(){}' > conftest.c
877 # Make sure it works both with $CC and with simple cc.
878 # We do the test twice because some compilers refuse to overwrite an
879 # existing .o file with -o, though they will create one.
880 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
881 if { (eval echo configure
:882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
882 test -f conftest.o
&& { (eval echo configure
:883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
884 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
885 if test "x$CC" != xcc
; then
886 # Test first that cc exists at all.
887 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
888 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
889 if { (eval echo configure
:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
890 test -f conftest.o
&& { (eval echo configure
:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
895 # cc exists but doesn't like -o.
896 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
901 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
906 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
907 echo "$ac_t""yes" 1>&6
909 echo "$ac_t""no" 1>&6
910 cat >> confdefs.h
<<\EOF
911 #define NO_MINUS_C_MINUS_O 1
916 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
917 echo "configure:918: checking how to run the C preprocessor" >&5
918 # On Suns, sometimes $CPP names a directory.
919 if test -n "$CPP" && test -d "$CPP"; then
922 if test -z "$CPP"; then
923 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
924 echo $ac_n "(cached) $ac_c" 1>&6
926 # This must be in double quotes, not single quotes, because CPP may get
927 # substituted into the Makefile and "${CC-cc}" will confuse make.
929 # On the NeXT, cc -E runs the code through the compiler's parser,
930 # not just through cpp.
931 cat > conftest.
$ac_ext <<EOF
932 #line 933 "configure"
933 #include "confdefs.h"
937 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
938 { (eval echo configure
:939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
939 ac_err
=`grep -v '^ *+' conftest.out`
940 if test -z "$ac_err"; then
944 echo "configure: failed program was:" >&5
945 cat conftest.
$ac_ext >&5
947 CPP
="${CC-cc} -E -traditional-cpp"
948 cat > conftest.
$ac_ext <<EOF
949 #line 950 "configure"
950 #include "confdefs.h"
954 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
955 { (eval echo configure
:956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
956 ac_err
=`grep -v '^ *+' conftest.out`
957 if test -z "$ac_err"; then
961 echo "configure: failed program was:" >&5
962 cat conftest.
$ac_ext >&5
969 ac_cv_prog_CPP
="$CPP"
971 CPP
="$ac_cv_prog_CPP"
973 ac_cv_prog_CPP
="$CPP"
975 echo "$ac_t""$CPP" 1>&6
977 if test $ac_cv_prog_gcc = yes; then
978 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
979 echo "configure:980: checking whether ${CC-cc} needs -traditional" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
983 ac_pattern
="Autoconf.*'x'"
984 cat > conftest.
$ac_ext <<EOF
985 #line 986 "configure"
986 #include "confdefs.h"
990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
991 egrep "$ac_pattern" >/dev
/null
2>&1; then
993 ac_cv_prog_gcc_traditional
=yes
996 ac_cv_prog_gcc_traditional
=no
1001 if test $ac_cv_prog_gcc_traditional = no
; then
1002 cat > conftest.
$ac_ext <<EOF
1003 #line 1004 "configure"
1004 #include "confdefs.h"
1008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1009 egrep "$ac_pattern" >/dev
/null
2>&1; then
1011 ac_cv_prog_gcc_traditional
=yes
1018 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1019 if test $ac_cv_prog_gcc_traditional = yes; then
1020 CC
="$CC -traditional"
1027 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1029 # Extract the first word of "$ac_prog", so it can be a program name with args.
1030 set dummy
$ac_prog; ac_word
=$2
1031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1032 echo "configure:1033: checking for $ac_word" >&5
1033 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 if test -n "$CXX"; then
1037 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1039 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1040 for ac_dir
in $PATH; do
1041 test -z "$ac_dir" && ac_dir
=.
1042 if test -f $ac_dir/$ac_word; then
1043 ac_cv_prog_CXX
="$ac_prog"
1050 CXX
="$ac_cv_prog_CXX"
1051 if test -n "$CXX"; then
1052 echo "$ac_t""$CXX" 1>&6
1054 echo "$ac_t""no" 1>&6
1057 test -n "$CXX" && break
1059 test -n "$CXX" || CXX
="gcc"
1062 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1063 echo "configure:1064: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1066 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1067 ac_cpp
='$CXXCPP $CPPFLAGS'
1068 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1069 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1070 cross_compiling
=$ac_cv_prog_cxx_cross
1072 cat > conftest.
$ac_ext <<EOF
1073 #line 1074 "configure"
1074 #include "confdefs.h"
1077 if { (eval echo configure
:1078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1078 ac_cv_prog_cxx_works
=yes
1079 # If we can't run a trivial program, we are probably using a cross compiler.
1080 if (.
/conftest
; exit) 2>/dev
/null
; then
1081 ac_cv_prog_cxx_cross
=no
1083 ac_cv_prog_cxx_cross
=yes
1086 echo "configure: failed program was:" >&5
1087 cat conftest.
$ac_ext >&5
1088 ac_cv_prog_cxx_works
=no
1092 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1093 ac_cpp
='$CPP $CPPFLAGS'
1094 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1095 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1096 cross_compiling
=$ac_cv_prog_cc_cross
1098 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1099 if test $ac_cv_prog_cxx_works = no
; then
1100 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1102 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1103 echo "configure:1104: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1104 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1105 cross_compiling
=$ac_cv_prog_cxx_cross
1107 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1108 echo "configure:1109: checking whether we are using GNU C++" >&5
1109 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1112 cat > conftest.C
<<EOF
1117 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
1124 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1126 if test $ac_cv_prog_gxx = yes; then
1128 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1129 ac_save_CXXFLAGS
="$CXXFLAGS"
1131 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1132 echo "configure:1133: checking whether ${CXX-g++} accepts -g" >&5
1133 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1136 echo 'void f(){}' > conftest.cc
1137 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1138 ac_cv_prog_cxx_g
=yes
1146 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1147 if test "$ac_test_CXXFLAGS" = set; then
1148 CXXFLAGS
="$ac_save_CXXFLAGS"
1149 elif test $ac_cv_prog_cxx_g = yes; then
1156 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1159 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1160 echo "configure:1161: checking how to run the C++ preprocessor" >&5
1161 if test -z "$CXXCPP"; then
1162 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1166 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1167 ac_cpp
='$CXXCPP $CPPFLAGS'
1168 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1169 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1170 cross_compiling
=$ac_cv_prog_cxx_cross
1171 CXXCPP
="${CXX-g++} -E"
1172 cat > conftest.
$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1177 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1178 { (eval echo configure
:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1179 ac_err
=`grep -v '^ *+' conftest.out`
1180 if test -z "$ac_err"; then
1184 echo "configure: failed program was:" >&5
1185 cat conftest.
$ac_ext >&5
1190 ac_cv_prog_CXXCPP
="$CXXCPP"
1192 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1193 ac_cpp
='$CPP $CPPFLAGS'
1194 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1195 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1196 cross_compiling
=$ac_cv_prog_cc_cross
1199 CXXCPP
="$ac_cv_prog_CXXCPP"
1200 echo "$ac_t""$CXXCPP" 1>&6
1203 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-g//g'`
1207 # Extract the first word of "ranlib", so it can be a program name with args.
1208 set dummy ranlib
; ac_word
=$2
1209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1210 echo "configure:1211: checking for $ac_word" >&5
1211 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1214 if test -n "$RANLIB"; then
1215 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1217 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1218 for ac_dir
in $PATH; do
1219 test -z "$ac_dir" && ac_dir
=.
1220 if test -f $ac_dir/$ac_word; then
1221 ac_cv_prog_RANLIB
="ranlib"
1226 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1229 RANLIB
="$ac_cv_prog_RANLIB"
1230 if test -n "$RANLIB"; then
1231 echo "$ac_t""$RANLIB" 1>&6
1233 echo "$ac_t""no" 1>&6
1237 # Extract the first word of "ar", so it can be a program name with args.
1238 set dummy
ar; ac_word
=$2
1239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1240 echo "configure:1241: checking for $ac_word" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1244 if test -n "$AR"; then
1245 ac_cv_prog_AR
="$AR" # Let the user override the test.
1247 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1248 for ac_dir
in $PATH; do
1249 test -z "$ac_dir" && ac_dir
=.
1250 if test -f $ac_dir/$ac_word; then
1256 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1260 if test -n "$AR"; then
1261 echo "$ac_t""$AR" 1>&6
1263 echo "$ac_t""no" 1>&6
1268 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1269 if test -f $ac_dir/install-sh; then
1271 ac_install_sh
="$ac_aux_dir/install-sh -c"
1273 elif test -f $ac_dir/install.sh
; then
1275 ac_install_sh
="$ac_aux_dir/install.sh -c"
1279 if test -z "$ac_aux_dir"; then
1280 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1282 ac_config_guess
=$ac_aux_dir/config.guess
1283 ac_config_sub
=$ac_aux_dir/config.sub
1284 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1286 # Find a good install program. We prefer a C program (faster),
1287 # so one script is as good as another. But avoid the broken or
1288 # incompatible versions:
1289 # SysV /etc/install, /usr/sbin/install
1290 # SunOS /usr/etc/install
1291 # IRIX /sbin/install
1293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1295 # ./install, which can be erroneously created by make from ./install.sh.
1296 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1297 echo "configure:1298: checking for a BSD compatible install" >&5
1298 if test -z "$INSTALL"; then
1299 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1303 for ac_dir
in $PATH; do
1304 # Account for people who put trailing slashes in PATH elements.
1306 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1308 # OSF1 and SCO ODT 3.0 have their own names for install.
1309 for ac_prog
in ginstall installbsd scoinst
install; do
1310 if test -f $ac_dir/$ac_prog; then
1311 if test $ac_prog = install &&
1312 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1313 # AIX install. It has an incompatible calling convention.
1314 # OSF/1 installbsd also uses dspmsg, but is usable.
1317 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1328 if test "${ac_cv_path_install+set}" = set; then
1329 INSTALL
="$ac_cv_path_install"
1331 # As a last resort, use the slow shell script. We don't cache a
1332 # path for INSTALL within a source directory, because that will
1333 # break other packages using the cache if that directory is
1334 # removed, or if the path is relative.
1335 INSTALL
="$ac_install_sh"
1338 echo "$ac_t""$INSTALL" 1>&6
1340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1341 # It thinks the first close brace ends the variable substitution.
1342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1344 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1347 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1348 echo "configure:1349: checking whether ln -s works" >&5
1349 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1353 if ln -s X conftestdata
2>/dev
/null
1356 ac_cv_prog_LN_S
="ln -s"
1361 LN_S
="$ac_cv_prog_LN_S"
1362 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1363 echo "$ac_t""yes" 1>&6
1365 echo "$ac_t""no" 1>&6
1369 for ac_prog
in mawk gawk nawk
awk
1371 # Extract the first word of "$ac_prog", so it can be a program name with args.
1372 set dummy
$ac_prog; ac_word
=$2
1373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1374 echo "configure:1375: checking for $ac_word" >&5
1375 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 if test -n "$AWK"; then
1379 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1381 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1382 for ac_dir
in $PATH; do
1383 test -z "$ac_dir" && ac_dir
=.
1384 if test -f $ac_dir/$ac_word; then
1385 ac_cv_prog_AWK
="$ac_prog"
1392 AWK
="$ac_cv_prog_AWK"
1393 if test -n "$AWK"; then
1394 echo "$ac_t""$AWK" 1>&6
1396 echo "$ac_t""no" 1>&6
1399 test -n "$AWK" && break
1403 # Extract the first word of "strip", so it can be a program name with args.
1404 set dummy strip
; ac_word
=$2
1405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1406 echo "configure:1407: checking for $ac_word" >&5
1407 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 if test -n "$STRIP"; then
1411 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1413 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1414 for ac_dir
in $PATH; do
1415 test -z "$ac_dir" && ac_dir
=.
1416 if test -f $ac_dir/$ac_word; then
1417 ac_cv_prog_STRIP
="strip"
1422 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
="true"
1425 STRIP
="$ac_cv_prog_STRIP"
1426 if test -n "$STRIP"; then
1427 echo "$ac_t""$STRIP" 1>&6
1429 echo "$ac_t""no" 1>&6
1433 echo $ac_n "checking "make for VPATH support
"""... $ac_c" 1>&6
1434 echo "configure:1435: checking "make for VPATH support
"" >&5
1435 cat - << EOF > confMake
1441 if test ! -d sub
; then
1444 echo dummy
> sub
/file
1445 ${MAKE-make} -f confMake VPATH
=sub
2> config.log
> /dev
/null
1447 rm -f sub
/file check final_file confMake
1449 if test "$RESULT" = 0; then
1450 echo "$ac_t""yes" 1>&6
1452 echo "$ac_t""no" 1>&6
1453 { echo "configure: error: You need a make-utility that is able to use the variable
1455 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
1459 # If we find X, set shell vars x_includes and x_libraries to the
1460 # paths, otherwise set no_x=yes.
1461 # Uses ac_ vars as temps to allow command line to override cache and checks.
1462 # --without-x overrides everything else, but does not touch the cache.
1463 echo $ac_n "checking for X""... $ac_c" 1>&6
1464 echo "configure:1465: checking for X" >&5
1466 # Check whether --with-x or --without-x was given.
1467 if test "${with_x+set}" = set; then
1472 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1473 if test "x$with_x" = xno
; then
1474 # The user explicitly disabled X.
1477 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1478 # Both variables are already set.
1481 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1484 # One or both of the vars are not set, and there is no cached value.
1485 ac_x_includes
=NO ac_x_libraries
=NO
1487 if mkdir conftestdir
; then
1489 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1490 cat > Imakefile
<<'EOF'
1492 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1494 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1495 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1496 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1497 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1498 for ac_extension
in a so sl
; do
1499 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1500 test -f $ac_im_libdir/libX11.
$ac_extension; then
1501 ac_im_usrlibdir
=$ac_im_libdir; break
1504 # Screen out bogus values from the imake configuration. They are
1505 # bogus both because they are the default anyway, and because
1506 # using them would break gcc on systems where it needs fixed includes.
1507 case "$ac_im_incroot" in
1509 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1511 case "$ac_im_usrlibdir" in
1513 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1520 if test "$ac_x_includes" = NO
; then
1521 # Guess where to find include files, by looking for this one X11 .h file.
1522 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1524 # First, try using that file with no special directory specified.
1525 cat > conftest.
$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1528 #include <$x_direct_test_include>
1530 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1531 { (eval echo configure
:1532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1532 ac_err
=`grep -v '^ *+' conftest.out`
1533 if test -z "$ac_err"; then
1535 # We can compile using X headers with no special include directory.
1539 echo "configure: failed program was:" >&5
1540 cat conftest.
$ac_ext >&5
1542 # Look for the header file in a standard set of common directories.
1543 # Check X11 before X11Rn because it is often a symlink to the current release.
1546 /usr
/X
11R
6/include \
1547 /usr
/X
11R
5/include \
1548 /usr
/X
11R
4/include \
1551 /usr
/include
/X11R6 \
1552 /usr
/include
/X11R5 \
1553 /usr
/include
/X11R4 \
1555 /usr
/local
/X
11/include \
1556 /usr
/local
/X
11R
6/include \
1557 /usr
/local
/X
11R
5/include \
1558 /usr
/local
/X
11R
4/include \
1560 /usr
/local
/include
/X11 \
1561 /usr
/local
/include
/X11R6 \
1562 /usr
/local
/include
/X11R5 \
1563 /usr
/local
/include
/X11R4 \
1567 /usr
/XFree
86/include
/X11 \
1570 /usr
/local
/include \
1571 /usr
/unsupported
/include \
1572 /usr
/athena
/include \
1573 /usr
/local
/x
11r
5/include \
1574 /usr
/lpp
/Xamples
/include \
1576 /usr
/openwin
/include \
1577 /usr
/openwin
/share
/include \
1580 if test -r "$ac_dir/$x_direct_test_include"; then
1581 ac_x_includes
=$ac_dir
1587 fi # $ac_x_includes = NO
1589 if test "$ac_x_libraries" = NO
; then
1590 # Check for the libraries.
1592 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1593 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1595 # See if we find them without any special options.
1596 # Don't add to $LIBS permanently.
1597 ac_save_LIBS
="$LIBS"
1598 LIBS
="-l$x_direct_test_library $LIBS"
1599 cat > conftest.
$ac_ext <<EOF
1600 #line 1601 "configure"
1601 #include "confdefs.h"
1604 ${x_direct_test_function}()
1607 if { (eval echo configure
:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1609 LIBS
="$ac_save_LIBS"
1610 # We can link X programs with no special library path.
1613 echo "configure: failed program was:" >&5
1614 cat conftest.
$ac_ext >&5
1616 LIBS
="$ac_save_LIBS"
1617 # First see if replacing the include by lib works.
1618 # Check X11 before X11Rn because it is often a symlink to the current release.
1619 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1630 /usr
/local
/X
11/lib \
1631 /usr
/local
/X
11R
6/lib \
1632 /usr
/local
/X
11R
5/lib \
1633 /usr
/local
/X
11R
4/lib \
1635 /usr
/local
/lib
/X11 \
1636 /usr
/local
/lib
/X11R6 \
1637 /usr
/local
/lib
/X11R5 \
1638 /usr
/local
/lib
/X11R4 \
1642 /usr
/XFree
86/lib
/X11 \
1646 /usr
/unsupported
/lib \
1648 /usr
/local
/x
11r
5/lib \
1649 /usr
/lpp
/Xamples
/lib \
1653 /usr
/openwin
/share
/lib \
1656 for ac_extension
in a so sl
; do
1657 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1658 ac_x_libraries
=$ac_dir
1665 fi # $ac_x_libraries = NO
1667 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
1668 # Didn't find X anywhere. Cache the known absence of X.
1669 ac_cv_have_x
="have_x=no"
1671 # Record where we found X for the cache.
1672 ac_cv_have_x
="have_x=yes \
1673 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1677 eval "$ac_cv_have_x"
1680 if test "$have_x" != yes; then
1681 echo "$ac_t""$have_x" 1>&6
1684 # If each of the values was on the command line, it overrides each guess.
1685 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1686 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1687 # Update the cache value to reflect the command line values.
1688 ac_cv_have_x
="have_x=yes \
1689 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1690 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1693 if test "$no_x" = yes; then
1694 # Not all programs may use this symbol, but it does not hurt to define it.
1695 cat >> confdefs.h
<<\EOF
1696 #define X_DISPLAY_MISSING 1
1699 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1701 if test -n "$x_includes"; then
1702 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1705 # It would also be nice to do this for all -L options, not just this one.
1706 if test -n "$x_libraries"; then
1707 X_LIBS
="$X_LIBS -L$x_libraries"
1708 # For Solaris; some versions of Sun CC require a space after -R and
1709 # others require no space. Words are not sufficient . . . .
1710 case "`(uname -sr) 2>/dev/null`" in
1712 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1713 echo "configure:1714: checking whether -R must be followed by a space" >&5
1714 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1715 cat > conftest.
$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1723 if { (eval echo configure
:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1727 echo "configure: failed program was:" >&5
1728 cat conftest.
$ac_ext >&5
1733 if test $ac_R_nospace = yes; then
1734 echo "$ac_t""no" 1>&6
1735 X_LIBS
="$X_LIBS -R$x_libraries"
1737 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1738 cat > conftest.
$ac_ext <<EOF
1739 #line 1740 "configure"
1740 #include "confdefs.h"
1746 if { (eval echo configure
:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1750 echo "configure: failed program was:" >&5
1751 cat conftest.
$ac_ext >&5
1756 if test $ac_R_space = yes; then
1757 echo "$ac_t""yes" 1>&6
1758 X_LIBS
="$X_LIBS -R $x_libraries"
1760 echo "$ac_t""neither works" 1>&6
1763 LIBS
="$ac_xsave_LIBS"
1767 # Check for system-dependent libraries X programs must link with.
1768 # Do this before checking for the system-independent R6 libraries
1769 # (-lICE), since we may need -lsocket or whatever for X linking.
1771 if test "$ISC" = yes; then
1772 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1774 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1775 # libraries were built with DECnet support. And karl@cs.umb.edu says
1776 # the Alpha needs dnet_stub (dnet does not exist).
1777 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1778 echo "configure:1779: checking for dnet_ntoa in -ldnet" >&5
1779 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1783 ac_save_LIBS
="$LIBS"
1785 cat > conftest.
$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1788 /* Override any gcc2 internal prototype to avoid an error. */
1789 /* We use char because int might match the return type of a gcc2
1790 builtin and then its argument prototype would still apply. */
1797 if { (eval echo configure
:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1799 eval "ac_cv_lib_$ac_lib_var=yes"
1801 echo "configure: failed program was:" >&5
1802 cat conftest.
$ac_ext >&5
1804 eval "ac_cv_lib_$ac_lib_var=no"
1807 LIBS
="$ac_save_LIBS"
1810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1811 echo "$ac_t""yes" 1>&6
1812 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1814 echo "$ac_t""no" 1>&6
1817 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1818 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1819 echo "configure:1820: checking for dnet_ntoa in -ldnet_stub" >&5
1820 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1824 ac_save_LIBS
="$LIBS"
1825 LIBS
="-ldnet_stub $LIBS"
1826 cat > conftest.
$ac_ext <<EOF
1827 #line 1828 "configure"
1828 #include "confdefs.h"
1829 /* Override any gcc2 internal prototype to avoid an error. */
1830 /* We use char because int might match the return type of a gcc2
1831 builtin and then its argument prototype would still apply. */
1838 if { (eval echo configure
:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1840 eval "ac_cv_lib_$ac_lib_var=yes"
1842 echo "configure: failed program was:" >&5
1843 cat conftest.
$ac_ext >&5
1845 eval "ac_cv_lib_$ac_lib_var=no"
1848 LIBS
="$ac_save_LIBS"
1851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1852 echo "$ac_t""yes" 1>&6
1853 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1855 echo "$ac_t""no" 1>&6
1860 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1861 # to get the SysV transport functions.
1862 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1864 # The nsl library prevents programs from opening the X display
1865 # on Irix 5.2, according to dickey@clark.net.
1866 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1867 echo "configure:1868: checking for gethostbyname" >&5
1868 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1871 cat > conftest.
$ac_ext <<EOF
1872 #line 1873 "configure"
1873 #include "confdefs.h"
1874 /* System header to define __stub macros and hopefully few prototypes,
1875 which can conflict with char gethostbyname(); below. */
1877 /* Override any gcc2 internal prototype to avoid an error. */
1878 /* We use char because int might match the return type of a gcc2
1879 builtin and then its argument prototype would still apply. */
1880 char gethostbyname();
1884 /* The GNU C library defines this for functions which it implements
1885 to always fail with ENOSYS. Some functions are actually named
1886 something starting with __ and the normal name is an alias. */
1887 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1895 if { (eval echo configure
:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1897 eval "ac_cv_func_gethostbyname=yes"
1899 echo "configure: failed program was:" >&5
1900 cat conftest.
$ac_ext >&5
1902 eval "ac_cv_func_gethostbyname=no"
1907 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1908 echo "$ac_t""yes" 1>&6
1911 echo "$ac_t""no" 1>&6
1914 if test $ac_cv_func_gethostbyname = no
; then
1915 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1916 echo "configure:1917: checking for gethostbyname in -lnsl" >&5
1917 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1918 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1921 ac_save_LIBS
="$LIBS"
1923 cat > conftest.
$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1926 /* Override any gcc2 internal prototype to avoid an error. */
1927 /* We use char because int might match the return type of a gcc2
1928 builtin and then its argument prototype would still apply. */
1929 char gethostbyname();
1935 if { (eval echo configure
:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1937 eval "ac_cv_lib_$ac_lib_var=yes"
1939 echo "configure: failed program was:" >&5
1940 cat conftest.
$ac_ext >&5
1942 eval "ac_cv_lib_$ac_lib_var=no"
1945 LIBS
="$ac_save_LIBS"
1948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1949 echo "$ac_t""yes" 1>&6
1950 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1952 echo "$ac_t""no" 1>&6
1957 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1958 # socket/setsockopt and other routines are undefined under SCO ODT
1959 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1960 # on later versions), says simon@lia.di.epfl.ch: it contains
1961 # gethostby* variants that don't use the nameserver (or something).
1962 # -lsocket must be given before -lnsl if both are needed.
1963 # We assume that if connect needs -lnsl, so does gethostbyname.
1964 echo $ac_n "checking for connect""... $ac_c" 1>&6
1965 echo "configure:1966: checking for connect" >&5
1966 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1969 cat > conftest.
$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1972 /* System header to define __stub macros and hopefully few prototypes,
1973 which can conflict with char connect(); below. */
1975 /* Override any gcc2 internal prototype to avoid an error. */
1976 /* We use char because int might match the return type of a gcc2
1977 builtin and then its argument prototype would still apply. */
1982 /* The GNU C library defines this for functions which it implements
1983 to always fail with ENOSYS. Some functions are actually named
1984 something starting with __ and the normal name is an alias. */
1985 #if defined (__stub_connect) || defined (__stub___connect)
1993 if { (eval echo configure
:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1995 eval "ac_cv_func_connect=yes"
1997 echo "configure: failed program was:" >&5
1998 cat conftest.
$ac_ext >&5
2000 eval "ac_cv_func_connect=no"
2005 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2006 echo "$ac_t""yes" 1>&6
2009 echo "$ac_t""no" 1>&6
2012 if test $ac_cv_func_connect = no
; then
2013 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2014 echo "configure:2015: checking for connect in -lsocket" >&5
2015 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 ac_save_LIBS
="$LIBS"
2020 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
2021 cat > conftest.
$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2024 /* Override any gcc2 internal prototype to avoid an error. */
2025 /* We use char because int might match the return type of a gcc2
2026 builtin and then its argument prototype would still apply. */
2033 if { (eval echo configure
:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2035 eval "ac_cv_lib_$ac_lib_var=yes"
2037 echo "configure: failed program was:" >&5
2038 cat conftest.
$ac_ext >&5
2040 eval "ac_cv_lib_$ac_lib_var=no"
2043 LIBS
="$ac_save_LIBS"
2046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2047 echo "$ac_t""yes" 1>&6
2048 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2050 echo "$ac_t""no" 1>&6
2055 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2056 echo $ac_n "checking for remove""... $ac_c" 1>&6
2057 echo "configure:2058: checking for remove" >&5
2058 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2061 cat > conftest.
$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2064 /* System header to define __stub macros and hopefully few prototypes,
2065 which can conflict with char remove(); below. */
2067 /* Override any gcc2 internal prototype to avoid an error. */
2068 /* We use char because int might match the return type of a gcc2
2069 builtin and then its argument prototype would still apply. */
2074 /* The GNU C library defines this for functions which it implements
2075 to always fail with ENOSYS. Some functions are actually named
2076 something starting with __ and the normal name is an alias. */
2077 #if defined (__stub_remove) || defined (__stub___remove)
2085 if { (eval echo configure
:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2087 eval "ac_cv_func_remove=yes"
2089 echo "configure: failed program was:" >&5
2090 cat conftest.
$ac_ext >&5
2092 eval "ac_cv_func_remove=no"
2097 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2098 echo "$ac_t""yes" 1>&6
2101 echo "$ac_t""no" 1>&6
2104 if test $ac_cv_func_remove = no
; then
2105 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2106 echo "configure:2107: checking for remove in -lposix" >&5
2107 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2111 ac_save_LIBS
="$LIBS"
2112 LIBS
="-lposix $LIBS"
2113 cat > conftest.
$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2116 /* Override any gcc2 internal prototype to avoid an error. */
2117 /* We use char because int might match the return type of a gcc2
2118 builtin and then its argument prototype would still apply. */
2125 if { (eval echo configure
:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2127 eval "ac_cv_lib_$ac_lib_var=yes"
2129 echo "configure: failed program was:" >&5
2130 cat conftest.
$ac_ext >&5
2132 eval "ac_cv_lib_$ac_lib_var=no"
2135 LIBS
="$ac_save_LIBS"
2138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2139 echo "$ac_t""yes" 1>&6
2140 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2142 echo "$ac_t""no" 1>&6
2147 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2148 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2149 echo "configure:2150: checking for shmat" >&5
2150 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2153 cat > conftest.
$ac_ext <<EOF
2154 #line 2155 "configure"
2155 #include "confdefs.h"
2156 /* System header to define __stub macros and hopefully few prototypes,
2157 which can conflict with char shmat(); below. */
2159 /* Override any gcc2 internal prototype to avoid an error. */
2160 /* We use char because int might match the return type of a gcc2
2161 builtin and then its argument prototype would still apply. */
2166 /* The GNU C library defines this for functions which it implements
2167 to always fail with ENOSYS. Some functions are actually named
2168 something starting with __ and the normal name is an alias. */
2169 #if defined (__stub_shmat) || defined (__stub___shmat)
2177 if { (eval echo configure
:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2179 eval "ac_cv_func_shmat=yes"
2181 echo "configure: failed program was:" >&5
2182 cat conftest.
$ac_ext >&5
2184 eval "ac_cv_func_shmat=no"
2189 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2190 echo "$ac_t""yes" 1>&6
2193 echo "$ac_t""no" 1>&6
2196 if test $ac_cv_func_shmat = no
; then
2197 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2198 echo "configure:2199: checking for shmat in -lipc" >&5
2199 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 ac_save_LIBS
="$LIBS"
2205 cat > conftest.
$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2208 /* Override any gcc2 internal prototype to avoid an error. */
2209 /* We use char because int might match the return type of a gcc2
2210 builtin and then its argument prototype would still apply. */
2217 if { (eval echo configure
:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2219 eval "ac_cv_lib_$ac_lib_var=yes"
2221 echo "configure: failed program was:" >&5
2222 cat conftest.
$ac_ext >&5
2224 eval "ac_cv_lib_$ac_lib_var=no"
2227 LIBS
="$ac_save_LIBS"
2230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2231 echo "$ac_t""yes" 1>&6
2232 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2234 echo "$ac_t""no" 1>&6
2240 # Check for libraries that X11R6 Xt/Xaw programs need.
2241 ac_save_LDFLAGS
="$LDFLAGS"
2242 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2243 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2244 # check for ICE first), but we must link in the order -lSM -lICE or
2245 # we get undefined symbols. So assume we have SM if we have ICE.
2246 # These have to be linked with before -lX11, unlike the other
2247 # libraries we check for below, so use a different variable.
2248 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2249 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2250 echo "configure:2251: checking for IceConnectionNumber in -lICE" >&5
2251 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 ac_save_LIBS
="$LIBS"
2257 cat > conftest.
$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2260 /* Override any gcc2 internal prototype to avoid an error. */
2261 /* We use char because int might match the return type of a gcc2
2262 builtin and then its argument prototype would still apply. */
2263 char IceConnectionNumber();
2266 IceConnectionNumber()
2269 if { (eval echo configure
:2270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2271 eval "ac_cv_lib_$ac_lib_var=yes"
2273 echo "configure: failed program was:" >&5
2274 cat conftest.
$ac_ext >&5
2276 eval "ac_cv_lib_$ac_lib_var=no"
2279 LIBS
="$ac_save_LIBS"
2282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2283 echo "$ac_t""yes" 1>&6
2284 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2286 echo "$ac_t""no" 1>&6
2289 LDFLAGS
="$ac_save_LDFLAGS"
2295 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2297 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2298 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_hdr that defines DIR" >&5
2300 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 cat > conftest.
$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2306 #include <sys/types.h>
2312 if { (eval echo configure
:2313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2314 eval "ac_cv_header_dirent_$ac_safe=yes"
2316 echo "configure: failed program was:" >&5
2317 cat conftest.
$ac_ext >&5
2319 eval "ac_cv_header_dirent_$ac_safe=no"
2323 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2324 echo "$ac_t""yes" 1>&6
2325 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2326 cat >> confdefs.h
<<EOF
2327 #define $ac_tr_hdr 1
2329 ac_header_dirent
=$ac_hdr; break
2331 echo "$ac_t""no" 1>&6
2334 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2335 if test $ac_header_dirent = dirent.h
; then
2336 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2337 echo "configure:2338: checking for opendir in -ldir" >&5
2338 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2342 ac_save_LIBS
="$LIBS"
2344 cat > conftest.
$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2347 /* Override any gcc2 internal prototype to avoid an error. */
2348 /* We use char because int might match the return type of a gcc2
2349 builtin and then its argument prototype would still apply. */
2356 if { (eval echo configure
:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2358 eval "ac_cv_lib_$ac_lib_var=yes"
2360 echo "configure: failed program was:" >&5
2361 cat conftest.
$ac_ext >&5
2363 eval "ac_cv_lib_$ac_lib_var=no"
2366 LIBS
="$ac_save_LIBS"
2369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2370 echo "$ac_t""yes" 1>&6
2373 echo "$ac_t""no" 1>&6
2377 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2378 echo "configure:2379: checking for opendir in -lx" >&5
2379 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2383 ac_save_LIBS
="$LIBS"
2385 cat > conftest.
$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2388 /* Override any gcc2 internal prototype to avoid an error. */
2389 /* We use char because int might match the return type of a gcc2
2390 builtin and then its argument prototype would still apply. */
2397 if { (eval echo configure
:2398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2399 eval "ac_cv_lib_$ac_lib_var=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.
$ac_ext >&5
2404 eval "ac_cv_lib_$ac_lib_var=no"
2407 LIBS
="$ac_save_LIBS"
2410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2411 echo "$ac_t""yes" 1>&6
2414 echo "$ac_t""no" 1>&6
2419 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2420 echo "configure:2421: checking for ANSI C header files" >&5
2421 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 cat > conftest.
$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2432 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2433 { (eval echo configure
:2434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2434 ac_err
=`grep -v '^ *+' conftest.out`
2435 if test -z "$ac_err"; then
2437 ac_cv_header_stdc
=yes
2440 echo "configure: failed program was:" >&5
2441 cat conftest.
$ac_ext >&5
2443 ac_cv_header_stdc
=no
2447 if test $ac_cv_header_stdc = yes; then
2448 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2449 cat > conftest.
$ac_ext <<EOF
2450 #line 2451 "configure"
2451 #include "confdefs.h"
2454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2455 egrep "memchr" >/dev
/null
2>&1; then
2459 ac_cv_header_stdc
=no
2465 if test $ac_cv_header_stdc = yes; then
2466 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2467 cat > conftest.
$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2473 egrep "free" >/dev
/null
2>&1; then
2477 ac_cv_header_stdc
=no
2483 if test $ac_cv_header_stdc = yes; then
2484 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2485 if test "$cross_compiling" = yes; then
2488 cat > conftest.
$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2492 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2493 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2495 int main () { int i; for (i = 0; i < 256; i++)
2496 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2500 if { (eval echo configure
:2501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2504 echo "configure: failed program was:" >&5
2505 cat conftest.
$ac_ext >&5
2507 ac_cv_header_stdc
=no
2515 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2516 if test $ac_cv_header_stdc = yes; then
2517 cat >> confdefs.h
<<\EOF
2518 #define STDC_HEADERS 1
2523 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2524 echo "configure:2525: checking for sys/wait.h that is POSIX.1 compatible" >&5
2525 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2528 cat > conftest.
$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2531 #include <sys/types.h>
2532 #include <sys/wait.h>
2534 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2537 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2542 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2545 if { (eval echo configure
:2546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2547 ac_cv_header_sys_wait_h
=yes
2549 echo "configure: failed program was:" >&5
2550 cat conftest.
$ac_ext >&5
2552 ac_cv_header_sys_wait_h
=no
2557 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2558 if test $ac_cv_header_sys_wait_h = yes; then
2559 cat >> confdefs.h
<<\EOF
2560 #define HAVE_SYS_WAIT_H 1
2565 for ac_hdr
in fcntl.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 limits.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
/file.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 sys
/time.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 unistd.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 fnmatch.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
2805 for ac_hdr
in linux
/joystick.h
2807 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2809 echo "configure:2810: checking for $ac_hdr" >&5
2810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 cat > conftest.
$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2818 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2819 { (eval echo configure
:2820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2820 ac_err
=`grep -v '^ *+' conftest.out`
2821 if test -z "$ac_err"; then
2823 eval "ac_cv_header_$ac_safe=yes"
2826 echo "configure: failed program was:" >&5
2827 cat conftest.
$ac_ext >&5
2829 eval "ac_cv_header_$ac_safe=no"
2833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2834 echo "$ac_t""yes" 1>&6
2835 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2836 cat >> confdefs.h
<<EOF
2837 #define $ac_tr_hdr 1
2841 echo "$ac_t""no" 1>&6
2846 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
2847 GTK_JOYSTICK
="gtk/joystick.cpp"
2851 for ac_hdr
in strings.h
2853 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2855 echo "configure:2856: checking for $ac_hdr" >&5
2856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 cat > conftest.
$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2864 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2865 { (eval echo configure
:2866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2866 ac_err
=`grep -v '^ *+' conftest.out`
2867 if test -z "$ac_err"; then
2869 eval "ac_cv_header_$ac_safe=yes"
2872 echo "configure: failed program was:" >&5
2873 cat conftest.
$ac_ext >&5
2875 eval "ac_cv_header_$ac_safe=no"
2879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2880 echo "$ac_t""yes" 1>&6
2881 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2882 cat >> confdefs.h
<<EOF
2883 #define $ac_tr_hdr 1
2887 echo "$ac_t""no" 1>&6
2893 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2894 echo "configure:2895: checking for vprintf" >&5
2895 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 cat > conftest.
$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2901 /* System header to define __stub macros and hopefully few prototypes,
2902 which can conflict with char vprintf(); below. */
2904 /* Override any gcc2 internal prototype to avoid an error. */
2905 /* We use char because int might match the return type of a gcc2
2906 builtin and then its argument prototype would still apply. */
2911 /* The GNU C library defines this for functions which it implements
2912 to always fail with ENOSYS. Some functions are actually named
2913 something starting with __ and the normal name is an alias. */
2914 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2922 if { (eval echo configure
:2923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2924 eval "ac_cv_func_vprintf=yes"
2926 echo "configure: failed program was:" >&5
2927 cat conftest.
$ac_ext >&5
2929 eval "ac_cv_func_vprintf=no"
2934 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2935 echo "$ac_t""yes" 1>&6
2936 cat >> confdefs.h
<<\EOF
2937 #define HAVE_VPRINTF 1
2941 echo "$ac_t""no" 1>&6
2944 if test "$ac_cv_func_vprintf" != yes; then
2945 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2946 echo "configure:2947: checking for _doprnt" >&5
2947 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2950 cat > conftest.
$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 /* System header to define __stub macros and hopefully few prototypes,
2954 which can conflict with char _doprnt(); below. */
2956 /* Override any gcc2 internal prototype to avoid an error. */
2957 /* We use char because int might match the return type of a gcc2
2958 builtin and then its argument prototype would still apply. */
2963 /* The GNU C library defines this for functions which it implements
2964 to always fail with ENOSYS. Some functions are actually named
2965 something starting with __ and the normal name is an alias. */
2966 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2974 if { (eval echo configure
:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2976 eval "ac_cv_func__doprnt=yes"
2978 echo "configure: failed program was:" >&5
2979 cat conftest.
$ac_ext >&5
2981 eval "ac_cv_func__doprnt=no"
2986 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2987 echo "$ac_t""yes" 1>&6
2988 cat >> confdefs.h
<<\EOF
2989 #define HAVE_DOPRNT 1
2993 echo "$ac_t""no" 1>&6
2999 for ac_func
in vsnprintf
3001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3002 echo "configure:3003: checking for $ac_func" >&5
3003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3006 cat > conftest.
$ac_ext <<EOF
3007 #line 3008 "configure"
3008 #include "confdefs.h"
3009 /* System header to define __stub macros and hopefully few prototypes,
3010 which can conflict with char $ac_func(); below. */
3012 /* Override any gcc2 internal prototype to avoid an error. */
3013 /* We use char because int might match the return type of a gcc2
3014 builtin and then its argument prototype would still apply. */
3019 /* The GNU C library defines this for functions which it implements
3020 to always fail with ENOSYS. Some functions are actually named
3021 something starting with __ and the normal name is an alias. */
3022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3030 if { (eval echo configure
:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3032 eval "ac_cv_func_$ac_func=yes"
3034 echo "configure: failed program was:" >&5
3035 cat conftest.
$ac_ext >&5
3037 eval "ac_cv_func_$ac_func=no"
3042 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3043 echo "$ac_t""yes" 1>&6
3044 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3045 cat >> confdefs.h
<<EOF
3046 #define $ac_tr_func 1
3048 cat >> confdefs.h
<<\EOF
3049 #define HAVE_VSNPRINTF 1
3053 echo "$ac_t""no" 1>&6
3054 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
3060 for ac_func
in vfork
3062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3063 echo "configure:3064: checking for $ac_func" >&5
3064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 cat > conftest.
$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3070 /* System header to define __stub macros and hopefully few prototypes,
3071 which can conflict with char $ac_func(); below. */
3073 /* Override any gcc2 internal prototype to avoid an error. */
3074 /* We use char because int might match the return type of a gcc2
3075 builtin and then its argument prototype would still apply. */
3080 /* The GNU C library defines this for functions which it implements
3081 to always fail with ENOSYS. Some functions are actually named
3082 something starting with __ and the normal name is an alias. */
3083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3091 if { (eval echo configure
:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3093 eval "ac_cv_func_$ac_func=yes"
3095 echo "configure: failed program was:" >&5
3096 cat conftest.
$ac_ext >&5
3098 eval "ac_cv_func_$ac_func=no"
3103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3104 echo "$ac_t""yes" 1>&6
3105 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3106 cat >> confdefs.h
<<EOF
3107 #define $ac_tr_func 1
3111 echo "$ac_t""no" 1>&6
3117 for ac_func
in nanosleep
3119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3120 echo "configure:3121: checking for $ac_func" >&5
3121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 cat > conftest.
$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 /* System header to define __stub macros and hopefully few prototypes,
3128 which can conflict with char $ac_func(); below. */
3130 /* Override any gcc2 internal prototype to avoid an error. */
3131 /* We use char because int might match the return type of a gcc2
3132 builtin and then its argument prototype would still apply. */
3137 /* The GNU C library defines this for functions which it implements
3138 to always fail with ENOSYS. Some functions are actually named
3139 something starting with __ and the normal name is an alias. */
3140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3148 if { (eval echo configure
:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3150 eval "ac_cv_func_$ac_func=yes"
3152 echo "configure: failed program was:" >&5
3153 cat conftest.
$ac_ext >&5
3155 eval "ac_cv_func_$ac_func=no"
3160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3161 echo "$ac_t""yes" 1>&6
3162 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3163 cat >> confdefs.h
<<EOF
3164 #define $ac_tr_func 1
3166 cat >> confdefs.h
<<\EOF
3167 #define HAVE_NANOSLEEP 1
3171 echo "$ac_t""no" 1>&6
3172 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3173 echo "configure:3174: checking for nanosleep in -lposix4" >&5
3174 ac_lib_var
=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3178 ac_save_LIBS
="$LIBS"
3179 LIBS
="-lposix4 $LIBS"
3180 cat > conftest.
$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3183 /* Override any gcc2 internal prototype to avoid an error. */
3184 /* We use char because int might match the return type of a gcc2
3185 builtin and then its argument prototype would still apply. */
3192 if { (eval echo configure
:3193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3194 eval "ac_cv_lib_$ac_lib_var=yes"
3196 echo "configure: failed program was:" >&5
3197 cat conftest.
$ac_ext >&5
3199 eval "ac_cv_lib_$ac_lib_var=no"
3202 LIBS
="$ac_save_LIBS"
3205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3206 echo "$ac_t""yes" 1>&6
3208 cat >> confdefs.h
<<\EOF
3209 #define HAVE_NANOSLEEP 1
3212 POSIX4_LINK
="-lposix4"
3215 echo "$ac_t""no" 1>&6
3217 for ac_func
in usleep
3219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3220 echo "configure:3221: checking for $ac_func" >&5
3221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3224 cat > conftest.
$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3227 /* System header to define __stub macros and hopefully few prototypes,
3228 which can conflict with char $ac_func(); below. */
3230 /* Override any gcc2 internal prototype to avoid an error. */
3231 /* We use char because int might match the return type of a gcc2
3232 builtin and then its argument prototype would still apply. */
3237 /* The GNU C library defines this for functions which it implements
3238 to always fail with ENOSYS. Some functions are actually named
3239 something starting with __ and the normal name is an alias. */
3240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3248 if { (eval echo configure
:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3250 eval "ac_cv_func_$ac_func=yes"
3252 echo "configure: failed program was:" >&5
3253 cat conftest.
$ac_ext >&5
3255 eval "ac_cv_func_$ac_func=no"
3260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3261 echo "$ac_t""yes" 1>&6
3262 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3263 cat >> confdefs.h
<<EOF
3264 #define $ac_tr_func 1
3266 cat >> confdefs.h
<<\EOF
3267 #define HAVE_USLEEP 1
3271 echo "$ac_t""no" 1>&6
3272 echo "configure: warning: Sleep() function will not work" 1>&2
3284 for ac_func
in uname gethostname
3286 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3287 echo "configure:3288: checking for $ac_func" >&5
3288 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3291 cat > conftest.
$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3294 /* System header to define __stub macros and hopefully few prototypes,
3295 which can conflict with char $ac_func(); below. */
3297 /* Override any gcc2 internal prototype to avoid an error. */
3298 /* We use char because int might match the return type of a gcc2
3299 builtin and then its argument prototype would still apply. */
3304 /* The GNU C library defines this for functions which it implements
3305 to always fail with ENOSYS. Some functions are actually named
3306 something starting with __ and the normal name is an alias. */
3307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3315 if { (eval echo configure
:3316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3317 eval "ac_cv_func_$ac_func=yes"
3319 echo "configure: failed program was:" >&5
3320 cat conftest.
$ac_ext >&5
3322 eval "ac_cv_func_$ac_func=no"
3327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3328 echo "$ac_t""yes" 1>&6
3329 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3330 cat >> confdefs.h
<<EOF
3331 #define $ac_tr_func 1
3335 echo "$ac_t""no" 1>&6
3340 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3341 echo "configure:3342: checking for uid_t in sys/types.h" >&5
3342 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3343 echo $ac_n "(cached) $ac_c" 1>&6
3345 cat > conftest.
$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3348 #include <sys/types.h>
3350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3351 egrep "uid_t" >/dev
/null
2>&1; then
3353 ac_cv_type_uid_t
=yes
3362 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3363 if test $ac_cv_type_uid_t = no
; then
3364 cat >> confdefs.h
<<\EOF
3368 cat >> confdefs.h
<<\EOF
3374 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3375 echo "configure:3376: checking type of array argument to getgroups" >&5
3376 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 if test "$cross_compiling" = yes; then
3380 ac_cv_type_getgroups
=cross
3382 cat > conftest.
$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3386 /* Thanks to Mike Rendell for this test. */
3387 #include <sys/types.h>
3390 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3395 union { gid_t gval; long lval; } val;
3398 for (i = 0; i < NGID; i++)
3399 gidset[i] = val.gval;
3400 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3402 /* Exit non-zero if getgroups seems to require an array of ints. This
3403 happens when gid_t is short but getgroups modifies an array of ints. */
3404 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3408 if { (eval echo configure
:3409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3410 ac_cv_type_getgroups
=gid_t
3412 echo "configure: failed program was:" >&5
3413 cat conftest.
$ac_ext >&5
3415 ac_cv_type_getgroups
=int
3420 if test $ac_cv_type_getgroups = cross
; then
3421 cat > conftest.
$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3427 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3429 ac_cv_type_getgroups
=gid_t
3432 ac_cv_type_getgroups
=int
3439 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3440 cat >> confdefs.h
<<EOF
3441 #define GETGROUPS_T $ac_cv_type_getgroups
3445 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3446 echo "configure:3447: checking for mode_t" >&5
3447 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3450 cat > conftest.
$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3453 #include <sys/types.h>
3459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3460 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3462 ac_cv_type_mode_t
=yes
3465 ac_cv_type_mode_t
=no
3470 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3471 if test $ac_cv_type_mode_t = no
; then
3472 cat >> confdefs.h
<<\EOF
3478 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3479 echo "configure:3480: checking for off_t" >&5
3480 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3483 cat > conftest.
$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3486 #include <sys/types.h>
3492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3493 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3495 ac_cv_type_off_t
=yes
3503 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3504 if test $ac_cv_type_off_t = no
; then
3505 cat >> confdefs.h
<<\EOF
3511 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3512 echo "configure:3513: checking for pid_t" >&5
3513 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3516 cat > conftest.
$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3519 #include <sys/types.h>
3525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3526 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3528 ac_cv_type_pid_t
=yes
3536 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3537 if test $ac_cv_type_pid_t = no
; then
3538 cat >> confdefs.h
<<\EOF
3544 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3545 echo "configure:3546: checking return type of signal handlers" >&5
3546 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3547 echo $ac_n "(cached) $ac_c" 1>&6
3549 cat > conftest.
$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3552 #include <sys/types.h>
3558 extern "C" void (*signal (int, void (*)(int)))(int);
3560 void (*signal ()) ();
3567 if { (eval echo configure
:3568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3569 ac_cv_type_signal
=void
3571 echo "configure: failed program was:" >&5
3572 cat conftest.
$ac_ext >&5
3574 ac_cv_type_signal
=int
3579 echo "$ac_t""$ac_cv_type_signal" 1>&6
3580 cat >> confdefs.h
<<EOF
3581 #define RETSIGTYPE $ac_cv_type_signal
3585 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3586 echo "configure:3587: checking for size_t" >&5
3587 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3590 cat > conftest.
$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3593 #include <sys/types.h>
3599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3600 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3602 ac_cv_type_size_t
=yes
3605 ac_cv_type_size_t
=no
3610 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3611 if test $ac_cv_type_size_t = no
; then
3612 cat >> confdefs.h
<<\EOF
3613 #define size_t unsigned
3618 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3619 echo "configure:3620: checking for uid_t in sys/types.h" >&5
3620 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3621 echo $ac_n "(cached) $ac_c" 1>&6
3623 cat > conftest.
$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3626 #include <sys/types.h>
3628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3629 egrep "uid_t" >/dev
/null
2>&1; then
3631 ac_cv_type_uid_t
=yes
3640 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3641 if test $ac_cv_type_uid_t = no
; then
3642 cat >> confdefs.h
<<\EOF
3646 cat >> confdefs.h
<<\EOF
3654 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3655 echo "configure:3656: checking whether stat file-mode macros are broken" >&5
3656 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3659 cat > conftest.
$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3662 #include <sys/types.h>
3663 #include <sys/stat.h>
3665 #if defined(S_ISBLK) && defined(S_IFDIR)
3666 # if S_ISBLK (S_IFDIR)
3671 #if defined(S_ISBLK) && defined(S_IFCHR)
3672 # if S_ISBLK (S_IFCHR)
3677 #if defined(S_ISLNK) && defined(S_IFREG)
3678 # if S_ISLNK (S_IFREG)
3683 #if defined(S_ISSOCK) && defined(S_IFREG)
3684 # if S_ISSOCK (S_IFREG)
3690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3691 egrep "You lose" >/dev
/null
2>&1; then
3693 ac_cv_header_stat_broken
=yes
3696 ac_cv_header_stat_broken
=no
3702 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3703 if test $ac_cv_header_stat_broken = yes; then
3704 cat >> confdefs.h
<<\EOF
3705 #define STAT_MACROS_BROKEN 1
3710 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3711 echo "configure:3712: checking whether time.h and sys/time.h may both be included" >&5
3712 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3715 cat > conftest.
$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 #include <sys/types.h>
3719 #include <sys/time.h>
3725 if { (eval echo configure
:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3727 ac_cv_header_time
=yes
3729 echo "configure: failed program was:" >&5
3730 cat conftest.
$ac_ext >&5
3732 ac_cv_header_time
=no
3737 echo "$ac_t""$ac_cv_header_time" 1>&6
3738 if test $ac_cv_header_time = yes; then
3739 cat >> confdefs.h
<<\EOF
3740 #define TIME_WITH_SYS_TIME 1
3745 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3746 echo "configure:3747: checking for st_blksize in struct stat" >&5
3747 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3750 cat > conftest.
$ac_ext <<EOF
3751 #line 3752 "configure"
3752 #include "confdefs.h"
3753 #include <sys/types.h>
3754 #include <sys/stat.h>
3756 struct stat s; s.st_blksize;
3759 if { (eval echo configure
:3760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3761 ac_cv_struct_st_blksize
=yes
3763 echo "configure: failed program was:" >&5
3764 cat conftest.
$ac_ext >&5
3766 ac_cv_struct_st_blksize
=no
3771 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3772 if test $ac_cv_struct_st_blksize = yes; then
3773 cat >> confdefs.h
<<\EOF
3774 #define HAVE_ST_BLKSIZE 1
3779 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3780 echo "configure:3781: checking for st_blocks in struct stat" >&5
3781 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3784 cat > conftest.
$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 #include <sys/types.h>
3788 #include <sys/stat.h>
3790 struct stat s; s.st_blocks;
3793 if { (eval echo configure
:3794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3795 ac_cv_struct_st_blocks
=yes
3797 echo "configure: failed program was:" >&5
3798 cat conftest.
$ac_ext >&5
3800 ac_cv_struct_st_blocks
=no
3805 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3806 if test $ac_cv_struct_st_blocks = yes; then
3807 cat >> confdefs.h
<<\EOF
3808 #define HAVE_ST_BLOCKS 1
3812 LIBOBJS
="$LIBOBJS fileblocks.o"
3815 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3816 echo "configure:3817: checking for st_rdev in struct stat" >&5
3817 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 cat > conftest.
$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823 #include <sys/types.h>
3824 #include <sys/stat.h>
3826 struct stat s; s.st_rdev;
3829 if { (eval echo configure
:3830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3831 ac_cv_struct_st_rdev
=yes
3833 echo "configure: failed program was:" >&5
3834 cat conftest.
$ac_ext >&5
3836 ac_cv_struct_st_rdev
=no
3841 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3842 if test $ac_cv_struct_st_rdev = yes; then
3843 cat >> confdefs.h
<<\EOF
3844 #define HAVE_ST_RDEV 1
3849 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3850 echo "configure:3851: checking whether struct tm is in sys/time.h or time.h" >&5
3851 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3852 echo $ac_n "(cached) $ac_c" 1>&6
3854 cat > conftest.
$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3857 #include <sys/types.h>
3860 struct tm *tp; tp->tm_sec;
3863 if { (eval echo configure
:3864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3865 ac_cv_struct_tm
=time.h
3867 echo "configure: failed program was:" >&5
3868 cat conftest.
$ac_ext >&5
3870 ac_cv_struct_tm
=sys
/time.h
3875 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3876 if test $ac_cv_struct_tm = sys
/time.h
; then
3877 cat >> confdefs.h
<<\EOF
3878 #define TM_IN_SYS_TIME 1
3883 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3884 echo "configure:3885: checking for tm_zone in struct tm" >&5
3885 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3888 cat > conftest.
$ac_ext <<EOF
3889 #line 3890 "configure"
3890 #include "confdefs.h"
3891 #include <sys/types.h>
3892 #include <$ac_cv_struct_tm>
3894 struct tm tm; tm.tm_zone;
3897 if { (eval echo configure
:3898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3899 ac_cv_struct_tm_zone
=yes
3901 echo "configure: failed program was:" >&5
3902 cat conftest.
$ac_ext >&5
3904 ac_cv_struct_tm_zone
=no
3909 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3910 if test "$ac_cv_struct_tm_zone" = yes; then
3911 cat >> confdefs.h
<<\EOF
3912 #define HAVE_TM_ZONE 1
3916 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3917 echo "configure:3918: checking for tzname" >&5
3918 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3921 cat > conftest.
$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3925 #ifndef tzname /* For SGI. */
3926 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3932 if { (eval echo configure
:3933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3934 ac_cv_var_tzname
=yes
3936 echo "configure: failed program was:" >&5
3937 cat conftest.
$ac_ext >&5
3944 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3945 if test $ac_cv_var_tzname = yes; then
3946 cat >> confdefs.h
<<\EOF
3947 #define HAVE_TZNAME 1
3955 echo $ac_n "checking for working const""... $ac_c" 1>&6
3956 echo "configure:3957: checking for working const" >&5
3957 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3958 echo $ac_n "(cached) $ac_c" 1>&6
3960 cat > conftest.
$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3966 /* Ultrix mips cc rejects this. */
3967 typedef int charset[2]; const charset x;
3968 /* SunOS 4.1.1 cc rejects this. */
3969 char const *const *ccp;
3971 /* NEC SVR4.0.2 mips cc rejects this. */
3972 struct point {int x, y;};
3973 static struct point const zero = {0,0};
3974 /* AIX XL C 1.02.0.0 rejects this.
3975 It does not let you subtract one const X* pointer from another in an arm
3976 of an if-expression whose if-part is not a constant expression */
3977 const char *g = "string";
3978 ccp = &g + (g ? g-g : 0);
3979 /* HPUX 7.0 cc rejects these. */
3982 ccp = (char const *const *) p;
3983 { /* SCO 3.2v4 cc rejects this. */
3985 char const *s = 0 ? (char *) 0 : (char const *) 0;
3989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3991 const int *foo = &x[0];
3994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3995 typedef const int *iptr;
3999 { /* AIX XL C 1.02.0.0 rejects this saying
4000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4001 struct s { int j; const int *ap[3]; };
4002 struct s *b; b->j = 5;
4004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4010 if { (eval echo configure
:4011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4014 echo "configure: failed program was:" >&5
4015 cat conftest.
$ac_ext >&5
4022 echo "$ac_t""$ac_cv_c_const" 1>&6
4023 if test $ac_cv_c_const = no
; then
4024 cat >> confdefs.h
<<\EOF
4030 echo $ac_n "checking for inline""... $ac_c" 1>&6
4031 echo "configure:4032: checking for inline" >&5
4032 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4036 for ac_kw
in inline __inline__ __inline
; do
4037 cat > conftest.
$ac_ext <<EOF
4038 #line 4039 "configure"
4039 #include "confdefs.h"
4045 if { (eval echo configure
:4046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4047 ac_cv_c_inline
=$ac_kw; break
4049 echo "configure: failed program was:" >&5
4050 cat conftest.
$ac_ext >&5
4057 echo "$ac_t""$ac_cv_c_inline" 1>&6
4058 case "$ac_cv_c_inline" in
4060 no
) cat >> confdefs.h
<<\EOF
4064 *) cat >> confdefs.h
<<EOF
4065 #define inline $ac_cv_c_inline
4070 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
4071 echo "configure:4072: checking whether char is unsigned" >&5
4072 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4075 if test "$GCC" = yes; then
4076 # GCC predefines this symbol on systems where it applies.
4077 cat > conftest.
$ac_ext <<EOF
4078 #line 4079 "configure"
4079 #include "confdefs.h"
4080 #ifdef __CHAR_UNSIGNED__
4085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4086 egrep "yes" >/dev
/null
2>&1; then
4088 ac_cv_c_char_unsigned
=yes
4091 ac_cv_c_char_unsigned
=no
4096 if test "$cross_compiling" = yes; then
4097 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4099 cat > conftest.
$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4102 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
4103 #if !defined(__STDC__) || __STDC__ != 1
4107 volatile char c = 255; exit(c < 0);
4110 if { (eval echo configure
:4111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4112 ac_cv_c_char_unsigned
=yes
4114 echo "configure: failed program was:" >&5
4115 cat conftest.
$ac_ext >&5
4117 ac_cv_c_char_unsigned
=no
4125 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
4126 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4127 cat >> confdefs.h
<<\EOF
4128 #define __CHAR_UNSIGNED__ 1
4133 echo $ac_n "checking for long double""... $ac_c" 1>&6
4134 echo "configure:4135: checking for long double" >&5
4135 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4138 if test "$GCC" = yes; then
4139 ac_cv_c_long_double
=yes
4141 if test "$cross_compiling" = yes; then
4142 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4144 cat > conftest.
$ac_ext <<EOF
4145 #line 4146 "configure"
4146 #include "confdefs.h"
4148 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4149 long double foo = 0.0;
4150 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4151 exit(sizeof(long double) < sizeof(double)); }
4153 if { (eval echo configure
:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4155 ac_cv_c_long_double
=yes
4157 echo "configure: failed program was:" >&5
4158 cat conftest.
$ac_ext >&5
4160 ac_cv_c_long_double
=no
4168 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4169 if test $ac_cv_c_long_double = yes; then
4170 cat >> confdefs.h
<<\EOF
4171 #define HAVE_LONG_DOUBLE 1
4177 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4178 echo "configure:4179: checking whether byte ordering is bigendian" >&5
4179 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4182 ac_cv_c_bigendian
=unknown
4183 # See if sys/param.h defines the BYTE_ORDER macro.
4184 cat > conftest.
$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 #include <sys/types.h>
4188 #include <sys/param.h>
4191 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4196 if { (eval echo configure
:4197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4198 # It does; now see whether it defined to BIG_ENDIAN or not.
4199 cat > conftest.
$ac_ext <<EOF
4200 #line 4201 "configure"
4201 #include "confdefs.h"
4202 #include <sys/types.h>
4203 #include <sys/param.h>
4206 #if BYTE_ORDER != BIG_ENDIAN
4211 if { (eval echo configure
:4212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4213 ac_cv_c_bigendian
=yes
4215 echo "configure: failed program was:" >&5
4216 cat conftest.
$ac_ext >&5
4218 ac_cv_c_bigendian
=no
4222 echo "configure: failed program was:" >&5
4223 cat conftest.
$ac_ext >&5
4226 if test $ac_cv_c_bigendian = unknown
; then
4227 if test "$cross_compiling" = yes; then
4228 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4230 cat > conftest.
$ac_ext <<EOF
4231 #line 4232 "configure"
4232 #include "confdefs.h"
4234 /* Are we little or big endian? From Harbison&Steele. */
4238 char c[sizeof (long)];
4241 exit (u.c[sizeof (long) - 1] == 1);
4244 if { (eval echo configure
:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4246 ac_cv_c_bigendian
=no
4248 echo "configure: failed program was:" >&5
4249 cat conftest.
$ac_ext >&5
4251 ac_cv_c_bigendian
=yes
4259 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4260 if test $ac_cv_c_bigendian = yes; then
4261 cat >> confdefs.h
<<\EOF
4262 #define WORDS_BIGENDIAN 1
4268 echo $ac_n "checking size of int *""... $ac_c" 1>&6
4269 echo "configure:4270: checking size of int *" >&5
4270 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
4271 echo $ac_n "(cached) $ac_c" 1>&6
4273 if test "$cross_compiling" = yes; then
4274 ac_cv_sizeof_int_p
=4
4276 cat > conftest.
$ac_ext <<EOF
4277 #line 4278 "configure"
4278 #include "confdefs.h"
4282 FILE *f=fopen("conftestval", "w");
4284 fprintf(f, "%d\n", sizeof(int *));
4288 if { (eval echo configure
:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4290 ac_cv_sizeof_int_p
=`cat conftestval`
4292 echo "configure: failed program was:" >&5
4293 cat conftest.
$ac_ext >&5
4295 ac_cv_sizeof_int_p
=0
4301 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
4302 cat >> confdefs.h
<<EOF
4303 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
4307 echo $ac_n "checking size of int""... $ac_c" 1>&6
4308 echo "configure:4309: checking size of int" >&5
4309 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4312 if test "$cross_compiling" = yes; then
4315 cat > conftest.
$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4321 FILE *f=fopen("conftestval", "w");
4323 fprintf(f, "%d\n", sizeof(int));
4327 if { (eval echo configure
:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4329 ac_cv_sizeof_int
=`cat conftestval`
4331 echo "configure: failed program was:" >&5
4332 cat conftest.
$ac_ext >&5
4340 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4341 cat >> confdefs.h
<<EOF
4342 #define SIZEOF_INT $ac_cv_sizeof_int
4346 echo $ac_n "checking size of long""... $ac_c" 1>&6
4347 echo "configure:4348: checking size of long" >&5
4348 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4351 if test "$cross_compiling" = yes; then
4354 cat > conftest.
$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4360 FILE *f=fopen("conftestval", "w");
4362 fprintf(f, "%d\n", sizeof(long));
4366 if { (eval echo configure
:4367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4368 ac_cv_sizeof_long
=`cat conftestval`
4370 echo "configure: failed program was:" >&5
4371 cat conftest.
$ac_ext >&5
4379 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4380 cat >> confdefs.h
<<EOF
4381 #define SIZEOF_LONG $ac_cv_sizeof_long
4385 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4386 echo "configure:4387: checking size of long long" >&5
4387 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 if test "$cross_compiling" = yes; then
4391 ac_cv_sizeof_long_long
=0
4393 cat > conftest.
$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4399 FILE *f=fopen("conftestval", "w");
4401 fprintf(f, "%d\n", sizeof(long long));
4405 if { (eval echo configure
:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4407 ac_cv_sizeof_long_long
=`cat conftestval`
4409 echo "configure: failed program was:" >&5
4410 cat conftest.
$ac_ext >&5
4412 ac_cv_sizeof_long_long
=0
4418 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4419 cat >> confdefs.h
<<EOF
4420 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4428 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4429 ac_cpp
='$CXXCPP $CPPFLAGS'
4430 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4431 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4432 cross_compiling
=$ac_cv_prog_cxx_cross
4435 for ac_hdr
in iostream
4437 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4438 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4439 echo "configure:4440: checking for $ac_hdr" >&5
4440 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4443 cat > conftest.
$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4448 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4449 { (eval echo configure
:4450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4450 ac_err
=`grep -v '^ *+' conftest.out`
4451 if test -z "$ac_err"; then
4453 eval "ac_cv_header_$ac_safe=yes"
4456 echo "configure: failed program was:" >&5
4457 cat conftest.
$ac_ext >&5
4459 eval "ac_cv_header_$ac_safe=no"
4463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4464 echo "$ac_t""yes" 1>&6
4465 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4466 cat >> confdefs.h
<<EOF
4467 #define $ac_tr_hdr 1
4471 echo "$ac_t""no" 1>&6
4475 if test "x$HAVE_IOSTREAM" = "x" ; then
4476 cat >> confdefs.h
<<\EOF
4477 #define wxUSE_IOSTREAMH 1
4482 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
4483 echo "configure:4484: checking if C++ compiler supports bool" >&5
4484 if test "$cross_compiling" = yes; then
4485 echo "$ac_t""no assumed for cross-compilation" 1>&6
4487 cat > conftest.
$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4491 extern "C" void exit(int);
4503 if { (eval echo configure
:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4505 cat >> confdefs.h
<<\EOF
4508 echo "$ac_t""yes" 1>&6
4510 echo "configure: failed program was:" >&5
4511 cat conftest.
$ac_ext >&5
4513 echo "$ac_t""no" 1>&6
4519 echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6
4520 echo "configure:4521: checking if size_t and int are different types" >&5
4521 if test "$cross_compiling" = yes; then
4522 echo "$ac_t""no assumed for cross-compilation" 1>&6
4524 cat > conftest.
$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4528 extern "C" void exit(int);
4533 void wxFoo(int i) { }
4534 void wxFoo(size_t n) { }
4551 if { (eval echo configure
:4552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4553 cat >> confdefs.h
<<\EOF
4554 #define wxUSE_SIZE_T_STRING_OPERATOR 1
4556 echo "$ac_t""yes" 1>&6
4558 echo "configure: failed program was:" >&5
4559 cat conftest.
$ac_ext >&5
4561 echo "$ac_t""no" 1>&6
4568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4569 ac_cpp
='$CPP $CPPFLAGS'
4570 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4571 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4572 cross_compiling
=$ac_cv_prog_cc_cross
4578 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4579 echo "configure:4580: checking for long file names" >&5
4580 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4583 ac_cv_sys_long_file_names
=yes
4584 # Test for long file names in all the places we know might matter:
4585 # . the current directory, where building will happen
4586 # $prefix/lib where we will be installing things
4587 # $exec_prefix/lib likewise
4588 # eval it to expand exec_prefix.
4589 # $TMPDIR if set, where it might want to write temporary files
4590 # if $TMPDIR is not set:
4591 # /tmp where it might want to write temporary files
4594 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4595 ac_tmpdirs
="$TMPDIR"
4597 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
4599 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4600 test -d $ac_dir || continue
4601 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4602 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
4603 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
4604 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
4605 if test ! -f $ac_dir/conftest9012345
|| test "$val" != 1; then
4606 ac_cv_sys_long_file_names
=no
4607 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4610 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4614 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4615 if test $ac_cv_sys_long_file_names = yes; then
4616 cat >> confdefs.h
<<\EOF
4617 #define HAVE_LONG_FILE_NAMES 1
4625 for ac_prog
in 'bison -y' byacc
4627 # Extract the first word of "$ac_prog", so it can be a program name with args.
4628 set dummy
$ac_prog; ac_word
=$2
4629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4630 echo "configure:4631: checking for $ac_word" >&5
4631 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4632 echo $ac_n "(cached) $ac_c" 1>&6
4634 if test -n "$YACC"; then
4635 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4637 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4638 for ac_dir
in $PATH; do
4639 test -z "$ac_dir" && ac_dir
=.
4640 if test -f $ac_dir/$ac_word; then
4641 ac_cv_prog_YACC
="$ac_prog"
4648 YACC
="$ac_cv_prog_YACC"
4649 if test -n "$YACC"; then
4650 echo "$ac_t""$YACC" 1>&6
4652 echo "$ac_t""no" 1>&6
4655 test -n "$YACC" && break
4657 test -n "$YACC" || YACC
="yacc"
4660 # Extract the first word of "flex", so it can be a program name with args.
4661 set dummy flex
; ac_word
=$2
4662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4663 echo "configure:4664: checking for $ac_word" >&5
4664 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4665 echo $ac_n "(cached) $ac_c" 1>&6
4667 if test -n "$LEX"; then
4668 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4670 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4671 for ac_dir
in $PATH; do
4672 test -z "$ac_dir" && ac_dir
=.
4673 if test -f $ac_dir/$ac_word; then
4674 ac_cv_prog_LEX
="flex"
4679 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4682 LEX
="$ac_cv_prog_LEX"
4683 if test -n "$LEX"; then
4684 echo "$ac_t""$LEX" 1>&6
4686 echo "$ac_t""no" 1>&6
4689 if test -z "$LEXLIB"
4695 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4696 echo "configure:4697: checking for yywrap in -l$ac_lib" >&5
4697 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4701 ac_save_LIBS
="$LIBS"
4702 LIBS
="-l$ac_lib $LIBS"
4703 cat > conftest.
$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4706 /* Override any gcc2 internal prototype to avoid an error. */
4707 /* We use char because int might match the return type of a gcc2
4708 builtin and then its argument prototype would still apply. */
4715 if { (eval echo configure
:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4717 eval "ac_cv_lib_$ac_lib_var=yes"
4719 echo "configure: failed program was:" >&5
4720 cat conftest.
$ac_ext >&5
4722 eval "ac_cv_lib_$ac_lib_var=no"
4725 LIBS
="$ac_save_LIBS"
4728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4729 echo "$ac_t""yes" 1>&6
4732 echo "$ac_t""no" 1>&6
4737 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4738 echo "configure:4739: checking lex output file root" >&5
4739 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4740 echo $ac_n "(cached) $ac_c" 1>&6
4742 # The minimal lex program is just a single line: %%. But some broken lexes
4743 # (Solaris, I think it was) want two %% lines, so accommodate them.
4746 if test -f lex.yy.c
; then
4747 ac_cv_prog_lex_root
=lex.yy
4748 elif test -f lexyy.c
; then
4749 ac_cv_prog_lex_root
=lexyy
4751 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4755 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4756 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4758 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4759 echo "configure:4760: checking whether yytext is a pointer" >&5
4760 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4761 echo $ac_n "(cached) $ac_c" 1>&6
4763 # POSIX says lex can declare yytext either as a pointer or an array; the
4764 # default is implementation-dependent. Figure out which it is, since
4765 # not all implementations provide the %pointer and %array declarations.
4766 ac_cv_prog_lex_yytext_pointer
=no
4767 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4768 ac_save_LIBS
="$LIBS"
4769 LIBS
="$LIBS $LEXLIB"
4770 cat > conftest.
$ac_ext <<EOF
4771 #line 4772 "configure"
4772 #include "confdefs.h"
4773 `cat $LEX_OUTPUT_ROOT.c`
4778 if { (eval echo configure
:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4780 ac_cv_prog_lex_yytext_pointer
=yes
4782 echo "configure: failed program was:" >&5
4783 cat conftest.
$ac_ext >&5
4786 LIBS
="$ac_save_LIBS"
4787 rm -f "${LEX_OUTPUT_ROOT}.c"
4791 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4792 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4793 cat >> confdefs.h
<<\EOF
4794 #define YYTEXT_POINTER 1
4802 for ac_func
in dlopen
4804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4805 echo "configure:4806: checking for $ac_func" >&5
4806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4807 echo $ac_n "(cached) $ac_c" 1>&6
4809 cat > conftest.
$ac_ext <<EOF
4810 #line 4811 "configure"
4811 #include "confdefs.h"
4812 /* System header to define __stub macros and hopefully few prototypes,
4813 which can conflict with char $ac_func(); below. */
4815 /* Override any gcc2 internal prototype to avoid an error. */
4816 /* We use char because int might match the return type of a gcc2
4817 builtin and then its argument prototype would still apply. */
4822 /* The GNU C library defines this for functions which it implements
4823 to always fail with ENOSYS. Some functions are actually named
4824 something starting with __ and the normal name is an alias. */
4825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4833 if { (eval echo configure
:4834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4835 eval "ac_cv_func_$ac_func=yes"
4837 echo "configure: failed program was:" >&5
4838 cat conftest.
$ac_ext >&5
4840 eval "ac_cv_func_$ac_func=no"
4845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4846 echo "$ac_t""yes" 1>&6
4847 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4848 cat >> confdefs.h
<<EOF
4849 #define $ac_tr_func 1
4851 cat >> confdefs.h
<<\EOF
4852 #define HAVE_LIBDL 1
4856 echo "$ac_t""no" 1>&6
4857 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4858 echo "configure:4859: checking for dlopen in -ldl" >&5
4859 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4863 ac_save_LIBS
="$LIBS"
4865 cat > conftest.
$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4868 /* Override any gcc2 internal prototype to avoid an error. */
4869 /* We use char because int might match the return type of a gcc2
4870 builtin and then its argument prototype would still apply. */
4877 if { (eval echo configure
:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4879 eval "ac_cv_lib_$ac_lib_var=yes"
4881 echo "configure: failed program was:" >&5
4882 cat conftest.
$ac_ext >&5
4884 eval "ac_cv_lib_$ac_lib_var=no"
4887 LIBS
="$ac_save_LIBS"
4890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4891 echo "$ac_t""yes" 1>&6
4892 cat >> confdefs.h
<<\EOF
4893 #define HAVE_LIBDL 1
4897 echo "$ac_t""no" 1>&6
4898 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4899 echo "configure:4900: checking for dld_link in -ldld" >&5
4900 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4902 echo $ac_n "(cached) $ac_c" 1>&6
4904 ac_save_LIBS
="$LIBS"
4906 cat > conftest.
$ac_ext <<EOF
4907 #line 4908 "configure"
4908 #include "confdefs.h"
4909 /* Override any gcc2 internal prototype to avoid an error. */
4910 /* We use char because int might match the return type of a gcc2
4911 builtin and then its argument prototype would still apply. */
4918 if { (eval echo configure
:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4920 eval "ac_cv_lib_$ac_lib_var=yes"
4922 echo "configure: failed program was:" >&5
4923 cat conftest.
$ac_ext >&5
4925 eval "ac_cv_lib_$ac_lib_var=no"
4928 LIBS
="$ac_save_LIBS"
4931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4932 echo "$ac_t""yes" 1>&6
4933 cat >> confdefs.h
<<\EOF
4938 echo "$ac_t""no" 1>&6
4939 for ac_func
in shl_load
4941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4942 echo "configure:4943: checking for $ac_func" >&5
4943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4946 cat > conftest.
$ac_ext <<EOF
4947 #line 4948 "configure"
4948 #include "confdefs.h"
4949 /* System header to define __stub macros and hopefully few prototypes,
4950 which can conflict with char $ac_func(); below. */
4952 /* Override any gcc2 internal prototype to avoid an error. */
4953 /* We use char because int might match the return type of a gcc2
4954 builtin and then its argument prototype would still apply. */
4959 /* The GNU C library defines this for functions which it implements
4960 to always fail with ENOSYS. Some functions are actually named
4961 something starting with __ and the normal name is an alias. */
4962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4970 if { (eval echo configure
:4971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4972 eval "ac_cv_func_$ac_func=yes"
4974 echo "configure: failed program was:" >&5
4975 cat conftest.
$ac_ext >&5
4977 eval "ac_cv_func_$ac_func=no"
4982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4983 echo "$ac_t""yes" 1>&6
4984 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4985 cat >> confdefs.h
<<EOF
4986 #define $ac_tr_func 1
4988 cat >> confdefs.h
<<\EOF
4989 #define HAVE_SHL_LOAD 1
4993 echo "$ac_t""no" 1>&6
5009 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
5010 echo "configure:5011: checking for underscore before symbols" >&5
5011 if eval "test \"`echo '$''{'libltdl_cv_uscore'+set}'`\" = set"; then
5012 echo $ac_n "(cached) $ac_c" 1>&6
5015 echo "main(){int i=1;} fnord(){int i=23; int ltuae=42;}" > conftest.c
5016 ${CC} -c conftest.c
> /dev
/null
5017 if (nm conftest.o
| grep _fnord
) > /dev
/null
; then
5018 libltdl_cv_uscore
=yes
5020 libltdl_cv_uscore
=no
5026 echo "$ac_t""$libltdl_cv_uscore" 1>&6
5028 if test x
"$libltdl_cv_uscore" = xyes
; then
5029 if test x
"$ac_cv_func_dlopen" = xyes
||
5030 test x
"$ac_cv_lib_dl_dlopen" = xyes
; then
5031 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
5032 echo "configure:5033: checking whether we have to add an underscore for dlsym" >&5
5033 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5036 if test "$cross_compiling" = yes; then
5037 libltdl_cv_need_uscore
=no
5040 cat > conftest.
$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5046 fnord() { int i=42;}
5047 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
5048 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
5049 if(ptr1 && !ptr2) exit(0); } exit(1); }
5052 if { (eval echo configure
:5053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5054 libltdl_cv_need_uscore
=no
5056 echo "configure: failed program was:" >&5
5057 cat conftest.
$ac_ext >&5
5059 libltdl_cv_need_uscore
=yes
5066 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
5070 if test x
"$libltdl_cv_need_uscore" = xyes
; then
5071 cat >> confdefs.h
<<\EOF
5072 #define NEED_USCORE 1
5078 for ac_func
in strerror
5080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5081 echo "configure:5082: checking for $ac_func" >&5
5082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5085 cat > conftest.
$ac_ext <<EOF
5086 #line 5087 "configure"
5087 #include "confdefs.h"
5088 /* System header to define __stub macros and hopefully few prototypes,
5089 which can conflict with char $ac_func(); below. */
5091 /* Override any gcc2 internal prototype to avoid an error. */
5092 /* We use char because int might match the return type of a gcc2
5093 builtin and then its argument prototype would still apply. */
5098 /* The GNU C library defines this for functions which it implements
5099 to always fail with ENOSYS. Some functions are actually named
5100 something starting with __ and the normal name is an alias. */
5101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5109 if { (eval echo configure
:5110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5111 eval "ac_cv_func_$ac_func=yes"
5113 echo "configure: failed program was:" >&5
5114 cat conftest.
$ac_ext >&5
5116 eval "ac_cv_func_$ac_func=no"
5121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5122 echo "$ac_t""yes" 1>&6
5123 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5124 cat >> confdefs.h
<<EOF
5125 #define $ac_tr_func 1
5129 echo "$ac_t""no" 1>&6
5135 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
5136 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
5140 # Make sure we can run config.sub.
5141 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
5142 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5145 echo $ac_n "checking host system type""... $ac_c" 1>&6
5146 echo "configure:5147: checking host system type" >&5
5149 case "$host_alias" in
5153 if host_alias
=`$ac_config_guess`; then :
5154 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5156 *) host_alias
=$nonopt ;;
5160 host=`$ac_config_sub $host_alias`
5161 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5162 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5163 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5164 echo "$ac_t""$host" 1>&6
5167 configuration
=$host_alias
5189 cat >> confdefs.h
<<\EOF
5193 case "${canonical}" in
5196 cat >> confdefs.h
<<\EOF
5203 cat >> confdefs.h
<<\EOF
5208 if test "x$TMP" = "xalpha"
5211 cat >> confdefs.h
<<\EOF
5217 *-*-irix5* | *-*-irix6* )
5220 cat >> confdefs.h
<<\EOF
5224 cat >> confdefs.h
<<\EOF
5233 cat >> confdefs.h
<<\EOF
5237 cat >> confdefs.h
<<\EOF
5238 #define __SOLARIS__ 1
5241 cat >> confdefs.h
<<\EOF
5250 cat >> confdefs.h
<<\EOF
5254 cat >> confdefs.h
<<\EOF
5258 cat >> confdefs.h
<<\EOF
5263 *-*-freebsd* | *-*-netbsd*)
5266 cat >> confdefs.h
<<\EOF
5267 #define __FREEBSD__ 1
5270 cat >> confdefs.h
<<\EOF
5278 cat >> confdefs.h
<<\EOF
5282 cat >> confdefs.h
<<\EOF
5290 cat >> confdefs.h
<<\EOF
5294 cat >> confdefs.h
<<\EOF
5302 cat >> confdefs.h
<<\EOF
5306 cat >> confdefs.h
<<\EOF
5315 cat >> confdefs.h
<<\EOF
5319 cat >> confdefs.h
<<\EOF
5323 cat >> confdefs.h
<<\EOF
5329 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
5334 rm -f ${OSTYPE}.system.cache.tmp
5335 touch ${OSTYPE}.system.cache.tmp
5336 touch ${OSTYPE}.system.cache
5341 DEFAULT_wxUSE_MOTIF
=0
5343 DEFAULT_wxUSE_THREADS
=0
5345 DEFAULT_wxUSE_SHARED
=1
5346 DEFAULT_wxUSE_OPTIMISE
=1
5347 DEFAULT_wxUSE_PROFILE
=0
5348 DEFAULT_wxUSE_DEBUG_FLAG
=0
5349 DEFAULT_wxUSE_DEBUG_INFO
=0
5350 DEFAULT_wxUSE_MEM_TRACING
=0
5351 DEFAULT_wxUSE_DMALLOC
=0
5352 DEFAULT_wxUSE_APPLE_IEEE
=1
5353 DEFAULT_wxUSE_IOSTREAMH
=1
5355 DEFAULT_wxUSE_ZLIB
=1
5356 DEFAULT_wxUSE_LIBPNG
=1
5357 DEFAULT_wxUSE_LIBJPEG
=1
5358 DEFAULT_wxUSE_ODBC
=1
5360 DEFAULT_wxUSE_TIMEDATE
=1
5361 DEFAULT_wxUSE_INTL
=1
5362 DEFAULT_wxUSE_CONFIG
=1
5363 DEFAULT_wxUSE_STREAMS
=1
5364 DEFAULT_wxUSE_SOCKETS
=1
5365 DEFAULT_wxUSE_SERIAL
=1
5366 DEFAULT_wxUSE_DYNLIB_CLASS
=1
5368 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
=1
5369 DEFAULT_WX_NORMALIZED_PS_FONTS
=1
5370 DEFAULT_wxUSE_POSTSCRIPT
=1
5373 DEFAULT_wxUSE_RESOURCES
=1
5374 DEFAULT_wxUSE_CLIPBOARD
=1
5375 DEFAULT_wxUSE_TOOLTIPS
=1
5376 DEFAULT_wxUSE_DRAG_AND_DROP
=1
5378 DEFAULT_wxUSE_MDI_ARCHITECTURE
=1
5379 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
=1
5380 DEFAULT_wxUSE_PRINTING_ARCHITECTURE
=1
5382 DEFAULT_wxUSE_PROLOGIO
=1
5383 DEFAULT_wxUSE_WX_RESOURCES
=1
5385 DEFAULT_wxUSE_HELP
=1
5387 DEFAULT_wxUSE_UNICODE
=0
5388 DEFAULT_wxUSE_WCSRTOMBS
=0
5392 echo $ac_n "checking "for gtk
"""... $ac_c" 1>&6
5393 echo "configure:5394: checking "for gtk
"" >&5
5394 # Check whether --with-gtk or --without-gtk was given.
5395 if test "${with_gtk+set}" = set; then
5397 if test "x$with_gtk" = xyes
; then
5398 ac_cv_use_gtk
='wxUSE_GTK="1"'
5400 ac_cv_use_gtk
='wxUSE_GTK="0"'
5404 LINE
=`grep "wxUSE_GTK" ${OSTYPE}.system.cache`
5405 if test "x$LINE" != x
; then
5406 eval "DEFAULT_$LINE"
5408 ac_cv_use_gtk
='wxUSE_GTK='$DEFAULT_wxUSE_GTK
5412 eval "$ac_cv_use_gtk"
5413 echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp
5414 if test "$wxUSE_GTK" = 1; then
5415 echo "$ac_t""yes" 1>&6
5417 echo "$ac_t""no" 1>&6
5422 echo $ac_n "checking "for qt
"""... $ac_c" 1>&6
5423 echo "configure:5424: checking "for qt
"" >&5
5424 # Check whether --with-qt or --without-qt was given.
5425 if test "${with_qt+set}" = set; then
5427 if test "x$with_qt" = xyes
; then
5428 ac_cv_use_qt
='wxUSE_QT="1"'
5430 ac_cv_use_qt
='wxUSE_QT="0"'
5434 LINE
=`grep "wxUSE_QT" ${OSTYPE}.system.cache`
5435 if test "x$LINE" != x
; then
5436 eval "DEFAULT_$LINE"
5438 ac_cv_use_qt
='wxUSE_QT='$DEFAULT_wxUSE_QT
5442 eval "$ac_cv_use_qt"
5443 echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp
5444 if test "$wxUSE_QT" = 1; then
5445 echo "$ac_t""yes" 1>&6
5447 echo "$ac_t""no" 1>&6
5452 echo $ac_n "checking "for motif
"""... $ac_c" 1>&6
5453 echo "configure:5454: checking "for motif
"" >&5
5454 # Check whether --with-motif or --without-motif was given.
5455 if test "${with_motif+set}" = set; then
5456 withval
="$with_motif"
5457 if test "x$with_motif" = xyes
; then
5458 ac_cv_use_motif
='wxUSE_MOTIF="1"'
5460 ac_cv_use_motif
='wxUSE_MOTIF="0"'
5464 LINE
=`grep "wxUSE_MOTIF" ${OSTYPE}.system.cache`
5465 if test "x$LINE" != x
; then
5466 eval "DEFAULT_$LINE"
5468 ac_cv_use_motif
='wxUSE_MOTIF='$DEFAULT_wxUSE_MOTIF
5472 eval "$ac_cv_use_motif"
5473 echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp
5474 if test "$wxUSE_MOTIF" = 1; then
5475 echo "$ac_t""yes" 1>&6
5477 echo "$ac_t""no" 1>&6
5483 echo $ac_n "checking "for shared
"""... $ac_c" 1>&6
5484 echo "configure:5485: checking "for shared
"" >&5
5485 # Check whether --with-shared or --without-shared was given.
5486 if test "${with_shared+set}" = set; then
5487 withval
="$with_shared"
5488 if test "x$with_shared" = xyes
; then
5489 ac_cv_use_shared
='wxUSE_SHARED="1"'
5491 ac_cv_use_shared
='wxUSE_SHARED="0"'
5495 LINE
=`grep "wxUSE_SHARED" ${OSTYPE}.system.cache`
5496 if test "x$LINE" != x
; then
5497 eval "DEFAULT_$LINE"
5499 ac_cv_use_shared
='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
5503 eval "$ac_cv_use_shared"
5504 echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
5505 if test "$wxUSE_SHARED" = 1; then
5506 echo "$ac_t""yes" 1>&6
5508 echo "$ac_t""no" 1>&6
5513 echo $ac_n "checking "for optimise
"""... $ac_c" 1>&6
5514 echo "configure:5515: checking "for optimise
"" >&5
5515 # Check whether --with-optimise or --without-optimise was given.
5516 if test "${with_optimise+set}" = set; then
5517 withval
="$with_optimise"
5518 if test "x$with_optimise" = xyes
; then
5519 ac_cv_use_optimise
='wxUSE_OPTIMISE="1"'
5521 ac_cv_use_optimise
='wxUSE_OPTIMISE="0"'
5525 LINE
=`grep "wxUSE_OPTIMISE" ${OSTYPE}.system.cache`
5526 if test "x$LINE" != x
; then
5527 eval "DEFAULT_$LINE"
5529 ac_cv_use_optimise
='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
5533 eval "$ac_cv_use_optimise"
5534 echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
5535 if test "$wxUSE_OPTIMISE" = 1; then
5536 echo "$ac_t""yes" 1>&6
5538 echo "$ac_t""no" 1>&6
5543 echo $ac_n "checking "for debug_flag
"""... $ac_c" 1>&6
5544 echo "configure:5545: checking "for debug_flag
"" >&5
5545 # Check whether --with-debug_flag or --without-debug_flag was given.
5546 if test "${with_debug_flag+set}" = set; then
5547 withval
="$with_debug_flag"
5548 if test "x$with_debug_flag" = xyes
; then
5549 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="1"'
5551 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="0"'
5555 LINE
=`grep "wxUSE_DEBUG_FLAG" ${OSTYPE}.system.cache`
5556 if test "x$LINE" != x
; then
5557 eval "DEFAULT_$LINE"
5559 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
5563 eval "$ac_cv_use_debug_flag"
5564 echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
5565 if test "$wxUSE_DEBUG_FLAG" = 1; then
5566 echo "$ac_t""yes" 1>&6
5568 echo "$ac_t""no" 1>&6
5573 echo $ac_n "checking "for debug_info
"""... $ac_c" 1>&6
5574 echo "configure:5575: checking "for debug_info
"" >&5
5575 # Check whether --with-debug_info or --without-debug_info was given.
5576 if test "${with_debug_info+set}" = set; then
5577 withval
="$with_debug_info"
5578 if test "x$with_debug_info" = xyes
; then
5579 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="1"'
5581 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="0"'
5585 LINE
=`grep "wxUSE_DEBUG_INFO" ${OSTYPE}.system.cache`
5586 if test "x$LINE" != x
; then
5587 eval "DEFAULT_$LINE"
5589 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
5593 eval "$ac_cv_use_debug_info"
5594 echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
5595 if test "$wxUSE_DEBUG_INFO" = 1; then
5596 echo "$ac_t""yes" 1>&6
5598 echo "$ac_t""no" 1>&6
5603 echo $ac_n "checking "for debug_gdb
"""... $ac_c" 1>&6
5604 echo "configure:5605: checking "for debug_gdb
"" >&5
5605 # Check whether --with-debug_gdb or --without-debug_gdb was given.
5606 if test "${with_debug_gdb+set}" = set; then
5607 withval
="$with_debug_gdb"
5608 if test "x$with_debug_gdb" = xyes
; then
5609 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="1"'
5611 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="0"'
5615 LINE
=`grep "wxUSE_DEBUG_GDB" ${OSTYPE}.system.cache`
5616 if test "x$LINE" != x
; then
5617 eval "DEFAULT_$LINE"
5619 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
5623 eval "$ac_cv_use_debug_gdb"
5624 echo $ac_cv_use_debug_gdb >> ${OSTYPE}.system.cache.tmp
5625 if test "$wxUSE_DEBUG_GDB" = 1; then
5626 echo "$ac_t""yes" 1>&6
5628 echo "$ac_t""no" 1>&6
5633 echo $ac_n "checking "for mem_tracing
"""... $ac_c" 1>&6
5634 echo "configure:5635: checking "for mem_tracing
"" >&5
5635 # Check whether --with-mem_tracing or --without-mem_tracing was given.
5636 if test "${with_mem_tracing+set}" = set; then
5637 withval
="$with_mem_tracing"
5638 if test "x$with_mem_tracing" = xyes
; then
5639 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="1"'
5641 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="0"'
5645 LINE
=`grep "wxUSE_MEM_TRACING" ${OSTYPE}.system.cache`
5646 if test "x$LINE" != x
; then
5647 eval "DEFAULT_$LINE"
5649 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
5653 eval "$ac_cv_use_mem_tracing"
5654 echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
5655 if test "$wxUSE_MEM_TRACING" = 1; then
5656 echo "$ac_t""yes" 1>&6
5658 echo "$ac_t""no" 1>&6
5663 echo $ac_n "checking "for dmalloc
"""... $ac_c" 1>&6
5664 echo "configure:5665: checking "for dmalloc
"" >&5
5665 # Check whether --with-dmalloc or --without-dmalloc was given.
5666 if test "${with_dmalloc+set}" = set; then
5667 withval
="$with_dmalloc"
5668 if test "x$with_dmalloc" = xyes
; then
5669 ac_cv_use_dmalloc
='wxUSE_DMALLOC="1"'
5671 ac_cv_use_dmalloc
='wxUSE_DMALLOC="0"'
5675 LINE
=`grep "wxUSE_DMALLOC" ${OSTYPE}.system.cache`
5676 if test "x$LINE" != x
; then
5677 eval "DEFAULT_$LINE"
5679 ac_cv_use_dmalloc
='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
5683 eval "$ac_cv_use_dmalloc"
5684 echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp
5685 if test "$wxUSE_DMALLOC" = 1; then
5686 echo "$ac_t""yes" 1>&6
5688 echo "$ac_t""no" 1>&6
5693 echo $ac_n "checking "for profile
"""... $ac_c" 1>&6
5694 echo "configure:5695: checking "for profile
"" >&5
5695 # Check whether --with-profile or --without-profile was given.
5696 if test "${with_profile+set}" = set; then
5697 withval
="$with_profile"
5698 if test "x$with_profile" = xyes
; then
5699 ac_cv_use_profile
='wxUSE_PROFILE="1"'
5701 ac_cv_use_profile
='wxUSE_PROFILE="0"'
5705 LINE
=`grep "wxUSE_PROFILE" ${OSTYPE}.system.cache`
5706 if test "x$LINE" != x
; then
5707 eval "DEFAULT_$LINE"
5709 ac_cv_use_profile
='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
5713 eval "$ac_cv_use_profile"
5714 echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
5715 if test "$wxUSE_PROFILE" = 1; then
5716 echo "$ac_t""yes" 1>&6
5718 echo "$ac_t""no" 1>&6
5723 echo $ac_n "checking "for apple_ieee
"""... $ac_c" 1>&6
5724 echo "configure:5725: checking "for apple_ieee
"" >&5
5725 # Check whether --with-apple_ieee or --without-apple_ieee was given.
5726 if test "${with_apple_ieee+set}" = set; then
5727 withval
="$with_apple_ieee"
5728 if test "x$with_apple_ieee" = xyes
; then
5729 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="1"'
5731 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="0"'
5735 LINE
=`grep "wxUSE_APPLE_IEEE" ${OSTYPE}.system.cache`
5736 if test "x$LINE" != x
; then
5737 eval "DEFAULT_$LINE"
5739 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5743 eval "$ac_cv_use_apple_ieee"
5744 echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp
5745 if test "$wxUSE_APPLE_IEEE" = 1; then
5746 echo "$ac_t""yes" 1>&6
5748 echo "$ac_t""no" 1>&6
5753 echo $ac_n "checking "for threads
"""... $ac_c" 1>&6
5754 echo "configure:5755: checking "for threads
"" >&5
5755 # Check whether --with-threads or --without-threads was given.
5756 if test "${with_threads+set}" = set; then
5757 withval
="$with_threads"
5758 if test "x$with_threads" = xyes
; then
5759 ac_cv_use_threads
='wxUSE_THREADS="1"'
5761 ac_cv_use_threads
='wxUSE_THREADS="0"'
5765 LINE
=`grep "wxUSE_THREADS" ${OSTYPE}.system.cache`
5766 if test "x$LINE" != x
; then
5767 eval "DEFAULT_$LINE"
5769 ac_cv_use_threads
='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5773 eval "$ac_cv_use_threads"
5774 echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
5775 if test "$wxUSE_THREADS" = 1; then
5776 echo "$ac_t""yes" 1>&6
5778 echo "$ac_t""no" 1>&6
5783 echo $ac_n "checking "for dynlib
"""... $ac_c" 1>&6
5784 echo "configure:5785: checking "for dynlib
"" >&5
5785 # Check whether --with-dynlib or --without-dynlib was given.
5786 if test "${with_dynlib+set}" = set; then
5787 withval
="$with_dynlib"
5788 if test "x$with_dynlib" = xyes
; then
5789 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="1"'
5791 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="0"'
5795 LINE
=`grep "wxUSE_DYNLIB_CLASS" ${OSTYPE}.system.cache`
5796 if test "x$LINE" != x
; then
5797 eval "DEFAULT_$LINE"
5799 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5803 eval "$ac_cv_use_dynlib"
5804 echo $ac_cv_use_dynlib >> ${OSTYPE}.system.cache.tmp
5805 if test "$wxUSE_DYNLIB_CLASS" = 1; then
5806 echo "$ac_t""yes" 1>&6
5808 echo "$ac_t""no" 1>&6
5814 echo $ac_n "checking "for zlib
"""... $ac_c" 1>&6
5815 echo "configure:5816: checking "for zlib
"" >&5
5816 # Check whether --with-zlib or --without-zlib was given.
5817 if test "${with_zlib+set}" = set; then
5818 withval
="$with_zlib"
5819 if test "x$with_zlib" = xyes
; then
5820 ac_cv_use_zlib
='wxUSE_ZLIB="1"'
5822 ac_cv_use_zlib
='wxUSE_ZLIB="0"'
5826 LINE
=`grep "wxUSE_ZLIB" ${OSTYPE}.system.cache`
5827 if test "x$LINE" != x
; then
5828 eval "DEFAULT_$LINE"
5830 ac_cv_use_zlib
='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
5834 eval "$ac_cv_use_zlib"
5835 echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
5836 if test "$wxUSE_ZLIB" = 1; then
5837 echo "$ac_t""yes" 1>&6
5839 echo "$ac_t""no" 1>&6
5844 echo $ac_n "checking "for libpng
"""... $ac_c" 1>&6
5845 echo "configure:5846: checking "for libpng
"" >&5
5846 # Check whether --with-libpng or --without-libpng was given.
5847 if test "${with_libpng+set}" = set; then
5848 withval
="$with_libpng"
5849 if test "x$with_libpng" = xyes
; then
5850 ac_cv_use_libpng
='wxUSE_LIBPNG="1"'
5852 ac_cv_use_libpng
='wxUSE_LIBPNG="0"'
5856 LINE
=`grep "wxUSE_LIBPNG" ${OSTYPE}.system.cache`
5857 if test "x$LINE" != x
; then
5858 eval "DEFAULT_$LINE"
5860 ac_cv_use_libpng
='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
5864 eval "$ac_cv_use_libpng"
5865 echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
5866 if test "$wxUSE_LIBPNG" = 1; then
5867 echo "$ac_t""yes" 1>&6
5869 echo "$ac_t""no" 1>&6
5874 echo $ac_n "checking "for libjpeg
"""... $ac_c" 1>&6
5875 echo "configure:5876: checking "for libjpeg
"" >&5
5876 # Check whether --with-libjpeg or --without-libjpeg was given.
5877 if test "${with_libjpeg+set}" = set; then
5878 withval
="$with_libjpeg"
5879 if test "x$with_libjpeg" = xyes
; then
5880 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="1"'
5882 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="0"'
5886 LINE
=`grep "wxUSE_LIBJPEG" ${OSTYPE}.system.cache`
5887 if test "x$LINE" != x
; then
5888 eval "DEFAULT_$LINE"
5890 ac_cv_use_libjpeg
='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
5894 eval "$ac_cv_use_libjpeg"
5895 echo $ac_cv_use_libjpeg >> ${OSTYPE}.system.cache.tmp
5896 if test "$wxUSE_LIBJPEG" = 1; then
5897 echo "$ac_t""yes" 1>&6
5899 echo "$ac_t""no" 1>&6
5904 echo $ac_n "checking "for odbc
"""... $ac_c" 1>&6
5905 echo "configure:5906: checking "for odbc
"" >&5
5906 # Check whether --with-odbc or --without-odbc was given.
5907 if test "${with_odbc+set}" = set; then
5908 withval
="$with_odbc"
5909 if test "x$with_odbc" = xyes
; then
5910 ac_cv_use_odbc
='wxUSE_ODBC="1"'
5912 ac_cv_use_odbc
='wxUSE_ODBC="0"'
5916 LINE
=`grep "wxUSE_ODBC" ${OSTYPE}.system.cache`
5917 if test "x$LINE" != x
; then
5918 eval "DEFAULT_$LINE"
5920 ac_cv_use_odbc
='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
5924 eval "$ac_cv_use_odbc"
5925 echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp
5926 if test "$wxUSE_ODBC" = 1; then
5927 echo "$ac_t""yes" 1>&6
5929 echo "$ac_t""no" 1>&6
5935 echo $ac_n "checking "for timedate
"""... $ac_c" 1>&6
5936 echo "configure:5937: checking "for timedate
"" >&5
5937 # Check whether --with-timedate or --without-timedate was given.
5938 if test "${with_timedate+set}" = set; then
5939 withval
="$with_timedate"
5940 if test "x$with_timedate" = xyes
; then
5941 ac_cv_use_timedate
='wxUSE_TIMEDATE="1"'
5943 ac_cv_use_timedate
='wxUSE_TIMEDATE="0"'
5947 LINE
=`grep "wxUSE_TIMEDATE" ${OSTYPE}.system.cache`
5948 if test "x$LINE" != x
; then
5949 eval "DEFAULT_$LINE"
5951 ac_cv_use_timedate
='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
5955 eval "$ac_cv_use_timedate"
5956 echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
5957 if test "$wxUSE_TIMEDATE" = 1; then
5958 echo "$ac_t""yes" 1>&6
5960 echo "$ac_t""no" 1>&6
5965 echo $ac_n "checking "for intl
"""... $ac_c" 1>&6
5966 echo "configure:5967: checking "for intl
"" >&5
5967 # Check whether --with-intl or --without-intl was given.
5968 if test "${with_intl+set}" = set; then
5969 withval
="$with_intl"
5970 if test "x$with_intl" = xyes
; then
5971 ac_cv_use_intl
='wxUSE_INTL="1"'
5973 ac_cv_use_intl
='wxUSE_INTL="0"'
5977 LINE
=`grep "wxUSE_INTL" ${OSTYPE}.system.cache`
5978 if test "x$LINE" != x
; then
5979 eval "DEFAULT_$LINE"
5981 ac_cv_use_intl
='wxUSE_INTL='$DEFAULT_wxUSE_INTL
5985 eval "$ac_cv_use_intl"
5986 echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp
5987 if test "$wxUSE_INTL" = 1; then
5988 echo "$ac_t""yes" 1>&6
5990 echo "$ac_t""no" 1>&6
5995 echo $ac_n "checking "for config
"""... $ac_c" 1>&6
5996 echo "configure:5997: checking "for config
"" >&5
5997 # Check whether --with-config or --without-config was given.
5998 if test "${with_config+set}" = set; then
5999 withval
="$with_config"
6000 if test "x$with_config" = xyes
; then
6001 ac_cv_use_config
='wxUSE_CONFIG="1"'
6003 ac_cv_use_config
='wxUSE_CONFIG="0"'
6007 LINE
=`grep "wxUSE_CONFIG" ${OSTYPE}.system.cache`
6008 if test "x$LINE" != x
; then
6009 eval "DEFAULT_$LINE"
6011 ac_cv_use_config
='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
6015 eval "$ac_cv_use_config"
6016 echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp
6017 if test "$wxUSE_CONFIG" = 1; then
6018 echo "$ac_t""yes" 1>&6
6020 echo "$ac_t""no" 1>&6
6025 echo $ac_n "checking "for streams
"""... $ac_c" 1>&6
6026 echo "configure:6027: checking "for streams
"" >&5
6027 # Check whether --with-streams or --without-streams was given.
6028 if test "${with_streams+set}" = set; then
6029 withval
="$with_streams"
6030 if test "x$with_streams" = xyes
; then
6031 ac_cv_use_streams
='wxUSE_STREAMS="1"'
6033 ac_cv_use_streams
='wxUSE_STREAMS="0"'
6037 LINE
=`grep "wxUSE_STREAMS" ${OSTYPE}.system.cache`
6038 if test "x$LINE" != x
; then
6039 eval "DEFAULT_$LINE"
6041 ac_cv_use_streams
='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6045 eval "$ac_cv_use_streams"
6046 echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp
6047 if test "$wxUSE_STREAMS" = 1; then
6048 echo "$ac_t""yes" 1>&6
6050 echo "$ac_t""no" 1>&6
6055 echo $ac_n "checking "for serial
"""... $ac_c" 1>&6
6056 echo "configure:6057: checking "for serial
"" >&5
6057 # Check whether --with-serial or --without-serial was given.
6058 if test "${with_serial+set}" = set; then
6059 withval
="$with_serial"
6060 if test "x$with_serial" = xyes
; then
6061 ac_cv_use_serial
='wxUSE_SERIAL="1"'
6063 ac_cv_use_serial
='wxUSE_SERIAL="0"'
6067 LINE
=`grep "wxUSE_SERIAL" ${OSTYPE}.system.cache`
6068 if test "x$LINE" != x
; then
6069 eval "DEFAULT_$LINE"
6071 ac_cv_use_serial
='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
6075 eval "$ac_cv_use_serial"
6076 echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp
6077 if test "$wxUSE_SERIAL" = 1; then
6078 echo "$ac_t""yes" 1>&6
6080 echo "$ac_t""no" 1>&6
6085 echo $ac_n "checking "for sockets
"""... $ac_c" 1>&6
6086 echo "configure:6087: checking "for sockets
"" >&5
6087 # Check whether --with-sockets or --without-sockets was given.
6088 if test "${with_sockets+set}" = set; then
6089 withval
="$with_sockets"
6090 if test "x$with_sockets" = xyes
; then
6091 ac_cv_use_sockets
='wxUSE_SOCKETS="1"'
6093 ac_cv_use_sockets
='wxUSE_SOCKETS="0"'
6097 LINE
=`grep "wxUSE_SOCKETS" ${OSTYPE}.system.cache`
6098 if test "x$LINE" != x
; then
6099 eval "DEFAULT_$LINE"
6101 ac_cv_use_sockets
='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
6105 eval "$ac_cv_use_sockets"
6106 echo $ac_cv_use_sockets >> ${OSTYPE}.system.cache.tmp
6107 if test "$wxUSE_SOCKETS" = 1; then
6108 echo "$ac_t""yes" 1>&6
6110 echo "$ac_t""no" 1>&6
6116 echo $ac_n "checking "for afmfonts
"""... $ac_c" 1>&6
6117 echo "configure:6118: checking "for afmfonts
"" >&5
6118 # Check whether --with-afmfonts or --without-afmfonts was given.
6119 if test "${with_afmfonts+set}" = set; then
6120 withval
="$with_afmfonts"
6121 if test "x$with_afmfonts" = xyes
; then
6122 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="1"'
6124 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="0"'
6128 LINE
=`grep "wxUSE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
6129 if test "x$LINE" != x
; then
6130 eval "DEFAULT_$LINE"
6132 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT='$DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
6136 eval "$ac_cv_use_afmfonts"
6137 echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
6138 if test "$wxUSE_AFM_FOR_POSTSCRIPT" = 1; then
6139 echo "$ac_t""yes" 1>&6
6141 echo "$ac_t""no" 1>&6
6146 echo $ac_n "checking "for normalized
"""... $ac_c" 1>&6
6147 echo "configure:6148: checking "for normalized
"" >&5
6148 # Check whether --with-normalized or --without-normalized was given.
6149 if test "${with_normalized+set}" = set; then
6150 withval
="$with_normalized"
6151 if test "x$with_normalized" = xyes
; then
6152 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="1"'
6154 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="0"'
6158 LINE
=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
6159 if test "x$LINE" != x
; then
6160 eval "DEFAULT_$LINE"
6162 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
6166 eval "$ac_cv_use_normalized"
6167 echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
6168 if test "$WX_NORMALIZED_PS_FONTS" = 1; then
6169 echo "$ac_t""yes" 1>&6
6171 echo "$ac_t""no" 1>&6
6176 echo $ac_n "checking "for postscript
"""... $ac_c" 1>&6
6177 echo "configure:6178: checking "for postscript
"" >&5
6178 # Check whether --with-postscript or --without-postscript was given.
6179 if test "${with_postscript+set}" = set; then
6180 withval
="$with_postscript"
6181 if test "x$with_postscript" = xyes
; then
6182 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="1"'
6184 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="0"'
6188 LINE
=`grep "wxUSE_POSTSCRIPT" ${OSTYPE}.system.cache`
6189 if test "x$LINE" != x
; then
6190 eval "DEFAULT_$LINE"
6192 ac_cv_use_postscript
='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6196 eval "$ac_cv_use_postscript"
6197 echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
6198 if test "$wxUSE_POSTSCRIPT" = 1; then
6199 echo "$ac_t""yes" 1>&6
6201 echo "$ac_t""no" 1>&6
6207 echo $ac_n "checking "for unicode
"""... $ac_c" 1>&6
6208 echo "configure:6209: checking "for unicode
"" >&5
6209 # Check whether --with-unicode or --without-unicode was given.
6210 if test "${with_unicode+set}" = set; then
6211 withval
="$with_unicode"
6212 if test "x$with_unicode" = xyes
; then
6213 ac_cv_use_unicode
='wxUSE_UNICODE="1"'
6215 ac_cv_use_unicode
='wxUSE_UNICODE="0"'
6219 LINE
=`grep "wxUSE_UNICODE" ${OSTYPE}.system.cache`
6220 if test "x$LINE" != x
; then
6221 eval "DEFAULT_$LINE"
6223 ac_cv_use_unicode
='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6227 eval "$ac_cv_use_unicode"
6228 echo $ac_cv_use_unicode >> ${OSTYPE}.system.cache.tmp
6229 if test "$wxUSE_UNICODE" = 1; then
6230 echo "$ac_t""yes" 1>&6
6232 echo "$ac_t""no" 1>&6
6237 echo $ac_n "checking "for wcsrtombs
"""... $ac_c" 1>&6
6238 echo "configure:6239: checking "for wcsrtombs
"" >&5
6239 # Check whether --with-wcsrtombs or --without-wcsrtombs was given.
6240 if test "${with_wcsrtombs+set}" = set; then
6241 withval
="$with_wcsrtombs"
6242 if test "x$with_wcsrtombs" = xyes
; then
6243 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="1"'
6245 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="0"'
6249 LINE
=`grep "wxUSE_WCSRTOMBS" ${OSTYPE}.system.cache`
6250 if test "x$LINE" != x
; then
6251 eval "DEFAULT_$LINE"
6253 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
6257 eval "$ac_cv_use_wcsrtombs"
6258 echo $ac_cv_use_wcsrtombs >> ${OSTYPE}.system.cache.tmp
6259 if test "$wxUSE_WCSRTOMBS" = 1; then
6260 echo "$ac_t""yes" 1>&6
6262 echo "$ac_t""no" 1>&6
6268 echo $ac_n "checking "for wxresources
"""... $ac_c" 1>&6
6269 echo "configure:6270: checking "for wxresources
"" >&5
6270 # Check whether --with-wxresources or --without-wxresources was given.
6271 if test "${with_wxresources+set}" = set; then
6272 withval
="$with_wxresources"
6273 if test "x$with_wxresources" = xyes
; then
6274 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="1"'
6276 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="0"'
6280 LINE
=`grep "wxUSE_WX_RESOURCES" ${OSTYPE}.system.cache`
6281 if test "x$LINE" != x
; then
6282 eval "DEFAULT_$LINE"
6284 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES='$DEFAULT_wxUSE_WX_RESOURCES
6288 eval "$ac_cv_use_wxresources"
6289 echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
6290 if test "$wxUSE_WX_RESOURCES" = 1; then
6291 echo "$ac_t""yes" 1>&6
6293 echo "$ac_t""no" 1>&6
6298 echo $ac_n "checking "for prologio
"""... $ac_c" 1>&6
6299 echo "configure:6300: checking "for prologio
"" >&5
6300 # Check whether --with-prologio or --without-prologio was given.
6301 if test "${with_prologio+set}" = set; then
6302 withval
="$with_prologio"
6303 if test "x$with_prologio" = xyes
; then
6304 ac_cv_use_prologio
='wxUSE_PROLOGIO="1"'
6306 ac_cv_use_prologio
='wxUSE_PROLOGIO="0"'
6310 LINE
=`grep "wxUSE_PROLOGIO" ${OSTYPE}.system.cache`
6311 if test "x$LINE" != x
; then
6312 eval "DEFAULT_$LINE"
6314 ac_cv_use_prologio
='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6318 eval "$ac_cv_use_prologio"
6319 echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
6320 if test "$wxUSE_PROLOGIO" = 1; then
6321 echo "$ac_t""yes" 1>&6
6323 echo "$ac_t""no" 1>&6
6328 echo $ac_n "checking "for RPC
"""... $ac_c" 1>&6
6329 echo "configure:6330: checking "for RPC
"" >&5
6330 # Check whether --with-rpc or --without-rpc was given.
6331 if test "${with_rpc+set}" = set; then
6333 if test "x$with_rpc" = xyes
; then
6334 ac_cv_use_rpc
='wxUSE_RPC="1"'
6336 ac_cv_use_rpc
='wxUSE_RPC="0"'
6340 LINE
=`grep "wxUSE_RPC" ${OSTYPE}.system.cache`
6341 if test "x$LINE" != x
; then
6342 eval "DEFAULT_$LINE"
6344 ac_cv_use_rpc
='wxUSE_RPC='$DEFAULT_wxUSE_RPC
6348 eval "$ac_cv_use_rpc"
6349 echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
6350 if test "$wxUSE_RPC" = 1; then
6351 echo "$ac_t""yes" 1>&6
6353 echo "$ac_t""no" 1>&6
6359 echo $ac_n "checking "for IPC
"""... $ac_c" 1>&6
6360 echo "configure:6361: checking "for IPC
"" >&5
6361 # Check whether --with-ipc or --without-ipc was given.
6362 if test "${with_ipc+set}" = set; then
6364 if test "x$with_ipc" = xyes
; then
6365 ac_cv_use_ipc
='wxUSE_IPC="1"'
6367 ac_cv_use_ipc
='wxUSE_IPC="0"'
6371 LINE
=`grep "wxUSE_IPC" ${OSTYPE}.system.cache`
6372 if test "x$LINE" != x
; then
6373 eval "DEFAULT_$LINE"
6375 ac_cv_use_ipc
='wxUSE_IPC='$DEFAULT_wxUSE_IPC
6379 eval "$ac_cv_use_ipc"
6380 echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
6381 if test "$wxUSE_IPC" = 1; then
6382 echo "$ac_t""yes" 1>&6
6384 echo "$ac_t""no" 1>&6
6389 echo $ac_n "checking "for resources
"""... $ac_c" 1>&6
6390 echo "configure:6391: checking "for resources
"" >&5
6391 # Check whether --with-resources or --without-resources was given.
6392 if test "${with_resources+set}" = set; then
6393 withval
="$with_resources"
6394 if test "x$with_resources" = xyes
; then
6395 ac_cv_use_resources
='wxUSE_RESOURCES="1"'
6397 ac_cv_use_resources
='wxUSE_RESOURCES="0"'
6401 LINE
=`grep "wxUSE_RESOURCES" ${OSTYPE}.system.cache`
6402 if test "x$LINE" != x
; then
6403 eval "DEFAULT_$LINE"
6405 ac_cv_use_resources
='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6409 eval "$ac_cv_use_resources"
6410 echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
6411 if test "$wxUSE_RESOURCES" = 1; then
6412 echo "$ac_t""yes" 1>&6
6414 echo "$ac_t""no" 1>&6
6419 echo $ac_n "checking "for clipboard
"""... $ac_c" 1>&6
6420 echo "configure:6421: checking "for clipboard
"" >&5
6421 # Check whether --with-clipboard or --without-clipboard was given.
6422 if test "${with_clipboard+set}" = set; then
6423 withval
="$with_clipboard"
6424 if test "x$with_clipboard" = xyes
; then
6425 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="1"'
6427 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="0"'
6431 LINE
=`grep "wxUSE_CLIPBOARD" ${OSTYPE}.system.cache`
6432 if test "x$LINE" != x
; then
6433 eval "DEFAULT_$LINE"
6435 ac_cv_use_clipboard
='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6439 eval "$ac_cv_use_clipboard"
6440 echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
6441 if test "$wxUSE_CLIPBOARD" = 1; then
6442 echo "$ac_t""yes" 1>&6
6444 echo "$ac_t""no" 1>&6
6449 echo $ac_n "checking "for tooltips
"""... $ac_c" 1>&6
6450 echo "configure:6451: checking "for tooltips
"" >&5
6451 # Check whether --with-tooltips or --without-tooltips was given.
6452 if test "${with_tooltips+set}" = set; then
6453 withval
="$with_tooltips"
6454 if test "x$with_tooltips" = xyes
; then
6455 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="1"'
6457 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="0"'
6461 LINE
=`grep "wxUSE_TOOLTIPS" ${OSTYPE}.system.cache`
6462 if test "x$LINE" != x
; then
6463 eval "DEFAULT_$LINE"
6465 ac_cv_use_tooltips
='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6469 eval "$ac_cv_use_tooltips"
6470 echo $ac_cv_use_tooltips >> ${OSTYPE}.system.cache.tmp
6471 if test "$wxUSE_TOOLTIPS" = 1; then
6472 echo "$ac_t""yes" 1>&6
6474 echo "$ac_t""no" 1>&6
6479 echo $ac_n "checking "for dnd
"""... $ac_c" 1>&6
6480 echo "configure:6481: checking "for dnd
"" >&5
6481 # Check whether --with-dnd or --without-dnd was given.
6482 if test "${with_dnd+set}" = set; then
6484 if test "x$with_dnd" = xyes
; then
6485 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="1"'
6487 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="0"'
6491 LINE
=`grep "wxUSE_DRAG_AND_DROP" ${OSTYPE}.system.cache`
6492 if test "x$LINE" != x
; then
6493 eval "DEFAULT_$LINE"
6495 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6499 eval "$ac_cv_use_dnd"
6500 echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp
6501 if test "$wxUSE_DRAG_AND_DROP" = 1; then
6502 echo "$ac_t""yes" 1>&6
6504 echo "$ac_t""no" 1>&6
6510 echo $ac_n "checking "for mdi
"""... $ac_c" 1>&6
6511 echo "configure:6512: checking "for mdi
"" >&5
6512 # Check whether --with-mdi or --without-mdi was given.
6513 if test "${with_mdi+set}" = set; then
6515 if test "x$with_mdi" = xyes
; then
6516 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="1"'
6518 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="0"'
6522 LINE
=`grep "wxUSE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache`
6523 if test "x$LINE" != x
; then
6524 eval "DEFAULT_$LINE"
6526 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6530 eval "$ac_cv_use_mdi"
6531 echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp
6532 if test "$wxUSE_MDI_ARCHITECTURE" = 1; then
6533 echo "$ac_t""yes" 1>&6
6535 echo "$ac_t""no" 1>&6
6540 echo $ac_n "checking "for docview
"""... $ac_c" 1>&6
6541 echo "configure:6542: checking "for docview
"" >&5
6542 # Check whether --with-docview or --without-docview was given.
6543 if test "${with_docview+set}" = set; then
6544 withval
="$with_docview"
6545 if test "x$with_docview" = xyes
; then
6546 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="1"'
6548 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="0"'
6552 LINE
=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
6553 if test "x$LINE" != x
; then
6554 eval "DEFAULT_$LINE"
6556 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6560 eval "$ac_cv_use_docview"
6561 echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
6562 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1; then
6563 echo "$ac_t""yes" 1>&6
6565 echo "$ac_t""no" 1>&6
6570 echo $ac_n "checking "for printarch
"""... $ac_c" 1>&6
6571 echo "configure:6572: checking "for printarch
"" >&5
6572 # Check whether --with-printarch or --without-printarch was given.
6573 if test "${with_printarch+set}" = set; then
6574 withval
="$with_printarch"
6575 if test "x$with_printarch" = xyes
; then
6576 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="1"'
6578 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="0"'
6582 LINE
=`grep "wxUSE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
6583 if test "x$LINE" != x
; then
6584 eval "DEFAULT_$LINE"
6586 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6590 eval "$ac_cv_use_printarch"
6591 echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
6592 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1; then
6593 echo "$ac_t""yes" 1>&6
6595 echo "$ac_t""no" 1>&6
6600 echo $ac_n "checking "for help"""... $ac_c" 1>&6
6601 echo "configure:6602: checking "for help"" >&5
6602 # Check whether --with-help or --without-help was given.
6603 if test "${with_help+set}" = set; then
6604 withval
="$with_help"
6605 if test "x$with_help" = xyes
; then
6606 ac_cv_use_help
='wxUSE_HELP="1"'
6608 ac_cv_use_help
='wxUSE_HELP="0"'
6612 LINE
=`grep "wxUSE_HELP" ${OSTYPE}.system.cache`
6613 if test "x$LINE" != x
; then
6614 eval "DEFAULT_$LINE"
6616 ac_cv_use_help
='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6620 eval "$ac_cv_use_help"
6621 echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
6622 if test "$wxUSE_HELP" = 1; then
6623 echo "$ac_t""yes" 1>&6
6625 echo "$ac_t""no" 1>&6
6630 if test "$wxUSE_UNIX" = 1 ; then
6631 cat >> confdefs.h
<<\EOF
6637 if test "$USE_LINUX" = 1; then
6638 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
6639 echo "configure:6640: checking for gettext in -lc" >&5
6640 ac_lib_var
=`echo c'_'gettext | sed 'y%./+-%__p_%'`
6641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6642 echo $ac_n "(cached) $ac_c" 1>&6
6644 ac_save_LIBS
="$LIBS"
6646 cat > conftest.
$ac_ext <<EOF
6647 #line 6648 "configure"
6648 #include "confdefs.h"
6649 /* Override any gcc2 internal prototype to avoid an error. */
6650 /* We use char because int might match the return type of a gcc2
6651 builtin and then its argument prototype would still apply. */
6658 if { (eval echo configure
:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6660 eval "ac_cv_lib_$ac_lib_var=yes"
6662 echo "configure: failed program was:" >&5
6663 cat conftest.
$ac_ext >&5
6665 eval "ac_cv_lib_$ac_lib_var=no"
6668 LIBS
="$ac_save_LIBS"
6671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6672 echo "$ac_t""yes" 1>&6
6673 cat >> confdefs.h
<<\EOF
6674 #define wxHAVE_GLIBC2 1
6678 echo "$ac_t""no" 1>&6
6695 if test "$wxUSE_GTK" = 1; then
6696 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6697 if test "${with_gtk_prefix+set}" = set; then
6698 withval
="$with_gtk_prefix"
6699 gtk_config_prefix
="$withval"
6701 gtk_config_prefix
=""
6704 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
6705 if test "${with_gtk_exec_prefix+set}" = set; then
6706 withval
="$with_gtk_exec_prefix"
6707 gtk_config_exec_prefix
="$withval"
6709 gtk_config_exec_prefix
=""
6713 if test x
$gtk_config_exec_prefix != x
; then
6714 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6715 if test x
${GTK_CONFIG+set} != xset
; then
6716 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
6719 if test x
$gtk_config_prefix != x
; then
6720 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
6721 if test x
${GTK_CONFIG+set} != xset
; then
6722 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
6726 # Extract the first word of "gtk-config", so it can be a program name with args.
6727 set dummy gtk
-config; ac_word
=$2
6728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6729 echo "configure:6730: checking for $ac_word" >&5
6730 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6731 echo $ac_n "(cached) $ac_c" 1>&6
6733 case "$GTK_CONFIG" in
6735 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
6738 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6739 for ac_dir
in $PATH; do
6740 test -z "$ac_dir" && ac_dir
=.
6741 if test -f $ac_dir/$ac_word; then
6742 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
6747 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
6751 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
6752 if test -n "$GTK_CONFIG"; then
6753 echo "$ac_t""$GTK_CONFIG" 1>&6
6755 echo "$ac_t""no" 1>&6
6758 min_gtk_version
=1.0.0
6759 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6760 echo "configure:6761: checking for GTK - version >= $min_gtk_version" >&5
6762 if test "$GTK_CONFIG" != "no" ; then
6763 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
6764 GTK_LIBS
=`$GTK_CONFIG --libs`
6765 ac_save_CFLAGS
="$CFLAGS"
6766 ac_save_LIBS
="$LIBS"
6767 CFLAGS
="$CFLAGS $GTK_CFLAGS"
6768 LIBS
="$LIBS $GTK_LIBS"
6769 if test "$cross_compiling" = yes; then
6770 echo $ac_n "cross compiling; assumed OK... $ac_c"
6772 cat > conftest.
$ac_ext <<EOF
6773 #line 6774 "configure"
6774 #include "confdefs.h"
6776 #include <gtk/gtk.h>
6782 int major, minor, micro;
6784 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
6785 printf("%s, bad version string\n", "$min_gtk_version");
6789 if (gtk_minor_version == 1) return FALSE;
6791 return !((gtk_major_version > major) ||
6792 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6793 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6797 if { (eval echo configure
:6798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6801 echo "configure: failed program was:" >&5
6802 cat conftest.
$ac_ext >&5
6809 CFLAGS
="$ac_save_CFLAGS"
6810 LIBS
="$ac_save_LIBS"
6814 if test "x$no_gtk" = x
; then
6815 echo "$ac_t""yes" 1>&6
6817 GUI_TK_INCLUDE
="$GTK_CFLAGS"
6818 GUI_TK_LIBRARY
="$GTK_LIBS"
6821 echo "$ac_t""no" 1>&6
6824 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.X or 1.0.X?" 1>&2; exit 1; }
6830 TOOLKIT_DEF
=__WXGTK__
6832 MAKEINCLUDE
=..
/gtk.inc
6835 if test "$wxUSE_QT" = 1; then
6836 echo $ac_n "checking for Qt includes""... $ac_c" 1>&6
6837 echo "configure:6838: checking for Qt includes" >&5
6840 for ac_dir
in $SEARCH_INCLUDE;
6842 if test -f "$ac_dir/qapp.h"; then
6843 ac_find_includes
=$ac_dir
6848 if test "$ac_find_includes" != "" ; then
6849 echo "$ac_t""found $ac_find_includes" 1>&6
6850 echo $ac_n "checking for Qt library""... $ac_c" 1>&6
6851 echo "configure:6852: checking for Qt library" >&5
6854 for ac_dir
in $SEARCH_LIB;
6856 for ac_extension
in a so sl
; do
6857 if test -f "$ac_dir/libqt.$ac_extension"; then
6858 ac_find_libraries
=$ac_dir
6864 if test "$ac_find_libraries" != "" ; then
6866 ac_path_to_include
=$ac_find_includes
6867 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
6869 if test $result = 0; then
6870 ac_path_to_include
=""
6872 ac_path_to_include
="-I$ac_find_includes"
6876 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6878 if test $result = 0; then
6881 ac_path_to_link
="-L$ac_find_libraries"
6884 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
6885 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
6886 echo "$ac_t""found Qt at $ac_find_libraries" 1>&6
6888 { echo "configure: error: no" 1>&2; exit 1; }
6891 { echo "configure: error: no" 1>&2; exit 1; }
6893 GUI_TK_LINK
="-lX11 -lqt -lm"
6895 TOOLKIT_DEF
=__WXQT__
6897 MAKEINCLUDE
=..
/qt.inc
6900 if test "$wxUSE_MOTIF" = 1; then
6901 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
6902 echo "configure:6903: checking for Motif/Lesstif includes" >&5
6905 for ac_dir
in $SEARCH_INCLUDE;
6907 if test -f "$ac_dir/Xm/Xm.h"; then
6908 ac_find_includes
=$ac_dir
6913 if test "$ac_find_includes" != "" ; then
6914 echo "$ac_t""found $ac_find_includes" 1>&6
6916 echo "$ac_t""no" 1>&6
6917 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
6920 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
6921 echo "configure:6922: checking for Motif/Lesstif library" >&5
6924 for ac_dir
in $SEARCH_LIB;
6926 for ac_extension
in a so sl
; do
6927 if test -f "$ac_dir/libXm.$ac_extension"; then
6928 ac_find_libraries
=$ac_dir
6934 if test "$ac_find_libraries" != "" ; then
6936 ac_path_to_include
=$ac_find_includes
6937 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
6939 if test $result = 0; then
6940 ac_path_to_include
=""
6942 ac_path_to_include
="-I$ac_find_includes"
6946 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6948 if test $result = 0; then
6951 ac_path_to_link
="-L$ac_find_libraries"
6955 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6956 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
6957 echo "$ac_t""found at $ac_find_libraries" 1>&6
6959 echo "$ac_t""no" 1>&6
6960 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
6963 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
6964 echo "configure:6965: checking for Xt library" >&5
6967 for ac_dir
in $SEARCH_LIB;
6969 for ac_extension
in a so sl
; do
6970 if test -f "$ac_dir/libXt.$ac_extension"; then
6971 ac_find_libraries
=$ac_dir
6977 if test "$ac_find_libraries" != "" ; then
6979 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6981 if test $result = 0; then
6984 ac_path_to_link
="-L$ac_find_libraries"
6987 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6988 echo "$ac_t""found at $ac_find_libraries" 1>&6
6990 echo "$ac_t""no" 1>&6
6991 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
6995 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6996 echo "configure:6997: checking for Xpm library" >&5
6999 for ac_dir
in $SEARCH_LIB;
7001 for ac_extension
in a so sl
; do
7002 if test -f "$ac_dir/libXpm.$ac_extension"; then
7003 ac_find_libraries
=$ac_dir
7009 if test "$ac_find_libraries" != "" ; then
7011 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7013 if test $result = 0; then
7016 ac_path_to_link
="-L$ac_find_libraries"
7019 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
7021 cat >> confdefs.h
<<\EOF
7022 #define wxHAVE_LIB_XPM 1
7025 echo "$ac_t""found at $ac_find_libraries" 1>&6
7027 echo "$ac_t""no" 1>&6
7028 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7031 GUI_TK_LINK
="-lXm $(XPM_LINK)-lXmu -lXt -lX11 -lm"
7032 GUI_TK_LIBRARY
="$CHECK_LIB $GUI_TK_LINK"
7034 TOOLKIT_DEF
=__WXMOTIF__
7036 MAKEINCLUDE
=..
/motif.inc
7039 if test "$TOOLKIT" = ""; then
7040 { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; }
7058 if test "$wxUSE_DEBUG_GDB" = 1 ; then
7063 if test "$wxUSE_DEBUG_INFO" = 1 ; then
7070 if test "$wxUSE_DEBUG_FLAG" = 1 ; then
7071 cat >> confdefs.h
<<EOF
7072 #define WXDEBUG $wxUSE_DEBUG_FLAG
7075 WXDEBUG_DEFINE
="-D__WXDEBUG__"
7078 WXDEBUG_DEFINE
="-DGTK_NO_CHECK_CASTS"
7082 if test "$wxUSE_MEM_TRACING" = 1 ; then
7083 cat >> confdefs.h
<<EOF
7084 #define wxUSE_MEMORY_TRACING $wxUSE_MEM_TRACING
7087 cat >> confdefs.h
<<EOF
7088 #define wxUSE_GLOBAL_MEMORY_OPERATORS $wxUSE_MEM_TRACING
7093 if test "$wxUSE_DMALLOC" = 1 ; then
7094 EXTRA_LINK
="$EXTRA_LINK -ldmalloc"
7099 if test "$wxUSE_PROFILE" = 1 ; then
7104 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
7105 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
7106 if test "$wxUSE_OPTIMISE" = 0 ; then
7109 if test "$GCC" = yes ; then
7111 case "${canonical}" in
7113 OPTIMISE
="${OPTIMISE} "
7123 if test "$wxUSE_APPLE_IEEE" = 1 ; then
7124 APPLE_IEEE
="APPLE_IEEE"
7125 cat >> confdefs.h
<<EOF
7126 #define wxUSE_APPLE_IEEE $wxUSE_APPLE_IEEE
7131 wxUSE_IOSTREAMH
=$DEFAULT_wxUSE_IOSTREAMH
7132 cat >> confdefs.h
<<EOF
7133 #define wxUSE_IOSTREAMH $wxUSE_IOSTREAMH
7138 if test "$wxUSE_ZLIB" = 1 ; then
7139 cat >> confdefs.h
<<EOF
7140 #define wxUSE_ZLIB $wxUSE_ZLIB
7143 Z_C_SRC
="\$(Z_C_SRC)"
7147 if test "$wxUSE_LIBPNG" = 1 ; then
7148 cat >> confdefs.h
<<EOF
7149 #define wxUSE_LIBPNG $wxUSE_LIBPNG
7152 PNG_C_SRC
="\$(PNG_C_SRC)"
7156 if test "$wxUSE_LIBJPEG" = 1 ; then
7157 cat >> confdefs.h
<<EOF
7158 #define wxUSE_LIBJPEG $wxUSE_LIBJPEG
7161 JPEG_C_SRC
="\$(JPEG_C_SRC)"
7169 if test "$wxUSE_ODBC" = 1 ; then
7170 cat >> confdefs.h
<<EOF
7171 #define wxUSE_ODBC $wxUSE_ODBC
7174 IODBC_C_SRC
="\$(IODBC_C_SRC)"
7179 if test "$wxUSE_CONFIG" = 1 ; then
7180 cat >> confdefs.h
<<EOF
7181 #define wxUSE_CONFIG $wxUSE_CONFIG
7186 if test "$wxUSE_TIMEDATE" = 1 ; then
7187 cat >> confdefs.h
<<EOF
7188 #define wxUSE_TIMEDATE $wxUSE_TIMEDATE
7193 if test "$wxUSE_INTL" = 1 ; then
7194 cat >> confdefs.h
<<EOF
7195 #define wxUSE_INTL $wxUSE_INTL
7200 if test "$wxUSE_STREAMS" = 1 ; then
7201 cat >> confdefs.h
<<EOF
7202 #define wxUSE_STREAMS $wxUSE_STREAMS
7207 if test "$wxUSE_SOCKETS" = 1 ; then
7208 cat >> confdefs.h
<<EOF
7209 #define wxUSE_SOCKETS $wxUSE_SOCKETS
7214 if test "$wxUSE_SERIAL" = 1 ; then
7215 cat >> confdefs.h
<<EOF
7216 #define wxUSE_SERIAL $wxUSE_SERIAL
7222 if test "$wxUSE_SOCKETS" = "1"; then
7223 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
7224 echo "configure:7225: checking the type of the third argument of getsockname" >&5
7225 cat > conftest.
$ac_ext <<EOF
7226 #line 7227 "configure"
7227 #include "confdefs.h"
7228 #include <sys/socket.h>
7230 socklen_t len; getsockname(0, NULL, &len);
7233 if { (eval echo configure
:7234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7235 cat >> confdefs.h
<<\EOF
7236 #define SOCKLEN_T socklen_t
7238 echo "$ac_t""socklen_t" 1>&6
7240 echo "configure: failed program was:" >&5
7241 cat conftest.
$ac_ext >&5
7243 cat > conftest.
$ac_ext <<EOF
7244 #line 7245 "configure"
7245 #include "confdefs.h"
7246 #include <sys/socket.h>
7248 size_t len; getsockname(0, NULL, &len);
7251 if { (eval echo configure
:7252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7253 cat >> confdefs.h
<<\EOF
7254 #define SOCKLEN_T size_t
7256 echo "$ac_t""size_t" 1>&6
7258 echo "configure: failed program was:" >&5
7259 cat conftest.
$ac_ext >&5
7261 cat > conftest.
$ac_ext <<EOF
7262 #line 7263 "configure"
7263 #include "confdefs.h"
7264 #include <sys/socket.h>
7266 int len; getsockname(0, NULL, &len);
7269 if { (eval echo configure
:7270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7271 cat >> confdefs.h
<<\EOF
7272 #define SOCKLEN_T int
7274 echo "$ac_t""int" 1>&6
7276 echo "configure: failed program was:" >&5
7277 cat conftest.
$ac_ext >&5
7279 echo "$ac_t""unknown" 1>&6
7293 if test "$wxUSE_DYNLIB_CLASS" = "1"; then
7294 for ac_func
in dlopen
7296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7297 echo "configure:7298: checking for $ac_func" >&5
7298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7299 echo $ac_n "(cached) $ac_c" 1>&6
7301 cat > conftest.
$ac_ext <<EOF
7302 #line 7303 "configure"
7303 #include "confdefs.h"
7304 /* System header to define __stub macros and hopefully few prototypes,
7305 which can conflict with char $ac_func(); below. */
7307 /* Override any gcc2 internal prototype to avoid an error. */
7308 /* We use char because int might match the return type of a gcc2
7309 builtin and then its argument prototype would still apply. */
7314 /* The GNU C library defines this for functions which it implements
7315 to always fail with ENOSYS. Some functions are actually named
7316 something starting with __ and the normal name is an alias. */
7317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7325 if { (eval echo configure
:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7327 eval "ac_cv_func_$ac_func=yes"
7329 echo "configure: failed program was:" >&5
7330 cat conftest.
$ac_ext >&5
7332 eval "ac_cv_func_$ac_func=no"
7337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7338 echo "$ac_t""yes" 1>&6
7339 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7340 cat >> confdefs.h
<<EOF
7341 #define $ac_tr_func 1
7343 cat >> confdefs.h
<<\EOF
7344 #define HAVE_DLOPEN 1
7348 echo "$ac_t""no" 1>&6
7349 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7350 echo "configure:7351: checking for dlopen in -ldl" >&5
7351 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
7352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7353 echo $ac_n "(cached) $ac_c" 1>&6
7355 ac_save_LIBS
="$LIBS"
7357 cat > conftest.
$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7360 /* Override any gcc2 internal prototype to avoid an error. */
7361 /* We use char because int might match the return type of a gcc2
7362 builtin and then its argument prototype would still apply. */
7369 if { (eval echo configure
:7370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7371 eval "ac_cv_lib_$ac_lib_var=yes"
7373 echo "configure: failed program was:" >&5
7374 cat conftest.
$ac_ext >&5
7376 eval "ac_cv_lib_$ac_lib_var=no"
7379 LIBS
="$ac_save_LIBS"
7382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7383 echo "$ac_t""yes" 1>&6
7384 cat >> confdefs.h
<<\EOF
7385 #define HAVE_DLOPEN 1
7389 echo "$ac_t""no" 1>&6
7395 for ac_func
in shl_load
7397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7398 echo "configure:7399: checking for $ac_func" >&5
7399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7400 echo $ac_n "(cached) $ac_c" 1>&6
7402 cat > conftest.
$ac_ext <<EOF
7403 #line 7404 "configure"
7404 #include "confdefs.h"
7405 /* System header to define __stub macros and hopefully few prototypes,
7406 which can conflict with char $ac_func(); below. */
7408 /* Override any gcc2 internal prototype to avoid an error. */
7409 /* We use char because int might match the return type of a gcc2
7410 builtin and then its argument prototype would still apply. */
7415 /* The GNU C library defines this for functions which it implements
7416 to always fail with ENOSYS. Some functions are actually named
7417 something starting with __ and the normal name is an alias. */
7418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7426 if { (eval echo configure
:7427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7428 eval "ac_cv_func_$ac_func=yes"
7430 echo "configure: failed program was:" >&5
7431 cat conftest.
$ac_ext >&5
7433 eval "ac_cv_func_$ac_func=no"
7438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7439 echo "$ac_t""yes" 1>&6
7440 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7441 cat >> confdefs.h
<<EOF
7442 #define $ac_tr_func 1
7444 cat >> confdefs.h
<<\EOF
7445 #define HAVE_SHL_LOAD 1
7449 echo "$ac_t""no" 1>&6
7454 if test "$HAVE_DL_FUNCS" = 0; then
7455 echo "configure: warning: "--with-dynlib will be disabled because no
function was found to load a shared library on this platform
"" 1>&2
7457 wxUSE_DYNLIB_CLASS
=0
7461 if test "$wxUSE_DYNLIB_CLASS" = 1 ; then
7462 cat >> confdefs.h
<<EOF
7463 #define wxUSE_DYNLIB_CLASS $wxUSE_DYNLIB_CLASS
7469 if test "$wxUSE_RPC" = 1 ; then
7470 cat >> confdefs.h
<<EOF
7471 #define wxUSE_RPC $wxUSE_RPC
7476 if test "$wxUSE_WX_RESOURCES" = 1 ; then
7477 cat >> confdefs.h
<<EOF
7478 #define wxUSE_WX_RESOURCES $wxUSE_WX_RESOURCES
7483 if test "$wxUSE_PROLOGIO" = 1 ; then
7484 cat >> confdefs.h
<<EOF
7485 #define wxUSE_PROLOGIO 1
7491 if test "$wxUSE_POSTSCRIPT" = 1 ; then
7492 cat >> confdefs.h
<<EOF
7493 #define wxUSE_POSTSCRIPT 1
7498 cat >> confdefs.h
<<EOF
7499 #define wxUSE_AFM_FOR_POSTSCRIPT $wxUSE_AFM_FOR_POSTSCRIPT
7503 cat >> confdefs.h
<<EOF
7504 #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
7509 if test "$wxUSE_MDI_ARCHITECTURE" = 1 ; then
7510 cat >> confdefs.h
<<EOF
7511 #define wxUSE_MDI_ARCHITECTURE $wxUSE_MDI_ARCHITECTURE
7516 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1 ; then
7517 cat >> confdefs.h
<<EOF
7518 #define wxUSE_DOC_VIEW_ARCHITECTURE $wxUSE_DOC_VIEW_ARCHITECTURE
7523 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1 ; then
7524 cat >> confdefs.h
<<EOF
7525 #define wxUSE_PRINTING_ARCHITECTURE $wxUSE_PRINTING_ARCHITECTURE
7531 if test "$wxUSE_UNICODE" = 1 ; then
7532 cat >> confdefs.h
<<EOF
7533 #define wxUSE_UNICODE 1
7538 if test "$wxUSE_WCSRTOMBS" = 1 ; then
7539 cat >> confdefs.h
<<EOF
7540 #define wxUSE_WCSRTOMBS 1
7546 if test "$wxUSE_IPC" = 1 ; then
7547 cat >> confdefs.h
<<EOF
7553 if test "$wxUSE_RESOURCES" = 1 ; then
7554 cat >> confdefs.h
<<EOF
7555 #define wxUSE_RESOURCES $wxUSE_RESOURCES
7560 if test "$wxUSE_CLIPBOARD" = 1 ; then
7561 cat >> confdefs.h
<<EOF
7562 #define wxUSE_CLIPBOARD $wxUSE_CLIPBOARD
7567 if test "$wxUSE_TOOLTIPS" = 1 ; then
7568 if test "$wxUSE_MOTIF" = 1; then
7569 echo "configure: warning: tooltips are not supported yet under Motif" 1>&2
7573 cat >> confdefs.h
<<EOF
7574 #define wxUSE_TOOLTIPS $wxUSE_TOOLTIPS
7579 if test "$wxUSE_DRAG_AND_DROP" = 1 ; then
7580 cat >> confdefs.h
<<EOF
7581 #define wxUSE_DRAG_AND_DROP $wxUSE_DRAG_AND_DROP
7588 if test "$wxUSE_HELP" = 1 ; then
7590 cat >> confdefs.h
<<EOF
7591 #define wxUSE_HELP $wxUSE_HELP
7602 if test "$wxUSE_THREADS" = "1"; then
7604 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
7605 echo "configure:7606: checking for pthread_create in -lpthread" >&5
7606 ac_lib_var
=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
7607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7608 echo $ac_n "(cached) $ac_c" 1>&6
7610 ac_save_LIBS
="$LIBS"
7611 LIBS
="-lpthread $LIBS"
7612 cat > conftest.
$ac_ext <<EOF
7613 #line 7614 "configure"
7614 #include "confdefs.h"
7615 /* Override any gcc2 internal prototype to avoid an error. */
7616 /* We use char because int might match the return type of a gcc2
7617 builtin and then its argument prototype would still apply. */
7618 char pthread_create();
7624 if { (eval echo configure
:7625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7626 eval "ac_cv_lib_$ac_lib_var=yes"
7628 echo "configure: failed program was:" >&5
7629 cat conftest.
$ac_ext >&5
7631 eval "ac_cv_lib_$ac_lib_var=no"
7634 LIBS
="$ac_save_LIBS"
7637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7638 echo "$ac_t""yes" 1>&6
7640 UNIX_THREAD
="unix/threadpsx.cpp"
7641 THREADS_LINK
="pthread"
7644 echo "$ac_t""no" 1>&6
7646 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
7647 echo "configure:7648: checking for pthread_create in -lc_r" >&5
7648 ac_lib_var
=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
7649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7650 echo $ac_n "(cached) $ac_c" 1>&6
7652 ac_save_LIBS
="$LIBS"
7654 cat > conftest.
$ac_ext <<EOF
7655 #line 7656 "configure"
7656 #include "confdefs.h"
7657 /* Override any gcc2 internal prototype to avoid an error. */
7658 /* We use char because int might match the return type of a gcc2
7659 builtin and then its argument prototype would still apply. */
7660 char pthread_create();
7666 if { (eval echo configure
:7667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7668 eval "ac_cv_lib_$ac_lib_var=yes"
7670 echo "configure: failed program was:" >&5
7671 cat conftest.
$ac_ext >&5
7673 eval "ac_cv_lib_$ac_lib_var=no"
7676 LIBS
="$ac_save_LIBS"
7679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7680 echo "$ac_t""yes" 1>&6
7682 UNIX_THREAD
="unix/threadpsx.cpp"
7686 echo "$ac_t""no" 1>&6
7688 ac_safe
=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
7689 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7690 echo "configure:7691: checking for sys/prctl.h" >&5
7691 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7692 echo $ac_n "(cached) $ac_c" 1>&6
7694 cat > conftest.
$ac_ext <<EOF
7695 #line 7696 "configure"
7696 #include "confdefs.h"
7697 #include <sys/prctl.h>
7699 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7700 { (eval echo configure
:7701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7701 ac_err
=`grep -v '^ *+' conftest.out`
7702 if test -z "$ac_err"; then
7704 eval "ac_cv_header_$ac_safe=yes"
7707 echo "configure: failed program was:" >&5
7708 cat conftest.
$ac_ext >&5
7710 eval "ac_cv_header_$ac_safe=no"
7714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7715 echo "$ac_t""yes" 1>&6
7717 UNIX_THREAD
="gtk/threadsgi.cpp"
7720 echo "$ac_t""no" 1>&6
7729 if test "$THREADS_LINK" != ""; then
7730 cat >> confdefs.h
<<\EOF
7731 #define wxUSE_THREADS 1
7735 echo "configure: warning: No thread support on this system" 1>&2
7739 if test -z "$UNIX_THREAD"; then
7743 if test "$wxUSE_THREADS" = "1"; then
7746 for ac_hdr
in sched.h
7748 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7750 echo "configure:7751: checking for $ac_hdr" >&5
7751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7752 echo $ac_n "(cached) $ac_c" 1>&6
7754 cat > conftest.
$ac_ext <<EOF
7755 #line 7756 "configure"
7756 #include "confdefs.h"
7759 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7760 { (eval echo configure
:7761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7761 ac_err
=`grep -v '^ *+' conftest.out`
7762 if test -z "$ac_err"; then
7764 eval "ac_cv_header_$ac_safe=yes"
7767 echo "configure: failed program was:" >&5
7768 cat conftest.
$ac_ext >&5
7770 eval "ac_cv_header_$ac_safe=no"
7774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7775 echo "$ac_t""yes" 1>&6
7776 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7777 cat >> confdefs.h
<<EOF
7778 #define $ac_tr_hdr 1
7782 echo "$ac_t""no" 1>&6
7787 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
7788 echo "configure:7789: checking for sched_yield in -l$THREADS_LINK" >&5
7789 ac_lib_var
=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
7790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7791 echo $ac_n "(cached) $ac_c" 1>&6
7793 ac_save_LIBS
="$LIBS"
7794 LIBS
="-l$THREADS_LINK $LIBS"
7795 cat > conftest.
$ac_ext <<EOF
7796 #line 7797 "configure"
7797 #include "confdefs.h"
7798 /* Override any gcc2 internal prototype to avoid an error. */
7799 /* We use char because int might match the return type of a gcc2
7800 builtin and then its argument prototype would still apply. */
7807 if { (eval echo configure
:7808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7809 eval "ac_cv_lib_$ac_lib_var=yes"
7811 echo "configure: failed program was:" >&5
7812 cat conftest.
$ac_ext >&5
7814 eval "ac_cv_lib_$ac_lib_var=no"
7817 LIBS
="$ac_save_LIBS"
7820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7821 echo "$ac_t""yes" 1>&6
7822 cat >> confdefs.h
<<\EOF
7823 #define HAVE_SCHED_YIELD 1
7827 echo "$ac_t""no" 1>&6
7828 echo $ac_n "checking for sched_yield in -l"posix4
"""... $ac_c" 1>&6
7829 echo "configure:7830: checking for sched_yield in -l"posix4
"" >&5
7830 ac_lib_var
=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
7831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7832 echo $ac_n "(cached) $ac_c" 1>&6
7834 ac_save_LIBS
="$LIBS"
7835 LIBS
="-l"posix4
" $LIBS"
7836 cat > conftest.
$ac_ext <<EOF
7837 #line 7838 "configure"
7838 #include "confdefs.h"
7839 /* Override any gcc2 internal prototype to avoid an error. */
7840 /* We use char because int might match the return type of a gcc2
7841 builtin and then its argument prototype would still apply. */
7848 if { (eval echo configure
:7849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7850 eval "ac_cv_lib_$ac_lib_var=yes"
7852 echo "configure: failed program was:" >&5
7853 cat conftest.
$ac_ext >&5
7855 eval "ac_cv_lib_$ac_lib_var=no"
7858 LIBS
="$ac_save_LIBS"
7861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7862 echo "$ac_t""yes" 1>&6
7863 cat >> confdefs.h
<<\EOF
7864 #define HAVE_SCHED_YIELD 1
7866 POSIX4_LINK
="-lposix4"
7868 echo "$ac_t""no" 1>&6
7869 echo "configure: warning: wxThread::Yield() will not work properly" 1>&2
7877 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
7878 echo "configure:7879: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
7879 ac_lib_var
=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
7880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7881 echo $ac_n "(cached) $ac_c" 1>&6
7883 ac_save_LIBS
="$LIBS"
7884 LIBS
="-l$THREADS_LINK $LIBS"
7885 cat > conftest.
$ac_ext <<EOF
7886 #line 7887 "configure"
7887 #include "confdefs.h"
7888 /* Override any gcc2 internal prototype to avoid an error. */
7889 /* We use char because int might match the return type of a gcc2
7890 builtin and then its argument prototype would still apply. */
7891 char pthread_attr_getschedpolicy();
7894 pthread_attr_getschedpolicy()
7897 if { (eval echo configure
:7898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7899 eval "ac_cv_lib_$ac_lib_var=yes"
7901 echo "configure: failed program was:" >&5
7902 cat conftest.
$ac_ext >&5
7904 eval "ac_cv_lib_$ac_lib_var=no"
7907 LIBS
="$ac_save_LIBS"
7910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7911 echo "$ac_t""yes" 1>&6
7912 cat >> confdefs.h
<<\EOF
7913 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
7917 echo "$ac_t""no" 1>&6
7918 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4
"""... $ac_c" 1>&6
7919 echo "configure:7920: checking for pthread_attr_getschedpolicy in -l"posix4
"" >&5
7920 ac_lib_var
=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
7921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7922 echo $ac_n "(cached) $ac_c" 1>&6
7924 ac_save_LIBS
="$LIBS"
7925 LIBS
="-l"posix4
" $LIBS"
7926 cat > conftest.
$ac_ext <<EOF
7927 #line 7928 "configure"
7928 #include "confdefs.h"
7929 /* Override any gcc2 internal prototype to avoid an error. */
7930 /* We use char because int might match the return type of a gcc2
7931 builtin and then its argument prototype would still apply. */
7932 char pthread_attr_getschedpolicy();
7935 pthread_attr_getschedpolicy()
7938 if { (eval echo configure
:7939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7940 eval "ac_cv_lib_$ac_lib_var=yes"
7942 echo "configure: failed program was:" >&5
7943 cat conftest.
$ac_ext >&5
7945 eval "ac_cv_lib_$ac_lib_var=no"
7948 LIBS
="$ac_save_LIBS"
7951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7952 echo "$ac_t""yes" 1>&6
7953 cat >> confdefs.h
<<\EOF
7954 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
7956 POSIX4_LINK
="-lposix4"
7958 echo "$ac_t""no" 1>&6
7959 echo "configure: warning: Setting thread priority will not work" 1>&2
7967 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
7968 echo "configure:7969: checking for pthread_cancel in -l$THREADS_LINK" >&5
7969 ac_lib_var
=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
7970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7971 echo $ac_n "(cached) $ac_c" 1>&6
7973 ac_save_LIBS
="$LIBS"
7974 LIBS
="-l$THREADS_LINK $LIBS"
7975 cat > conftest.
$ac_ext <<EOF
7976 #line 7977 "configure"
7977 #include "confdefs.h"
7978 /* Override any gcc2 internal prototype to avoid an error. */
7979 /* We use char because int might match the return type of a gcc2
7980 builtin and then its argument prototype would still apply. */
7981 char pthread_cancel();
7987 if { (eval echo configure
:7988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7989 eval "ac_cv_lib_$ac_lib_var=yes"
7991 echo "configure: failed program was:" >&5
7992 cat conftest.
$ac_ext >&5
7994 eval "ac_cv_lib_$ac_lib_var=no"
7997 LIBS
="$ac_save_LIBS"
8000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8001 echo "$ac_t""yes" 1>&6
8002 cat >> confdefs.h
<<\EOF
8003 #define HAVE_PTHREAD_CANCEL 1
8007 echo "$ac_t""no" 1>&6
8008 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
8012 THREADS_LINK
="-l$THREADS_LINK"
8022 case "${canonical}" in
8024 if test "$GCC" != "yes" ; then
8025 CXXFLAGS
="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
8026 CFLAGS
="${CFLAGS} -z -D_HPUX_SOURCE"
8032 CREATE_SHARED
=sharedHpux
8037 CREATE_SHARED
=sharedLinux
8040 *-*-irix5* | *-*-irix6* )
8041 # PICFLAGS can remain empty, as pic is the default
8043 CREATE_SHARED
=sharedIrix
8044 cat >> confdefs.h
<<\EOF
8051 if test "$GCC" != "yes" ; then
8056 CREATE_SHARED
=sharedSolaris2
8057 cat >> confdefs.h
<<\EOF
8064 if test "$GCC" != "yes" ; then
8070 CREATE_SHARED
=sharedSunos4
8071 cat >> confdefs.h
<<\EOF
8077 *-*-freebsd* | *-*-netbsd*)
8079 CREATE_SHARED
=sharedBsd
8080 cat >> confdefs.h
<<\EOF
8088 CREATE_SHARED
=sharedOSF
8092 if test "$GCC" != "yes" ; then
8097 CREATE_SHARED
=sharedDgux
8098 cat >> confdefs.h
<<\EOF
8105 if test "$GCC" != "yes" ; then
8110 CREATE_SHARED
=sharedSysV
8111 cat >> confdefs.h
<<\EOF
8118 if test "$GCC" != "yes" ; then
8121 PICFLAGS
="-fPIC -D__SYSV__"
8123 CREATE_SHARED
=sharedAIX
8124 cat >> confdefs.h
<<\EOF
8135 if test "x$GCC" = xyes
; then
8136 CFLAGS
="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER -DHAVE_LIBDL"
8139 if test "x$GXX" = xyes
; then
8140 if test "$wxUSE_MOTIF" = 1; then
8141 CXXFLAGS
="${CXXFLAGS} -Wall -Wno-unused -D_REENTRANT"
8143 CXXFLAGS
="${CXXFLAGS} -Wall -D_REENTRANT"
8147 if test "$wxUSE_SHARED" != 1; then
8157 echo $OS >> system.list
8159 TOOLKIT_DIR
=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
8163 cat > confcache
<<\EOF
8164 # This file is a shell script that caches the results of configure
8165 # tests run on this system so they can be shared between configure
8166 # scripts and configure runs. It is not useful on other systems.
8167 # If it contains results you don't want to keep, you may remove or edit it.
8169 # By default, configure uses ./config.cache as the cache file,
8170 # creating it if it does not exist already. You can give configure
8171 # the --cache-file=FILE option to use a different cache file; that is
8172 # what configure does when it calls configure scripts in
8173 # subdirectories, so they share the cache.
8174 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8175 # config.status only pays attention to the cache file if you give it the
8176 # --recheck option to rerun configure.
8179 # The following way of writing the cache mishandles newlines in values,
8180 # but we know of no workaround that is simple, portable, and efficient.
8181 # So, don't put newlines in cache variables' values.
8182 # Ultrix sh set writes to stderr and can't be redirected directly,
8183 # and sets the high bit in the cache file unless we assign to the vars.
8185 case `(ac_space=' '; set) 2>&1` in
8187 # `set' does not quote correctly, so add quotes (double-quote substitution
8188 # turns \\\\ into \\, and sed turns \\ into \).
8190 -e "s/'/'\\\\''/g" \
8191 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8194 # `set' quotes correctly as required by POSIX, so do not add quotes.
8195 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8198 if cmp -s $cache_file confcache
; then
8201 if test -w $cache_file; then
8202 echo "updating cache $cache_file"
8203 cat confcache
> $cache_file
8205 echo "not updating unwritable cache $cache_file"
8210 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8212 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8213 # Let make expand exec_prefix.
8214 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8216 # Any assignment to VPATH causes Sun make to only execute
8217 # the first set of double-colon rules, so remove it if not needed.
8218 # If there is a colon in the path, we need to keep it.
8219 if test "x$srcdir" = x.
; then
8220 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8223 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8225 DEFS
=-DHAVE_CONFIG_H
8227 # Without the "./", some shells look in PATH for config.status.
8228 : ${CONFIG_STATUS=./config.status}
8230 echo creating
$CONFIG_STATUS
8231 rm -f $CONFIG_STATUS
8232 cat > $CONFIG_STATUS <<EOF
8234 # Generated automatically by configure.
8235 # Run this file to recreate the current configuration.
8236 # This directory was configured as follows,
8237 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8239 # $0 $ac_configure_args
8241 # Compiler output produced by configure, useful for debugging
8242 # configure, is in ./config.log if it exists.
8244 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8247 case "\$ac_option" in
8248 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8249 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8250 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8251 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8252 echo "$CONFIG_STATUS generated by autoconf version 2.12"
8254 -help | --help | --hel | --he | --h)
8255 echo "\$ac_cs_usage"; exit 0 ;;
8256 *) echo "\$ac_cs_usage"; exit 1 ;;
8260 ac_given_srcdir=$srcdir
8261 ac_given_INSTALL="$INSTALL"
8263 trap 'rm -fr `echo "./setup/substit ./wx-config:./wx-config.in ./include/wx/${TOOLKIT_DIR}/setup.h:./setup/setup.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8265 cat >> $CONFIG_STATUS <<EOF
8267 # Protect against being on the right side of a sed subst in config.status.
8268 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8269 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8272 s%@CFLAGS@%$CFLAGS%g
8273 s%@CPPFLAGS@%$CPPFLAGS%g
8274 s%@CXXFLAGS@%$CXXFLAGS%g
8276 s%@LDFLAGS@%$LDFLAGS%g
8278 s%@exec_prefix@%$exec_prefix%g
8279 s%@prefix@%$prefix%g
8280 s%@program_transform_name@%$program_transform_name%g
8281 s%@bindir@%$bindir%g
8282 s%@sbindir@%$sbindir%g
8283 s%@libexecdir@%$libexecdir%g
8284 s%@datadir@%$datadir%g
8285 s%@sysconfdir@%$sysconfdir%g
8286 s%@sharedstatedir@%$sharedstatedir%g
8287 s%@localstatedir@%$localstatedir%g
8288 s%@libdir@%$libdir%g
8289 s%@includedir@%$includedir%g
8290 s%@oldincludedir@%$oldincludedir%g
8291 s%@infodir@%$infodir%g
8292 s%@mandir@%$mandir%g
8293 s%@WXBASEDIR@%$WXBASEDIR%g
8297 s%@CXXCPP@%$CXXCPP%g
8298 s%@RANLIB@%$RANLIB%g
8300 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8301 s%@INSTALL_DATA@%$INSTALL_DATA%g
8305 s%@X_CFLAGS@%$X_CFLAGS%g
8306 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8307 s%@X_LIBS@%$X_LIBS%g
8308 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8309 s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
8310 s%@LIBOBJS@%$LIBOBJS%g
8313 s%@LEXLIB@%$LEXLIB%g
8314 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
8315 s%@DL_LIBRARY@%$DL_LIBRARY%g
8317 s%@host_alias@%$host_alias%g
8318 s%@host_cpu@%$host_cpu%g
8319 s%@host_vendor@%$host_vendor%g
8320 s%@host_os@%$host_os%g
8321 s%@GTK_CONFIG@%$GTK_CONFIG%g
8322 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8323 s%@GTK_LIBS@%$GTK_LIBS%g
8324 s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
8325 s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
8326 s%@GUI_TK_LINK@%$GUI_TK_LINK%g
8327 s%@WX_LINK@%$WX_LINK%g
8328 s%@TOOLKIT@%$TOOLKIT%g
8329 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
8330 s%@MAKEINCLUDE@%$MAKEINCLUDE%g
8331 s%@WXDEBUG@%$WXDEBUG%g
8332 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
8333 s%@EXTRA_LINK@%$EXTRA_LINK%g
8334 s%@PROFILE@%$PROFILE%g
8335 s%@OPTIMISE@%$OPTIMISE%g
8336 s%@Z_C_SRC@%$Z_C_SRC%g
8337 s%@PNG_C_SRC@%$PNG_C_SRC%g
8338 s%@JPEG_C_SRC@%$JPEG_C_SRC%g
8339 s%@JPEG_LINK@%$JPEG_LINK%g
8340 s%@IODBC_C_SRC@%$IODBC_C_SRC%g
8342 s%@UNIX_THREAD@%$UNIX_THREAD%g
8343 s%@THREADS_LINK@%$THREADS_LINK%g
8344 s%@POSIX4_LINK@%$POSIX4_LINK%g
8346 s%@PICFLAGS@%$PICFLAGS%g
8347 s%@CREATE_SHARED@%$CREATE_SHARED%g
8352 cat >> $CONFIG_STATUS <<\EOF
8354 # Split the substitutions into bite-sized pieces for seds with
8355 # small command number limits, like on Digital OSF/1 and HP-UX.
8356 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8357 ac_file
=1 # Number of current file.
8358 ac_beg
=1 # First line for current file.
8359 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8362 while $ac_more_lines; do
8363 if test $ac_beg -gt 1; then
8364 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8366 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8368 if test ! -s conftest.s
$ac_file; then
8370 rm -f conftest.s
$ac_file
8372 if test -z "$ac_sed_cmds"; then
8373 ac_sed_cmds
="sed -f conftest.s$ac_file"
8375 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8377 ac_file
=`expr $ac_file + 1`
8379 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8382 if test -z "$ac_sed_cmds"; then
8387 cat >> $CONFIG_STATUS <<EOF
8389 CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"}
8391 cat >> $CONFIG_STATUS <<\EOF
8392 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8393 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8395 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8396 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8397 *) ac_file_in
="${ac_file}.in" ;;
8400 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8402 # Remove last slash and all that follows it. Not all systems have dirname.
8403 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8404 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8405 # The file is in a subdirectory.
8406 test ! -d "$ac_dir" && mkdir "$ac_dir"
8407 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8408 # A "../" for each directory in $ac_dir_suffix.
8409 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8411 ac_dir_suffix
= ac_dots
=
8414 case "$ac_given_srcdir" in
8416 if test -z "$ac_dots"; then top_srcdir
=.
8417 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8418 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8420 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8421 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8424 case "$ac_given_INSTALL" in
8425 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
8426 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
8429 echo creating
"$ac_file"
8431 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8433 *Makefile
*) ac_comsub
="1i\\
8434 # $configure_input" ;;
8438 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8440 s%@configure_input@%$configure_input%g
8441 s%@srcdir@%$srcdir%g
8442 s%@top_srcdir@%$top_srcdir%g
8443 s%@INSTALL@%$INSTALL%g
8444 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8448 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8449 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8451 # ac_d sets the value in "#define NAME VALUE" lines.
8452 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8453 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8456 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8457 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8458 ac_uB
='\([ ]\)%\1#\2define\3'
8461 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8462 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8463 ac_eB
='$%\1#\2define\3'
8467 if test "${CONFIG_HEADERS+set}" != set; then
8469 cat >> $CONFIG_STATUS <<EOF
8470 CONFIG_HEADERS="./include/wx/${TOOLKIT_DIR}/setup.h:./setup/setup.hin"
8472 cat >> $CONFIG_STATUS <<\EOF
8474 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8475 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8477 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8478 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8479 *) ac_file_in
="${ac_file}.in" ;;
8482 echo creating
$ac_file
8484 rm -f conftest.frag conftest.
in conftest.out
8485 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8486 cat $ac_file_inputs > conftest.
in
8490 # Transform confdefs.h into a sed script conftest.vals that substitutes
8491 # the proper values into config.h.in to produce config.h. And first:
8492 # Protect against being on the right side of a sed subst in config.status.
8493 # Protect against being in an unquoted here document in config.status.
8495 cat > conftest.hdr
<<\EOF
8498 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8502 sed -n -f conftest.hdr confdefs.h > conftest.vals
8505 # This sed command replaces #undef with comments. This is necessary, for
8506 # example, in the case of _POSIX_SOURCE, which is predefined and required
8507 # on some systems where configure will not decide to define it.
8508 cat >> conftest.vals <<\EOF
8509 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8512 # Break up conftest.vals because some shells have a limit on
8513 # the size of here documents, and old seds have small limits too.
8518 ac_lines=`grep -c . conftest.vals
`
8519 # grep -c gives empty output for an empty file on some AIX systems.
8520 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8521 # Write a limited-size here document to conftest.frag.
8522 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8523 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8525 sed -f conftest.frag conftest.in > conftest.out
8527 mv conftest.out conftest.in
8529 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8531 mv conftest.tail conftest.vals
8535 cat >> $CONFIG_STATUS <<\EOF
8536 rm -f conftest.frag conftest.h
8537 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8538 cat conftest.in >> conftest.h
8540 if cmp -s $ac_file conftest.h 2>/dev/null; then
8541 echo "$ac_file is unchanged"
8544 # Remove last slash and all that follows it. Not all systems have dirname.
8545 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8546 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8547 # The file is in a subdirectory.
8548 test ! -d "$ac_dir" && mkdir "$ac_dir"
8551 mv conftest.h $ac_file
8556 cat >> $CONFIG_STATUS <<EOF
8559 cat >> $CONFIG_STATUS <<\EOF
8560 ./setup/general/createall
8563 chmod +x $CONFIG_STATUS
8564 rm -fr confdefs* $ac_clean_files
8565 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8569 mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache