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 wchar.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 wcstr.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
2845 for ac_hdr
in fnmatch.h
2847 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2849 echo "configure:2850: checking for $ac_hdr" >&5
2850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 cat > conftest.
$ac_ext <<EOF
2854 #line 2855 "configure"
2855 #include "confdefs.h"
2858 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2859 { (eval echo configure
:2860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2860 ac_err
=`grep -v '^ *+' conftest.out`
2861 if test -z "$ac_err"; then
2863 eval "ac_cv_header_$ac_safe=yes"
2866 echo "configure: failed program was:" >&5
2867 cat conftest.
$ac_ext >&5
2869 eval "ac_cv_header_$ac_safe=no"
2873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2874 echo "$ac_t""yes" 1>&6
2875 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2876 cat >> confdefs.h
<<EOF
2877 #define $ac_tr_hdr 1
2881 echo "$ac_t""no" 1>&6
2885 for ac_hdr
in linux
/joystick.h
2887 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2888 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2889 echo "configure:2890: checking for $ac_hdr" >&5
2890 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2893 cat > conftest.
$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2898 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2899 { (eval echo configure
:2900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2900 ac_err
=`grep -v '^ *+' conftest.out`
2901 if test -z "$ac_err"; then
2903 eval "ac_cv_header_$ac_safe=yes"
2906 echo "configure: failed program was:" >&5
2907 cat conftest.
$ac_ext >&5
2909 eval "ac_cv_header_$ac_safe=no"
2913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2914 echo "$ac_t""yes" 1>&6
2915 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2916 cat >> confdefs.h
<<EOF
2917 #define $ac_tr_hdr 1
2921 echo "$ac_t""no" 1>&6
2926 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
2927 GTK_JOYSTICK
="gtk/joystick.cpp"
2931 for ac_hdr
in strings.h
2933 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2934 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2935 echo "configure:2936: checking for $ac_hdr" >&5
2936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2939 cat > conftest.
$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2944 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2945 { (eval echo configure
:2946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2946 ac_err
=`grep -v '^ *+' conftest.out`
2947 if test -z "$ac_err"; then
2949 eval "ac_cv_header_$ac_safe=yes"
2952 echo "configure: failed program was:" >&5
2953 cat conftest.
$ac_ext >&5
2955 eval "ac_cv_header_$ac_safe=no"
2959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2960 echo "$ac_t""yes" 1>&6
2961 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2962 cat >> confdefs.h
<<EOF
2963 #define $ac_tr_hdr 1
2967 echo "$ac_t""no" 1>&6
2974 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
2975 echo "configure:2976: checking for wcslen in -lc" >&5
2976 ac_lib_var
=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
2977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 ac_save_LIBS
="$LIBS"
2982 cat > conftest.
$ac_ext <<EOF
2983 #line 2984 "configure"
2984 #include "confdefs.h"
2985 /* Override any gcc2 internal prototype to avoid an error. */
2986 /* We use char because int might match the return type of a gcc2
2987 builtin and then its argument prototype would still apply. */
2994 if { (eval echo configure
:2995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2996 eval "ac_cv_lib_$ac_lib_var=yes"
2998 echo "configure: failed program was:" >&5
2999 cat conftest.
$ac_ext >&5
3001 eval "ac_cv_lib_$ac_lib_var=no"
3004 LIBS
="$ac_save_LIBS"
3007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3008 echo "$ac_t""yes" 1>&6
3009 ac_tr_lib
=HAVE_LIB
`echo c | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3010 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3011 cat >> confdefs.h
<<EOF
3012 #define $ac_tr_lib 1
3018 echo "$ac_t""no" 1>&6
3019 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
3020 echo "configure:3021: checking for wcslen in -lw" >&5
3021 ac_lib_var
=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
3022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 ac_save_LIBS
="$LIBS"
3027 cat > conftest.
$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3030 /* Override any gcc2 internal prototype to avoid an error. */
3031 /* We use char because int might match the return type of a gcc2
3032 builtin and then its argument prototype would still apply. */
3039 if { (eval echo configure
:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3041 eval "ac_cv_lib_$ac_lib_var=yes"
3043 echo "configure: failed program was:" >&5
3044 cat conftest.
$ac_ext >&5
3046 eval "ac_cv_lib_$ac_lib_var=no"
3049 LIBS
="$ac_save_LIBS"
3052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3053 echo "$ac_t""yes" 1>&6
3056 echo "$ac_t""no" 1>&6
3057 { echo "configure: error: "Cannot
find wcslen
function.
"" 1>&2; exit 1; }
3064 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3065 echo "configure:3066: checking for vprintf" >&5
3066 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3069 cat > conftest.
$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3072 /* System header to define __stub macros and hopefully few prototypes,
3073 which can conflict with char vprintf(); below. */
3075 /* Override any gcc2 internal prototype to avoid an error. */
3076 /* We use char because int might match the return type of a gcc2
3077 builtin and then its argument prototype would still apply. */
3082 /* The GNU C library defines this for functions which it implements
3083 to always fail with ENOSYS. Some functions are actually named
3084 something starting with __ and the normal name is an alias. */
3085 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3093 if { (eval echo configure
:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3095 eval "ac_cv_func_vprintf=yes"
3097 echo "configure: failed program was:" >&5
3098 cat conftest.
$ac_ext >&5
3100 eval "ac_cv_func_vprintf=no"
3105 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3106 echo "$ac_t""yes" 1>&6
3107 cat >> confdefs.h
<<\EOF
3108 #define HAVE_VPRINTF 1
3112 echo "$ac_t""no" 1>&6
3115 if test "$ac_cv_func_vprintf" != yes; then
3116 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3117 echo "configure:3118: checking for _doprnt" >&5
3118 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 cat > conftest.
$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3124 /* System header to define __stub macros and hopefully few prototypes,
3125 which can conflict with char _doprnt(); below. */
3127 /* Override any gcc2 internal prototype to avoid an error. */
3128 /* We use char because int might match the return type of a gcc2
3129 builtin and then its argument prototype would still apply. */
3134 /* The GNU C library defines this for functions which it implements
3135 to always fail with ENOSYS. Some functions are actually named
3136 something starting with __ and the normal name is an alias. */
3137 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3145 if { (eval echo configure
:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3147 eval "ac_cv_func__doprnt=yes"
3149 echo "configure: failed program was:" >&5
3150 cat conftest.
$ac_ext >&5
3152 eval "ac_cv_func__doprnt=no"
3157 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3158 echo "$ac_t""yes" 1>&6
3159 cat >> confdefs.h
<<\EOF
3160 #define HAVE_DOPRNT 1
3164 echo "$ac_t""no" 1>&6
3170 for ac_func
in vsnprintf
3172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3173 echo "configure:3174: checking for $ac_func" >&5
3174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 cat > conftest.
$ac_ext <<EOF
3178 #line 3179 "configure"
3179 #include "confdefs.h"
3180 /* System header to define __stub macros and hopefully few prototypes,
3181 which can conflict with char $ac_func(); below. */
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. */
3190 /* The GNU C library defines this for functions which it implements
3191 to always fail with ENOSYS. Some functions are actually named
3192 something starting with __ and the normal name is an alias. */
3193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3201 if { (eval echo configure
:3202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3203 eval "ac_cv_func_$ac_func=yes"
3205 echo "configure: failed program was:" >&5
3206 cat conftest.
$ac_ext >&5
3208 eval "ac_cv_func_$ac_func=no"
3213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3214 echo "$ac_t""yes" 1>&6
3215 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3216 cat >> confdefs.h
<<EOF
3217 #define $ac_tr_func 1
3219 cat >> confdefs.h
<<\EOF
3220 #define HAVE_VSNPRINTF 1
3224 echo "$ac_t""no" 1>&6
3225 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
3231 for ac_func
in vfork
3233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_func" >&5
3235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 cat > conftest.
$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 /* System header to define __stub macros and hopefully few prototypes,
3242 which can conflict with char $ac_func(); below. */
3244 /* Override any gcc2 internal prototype to avoid an error. */
3245 /* We use char because int might match the return type of a gcc2
3246 builtin and then its argument prototype would still apply. */
3251 /* The GNU C library defines this for functions which it implements
3252 to always fail with ENOSYS. Some functions are actually named
3253 something starting with __ and the normal name is an alias. */
3254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3262 if { (eval echo configure
:3263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3264 eval "ac_cv_func_$ac_func=yes"
3266 echo "configure: failed program was:" >&5
3267 cat conftest.
$ac_ext >&5
3269 eval "ac_cv_func_$ac_func=no"
3274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3275 echo "$ac_t""yes" 1>&6
3276 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3277 cat >> confdefs.h
<<EOF
3278 #define $ac_tr_func 1
3282 echo "$ac_t""no" 1>&6
3288 for ac_func
in nanosleep
3290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3291 echo "configure:3292: checking for $ac_func" >&5
3292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3295 cat > conftest.
$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 /* System header to define __stub macros and hopefully few prototypes,
3299 which can conflict with char $ac_func(); below. */
3301 /* Override any gcc2 internal prototype to avoid an error. */
3302 /* We use char because int might match the return type of a gcc2
3303 builtin and then its argument prototype would still apply. */
3308 /* The GNU C library defines this for functions which it implements
3309 to always fail with ENOSYS. Some functions are actually named
3310 something starting with __ and the normal name is an alias. */
3311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3319 if { (eval echo configure
:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3321 eval "ac_cv_func_$ac_func=yes"
3323 echo "configure: failed program was:" >&5
3324 cat conftest.
$ac_ext >&5
3326 eval "ac_cv_func_$ac_func=no"
3331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3332 echo "$ac_t""yes" 1>&6
3333 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3334 cat >> confdefs.h
<<EOF
3335 #define $ac_tr_func 1
3337 cat >> confdefs.h
<<\EOF
3338 #define HAVE_NANOSLEEP 1
3342 echo "$ac_t""no" 1>&6
3343 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3344 echo "configure:3345: checking for nanosleep in -lposix4" >&5
3345 ac_lib_var
=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 ac_save_LIBS
="$LIBS"
3350 LIBS
="-lposix4 $LIBS"
3351 cat > conftest.
$ac_ext <<EOF
3352 #line 3353 "configure"
3353 #include "confdefs.h"
3354 /* Override any gcc2 internal prototype to avoid an error. */
3355 /* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3363 if { (eval echo configure
:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3365 eval "ac_cv_lib_$ac_lib_var=yes"
3367 echo "configure: failed program was:" >&5
3368 cat conftest.
$ac_ext >&5
3370 eval "ac_cv_lib_$ac_lib_var=no"
3373 LIBS
="$ac_save_LIBS"
3376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3377 echo "$ac_t""yes" 1>&6
3379 cat >> confdefs.h
<<\EOF
3380 #define HAVE_NANOSLEEP 1
3383 POSIX4_LINK
="-lposix4"
3386 echo "$ac_t""no" 1>&6
3388 for ac_func
in usleep
3390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3391 echo "configure:3392: checking for $ac_func" >&5
3392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 cat > conftest.
$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 /* System header to define __stub macros and hopefully few prototypes,
3399 which can conflict with char $ac_func(); below. */
3401 /* Override any gcc2 internal prototype to avoid an error. */
3402 /* We use char because int might match the return type of a gcc2
3403 builtin and then its argument prototype would still apply. */
3408 /* The GNU C library defines this for functions which it implements
3409 to always fail with ENOSYS. Some functions are actually named
3410 something starting with __ and the normal name is an alias. */
3411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3419 if { (eval echo configure
:3420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3421 eval "ac_cv_func_$ac_func=yes"
3423 echo "configure: failed program was:" >&5
3424 cat conftest.
$ac_ext >&5
3426 eval "ac_cv_func_$ac_func=no"
3431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3432 echo "$ac_t""yes" 1>&6
3433 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3434 cat >> confdefs.h
<<EOF
3435 #define $ac_tr_func 1
3437 cat >> confdefs.h
<<\EOF
3438 #define HAVE_USLEEP 1
3442 echo "$ac_t""no" 1>&6
3443 echo "configure: warning: Sleep() function will not work" 1>&2
3455 for ac_func
in uname gethostname
3457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3458 echo "configure:3459: checking for $ac_func" >&5
3459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3462 cat > conftest.
$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 /* System header to define __stub macros and hopefully few prototypes,
3466 which can conflict with char $ac_func(); below. */
3468 /* Override any gcc2 internal prototype to avoid an error. */
3469 /* We use char because int might match the return type of a gcc2
3470 builtin and then its argument prototype would still apply. */
3475 /* The GNU C library defines this for functions which it implements
3476 to always fail with ENOSYS. Some functions are actually named
3477 something starting with __ and the normal name is an alias. */
3478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3486 if { (eval echo configure
:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3488 eval "ac_cv_func_$ac_func=yes"
3490 echo "configure: failed program was:" >&5
3491 cat conftest.
$ac_ext >&5
3493 eval "ac_cv_func_$ac_func=no"
3498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3499 echo "$ac_t""yes" 1>&6
3500 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3501 cat >> confdefs.h
<<EOF
3502 #define $ac_tr_func 1
3506 echo "$ac_t""no" 1>&6
3511 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3512 echo "configure:3513: checking for uid_t in sys/types.h" >&5
3513 if eval "test \"`echo '$''{'ac_cv_type_uid_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>
3521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3522 egrep "uid_t" >/dev
/null
2>&1; then
3524 ac_cv_type_uid_t
=yes
3533 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3534 if test $ac_cv_type_uid_t = no
; then
3535 cat >> confdefs.h
<<\EOF
3539 cat >> confdefs.h
<<\EOF
3545 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3546 echo "configure:3547: checking type of array argument to getgroups" >&5
3547 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3550 if test "$cross_compiling" = yes; then
3551 ac_cv_type_getgroups
=cross
3553 cat > conftest.
$ac_ext <<EOF
3554 #line 3555 "configure"
3555 #include "confdefs.h"
3557 /* Thanks to Mike Rendell for this test. */
3558 #include <sys/types.h>
3561 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3566 union { gid_t gval; long lval; } val;
3569 for (i = 0; i < NGID; i++)
3570 gidset[i] = val.gval;
3571 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3573 /* Exit non-zero if getgroups seems to require an array of ints. This
3574 happens when gid_t is short but getgroups modifies an array of ints. */
3575 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3579 if { (eval echo configure
:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3581 ac_cv_type_getgroups
=gid_t
3583 echo "configure: failed program was:" >&5
3584 cat conftest.
$ac_ext >&5
3586 ac_cv_type_getgroups
=int
3591 if test $ac_cv_type_getgroups = cross
; then
3592 cat > conftest.
$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3598 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3600 ac_cv_type_getgroups
=gid_t
3603 ac_cv_type_getgroups
=int
3610 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3611 cat >> confdefs.h
<<EOF
3612 #define GETGROUPS_T $ac_cv_type_getgroups
3616 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3617 echo "configure:3618: checking for mode_t" >&5
3618 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3621 cat > conftest.
$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 #include <sys/types.h>
3630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3631 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3633 ac_cv_type_mode_t
=yes
3636 ac_cv_type_mode_t
=no
3641 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3642 if test $ac_cv_type_mode_t = no
; then
3643 cat >> confdefs.h
<<\EOF
3649 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3650 echo "configure:3651: checking for off_t" >&5
3651 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3654 cat > conftest.
$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 #include <sys/types.h>
3663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3664 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3666 ac_cv_type_off_t
=yes
3674 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3675 if test $ac_cv_type_off_t = no
; then
3676 cat >> confdefs.h
<<\EOF
3682 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3683 echo "configure:3684: checking for pid_t" >&5
3684 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 cat > conftest.
$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 #include <sys/types.h>
3696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3697 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3699 ac_cv_type_pid_t
=yes
3707 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3708 if test $ac_cv_type_pid_t = no
; then
3709 cat >> confdefs.h
<<\EOF
3715 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3716 echo "configure:3717: checking return type of signal handlers" >&5
3717 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3718 echo $ac_n "(cached) $ac_c" 1>&6
3720 cat > conftest.
$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3723 #include <sys/types.h>
3729 extern "C" void (*signal (int, void (*)(int)))(int);
3731 void (*signal ()) ();
3738 if { (eval echo configure
:3739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3740 ac_cv_type_signal
=void
3742 echo "configure: failed program was:" >&5
3743 cat conftest.
$ac_ext >&5
3745 ac_cv_type_signal
=int
3750 echo "$ac_t""$ac_cv_type_signal" 1>&6
3751 cat >> confdefs.h
<<EOF
3752 #define RETSIGTYPE $ac_cv_type_signal
3756 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3757 echo "configure:3758: checking for size_t" >&5
3758 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 cat > conftest.
$ac_ext <<EOF
3762 #line 3763 "configure"
3763 #include "confdefs.h"
3764 #include <sys/types.h>
3770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3771 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3773 ac_cv_type_size_t
=yes
3776 ac_cv_type_size_t
=no
3781 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3782 if test $ac_cv_type_size_t = no
; then
3783 cat >> confdefs.h
<<\EOF
3784 #define size_t unsigned
3789 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3790 echo "configure:3791: checking for uid_t in sys/types.h" >&5
3791 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3794 cat > conftest.
$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3797 #include <sys/types.h>
3799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3800 egrep "uid_t" >/dev
/null
2>&1; then
3802 ac_cv_type_uid_t
=yes
3811 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3812 if test $ac_cv_type_uid_t = no
; then
3813 cat >> confdefs.h
<<\EOF
3817 cat >> confdefs.h
<<\EOF
3825 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3826 echo "configure:3827: checking whether stat file-mode macros are broken" >&5
3827 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 cat > conftest.
$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 #include <sys/types.h>
3834 #include <sys/stat.h>
3836 #if defined(S_ISBLK) && defined(S_IFDIR)
3837 # if S_ISBLK (S_IFDIR)
3842 #if defined(S_ISBLK) && defined(S_IFCHR)
3843 # if S_ISBLK (S_IFCHR)
3848 #if defined(S_ISLNK) && defined(S_IFREG)
3849 # if S_ISLNK (S_IFREG)
3854 #if defined(S_ISSOCK) && defined(S_IFREG)
3855 # if S_ISSOCK (S_IFREG)
3861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3862 egrep "You lose" >/dev
/null
2>&1; then
3864 ac_cv_header_stat_broken
=yes
3867 ac_cv_header_stat_broken
=no
3873 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3874 if test $ac_cv_header_stat_broken = yes; then
3875 cat >> confdefs.h
<<\EOF
3876 #define STAT_MACROS_BROKEN 1
3881 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3882 echo "configure:3883: checking whether time.h and sys/time.h may both be included" >&5
3883 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3886 cat > conftest.
$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 #include <sys/types.h>
3890 #include <sys/time.h>
3896 if { (eval echo configure
:3897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3898 ac_cv_header_time
=yes
3900 echo "configure: failed program was:" >&5
3901 cat conftest.
$ac_ext >&5
3903 ac_cv_header_time
=no
3908 echo "$ac_t""$ac_cv_header_time" 1>&6
3909 if test $ac_cv_header_time = yes; then
3910 cat >> confdefs.h
<<\EOF
3911 #define TIME_WITH_SYS_TIME 1
3916 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3917 echo "configure:3918: checking for st_blksize in struct stat" >&5
3918 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+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"
3924 #include <sys/types.h>
3925 #include <sys/stat.h>
3927 struct stat s; s.st_blksize;
3930 if { (eval echo configure
:3931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3932 ac_cv_struct_st_blksize
=yes
3934 echo "configure: failed program was:" >&5
3935 cat conftest.
$ac_ext >&5
3937 ac_cv_struct_st_blksize
=no
3942 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3943 if test $ac_cv_struct_st_blksize = yes; then
3944 cat >> confdefs.h
<<\EOF
3945 #define HAVE_ST_BLKSIZE 1
3950 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3951 echo "configure:3952: checking for st_blocks in struct stat" >&5
3952 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3955 cat > conftest.
$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3958 #include <sys/types.h>
3959 #include <sys/stat.h>
3961 struct stat s; s.st_blocks;
3964 if { (eval echo configure
:3965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3966 ac_cv_struct_st_blocks
=yes
3968 echo "configure: failed program was:" >&5
3969 cat conftest.
$ac_ext >&5
3971 ac_cv_struct_st_blocks
=no
3976 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3977 if test $ac_cv_struct_st_blocks = yes; then
3978 cat >> confdefs.h
<<\EOF
3979 #define HAVE_ST_BLOCKS 1
3983 LIBOBJS
="$LIBOBJS fileblocks.o"
3986 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3987 echo "configure:3988: checking for st_rdev in struct stat" >&5
3988 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6
3991 cat > conftest.
$ac_ext <<EOF
3992 #line 3993 "configure"
3993 #include "confdefs.h"
3994 #include <sys/types.h>
3995 #include <sys/stat.h>
3997 struct stat s; s.st_rdev;
4000 if { (eval echo configure
:4001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4002 ac_cv_struct_st_rdev
=yes
4004 echo "configure: failed program was:" >&5
4005 cat conftest.
$ac_ext >&5
4007 ac_cv_struct_st_rdev
=no
4012 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
4013 if test $ac_cv_struct_st_rdev = yes; then
4014 cat >> confdefs.h
<<\EOF
4015 #define HAVE_ST_RDEV 1
4020 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4021 echo "configure:4022: checking whether struct tm is in sys/time.h or time.h" >&5
4022 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4025 cat > conftest.
$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 #include <sys/types.h>
4031 struct tm *tp; tp->tm_sec;
4034 if { (eval echo configure
:4035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4036 ac_cv_struct_tm
=time.h
4038 echo "configure: failed program was:" >&5
4039 cat conftest.
$ac_ext >&5
4041 ac_cv_struct_tm
=sys
/time.h
4046 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4047 if test $ac_cv_struct_tm = sys
/time.h
; then
4048 cat >> confdefs.h
<<\EOF
4049 #define TM_IN_SYS_TIME 1
4054 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4055 echo "configure:4056: checking for tm_zone in struct tm" >&5
4056 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4059 cat > conftest.
$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4062 #include <sys/types.h>
4063 #include <$ac_cv_struct_tm>
4065 struct tm tm; tm.tm_zone;
4068 if { (eval echo configure
:4069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4070 ac_cv_struct_tm_zone
=yes
4072 echo "configure: failed program was:" >&5
4073 cat conftest.
$ac_ext >&5
4075 ac_cv_struct_tm_zone
=no
4080 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4081 if test "$ac_cv_struct_tm_zone" = yes; then
4082 cat >> confdefs.h
<<\EOF
4083 #define HAVE_TM_ZONE 1
4087 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4088 echo "configure:4089: checking for tzname" >&5
4089 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4092 cat > conftest.
$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4096 #ifndef tzname /* For SGI. */
4097 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4103 if { (eval echo configure
:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4105 ac_cv_var_tzname
=yes
4107 echo "configure: failed program was:" >&5
4108 cat conftest.
$ac_ext >&5
4115 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4116 if test $ac_cv_var_tzname = yes; then
4117 cat >> confdefs.h
<<\EOF
4118 #define HAVE_TZNAME 1
4126 echo $ac_n "checking for working const""... $ac_c" 1>&6
4127 echo "configure:4128: checking for working const" >&5
4128 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4129 echo $ac_n "(cached) $ac_c" 1>&6
4131 cat > conftest.
$ac_ext <<EOF
4132 #line 4133 "configure"
4133 #include "confdefs.h"
4137 /* Ultrix mips cc rejects this. */
4138 typedef int charset[2]; const charset x;
4139 /* SunOS 4.1.1 cc rejects this. */
4140 char const *const *ccp;
4142 /* NEC SVR4.0.2 mips cc rejects this. */
4143 struct point {int x, y;};
4144 static struct point const zero = {0,0};
4145 /* AIX XL C 1.02.0.0 rejects this.
4146 It does not let you subtract one const X* pointer from another in an arm
4147 of an if-expression whose if-part is not a constant expression */
4148 const char *g = "string";
4149 ccp = &g + (g ? g-g : 0);
4150 /* HPUX 7.0 cc rejects these. */
4153 ccp = (char const *const *) p;
4154 { /* SCO 3.2v4 cc rejects this. */
4156 char const *s = 0 ? (char *) 0 : (char const *) 0;
4160 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4162 const int *foo = &x[0];
4165 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4166 typedef const int *iptr;
4170 { /* AIX XL C 1.02.0.0 rejects this saying
4171 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4172 struct s { int j; const int *ap[3]; };
4173 struct s *b; b->j = 5;
4175 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4181 if { (eval echo configure
:4182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4185 echo "configure: failed program was:" >&5
4186 cat conftest.
$ac_ext >&5
4193 echo "$ac_t""$ac_cv_c_const" 1>&6
4194 if test $ac_cv_c_const = no
; then
4195 cat >> confdefs.h
<<\EOF
4201 echo $ac_n "checking for inline""... $ac_c" 1>&6
4202 echo "configure:4203: checking for inline" >&5
4203 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4207 for ac_kw
in inline __inline__ __inline
; do
4208 cat > conftest.
$ac_ext <<EOF
4209 #line 4210 "configure"
4210 #include "confdefs.h"
4216 if { (eval echo configure
:4217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4218 ac_cv_c_inline
=$ac_kw; break
4220 echo "configure: failed program was:" >&5
4221 cat conftest.
$ac_ext >&5
4228 echo "$ac_t""$ac_cv_c_inline" 1>&6
4229 case "$ac_cv_c_inline" in
4231 no
) cat >> confdefs.h
<<\EOF
4235 *) cat >> confdefs.h
<<EOF
4236 #define inline $ac_cv_c_inline
4241 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
4242 echo "configure:4243: checking whether char is unsigned" >&5
4243 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4246 if test "$GCC" = yes; then
4247 # GCC predefines this symbol on systems where it applies.
4248 cat > conftest.
$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4251 #ifdef __CHAR_UNSIGNED__
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 egrep "yes" >/dev
/null
2>&1; then
4259 ac_cv_c_char_unsigned
=yes
4262 ac_cv_c_char_unsigned
=no
4267 if test "$cross_compiling" = yes; then
4268 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4270 cat > conftest.
$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4273 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
4274 #if !defined(__STDC__) || __STDC__ != 1
4278 volatile char c = 255; exit(c < 0);
4281 if { (eval echo configure
:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4283 ac_cv_c_char_unsigned
=yes
4285 echo "configure: failed program was:" >&5
4286 cat conftest.
$ac_ext >&5
4288 ac_cv_c_char_unsigned
=no
4296 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
4297 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4298 cat >> confdefs.h
<<\EOF
4299 #define __CHAR_UNSIGNED__ 1
4304 echo $ac_n "checking for long double""... $ac_c" 1>&6
4305 echo "configure:4306: checking for long double" >&5
4306 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4309 if test "$GCC" = yes; then
4310 ac_cv_c_long_double
=yes
4312 if test "$cross_compiling" = yes; then
4313 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4315 cat > conftest.
$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4319 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4320 long double foo = 0.0;
4321 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4322 exit(sizeof(long double) < sizeof(double)); }
4324 if { (eval echo configure
:4325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4326 ac_cv_c_long_double
=yes
4328 echo "configure: failed program was:" >&5
4329 cat conftest.
$ac_ext >&5
4331 ac_cv_c_long_double
=no
4339 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4340 if test $ac_cv_c_long_double = yes; then
4341 cat >> confdefs.h
<<\EOF
4342 #define HAVE_LONG_DOUBLE 1
4348 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4349 echo "configure:4350: checking whether byte ordering is bigendian" >&5
4350 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4353 ac_cv_c_bigendian
=unknown
4354 # See if sys/param.h defines the BYTE_ORDER macro.
4355 cat > conftest.
$ac_ext <<EOF
4356 #line 4357 "configure"
4357 #include "confdefs.h"
4358 #include <sys/types.h>
4359 #include <sys/param.h>
4362 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4367 if { (eval echo configure
:4368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4369 # It does; now see whether it defined to BIG_ENDIAN or not.
4370 cat > conftest.
$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 #include <sys/types.h>
4374 #include <sys/param.h>
4377 #if BYTE_ORDER != BIG_ENDIAN
4382 if { (eval echo configure
:4383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4384 ac_cv_c_bigendian
=yes
4386 echo "configure: failed program was:" >&5
4387 cat conftest.
$ac_ext >&5
4389 ac_cv_c_bigendian
=no
4393 echo "configure: failed program was:" >&5
4394 cat conftest.
$ac_ext >&5
4397 if test $ac_cv_c_bigendian = unknown
; then
4398 if test "$cross_compiling" = yes; then
4399 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4401 cat > conftest.
$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4405 /* Are we little or big endian? From Harbison&Steele. */
4409 char c[sizeof (long)];
4412 exit (u.c[sizeof (long) - 1] == 1);
4415 if { (eval echo configure
:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4417 ac_cv_c_bigendian
=no
4419 echo "configure: failed program was:" >&5
4420 cat conftest.
$ac_ext >&5
4422 ac_cv_c_bigendian
=yes
4430 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4431 if test $ac_cv_c_bigendian = yes; then
4432 cat >> confdefs.h
<<\EOF
4433 #define WORDS_BIGENDIAN 1
4439 echo $ac_n "checking size of int *""... $ac_c" 1>&6
4440 echo "configure:4441: checking size of int *" >&5
4441 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
4442 echo $ac_n "(cached) $ac_c" 1>&6
4444 if test "$cross_compiling" = yes; then
4445 ac_cv_sizeof_int_p
=4
4447 cat > conftest.
$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4453 FILE *f=fopen("conftestval", "w");
4455 fprintf(f, "%d\n", sizeof(int *));
4459 if { (eval echo configure
:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4461 ac_cv_sizeof_int_p
=`cat conftestval`
4463 echo "configure: failed program was:" >&5
4464 cat conftest.
$ac_ext >&5
4466 ac_cv_sizeof_int_p
=0
4472 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
4473 cat >> confdefs.h
<<EOF
4474 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
4478 echo $ac_n "checking size of int""... $ac_c" 1>&6
4479 echo "configure:4480: checking size of int" >&5
4480 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4483 if test "$cross_compiling" = yes; then
4486 cat > conftest.
$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4492 FILE *f=fopen("conftestval", "w");
4494 fprintf(f, "%d\n", sizeof(int));
4498 if { (eval echo configure
:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4500 ac_cv_sizeof_int
=`cat conftestval`
4502 echo "configure: failed program was:" >&5
4503 cat conftest.
$ac_ext >&5
4511 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4512 cat >> confdefs.h
<<EOF
4513 #define SIZEOF_INT $ac_cv_sizeof_int
4517 echo $ac_n "checking size of long""... $ac_c" 1>&6
4518 echo "configure:4519: checking size of long" >&5
4519 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4520 echo $ac_n "(cached) $ac_c" 1>&6
4522 if test "$cross_compiling" = yes; then
4525 cat > conftest.
$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4531 FILE *f=fopen("conftestval", "w");
4533 fprintf(f, "%d\n", sizeof(long));
4537 if { (eval echo configure
:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4539 ac_cv_sizeof_long
=`cat conftestval`
4541 echo "configure: failed program was:" >&5
4542 cat conftest.
$ac_ext >&5
4550 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4551 cat >> confdefs.h
<<EOF
4552 #define SIZEOF_LONG $ac_cv_sizeof_long
4556 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4557 echo "configure:4558: checking size of long long" >&5
4558 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4561 if test "$cross_compiling" = yes; then
4562 ac_cv_sizeof_long_long
=0
4564 cat > conftest.
$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4570 FILE *f=fopen("conftestval", "w");
4572 fprintf(f, "%d\n", sizeof(long long));
4576 if { (eval echo configure
:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4578 ac_cv_sizeof_long_long
=`cat conftestval`
4580 echo "configure: failed program was:" >&5
4581 cat conftest.
$ac_ext >&5
4583 ac_cv_sizeof_long_long
=0
4589 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4590 cat >> confdefs.h
<<EOF
4591 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4599 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4600 ac_cpp
='$CXXCPP $CPPFLAGS'
4601 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4602 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4603 cross_compiling
=$ac_cv_prog_cxx_cross
4606 for ac_hdr
in iostream
4608 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4609 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4610 echo "configure:4611: checking for $ac_hdr" >&5
4611 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4614 cat > conftest.
$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4619 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4620 { (eval echo configure
:4621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4621 ac_err
=`grep -v '^ *+' conftest.out`
4622 if test -z "$ac_err"; then
4624 eval "ac_cv_header_$ac_safe=yes"
4627 echo "configure: failed program was:" >&5
4628 cat conftest.
$ac_ext >&5
4630 eval "ac_cv_header_$ac_safe=no"
4634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4635 echo "$ac_t""yes" 1>&6
4636 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4637 cat >> confdefs.h
<<EOF
4638 #define $ac_tr_hdr 1
4642 echo "$ac_t""no" 1>&6
4646 if test "x$HAVE_IOSTREAM" = "x" ; then
4647 cat >> confdefs.h
<<\EOF
4648 #define wxUSE_IOSTREAMH 1
4653 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
4654 echo "configure:4655: checking if C++ compiler supports bool" >&5
4655 if test "$cross_compiling" = yes; then
4656 echo "$ac_t""no assumed for cross-compilation" 1>&6
4658 cat > conftest.
$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4662 extern "C" void exit(int);
4674 if { (eval echo configure
:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4676 cat >> confdefs.h
<<\EOF
4679 echo "$ac_t""yes" 1>&6
4681 echo "configure: failed program was:" >&5
4682 cat conftest.
$ac_ext >&5
4684 echo "$ac_t""no" 1>&6
4690 echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6
4691 echo "configure:4692: checking if size_t and int are different types" >&5
4692 if test "$cross_compiling" = yes; then
4693 echo "$ac_t""no assumed for cross-compilation" 1>&6
4695 cat > conftest.
$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4699 extern "C" void exit(int);
4704 void wxFoo(int i) { }
4705 void wxFoo(size_t n) { }
4722 if { (eval echo configure
:4723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4724 cat >> confdefs.h
<<\EOF
4725 #define wxUSE_SIZE_T_STRING_OPERATOR 1
4727 echo "$ac_t""yes" 1>&6
4729 echo "configure: failed program was:" >&5
4730 cat conftest.
$ac_ext >&5
4732 echo "$ac_t""no" 1>&6
4739 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4740 ac_cpp
='$CPP $CPPFLAGS'
4741 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4742 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4743 cross_compiling
=$ac_cv_prog_cc_cross
4749 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4750 echo "configure:4751: checking for long file names" >&5
4751 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6
4754 ac_cv_sys_long_file_names
=yes
4755 # Test for long file names in all the places we know might matter:
4756 # . the current directory, where building will happen
4757 # $prefix/lib where we will be installing things
4758 # $exec_prefix/lib likewise
4759 # eval it to expand exec_prefix.
4760 # $TMPDIR if set, where it might want to write temporary files
4761 # if $TMPDIR is not set:
4762 # /tmp where it might want to write temporary files
4765 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4766 ac_tmpdirs
="$TMPDIR"
4768 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
4770 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4771 test -d $ac_dir || continue
4772 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4773 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
4774 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
4775 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
4776 if test ! -f $ac_dir/conftest9012345
|| test "$val" != 1; then
4777 ac_cv_sys_long_file_names
=no
4778 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4781 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4785 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4786 if test $ac_cv_sys_long_file_names = yes; then
4787 cat >> confdefs.h
<<\EOF
4788 #define HAVE_LONG_FILE_NAMES 1
4796 for ac_prog
in 'bison -y' byacc
4798 # Extract the first word of "$ac_prog", so it can be a program name with args.
4799 set dummy
$ac_prog; ac_word
=$2
4800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4801 echo "configure:4802: checking for $ac_word" >&5
4802 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4805 if test -n "$YACC"; then
4806 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4808 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4809 for ac_dir
in $PATH; do
4810 test -z "$ac_dir" && ac_dir
=.
4811 if test -f $ac_dir/$ac_word; then
4812 ac_cv_prog_YACC
="$ac_prog"
4819 YACC
="$ac_cv_prog_YACC"
4820 if test -n "$YACC"; then
4821 echo "$ac_t""$YACC" 1>&6
4823 echo "$ac_t""no" 1>&6
4826 test -n "$YACC" && break
4828 test -n "$YACC" || YACC
="yacc"
4831 # Extract the first word of "flex", so it can be a program name with args.
4832 set dummy flex
; ac_word
=$2
4833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4834 echo "configure:4835: checking for $ac_word" >&5
4835 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4836 echo $ac_n "(cached) $ac_c" 1>&6
4838 if test -n "$LEX"; then
4839 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4841 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4842 for ac_dir
in $PATH; do
4843 test -z "$ac_dir" && ac_dir
=.
4844 if test -f $ac_dir/$ac_word; then
4845 ac_cv_prog_LEX
="flex"
4850 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4853 LEX
="$ac_cv_prog_LEX"
4854 if test -n "$LEX"; then
4855 echo "$ac_t""$LEX" 1>&6
4857 echo "$ac_t""no" 1>&6
4860 if test -z "$LEXLIB"
4866 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4867 echo "configure:4868: checking for yywrap in -l$ac_lib" >&5
4868 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 ac_save_LIBS
="$LIBS"
4873 LIBS
="-l$ac_lib $LIBS"
4874 cat > conftest.
$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4877 /* Override any gcc2 internal prototype to avoid an error. */
4878 /* We use char because int might match the return type of a gcc2
4879 builtin and then its argument prototype would still apply. */
4886 if { (eval echo configure
:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4888 eval "ac_cv_lib_$ac_lib_var=yes"
4890 echo "configure: failed program was:" >&5
4891 cat conftest.
$ac_ext >&5
4893 eval "ac_cv_lib_$ac_lib_var=no"
4896 LIBS
="$ac_save_LIBS"
4899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4900 echo "$ac_t""yes" 1>&6
4903 echo "$ac_t""no" 1>&6
4908 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4909 echo "configure:4910: checking lex output file root" >&5
4910 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4913 # The minimal lex program is just a single line: %%. But some broken lexes
4914 # (Solaris, I think it was) want two %% lines, so accommodate them.
4917 if test -f lex.yy.c
; then
4918 ac_cv_prog_lex_root
=lex.yy
4919 elif test -f lexyy.c
; then
4920 ac_cv_prog_lex_root
=lexyy
4922 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4926 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4927 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4929 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4930 echo "configure:4931: checking whether yytext is a pointer" >&5
4931 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4932 echo $ac_n "(cached) $ac_c" 1>&6
4934 # POSIX says lex can declare yytext either as a pointer or an array; the
4935 # default is implementation-dependent. Figure out which it is, since
4936 # not all implementations provide the %pointer and %array declarations.
4937 ac_cv_prog_lex_yytext_pointer
=no
4938 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4939 ac_save_LIBS
="$LIBS"
4940 LIBS
="$LIBS $LEXLIB"
4941 cat > conftest.
$ac_ext <<EOF
4942 #line 4943 "configure"
4943 #include "confdefs.h"
4944 `cat $LEX_OUTPUT_ROOT.c`
4949 if { (eval echo configure
:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4951 ac_cv_prog_lex_yytext_pointer
=yes
4953 echo "configure: failed program was:" >&5
4954 cat conftest.
$ac_ext >&5
4957 LIBS
="$ac_save_LIBS"
4958 rm -f "${LEX_OUTPUT_ROOT}.c"
4962 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4963 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4964 cat >> confdefs.h
<<\EOF
4965 #define YYTEXT_POINTER 1
4973 for ac_func
in dlopen
4975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4976 echo "configure:4977: checking for $ac_func" >&5
4977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4978 echo $ac_n "(cached) $ac_c" 1>&6
4980 cat > conftest.
$ac_ext <<EOF
4981 #line 4982 "configure"
4982 #include "confdefs.h"
4983 /* System header to define __stub macros and hopefully few prototypes,
4984 which can conflict with char $ac_func(); below. */
4986 /* Override any gcc2 internal prototype to avoid an error. */
4987 /* We use char because int might match the return type of a gcc2
4988 builtin and then its argument prototype would still apply. */
4993 /* The GNU C library defines this for functions which it implements
4994 to always fail with ENOSYS. Some functions are actually named
4995 something starting with __ and the normal name is an alias. */
4996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5004 if { (eval echo configure
:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5006 eval "ac_cv_func_$ac_func=yes"
5008 echo "configure: failed program was:" >&5
5009 cat conftest.
$ac_ext >&5
5011 eval "ac_cv_func_$ac_func=no"
5016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5017 echo "$ac_t""yes" 1>&6
5018 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5019 cat >> confdefs.h
<<EOF
5020 #define $ac_tr_func 1
5022 cat >> confdefs.h
<<\EOF
5023 #define HAVE_LIBDL 1
5027 echo "$ac_t""no" 1>&6
5028 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5029 echo "configure:5030: checking for dlopen in -ldl" >&5
5030 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5032 echo $ac_n "(cached) $ac_c" 1>&6
5034 ac_save_LIBS
="$LIBS"
5036 cat > conftest.
$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5039 /* Override any gcc2 internal prototype to avoid an error. */
5040 /* We use char because int might match the return type of a gcc2
5041 builtin and then its argument prototype would still apply. */
5048 if { (eval echo configure
:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5050 eval "ac_cv_lib_$ac_lib_var=yes"
5052 echo "configure: failed program was:" >&5
5053 cat conftest.
$ac_ext >&5
5055 eval "ac_cv_lib_$ac_lib_var=no"
5058 LIBS
="$ac_save_LIBS"
5061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5062 echo "$ac_t""yes" 1>&6
5063 cat >> confdefs.h
<<\EOF
5064 #define HAVE_LIBDL 1
5068 echo "$ac_t""no" 1>&6
5069 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
5070 echo "configure:5071: checking for dld_link in -ldld" >&5
5071 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
5072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5073 echo $ac_n "(cached) $ac_c" 1>&6
5075 ac_save_LIBS
="$LIBS"
5077 cat > conftest.
$ac_ext <<EOF
5078 #line 5079 "configure"
5079 #include "confdefs.h"
5080 /* Override any gcc2 internal prototype to avoid an error. */
5081 /* We use char because int might match the return type of a gcc2
5082 builtin and then its argument prototype would still apply. */
5089 if { (eval echo configure
:5090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5091 eval "ac_cv_lib_$ac_lib_var=yes"
5093 echo "configure: failed program was:" >&5
5094 cat conftest.
$ac_ext >&5
5096 eval "ac_cv_lib_$ac_lib_var=no"
5099 LIBS
="$ac_save_LIBS"
5102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5103 echo "$ac_t""yes" 1>&6
5104 cat >> confdefs.h
<<\EOF
5109 echo "$ac_t""no" 1>&6
5110 for ac_func
in shl_load
5112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5113 echo "configure:5114: checking for $ac_func" >&5
5114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5117 cat > conftest.
$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5120 /* System header to define __stub macros and hopefully few prototypes,
5121 which can conflict with char $ac_func(); below. */
5123 /* Override any gcc2 internal prototype to avoid an error. */
5124 /* We use char because int might match the return type of a gcc2
5125 builtin and then its argument prototype would still apply. */
5130 /* The GNU C library defines this for functions which it implements
5131 to always fail with ENOSYS. Some functions are actually named
5132 something starting with __ and the normal name is an alias. */
5133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5141 if { (eval echo configure
:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5143 eval "ac_cv_func_$ac_func=yes"
5145 echo "configure: failed program was:" >&5
5146 cat conftest.
$ac_ext >&5
5148 eval "ac_cv_func_$ac_func=no"
5153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5154 echo "$ac_t""yes" 1>&6
5155 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5156 cat >> confdefs.h
<<EOF
5157 #define $ac_tr_func 1
5159 cat >> confdefs.h
<<\EOF
5160 #define HAVE_SHL_LOAD 1
5164 echo "$ac_t""no" 1>&6
5180 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
5181 echo "configure:5182: checking for underscore before symbols" >&5
5182 if eval "test \"`echo '$''{'libltdl_cv_uscore'+set}'`\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5186 echo "main(){int i=1;} fnord(){int i=23; int ltuae=42;}" > conftest.c
5187 ${CC} -c conftest.c
> /dev
/null
5188 if (nm conftest.o
| grep _fnord
) > /dev
/null
; then
5189 libltdl_cv_uscore
=yes
5191 libltdl_cv_uscore
=no
5197 echo "$ac_t""$libltdl_cv_uscore" 1>&6
5199 if test x
"$libltdl_cv_uscore" = xyes
; then
5200 if test x
"$ac_cv_func_dlopen" = xyes
||
5201 test x
"$ac_cv_lib_dl_dlopen" = xyes
; then
5202 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
5203 echo "configure:5204: checking whether we have to add an underscore for dlsym" >&5
5204 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5207 if test "$cross_compiling" = yes; then
5208 libltdl_cv_need_uscore
=no
5211 cat > conftest.
$ac_ext <<EOF
5212 #line 5213 "configure"
5213 #include "confdefs.h"
5217 fnord() { int i=42;}
5218 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
5219 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
5220 if(ptr1 && !ptr2) exit(0); } exit(1); }
5223 if { (eval echo configure
:5224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5225 libltdl_cv_need_uscore
=no
5227 echo "configure: failed program was:" >&5
5228 cat conftest.
$ac_ext >&5
5230 libltdl_cv_need_uscore
=yes
5237 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
5241 if test x
"$libltdl_cv_need_uscore" = xyes
; then
5242 cat >> confdefs.h
<<\EOF
5243 #define NEED_USCORE 1
5249 for ac_func
in strerror
5251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5252 echo "configure:5253: checking for $ac_func" >&5
5253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6
5256 cat > conftest.
$ac_ext <<EOF
5257 #line 5258 "configure"
5258 #include "confdefs.h"
5259 /* System header to define __stub macros and hopefully few prototypes,
5260 which can conflict with char $ac_func(); below. */
5262 /* Override any gcc2 internal prototype to avoid an error. */
5263 /* We use char because int might match the return type of a gcc2
5264 builtin and then its argument prototype would still apply. */
5269 /* The GNU C library defines this for functions which it implements
5270 to always fail with ENOSYS. Some functions are actually named
5271 something starting with __ and the normal name is an alias. */
5272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5280 if { (eval echo configure
:5281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
5282 eval "ac_cv_func_$ac_func=yes"
5284 echo "configure: failed program was:" >&5
5285 cat conftest.
$ac_ext >&5
5287 eval "ac_cv_func_$ac_func=no"
5292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5293 echo "$ac_t""yes" 1>&6
5294 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5295 cat >> confdefs.h
<<EOF
5296 #define $ac_tr_func 1
5300 echo "$ac_t""no" 1>&6
5306 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
5307 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
5311 # Make sure we can run config.sub.
5312 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
5313 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5316 echo $ac_n "checking host system type""... $ac_c" 1>&6
5317 echo "configure:5318: checking host system type" >&5
5320 case "$host_alias" in
5324 if host_alias
=`$ac_config_guess`; then :
5325 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5327 *) host_alias
=$nonopt ;;
5331 host=`$ac_config_sub $host_alias`
5332 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5333 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5334 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5335 echo "$ac_t""$host" 1>&6
5338 configuration
=$host_alias
5360 cat >> confdefs.h
<<\EOF
5364 case "${canonical}" in
5367 cat >> confdefs.h
<<\EOF
5374 cat >> confdefs.h
<<\EOF
5379 if test "x$TMP" = "xalpha"
5382 cat >> confdefs.h
<<\EOF
5388 *-*-irix5* | *-*-irix6* )
5391 cat >> confdefs.h
<<\EOF
5395 cat >> confdefs.h
<<\EOF
5404 cat >> confdefs.h
<<\EOF
5408 cat >> confdefs.h
<<\EOF
5409 #define __SOLARIS__ 1
5412 cat >> confdefs.h
<<\EOF
5421 cat >> confdefs.h
<<\EOF
5425 cat >> confdefs.h
<<\EOF
5429 cat >> confdefs.h
<<\EOF
5434 *-*-freebsd* | *-*-netbsd*)
5437 cat >> confdefs.h
<<\EOF
5438 #define __FREEBSD__ 1
5441 cat >> confdefs.h
<<\EOF
5449 cat >> confdefs.h
<<\EOF
5453 cat >> confdefs.h
<<\EOF
5461 cat >> confdefs.h
<<\EOF
5465 cat >> confdefs.h
<<\EOF
5473 cat >> confdefs.h
<<\EOF
5477 cat >> confdefs.h
<<\EOF
5486 cat >> confdefs.h
<<\EOF
5490 cat >> confdefs.h
<<\EOF
5494 cat >> confdefs.h
<<\EOF
5500 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
5505 rm -f ${OSTYPE}.system.cache.tmp
5506 touch ${OSTYPE}.system.cache.tmp
5507 touch ${OSTYPE}.system.cache
5512 DEFAULT_wxUSE_MOTIF
=0
5514 DEFAULT_wxUSE_THREADS
=0
5516 DEFAULT_wxUSE_SHARED
=1
5517 DEFAULT_wxUSE_OPTIMISE
=1
5518 DEFAULT_wxUSE_PROFILE
=0
5519 DEFAULT_wxUSE_DEBUG_FLAG
=0
5520 DEFAULT_wxUSE_DEBUG_INFO
=0
5521 DEFAULT_wxUSE_MEM_TRACING
=0
5522 DEFAULT_wxUSE_DMALLOC
=0
5523 DEFAULT_wxUSE_APPLE_IEEE
=1
5524 DEFAULT_wxUSE_IOSTREAMH
=1
5526 DEFAULT_wxUSE_ZLIB
=1
5527 DEFAULT_wxUSE_LIBPNG
=1
5528 DEFAULT_wxUSE_LIBJPEG
=1
5529 DEFAULT_wxUSE_ODBC
=1
5531 DEFAULT_wxUSE_TIMEDATE
=1
5532 DEFAULT_wxUSE_INTL
=1
5533 DEFAULT_wxUSE_CONFIG
=1
5534 DEFAULT_wxUSE_STREAMS
=1
5535 DEFAULT_wxUSE_SOCKETS
=1
5536 DEFAULT_wxUSE_SERIAL
=1
5537 DEFAULT_wxUSE_DYNLIB_CLASS
=1
5539 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
=1
5540 DEFAULT_WX_NORMALIZED_PS_FONTS
=1
5541 DEFAULT_wxUSE_POSTSCRIPT
=1
5544 DEFAULT_wxUSE_RESOURCES
=1
5545 DEFAULT_wxUSE_CLIPBOARD
=1
5546 DEFAULT_wxUSE_TOOLTIPS
=1
5547 DEFAULT_wxUSE_DRAG_AND_DROP
=1
5549 DEFAULT_wxUSE_MDI_ARCHITECTURE
=1
5550 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
=1
5551 DEFAULT_wxUSE_PRINTING_ARCHITECTURE
=1
5553 DEFAULT_wxUSE_PROLOGIO
=1
5554 DEFAULT_wxUSE_WX_RESOURCES
=1
5556 DEFAULT_wxUSE_HELP
=1
5558 DEFAULT_wxUSE_UNICODE
=0
5559 DEFAULT_wxUSE_WCSRTOMBS
=0
5563 echo $ac_n "checking "for gtk
"""... $ac_c" 1>&6
5564 echo "configure:5565: checking "for gtk
"" >&5
5565 # Check whether --with-gtk or --without-gtk was given.
5566 if test "${with_gtk+set}" = set; then
5568 if test "x$with_gtk" = xyes
; then
5569 ac_cv_use_gtk
='wxUSE_GTK="1"'
5571 ac_cv_use_gtk
='wxUSE_GTK="0"'
5575 LINE
=`grep "wxUSE_GTK" ${OSTYPE}.system.cache`
5576 if test "x$LINE" != x
; then
5577 eval "DEFAULT_$LINE"
5579 ac_cv_use_gtk
='wxUSE_GTK='$DEFAULT_wxUSE_GTK
5583 eval "$ac_cv_use_gtk"
5584 echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp
5585 if test "$wxUSE_GTK" = 1; then
5586 echo "$ac_t""yes" 1>&6
5588 echo "$ac_t""no" 1>&6
5593 echo $ac_n "checking "for qt
"""... $ac_c" 1>&6
5594 echo "configure:5595: checking "for qt
"" >&5
5595 # Check whether --with-qt or --without-qt was given.
5596 if test "${with_qt+set}" = set; then
5598 if test "x$with_qt" = xyes
; then
5599 ac_cv_use_qt
='wxUSE_QT="1"'
5601 ac_cv_use_qt
='wxUSE_QT="0"'
5605 LINE
=`grep "wxUSE_QT" ${OSTYPE}.system.cache`
5606 if test "x$LINE" != x
; then
5607 eval "DEFAULT_$LINE"
5609 ac_cv_use_qt
='wxUSE_QT='$DEFAULT_wxUSE_QT
5613 eval "$ac_cv_use_qt"
5614 echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp
5615 if test "$wxUSE_QT" = 1; then
5616 echo "$ac_t""yes" 1>&6
5618 echo "$ac_t""no" 1>&6
5623 echo $ac_n "checking "for motif
"""... $ac_c" 1>&6
5624 echo "configure:5625: checking "for motif
"" >&5
5625 # Check whether --with-motif or --without-motif was given.
5626 if test "${with_motif+set}" = set; then
5627 withval
="$with_motif"
5628 if test "x$with_motif" = xyes
; then
5629 ac_cv_use_motif
='wxUSE_MOTIF="1"'
5631 ac_cv_use_motif
='wxUSE_MOTIF="0"'
5635 LINE
=`grep "wxUSE_MOTIF" ${OSTYPE}.system.cache`
5636 if test "x$LINE" != x
; then
5637 eval "DEFAULT_$LINE"
5639 ac_cv_use_motif
='wxUSE_MOTIF='$DEFAULT_wxUSE_MOTIF
5643 eval "$ac_cv_use_motif"
5644 echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp
5645 if test "$wxUSE_MOTIF" = 1; then
5646 echo "$ac_t""yes" 1>&6
5648 echo "$ac_t""no" 1>&6
5654 echo $ac_n "checking "for shared
"""... $ac_c" 1>&6
5655 echo "configure:5656: checking "for shared
"" >&5
5656 # Check whether --with-shared or --without-shared was given.
5657 if test "${with_shared+set}" = set; then
5658 withval
="$with_shared"
5659 if test "x$with_shared" = xyes
; then
5660 ac_cv_use_shared
='wxUSE_SHARED="1"'
5662 ac_cv_use_shared
='wxUSE_SHARED="0"'
5666 LINE
=`grep "wxUSE_SHARED" ${OSTYPE}.system.cache`
5667 if test "x$LINE" != x
; then
5668 eval "DEFAULT_$LINE"
5670 ac_cv_use_shared
='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
5674 eval "$ac_cv_use_shared"
5675 echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
5676 if test "$wxUSE_SHARED" = 1; then
5677 echo "$ac_t""yes" 1>&6
5679 echo "$ac_t""no" 1>&6
5684 echo $ac_n "checking "for optimise
"""... $ac_c" 1>&6
5685 echo "configure:5686: checking "for optimise
"" >&5
5686 # Check whether --with-optimise or --without-optimise was given.
5687 if test "${with_optimise+set}" = set; then
5688 withval
="$with_optimise"
5689 if test "x$with_optimise" = xyes
; then
5690 ac_cv_use_optimise
='wxUSE_OPTIMISE="1"'
5692 ac_cv_use_optimise
='wxUSE_OPTIMISE="0"'
5696 LINE
=`grep "wxUSE_OPTIMISE" ${OSTYPE}.system.cache`
5697 if test "x$LINE" != x
; then
5698 eval "DEFAULT_$LINE"
5700 ac_cv_use_optimise
='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
5704 eval "$ac_cv_use_optimise"
5705 echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
5706 if test "$wxUSE_OPTIMISE" = 1; then
5707 echo "$ac_t""yes" 1>&6
5709 echo "$ac_t""no" 1>&6
5714 echo $ac_n "checking "for debug_flag
"""... $ac_c" 1>&6
5715 echo "configure:5716: checking "for debug_flag
"" >&5
5716 # Check whether --with-debug_flag or --without-debug_flag was given.
5717 if test "${with_debug_flag+set}" = set; then
5718 withval
="$with_debug_flag"
5719 if test "x$with_debug_flag" = xyes
; then
5720 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="1"'
5722 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="0"'
5726 LINE
=`grep "wxUSE_DEBUG_FLAG" ${OSTYPE}.system.cache`
5727 if test "x$LINE" != x
; then
5728 eval "DEFAULT_$LINE"
5730 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
5734 eval "$ac_cv_use_debug_flag"
5735 echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
5736 if test "$wxUSE_DEBUG_FLAG" = 1; then
5737 echo "$ac_t""yes" 1>&6
5739 echo "$ac_t""no" 1>&6
5744 echo $ac_n "checking "for debug_info
"""... $ac_c" 1>&6
5745 echo "configure:5746: checking "for debug_info
"" >&5
5746 # Check whether --with-debug_info or --without-debug_info was given.
5747 if test "${with_debug_info+set}" = set; then
5748 withval
="$with_debug_info"
5749 if test "x$with_debug_info" = xyes
; then
5750 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="1"'
5752 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="0"'
5756 LINE
=`grep "wxUSE_DEBUG_INFO" ${OSTYPE}.system.cache`
5757 if test "x$LINE" != x
; then
5758 eval "DEFAULT_$LINE"
5760 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
5764 eval "$ac_cv_use_debug_info"
5765 echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
5766 if test "$wxUSE_DEBUG_INFO" = 1; then
5767 echo "$ac_t""yes" 1>&6
5769 echo "$ac_t""no" 1>&6
5774 echo $ac_n "checking "for debug_gdb
"""... $ac_c" 1>&6
5775 echo "configure:5776: checking "for debug_gdb
"" >&5
5776 # Check whether --with-debug_gdb or --without-debug_gdb was given.
5777 if test "${with_debug_gdb+set}" = set; then
5778 withval
="$with_debug_gdb"
5779 if test "x$with_debug_gdb" = xyes
; then
5780 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="1"'
5782 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="0"'
5786 LINE
=`grep "wxUSE_DEBUG_GDB" ${OSTYPE}.system.cache`
5787 if test "x$LINE" != x
; then
5788 eval "DEFAULT_$LINE"
5790 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
5794 eval "$ac_cv_use_debug_gdb"
5795 echo $ac_cv_use_debug_gdb >> ${OSTYPE}.system.cache.tmp
5796 if test "$wxUSE_DEBUG_GDB" = 1; then
5797 echo "$ac_t""yes" 1>&6
5799 echo "$ac_t""no" 1>&6
5804 echo $ac_n "checking "for mem_tracing
"""... $ac_c" 1>&6
5805 echo "configure:5806: checking "for mem_tracing
"" >&5
5806 # Check whether --with-mem_tracing or --without-mem_tracing was given.
5807 if test "${with_mem_tracing+set}" = set; then
5808 withval
="$with_mem_tracing"
5809 if test "x$with_mem_tracing" = xyes
; then
5810 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="1"'
5812 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="0"'
5816 LINE
=`grep "wxUSE_MEM_TRACING" ${OSTYPE}.system.cache`
5817 if test "x$LINE" != x
; then
5818 eval "DEFAULT_$LINE"
5820 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
5824 eval "$ac_cv_use_mem_tracing"
5825 echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
5826 if test "$wxUSE_MEM_TRACING" = 1; then
5827 echo "$ac_t""yes" 1>&6
5829 echo "$ac_t""no" 1>&6
5834 echo $ac_n "checking "for dmalloc
"""... $ac_c" 1>&6
5835 echo "configure:5836: checking "for dmalloc
"" >&5
5836 # Check whether --with-dmalloc or --without-dmalloc was given.
5837 if test "${with_dmalloc+set}" = set; then
5838 withval
="$with_dmalloc"
5839 if test "x$with_dmalloc" = xyes
; then
5840 ac_cv_use_dmalloc
='wxUSE_DMALLOC="1"'
5842 ac_cv_use_dmalloc
='wxUSE_DMALLOC="0"'
5846 LINE
=`grep "wxUSE_DMALLOC" ${OSTYPE}.system.cache`
5847 if test "x$LINE" != x
; then
5848 eval "DEFAULT_$LINE"
5850 ac_cv_use_dmalloc
='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
5854 eval "$ac_cv_use_dmalloc"
5855 echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp
5856 if test "$wxUSE_DMALLOC" = 1; then
5857 echo "$ac_t""yes" 1>&6
5859 echo "$ac_t""no" 1>&6
5864 echo $ac_n "checking "for profile
"""... $ac_c" 1>&6
5865 echo "configure:5866: checking "for profile
"" >&5
5866 # Check whether --with-profile or --without-profile was given.
5867 if test "${with_profile+set}" = set; then
5868 withval
="$with_profile"
5869 if test "x$with_profile" = xyes
; then
5870 ac_cv_use_profile
='wxUSE_PROFILE="1"'
5872 ac_cv_use_profile
='wxUSE_PROFILE="0"'
5876 LINE
=`grep "wxUSE_PROFILE" ${OSTYPE}.system.cache`
5877 if test "x$LINE" != x
; then
5878 eval "DEFAULT_$LINE"
5880 ac_cv_use_profile
='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
5884 eval "$ac_cv_use_profile"
5885 echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
5886 if test "$wxUSE_PROFILE" = 1; then
5887 echo "$ac_t""yes" 1>&6
5889 echo "$ac_t""no" 1>&6
5894 echo $ac_n "checking "for apple_ieee
"""... $ac_c" 1>&6
5895 echo "configure:5896: checking "for apple_ieee
"" >&5
5896 # Check whether --with-apple_ieee or --without-apple_ieee was given.
5897 if test "${with_apple_ieee+set}" = set; then
5898 withval
="$with_apple_ieee"
5899 if test "x$with_apple_ieee" = xyes
; then
5900 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="1"'
5902 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="0"'
5906 LINE
=`grep "wxUSE_APPLE_IEEE" ${OSTYPE}.system.cache`
5907 if test "x$LINE" != x
; then
5908 eval "DEFAULT_$LINE"
5910 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5914 eval "$ac_cv_use_apple_ieee"
5915 echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp
5916 if test "$wxUSE_APPLE_IEEE" = 1; then
5917 echo "$ac_t""yes" 1>&6
5919 echo "$ac_t""no" 1>&6
5924 echo $ac_n "checking "for threads
"""... $ac_c" 1>&6
5925 echo "configure:5926: checking "for threads
"" >&5
5926 # Check whether --with-threads or --without-threads was given.
5927 if test "${with_threads+set}" = set; then
5928 withval
="$with_threads"
5929 if test "x$with_threads" = xyes
; then
5930 ac_cv_use_threads
='wxUSE_THREADS="1"'
5932 ac_cv_use_threads
='wxUSE_THREADS="0"'
5936 LINE
=`grep "wxUSE_THREADS" ${OSTYPE}.system.cache`
5937 if test "x$LINE" != x
; then
5938 eval "DEFAULT_$LINE"
5940 ac_cv_use_threads
='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5944 eval "$ac_cv_use_threads"
5945 echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
5946 if test "$wxUSE_THREADS" = 1; then
5947 echo "$ac_t""yes" 1>&6
5949 echo "$ac_t""no" 1>&6
5954 echo $ac_n "checking "for dynlib
"""... $ac_c" 1>&6
5955 echo "configure:5956: checking "for dynlib
"" >&5
5956 # Check whether --with-dynlib or --without-dynlib was given.
5957 if test "${with_dynlib+set}" = set; then
5958 withval
="$with_dynlib"
5959 if test "x$with_dynlib" = xyes
; then
5960 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="1"'
5962 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="0"'
5966 LINE
=`grep "wxUSE_DYNLIB_CLASS" ${OSTYPE}.system.cache`
5967 if test "x$LINE" != x
; then
5968 eval "DEFAULT_$LINE"
5970 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5974 eval "$ac_cv_use_dynlib"
5975 echo $ac_cv_use_dynlib >> ${OSTYPE}.system.cache.tmp
5976 if test "$wxUSE_DYNLIB_CLASS" = 1; then
5977 echo "$ac_t""yes" 1>&6
5979 echo "$ac_t""no" 1>&6
5985 echo $ac_n "checking "for zlib
"""... $ac_c" 1>&6
5986 echo "configure:5987: checking "for zlib
"" >&5
5987 # Check whether --with-zlib or --without-zlib was given.
5988 if test "${with_zlib+set}" = set; then
5989 withval
="$with_zlib"
5990 if test "x$with_zlib" = xyes
; then
5991 ac_cv_use_zlib
='wxUSE_ZLIB="1"'
5993 ac_cv_use_zlib
='wxUSE_ZLIB="0"'
5997 LINE
=`grep "wxUSE_ZLIB" ${OSTYPE}.system.cache`
5998 if test "x$LINE" != x
; then
5999 eval "DEFAULT_$LINE"
6001 ac_cv_use_zlib
='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
6005 eval "$ac_cv_use_zlib"
6006 echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
6007 if test "$wxUSE_ZLIB" = 1; then
6008 echo "$ac_t""yes" 1>&6
6010 echo "$ac_t""no" 1>&6
6015 echo $ac_n "checking "for libpng
"""... $ac_c" 1>&6
6016 echo "configure:6017: checking "for libpng
"" >&5
6017 # Check whether --with-libpng or --without-libpng was given.
6018 if test "${with_libpng+set}" = set; then
6019 withval
="$with_libpng"
6020 if test "x$with_libpng" = xyes
; then
6021 ac_cv_use_libpng
='wxUSE_LIBPNG="1"'
6023 ac_cv_use_libpng
='wxUSE_LIBPNG="0"'
6027 LINE
=`grep "wxUSE_LIBPNG" ${OSTYPE}.system.cache`
6028 if test "x$LINE" != x
; then
6029 eval "DEFAULT_$LINE"
6031 ac_cv_use_libpng
='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
6035 eval "$ac_cv_use_libpng"
6036 echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
6037 if test "$wxUSE_LIBPNG" = 1; then
6038 echo "$ac_t""yes" 1>&6
6040 echo "$ac_t""no" 1>&6
6045 echo $ac_n "checking "for libjpeg
"""... $ac_c" 1>&6
6046 echo "configure:6047: checking "for libjpeg
"" >&5
6047 # Check whether --with-libjpeg or --without-libjpeg was given.
6048 if test "${with_libjpeg+set}" = set; then
6049 withval
="$with_libjpeg"
6050 if test "x$with_libjpeg" = xyes
; then
6051 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="1"'
6053 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="0"'
6057 LINE
=`grep "wxUSE_LIBJPEG" ${OSTYPE}.system.cache`
6058 if test "x$LINE" != x
; then
6059 eval "DEFAULT_$LINE"
6061 ac_cv_use_libjpeg
='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
6065 eval "$ac_cv_use_libjpeg"
6066 echo $ac_cv_use_libjpeg >> ${OSTYPE}.system.cache.tmp
6067 if test "$wxUSE_LIBJPEG" = 1; then
6068 echo "$ac_t""yes" 1>&6
6070 echo "$ac_t""no" 1>&6
6075 echo $ac_n "checking "for odbc
"""... $ac_c" 1>&6
6076 echo "configure:6077: checking "for odbc
"" >&5
6077 # Check whether --with-odbc or --without-odbc was given.
6078 if test "${with_odbc+set}" = set; then
6079 withval
="$with_odbc"
6080 if test "x$with_odbc" = xyes
; then
6081 ac_cv_use_odbc
='wxUSE_ODBC="1"'
6083 ac_cv_use_odbc
='wxUSE_ODBC="0"'
6087 LINE
=`grep "wxUSE_ODBC" ${OSTYPE}.system.cache`
6088 if test "x$LINE" != x
; then
6089 eval "DEFAULT_$LINE"
6091 ac_cv_use_odbc
='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
6095 eval "$ac_cv_use_odbc"
6096 echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp
6097 if test "$wxUSE_ODBC" = 1; then
6098 echo "$ac_t""yes" 1>&6
6100 echo "$ac_t""no" 1>&6
6106 echo $ac_n "checking "for timedate
"""... $ac_c" 1>&6
6107 echo "configure:6108: checking "for timedate
"" >&5
6108 # Check whether --with-timedate or --without-timedate was given.
6109 if test "${with_timedate+set}" = set; then
6110 withval
="$with_timedate"
6111 if test "x$with_timedate" = xyes
; then
6112 ac_cv_use_timedate
='wxUSE_TIMEDATE="1"'
6114 ac_cv_use_timedate
='wxUSE_TIMEDATE="0"'
6118 LINE
=`grep "wxUSE_TIMEDATE" ${OSTYPE}.system.cache`
6119 if test "x$LINE" != x
; then
6120 eval "DEFAULT_$LINE"
6122 ac_cv_use_timedate
='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
6126 eval "$ac_cv_use_timedate"
6127 echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
6128 if test "$wxUSE_TIMEDATE" = 1; then
6129 echo "$ac_t""yes" 1>&6
6131 echo "$ac_t""no" 1>&6
6136 echo $ac_n "checking "for intl
"""... $ac_c" 1>&6
6137 echo "configure:6138: checking "for intl
"" >&5
6138 # Check whether --with-intl or --without-intl was given.
6139 if test "${with_intl+set}" = set; then
6140 withval
="$with_intl"
6141 if test "x$with_intl" = xyes
; then
6142 ac_cv_use_intl
='wxUSE_INTL="1"'
6144 ac_cv_use_intl
='wxUSE_INTL="0"'
6148 LINE
=`grep "wxUSE_INTL" ${OSTYPE}.system.cache`
6149 if test "x$LINE" != x
; then
6150 eval "DEFAULT_$LINE"
6152 ac_cv_use_intl
='wxUSE_INTL='$DEFAULT_wxUSE_INTL
6156 eval "$ac_cv_use_intl"
6157 echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp
6158 if test "$wxUSE_INTL" = 1; then
6159 echo "$ac_t""yes" 1>&6
6161 echo "$ac_t""no" 1>&6
6166 echo $ac_n "checking "for config
"""... $ac_c" 1>&6
6167 echo "configure:6168: checking "for config
"" >&5
6168 # Check whether --with-config or --without-config was given.
6169 if test "${with_config+set}" = set; then
6170 withval
="$with_config"
6171 if test "x$with_config" = xyes
; then
6172 ac_cv_use_config
='wxUSE_CONFIG="1"'
6174 ac_cv_use_config
='wxUSE_CONFIG="0"'
6178 LINE
=`grep "wxUSE_CONFIG" ${OSTYPE}.system.cache`
6179 if test "x$LINE" != x
; then
6180 eval "DEFAULT_$LINE"
6182 ac_cv_use_config
='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
6186 eval "$ac_cv_use_config"
6187 echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp
6188 if test "$wxUSE_CONFIG" = 1; then
6189 echo "$ac_t""yes" 1>&6
6191 echo "$ac_t""no" 1>&6
6196 echo $ac_n "checking "for streams
"""... $ac_c" 1>&6
6197 echo "configure:6198: checking "for streams
"" >&5
6198 # Check whether --with-streams or --without-streams was given.
6199 if test "${with_streams+set}" = set; then
6200 withval
="$with_streams"
6201 if test "x$with_streams" = xyes
; then
6202 ac_cv_use_streams
='wxUSE_STREAMS="1"'
6204 ac_cv_use_streams
='wxUSE_STREAMS="0"'
6208 LINE
=`grep "wxUSE_STREAMS" ${OSTYPE}.system.cache`
6209 if test "x$LINE" != x
; then
6210 eval "DEFAULT_$LINE"
6212 ac_cv_use_streams
='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6216 eval "$ac_cv_use_streams"
6217 echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp
6218 if test "$wxUSE_STREAMS" = 1; then
6219 echo "$ac_t""yes" 1>&6
6221 echo "$ac_t""no" 1>&6
6226 echo $ac_n "checking "for serial
"""... $ac_c" 1>&6
6227 echo "configure:6228: checking "for serial
"" >&5
6228 # Check whether --with-serial or --without-serial was given.
6229 if test "${with_serial+set}" = set; then
6230 withval
="$with_serial"
6231 if test "x$with_serial" = xyes
; then
6232 ac_cv_use_serial
='wxUSE_SERIAL="1"'
6234 ac_cv_use_serial
='wxUSE_SERIAL="0"'
6238 LINE
=`grep "wxUSE_SERIAL" ${OSTYPE}.system.cache`
6239 if test "x$LINE" != x
; then
6240 eval "DEFAULT_$LINE"
6242 ac_cv_use_serial
='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
6246 eval "$ac_cv_use_serial"
6247 echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp
6248 if test "$wxUSE_SERIAL" = 1; then
6249 echo "$ac_t""yes" 1>&6
6251 echo "$ac_t""no" 1>&6
6256 echo $ac_n "checking "for sockets
"""... $ac_c" 1>&6
6257 echo "configure:6258: checking "for sockets
"" >&5
6258 # Check whether --with-sockets or --without-sockets was given.
6259 if test "${with_sockets+set}" = set; then
6260 withval
="$with_sockets"
6261 if test "x$with_sockets" = xyes
; then
6262 ac_cv_use_sockets
='wxUSE_SOCKETS="1"'
6264 ac_cv_use_sockets
='wxUSE_SOCKETS="0"'
6268 LINE
=`grep "wxUSE_SOCKETS" ${OSTYPE}.system.cache`
6269 if test "x$LINE" != x
; then
6270 eval "DEFAULT_$LINE"
6272 ac_cv_use_sockets
='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
6276 eval "$ac_cv_use_sockets"
6277 echo $ac_cv_use_sockets >> ${OSTYPE}.system.cache.tmp
6278 if test "$wxUSE_SOCKETS" = 1; then
6279 echo "$ac_t""yes" 1>&6
6281 echo "$ac_t""no" 1>&6
6287 echo $ac_n "checking "for afmfonts
"""... $ac_c" 1>&6
6288 echo "configure:6289: checking "for afmfonts
"" >&5
6289 # Check whether --with-afmfonts or --without-afmfonts was given.
6290 if test "${with_afmfonts+set}" = set; then
6291 withval
="$with_afmfonts"
6292 if test "x$with_afmfonts" = xyes
; then
6293 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="1"'
6295 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="0"'
6299 LINE
=`grep "wxUSE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
6300 if test "x$LINE" != x
; then
6301 eval "DEFAULT_$LINE"
6303 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT='$DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
6307 eval "$ac_cv_use_afmfonts"
6308 echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
6309 if test "$wxUSE_AFM_FOR_POSTSCRIPT" = 1; then
6310 echo "$ac_t""yes" 1>&6
6312 echo "$ac_t""no" 1>&6
6317 echo $ac_n "checking "for normalized
"""... $ac_c" 1>&6
6318 echo "configure:6319: checking "for normalized
"" >&5
6319 # Check whether --with-normalized or --without-normalized was given.
6320 if test "${with_normalized+set}" = set; then
6321 withval
="$with_normalized"
6322 if test "x$with_normalized" = xyes
; then
6323 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="1"'
6325 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="0"'
6329 LINE
=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
6330 if test "x$LINE" != x
; then
6331 eval "DEFAULT_$LINE"
6333 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
6337 eval "$ac_cv_use_normalized"
6338 echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
6339 if test "$WX_NORMALIZED_PS_FONTS" = 1; then
6340 echo "$ac_t""yes" 1>&6
6342 echo "$ac_t""no" 1>&6
6347 echo $ac_n "checking "for postscript
"""... $ac_c" 1>&6
6348 echo "configure:6349: checking "for postscript
"" >&5
6349 # Check whether --with-postscript or --without-postscript was given.
6350 if test "${with_postscript+set}" = set; then
6351 withval
="$with_postscript"
6352 if test "x$with_postscript" = xyes
; then
6353 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="1"'
6355 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="0"'
6359 LINE
=`grep "wxUSE_POSTSCRIPT" ${OSTYPE}.system.cache`
6360 if test "x$LINE" != x
; then
6361 eval "DEFAULT_$LINE"
6363 ac_cv_use_postscript
='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6367 eval "$ac_cv_use_postscript"
6368 echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
6369 if test "$wxUSE_POSTSCRIPT" = 1; then
6370 echo "$ac_t""yes" 1>&6
6372 echo "$ac_t""no" 1>&6
6378 echo $ac_n "checking "for unicode
"""... $ac_c" 1>&6
6379 echo "configure:6380: checking "for unicode
"" >&5
6380 # Check whether --with-unicode or --without-unicode was given.
6381 if test "${with_unicode+set}" = set; then
6382 withval
="$with_unicode"
6383 if test "x$with_unicode" = xyes
; then
6384 ac_cv_use_unicode
='wxUSE_UNICODE="1"'
6386 ac_cv_use_unicode
='wxUSE_UNICODE="0"'
6390 LINE
=`grep "wxUSE_UNICODE" ${OSTYPE}.system.cache`
6391 if test "x$LINE" != x
; then
6392 eval "DEFAULT_$LINE"
6394 ac_cv_use_unicode
='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6398 eval "$ac_cv_use_unicode"
6399 echo $ac_cv_use_unicode >> ${OSTYPE}.system.cache.tmp
6400 if test "$wxUSE_UNICODE" = 1; then
6401 echo "$ac_t""yes" 1>&6
6403 echo "$ac_t""no" 1>&6
6408 echo $ac_n "checking "for wcsrtombs
"""... $ac_c" 1>&6
6409 echo "configure:6410: checking "for wcsrtombs
"" >&5
6410 # Check whether --with-wcsrtombs or --without-wcsrtombs was given.
6411 if test "${with_wcsrtombs+set}" = set; then
6412 withval
="$with_wcsrtombs"
6413 if test "x$with_wcsrtombs" = xyes
; then
6414 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="1"'
6416 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="0"'
6420 LINE
=`grep "wxUSE_WCSRTOMBS" ${OSTYPE}.system.cache`
6421 if test "x$LINE" != x
; then
6422 eval "DEFAULT_$LINE"
6424 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
6428 eval "$ac_cv_use_wcsrtombs"
6429 echo $ac_cv_use_wcsrtombs >> ${OSTYPE}.system.cache.tmp
6430 if test "$wxUSE_WCSRTOMBS" = 1; then
6431 echo "$ac_t""yes" 1>&6
6433 echo "$ac_t""no" 1>&6
6439 echo $ac_n "checking "for wxresources
"""... $ac_c" 1>&6
6440 echo "configure:6441: checking "for wxresources
"" >&5
6441 # Check whether --with-wxresources or --without-wxresources was given.
6442 if test "${with_wxresources+set}" = set; then
6443 withval
="$with_wxresources"
6444 if test "x$with_wxresources" = xyes
; then
6445 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="1"'
6447 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="0"'
6451 LINE
=`grep "wxUSE_WX_RESOURCES" ${OSTYPE}.system.cache`
6452 if test "x$LINE" != x
; then
6453 eval "DEFAULT_$LINE"
6455 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES='$DEFAULT_wxUSE_WX_RESOURCES
6459 eval "$ac_cv_use_wxresources"
6460 echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
6461 if test "$wxUSE_WX_RESOURCES" = 1; then
6462 echo "$ac_t""yes" 1>&6
6464 echo "$ac_t""no" 1>&6
6469 echo $ac_n "checking "for prologio
"""... $ac_c" 1>&6
6470 echo "configure:6471: checking "for prologio
"" >&5
6471 # Check whether --with-prologio or --without-prologio was given.
6472 if test "${with_prologio+set}" = set; then
6473 withval
="$with_prologio"
6474 if test "x$with_prologio" = xyes
; then
6475 ac_cv_use_prologio
='wxUSE_PROLOGIO="1"'
6477 ac_cv_use_prologio
='wxUSE_PROLOGIO="0"'
6481 LINE
=`grep "wxUSE_PROLOGIO" ${OSTYPE}.system.cache`
6482 if test "x$LINE" != x
; then
6483 eval "DEFAULT_$LINE"
6485 ac_cv_use_prologio
='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6489 eval "$ac_cv_use_prologio"
6490 echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
6491 if test "$wxUSE_PROLOGIO" = 1; then
6492 echo "$ac_t""yes" 1>&6
6494 echo "$ac_t""no" 1>&6
6499 echo $ac_n "checking "for RPC
"""... $ac_c" 1>&6
6500 echo "configure:6501: checking "for RPC
"" >&5
6501 # Check whether --with-rpc or --without-rpc was given.
6502 if test "${with_rpc+set}" = set; then
6504 if test "x$with_rpc" = xyes
; then
6505 ac_cv_use_rpc
='wxUSE_RPC="1"'
6507 ac_cv_use_rpc
='wxUSE_RPC="0"'
6511 LINE
=`grep "wxUSE_RPC" ${OSTYPE}.system.cache`
6512 if test "x$LINE" != x
; then
6513 eval "DEFAULT_$LINE"
6515 ac_cv_use_rpc
='wxUSE_RPC='$DEFAULT_wxUSE_RPC
6519 eval "$ac_cv_use_rpc"
6520 echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
6521 if test "$wxUSE_RPC" = 1; then
6522 echo "$ac_t""yes" 1>&6
6524 echo "$ac_t""no" 1>&6
6530 echo $ac_n "checking "for IPC
"""... $ac_c" 1>&6
6531 echo "configure:6532: checking "for IPC
"" >&5
6532 # Check whether --with-ipc or --without-ipc was given.
6533 if test "${with_ipc+set}" = set; then
6535 if test "x$with_ipc" = xyes
; then
6536 ac_cv_use_ipc
='wxUSE_IPC="1"'
6538 ac_cv_use_ipc
='wxUSE_IPC="0"'
6542 LINE
=`grep "wxUSE_IPC" ${OSTYPE}.system.cache`
6543 if test "x$LINE" != x
; then
6544 eval "DEFAULT_$LINE"
6546 ac_cv_use_ipc
='wxUSE_IPC='$DEFAULT_wxUSE_IPC
6550 eval "$ac_cv_use_ipc"
6551 echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
6552 if test "$wxUSE_IPC" = 1; then
6553 echo "$ac_t""yes" 1>&6
6555 echo "$ac_t""no" 1>&6
6560 echo $ac_n "checking "for resources
"""... $ac_c" 1>&6
6561 echo "configure:6562: checking "for resources
"" >&5
6562 # Check whether --with-resources or --without-resources was given.
6563 if test "${with_resources+set}" = set; then
6564 withval
="$with_resources"
6565 if test "x$with_resources" = xyes
; then
6566 ac_cv_use_resources
='wxUSE_RESOURCES="1"'
6568 ac_cv_use_resources
='wxUSE_RESOURCES="0"'
6572 LINE
=`grep "wxUSE_RESOURCES" ${OSTYPE}.system.cache`
6573 if test "x$LINE" != x
; then
6574 eval "DEFAULT_$LINE"
6576 ac_cv_use_resources
='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6580 eval "$ac_cv_use_resources"
6581 echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
6582 if test "$wxUSE_RESOURCES" = 1; then
6583 echo "$ac_t""yes" 1>&6
6585 echo "$ac_t""no" 1>&6
6590 echo $ac_n "checking "for clipboard
"""... $ac_c" 1>&6
6591 echo "configure:6592: checking "for clipboard
"" >&5
6592 # Check whether --with-clipboard or --without-clipboard was given.
6593 if test "${with_clipboard+set}" = set; then
6594 withval
="$with_clipboard"
6595 if test "x$with_clipboard" = xyes
; then
6596 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="1"'
6598 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="0"'
6602 LINE
=`grep "wxUSE_CLIPBOARD" ${OSTYPE}.system.cache`
6603 if test "x$LINE" != x
; then
6604 eval "DEFAULT_$LINE"
6606 ac_cv_use_clipboard
='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6610 eval "$ac_cv_use_clipboard"
6611 echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
6612 if test "$wxUSE_CLIPBOARD" = 1; then
6613 echo "$ac_t""yes" 1>&6
6615 echo "$ac_t""no" 1>&6
6620 echo $ac_n "checking "for tooltips
"""... $ac_c" 1>&6
6621 echo "configure:6622: checking "for tooltips
"" >&5
6622 # Check whether --with-tooltips or --without-tooltips was given.
6623 if test "${with_tooltips+set}" = set; then
6624 withval
="$with_tooltips"
6625 if test "x$with_tooltips" = xyes
; then
6626 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="1"'
6628 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="0"'
6632 LINE
=`grep "wxUSE_TOOLTIPS" ${OSTYPE}.system.cache`
6633 if test "x$LINE" != x
; then
6634 eval "DEFAULT_$LINE"
6636 ac_cv_use_tooltips
='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6640 eval "$ac_cv_use_tooltips"
6641 echo $ac_cv_use_tooltips >> ${OSTYPE}.system.cache.tmp
6642 if test "$wxUSE_TOOLTIPS" = 1; then
6643 echo "$ac_t""yes" 1>&6
6645 echo "$ac_t""no" 1>&6
6650 echo $ac_n "checking "for dnd
"""... $ac_c" 1>&6
6651 echo "configure:6652: checking "for dnd
"" >&5
6652 # Check whether --with-dnd or --without-dnd was given.
6653 if test "${with_dnd+set}" = set; then
6655 if test "x$with_dnd" = xyes
; then
6656 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="1"'
6658 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="0"'
6662 LINE
=`grep "wxUSE_DRAG_AND_DROP" ${OSTYPE}.system.cache`
6663 if test "x$LINE" != x
; then
6664 eval "DEFAULT_$LINE"
6666 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6670 eval "$ac_cv_use_dnd"
6671 echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp
6672 if test "$wxUSE_DRAG_AND_DROP" = 1; then
6673 echo "$ac_t""yes" 1>&6
6675 echo "$ac_t""no" 1>&6
6681 echo $ac_n "checking "for mdi
"""... $ac_c" 1>&6
6682 echo "configure:6683: checking "for mdi
"" >&5
6683 # Check whether --with-mdi or --without-mdi was given.
6684 if test "${with_mdi+set}" = set; then
6686 if test "x$with_mdi" = xyes
; then
6687 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="1"'
6689 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="0"'
6693 LINE
=`grep "wxUSE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache`
6694 if test "x$LINE" != x
; then
6695 eval "DEFAULT_$LINE"
6697 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6701 eval "$ac_cv_use_mdi"
6702 echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp
6703 if test "$wxUSE_MDI_ARCHITECTURE" = 1; then
6704 echo "$ac_t""yes" 1>&6
6706 echo "$ac_t""no" 1>&6
6711 echo $ac_n "checking "for docview
"""... $ac_c" 1>&6
6712 echo "configure:6713: checking "for docview
"" >&5
6713 # Check whether --with-docview or --without-docview was given.
6714 if test "${with_docview+set}" = set; then
6715 withval
="$with_docview"
6716 if test "x$with_docview" = xyes
; then
6717 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="1"'
6719 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="0"'
6723 LINE
=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
6724 if test "x$LINE" != x
; then
6725 eval "DEFAULT_$LINE"
6727 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6731 eval "$ac_cv_use_docview"
6732 echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
6733 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1; then
6734 echo "$ac_t""yes" 1>&6
6736 echo "$ac_t""no" 1>&6
6741 echo $ac_n "checking "for printarch
"""... $ac_c" 1>&6
6742 echo "configure:6743: checking "for printarch
"" >&5
6743 # Check whether --with-printarch or --without-printarch was given.
6744 if test "${with_printarch+set}" = set; then
6745 withval
="$with_printarch"
6746 if test "x$with_printarch" = xyes
; then
6747 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="1"'
6749 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="0"'
6753 LINE
=`grep "wxUSE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
6754 if test "x$LINE" != x
; then
6755 eval "DEFAULT_$LINE"
6757 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6761 eval "$ac_cv_use_printarch"
6762 echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
6763 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1; then
6764 echo "$ac_t""yes" 1>&6
6766 echo "$ac_t""no" 1>&6
6771 echo $ac_n "checking "for help"""... $ac_c" 1>&6
6772 echo "configure:6773: checking "for help"" >&5
6773 # Check whether --with-help or --without-help was given.
6774 if test "${with_help+set}" = set; then
6775 withval
="$with_help"
6776 if test "x$with_help" = xyes
; then
6777 ac_cv_use_help
='wxUSE_HELP="1"'
6779 ac_cv_use_help
='wxUSE_HELP="0"'
6783 LINE
=`grep "wxUSE_HELP" ${OSTYPE}.system.cache`
6784 if test "x$LINE" != x
; then
6785 eval "DEFAULT_$LINE"
6787 ac_cv_use_help
='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6791 eval "$ac_cv_use_help"
6792 echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
6793 if test "$wxUSE_HELP" = 1; then
6794 echo "$ac_t""yes" 1>&6
6796 echo "$ac_t""no" 1>&6
6801 if test "$wxUSE_UNIX" = 1 ; then
6802 cat >> confdefs.h
<<\EOF
6808 if test "$USE_LINUX" = 1; then
6809 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
6810 echo "configure:6811: checking for gettext in -lc" >&5
6811 ac_lib_var
=`echo c'_'gettext | sed 'y%./+-%__p_%'`
6812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6813 echo $ac_n "(cached) $ac_c" 1>&6
6815 ac_save_LIBS
="$LIBS"
6817 cat > conftest.
$ac_ext <<EOF
6818 #line 6819 "configure"
6819 #include "confdefs.h"
6820 /* Override any gcc2 internal prototype to avoid an error. */
6821 /* We use char because int might match the return type of a gcc2
6822 builtin and then its argument prototype would still apply. */
6829 if { (eval echo configure
:6830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6831 eval "ac_cv_lib_$ac_lib_var=yes"
6833 echo "configure: failed program was:" >&5
6834 cat conftest.
$ac_ext >&5
6836 eval "ac_cv_lib_$ac_lib_var=no"
6839 LIBS
="$ac_save_LIBS"
6842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6843 echo "$ac_t""yes" 1>&6
6844 cat >> confdefs.h
<<\EOF
6845 #define wxHAVE_GLIBC2 1
6849 echo "$ac_t""no" 1>&6
6866 if test "$wxUSE_GTK" = 1; then
6867 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6868 if test "${with_gtk_prefix+set}" = set; then
6869 withval
="$with_gtk_prefix"
6870 gtk_config_prefix
="$withval"
6872 gtk_config_prefix
=""
6875 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
6876 if test "${with_gtk_exec_prefix+set}" = set; then
6877 withval
="$with_gtk_exec_prefix"
6878 gtk_config_exec_prefix
="$withval"
6880 gtk_config_exec_prefix
=""
6884 if test x
$gtk_config_exec_prefix != x
; then
6885 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6886 if test x
${GTK_CONFIG+set} != xset
; then
6887 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
6890 if test x
$gtk_config_prefix != x
; then
6891 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
6892 if test x
${GTK_CONFIG+set} != xset
; then
6893 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
6897 # Extract the first word of "gtk-config", so it can be a program name with args.
6898 set dummy gtk
-config; ac_word
=$2
6899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6900 echo "configure:6901: checking for $ac_word" >&5
6901 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6902 echo $ac_n "(cached) $ac_c" 1>&6
6904 case "$GTK_CONFIG" in
6906 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
6909 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6910 for ac_dir
in $PATH; do
6911 test -z "$ac_dir" && ac_dir
=.
6912 if test -f $ac_dir/$ac_word; then
6913 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
6918 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
6922 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
6923 if test -n "$GTK_CONFIG"; then
6924 echo "$ac_t""$GTK_CONFIG" 1>&6
6926 echo "$ac_t""no" 1>&6
6929 min_gtk_version
=1.0.0
6930 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6931 echo "configure:6932: checking for GTK - version >= $min_gtk_version" >&5
6933 if test "$GTK_CONFIG" != "no" ; then
6934 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
6935 GTK_LIBS
=`$GTK_CONFIG --libs`
6936 ac_save_CFLAGS
="$CFLAGS"
6937 ac_save_LIBS
="$LIBS"
6938 CFLAGS
="$CFLAGS $GTK_CFLAGS"
6939 LIBS
="$LIBS $GTK_LIBS"
6940 if test "$cross_compiling" = yes; then
6941 echo $ac_n "cross compiling; assumed OK... $ac_c"
6943 cat > conftest.
$ac_ext <<EOF
6944 #line 6945 "configure"
6945 #include "confdefs.h"
6947 #include <gtk/gtk.h>
6953 int major, minor, micro;
6955 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
6956 printf("%s, bad version string\n", "$min_gtk_version");
6960 if (gtk_minor_version == 1) return FALSE;
6962 return !((gtk_major_version > major) ||
6963 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6964 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6968 if { (eval echo configure
:6969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6972 echo "configure: failed program was:" >&5
6973 cat conftest.
$ac_ext >&5
6980 CFLAGS
="$ac_save_CFLAGS"
6981 LIBS
="$ac_save_LIBS"
6985 if test "x$no_gtk" = x
; then
6986 echo "$ac_t""yes" 1>&6
6988 GUI_TK_INCLUDE
="$GTK_CFLAGS"
6989 GUI_TK_LIBRARY
="$GTK_LIBS"
6992 echo "$ac_t""no" 1>&6
6995 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.X or 1.0.X?" 1>&2; exit 1; }
7001 TOOLKIT_DEF
=__WXGTK__
7003 MAKEINCLUDE
=..
/gtk.inc
7006 if test "$wxUSE_QT" = 1; then
7007 echo $ac_n "checking for Qt includes""... $ac_c" 1>&6
7008 echo "configure:7009: checking for Qt includes" >&5
7011 for ac_dir
in $SEARCH_INCLUDE;
7013 if test -f "$ac_dir/qapp.h"; then
7014 ac_find_includes
=$ac_dir
7019 if test "$ac_find_includes" != "" ; then
7020 echo "$ac_t""found $ac_find_includes" 1>&6
7021 echo $ac_n "checking for Qt library""... $ac_c" 1>&6
7022 echo "configure:7023: checking for Qt library" >&5
7025 for ac_dir
in $SEARCH_LIB;
7027 for ac_extension
in a so sl
; do
7028 if test -f "$ac_dir/libqt.$ac_extension"; then
7029 ac_find_libraries
=$ac_dir
7035 if test "$ac_find_libraries" != "" ; then
7037 ac_path_to_include
=$ac_find_includes
7038 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
7040 if test $result = 0; then
7041 ac_path_to_include
=""
7043 ac_path_to_include
="-I$ac_find_includes"
7047 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7049 if test $result = 0; then
7052 ac_path_to_link
="-L$ac_find_libraries"
7055 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
7056 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
7057 echo "$ac_t""found Qt at $ac_find_libraries" 1>&6
7059 { echo "configure: error: no" 1>&2; exit 1; }
7062 { echo "configure: error: no" 1>&2; exit 1; }
7064 GUI_TK_LINK
="-lX11 -lqt -lm"
7066 TOOLKIT_DEF
=__WXQT__
7068 MAKEINCLUDE
=..
/qt.inc
7071 if test "$wxUSE_MOTIF" = 1; then
7072 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
7073 echo "configure:7074: checking for Motif/Lesstif includes" >&5
7076 for ac_dir
in $SEARCH_INCLUDE;
7078 if test -f "$ac_dir/Xm/Xm.h"; then
7079 ac_find_includes
=$ac_dir
7084 if test "$ac_find_includes" != "" ; then
7085 echo "$ac_t""found $ac_find_includes" 1>&6
7087 echo "$ac_t""no" 1>&6
7088 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7091 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
7092 echo "configure:7093: checking for Motif/Lesstif library" >&5
7095 for ac_dir
in $SEARCH_LIB;
7097 for ac_extension
in a so sl
; do
7098 if test -f "$ac_dir/libXm.$ac_extension"; then
7099 ac_find_libraries
=$ac_dir
7105 if test "$ac_find_libraries" != "" ; then
7107 ac_path_to_include
=$ac_find_includes
7108 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
7110 if test $result = 0; then
7111 ac_path_to_include
=""
7113 ac_path_to_include
="-I$ac_find_includes"
7117 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7119 if test $result = 0; then
7122 ac_path_to_link
="-L$ac_find_libraries"
7126 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
7127 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
7128 echo "$ac_t""found at $ac_find_libraries" 1>&6
7130 echo "$ac_t""no" 1>&6
7131 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7134 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
7135 echo "configure:7136: checking for Xt library" >&5
7138 for ac_dir
in $SEARCH_LIB;
7140 for ac_extension
in a so sl
; do
7141 if test -f "$ac_dir/libXt.$ac_extension"; then
7142 ac_find_libraries
=$ac_dir
7148 if test "$ac_find_libraries" != "" ; then
7150 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7152 if test $result = 0; then
7155 ac_path_to_link
="-L$ac_find_libraries"
7158 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
7159 echo "$ac_t""found at $ac_find_libraries" 1>&6
7161 echo "$ac_t""no" 1>&6
7162 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7166 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7167 echo "configure:7168: checking for Xpm library" >&5
7170 for ac_dir
in $SEARCH_LIB;
7172 for ac_extension
in a so sl
; do
7173 if test -f "$ac_dir/libXpm.$ac_extension"; then
7174 ac_find_libraries
=$ac_dir
7180 if test "$ac_find_libraries" != "" ; then
7182 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7184 if test $result = 0; then
7187 ac_path_to_link
="-L$ac_find_libraries"
7190 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
7192 cat >> confdefs.h
<<\EOF
7193 #define wxHAVE_LIB_XPM 1
7196 echo "$ac_t""found at $ac_find_libraries" 1>&6
7198 echo "$ac_t""no" 1>&6
7199 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7202 GUI_TK_LINK
="-lXm $(XPM_LINK)-lXmu -lXt -lX11 -lm"
7203 GUI_TK_LIBRARY
="$CHECK_LIB $GUI_TK_LINK"
7205 TOOLKIT_DEF
=__WXMOTIF__
7207 MAKEINCLUDE
=..
/motif.inc
7210 if test "$TOOLKIT" = ""; then
7211 { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; }
7229 if test "$wxUSE_DEBUG_GDB" = 1 ; then
7234 if test "$wxUSE_DEBUG_INFO" = 1 ; then
7241 if test "$wxUSE_DEBUG_FLAG" = 1 ; then
7242 cat >> confdefs.h
<<EOF
7243 #define WXDEBUG $wxUSE_DEBUG_FLAG
7246 WXDEBUG_DEFINE
="-D__WXDEBUG__"
7249 WXDEBUG_DEFINE
="-DGTK_NO_CHECK_CASTS"
7253 if test "$wxUSE_MEM_TRACING" = 1 ; then
7254 cat >> confdefs.h
<<EOF
7255 #define wxUSE_MEMORY_TRACING $wxUSE_MEM_TRACING
7258 cat >> confdefs.h
<<EOF
7259 #define wxUSE_GLOBAL_MEMORY_OPERATORS $wxUSE_MEM_TRACING
7264 if test "$wxUSE_DMALLOC" = 1 ; then
7265 EXTRA_LINK
="$EXTRA_LINK -ldmalloc"
7270 if test "$wxUSE_PROFILE" = 1 ; then
7275 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
7276 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
7277 if test "$wxUSE_OPTIMISE" = 0 ; then
7280 if test "$GCC" = yes ; then
7282 case "${canonical}" in
7284 OPTIMISE
="${OPTIMISE} "
7294 if test "$wxUSE_APPLE_IEEE" = 1 ; then
7295 APPLE_IEEE
="APPLE_IEEE"
7296 cat >> confdefs.h
<<EOF
7297 #define wxUSE_APPLE_IEEE $wxUSE_APPLE_IEEE
7302 wxUSE_IOSTREAMH
=$DEFAULT_wxUSE_IOSTREAMH
7303 cat >> confdefs.h
<<EOF
7304 #define wxUSE_IOSTREAMH $wxUSE_IOSTREAMH
7309 if test "$wxUSE_ZLIB" = 1 ; then
7310 cat >> confdefs.h
<<EOF
7311 #define wxUSE_ZLIB $wxUSE_ZLIB
7314 Z_C_SRC
="\$(Z_C_SRC)"
7318 if test "$wxUSE_LIBPNG" = 1 ; then
7319 cat >> confdefs.h
<<EOF
7320 #define wxUSE_LIBPNG $wxUSE_LIBPNG
7323 PNG_C_SRC
="\$(PNG_C_SRC)"
7327 if test "$wxUSE_LIBJPEG" = 1 ; then
7328 cat >> confdefs.h
<<EOF
7329 #define wxUSE_LIBJPEG $wxUSE_LIBJPEG
7332 JPEG_C_SRC
="\$(JPEG_C_SRC)"
7340 if test "$wxUSE_ODBC" = 1 ; then
7341 cat >> confdefs.h
<<EOF
7342 #define wxUSE_ODBC $wxUSE_ODBC
7345 IODBC_C_SRC
="\$(IODBC_C_SRC)"
7350 if test "$wxUSE_CONFIG" = 1 ; then
7351 cat >> confdefs.h
<<EOF
7352 #define wxUSE_CONFIG $wxUSE_CONFIG
7357 if test "$wxUSE_TIMEDATE" = 1 ; then
7358 cat >> confdefs.h
<<EOF
7359 #define wxUSE_TIMEDATE $wxUSE_TIMEDATE
7364 if test "$wxUSE_INTL" = 1 ; then
7365 cat >> confdefs.h
<<EOF
7366 #define wxUSE_INTL $wxUSE_INTL
7371 if test "$wxUSE_STREAMS" = 1 ; then
7372 cat >> confdefs.h
<<EOF
7373 #define wxUSE_STREAMS $wxUSE_STREAMS
7378 if test "$wxUSE_SOCKETS" = 1 ; then
7379 cat >> confdefs.h
<<EOF
7380 #define wxUSE_SOCKETS $wxUSE_SOCKETS
7385 if test "$wxUSE_SERIAL" = 1 ; then
7386 cat >> confdefs.h
<<EOF
7387 #define wxUSE_SERIAL $wxUSE_SERIAL
7393 if test "$wxUSE_SOCKETS" = "1"; then
7394 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
7395 echo "configure:7396: checking the type of the third argument of getsockname" >&5
7396 cat > conftest.
$ac_ext <<EOF
7397 #line 7398 "configure"
7398 #include "confdefs.h"
7399 #include <sys/socket.h>
7401 socklen_t len; getsockname(0, NULL, &len);
7404 if { (eval echo configure
:7405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7406 cat >> confdefs.h
<<\EOF
7407 #define SOCKLEN_T socklen_t
7409 echo "$ac_t""socklen_t" 1>&6
7411 echo "configure: failed program was:" >&5
7412 cat conftest.
$ac_ext >&5
7414 cat > conftest.
$ac_ext <<EOF
7415 #line 7416 "configure"
7416 #include "confdefs.h"
7417 #include <sys/socket.h>
7419 size_t len; getsockname(0, NULL, &len);
7422 if { (eval echo configure
:7423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7424 cat >> confdefs.h
<<\EOF
7425 #define SOCKLEN_T size_t
7427 echo "$ac_t""size_t" 1>&6
7429 echo "configure: failed program was:" >&5
7430 cat conftest.
$ac_ext >&5
7432 cat > conftest.
$ac_ext <<EOF
7433 #line 7434 "configure"
7434 #include "confdefs.h"
7435 #include <sys/socket.h>
7437 int len; getsockname(0, NULL, &len);
7440 if { (eval echo configure
:7441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7442 cat >> confdefs.h
<<\EOF
7443 #define SOCKLEN_T int
7445 echo "$ac_t""int" 1>&6
7447 echo "configure: failed program was:" >&5
7448 cat conftest.
$ac_ext >&5
7450 echo "$ac_t""unknown" 1>&6
7464 if test "$wxUSE_DYNLIB_CLASS" = "1"; then
7465 for ac_func
in dlopen
7467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7468 echo "configure:7469: checking for $ac_func" >&5
7469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7470 echo $ac_n "(cached) $ac_c" 1>&6
7472 cat > conftest.
$ac_ext <<EOF
7473 #line 7474 "configure"
7474 #include "confdefs.h"
7475 /* System header to define __stub macros and hopefully few prototypes,
7476 which can conflict with char $ac_func(); below. */
7478 /* Override any gcc2 internal prototype to avoid an error. */
7479 /* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7485 /* The GNU C library defines this for functions which it implements
7486 to always fail with ENOSYS. Some functions are actually named
7487 something starting with __ and the normal name is an alias. */
7488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7496 if { (eval echo configure
:7497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7498 eval "ac_cv_func_$ac_func=yes"
7500 echo "configure: failed program was:" >&5
7501 cat conftest.
$ac_ext >&5
7503 eval "ac_cv_func_$ac_func=no"
7508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7509 echo "$ac_t""yes" 1>&6
7510 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7511 cat >> confdefs.h
<<EOF
7512 #define $ac_tr_func 1
7514 cat >> confdefs.h
<<\EOF
7515 #define HAVE_DLOPEN 1
7519 echo "$ac_t""no" 1>&6
7520 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7521 echo "configure:7522: checking for dlopen in -ldl" >&5
7522 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
7523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7524 echo $ac_n "(cached) $ac_c" 1>&6
7526 ac_save_LIBS
="$LIBS"
7528 cat > conftest.
$ac_ext <<EOF
7529 #line 7530 "configure"
7530 #include "confdefs.h"
7531 /* Override any gcc2 internal prototype to avoid an error. */
7532 /* We use char because int might match the return type of a gcc2
7533 builtin and then its argument prototype would still apply. */
7540 if { (eval echo configure
:7541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7542 eval "ac_cv_lib_$ac_lib_var=yes"
7544 echo "configure: failed program was:" >&5
7545 cat conftest.
$ac_ext >&5
7547 eval "ac_cv_lib_$ac_lib_var=no"
7550 LIBS
="$ac_save_LIBS"
7553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7554 echo "$ac_t""yes" 1>&6
7555 cat >> confdefs.h
<<\EOF
7556 #define HAVE_DLOPEN 1
7560 echo "$ac_t""no" 1>&6
7566 for ac_func
in shl_load
7568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7569 echo "configure:7570: checking for $ac_func" >&5
7570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7571 echo $ac_n "(cached) $ac_c" 1>&6
7573 cat > conftest.
$ac_ext <<EOF
7574 #line 7575 "configure"
7575 #include "confdefs.h"
7576 /* System header to define __stub macros and hopefully few prototypes,
7577 which can conflict with char $ac_func(); below. */
7579 /* Override any gcc2 internal prototype to avoid an error. */
7580 /* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7586 /* The GNU C library defines this for functions which it implements
7587 to always fail with ENOSYS. Some functions are actually named
7588 something starting with __ and the normal name is an alias. */
7589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7597 if { (eval echo configure
:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7599 eval "ac_cv_func_$ac_func=yes"
7601 echo "configure: failed program was:" >&5
7602 cat conftest.
$ac_ext >&5
7604 eval "ac_cv_func_$ac_func=no"
7609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7610 echo "$ac_t""yes" 1>&6
7611 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7612 cat >> confdefs.h
<<EOF
7613 #define $ac_tr_func 1
7615 cat >> confdefs.h
<<\EOF
7616 #define HAVE_SHL_LOAD 1
7620 echo "$ac_t""no" 1>&6
7625 if test "$HAVE_DL_FUNCS" = 0; then
7626 echo "configure: warning: "--with-dynlib will be disabled because no
function was found to load a shared library on this platform
"" 1>&2
7628 wxUSE_DYNLIB_CLASS
=0
7632 if test "$wxUSE_DYNLIB_CLASS" = 1 ; then
7633 cat >> confdefs.h
<<EOF
7634 #define wxUSE_DYNLIB_CLASS $wxUSE_DYNLIB_CLASS
7640 if test "$wxUSE_RPC" = 1 ; then
7641 cat >> confdefs.h
<<EOF
7642 #define wxUSE_RPC $wxUSE_RPC
7647 if test "$wxUSE_WX_RESOURCES" = 1 ; then
7648 cat >> confdefs.h
<<EOF
7649 #define wxUSE_WX_RESOURCES $wxUSE_WX_RESOURCES
7654 if test "$wxUSE_PROLOGIO" = 1 ; then
7655 cat >> confdefs.h
<<EOF
7656 #define wxUSE_PROLOGIO 1
7662 if test "$wxUSE_POSTSCRIPT" = 1 ; then
7663 cat >> confdefs.h
<<EOF
7664 #define wxUSE_POSTSCRIPT 1
7669 cat >> confdefs.h
<<EOF
7670 #define wxUSE_AFM_FOR_POSTSCRIPT $wxUSE_AFM_FOR_POSTSCRIPT
7674 cat >> confdefs.h
<<EOF
7675 #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
7680 if test "$wxUSE_MDI_ARCHITECTURE" = 1 ; then
7681 cat >> confdefs.h
<<EOF
7682 #define wxUSE_MDI_ARCHITECTURE $wxUSE_MDI_ARCHITECTURE
7687 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1 ; then
7688 cat >> confdefs.h
<<EOF
7689 #define wxUSE_DOC_VIEW_ARCHITECTURE $wxUSE_DOC_VIEW_ARCHITECTURE
7694 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1 ; then
7695 cat >> confdefs.h
<<EOF
7696 #define wxUSE_PRINTING_ARCHITECTURE $wxUSE_PRINTING_ARCHITECTURE
7702 if test "$wxUSE_UNICODE" = 1 ; then
7703 cat >> confdefs.h
<<EOF
7704 #define wxUSE_UNICODE 1
7709 if test "$wxUSE_WCSRTOMBS" = 1 ; then
7710 cat >> confdefs.h
<<EOF
7711 #define wxUSE_WCSRTOMBS 1
7717 if test "$wxUSE_IPC" = 1 ; then
7718 cat >> confdefs.h
<<EOF
7724 if test "$wxUSE_RESOURCES" = 1 ; then
7725 cat >> confdefs.h
<<EOF
7726 #define wxUSE_RESOURCES $wxUSE_RESOURCES
7731 if test "$wxUSE_CLIPBOARD" = 1 ; then
7732 cat >> confdefs.h
<<EOF
7733 #define wxUSE_CLIPBOARD $wxUSE_CLIPBOARD
7738 if test "$wxUSE_TOOLTIPS" = 1 ; then
7739 if test "$wxUSE_MOTIF" = 1; then
7740 echo "configure: warning: tooltips are not supported yet under Motif" 1>&2
7744 cat >> confdefs.h
<<EOF
7745 #define wxUSE_TOOLTIPS $wxUSE_TOOLTIPS
7750 if test "$wxUSE_DRAG_AND_DROP" = 1 ; then
7751 cat >> confdefs.h
<<EOF
7752 #define wxUSE_DRAG_AND_DROP $wxUSE_DRAG_AND_DROP
7759 if test "$wxUSE_HELP" = 1 ; then
7761 cat >> confdefs.h
<<EOF
7762 #define wxUSE_HELP $wxUSE_HELP
7773 if test "$wxUSE_THREADS" = "1"; then
7775 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
7776 echo "configure:7777: checking for pthread_create in -lpthread" >&5
7777 ac_lib_var
=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
7778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7779 echo $ac_n "(cached) $ac_c" 1>&6
7781 ac_save_LIBS
="$LIBS"
7782 LIBS
="-lpthread $LIBS"
7783 cat > conftest.
$ac_ext <<EOF
7784 #line 7785 "configure"
7785 #include "confdefs.h"
7786 /* Override any gcc2 internal prototype to avoid an error. */
7787 /* We use char because int might match the return type of a gcc2
7788 builtin and then its argument prototype would still apply. */
7789 char pthread_create();
7795 if { (eval echo configure
:7796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7797 eval "ac_cv_lib_$ac_lib_var=yes"
7799 echo "configure: failed program was:" >&5
7800 cat conftest.
$ac_ext >&5
7802 eval "ac_cv_lib_$ac_lib_var=no"
7805 LIBS
="$ac_save_LIBS"
7808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7809 echo "$ac_t""yes" 1>&6
7811 UNIX_THREAD
="unix/threadpsx.cpp"
7812 THREADS_LINK
="pthread"
7815 echo "$ac_t""no" 1>&6
7817 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
7818 echo "configure:7819: checking for pthread_create in -lc_r" >&5
7819 ac_lib_var
=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
7820 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7821 echo $ac_n "(cached) $ac_c" 1>&6
7823 ac_save_LIBS
="$LIBS"
7825 cat > conftest.
$ac_ext <<EOF
7826 #line 7827 "configure"
7827 #include "confdefs.h"
7828 /* Override any gcc2 internal prototype to avoid an error. */
7829 /* We use char because int might match the return type of a gcc2
7830 builtin and then its argument prototype would still apply. */
7831 char pthread_create();
7837 if { (eval echo configure
:7838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7839 eval "ac_cv_lib_$ac_lib_var=yes"
7841 echo "configure: failed program was:" >&5
7842 cat conftest.
$ac_ext >&5
7844 eval "ac_cv_lib_$ac_lib_var=no"
7847 LIBS
="$ac_save_LIBS"
7850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7851 echo "$ac_t""yes" 1>&6
7853 UNIX_THREAD
="unix/threadpsx.cpp"
7857 echo "$ac_t""no" 1>&6
7859 ac_safe
=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
7860 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7861 echo "configure:7862: checking for sys/prctl.h" >&5
7862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7863 echo $ac_n "(cached) $ac_c" 1>&6
7865 cat > conftest.
$ac_ext <<EOF
7866 #line 7867 "configure"
7867 #include "confdefs.h"
7868 #include <sys/prctl.h>
7870 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7871 { (eval echo configure
:7872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7872 ac_err
=`grep -v '^ *+' conftest.out`
7873 if test -z "$ac_err"; then
7875 eval "ac_cv_header_$ac_safe=yes"
7878 echo "configure: failed program was:" >&5
7879 cat conftest.
$ac_ext >&5
7881 eval "ac_cv_header_$ac_safe=no"
7885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7886 echo "$ac_t""yes" 1>&6
7888 UNIX_THREAD
="gtk/threadsgi.cpp"
7891 echo "$ac_t""no" 1>&6
7900 if test "$THREADS_LINK" != ""; then
7901 cat >> confdefs.h
<<\EOF
7902 #define wxUSE_THREADS 1
7906 echo "configure: warning: No thread support on this system" 1>&2
7910 if test -z "$UNIX_THREAD"; then
7914 if test "$wxUSE_THREADS" = "1"; then
7917 for ac_hdr
in sched.h
7919 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7921 echo "configure:7922: checking for $ac_hdr" >&5
7922 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7923 echo $ac_n "(cached) $ac_c" 1>&6
7925 cat > conftest.
$ac_ext <<EOF
7926 #line 7927 "configure"
7927 #include "confdefs.h"
7930 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7931 { (eval echo configure
:7932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7932 ac_err
=`grep -v '^ *+' conftest.out`
7933 if test -z "$ac_err"; then
7935 eval "ac_cv_header_$ac_safe=yes"
7938 echo "configure: failed program was:" >&5
7939 cat conftest.
$ac_ext >&5
7941 eval "ac_cv_header_$ac_safe=no"
7945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7946 echo "$ac_t""yes" 1>&6
7947 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7948 cat >> confdefs.h
<<EOF
7949 #define $ac_tr_hdr 1
7953 echo "$ac_t""no" 1>&6
7958 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
7959 echo "configure:7960: checking for sched_yield in -l$THREADS_LINK" >&5
7960 ac_lib_var
=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
7961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7962 echo $ac_n "(cached) $ac_c" 1>&6
7964 ac_save_LIBS
="$LIBS"
7965 LIBS
="-l$THREADS_LINK $LIBS"
7966 cat > conftest.
$ac_ext <<EOF
7967 #line 7968 "configure"
7968 #include "confdefs.h"
7969 /* Override any gcc2 internal prototype to avoid an error. */
7970 /* We use char because int might match the return type of a gcc2
7971 builtin and then its argument prototype would still apply. */
7978 if { (eval echo configure
:7979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7980 eval "ac_cv_lib_$ac_lib_var=yes"
7982 echo "configure: failed program was:" >&5
7983 cat conftest.
$ac_ext >&5
7985 eval "ac_cv_lib_$ac_lib_var=no"
7988 LIBS
="$ac_save_LIBS"
7991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7992 echo "$ac_t""yes" 1>&6
7993 cat >> confdefs.h
<<\EOF
7994 #define HAVE_SCHED_YIELD 1
7998 echo "$ac_t""no" 1>&6
7999 echo $ac_n "checking for sched_yield in -l"posix4
"""... $ac_c" 1>&6
8000 echo "configure:8001: checking for sched_yield in -l"posix4
"" >&5
8001 ac_lib_var
=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
8002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8003 echo $ac_n "(cached) $ac_c" 1>&6
8005 ac_save_LIBS
="$LIBS"
8006 LIBS
="-l"posix4
" $LIBS"
8007 cat > conftest.
$ac_ext <<EOF
8008 #line 8009 "configure"
8009 #include "confdefs.h"
8010 /* Override any gcc2 internal prototype to avoid an error. */
8011 /* We use char because int might match the return type of a gcc2
8012 builtin and then its argument prototype would still apply. */
8019 if { (eval echo configure
:8020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
8021 eval "ac_cv_lib_$ac_lib_var=yes"
8023 echo "configure: failed program was:" >&5
8024 cat conftest.
$ac_ext >&5
8026 eval "ac_cv_lib_$ac_lib_var=no"
8029 LIBS
="$ac_save_LIBS"
8032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8033 echo "$ac_t""yes" 1>&6
8034 cat >> confdefs.h
<<\EOF
8035 #define HAVE_SCHED_YIELD 1
8037 POSIX4_LINK
="-lposix4"
8039 echo "$ac_t""no" 1>&6
8040 echo "configure: warning: wxThread::Yield() will not work properly" 1>&2
8048 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
8049 echo "configure:8050: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
8050 ac_lib_var
=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
8051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8054 ac_save_LIBS
="$LIBS"
8055 LIBS
="-l$THREADS_LINK $LIBS"
8056 cat > conftest.
$ac_ext <<EOF
8057 #line 8058 "configure"
8058 #include "confdefs.h"
8059 /* Override any gcc2 internal prototype to avoid an error. */
8060 /* We use char because int might match the return type of a gcc2
8061 builtin and then its argument prototype would still apply. */
8062 char pthread_attr_getschedpolicy();
8065 pthread_attr_getschedpolicy()
8068 if { (eval echo configure
:8069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
8070 eval "ac_cv_lib_$ac_lib_var=yes"
8072 echo "configure: failed program was:" >&5
8073 cat conftest.
$ac_ext >&5
8075 eval "ac_cv_lib_$ac_lib_var=no"
8078 LIBS
="$ac_save_LIBS"
8081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8082 echo "$ac_t""yes" 1>&6
8083 cat >> confdefs.h
<<\EOF
8084 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
8088 echo "$ac_t""no" 1>&6
8089 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4
"""... $ac_c" 1>&6
8090 echo "configure:8091: checking for pthread_attr_getschedpolicy in -l"posix4
"" >&5
8091 ac_lib_var
=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
8092 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8093 echo $ac_n "(cached) $ac_c" 1>&6
8095 ac_save_LIBS
="$LIBS"
8096 LIBS
="-l"posix4
" $LIBS"
8097 cat > conftest.
$ac_ext <<EOF
8098 #line 8099 "configure"
8099 #include "confdefs.h"
8100 /* Override any gcc2 internal prototype to avoid an error. */
8101 /* We use char because int might match the return type of a gcc2
8102 builtin and then its argument prototype would still apply. */
8103 char pthread_attr_getschedpolicy();
8106 pthread_attr_getschedpolicy()
8109 if { (eval echo configure
:8110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
8111 eval "ac_cv_lib_$ac_lib_var=yes"
8113 echo "configure: failed program was:" >&5
8114 cat conftest.
$ac_ext >&5
8116 eval "ac_cv_lib_$ac_lib_var=no"
8119 LIBS
="$ac_save_LIBS"
8122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8123 echo "$ac_t""yes" 1>&6
8124 cat >> confdefs.h
<<\EOF
8125 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
8127 POSIX4_LINK
="-lposix4"
8129 echo "$ac_t""no" 1>&6
8130 echo "configure: warning: Setting thread priority will not work" 1>&2
8138 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
8139 echo "configure:8140: checking for pthread_cancel in -l$THREADS_LINK" >&5
8140 ac_lib_var
=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
8141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8142 echo $ac_n "(cached) $ac_c" 1>&6
8144 ac_save_LIBS
="$LIBS"
8145 LIBS
="-l$THREADS_LINK $LIBS"
8146 cat > conftest.
$ac_ext <<EOF
8147 #line 8148 "configure"
8148 #include "confdefs.h"
8149 /* Override any gcc2 internal prototype to avoid an error. */
8150 /* We use char because int might match the return type of a gcc2
8151 builtin and then its argument prototype would still apply. */
8152 char pthread_cancel();
8158 if { (eval echo configure
:8159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
8160 eval "ac_cv_lib_$ac_lib_var=yes"
8162 echo "configure: failed program was:" >&5
8163 cat conftest.
$ac_ext >&5
8165 eval "ac_cv_lib_$ac_lib_var=no"
8168 LIBS
="$ac_save_LIBS"
8171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8172 echo "$ac_t""yes" 1>&6
8173 cat >> confdefs.h
<<\EOF
8174 #define HAVE_PTHREAD_CANCEL 1
8178 echo "$ac_t""no" 1>&6
8179 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
8183 THREADS_LINK
="-l$THREADS_LINK"
8193 case "${canonical}" in
8195 if test "$GCC" != "yes" ; then
8196 CXXFLAGS
="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
8197 CFLAGS
="${CFLAGS} -z -D_HPUX_SOURCE"
8203 CREATE_SHARED
=sharedHpux
8208 CREATE_SHARED
=sharedLinux
8211 *-*-irix5* | *-*-irix6* )
8212 # PICFLAGS can remain empty, as pic is the default
8214 CREATE_SHARED
=sharedIrix
8215 cat >> confdefs.h
<<\EOF
8222 if test "$GCC" != "yes" ; then
8227 CREATE_SHARED
=sharedSolaris2
8228 cat >> confdefs.h
<<\EOF
8235 if test "$GCC" != "yes" ; then
8241 CREATE_SHARED
=sharedSunos4
8242 cat >> confdefs.h
<<\EOF
8248 *-*-freebsd* | *-*-netbsd*)
8250 CREATE_SHARED
=sharedBsd
8251 cat >> confdefs.h
<<\EOF
8259 CREATE_SHARED
=sharedOSF
8263 if test "$GCC" != "yes" ; then
8268 CREATE_SHARED
=sharedDgux
8269 cat >> confdefs.h
<<\EOF
8276 if test "$GCC" != "yes" ; then
8281 CREATE_SHARED
=sharedSysV
8282 cat >> confdefs.h
<<\EOF
8289 if test "$GCC" != "yes" ; then
8292 PICFLAGS
="-fPIC -D__SYSV__"
8294 CREATE_SHARED
=sharedAIX
8295 cat >> confdefs.h
<<\EOF
8306 if test "x$GCC" = xyes
; then
8307 CFLAGS
="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER -DHAVE_LIBDL"
8310 if test "x$GXX" = xyes
; then
8311 if test "$wxUSE_MOTIF" = 1; then
8312 CXXFLAGS
="${CXXFLAGS} -Wall -Wno-unused -D_REENTRANT"
8314 CXXFLAGS
="${CXXFLAGS} -Wall -D_REENTRANT"
8318 if test "$wxUSE_SHARED" != 1; then
8328 echo $OS >> system.list
8330 TOOLKIT_DIR
=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
8334 cat > confcache
<<\EOF
8335 # This file is a shell script that caches the results of configure
8336 # tests run on this system so they can be shared between configure
8337 # scripts and configure runs. It is not useful on other systems.
8338 # If it contains results you don't want to keep, you may remove or edit it.
8340 # By default, configure uses ./config.cache as the cache file,
8341 # creating it if it does not exist already. You can give configure
8342 # the --cache-file=FILE option to use a different cache file; that is
8343 # what configure does when it calls configure scripts in
8344 # subdirectories, so they share the cache.
8345 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8346 # config.status only pays attention to the cache file if you give it the
8347 # --recheck option to rerun configure.
8350 # The following way of writing the cache mishandles newlines in values,
8351 # but we know of no workaround that is simple, portable, and efficient.
8352 # So, don't put newlines in cache variables' values.
8353 # Ultrix sh set writes to stderr and can't be redirected directly,
8354 # and sets the high bit in the cache file unless we assign to the vars.
8356 case `(ac_space=' '; set) 2>&1` in
8358 # `set' does not quote correctly, so add quotes (double-quote substitution
8359 # turns \\\\ into \\, and sed turns \\ into \).
8361 -e "s/'/'\\\\''/g" \
8362 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8365 # `set' quotes correctly as required by POSIX, so do not add quotes.
8366 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8369 if cmp -s $cache_file confcache
; then
8372 if test -w $cache_file; then
8373 echo "updating cache $cache_file"
8374 cat confcache
> $cache_file
8376 echo "not updating unwritable cache $cache_file"
8381 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8383 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8384 # Let make expand exec_prefix.
8385 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8387 # Any assignment to VPATH causes Sun make to only execute
8388 # the first set of double-colon rules, so remove it if not needed.
8389 # If there is a colon in the path, we need to keep it.
8390 if test "x$srcdir" = x.
; then
8391 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8394 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8396 DEFS
=-DHAVE_CONFIG_H
8398 # Without the "./", some shells look in PATH for config.status.
8399 : ${CONFIG_STATUS=./config.status}
8401 echo creating
$CONFIG_STATUS
8402 rm -f $CONFIG_STATUS
8403 cat > $CONFIG_STATUS <<EOF
8405 # Generated automatically by configure.
8406 # Run this file to recreate the current configuration.
8407 # This directory was configured as follows,
8408 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8410 # $0 $ac_configure_args
8412 # Compiler output produced by configure, useful for debugging
8413 # configure, is in ./config.log if it exists.
8415 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8418 case "\$ac_option" in
8419 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8420 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8421 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8422 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8423 echo "$CONFIG_STATUS generated by autoconf version 2.12"
8425 -help | --help | --hel | --he | --h)
8426 echo "\$ac_cs_usage"; exit 0 ;;
8427 *) echo "\$ac_cs_usage"; exit 1 ;;
8431 ac_given_srcdir=$srcdir
8432 ac_given_INSTALL="$INSTALL"
8434 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
8436 cat >> $CONFIG_STATUS <<EOF
8438 # Protect against being on the right side of a sed subst in config.status.
8439 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8440 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8443 s%@CFLAGS@%$CFLAGS%g
8444 s%@CPPFLAGS@%$CPPFLAGS%g
8445 s%@CXXFLAGS@%$CXXFLAGS%g
8447 s%@LDFLAGS@%$LDFLAGS%g
8449 s%@exec_prefix@%$exec_prefix%g
8450 s%@prefix@%$prefix%g
8451 s%@program_transform_name@%$program_transform_name%g
8452 s%@bindir@%$bindir%g
8453 s%@sbindir@%$sbindir%g
8454 s%@libexecdir@%$libexecdir%g
8455 s%@datadir@%$datadir%g
8456 s%@sysconfdir@%$sysconfdir%g
8457 s%@sharedstatedir@%$sharedstatedir%g
8458 s%@localstatedir@%$localstatedir%g
8459 s%@libdir@%$libdir%g
8460 s%@includedir@%$includedir%g
8461 s%@oldincludedir@%$oldincludedir%g
8462 s%@infodir@%$infodir%g
8463 s%@mandir@%$mandir%g
8464 s%@WXBASEDIR@%$WXBASEDIR%g
8468 s%@CXXCPP@%$CXXCPP%g
8469 s%@RANLIB@%$RANLIB%g
8471 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8472 s%@INSTALL_DATA@%$INSTALL_DATA%g
8476 s%@X_CFLAGS@%$X_CFLAGS%g
8477 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8478 s%@X_LIBS@%$X_LIBS%g
8479 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8480 s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
8481 s%@WCHAR_LINK@%$WCHAR_LINK%g
8482 s%@LIBOBJS@%$LIBOBJS%g
8485 s%@LEXLIB@%$LEXLIB%g
8486 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
8487 s%@DL_LIBRARY@%$DL_LIBRARY%g
8489 s%@host_alias@%$host_alias%g
8490 s%@host_cpu@%$host_cpu%g
8491 s%@host_vendor@%$host_vendor%g
8492 s%@host_os@%$host_os%g
8493 s%@GTK_CONFIG@%$GTK_CONFIG%g
8494 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8495 s%@GTK_LIBS@%$GTK_LIBS%g
8496 s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
8497 s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
8498 s%@GUI_TK_LINK@%$GUI_TK_LINK%g
8499 s%@WX_LINK@%$WX_LINK%g
8500 s%@TOOLKIT@%$TOOLKIT%g
8501 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
8502 s%@MAKEINCLUDE@%$MAKEINCLUDE%g
8503 s%@WXDEBUG@%$WXDEBUG%g
8504 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
8505 s%@EXTRA_LINK@%$EXTRA_LINK%g
8506 s%@PROFILE@%$PROFILE%g
8507 s%@OPTIMISE@%$OPTIMISE%g
8508 s%@Z_C_SRC@%$Z_C_SRC%g
8509 s%@PNG_C_SRC@%$PNG_C_SRC%g
8510 s%@JPEG_C_SRC@%$JPEG_C_SRC%g
8511 s%@JPEG_LINK@%$JPEG_LINK%g
8512 s%@IODBC_C_SRC@%$IODBC_C_SRC%g
8514 s%@UNIX_THREAD@%$UNIX_THREAD%g
8515 s%@THREADS_LINK@%$THREADS_LINK%g
8516 s%@POSIX4_LINK@%$POSIX4_LINK%g
8518 s%@PICFLAGS@%$PICFLAGS%g
8519 s%@CREATE_SHARED@%$CREATE_SHARED%g
8524 cat >> $CONFIG_STATUS <<\EOF
8526 # Split the substitutions into bite-sized pieces for seds with
8527 # small command number limits, like on Digital OSF/1 and HP-UX.
8528 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8529 ac_file
=1 # Number of current file.
8530 ac_beg
=1 # First line for current file.
8531 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8534 while $ac_more_lines; do
8535 if test $ac_beg -gt 1; then
8536 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8538 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8540 if test ! -s conftest.s
$ac_file; then
8542 rm -f conftest.s
$ac_file
8544 if test -z "$ac_sed_cmds"; then
8545 ac_sed_cmds
="sed -f conftest.s$ac_file"
8547 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8549 ac_file
=`expr $ac_file + 1`
8551 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8554 if test -z "$ac_sed_cmds"; then
8559 cat >> $CONFIG_STATUS <<EOF
8561 CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"}
8563 cat >> $CONFIG_STATUS <<\EOF
8564 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8565 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8567 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8568 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8569 *) ac_file_in
="${ac_file}.in" ;;
8572 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8574 # Remove last slash and all that follows it. Not all systems have dirname.
8575 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8576 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8577 # The file is in a subdirectory.
8578 test ! -d "$ac_dir" && mkdir "$ac_dir"
8579 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8580 # A "../" for each directory in $ac_dir_suffix.
8581 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8583 ac_dir_suffix
= ac_dots
=
8586 case "$ac_given_srcdir" in
8588 if test -z "$ac_dots"; then top_srcdir
=.
8589 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8590 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8592 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8593 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8596 case "$ac_given_INSTALL" in
8597 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
8598 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
8601 echo creating
"$ac_file"
8603 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8605 *Makefile
*) ac_comsub
="1i\\
8606 # $configure_input" ;;
8610 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8612 s%@configure_input@%$configure_input%g
8613 s%@srcdir@%$srcdir%g
8614 s%@top_srcdir@%$top_srcdir%g
8615 s%@INSTALL@%$INSTALL%g
8616 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8620 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8621 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8623 # ac_d sets the value in "#define NAME VALUE" lines.
8624 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8625 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8628 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8629 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8630 ac_uB
='\([ ]\)%\1#\2define\3'
8633 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8634 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8635 ac_eB
='$%\1#\2define\3'
8639 if test "${CONFIG_HEADERS+set}" != set; then
8641 cat >> $CONFIG_STATUS <<EOF
8642 CONFIG_HEADERS="./include/wx/${TOOLKIT_DIR}/setup.h:./setup/setup.hin"
8644 cat >> $CONFIG_STATUS <<\EOF
8646 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8647 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8649 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8650 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8651 *) ac_file_in
="${ac_file}.in" ;;
8654 echo creating
$ac_file
8656 rm -f conftest.frag conftest.
in conftest.out
8657 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8658 cat $ac_file_inputs > conftest.
in
8662 # Transform confdefs.h into a sed script conftest.vals that substitutes
8663 # the proper values into config.h.in to produce config.h. And first:
8664 # Protect against being on the right side of a sed subst in config.status.
8665 # Protect against being in an unquoted here document in config.status.
8667 cat > conftest.hdr
<<\EOF
8670 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8674 sed -n -f conftest.hdr confdefs.h > conftest.vals
8677 # This sed command replaces #undef with comments. This is necessary, for
8678 # example, in the case of _POSIX_SOURCE, which is predefined and required
8679 # on some systems where configure will not decide to define it.
8680 cat >> conftest.vals <<\EOF
8681 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8684 # Break up conftest.vals because some shells have a limit on
8685 # the size of here documents, and old seds have small limits too.
8690 ac_lines=`grep -c . conftest.vals
`
8691 # grep -c gives empty output for an empty file on some AIX systems.
8692 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8693 # Write a limited-size here document to conftest.frag.
8694 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8695 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8697 sed -f conftest.frag conftest.in > conftest.out
8699 mv conftest.out conftest.in
8701 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8703 mv conftest.tail conftest.vals
8707 cat >> $CONFIG_STATUS <<\EOF
8708 rm -f conftest.frag conftest.h
8709 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8710 cat conftest.in >> conftest.h
8712 if cmp -s $ac_file conftest.h 2>/dev/null; then
8713 echo "$ac_file is unchanged"
8716 # Remove last slash and all that follows it. Not all systems have dirname.
8717 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8718 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8719 # The file is in a subdirectory.
8720 test ! -d "$ac_dir" && mkdir "$ac_dir"
8723 mv conftest.h $ac_file
8728 cat >> $CONFIG_STATUS <<EOF
8731 cat >> $CONFIG_STATUS <<\EOF
8732 ./setup/general/createall
8735 chmod +x $CONFIG_STATUS
8736 rm -fr confdefs* $ac_clean_files
8737 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8741 mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache