3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-x use the X Window System"
21 **--with-motif use Motif/Lesstif"
23 **--with-shared create shared libraries"
25 **--with-optimise create optimised code"
27 **--with-debug_flag create code with WXDEBUG define set to 1"
29 **--with-debug_info create code with debuging information"
31 **--with-debug_gdb create code with extra GDB debuging information"
33 **--with-mem_traing create code with memory tracing"
35 **--with-dmalloc use dmalloc memory debug library (www.letters.com/dmalloc/)"
37 **--with-profile create code with profiling information"
39 **--with_apple_ieee use the Apple IEEE codec"
41 **--with-threads for enabling threads"
43 **--with-dynlib to compile wxLibrary class"
45 **--with-zlib use zlib for LZW comression"
47 **--with-libpng use libpng (PNG image format)"
49 **--with-libjpeg use libjpeg (JPEG image format)"
51 **--with-odbc use iODBC and wxODBC classes"
53 **--with-timedate use wxTime and wxDate classes"
55 **--with-intl use internationalization system"
57 **--with-config use wxConfig class"
59 **--with-streams use wxStream etc classes"
61 **--with-serial use class serialization"
63 **--with-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 SHELL
=${CONFIG_SHELL-/bin/sh}
141 # Maximum number of lines to put in a shell here document.
148 # If the previous option needs an argument, assign it.
149 if test -n "$ac_prev"; then
150 eval "$ac_prev=\$ac_option"
156 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
160 # Accept the important Cygnus configure options, so we can diagnose typos.
164 -bindir | --bindir | --bindi | --bind | --bin | --bi)
166 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
167 bindir
="$ac_optarg" ;;
169 -build | --build | --buil | --bui | --bu)
171 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
172 build
="$ac_optarg" ;;
174 -cache-file | --cache-file | --cache-fil | --cache-fi \
175 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
176 ac_prev
=cache_file
;;
177 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
178 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
179 cache_file
="$ac_optarg" ;;
181 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
183 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
185 datadir
="$ac_optarg" ;;
187 -disable-* | --disable-*)
188 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
194 eval "enable_${ac_feature}=no" ;;
196 -enable-* | --enable-*)
197 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
198 # Reject names that are not valid shell variable names.
199 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
200 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
202 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
207 eval "enable_${ac_feature}='$ac_optarg'" ;;
209 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
210 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
211 | --exec | --exe | --ex)
212 ac_prev
=exec_prefix
;;
213 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
214 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
215 | --exec=* | --exe=* | --ex=*)
216 exec_prefix
="$ac_optarg" ;;
218 -gas | --gas | --ga | --g)
219 # Obsolete; use --with-gas.
222 -help | --help | --hel | --he)
223 # Omit some internal or obsolete options to make the list less imposing.
224 # This message is too long to be a string in the A/UX 3.1 sh.
226 Usage: configure [options] [host]
227 Options: [defaults in brackets after descriptions]
229 --cache-file=FILE cache test results in FILE
230 --help print this message
231 --no-create do not create output files
232 --quiet, --silent do not print \`checking...' messages
233 --version print the version of autoconf that created configure
234 Directory and file names:
235 --prefix=PREFIX install architecture-independent files in PREFIX
237 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
239 --bindir=DIR user executables in DIR [EPREFIX/bin]
240 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
241 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
242 --datadir=DIR read-only architecture-independent data in DIR
244 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
245 --sharedstatedir=DIR modifiable architecture-independent data in DIR
247 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
248 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
249 --includedir=DIR C header files in DIR [PREFIX/include]
250 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
251 --infodir=DIR info documentation in DIR [PREFIX/info]
252 --mandir=DIR man documentation in DIR [PREFIX/man]
253 --srcdir=DIR find the sources in DIR [configure dir or ..]
254 --program-prefix=PREFIX prepend PREFIX to installed program names
255 --program-suffix=SUFFIX append SUFFIX to installed program names
256 --program-transform-name=PROGRAM
257 run sed PROGRAM on installed program names
261 --build=BUILD configure for building on BUILD [BUILD=HOST]
262 --host=HOST configure for HOST [guessed]
263 --target=TARGET configure for TARGET [TARGET=HOST]
264 Features and packages:
265 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
266 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
267 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
268 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
269 --x-includes=DIR X include files are in DIR
270 --x-libraries=DIR X library files are in DIR
272 if test -n "$ac_help"; then
273 echo "--enable and --with options recognized:$ac_help"
277 -host | --host | --hos | --ho)
279 -host=* | --host=* | --hos=* | --ho=*)
282 -includedir | --includedir | --includedi | --included | --include \
283 | --includ | --inclu | --incl | --inc)
284 ac_prev
=includedir
;;
285 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
286 | --includ=* | --inclu=* | --incl=* | --inc=*)
287 includedir
="$ac_optarg" ;;
289 -infodir | --infodir | --infodi | --infod | --info | --inf)
291 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
292 infodir
="$ac_optarg" ;;
294 -libdir | --libdir | --libdi | --libd)
296 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 libdir
="$ac_optarg" ;;
299 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
300 | --libexe | --libex | --libe)
301 ac_prev
=libexecdir
;;
302 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
303 | --libexe=* | --libex=* | --libe=*)
304 libexecdir
="$ac_optarg" ;;
306 -localstatedir | --localstatedir | --localstatedi | --localstated \
307 | --localstate | --localstat | --localsta | --localst \
308 | --locals | --local | --loca | --loc | --lo)
309 ac_prev
=localstatedir
;;
310 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
311 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
312 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
313 localstatedir
="$ac_optarg" ;;
315 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
317 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318 mandir
="$ac_optarg" ;;
321 # Obsolete; use --without-fp.
324 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
328 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
329 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
332 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
333 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
334 | --oldin | --oldi | --old | --ol | --o)
335 ac_prev
=oldincludedir
;;
336 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
337 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
338 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
339 oldincludedir
="$ac_optarg" ;;
341 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
343 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 prefix
="$ac_optarg" ;;
346 -program-prefix | --program-prefix | --program-prefi | --program-pref \
347 | --program-pre | --program-pr | --program-p)
348 ac_prev
=program_prefix
;;
349 -program-prefix=* | --program-prefix=* | --program-prefi=* \
350 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
351 program_prefix
="$ac_optarg" ;;
353 -program-suffix | --program-suffix | --program-suffi | --program-suff \
354 | --program-suf | --program-su | --program-s)
355 ac_prev
=program_suffix
;;
356 -program-suffix=* | --program-suffix=* | --program-suffi=* \
357 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
358 program_suffix
="$ac_optarg" ;;
360 -program-transform-name | --program-transform-name \
361 | --program-transform-nam | --program-transform-na \
362 | --program-transform-n | --program-transform- \
363 | --program-transform | --program-transfor \
364 | --program-transfo | --program-transf \
365 | --program-trans | --program-tran \
366 | --progr-tra | --program-tr | --program-t)
367 ac_prev
=program_transform_name
;;
368 -program-transform-name=* | --program-transform-name=* \
369 | --program-transform-nam=* | --program-transform-na=* \
370 | --program-transform-n=* | --program-transform-=* \
371 | --program-transform=* | --program-transfor=* \
372 | --program-transfo=* | --program-transf=* \
373 | --program-trans=* | --program-tran=* \
374 | --progr-tra=* | --program-tr=* | --program-t=*)
375 program_transform_name
="$ac_optarg" ;;
377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
378 | -silent | --silent | --silen | --sile | --sil)
381 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
383 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
385 sbindir
="$ac_optarg" ;;
387 -sharedstatedir | --sharedstatedir | --sharedstatedi \
388 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
389 | --sharedst | --shareds | --shared | --share | --shar \
391 ac_prev
=sharedstatedir
;;
392 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
393 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
394 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
396 sharedstatedir
="$ac_optarg" ;;
398 -site | --site | --sit)
400 -site=* | --site=* | --sit=*)
403 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
405 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 srcdir
="$ac_optarg" ;;
408 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
409 | --syscon | --sysco | --sysc | --sys | --sy)
410 ac_prev
=sysconfdir
;;
411 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
412 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
413 sysconfdir
="$ac_optarg" ;;
415 -target | --target | --targe | --targ | --tar | --ta | --t)
417 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
418 target
="$ac_optarg" ;;
420 -v | -verbose | --verbose | --verbos | --verbo | --verb)
423 -version | --version | --versio | --versi | --vers)
424 echo "configure generated by autoconf version 2.13"
428 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package
=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}='$ac_optarg'" ;;
440 -without-* | --without-*)
441 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
442 # Reject names that are not valid shell variable names.
443 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
444 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
446 ac_package
=`echo $ac_package| sed 's/-/_/g'`
447 eval "with_${ac_package}=no" ;;
450 # Obsolete; use --with-x.
453 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
454 | --x-incl | --x-inc | --x-in | --x-i)
455 ac_prev
=x_includes
;;
456 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
457 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
458 x_includes
="$ac_optarg" ;;
460 -x-libraries | --x-libraries | --x-librarie | --x-librari \
461 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
462 ac_prev
=x_libraries
;;
463 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
464 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
465 x_libraries
="$ac_optarg" ;;
467 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
471 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
472 echo "configure: warning: $ac_option: invalid host type" 1>&2
474 if test "x$nonopt" != xNONE
; then
475 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
483 if test -n "$ac_prev"; then
484 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
487 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
489 # File descriptor usage:
492 # 2 errors and warnings
493 # 3 some systems may open it to /dev/tty
494 # 4 used on the Kubota Titan
495 # 6 checking for... messages and results
496 # 5 compiler messages saved in config.log
497 if test "$silent" = yes; then
505 This file contains any messages produced by compilers while
506 running configure, to aid debugging if configure makes a mistake.
509 # Strip out --no-create and --no-recursion so they do not pile up.
510 # Also quote any args containing shell metacharacters.
515 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
516 | --no-cr | --no-c) ;;
517 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
518 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
519 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
520 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
521 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
526 # Only set these to C if already set. These must not be set unconditionally
527 # because not all systems understand e.g. LANG=C (notably SCO).
528 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
529 # Non-C LC_CTYPE values break the ctype check.
530 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
531 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
532 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
533 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
535 # confdefs.h avoids OS command line length limits that DEFS can exceed.
536 rm -rf conftest
* confdefs.h
537 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
540 # A filename unique to this package, relative to the directory that
541 # configure is in, which we can look for to find out if srcdir is correct.
542 ac_unique_file
=configure.
in
544 # Find the source files, if location was not specified.
545 if test -z "$srcdir"; then
546 ac_srcdir_defaulted
=yes
547 # Try the directory containing this script, then its parent.
549 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
550 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
552 if test ! -r $srcdir/$ac_unique_file; then
556 ac_srcdir_defaulted
=no
558 if test ! -r $srcdir/$ac_unique_file; then
559 if test "$ac_srcdir_defaulted" = yes; then
560 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
562 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
565 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
567 # Prefer explicitly selected file to automatically selected ones.
568 if test -z "$CONFIG_SITE"; then
569 if test "x$prefix" != xNONE
; then
570 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
572 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
575 for ac_site_file
in $CONFIG_SITE; do
576 if test -r "$ac_site_file"; then
577 echo "loading site script $ac_site_file"
582 if test -r "$cache_file"; then
583 echo "loading cache $cache_file"
586 echo "creating cache $cache_file"
591 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
592 ac_cpp
='$CPP $CPPFLAGS'
593 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
594 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
595 cross_compiling
=$ac_cv_prog_cc_cross
599 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
600 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
601 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
608 ac_n
= ac_c
='\c' ac_t
=
616 if test "x$OS" = "x"; then
618 { echo "configure: error: "The system variable OS has not been
set"
619 "please
set is everytime befor compiling on this system
"
620 "A good example
for this system would be
:"
621 "setenv OSTYPE
$UNAME for csh as a SHELL
"
622 "EXPORT OSTYPE
=$UNAME for sh as SHELL
"
623 "please
set this and restart again.
"
633 /usr/Motif-1.2/include \
634 /usr/Motif-2.1/include \
636 /usr/include/Motif1.2 \
637 /opt/xpm/include/X11 \
639 /usr/Motif1.2/include \
655 /usr/local/X11R6/include \
656 /usr/local/X11R5/include \
657 /usr/local/X11R4/include \
659 /usr/local/include/X11R6 \
660 /usr/local/include/X11R5 \
661 /usr/local/include/X11R4 \
665 /usr/local/X11/include \
666 /usr/local/include/X11 \
670 /usr/XFree86/include/X11 \
677 /usr/unsupported/include \
678 /usr/athena/include \
679 /usr/local/x11r5/include \
680 /usr/lpp/Xamples/include \
682 /usr/local/include/gtk \
683 /usr/local/include/qt \
686 /usr/openwin/include \
687 /usr/openwin/share/include \
690 SEARCH_LIB
="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
694 # Extract the first word of "gcc", so it can be a program name with args.
695 set dummy gcc
; ac_word
=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 echo "configure:698: checking for $ac_word" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
701 if test -n "$CC"; then
702 ac_cv_prog_CC
="$CC" # Let the user override the test.
704 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
706 for ac_dir
in $ac_dummy; do
707 test -z "$ac_dir" && ac_dir
=.
708 if test -f $ac_dir/$ac_word; then
717 if test -n "$CC"; then
718 echo "$ac_t""$CC" 1>&6
720 echo "$ac_t""no" 1>&6
723 if test -z "$CC"; then
724 # Extract the first word of "cc", so it can be a program name with args.
725 set dummy cc
; ac_word
=$2
726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
727 echo "configure:728: checking for $ac_word" >&5
728 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 if test -n "$CC"; then
732 ac_cv_prog_CC
="$CC" # Let the user override the test.
734 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
737 for ac_dir
in $ac_dummy; do
738 test -z "$ac_dir" && ac_dir
=.
739 if test -f $ac_dir/$ac_word; then
740 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
749 if test $ac_prog_rejected = yes; then
750 # We found a bogon in the path, so make sure we never use it.
751 set dummy
$ac_cv_prog_CC
753 if test $# -gt 0; then
754 # We chose a different compiler from the bogus one.
755 # However, it has the same basename, so the bogon will be chosen
756 # first if we set CC to just the basename; use the full file name.
758 set dummy
"$ac_dir/$ac_word" "$@"
766 if test -n "$CC"; then
767 echo "$ac_t""$CC" 1>&6
769 echo "$ac_t""no" 1>&6
772 if test -z "$CC"; then
775 # Extract the first word of "cl", so it can be a program name with args.
776 set dummy cl
; ac_word
=$2
777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
778 echo "configure:779: checking for $ac_word" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 if test -n "$CC"; then
783 ac_cv_prog_CC
="$CC" # Let the user override the test.
785 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
787 for ac_dir
in $ac_dummy; do
788 test -z "$ac_dir" && ac_dir
=.
789 if test -f $ac_dir/$ac_word; then
798 if test -n "$CC"; then
799 echo "$ac_t""$CC" 1>&6
801 echo "$ac_t""no" 1>&6
806 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
809 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
810 echo "configure:811: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
813 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
814 ac_cpp
='$CPP $CPPFLAGS'
815 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
816 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
817 cross_compiling
=$ac_cv_prog_cc_cross
819 cat > conftest.
$ac_ext << EOF
821 #line 822 "configure"
822 #include "confdefs.h"
826 if { (eval echo configure
:827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
827 ac_cv_prog_cc_works
=yes
828 # If we can't run a trivial program, we are probably using a cross compiler.
829 if (.
/conftest
; exit) 2>/dev
/null
; then
830 ac_cv_prog_cc_cross
=no
832 ac_cv_prog_cc_cross
=yes
835 echo "configure: failed program was:" >&5
836 cat conftest.
$ac_ext >&5
837 ac_cv_prog_cc_works
=no
841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
842 ac_cpp
='$CPP $CPPFLAGS'
843 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
844 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
845 cross_compiling
=$ac_cv_prog_cc_cross
847 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
848 if test $ac_cv_prog_cc_works = no
; then
849 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
851 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
852 echo "configure:853: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
853 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
854 cross_compiling
=$ac_cv_prog_cc_cross
856 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
857 echo "configure:858: checking whether we are using GNU C" >&5
858 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 cat > conftest.c
<<EOF
866 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
873 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
875 if test $ac_cv_prog_gcc = yes; then
881 ac_test_CFLAGS
="${CFLAGS+set}"
882 ac_save_CFLAGS
="$CFLAGS"
884 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
885 echo "configure:886: checking whether ${CC-cc} accepts -g" >&5
886 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
889 echo 'void f(){}' > conftest.c
890 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
899 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
900 if test "$ac_test_CFLAGS" = set; then
901 CFLAGS
="$ac_save_CFLAGS"
902 elif test $ac_cv_prog_cc_g = yes; then
903 if test "$GCC" = yes; then
909 if test "$GCC" = yes; then
917 CFLAGS
=`echo "$CFLAGS" | sed 's/-g//g'`
919 if test "x$CC" != xcc
; then
920 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
921 echo "configure:922: checking whether $CC and cc understand -c and -o together" >&5
923 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
924 echo "configure:925: checking whether cc understands -c and -o together" >&5
926 set dummy
$CC; ac_cc
="`echo $2 |
927 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
928 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
931 echo 'foo(){}' > conftest.c
932 # Make sure it works both with $CC and with simple cc.
933 # We do the test twice because some compilers refuse to overwrite an
934 # existing .o file with -o, though they will create one.
935 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
936 if { (eval echo configure
:937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
937 test -f conftest.o
&& { (eval echo configure
:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
939 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
940 if test "x$CC" != xcc
; then
941 # Test first that cc exists at all.
942 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
943 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
944 if { (eval echo configure
:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
945 test -f conftest.o
&& { (eval echo configure
:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
950 # cc exists but doesn't like -o.
951 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
956 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
961 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
962 echo "$ac_t""yes" 1>&6
964 echo "$ac_t""no" 1>&6
965 cat >> confdefs.h
<<\EOF
966 #define NO_MINUS_C_MINUS_O 1
971 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
972 echo "configure:973: checking how to run the C preprocessor" >&5
973 # On Suns, sometimes $CPP names a directory.
974 if test -n "$CPP" && test -d "$CPP"; then
977 if test -z "$CPP"; then
978 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
981 # This must be in double quotes, not single quotes, because CPP may get
982 # substituted into the Makefile and "${CC-cc}" will confuse make.
984 # On the NeXT, cc -E runs the code through the compiler's parser,
985 # not just through cpp.
986 cat > conftest.
$ac_ext <<EOF
987 #line 988 "configure"
988 #include "confdefs.h"
992 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
993 { (eval echo configure
:994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
994 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
995 if test -z "$ac_err"; then
999 echo "configure: failed program was:" >&5
1000 cat conftest.
$ac_ext >&5
1002 CPP
="${CC-cc} -E -traditional-cpp"
1003 cat > conftest.
$ac_ext <<EOF
1004 #line 1005 "configure"
1005 #include "confdefs.h"
1009 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1010 { (eval echo configure
:1011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1011 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1012 if test -z "$ac_err"; then
1016 echo "configure: failed program was:" >&5
1017 cat conftest.
$ac_ext >&5
1019 CPP
="${CC-cc} -nologo -E"
1020 cat > conftest.
$ac_ext <<EOF
1021 #line 1022 "configure"
1022 #include "confdefs.h"
1026 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1027 { (eval echo configure
:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1028 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1029 if test -z "$ac_err"; then
1033 echo "configure: failed program was:" >&5
1034 cat conftest.
$ac_ext >&5
1043 ac_cv_prog_CPP
="$CPP"
1045 CPP
="$ac_cv_prog_CPP"
1047 ac_cv_prog_CPP
="$CPP"
1049 echo "$ac_t""$CPP" 1>&6
1051 if test $ac_cv_prog_gcc = yes; then
1052 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1053 echo "configure:1054: checking whether ${CC-cc} needs -traditional" >&5
1054 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1055 echo $ac_n "(cached) $ac_c" 1>&6
1057 ac_pattern
="Autoconf.*'x'"
1058 cat > conftest.
$ac_ext <<EOF
1059 #line 1060 "configure"
1060 #include "confdefs.h"
1064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1065 egrep "$ac_pattern" >/dev
/null
2>&1; then
1067 ac_cv_prog_gcc_traditional
=yes
1070 ac_cv_prog_gcc_traditional
=no
1075 if test $ac_cv_prog_gcc_traditional = no
; then
1076 cat > conftest.
$ac_ext <<EOF
1077 #line 1078 "configure"
1078 #include "confdefs.h"
1082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1083 egrep "$ac_pattern" >/dev
/null
2>&1; then
1085 ac_cv_prog_gcc_traditional
=yes
1092 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1093 if test $ac_cv_prog_gcc_traditional = yes; then
1094 CC
="$CC -traditional"
1101 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1103 # Extract the first word of "$ac_prog", so it can be a program name with args.
1104 set dummy
$ac_prog; ac_word
=$2
1105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106 echo "configure:1107: checking for $ac_word" >&5
1107 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 if test -n "$CXX"; then
1111 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1113 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1115 for ac_dir
in $ac_dummy; do
1116 test -z "$ac_dir" && ac_dir
=.
1117 if test -f $ac_dir/$ac_word; then
1118 ac_cv_prog_CXX
="$ac_prog"
1125 CXX
="$ac_cv_prog_CXX"
1126 if test -n "$CXX"; then
1127 echo "$ac_t""$CXX" 1>&6
1129 echo "$ac_t""no" 1>&6
1132 test -n "$CXX" && break
1134 test -n "$CXX" || CXX
="gcc"
1137 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1142 ac_cpp
='$CXXCPP $CPPFLAGS'
1143 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1144 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1145 cross_compiling
=$ac_cv_prog_cxx_cross
1147 cat > conftest.
$ac_ext << EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1152 int main(){return(0);}
1154 if { (eval echo configure
:1155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1155 ac_cv_prog_cxx_works
=yes
1156 # If we can't run a trivial program, we are probably using a cross compiler.
1157 if (.
/conftest
; exit) 2>/dev
/null
; then
1158 ac_cv_prog_cxx_cross
=no
1160 ac_cv_prog_cxx_cross
=yes
1163 echo "configure: failed program was:" >&5
1164 cat conftest.
$ac_ext >&5
1165 ac_cv_prog_cxx_works
=no
1169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1170 ac_cpp
='$CPP $CPPFLAGS'
1171 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1172 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1173 cross_compiling
=$ac_cv_prog_cc_cross
1175 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1176 if test $ac_cv_prog_cxx_works = no
; then
1177 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1179 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1181 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1182 cross_compiling
=$ac_cv_prog_cxx_cross
1184 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether we are using GNU C++" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 cat > conftest.C
<<EOF
1194 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
1201 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1203 if test $ac_cv_prog_gxx = yes; then
1209 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1210 ac_save_CXXFLAGS
="$CXXFLAGS"
1212 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether ${CXX-g++} accepts -g" >&5
1214 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 echo 'void f(){}' > conftest.cc
1218 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1219 ac_cv_prog_cxx_g
=yes
1227 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1228 if test "$ac_test_CXXFLAGS" = set; then
1229 CXXFLAGS
="$ac_save_CXXFLAGS"
1230 elif test $ac_cv_prog_cxx_g = yes; then
1231 if test "$GXX" = yes; then
1237 if test "$GXX" = yes; then
1244 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1245 echo "configure:1246: checking how to run the C++ preprocessor" >&5
1246 if test -z "$CXXCPP"; then
1247 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1251 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1252 ac_cpp
='$CXXCPP $CPPFLAGS'
1253 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1254 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1255 cross_compiling
=$ac_cv_prog_cxx_cross
1256 CXXCPP
="${CXX-g++} -E"
1257 cat > conftest.
$ac_ext <<EOF
1258 #line 1259 "configure"
1259 #include "confdefs.h"
1262 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1263 { (eval echo configure
:1264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1264 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1265 if test -z "$ac_err"; then
1269 echo "configure: failed program was:" >&5
1270 cat conftest.
$ac_ext >&5
1275 ac_cv_prog_CXXCPP
="$CXXCPP"
1277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1278 ac_cpp
='$CPP $CPPFLAGS'
1279 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1280 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1281 cross_compiling
=$ac_cv_prog_cc_cross
1284 CXXCPP
="$ac_cv_prog_CXXCPP"
1285 echo "$ac_t""$CXXCPP" 1>&6
1288 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-g//g'`
1291 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1292 ac_cpp
='$CPP $CPPFLAGS'
1293 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1294 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1295 cross_compiling
=$ac_cv_prog_cc_cross
1298 # Extract the first word of "ranlib", so it can be a program name with args.
1299 set dummy ranlib
; ac_word
=$2
1300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1301 echo "configure:1302: checking for $ac_word" >&5
1302 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 if test -n "$RANLIB"; then
1306 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1308 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1310 for ac_dir
in $ac_dummy; do
1311 test -z "$ac_dir" && ac_dir
=.
1312 if test -f $ac_dir/$ac_word; then
1313 ac_cv_prog_RANLIB
="ranlib"
1318 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1321 RANLIB
="$ac_cv_prog_RANLIB"
1322 if test -n "$RANLIB"; then
1323 echo "$ac_t""$RANLIB" 1>&6
1325 echo "$ac_t""no" 1>&6
1329 # Extract the first word of "ar", so it can be a program name with args.
1330 set dummy
ar; ac_word
=$2
1331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1332 echo "configure:1333: checking for $ac_word" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 if test -n "$AR"; then
1337 ac_cv_prog_AR
="$AR" # Let the user override the test.
1339 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1341 for ac_dir
in $ac_dummy; do
1342 test -z "$ac_dir" && ac_dir
=.
1343 if test -f $ac_dir/$ac_word; then
1349 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1353 if test -n "$AR"; then
1354 echo "$ac_t""$AR" 1>&6
1356 echo "$ac_t""no" 1>&6
1361 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1362 if test -f $ac_dir/install-sh; then
1364 ac_install_sh
="$ac_aux_dir/install-sh -c"
1366 elif test -f $ac_dir/install.sh
; then
1368 ac_install_sh
="$ac_aux_dir/install.sh -c"
1372 if test -z "$ac_aux_dir"; then
1373 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1375 ac_config_guess
=$ac_aux_dir/config.guess
1376 ac_config_sub
=$ac_aux_dir/config.sub
1377 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1379 # Find a good install program. We prefer a C program (faster),
1380 # so one script is as good as another. But avoid the broken or
1381 # incompatible versions:
1382 # SysV /etc/install, /usr/sbin/install
1383 # SunOS /usr/etc/install
1384 # IRIX /sbin/install
1386 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1387 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1388 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1389 # ./install, which can be erroneously created by make from ./install.sh.
1390 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1391 echo "configure:1392: checking for a BSD compatible install" >&5
1392 if test -z "$INSTALL"; then
1393 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1397 for ac_dir
in $PATH; do
1398 # Account for people who put trailing slashes in PATH elements.
1400 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1402 # OSF1 and SCO ODT 3.0 have their own names for install.
1403 # Don't use installbsd from OSF since it installs stuff as root
1405 for ac_prog
in ginstall scoinst
install; do
1406 if test -f $ac_dir/$ac_prog; then
1407 if test $ac_prog = install &&
1408 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1409 # AIX install. It has an incompatible calling convention.
1412 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1423 if test "${ac_cv_path_install+set}" = set; then
1424 INSTALL
="$ac_cv_path_install"
1426 # As a last resort, use the slow shell script. We don't cache a
1427 # path for INSTALL within a source directory, because that will
1428 # break other packages using the cache if that directory is
1429 # removed, or if the path is relative.
1430 INSTALL
="$ac_install_sh"
1433 echo "$ac_t""$INSTALL" 1>&6
1435 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1436 # It thinks the first close brace ends the variable substitution.
1437 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1439 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1441 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1444 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1445 echo "configure:1446: checking whether ln -s works" >&5
1446 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1450 if ln -s X conftestdata
2>/dev
/null
1453 ac_cv_prog_LN_S
="ln -s"
1458 LN_S
="$ac_cv_prog_LN_S"
1459 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1460 echo "$ac_t""yes" 1>&6
1462 echo "$ac_t""no" 1>&6
1466 for ac_prog
in mawk gawk nawk
awk
1468 # Extract the first word of "$ac_prog", so it can be a program name with args.
1469 set dummy
$ac_prog; ac_word
=$2
1470 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1471 echo "configure:1472: checking for $ac_word" >&5
1472 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 if test -n "$AWK"; then
1476 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1478 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1480 for ac_dir
in $ac_dummy; do
1481 test -z "$ac_dir" && ac_dir
=.
1482 if test -f $ac_dir/$ac_word; then
1483 ac_cv_prog_AWK
="$ac_prog"
1490 AWK
="$ac_cv_prog_AWK"
1491 if test -n "$AWK"; then
1492 echo "$ac_t""$AWK" 1>&6
1494 echo "$ac_t""no" 1>&6
1497 test -n "$AWK" && break
1501 echo $ac_n "checking "make for VPATH support
"""... $ac_c" 1>&6
1502 echo "configure:1503: checking "make for VPATH support
"" >&5
1503 cat - << EOF > confMake
1509 if test ! -d sub
; then
1512 echo dummy
> sub
/file
1513 ${MAKE-make} -f confMake VPATH
=sub
2> config.log
> /dev
/null
1515 rm -f sub
/file check final_file confMake
1517 if test "$RESULT" = 0; then
1518 echo "$ac_t""yes" 1>&6
1520 echo "$ac_t""no" 1>&6
1521 { echo "configure: error: You need a make-utility that is able to use the variable
1523 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
1527 # If we find X, set shell vars x_includes and x_libraries to the
1528 # paths, otherwise set no_x=yes.
1529 # Uses ac_ vars as temps to allow command line to override cache and checks.
1530 # --without-x overrides everything else, but does not touch the cache.
1531 echo $ac_n "checking for X""... $ac_c" 1>&6
1532 echo "configure:1533: checking for X" >&5
1534 # Check whether --with-x or --without-x was given.
1535 if test "${with_x+set}" = set; then
1540 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1541 if test "x$with_x" = xno
; then
1542 # The user explicitly disabled X.
1545 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1546 # Both variables are already set.
1549 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1552 # One or both of the vars are not set, and there is no cached value.
1553 ac_x_includes
=NO ac_x_libraries
=NO
1555 if mkdir conftestdir
; then
1557 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1558 cat > Imakefile
<<'EOF'
1560 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1562 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1563 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1564 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1565 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1566 for ac_extension
in a so sl
; do
1567 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1568 test -f $ac_im_libdir/libX11.
$ac_extension; then
1569 ac_im_usrlibdir
=$ac_im_libdir; break
1572 # Screen out bogus values from the imake configuration. They are
1573 # bogus both because they are the default anyway, and because
1574 # using them would break gcc on systems where it needs fixed includes.
1575 case "$ac_im_incroot" in
1577 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1579 case "$ac_im_usrlibdir" in
1581 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1588 if test "$ac_x_includes" = NO
; then
1589 # Guess where to find include files, by looking for this one X11 .h file.
1590 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1592 # First, try using that file with no special directory specified.
1593 cat > conftest.
$ac_ext <<EOF
1594 #line 1595 "configure"
1595 #include "confdefs.h"
1596 #include <$x_direct_test_include>
1598 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1599 { (eval echo configure
:1600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1600 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1601 if test -z "$ac_err"; then
1603 # We can compile using X headers with no special include directory.
1607 echo "configure: failed program was:" >&5
1608 cat conftest.
$ac_ext >&5
1610 # Look for the header file in a standard set of common directories.
1611 # Check X11 before X11Rn because it is often a symlink to the current release.
1614 /usr
/X
11R
6/include \
1615 /usr
/X
11R
5/include \
1616 /usr
/X
11R
4/include \
1619 /usr
/include
/X11R6 \
1620 /usr
/include
/X11R5 \
1621 /usr
/include
/X11R4 \
1623 /usr
/local
/X
11/include \
1624 /usr
/local
/X
11R
6/include \
1625 /usr
/local
/X
11R
5/include \
1626 /usr
/local
/X
11R
4/include \
1628 /usr
/local
/include
/X11 \
1629 /usr
/local
/include
/X11R6 \
1630 /usr
/local
/include
/X11R5 \
1631 /usr
/local
/include
/X11R4 \
1635 /usr
/XFree
86/include
/X11 \
1638 /usr
/local
/include \
1639 /usr
/unsupported
/include \
1640 /usr
/athena
/include \
1641 /usr
/local
/x
11r
5/include \
1642 /usr
/lpp
/Xamples
/include \
1644 /usr
/openwin
/include \
1645 /usr
/openwin
/share
/include \
1648 if test -r "$ac_dir/$x_direct_test_include"; then
1649 ac_x_includes
=$ac_dir
1655 fi # $ac_x_includes = NO
1657 if test "$ac_x_libraries" = NO
; then
1658 # Check for the libraries.
1660 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1661 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1663 # See if we find them without any special options.
1664 # Don't add to $LIBS permanently.
1665 ac_save_LIBS
="$LIBS"
1666 LIBS
="-l$x_direct_test_library $LIBS"
1667 cat > conftest.
$ac_ext <<EOF
1668 #line 1669 "configure"
1669 #include "confdefs.h"
1672 ${x_direct_test_function}()
1675 if { (eval echo configure
:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1677 LIBS
="$ac_save_LIBS"
1678 # We can link X programs with no special library path.
1681 echo "configure: failed program was:" >&5
1682 cat conftest.
$ac_ext >&5
1684 LIBS
="$ac_save_LIBS"
1685 # First see if replacing the include by lib works.
1686 # Check X11 before X11Rn because it is often a symlink to the current release.
1687 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1698 /usr
/local
/X
11/lib \
1699 /usr
/local
/X
11R
6/lib \
1700 /usr
/local
/X
11R
5/lib \
1701 /usr
/local
/X
11R
4/lib \
1703 /usr
/local
/lib
/X11 \
1704 /usr
/local
/lib
/X11R6 \
1705 /usr
/local
/lib
/X11R5 \
1706 /usr
/local
/lib
/X11R4 \
1710 /usr
/XFree
86/lib
/X11 \
1714 /usr
/unsupported
/lib \
1716 /usr
/local
/x
11r
5/lib \
1717 /usr
/lpp
/Xamples
/lib \
1721 /usr
/openwin
/share
/lib \
1724 for ac_extension
in a so sl
; do
1725 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1726 ac_x_libraries
=$ac_dir
1733 fi # $ac_x_libraries = NO
1735 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
1736 # Didn't find X anywhere. Cache the known absence of X.
1737 ac_cv_have_x
="have_x=no"
1739 # Record where we found X for the cache.
1740 ac_cv_have_x
="have_x=yes \
1741 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1745 eval "$ac_cv_have_x"
1748 if test "$have_x" != yes; then
1749 echo "$ac_t""$have_x" 1>&6
1752 # If each of the values was on the command line, it overrides each guess.
1753 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1754 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1755 # Update the cache value to reflect the command line values.
1756 ac_cv_have_x
="have_x=yes \
1757 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1758 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1761 if test "$no_x" = yes; then
1762 # Not all programs may use this symbol, but it does not hurt to define it.
1763 cat >> confdefs.h
<<\EOF
1764 #define X_DISPLAY_MISSING 1
1767 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1769 if test -n "$x_includes"; then
1770 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1773 # It would also be nice to do this for all -L options, not just this one.
1774 if test -n "$x_libraries"; then
1775 X_LIBS
="$X_LIBS -L$x_libraries"
1776 # For Solaris; some versions of Sun CC require a space after -R and
1777 # others require no space. Words are not sufficient . . . .
1778 case "`(uname -sr) 2>/dev/null`" in
1780 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1781 echo "configure:1782: checking whether -R must be followed by a space" >&5
1782 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1783 cat > conftest.
$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1791 if { (eval echo configure
:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1795 echo "configure: failed program was:" >&5
1796 cat conftest.
$ac_ext >&5
1801 if test $ac_R_nospace = yes; then
1802 echo "$ac_t""no" 1>&6
1803 X_LIBS
="$X_LIBS -R$x_libraries"
1805 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1806 cat > conftest.
$ac_ext <<EOF
1807 #line 1808 "configure"
1808 #include "confdefs.h"
1814 if { (eval echo configure
:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1818 echo "configure: failed program was:" >&5
1819 cat conftest.
$ac_ext >&5
1824 if test $ac_R_space = yes; then
1825 echo "$ac_t""yes" 1>&6
1826 X_LIBS
="$X_LIBS -R $x_libraries"
1828 echo "$ac_t""neither works" 1>&6
1831 LIBS
="$ac_xsave_LIBS"
1835 # Check for system-dependent libraries X programs must link with.
1836 # Do this before checking for the system-independent R6 libraries
1837 # (-lICE), since we may need -lsocket or whatever for X linking.
1839 if test "$ISC" = yes; then
1840 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1842 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1843 # libraries were built with DECnet support. And karl@cs.umb.edu says
1844 # the Alpha needs dnet_stub (dnet does not exist).
1845 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1846 echo "configure:1847: checking for dnet_ntoa in -ldnet" >&5
1847 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1851 ac_save_LIBS
="$LIBS"
1853 cat > conftest.
$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1856 /* Override any gcc2 internal prototype to avoid an error. */
1857 /* We use char because int might match the return type of a gcc2
1858 builtin and then its argument prototype would still apply. */
1865 if { (eval echo configure
:1866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1867 eval "ac_cv_lib_$ac_lib_var=yes"
1869 echo "configure: failed program was:" >&5
1870 cat conftest.
$ac_ext >&5
1872 eval "ac_cv_lib_$ac_lib_var=no"
1875 LIBS
="$ac_save_LIBS"
1878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1879 echo "$ac_t""yes" 1>&6
1880 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1882 echo "$ac_t""no" 1>&6
1885 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1886 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1887 echo "configure:1888: checking for dnet_ntoa in -ldnet_stub" >&5
1888 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1892 ac_save_LIBS
="$LIBS"
1893 LIBS
="-ldnet_stub $LIBS"
1894 cat > conftest.
$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1897 /* Override any gcc2 internal prototype to avoid an error. */
1898 /* We use char because int might match the return type of a gcc2
1899 builtin and then its argument prototype would still apply. */
1906 if { (eval echo configure
:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1908 eval "ac_cv_lib_$ac_lib_var=yes"
1910 echo "configure: failed program was:" >&5
1911 cat conftest.
$ac_ext >&5
1913 eval "ac_cv_lib_$ac_lib_var=no"
1916 LIBS
="$ac_save_LIBS"
1919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1920 echo "$ac_t""yes" 1>&6
1921 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1923 echo "$ac_t""no" 1>&6
1928 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1929 # to get the SysV transport functions.
1930 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1932 # The nsl library prevents programs from opening the X display
1933 # on Irix 5.2, according to dickey@clark.net.
1934 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1935 echo "configure:1936: checking for gethostbyname" >&5
1936 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1937 echo $ac_n "(cached) $ac_c" 1>&6
1939 cat > conftest.
$ac_ext <<EOF
1940 #line 1941 "configure"
1941 #include "confdefs.h"
1942 /* System header to define __stub macros and hopefully few prototypes,
1943 which can conflict with char gethostbyname(); below. */
1945 /* Override any gcc2 internal prototype to avoid an error. */
1946 /* We use char because int might match the return type of a gcc2
1947 builtin and then its argument prototype would still apply. */
1948 char gethostbyname();
1952 /* The GNU C library defines this for functions which it implements
1953 to always fail with ENOSYS. Some functions are actually named
1954 something starting with __ and the normal name is an alias. */
1955 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1963 if { (eval echo configure
:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1965 eval "ac_cv_func_gethostbyname=yes"
1967 echo "configure: failed program was:" >&5
1968 cat conftest.
$ac_ext >&5
1970 eval "ac_cv_func_gethostbyname=no"
1975 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1979 echo "$ac_t""no" 1>&6
1982 if test $ac_cv_func_gethostbyname = no
; then
1983 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1984 echo "configure:1985: checking for gethostbyname in -lnsl" >&5
1985 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1989 ac_save_LIBS
="$LIBS"
1991 cat > conftest.
$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1994 /* Override any gcc2 internal prototype to avoid an error. */
1995 /* We use char because int might match the return type of a gcc2
1996 builtin and then its argument prototype would still apply. */
1997 char gethostbyname();
2003 if { (eval echo configure
:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2005 eval "ac_cv_lib_$ac_lib_var=yes"
2007 echo "configure: failed program was:" >&5
2008 cat conftest.
$ac_ext >&5
2010 eval "ac_cv_lib_$ac_lib_var=no"
2013 LIBS
="$ac_save_LIBS"
2016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2017 echo "$ac_t""yes" 1>&6
2018 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2020 echo "$ac_t""no" 1>&6
2025 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2026 # socket/setsockopt and other routines are undefined under SCO ODT
2027 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2028 # on later versions), says simon@lia.di.epfl.ch: it contains
2029 # gethostby* variants that don't use the nameserver (or something).
2030 # -lsocket must be given before -lnsl if both are needed.
2031 # We assume that if connect needs -lnsl, so does gethostbyname.
2032 echo $ac_n "checking for connect""... $ac_c" 1>&6
2033 echo "configure:2034: checking for connect" >&5
2034 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 cat > conftest.
$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2040 /* System header to define __stub macros and hopefully few prototypes,
2041 which can conflict with char connect(); below. */
2043 /* Override any gcc2 internal prototype to avoid an error. */
2044 /* We use char because int might match the return type of a gcc2
2045 builtin and then its argument prototype would still apply. */
2050 /* The GNU C library defines this for functions which it implements
2051 to always fail with ENOSYS. Some functions are actually named
2052 something starting with __ and the normal name is an alias. */
2053 #if defined (__stub_connect) || defined (__stub___connect)
2061 if { (eval echo configure
:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2063 eval "ac_cv_func_connect=yes"
2065 echo "configure: failed program was:" >&5
2066 cat conftest.
$ac_ext >&5
2068 eval "ac_cv_func_connect=no"
2073 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2074 echo "$ac_t""yes" 1>&6
2077 echo "$ac_t""no" 1>&6
2080 if test $ac_cv_func_connect = no
; then
2081 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2082 echo "configure:2083: checking for connect in -lsocket" >&5
2083 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 ac_save_LIBS
="$LIBS"
2088 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
2089 cat > conftest.
$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2092 /* Override any gcc2 internal prototype to avoid an error. */
2093 /* We use char because int might match the return type of a gcc2
2094 builtin and then its argument prototype would still apply. */
2101 if { (eval echo configure
:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2103 eval "ac_cv_lib_$ac_lib_var=yes"
2105 echo "configure: failed program was:" >&5
2106 cat conftest.
$ac_ext >&5
2108 eval "ac_cv_lib_$ac_lib_var=no"
2111 LIBS
="$ac_save_LIBS"
2114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2115 echo "$ac_t""yes" 1>&6
2116 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2118 echo "$ac_t""no" 1>&6
2123 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2124 echo $ac_n "checking for remove""... $ac_c" 1>&6
2125 echo "configure:2126: checking for remove" >&5
2126 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 cat > conftest.
$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 /* System header to define __stub macros and hopefully few prototypes,
2133 which can conflict with char remove(); below. */
2135 /* Override any gcc2 internal prototype to avoid an error. */
2136 /* We use char because int might match the return type of a gcc2
2137 builtin and then its argument prototype would still apply. */
2142 /* The GNU C library defines this for functions which it implements
2143 to always fail with ENOSYS. Some functions are actually named
2144 something starting with __ and the normal name is an alias. */
2145 #if defined (__stub_remove) || defined (__stub___remove)
2153 if { (eval echo configure
:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2155 eval "ac_cv_func_remove=yes"
2157 echo "configure: failed program was:" >&5
2158 cat conftest.
$ac_ext >&5
2160 eval "ac_cv_func_remove=no"
2165 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2166 echo "$ac_t""yes" 1>&6
2169 echo "$ac_t""no" 1>&6
2172 if test $ac_cv_func_remove = no
; then
2173 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2174 echo "configure:2175: checking for remove in -lposix" >&5
2175 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2179 ac_save_LIBS
="$LIBS"
2180 LIBS
="-lposix $LIBS"
2181 cat > conftest.
$ac_ext <<EOF
2182 #line 2183 "configure"
2183 #include "confdefs.h"
2184 /* Override any gcc2 internal prototype to avoid an error. */
2185 /* We use char because int might match the return type of a gcc2
2186 builtin and then its argument prototype would still apply. */
2193 if { (eval echo configure
:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2195 eval "ac_cv_lib_$ac_lib_var=yes"
2197 echo "configure: failed program was:" >&5
2198 cat conftest.
$ac_ext >&5
2200 eval "ac_cv_lib_$ac_lib_var=no"
2203 LIBS
="$ac_save_LIBS"
2206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2207 echo "$ac_t""yes" 1>&6
2208 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2210 echo "$ac_t""no" 1>&6
2215 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2216 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2217 echo "configure:2218: checking for shmat" >&5
2218 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 cat > conftest.
$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2224 /* System header to define __stub macros and hopefully few prototypes,
2225 which can conflict with char shmat(); below. */
2227 /* Override any gcc2 internal prototype to avoid an error. */
2228 /* We use char because int might match the return type of a gcc2
2229 builtin and then its argument prototype would still apply. */
2234 /* The GNU C library defines this for functions which it implements
2235 to always fail with ENOSYS. Some functions are actually named
2236 something starting with __ and the normal name is an alias. */
2237 #if defined (__stub_shmat) || defined (__stub___shmat)
2245 if { (eval echo configure
:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2247 eval "ac_cv_func_shmat=yes"
2249 echo "configure: failed program was:" >&5
2250 cat conftest.
$ac_ext >&5
2252 eval "ac_cv_func_shmat=no"
2257 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2258 echo "$ac_t""yes" 1>&6
2261 echo "$ac_t""no" 1>&6
2264 if test $ac_cv_func_shmat = no
; then
2265 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2266 echo "configure:2267: checking for shmat in -lipc" >&5
2267 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 ac_save_LIBS
="$LIBS"
2273 cat > conftest.
$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276 /* Override any gcc2 internal prototype to avoid an error. */
2277 /* We use char because int might match the return type of a gcc2
2278 builtin and then its argument prototype would still apply. */
2285 if { (eval echo configure
:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2287 eval "ac_cv_lib_$ac_lib_var=yes"
2289 echo "configure: failed program was:" >&5
2290 cat conftest.
$ac_ext >&5
2292 eval "ac_cv_lib_$ac_lib_var=no"
2295 LIBS
="$ac_save_LIBS"
2298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2300 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2302 echo "$ac_t""no" 1>&6
2308 # Check for libraries that X11R6 Xt/Xaw programs need.
2309 ac_save_LDFLAGS
="$LDFLAGS"
2310 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2311 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2312 # check for ICE first), but we must link in the order -lSM -lICE or
2313 # we get undefined symbols. So assume we have SM if we have ICE.
2314 # These have to be linked with before -lX11, unlike the other
2315 # libraries we check for below, so use a different variable.
2316 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2317 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2318 echo "configure:2319: checking for IceConnectionNumber in -lICE" >&5
2319 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2323 ac_save_LIBS
="$LIBS"
2324 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
2325 cat > conftest.
$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2328 /* Override any gcc2 internal prototype to avoid an error. */
2329 /* We use char because int might match the return type of a gcc2
2330 builtin and then its argument prototype would still apply. */
2331 char IceConnectionNumber();
2334 IceConnectionNumber()
2337 if { (eval echo configure
:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2339 eval "ac_cv_lib_$ac_lib_var=yes"
2341 echo "configure: failed program was:" >&5
2342 cat conftest.
$ac_ext >&5
2344 eval "ac_cv_lib_$ac_lib_var=no"
2347 LIBS
="$ac_save_LIBS"
2350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2351 echo "$ac_t""yes" 1>&6
2352 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2354 echo "$ac_t""no" 1>&6
2357 LDFLAGS
="$ac_save_LDFLAGS"
2363 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2365 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2366 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2367 echo "configure:2368: checking for $ac_hdr that defines DIR" >&5
2368 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 cat > conftest.
$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 #include <sys/types.h>
2380 if { (eval echo configure
:2381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2382 eval "ac_cv_header_dirent_$ac_safe=yes"
2384 echo "configure: failed program was:" >&5
2385 cat conftest.
$ac_ext >&5
2387 eval "ac_cv_header_dirent_$ac_safe=no"
2391 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2392 echo "$ac_t""yes" 1>&6
2393 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2394 cat >> confdefs.h
<<EOF
2395 #define $ac_tr_hdr 1
2397 ac_header_dirent
=$ac_hdr; break
2399 echo "$ac_t""no" 1>&6
2402 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2403 if test $ac_header_dirent = dirent.h
; then
2404 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2405 echo "configure:2406: checking for opendir in -ldir" >&5
2406 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2410 ac_save_LIBS
="$LIBS"
2412 cat > conftest.
$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2415 /* Override any gcc2 internal prototype to avoid an error. */
2416 /* We use char because int might match the return type of a gcc2
2417 builtin and then its argument prototype would still apply. */
2424 if { (eval echo configure
:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2426 eval "ac_cv_lib_$ac_lib_var=yes"
2428 echo "configure: failed program was:" >&5
2429 cat conftest.
$ac_ext >&5
2431 eval "ac_cv_lib_$ac_lib_var=no"
2434 LIBS
="$ac_save_LIBS"
2437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2438 echo "$ac_t""yes" 1>&6
2441 echo "$ac_t""no" 1>&6
2445 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2446 echo "configure:2447: checking for opendir in -lx" >&5
2447 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2448 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2451 ac_save_LIBS
="$LIBS"
2453 cat > conftest.
$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2456 /* Override any gcc2 internal prototype to avoid an error. */
2457 /* We use char because int might match the return type of a gcc2
2458 builtin and then its argument prototype would still apply. */
2465 if { (eval echo configure
:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2467 eval "ac_cv_lib_$ac_lib_var=yes"
2469 echo "configure: failed program was:" >&5
2470 cat conftest.
$ac_ext >&5
2472 eval "ac_cv_lib_$ac_lib_var=no"
2475 LIBS
="$ac_save_LIBS"
2478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2479 echo "$ac_t""yes" 1>&6
2482 echo "$ac_t""no" 1>&6
2487 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2488 echo "configure:2489: checking for ANSI C header files" >&5
2489 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2492 cat > conftest.
$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2500 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2501 { (eval echo configure
:2502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2502 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2503 if test -z "$ac_err"; then
2505 ac_cv_header_stdc
=yes
2508 echo "configure: failed program was:" >&5
2509 cat conftest.
$ac_ext >&5
2511 ac_cv_header_stdc
=no
2515 if test $ac_cv_header_stdc = yes; then
2516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2517 cat > conftest.
$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2523 egrep "memchr" >/dev
/null
2>&1; then
2527 ac_cv_header_stdc
=no
2533 if test $ac_cv_header_stdc = yes; then
2534 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2535 cat > conftest.
$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2541 egrep "free" >/dev
/null
2>&1; then
2545 ac_cv_header_stdc
=no
2551 if test $ac_cv_header_stdc = yes; then
2552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2553 if test "$cross_compiling" = yes; then
2556 cat > conftest.
$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2560 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2561 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2562 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2563 int main () { int i; for (i = 0; i < 256; i++)
2564 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2568 if { (eval echo configure
:2569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2572 echo "configure: failed program was:" >&5
2573 cat conftest.
$ac_ext >&5
2575 ac_cv_header_stdc
=no
2583 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2584 if test $ac_cv_header_stdc = yes; then
2585 cat >> confdefs.h
<<\EOF
2586 #define STDC_HEADERS 1
2591 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2592 echo "configure:2593: checking for sys/wait.h that is POSIX.1 compatible" >&5
2593 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2596 cat > conftest.
$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2599 #include <sys/types.h>
2600 #include <sys/wait.h>
2602 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2605 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2610 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2613 if { (eval echo configure
:2614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2615 ac_cv_header_sys_wait_h
=yes
2617 echo "configure: failed program was:" >&5
2618 cat conftest.
$ac_ext >&5
2620 ac_cv_header_sys_wait_h
=no
2625 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2626 if test $ac_cv_header_sys_wait_h = yes; then
2627 cat >> confdefs.h
<<\EOF
2628 #define HAVE_SYS_WAIT_H 1
2633 for ac_hdr
in fcntl.h
2635 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2636 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2637 echo "configure:2638: checking for $ac_hdr" >&5
2638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2641 cat > conftest.
$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2646 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2647 { (eval echo configure
:2648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2648 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2649 if test -z "$ac_err"; then
2651 eval "ac_cv_header_$ac_safe=yes"
2654 echo "configure: failed program was:" >&5
2655 cat conftest.
$ac_ext >&5
2657 eval "ac_cv_header_$ac_safe=no"
2661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2662 echo "$ac_t""yes" 1>&6
2663 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2664 cat >> confdefs.h
<<EOF
2665 #define $ac_tr_hdr 1
2669 echo "$ac_t""no" 1>&6
2673 for ac_hdr
in limits.h
2675 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2676 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2677 echo "configure:2678: checking for $ac_hdr" >&5
2678 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2681 cat > conftest.
$ac_ext <<EOF
2682 #line 2683 "configure"
2683 #include "confdefs.h"
2686 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2687 { (eval echo configure
:2688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2688 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2689 if test -z "$ac_err"; then
2691 eval "ac_cv_header_$ac_safe=yes"
2694 echo "configure: failed program was:" >&5
2695 cat conftest.
$ac_ext >&5
2697 eval "ac_cv_header_$ac_safe=no"
2701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2702 echo "$ac_t""yes" 1>&6
2703 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2704 cat >> confdefs.h
<<EOF
2705 #define $ac_tr_hdr 1
2709 echo "$ac_t""no" 1>&6
2713 for ac_hdr
in sys
/file.h
2715 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2717 echo "configure:2718: checking for $ac_hdr" >&5
2718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 cat > conftest.
$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2726 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2727 { (eval echo configure
:2728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2728 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2729 if test -z "$ac_err"; then
2731 eval "ac_cv_header_$ac_safe=yes"
2734 echo "configure: failed program was:" >&5
2735 cat conftest.
$ac_ext >&5
2737 eval "ac_cv_header_$ac_safe=no"
2741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2742 echo "$ac_t""yes" 1>&6
2743 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2744 cat >> confdefs.h
<<EOF
2745 #define $ac_tr_hdr 1
2749 echo "$ac_t""no" 1>&6
2753 for ac_hdr
in sys
/time.h
2755 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2757 echo "configure:2758: checking for $ac_hdr" >&5
2758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 cat > conftest.
$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2766 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2767 { (eval echo configure
:2768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2768 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2769 if test -z "$ac_err"; then
2771 eval "ac_cv_header_$ac_safe=yes"
2774 echo "configure: failed program was:" >&5
2775 cat conftest.
$ac_ext >&5
2777 eval "ac_cv_header_$ac_safe=no"
2781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2782 echo "$ac_t""yes" 1>&6
2783 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2784 cat >> confdefs.h
<<EOF
2785 #define $ac_tr_hdr 1
2789 echo "$ac_t""no" 1>&6
2793 for ac_hdr
in unistd.h
2795 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2797 echo "configure:2798: checking for $ac_hdr" >&5
2798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2799 echo $ac_n "(cached) $ac_c" 1>&6
2801 cat > conftest.
$ac_ext <<EOF
2802 #line 2803 "configure"
2803 #include "confdefs.h"
2806 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2807 { (eval echo configure
:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2808 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2809 if test -z "$ac_err"; then
2811 eval "ac_cv_header_$ac_safe=yes"
2814 echo "configure: failed program was:" >&5
2815 cat conftest.
$ac_ext >&5
2817 eval "ac_cv_header_$ac_safe=no"
2821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2822 echo "$ac_t""yes" 1>&6
2823 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2824 cat >> confdefs.h
<<EOF
2825 #define $ac_tr_hdr 1
2829 echo "$ac_t""no" 1>&6
2833 for ac_hdr
in fnmatch.h
2835 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2837 echo "configure:2838: checking for $ac_hdr" >&5
2838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2841 cat > conftest.
$ac_ext <<EOF
2842 #line 2843 "configure"
2843 #include "confdefs.h"
2846 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2847 { (eval echo configure
:2848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2848 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2849 if test -z "$ac_err"; then
2851 eval "ac_cv_header_$ac_safe=yes"
2854 echo "configure: failed program was:" >&5
2855 cat conftest.
$ac_ext >&5
2857 eval "ac_cv_header_$ac_safe=no"
2861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2862 echo "$ac_t""yes" 1>&6
2863 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2864 cat >> confdefs.h
<<EOF
2865 #define $ac_tr_hdr 1
2869 echo "$ac_t""no" 1>&6
2873 for ac_hdr
in linux
/joystick.h
2875 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2877 echo "configure:2878: checking for $ac_hdr" >&5
2878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 cat > conftest.
$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2886 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2887 { (eval echo configure
:2888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2888 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2889 if test -z "$ac_err"; then
2891 eval "ac_cv_header_$ac_safe=yes"
2894 echo "configure: failed program was:" >&5
2895 cat conftest.
$ac_ext >&5
2897 eval "ac_cv_header_$ac_safe=no"
2901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2902 echo "$ac_t""yes" 1>&6
2903 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2904 cat >> confdefs.h
<<EOF
2905 #define $ac_tr_hdr 1
2909 echo "$ac_t""no" 1>&6
2914 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
2915 GTK_JOYSTICK
="gtk/joystick.cpp"
2919 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2920 echo "configure:2921: checking for vprintf" >&5
2921 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2924 cat > conftest.
$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2927 /* System header to define __stub macros and hopefully few prototypes,
2928 which can conflict with char vprintf(); below. */
2930 /* Override any gcc2 internal prototype to avoid an error. */
2931 /* We use char because int might match the return type of a gcc2
2932 builtin and then its argument prototype would still apply. */
2937 /* The GNU C library defines this for functions which it implements
2938 to always fail with ENOSYS. Some functions are actually named
2939 something starting with __ and the normal name is an alias. */
2940 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2948 if { (eval echo configure
:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2950 eval "ac_cv_func_vprintf=yes"
2952 echo "configure: failed program was:" >&5
2953 cat conftest.
$ac_ext >&5
2955 eval "ac_cv_func_vprintf=no"
2960 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2961 echo "$ac_t""yes" 1>&6
2962 cat >> confdefs.h
<<\EOF
2963 #define HAVE_VPRINTF 1
2967 echo "$ac_t""no" 1>&6
2970 if test "$ac_cv_func_vprintf" != yes; then
2971 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2972 echo "configure:2973: checking for _doprnt" >&5
2973 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2976 cat > conftest.
$ac_ext <<EOF
2977 #line 2978 "configure"
2978 #include "confdefs.h"
2979 /* System header to define __stub macros and hopefully few prototypes,
2980 which can conflict with char _doprnt(); below. */
2982 /* Override any gcc2 internal prototype to avoid an error. */
2983 /* We use char because int might match the return type of a gcc2
2984 builtin and then its argument prototype would still apply. */
2989 /* The GNU C library defines this for functions which it implements
2990 to always fail with ENOSYS. Some functions are actually named
2991 something starting with __ and the normal name is an alias. */
2992 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3000 if { (eval echo configure
:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3002 eval "ac_cv_func__doprnt=yes"
3004 echo "configure: failed program was:" >&5
3005 cat conftest.
$ac_ext >&5
3007 eval "ac_cv_func__doprnt=no"
3012 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3014 cat >> confdefs.h
<<\EOF
3015 #define HAVE_DOPRNT 1
3019 echo "$ac_t""no" 1>&6
3024 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
3025 echo "configure:3026: checking for vsnprintf" >&5
3026 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3029 cat > conftest.
$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3032 /* System header to define __stub macros and hopefully few prototypes,
3033 which can conflict with char vsnprintf(); below. */
3035 /* Override any gcc2 internal prototype to avoid an error. */
3036 /* We use char because int might match the return type of a gcc2
3037 builtin and then its argument prototype would still apply. */
3042 /* The GNU C library defines this for functions which it implements
3043 to always fail with ENOSYS. Some functions are actually named
3044 something starting with __ and the normal name is an alias. */
3045 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
3053 if { (eval echo configure
:3054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3055 eval "ac_cv_func_vsnprintf=yes"
3057 echo "configure: failed program was:" >&5
3058 cat conftest.
$ac_ext >&5
3060 eval "ac_cv_func_vsnprintf=no"
3065 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
3066 echo "$ac_t""yes" 1>&6
3067 cat >> confdefs.h
<<\EOF
3068 #define HAVE_VSNPRINTF 1
3072 echo "$ac_t""no" 1>&6
3078 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3079 ac_cpp
='$CXXCPP $CPPFLAGS'
3080 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3081 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3082 cross_compiling
=$ac_cv_prog_cxx_cross
3084 for ac_hdr
in iostream
3086 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3088 echo "configure:3089: checking for $ac_hdr" >&5
3089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3092 cat > conftest.
$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3097 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3098 { (eval echo configure
:3099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3099 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3100 if test -z "$ac_err"; then
3102 eval "ac_cv_header_$ac_safe=yes"
3105 echo "configure: failed program was:" >&5
3106 cat conftest.
$ac_ext >&5
3108 eval "ac_cv_header_$ac_safe=no"
3112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3113 echo "$ac_t""yes" 1>&6
3114 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3115 cat >> confdefs.h
<<EOF
3116 #define $ac_tr_hdr 1
3120 echo "$ac_t""no" 1>&6
3124 if test "x$HAVE_IOSTREAM" = "x" ; then
3125 cat >> confdefs.h
<<\EOF
3126 #define wxUSE_IOSTREAMH 1
3131 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3132 ac_cpp
='$CPP $CPPFLAGS'
3133 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3134 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3135 cross_compiling
=$ac_cv_prog_cc_cross
3138 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3139 echo "configure:3140: checking for uid_t in sys/types.h" >&5
3140 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 cat > conftest.
$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3146 #include <sys/types.h>
3148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3149 egrep "uid_t" >/dev
/null
2>&1; then
3151 ac_cv_type_uid_t
=yes
3160 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3161 if test $ac_cv_type_uid_t = no
; then
3162 cat >> confdefs.h
<<\EOF
3166 cat >> confdefs.h
<<\EOF
3172 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3173 echo "configure:3174: checking type of array argument to getgroups" >&5
3174 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 if test "$cross_compiling" = yes; then
3178 ac_cv_type_getgroups
=cross
3180 cat > conftest.
$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3184 /* Thanks to Mike Rendell for this test. */
3185 #include <sys/types.h>
3188 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3193 union { gid_t gval; long lval; } val;
3196 for (i = 0; i < NGID; i++)
3197 gidset[i] = val.gval;
3198 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3200 /* Exit non-zero if getgroups seems to require an array of ints. This
3201 happens when gid_t is short but getgroups modifies an array of ints. */
3202 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3206 if { (eval echo configure
:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3208 ac_cv_type_getgroups
=gid_t
3210 echo "configure: failed program was:" >&5
3211 cat conftest.
$ac_ext >&5
3213 ac_cv_type_getgroups
=int
3218 if test $ac_cv_type_getgroups = cross
; then
3219 cat > conftest.
$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3225 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3227 ac_cv_type_getgroups
=gid_t
3230 ac_cv_type_getgroups
=int
3237 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3238 cat >> confdefs.h
<<EOF
3239 #define GETGROUPS_T $ac_cv_type_getgroups
3243 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3244 echo "configure:3245: checking for mode_t" >&5
3245 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3246 echo $ac_n "(cached) $ac_c" 1>&6
3248 cat > conftest.
$ac_ext <<EOF
3249 #line 3250 "configure"
3250 #include "confdefs.h"
3251 #include <sys/types.h>
3257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3258 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3260 ac_cv_type_mode_t
=yes
3263 ac_cv_type_mode_t
=no
3268 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3269 if test $ac_cv_type_mode_t = no
; then
3270 cat >> confdefs.h
<<\EOF
3276 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3277 echo "configure:3278: checking for off_t" >&5
3278 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3281 cat > conftest.
$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3284 #include <sys/types.h>
3290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3291 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3293 ac_cv_type_off_t
=yes
3301 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3302 if test $ac_cv_type_off_t = no
; then
3303 cat >> confdefs.h
<<\EOF
3309 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3310 echo "configure:3311: checking for pid_t" >&5
3311 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 cat > conftest.
$ac_ext <<EOF
3315 #line 3316 "configure"
3316 #include "confdefs.h"
3317 #include <sys/types.h>
3323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3324 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3326 ac_cv_type_pid_t
=yes
3334 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3335 if test $ac_cv_type_pid_t = no
; then
3336 cat >> confdefs.h
<<\EOF
3342 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3343 echo "configure:3344: checking return type of signal handlers" >&5
3344 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3347 cat > conftest.
$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3350 #include <sys/types.h>
3356 extern "C" void (*signal (int, void (*)(int)))(int);
3358 void (*signal ()) ();
3365 if { (eval echo configure
:3366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3367 ac_cv_type_signal
=void
3369 echo "configure: failed program was:" >&5
3370 cat conftest.
$ac_ext >&5
3372 ac_cv_type_signal
=int
3377 echo "$ac_t""$ac_cv_type_signal" 1>&6
3378 cat >> confdefs.h
<<EOF
3379 #define RETSIGTYPE $ac_cv_type_signal
3383 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3384 echo "configure:3385: checking for size_t" >&5
3385 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 cat > conftest.
$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #include <sys/types.h>
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3400 ac_cv_type_size_t
=yes
3403 ac_cv_type_size_t
=no
3408 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3409 if test $ac_cv_type_size_t = no
; then
3410 cat >> confdefs.h
<<\EOF
3411 #define size_t unsigned
3416 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3417 echo "configure:3418: checking for uid_t in sys/types.h" >&5
3418 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 cat > conftest.
$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 #include <sys/types.h>
3426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3427 egrep "uid_t" >/dev
/null
2>&1; then
3429 ac_cv_type_uid_t
=yes
3438 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3439 if test $ac_cv_type_uid_t = no
; then
3440 cat >> confdefs.h
<<\EOF
3444 cat >> confdefs.h
<<\EOF
3452 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3453 echo "configure:3454: checking whether stat file-mode macros are broken" >&5
3454 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 cat > conftest.
$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460 #include <sys/types.h>
3461 #include <sys/stat.h>
3463 #if defined(S_ISBLK) && defined(S_IFDIR)
3464 # if S_ISBLK (S_IFDIR)
3469 #if defined(S_ISBLK) && defined(S_IFCHR)
3470 # if S_ISBLK (S_IFCHR)
3475 #if defined(S_ISLNK) && defined(S_IFREG)
3476 # if S_ISLNK (S_IFREG)
3481 #if defined(S_ISSOCK) && defined(S_IFREG)
3482 # if S_ISSOCK (S_IFREG)
3488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3489 egrep "You lose" >/dev
/null
2>&1; then
3491 ac_cv_header_stat_broken
=yes
3494 ac_cv_header_stat_broken
=no
3500 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3501 if test $ac_cv_header_stat_broken = yes; then
3502 cat >> confdefs.h
<<\EOF
3503 #define STAT_MACROS_BROKEN 1
3508 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3509 echo "configure:3510: checking whether time.h and sys/time.h may both be included" >&5
3510 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3513 cat > conftest.
$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 #include <sys/types.h>
3517 #include <sys/time.h>
3523 if { (eval echo configure
:3524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3525 ac_cv_header_time
=yes
3527 echo "configure: failed program was:" >&5
3528 cat conftest.
$ac_ext >&5
3530 ac_cv_header_time
=no
3535 echo "$ac_t""$ac_cv_header_time" 1>&6
3536 if test $ac_cv_header_time = yes; then
3537 cat >> confdefs.h
<<\EOF
3538 #define TIME_WITH_SYS_TIME 1
3543 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3544 echo "configure:3545: checking for st_blksize in struct stat" >&5
3545 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3548 cat > conftest.
$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3551 #include <sys/types.h>
3552 #include <sys/stat.h>
3554 struct stat s; s.st_blksize;
3557 if { (eval echo configure
:3558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3559 ac_cv_struct_st_blksize
=yes
3561 echo "configure: failed program was:" >&5
3562 cat conftest.
$ac_ext >&5
3564 ac_cv_struct_st_blksize
=no
3569 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3570 if test $ac_cv_struct_st_blksize = yes; then
3571 cat >> confdefs.h
<<\EOF
3572 #define HAVE_ST_BLKSIZE 1
3577 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3578 echo "configure:3579: checking for st_blocks in struct stat" >&5
3579 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 cat > conftest.
$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 #include <sys/types.h>
3586 #include <sys/stat.h>
3588 struct stat s; s.st_blocks;
3591 if { (eval echo configure
:3592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3593 ac_cv_struct_st_blocks
=yes
3595 echo "configure: failed program was:" >&5
3596 cat conftest.
$ac_ext >&5
3598 ac_cv_struct_st_blocks
=no
3603 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3604 if test $ac_cv_struct_st_blocks = yes; then
3605 cat >> confdefs.h
<<\EOF
3606 #define HAVE_ST_BLOCKS 1
3610 LIBOBJS
="$LIBOBJS fileblocks.${ac_objext}"
3613 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3614 echo "configure:3615: checking for st_rdev in struct stat" >&5
3615 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 cat > conftest.
$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 #include <sys/types.h>
3622 #include <sys/stat.h>
3624 struct stat s; s.st_rdev;
3627 if { (eval echo configure
:3628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3629 ac_cv_struct_st_rdev
=yes
3631 echo "configure: failed program was:" >&5
3632 cat conftest.
$ac_ext >&5
3634 ac_cv_struct_st_rdev
=no
3639 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3640 if test $ac_cv_struct_st_rdev = yes; then
3641 cat >> confdefs.h
<<\EOF
3642 #define HAVE_ST_RDEV 1
3647 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3648 echo "configure:3649: checking whether struct tm is in sys/time.h or time.h" >&5
3649 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 cat > conftest.
$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3655 #include <sys/types.h>
3658 struct tm *tp; tp->tm_sec;
3661 if { (eval echo configure
:3662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3663 ac_cv_struct_tm
=time.h
3665 echo "configure: failed program was:" >&5
3666 cat conftest.
$ac_ext >&5
3668 ac_cv_struct_tm
=sys
/time.h
3673 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3674 if test $ac_cv_struct_tm = sys
/time.h
; then
3675 cat >> confdefs.h
<<\EOF
3676 #define TM_IN_SYS_TIME 1
3681 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3682 echo "configure:3683: checking for tm_zone in struct tm" >&5
3683 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3686 cat > conftest.
$ac_ext <<EOF
3687 #line 3688 "configure"
3688 #include "confdefs.h"
3689 #include <sys/types.h>
3690 #include <$ac_cv_struct_tm>
3692 struct tm tm; tm.tm_zone;
3695 if { (eval echo configure
:3696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3697 ac_cv_struct_tm_zone
=yes
3699 echo "configure: failed program was:" >&5
3700 cat conftest.
$ac_ext >&5
3702 ac_cv_struct_tm_zone
=no
3707 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3708 if test "$ac_cv_struct_tm_zone" = yes; then
3709 cat >> confdefs.h
<<\EOF
3710 #define HAVE_TM_ZONE 1
3714 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3715 echo "configure:3716: checking for tzname" >&5
3716 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3717 echo $ac_n "(cached) $ac_c" 1>&6
3719 cat > conftest.
$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3723 #ifndef tzname /* For SGI. */
3724 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3730 if { (eval echo configure
:3731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3732 ac_cv_var_tzname
=yes
3734 echo "configure: failed program was:" >&5
3735 cat conftest.
$ac_ext >&5
3742 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3743 if test $ac_cv_var_tzname = yes; then
3744 cat >> confdefs.h
<<\EOF
3745 #define HAVE_TZNAME 1
3753 echo $ac_n "checking for working const""... $ac_c" 1>&6
3754 echo "configure:3755: checking for working const" >&5
3755 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 cat > conftest.
$ac_ext <<EOF
3759 #line 3760 "configure"
3760 #include "confdefs.h"
3764 /* Ultrix mips cc rejects this. */
3765 typedef int charset[2]; const charset x;
3766 /* SunOS 4.1.1 cc rejects this. */
3767 char const *const *ccp;
3769 /* NEC SVR4.0.2 mips cc rejects this. */
3770 struct point {int x, y;};
3771 static struct point const zero = {0,0};
3772 /* AIX XL C 1.02.0.0 rejects this.
3773 It does not let you subtract one const X* pointer from another in an arm
3774 of an if-expression whose if-part is not a constant expression */
3775 const char *g = "string";
3776 ccp = &g + (g ? g-g : 0);
3777 /* HPUX 7.0 cc rejects these. */
3780 ccp = (char const *const *) p;
3781 { /* SCO 3.2v4 cc rejects this. */
3783 char const *s = 0 ? (char *) 0 : (char const *) 0;
3787 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3789 const int *foo = &x[0];
3792 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3793 typedef const int *iptr;
3797 { /* AIX XL C 1.02.0.0 rejects this saying
3798 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3799 struct s { int j; const int *ap[3]; };
3800 struct s *b; b->j = 5;
3802 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3808 if { (eval echo configure
:3809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3812 echo "configure: failed program was:" >&5
3813 cat conftest.
$ac_ext >&5
3820 echo "$ac_t""$ac_cv_c_const" 1>&6
3821 if test $ac_cv_c_const = no
; then
3822 cat >> confdefs.h
<<\EOF
3828 echo $ac_n "checking for inline""... $ac_c" 1>&6
3829 echo "configure:3830: checking for inline" >&5
3830 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3834 for ac_kw
in inline __inline__ __inline
; do
3835 cat > conftest.
$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3843 if { (eval echo configure
:3844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3845 ac_cv_c_inline
=$ac_kw; break
3847 echo "configure: failed program was:" >&5
3848 cat conftest.
$ac_ext >&5
3855 echo "$ac_t""$ac_cv_c_inline" 1>&6
3856 case "$ac_cv_c_inline" in
3858 no
) cat >> confdefs.h
<<\EOF
3862 *) cat >> confdefs.h
<<EOF
3863 #define inline $ac_cv_c_inline
3868 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3869 echo "configure:3870: checking whether char is unsigned" >&5
3870 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3873 if test "$GCC" = yes; then
3874 # GCC predefines this symbol on systems where it applies.
3875 cat > conftest.
$ac_ext <<EOF
3876 #line 3877 "configure"
3877 #include "confdefs.h"
3878 #ifdef __CHAR_UNSIGNED__
3883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3884 egrep "yes" >/dev
/null
2>&1; then
3886 ac_cv_c_char_unsigned
=yes
3889 ac_cv_c_char_unsigned
=no
3894 if test "$cross_compiling" = yes; then
3895 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3897 cat > conftest.
$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3901 #if !defined(__STDC__) || __STDC__ != 1
3905 volatile char c = 255; exit(c < 0);
3908 if { (eval echo configure
:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3910 ac_cv_c_char_unsigned
=yes
3912 echo "configure: failed program was:" >&5
3913 cat conftest.
$ac_ext >&5
3915 ac_cv_c_char_unsigned
=no
3923 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3924 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3925 cat >> confdefs.h
<<\EOF
3926 #define __CHAR_UNSIGNED__ 1
3931 echo $ac_n "checking for long double""... $ac_c" 1>&6
3932 echo "configure:3933: checking for long double" >&5
3933 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3936 if test "$GCC" = yes; then
3937 ac_cv_c_long_double
=yes
3939 if test "$cross_compiling" = yes; then
3940 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3942 cat > conftest.
$ac_ext <<EOF
3943 #line 3944 "configure"
3944 #include "confdefs.h"
3946 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
3947 long double foo = 0.0;
3948 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3949 exit(sizeof(long double) < sizeof(double)); }
3951 if { (eval echo configure
:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3953 ac_cv_c_long_double
=yes
3955 echo "configure: failed program was:" >&5
3956 cat conftest.
$ac_ext >&5
3958 ac_cv_c_long_double
=no
3966 echo "$ac_t""$ac_cv_c_long_double" 1>&6
3967 if test $ac_cv_c_long_double = yes; then
3968 cat >> confdefs.h
<<\EOF
3969 #define HAVE_LONG_DOUBLE 1
3975 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3976 echo "configure:3977: checking whether byte ordering is bigendian" >&5
3977 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3980 ac_cv_c_bigendian
=unknown
3981 # See if sys/param.h defines the BYTE_ORDER macro.
3982 cat > conftest.
$ac_ext <<EOF
3983 #line 3984 "configure"
3984 #include "confdefs.h"
3985 #include <sys/types.h>
3986 #include <sys/param.h>
3989 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3994 if { (eval echo configure
:3995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3996 # It does; now see whether it defined to BIG_ENDIAN or not.
3997 cat > conftest.
$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4000 #include <sys/types.h>
4001 #include <sys/param.h>
4004 #if BYTE_ORDER != BIG_ENDIAN
4009 if { (eval echo configure
:4010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4011 ac_cv_c_bigendian
=yes
4013 echo "configure: failed program was:" >&5
4014 cat conftest.
$ac_ext >&5
4016 ac_cv_c_bigendian
=no
4020 echo "configure: failed program was:" >&5
4021 cat conftest.
$ac_ext >&5
4024 if test $ac_cv_c_bigendian = unknown
; then
4025 if test "$cross_compiling" = yes; then
4026 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4028 cat > conftest.
$ac_ext <<EOF
4029 #line 4030 "configure"
4030 #include "confdefs.h"
4032 /* Are we little or big endian? From Harbison&Steele. */
4036 char c[sizeof (long)];
4039 exit (u.c[sizeof (long) - 1] == 1);
4042 if { (eval echo configure
:4043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4044 ac_cv_c_bigendian
=no
4046 echo "configure: failed program was:" >&5
4047 cat conftest.
$ac_ext >&5
4049 ac_cv_c_bigendian
=yes
4057 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4058 if test $ac_cv_c_bigendian = yes; then
4059 cat >> confdefs.h
<<\EOF
4060 #define WORDS_BIGENDIAN 1
4066 echo $ac_n "checking size of int *""... $ac_c" 1>&6
4067 echo "configure:4068: checking size of int *" >&5
4068 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
4069 echo $ac_n "(cached) $ac_c" 1>&6
4071 if test "$cross_compiling" = yes; then
4072 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4074 cat > conftest.
$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4080 FILE *f=fopen("conftestval", "w");
4082 fprintf(f, "%d\n", sizeof(int *));
4086 if { (eval echo configure
:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4088 ac_cv_sizeof_int_p
=`cat conftestval`
4090 echo "configure: failed program was:" >&5
4091 cat conftest.
$ac_ext >&5
4093 ac_cv_sizeof_int_p
=0
4099 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
4100 cat >> confdefs.h
<<EOF
4101 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
4105 echo $ac_n "checking size of int""... $ac_c" 1>&6
4106 echo "configure:4107: checking size of int" >&5
4107 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4110 if test "$cross_compiling" = yes; then
4111 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4113 cat > conftest.
$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4119 FILE *f=fopen("conftestval", "w");
4121 fprintf(f, "%d\n", sizeof(int));
4125 if { (eval echo configure
:4126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4127 ac_cv_sizeof_int
=`cat conftestval`
4129 echo "configure: failed program was:" >&5
4130 cat conftest.
$ac_ext >&5
4138 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4139 cat >> confdefs.h
<<EOF
4140 #define SIZEOF_INT $ac_cv_sizeof_int
4144 echo $ac_n "checking size of long""... $ac_c" 1>&6
4145 echo "configure:4146: checking size of long" >&5
4146 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4149 if test "$cross_compiling" = yes; then
4150 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4152 cat > conftest.
$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4158 FILE *f=fopen("conftestval", "w");
4160 fprintf(f, "%d\n", sizeof(long));
4164 if { (eval echo configure
:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4166 ac_cv_sizeof_long
=`cat conftestval`
4168 echo "configure: failed program was:" >&5
4169 cat conftest.
$ac_ext >&5
4177 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4178 cat >> confdefs.h
<<EOF
4179 #define SIZEOF_LONG $ac_cv_sizeof_long
4183 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4184 echo "configure:4185: checking size of long long" >&5
4185 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4188 if test "$cross_compiling" = yes; then
4189 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4191 cat > conftest.
$ac_ext <<EOF
4192 #line 4193 "configure"
4193 #include "confdefs.h"
4197 FILE *f=fopen("conftestval", "w");
4199 fprintf(f, "%d\n", sizeof(long long));
4203 if { (eval echo configure
:4204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4205 ac_cv_sizeof_long_long
=`cat conftestval`
4207 echo "configure: failed program was:" >&5
4208 cat conftest.
$ac_ext >&5
4210 ac_cv_sizeof_long_long
=0
4216 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4217 cat >> confdefs.h
<<EOF
4218 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4226 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4227 echo "configure:4228: checking for long file names" >&5
4228 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4231 ac_cv_sys_long_file_names
=yes
4232 # Test for long file names in all the places we know might matter:
4233 # . the current directory, where building will happen
4234 # $prefix/lib where we will be installing things
4235 # $exec_prefix/lib likewise
4236 # eval it to expand exec_prefix.
4237 # $TMPDIR if set, where it might want to write temporary files
4238 # if $TMPDIR is not set:
4239 # /tmp where it might want to write temporary files
4242 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4243 ac_tmpdirs
="$TMPDIR"
4245 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
4247 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4248 test -d $ac_dir || continue
4249 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4250 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
4251 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
4252 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
4253 if test ! -f $ac_dir/conftest9012345
|| test "$val" != 1; then
4254 ac_cv_sys_long_file_names
=no
4255 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4258 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4262 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4263 if test $ac_cv_sys_long_file_names = yes; then
4264 cat >> confdefs.h
<<\EOF
4265 #define HAVE_LONG_FILE_NAMES 1
4273 for ac_prog
in 'bison -y' byacc
4275 # Extract the first word of "$ac_prog", so it can be a program name with args.
4276 set dummy
$ac_prog; ac_word
=$2
4277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4278 echo "configure:4279: checking for $ac_word" >&5
4279 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4282 if test -n "$YACC"; then
4283 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4285 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4287 for ac_dir
in $ac_dummy; do
4288 test -z "$ac_dir" && ac_dir
=.
4289 if test -f $ac_dir/$ac_word; then
4290 ac_cv_prog_YACC
="$ac_prog"
4297 YACC
="$ac_cv_prog_YACC"
4298 if test -n "$YACC"; then
4299 echo "$ac_t""$YACC" 1>&6
4301 echo "$ac_t""no" 1>&6
4304 test -n "$YACC" && break
4306 test -n "$YACC" || YACC
="yacc"
4309 # Extract the first word of "flex", so it can be a program name with args.
4310 set dummy flex
; ac_word
=$2
4311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4312 echo "configure:4313: checking for $ac_word" >&5
4313 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4316 if test -n "$LEX"; then
4317 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4319 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4321 for ac_dir
in $ac_dummy; do
4322 test -z "$ac_dir" && ac_dir
=.
4323 if test -f $ac_dir/$ac_word; then
4324 ac_cv_prog_LEX
="flex"
4329 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4332 LEX
="$ac_cv_prog_LEX"
4333 if test -n "$LEX"; then
4334 echo "$ac_t""$LEX" 1>&6
4336 echo "$ac_t""no" 1>&6
4339 if test -z "$LEXLIB"
4345 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4346 echo "configure:4347: checking for yywrap in -l$ac_lib" >&5
4347 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4351 ac_save_LIBS
="$LIBS"
4352 LIBS
="-l$ac_lib $LIBS"
4353 cat > conftest.
$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4356 /* Override any gcc2 internal prototype to avoid an error. */
4357 /* We use char because int might match the return type of a gcc2
4358 builtin and then its argument prototype would still apply. */
4365 if { (eval echo configure
:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4367 eval "ac_cv_lib_$ac_lib_var=yes"
4369 echo "configure: failed program was:" >&5
4370 cat conftest.
$ac_ext >&5
4372 eval "ac_cv_lib_$ac_lib_var=no"
4375 LIBS
="$ac_save_LIBS"
4378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4379 echo "$ac_t""yes" 1>&6
4382 echo "$ac_t""no" 1>&6
4387 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4388 echo "configure:4389: checking lex output file root" >&5
4389 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4390 echo $ac_n "(cached) $ac_c" 1>&6
4392 # The minimal lex program is just a single line: %%. But some broken lexes
4393 # (Solaris, I think it was) want two %% lines, so accommodate them.
4396 if test -f lex.yy.c
; then
4397 ac_cv_prog_lex_root
=lex.yy
4398 elif test -f lexyy.c
; then
4399 ac_cv_prog_lex_root
=lexyy
4401 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4405 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4406 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4408 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4409 echo "configure:4410: checking whether yytext is a pointer" >&5
4410 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 # POSIX says lex can declare yytext either as a pointer or an array; the
4414 # default is implementation-dependent. Figure out which it is, since
4415 # not all implementations provide the %pointer and %array declarations.
4416 ac_cv_prog_lex_yytext_pointer
=no
4417 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4418 ac_save_LIBS
="$LIBS"
4419 LIBS
="$LIBS $LEXLIB"
4420 cat > conftest.
$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4423 `cat $LEX_OUTPUT_ROOT.c`
4428 if { (eval echo configure
:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4430 ac_cv_prog_lex_yytext_pointer
=yes
4432 echo "configure: failed program was:" >&5
4433 cat conftest.
$ac_ext >&5
4436 LIBS
="$ac_save_LIBS"
4437 rm -f "${LEX_OUTPUT_ROOT}.c"
4441 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4442 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4443 cat >> confdefs.h
<<\EOF
4444 #define YYTEXT_POINTER 1
4452 for ac_func
in dlopen
4454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4455 echo "configure:4456: checking for $ac_func" >&5
4456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 cat > conftest.
$ac_ext <<EOF
4460 #line 4461 "configure"
4461 #include "confdefs.h"
4462 /* System header to define __stub macros and hopefully few prototypes,
4463 which can conflict with char $ac_func(); below. */
4465 /* Override any gcc2 internal prototype to avoid an error. */
4466 /* We use char because int might match the return type of a gcc2
4467 builtin and then its argument prototype would still apply. */
4472 /* The GNU C library defines this for functions which it implements
4473 to always fail with ENOSYS. Some functions are actually named
4474 something starting with __ and the normal name is an alias. */
4475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4483 if { (eval echo configure
:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4485 eval "ac_cv_func_$ac_func=yes"
4487 echo "configure: failed program was:" >&5
4488 cat conftest.
$ac_ext >&5
4490 eval "ac_cv_func_$ac_func=no"
4495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4496 echo "$ac_t""yes" 1>&6
4497 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4498 cat >> confdefs.h
<<EOF
4499 #define $ac_tr_func 1
4501 cat >> confdefs.h
<<\EOF
4502 #define HAVE_LIBDL 1
4506 echo "$ac_t""no" 1>&6
4507 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4508 echo "configure:4509: checking for dlopen in -ldl" >&5
4509 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6
4513 ac_save_LIBS
="$LIBS"
4515 cat > conftest.
$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4518 /* Override any gcc2 internal prototype to avoid an error. */
4519 /* We use char because int might match the return type of a gcc2
4520 builtin and then its argument prototype would still apply. */
4527 if { (eval echo configure
:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4529 eval "ac_cv_lib_$ac_lib_var=yes"
4531 echo "configure: failed program was:" >&5
4532 cat conftest.
$ac_ext >&5
4534 eval "ac_cv_lib_$ac_lib_var=no"
4537 LIBS
="$ac_save_LIBS"
4540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4541 echo "$ac_t""yes" 1>&6
4542 cat >> confdefs.h
<<\EOF
4543 #define HAVE_LIBDL 1
4547 echo "$ac_t""no" 1>&6
4548 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4549 echo "configure:4550: checking for dld_link in -ldld" >&5
4550 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 ac_save_LIBS
="$LIBS"
4556 cat > conftest.
$ac_ext <<EOF
4557 #line 4558 "configure"
4558 #include "confdefs.h"
4559 /* Override any gcc2 internal prototype to avoid an error. */
4560 /* We use char because int might match the return type of a gcc2
4561 builtin and then its argument prototype would still apply. */
4568 if { (eval echo configure
:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4570 eval "ac_cv_lib_$ac_lib_var=yes"
4572 echo "configure: failed program was:" >&5
4573 cat conftest.
$ac_ext >&5
4575 eval "ac_cv_lib_$ac_lib_var=no"
4578 LIBS
="$ac_save_LIBS"
4581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4582 echo "$ac_t""yes" 1>&6
4583 cat >> confdefs.h
<<\EOF
4588 echo "$ac_t""no" 1>&6
4589 for ac_func
in shl_load
4591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4592 echo "configure:4593: checking for $ac_func" >&5
4593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4596 cat > conftest.
$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4599 /* System header to define __stub macros and hopefully few prototypes,
4600 which can conflict with char $ac_func(); below. */
4602 /* Override any gcc2 internal prototype to avoid an error. */
4603 /* We use char because int might match the return type of a gcc2
4604 builtin and then its argument prototype would still apply. */
4609 /* The GNU C library defines this for functions which it implements
4610 to always fail with ENOSYS. Some functions are actually named
4611 something starting with __ and the normal name is an alias. */
4612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4620 if { (eval echo configure
:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4622 eval "ac_cv_func_$ac_func=yes"
4624 echo "configure: failed program was:" >&5
4625 cat conftest.
$ac_ext >&5
4627 eval "ac_cv_func_$ac_func=no"
4632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4633 echo "$ac_t""yes" 1>&6
4634 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4635 cat >> confdefs.h
<<EOF
4636 #define $ac_tr_func 1
4638 cat >> confdefs.h
<<\EOF
4639 #define HAVE_SHL_LOAD 1
4643 echo "$ac_t""no" 1>&6
4659 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
4660 echo "configure:4661: checking for underscore before symbols" >&5
4661 if eval "test \"`echo '$''{'libltdl_cv_uscore'+set}'`\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4665 echo "main(){int i=1;} fnord(){int i=23; int ltuae=42;}" > conftest.c
4666 ${CC} -c conftest.c
> /dev
/null
4667 if (nm conftest.o
| grep _fnord
) > /dev
/null
; then
4668 libltdl_cv_uscore
=yes
4670 libltdl_cv_uscore
=no
4676 echo "$ac_t""$libltdl_cv_uscore" 1>&6
4678 if test x
"$libltdl_cv_uscore" = xyes
; then
4679 if test x
"$ac_cv_func_dlopen" = xyes
||
4680 test x
"$ac_cv_lib_dl_dlopen" = xyes
; then
4681 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
4682 echo "configure:4683: checking whether we have to add an underscore for dlsym" >&5
4683 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4686 if test "$cross_compiling" = yes; then
4687 libltdl_cv_need_uscore
=no
4690 cat > conftest.
$ac_ext <<EOF
4691 #line 4692 "configure"
4692 #include "confdefs.h"
4696 fnord() { int i=42;}
4697 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
4698 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
4699 if(ptr1 && !ptr2) exit(0); } exit(1); }
4702 if { (eval echo configure
:4703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4704 libltdl_cv_need_uscore
=no
4706 echo "configure: failed program was:" >&5
4707 cat conftest.
$ac_ext >&5
4709 libltdl_cv_need_uscore
=yes
4716 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
4720 if test x
"$libltdl_cv_need_uscore" = xyes
; then
4721 cat >> confdefs.h
<<\EOF
4722 #define NEED_USCORE 1
4728 for ac_func
in strerror
4730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4731 echo "configure:4732: checking for $ac_func" >&5
4732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4735 cat > conftest.
$ac_ext <<EOF
4736 #line 4737 "configure"
4737 #include "confdefs.h"
4738 /* System header to define __stub macros and hopefully few prototypes,
4739 which can conflict with char $ac_func(); below. */
4741 /* Override any gcc2 internal prototype to avoid an error. */
4742 /* We use char because int might match the return type of a gcc2
4743 builtin and then its argument prototype would still apply. */
4748 /* The GNU C library defines this for functions which it implements
4749 to always fail with ENOSYS. Some functions are actually named
4750 something starting with __ and the normal name is an alias. */
4751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4759 if { (eval echo configure
:4760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4761 eval "ac_cv_func_$ac_func=yes"
4763 echo "configure: failed program was:" >&5
4764 cat conftest.
$ac_ext >&5
4766 eval "ac_cv_func_$ac_func=no"
4771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4772 echo "$ac_t""yes" 1>&6
4773 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4774 cat >> confdefs.h
<<EOF
4775 #define $ac_tr_func 1
4779 echo "$ac_t""no" 1>&6
4785 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
4786 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
4790 # Make sure we can run config.sub.
4791 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
4792 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
4795 echo $ac_n "checking host system type""... $ac_c" 1>&6
4796 echo "configure:4797: checking host system type" >&5
4799 case "$host_alias" in
4803 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
4804 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
4806 *) host_alias
=$nonopt ;;
4810 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
4811 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4812 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4813 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4814 echo "$ac_t""$host" 1>&6
4817 configuration
=$host_alias
4839 cat >> confdefs.h
<<\EOF
4843 case "${canonical}" in
4846 cat >> confdefs.h
<<\EOF
4853 cat >> confdefs.h
<<\EOF
4858 if test "x$TMP" = "xalpha"
4861 cat >> confdefs.h
<<\EOF
4867 *-*-irix5* | *-*-irix6* )
4870 cat >> confdefs.h
<<\EOF
4874 cat >> confdefs.h
<<\EOF
4883 cat >> confdefs.h
<<\EOF
4887 cat >> confdefs.h
<<\EOF
4888 #define __SOLARIS__ 1
4891 cat >> confdefs.h
<<\EOF
4900 cat >> confdefs.h
<<\EOF
4904 cat >> confdefs.h
<<\EOF
4908 cat >> confdefs.h
<<\EOF
4913 *-*-freebsd* | *-*-netbsd*)
4916 cat >> confdefs.h
<<\EOF
4917 #define __FREEBSD__ 1
4920 cat >> confdefs.h
<<\EOF
4928 cat >> confdefs.h
<<\EOF
4932 cat >> confdefs.h
<<\EOF
4940 cat >> confdefs.h
<<\EOF
4944 cat >> confdefs.h
<<\EOF
4952 cat >> confdefs.h
<<\EOF
4956 cat >> confdefs.h
<<\EOF
4965 cat >> confdefs.h
<<\EOF
4969 cat >> confdefs.h
<<\EOF
4973 cat >> confdefs.h
<<\EOF
4979 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
4984 rm -f ${OSTYPE}.system.cache.tmp
4985 touch ${OSTYPE}.system.cache.tmp
4986 touch ${OSTYPE}.system.cache
4991 DEFAULT_wxUSE_MOTIF
=0
4993 DEFAULT_wxUSE_THREADS
=0
4995 DEFAULT_wxUSE_SHARED
=1
4996 DEFAULT_wxUSE_OPTIMISE
=1
4997 DEFAULT_wxUSE_PROFILE
=0
4998 DEFAULT_wxUSE_DEBUG_FLAG
=0
4999 DEFAULT_wxUSE_DEBUG_INFO
=0
5000 DEFAULT_wxUSE_MEM_TRACING
=0
5001 DEFAULT_wxUSE_DMALLOC
=0
5002 DEFAULT_wxUSE_APPLE_IEEE
=1
5003 DEFAULT_wxUSE_IOSTREAMH
=1
5005 DEFAULT_wxUSE_ZLIB
=1
5006 DEFAULT_wxUSE_LIBPNG
=1
5007 DEFAULT_wxUSE_LIBJPEG
=0
5008 DEFAULT_wxUSE_ODBC
=1
5010 DEFAULT_wxUSE_TIMEDATE
=1
5011 DEFAULT_wxUSE_INTL
=1
5012 DEFAULT_wxUSE_CONFIG
=1
5013 DEFAULT_wxUSE_STREAMS
=1
5014 DEFAULT_wxUSE_SOCKETS
=0
5015 DEFAULT_wxUSE_SERIAL
=1
5016 DEFAULT_wxUSE_DYNLIB_CLASS
=1
5018 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
=1
5019 DEFAULT_WX_NORMALIZED_PS_FONTS
=1
5020 DEFAULT_wxUSE_POSTSCRIPT
=1
5023 DEFAULT_wxUSE_RESOURCES
=1
5024 DEFAULT_wxUSE_CLIPBOARD
=1
5025 DEFAULT_wxUSE_TOOLTIPS
=1
5026 DEFAULT_wxUSE_DRAG_AND_DROP
=1
5028 DEFAULT_wxUSE_MDI_ARCHITECTURE
=1
5029 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
=1
5030 DEFAULT_wxUSE_PRINTING_ARCHITECTURE
=1
5032 DEFAULT_wxUSE_PROLOGIO
=1
5033 DEFAULT_wxUSE_WX_RESOURCES
=1
5035 DEFAULT_wxUSE_HELP
=1
5037 DEFAULT_wxUSE_UNICODE
=1
5038 DEFAULT_wxUSE_WCSRTOMBS
=0
5042 echo $ac_n "checking "for gtk
"""... $ac_c" 1>&6
5043 echo "configure:5044: checking "for gtk
"" >&5
5044 # Check whether --with-gtk or --without-gtk was given.
5045 if test "${with_gtk+set}" = set; then
5047 if test "x$with_gtk" = xyes
; then
5048 ac_cv_use_gtk
='wxUSE_GTK="1"'
5050 ac_cv_use_gtk
='wxUSE_GTK="0"'
5054 LINE
=`grep "wxUSE_GTK" ${OSTYPE}.system.cache`
5055 if test "x$LINE" != x
; then
5056 eval "DEFAULT_$LINE"
5058 ac_cv_use_gtk
='wxUSE_GTK='$DEFAULT_wxUSE_GTK
5062 eval "$ac_cv_use_gtk"
5063 echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp
5064 if test "$wxUSE_GTK" = 1; then
5065 echo "$ac_t""yes" 1>&6
5067 echo "$ac_t""no" 1>&6
5072 echo $ac_n "checking "for qt
"""... $ac_c" 1>&6
5073 echo "configure:5074: checking "for qt
"" >&5
5074 # Check whether --with-qt or --without-qt was given.
5075 if test "${with_qt+set}" = set; then
5077 if test "x$with_qt" = xyes
; then
5078 ac_cv_use_qt
='wxUSE_QT="1"'
5080 ac_cv_use_qt
='wxUSE_QT="0"'
5084 LINE
=`grep "wxUSE_QT" ${OSTYPE}.system.cache`
5085 if test "x$LINE" != x
; then
5086 eval "DEFAULT_$LINE"
5088 ac_cv_use_qt
='wxUSE_QT='$DEFAULT_wxUSE_QT
5092 eval "$ac_cv_use_qt"
5093 echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp
5094 if test "$wxUSE_QT" = 1; then
5095 echo "$ac_t""yes" 1>&6
5097 echo "$ac_t""no" 1>&6
5102 echo $ac_n "checking "for motif
"""... $ac_c" 1>&6
5103 echo "configure:5104: checking "for motif
"" >&5
5104 # Check whether --with-motif or --without-motif was given.
5105 if test "${with_motif+set}" = set; then
5106 withval
="$with_motif"
5107 if test "x$with_motif" = xyes
; then
5108 ac_cv_use_motif
='wxUSE_MOTIF="1"'
5110 ac_cv_use_motif
='wxUSE_MOTIF="0"'
5114 LINE
=`grep "wxUSE_MOTIF" ${OSTYPE}.system.cache`
5115 if test "x$LINE" != x
; then
5116 eval "DEFAULT_$LINE"
5118 ac_cv_use_motif
='wxUSE_MOTIF='$DEFAULT_wxUSE_MOTIF
5122 eval "$ac_cv_use_motif"
5123 echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp
5124 if test "$wxUSE_MOTIF" = 1; then
5125 echo "$ac_t""yes" 1>&6
5127 echo "$ac_t""no" 1>&6
5133 echo $ac_n "checking "for shared
"""... $ac_c" 1>&6
5134 echo "configure:5135: checking "for shared
"" >&5
5135 # Check whether --with-shared or --without-shared was given.
5136 if test "${with_shared+set}" = set; then
5137 withval
="$with_shared"
5138 if test "x$with_shared" = xyes
; then
5139 ac_cv_use_shared
='wxUSE_SHARED="1"'
5141 ac_cv_use_shared
='wxUSE_SHARED="0"'
5145 LINE
=`grep "wxUSE_SHARED" ${OSTYPE}.system.cache`
5146 if test "x$LINE" != x
; then
5147 eval "DEFAULT_$LINE"
5149 ac_cv_use_shared
='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
5153 eval "$ac_cv_use_shared"
5154 echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
5155 if test "$wxUSE_SHARED" = 1; then
5156 echo "$ac_t""yes" 1>&6
5158 echo "$ac_t""no" 1>&6
5163 echo $ac_n "checking "for optimise
"""... $ac_c" 1>&6
5164 echo "configure:5165: checking "for optimise
"" >&5
5165 # Check whether --with-optimise or --without-optimise was given.
5166 if test "${with_optimise+set}" = set; then
5167 withval
="$with_optimise"
5168 if test "x$with_optimise" = xyes
; then
5169 ac_cv_use_optimise
='wxUSE_OPTIMISE="1"'
5171 ac_cv_use_optimise
='wxUSE_OPTIMISE="0"'
5175 LINE
=`grep "wxUSE_OPTIMISE" ${OSTYPE}.system.cache`
5176 if test "x$LINE" != x
; then
5177 eval "DEFAULT_$LINE"
5179 ac_cv_use_optimise
='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
5183 eval "$ac_cv_use_optimise"
5184 echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
5185 if test "$wxUSE_OPTIMISE" = 1; then
5186 echo "$ac_t""yes" 1>&6
5188 echo "$ac_t""no" 1>&6
5193 echo $ac_n "checking "for debug_flag
"""... $ac_c" 1>&6
5194 echo "configure:5195: checking "for debug_flag
"" >&5
5195 # Check whether --with-debug_flag or --without-debug_flag was given.
5196 if test "${with_debug_flag+set}" = set; then
5197 withval
="$with_debug_flag"
5198 if test "x$with_debug_flag" = xyes
; then
5199 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="1"'
5201 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="0"'
5205 LINE
=`grep "wxUSE_DEBUG_FLAG" ${OSTYPE}.system.cache`
5206 if test "x$LINE" != x
; then
5207 eval "DEFAULT_$LINE"
5209 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
5213 eval "$ac_cv_use_debug_flag"
5214 echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
5215 if test "$wxUSE_DEBUG_FLAG" = 1; then
5216 echo "$ac_t""yes" 1>&6
5218 echo "$ac_t""no" 1>&6
5223 echo $ac_n "checking "for debug_info
"""... $ac_c" 1>&6
5224 echo "configure:5225: checking "for debug_info
"" >&5
5225 # Check whether --with-debug_info or --without-debug_info was given.
5226 if test "${with_debug_info+set}" = set; then
5227 withval
="$with_debug_info"
5228 if test "x$with_debug_info" = xyes
; then
5229 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="1"'
5231 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="0"'
5235 LINE
=`grep "wxUSE_DEBUG_INFO" ${OSTYPE}.system.cache`
5236 if test "x$LINE" != x
; then
5237 eval "DEFAULT_$LINE"
5239 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
5243 eval "$ac_cv_use_debug_info"
5244 echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
5245 if test "$wxUSE_DEBUG_INFO" = 1; then
5246 echo "$ac_t""yes" 1>&6
5248 echo "$ac_t""no" 1>&6
5253 echo $ac_n "checking "for debug_gdb
"""... $ac_c" 1>&6
5254 echo "configure:5255: checking "for debug_gdb
"" >&5
5255 # Check whether --with-debug_gdb or --without-debug_gdb was given.
5256 if test "${with_debug_gdb+set}" = set; then
5257 withval
="$with_debug_gdb"
5258 if test "x$with_debug_gdb" = xyes
; then
5259 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="1"'
5261 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="0"'
5265 LINE
=`grep "wxUSE_DEBUG_GDB" ${OSTYPE}.system.cache`
5266 if test "x$LINE" != x
; then
5267 eval "DEFAULT_$LINE"
5269 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
5273 eval "$ac_cv_use_debug_gdb"
5274 echo $ac_cv_use_debug_gdb >> ${OSTYPE}.system.cache.tmp
5275 if test "$wxUSE_DEBUG_GDB" = 1; then
5276 echo "$ac_t""yes" 1>&6
5278 echo "$ac_t""no" 1>&6
5283 echo $ac_n "checking "for mem_tracing
"""... $ac_c" 1>&6
5284 echo "configure:5285: checking "for mem_tracing
"" >&5
5285 # Check whether --with-mem_tracing or --without-mem_tracing was given.
5286 if test "${with_mem_tracing+set}" = set; then
5287 withval
="$with_mem_tracing"
5288 if test "x$with_mem_tracing" = xyes
; then
5289 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="1"'
5291 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="0"'
5295 LINE
=`grep "wxUSE_MEM_TRACING" ${OSTYPE}.system.cache`
5296 if test "x$LINE" != x
; then
5297 eval "DEFAULT_$LINE"
5299 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
5303 eval "$ac_cv_use_mem_tracing"
5304 echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
5305 if test "$wxUSE_MEM_TRACING" = 1; then
5306 echo "$ac_t""yes" 1>&6
5308 echo "$ac_t""no" 1>&6
5313 echo $ac_n "checking "for dmalloc
"""... $ac_c" 1>&6
5314 echo "configure:5315: checking "for dmalloc
"" >&5
5315 # Check whether --with-dmalloc or --without-dmalloc was given.
5316 if test "${with_dmalloc+set}" = set; then
5317 withval
="$with_dmalloc"
5318 if test "x$with_dmalloc" = xyes
; then
5319 ac_cv_use_dmalloc
='wxUSE_DMALLOC="1"'
5321 ac_cv_use_dmalloc
='wxUSE_DMALLOC="0"'
5325 LINE
=`grep "wxUSE_DMALLOC" ${OSTYPE}.system.cache`
5326 if test "x$LINE" != x
; then
5327 eval "DEFAULT_$LINE"
5329 ac_cv_use_dmalloc
='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
5333 eval "$ac_cv_use_dmalloc"
5334 echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp
5335 if test "$wxUSE_DMALLOC" = 1; then
5336 echo "$ac_t""yes" 1>&6
5338 echo "$ac_t""no" 1>&6
5343 echo $ac_n "checking "for profile
"""... $ac_c" 1>&6
5344 echo "configure:5345: checking "for profile
"" >&5
5345 # Check whether --with-profile or --without-profile was given.
5346 if test "${with_profile+set}" = set; then
5347 withval
="$with_profile"
5348 if test "x$with_profile" = xyes
; then
5349 ac_cv_use_profile
='wxUSE_PROFILE="1"'
5351 ac_cv_use_profile
='wxUSE_PROFILE="0"'
5355 LINE
=`grep "wxUSE_PROFILE" ${OSTYPE}.system.cache`
5356 if test "x$LINE" != x
; then
5357 eval "DEFAULT_$LINE"
5359 ac_cv_use_profile
='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
5363 eval "$ac_cv_use_profile"
5364 echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
5365 if test "$wxUSE_PROFILE" = 1; then
5366 echo "$ac_t""yes" 1>&6
5368 echo "$ac_t""no" 1>&6
5373 echo $ac_n "checking "for apple_ieee
"""... $ac_c" 1>&6
5374 echo "configure:5375: checking "for apple_ieee
"" >&5
5375 # Check whether --with-apple_ieee or --without-apple_ieee was given.
5376 if test "${with_apple_ieee+set}" = set; then
5377 withval
="$with_apple_ieee"
5378 if test "x$with_apple_ieee" = xyes
; then
5379 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="1"'
5381 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="0"'
5385 LINE
=`grep "wxUSE_APPLE_IEEE" ${OSTYPE}.system.cache`
5386 if test "x$LINE" != x
; then
5387 eval "DEFAULT_$LINE"
5389 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5393 eval "$ac_cv_use_apple_ieee"
5394 echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp
5395 if test "$wxUSE_APPLE_IEEE" = 1; then
5396 echo "$ac_t""yes" 1>&6
5398 echo "$ac_t""no" 1>&6
5403 echo $ac_n "checking "for threads
"""... $ac_c" 1>&6
5404 echo "configure:5405: checking "for threads
"" >&5
5405 # Check whether --with-threads or --without-threads was given.
5406 if test "${with_threads+set}" = set; then
5407 withval
="$with_threads"
5408 if test "x$with_threads" = xyes
; then
5409 ac_cv_use_threads
='wxUSE_THREADS="1"'
5411 ac_cv_use_threads
='wxUSE_THREADS="0"'
5415 LINE
=`grep "wxUSE_THREADS" ${OSTYPE}.system.cache`
5416 if test "x$LINE" != x
; then
5417 eval "DEFAULT_$LINE"
5419 ac_cv_use_threads
='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5423 eval "$ac_cv_use_threads"
5424 echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
5425 if test "$wxUSE_THREADS" = 1; then
5426 echo "$ac_t""yes" 1>&6
5428 echo "$ac_t""no" 1>&6
5433 echo $ac_n "checking "for dynlib
"""... $ac_c" 1>&6
5434 echo "configure:5435: checking "for dynlib
"" >&5
5435 # Check whether --with-dynlib or --without-dynlib was given.
5436 if test "${with_dynlib+set}" = set; then
5437 withval
="$with_dynlib"
5438 if test "x$with_dynlib" = xyes
; then
5439 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="1"'
5441 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="0"'
5445 LINE
=`grep "wxUSE_DYNLIB_CLASS" ${OSTYPE}.system.cache`
5446 if test "x$LINE" != x
; then
5447 eval "DEFAULT_$LINE"
5449 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5453 eval "$ac_cv_use_dynlib"
5454 echo $ac_cv_use_dynlib >> ${OSTYPE}.system.cache.tmp
5455 if test "$wxUSE_DYNLIB_CLASS" = 1; then
5456 echo "$ac_t""yes" 1>&6
5458 echo "$ac_t""no" 1>&6
5464 echo $ac_n "checking "for zlib
"""... $ac_c" 1>&6
5465 echo "configure:5466: checking "for zlib
"" >&5
5466 # Check whether --with-zlib or --without-zlib was given.
5467 if test "${with_zlib+set}" = set; then
5468 withval
="$with_zlib"
5469 if test "x$with_zlib" = xyes
; then
5470 ac_cv_use_zlib
='wxUSE_ZLIB="1"'
5472 ac_cv_use_zlib
='wxUSE_ZLIB="0"'
5476 LINE
=`grep "wxUSE_ZLIB" ${OSTYPE}.system.cache`
5477 if test "x$LINE" != x
; then
5478 eval "DEFAULT_$LINE"
5480 ac_cv_use_zlib
='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
5484 eval "$ac_cv_use_zlib"
5485 echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
5486 if test "$wxUSE_ZLIB" = 1; then
5487 echo "$ac_t""yes" 1>&6
5489 echo "$ac_t""no" 1>&6
5494 echo $ac_n "checking "for libpng
"""... $ac_c" 1>&6
5495 echo "configure:5496: checking "for libpng
"" >&5
5496 # Check whether --with-libpng or --without-libpng was given.
5497 if test "${with_libpng+set}" = set; then
5498 withval
="$with_libpng"
5499 if test "x$with_libpng" = xyes
; then
5500 ac_cv_use_libpng
='wxUSE_LIBPNG="1"'
5502 ac_cv_use_libpng
='wxUSE_LIBPNG="0"'
5506 LINE
=`grep "wxUSE_LIBPNG" ${OSTYPE}.system.cache`
5507 if test "x$LINE" != x
; then
5508 eval "DEFAULT_$LINE"
5510 ac_cv_use_libpng
='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
5514 eval "$ac_cv_use_libpng"
5515 echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
5516 if test "$wxUSE_LIBPNG" = 1; then
5517 echo "$ac_t""yes" 1>&6
5519 echo "$ac_t""no" 1>&6
5524 echo $ac_n "checking "for libjpeg
"""... $ac_c" 1>&6
5525 echo "configure:5526: checking "for libjpeg
"" >&5
5526 # Check whether --with-libjpeg or --without-libjpeg was given.
5527 if test "${with_libjpeg+set}" = set; then
5528 withval
="$with_libjpeg"
5529 if test "x$with_libjpeg" = xyes
; then
5530 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="1"'
5532 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="0"'
5536 LINE
=`grep "wxUSE_LIBJPEG" ${OSTYPE}.system.cache`
5537 if test "x$LINE" != x
; then
5538 eval "DEFAULT_$LINE"
5540 ac_cv_use_libjpeg
='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
5544 eval "$ac_cv_use_libjpeg"
5545 echo $ac_cv_use_libjpeg >> ${OSTYPE}.system.cache.tmp
5546 if test "$wxUSE_LIBJPEG" = 1; then
5547 echo "$ac_t""yes" 1>&6
5549 echo "$ac_t""no" 1>&6
5554 echo $ac_n "checking "for odbc
"""... $ac_c" 1>&6
5555 echo "configure:5556: checking "for odbc
"" >&5
5556 # Check whether --with-odbc or --without-odbc was given.
5557 if test "${with_odbc+set}" = set; then
5558 withval
="$with_odbc"
5559 if test "x$with_odbc" = xyes
; then
5560 ac_cv_use_odbc
='wxUSE_ODBC="1"'
5562 ac_cv_use_odbc
='wxUSE_ODBC="0"'
5566 LINE
=`grep "wxUSE_ODBC" ${OSTYPE}.system.cache`
5567 if test "x$LINE" != x
; then
5568 eval "DEFAULT_$LINE"
5570 ac_cv_use_odbc
='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
5574 eval "$ac_cv_use_odbc"
5575 echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp
5576 if test "$wxUSE_ODBC" = 1; then
5577 echo "$ac_t""yes" 1>&6
5579 echo "$ac_t""no" 1>&6
5585 echo $ac_n "checking "for timedate
"""... $ac_c" 1>&6
5586 echo "configure:5587: checking "for timedate
"" >&5
5587 # Check whether --with-timedate or --without-timedate was given.
5588 if test "${with_timedate+set}" = set; then
5589 withval
="$with_timedate"
5590 if test "x$with_timedate" = xyes
; then
5591 ac_cv_use_timedate
='wxUSE_TIMEDATE="1"'
5593 ac_cv_use_timedate
='wxUSE_TIMEDATE="0"'
5597 LINE
=`grep "wxUSE_TIMEDATE" ${OSTYPE}.system.cache`
5598 if test "x$LINE" != x
; then
5599 eval "DEFAULT_$LINE"
5601 ac_cv_use_timedate
='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
5605 eval "$ac_cv_use_timedate"
5606 echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
5607 if test "$wxUSE_TIMEDATE" = 1; then
5608 echo "$ac_t""yes" 1>&6
5610 echo "$ac_t""no" 1>&6
5615 echo $ac_n "checking "for intl
"""... $ac_c" 1>&6
5616 echo "configure:5617: checking "for intl
"" >&5
5617 # Check whether --with-intl or --without-intl was given.
5618 if test "${with_intl+set}" = set; then
5619 withval
="$with_intl"
5620 if test "x$with_intl" = xyes
; then
5621 ac_cv_use_intl
='wxUSE_INTL="1"'
5623 ac_cv_use_intl
='wxUSE_INTL="0"'
5627 LINE
=`grep "wxUSE_INTL" ${OSTYPE}.system.cache`
5628 if test "x$LINE" != x
; then
5629 eval "DEFAULT_$LINE"
5631 ac_cv_use_intl
='wxUSE_INTL='$DEFAULT_wxUSE_INTL
5635 eval "$ac_cv_use_intl"
5636 echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp
5637 if test "$wxUSE_INTL" = 1; then
5638 echo "$ac_t""yes" 1>&6
5640 echo "$ac_t""no" 1>&6
5645 echo $ac_n "checking "for config
"""... $ac_c" 1>&6
5646 echo "configure:5647: checking "for config
"" >&5
5647 # Check whether --with-config or --without-config was given.
5648 if test "${with_config+set}" = set; then
5649 withval
="$with_config"
5650 if test "x$with_config" = xyes
; then
5651 ac_cv_use_config
='wxUSE_CONFIG="1"'
5653 ac_cv_use_config
='wxUSE_CONFIG="0"'
5657 LINE
=`grep "wxUSE_CONFIG" ${OSTYPE}.system.cache`
5658 if test "x$LINE" != x
; then
5659 eval "DEFAULT_$LINE"
5661 ac_cv_use_config
='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
5665 eval "$ac_cv_use_config"
5666 echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp
5667 if test "$wxUSE_CONFIG" = 1; then
5668 echo "$ac_t""yes" 1>&6
5670 echo "$ac_t""no" 1>&6
5675 echo $ac_n "checking "for streams
"""... $ac_c" 1>&6
5676 echo "configure:5677: checking "for streams
"" >&5
5677 # Check whether --with-streams or --without-streams was given.
5678 if test "${with_streams+set}" = set; then
5679 withval
="$with_streams"
5680 if test "x$with_streams" = xyes
; then
5681 ac_cv_use_streams
='wxUSE_STREAMS="1"'
5683 ac_cv_use_streams
='wxUSE_STREAMS="0"'
5687 LINE
=`grep "wxUSE_STREAMS" ${OSTYPE}.system.cache`
5688 if test "x$LINE" != x
; then
5689 eval "DEFAULT_$LINE"
5691 ac_cv_use_streams
='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5695 eval "$ac_cv_use_streams"
5696 echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp
5697 if test "$wxUSE_STREAMS" = 1; then
5698 echo "$ac_t""yes" 1>&6
5700 echo "$ac_t""no" 1>&6
5705 echo $ac_n "checking "for serial
"""... $ac_c" 1>&6
5706 echo "configure:5707: checking "for serial
"" >&5
5707 # Check whether --with-serial or --without-serial was given.
5708 if test "${with_serial+set}" = set; then
5709 withval
="$with_serial"
5710 if test "x$with_serial" = xyes
; then
5711 ac_cv_use_serial
='wxUSE_SERIAL="1"'
5713 ac_cv_use_serial
='wxUSE_SERIAL="0"'
5717 LINE
=`grep "wxUSE_SERIAL" ${OSTYPE}.system.cache`
5718 if test "x$LINE" != x
; then
5719 eval "DEFAULT_$LINE"
5721 ac_cv_use_serial
='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
5725 eval "$ac_cv_use_serial"
5726 echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp
5727 if test "$wxUSE_SERIAL" = 1; then
5728 echo "$ac_t""yes" 1>&6
5730 echo "$ac_t""no" 1>&6
5735 echo $ac_n "checking "for sockets
"""... $ac_c" 1>&6
5736 echo "configure:5737: checking "for sockets
"" >&5
5737 # Check whether --with-sockets or --without-sockets was given.
5738 if test "${with_sockets+set}" = set; then
5739 withval
="$with_sockets"
5740 if test "x$with_sockets" = xyes
; then
5741 ac_cv_use_sockets
='wxUSE_SOCKETS="1"'
5743 ac_cv_use_sockets
='wxUSE_SOCKETS="0"'
5747 LINE
=`grep "wxUSE_SOCKETS" ${OSTYPE}.system.cache`
5748 if test "x$LINE" != x
; then
5749 eval "DEFAULT_$LINE"
5751 ac_cv_use_sockets
='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
5755 eval "$ac_cv_use_sockets"
5756 echo $ac_cv_use_sockets >> ${OSTYPE}.system.cache.tmp
5757 if test "$wxUSE_SOCKETS" = 1; then
5758 echo "$ac_t""yes" 1>&6
5760 echo "$ac_t""no" 1>&6
5766 echo $ac_n "checking "for afmfonts
"""... $ac_c" 1>&6
5767 echo "configure:5768: checking "for afmfonts
"" >&5
5768 # Check whether --with-afmfonts or --without-afmfonts was given.
5769 if test "${with_afmfonts+set}" = set; then
5770 withval
="$with_afmfonts"
5771 if test "x$with_afmfonts" = xyes
; then
5772 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="1"'
5774 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="0"'
5778 LINE
=`grep "wxUSE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
5779 if test "x$LINE" != x
; then
5780 eval "DEFAULT_$LINE"
5782 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT='$DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
5786 eval "$ac_cv_use_afmfonts"
5787 echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
5788 if test "$wxUSE_AFM_FOR_POSTSCRIPT" = 1; then
5789 echo "$ac_t""yes" 1>&6
5791 echo "$ac_t""no" 1>&6
5796 echo $ac_n "checking "for normalized
"""... $ac_c" 1>&6
5797 echo "configure:5798: checking "for normalized
"" >&5
5798 # Check whether --with-normalized or --without-normalized was given.
5799 if test "${with_normalized+set}" = set; then
5800 withval
="$with_normalized"
5801 if test "x$with_normalized" = xyes
; then
5802 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="1"'
5804 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="0"'
5808 LINE
=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
5809 if test "x$LINE" != x
; then
5810 eval "DEFAULT_$LINE"
5812 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
5816 eval "$ac_cv_use_normalized"
5817 echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
5818 if test "$WX_NORMALIZED_PS_FONTS" = 1; then
5819 echo "$ac_t""yes" 1>&6
5821 echo "$ac_t""no" 1>&6
5826 echo $ac_n "checking "for postscript
"""... $ac_c" 1>&6
5827 echo "configure:5828: checking "for postscript
"" >&5
5828 # Check whether --with-postscript or --without-postscript was given.
5829 if test "${with_postscript+set}" = set; then
5830 withval
="$with_postscript"
5831 if test "x$with_postscript" = xyes
; then
5832 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="1"'
5834 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="0"'
5838 LINE
=`grep "wxUSE_POSTSCRIPT" ${OSTYPE}.system.cache`
5839 if test "x$LINE" != x
; then
5840 eval "DEFAULT_$LINE"
5842 ac_cv_use_postscript
='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5846 eval "$ac_cv_use_postscript"
5847 echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
5848 if test "$wxUSE_POSTSCRIPT" = 1; then
5849 echo "$ac_t""yes" 1>&6
5851 echo "$ac_t""no" 1>&6
5857 echo $ac_n "checking "for unicode
"""... $ac_c" 1>&6
5858 echo "configure:5859: checking "for unicode
"" >&5
5859 # Check whether --with-unicode or --without-unicode was given.
5860 if test "${with_unicode+set}" = set; then
5861 withval
="$with_unicode"
5862 if test "x$with_unicode" = xyes
; then
5863 ac_cv_use_unicode
='wxUSE_UNICODE="1"'
5865 ac_cv_use_unicode
='wxUSE_UNICODE="0"'
5869 LINE
=`grep "wxUSE_UNICODE" ${OSTYPE}.system.cache`
5870 if test "x$LINE" != x
; then
5871 eval "DEFAULT_$LINE"
5873 ac_cv_use_unicode
='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5877 eval "$ac_cv_use_unicode"
5878 echo $ac_cv_use_unicode >> ${OSTYPE}.system.cache.tmp
5879 if test "$wxUSE_UNICODE" = 1; then
5880 echo "$ac_t""yes" 1>&6
5882 echo "$ac_t""no" 1>&6
5887 echo $ac_n "checking "for wcsrtombs
"""... $ac_c" 1>&6
5888 echo "configure:5889: checking "for wcsrtombs
"" >&5
5889 # Check whether --with-wcsrtombs or --without-wcsrtombs was given.
5890 if test "${with_wcsrtombs+set}" = set; then
5891 withval
="$with_wcsrtombs"
5892 if test "x$with_wcsrtombs" = xyes
; then
5893 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="1"'
5895 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="0"'
5899 LINE
=`grep "wxUSE_WCSRTOMBS" ${OSTYPE}.system.cache`
5900 if test "x$LINE" != x
; then
5901 eval "DEFAULT_$LINE"
5903 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
5907 eval "$ac_cv_use_wcsrtombs"
5908 echo $ac_cv_use_wcsrtombs >> ${OSTYPE}.system.cache.tmp
5909 if test "$wxUSE_WCSRTOMBS" = 1; then
5910 echo "$ac_t""yes" 1>&6
5912 echo "$ac_t""no" 1>&6
5918 echo $ac_n "checking "for wxresources
"""... $ac_c" 1>&6
5919 echo "configure:5920: checking "for wxresources
"" >&5
5920 # Check whether --with-wxresources or --without-wxresources was given.
5921 if test "${with_wxresources+set}" = set; then
5922 withval
="$with_wxresources"
5923 if test "x$with_wxresources" = xyes
; then
5924 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="1"'
5926 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="0"'
5930 LINE
=`grep "wxUSE_WX_RESOURCES" ${OSTYPE}.system.cache`
5931 if test "x$LINE" != x
; then
5932 eval "DEFAULT_$LINE"
5934 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES='$DEFAULT_wxUSE_WX_RESOURCES
5938 eval "$ac_cv_use_wxresources"
5939 echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
5940 if test "$wxUSE_WX_RESOURCES" = 1; then
5941 echo "$ac_t""yes" 1>&6
5943 echo "$ac_t""no" 1>&6
5948 echo $ac_n "checking "for prologio
"""... $ac_c" 1>&6
5949 echo "configure:5950: checking "for prologio
"" >&5
5950 # Check whether --with-prologio or --without-prologio was given.
5951 if test "${with_prologio+set}" = set; then
5952 withval
="$with_prologio"
5953 if test "x$with_prologio" = xyes
; then
5954 ac_cv_use_prologio
='wxUSE_PROLOGIO="1"'
5956 ac_cv_use_prologio
='wxUSE_PROLOGIO="0"'
5960 LINE
=`grep "wxUSE_PROLOGIO" ${OSTYPE}.system.cache`
5961 if test "x$LINE" != x
; then
5962 eval "DEFAULT_$LINE"
5964 ac_cv_use_prologio
='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5968 eval "$ac_cv_use_prologio"
5969 echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
5970 if test "$wxUSE_PROLOGIO" = 1; then
5971 echo "$ac_t""yes" 1>&6
5973 echo "$ac_t""no" 1>&6
5978 echo $ac_n "checking "for RPC
"""... $ac_c" 1>&6
5979 echo "configure:5980: checking "for RPC
"" >&5
5980 # Check whether --with-rpc or --without-rpc was given.
5981 if test "${with_rpc+set}" = set; then
5983 if test "x$with_rpc" = xyes
; then
5984 ac_cv_use_rpc
='wxUSE_RPC="1"'
5986 ac_cv_use_rpc
='wxUSE_RPC="0"'
5990 LINE
=`grep "wxUSE_RPC" ${OSTYPE}.system.cache`
5991 if test "x$LINE" != x
; then
5992 eval "DEFAULT_$LINE"
5994 ac_cv_use_rpc
='wxUSE_RPC='$DEFAULT_wxUSE_RPC
5998 eval "$ac_cv_use_rpc"
5999 echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
6000 if test "$wxUSE_RPC" = 1; then
6001 echo "$ac_t""yes" 1>&6
6003 echo "$ac_t""no" 1>&6
6009 echo $ac_n "checking "for IPC
"""... $ac_c" 1>&6
6010 echo "configure:6011: checking "for IPC
"" >&5
6011 # Check whether --with-ipc or --without-ipc was given.
6012 if test "${with_ipc+set}" = set; then
6014 if test "x$with_ipc" = xyes
; then
6015 ac_cv_use_ipc
='wxUSE_IPC="1"'
6017 ac_cv_use_ipc
='wxUSE_IPC="0"'
6021 LINE
=`grep "wxUSE_IPC" ${OSTYPE}.system.cache`
6022 if test "x$LINE" != x
; then
6023 eval "DEFAULT_$LINE"
6025 ac_cv_use_ipc
='wxUSE_IPC='$DEFAULT_wxUSE_IPC
6029 eval "$ac_cv_use_ipc"
6030 echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
6031 if test "$wxUSE_IPC" = 1; then
6032 echo "$ac_t""yes" 1>&6
6034 echo "$ac_t""no" 1>&6
6039 echo $ac_n "checking "for resources
"""... $ac_c" 1>&6
6040 echo "configure:6041: checking "for resources
"" >&5
6041 # Check whether --with-resources or --without-resources was given.
6042 if test "${with_resources+set}" = set; then
6043 withval
="$with_resources"
6044 if test "x$with_resources" = xyes
; then
6045 ac_cv_use_resources
='wxUSE_RESOURCES="1"'
6047 ac_cv_use_resources
='wxUSE_RESOURCES="0"'
6051 LINE
=`grep "wxUSE_RESOURCES" ${OSTYPE}.system.cache`
6052 if test "x$LINE" != x
; then
6053 eval "DEFAULT_$LINE"
6055 ac_cv_use_resources
='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6059 eval "$ac_cv_use_resources"
6060 echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
6061 if test "$wxUSE_RESOURCES" = 1; then
6062 echo "$ac_t""yes" 1>&6
6064 echo "$ac_t""no" 1>&6
6069 echo $ac_n "checking "for clipboard
"""... $ac_c" 1>&6
6070 echo "configure:6071: checking "for clipboard
"" >&5
6071 # Check whether --with-clipboard or --without-clipboard was given.
6072 if test "${with_clipboard+set}" = set; then
6073 withval
="$with_clipboard"
6074 if test "x$with_clipboard" = xyes
; then
6075 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="1"'
6077 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="0"'
6081 LINE
=`grep "wxUSE_CLIPBOARD" ${OSTYPE}.system.cache`
6082 if test "x$LINE" != x
; then
6083 eval "DEFAULT_$LINE"
6085 ac_cv_use_clipboard
='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6089 eval "$ac_cv_use_clipboard"
6090 echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
6091 if test "$wxUSE_CLIPBOARD" = 1; then
6092 echo "$ac_t""yes" 1>&6
6094 echo "$ac_t""no" 1>&6
6099 echo $ac_n "checking "for tooltips
"""... $ac_c" 1>&6
6100 echo "configure:6101: checking "for tooltips
"" >&5
6101 # Check whether --with-tooltips or --without-tooltips was given.
6102 if test "${with_tooltips+set}" = set; then
6103 withval
="$with_tooltips"
6104 if test "x$with_tooltips" = xyes
; then
6105 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="1"'
6107 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="0"'
6111 LINE
=`grep "wxUSE_TOOLTIPS" ${OSTYPE}.system.cache`
6112 if test "x$LINE" != x
; then
6113 eval "DEFAULT_$LINE"
6115 ac_cv_use_tooltips
='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6119 eval "$ac_cv_use_tooltips"
6120 echo $ac_cv_use_tooltips >> ${OSTYPE}.system.cache.tmp
6121 if test "$wxUSE_TOOLTIPS" = 1; then
6122 echo "$ac_t""yes" 1>&6
6124 echo "$ac_t""no" 1>&6
6129 echo $ac_n "checking "for dnd
"""... $ac_c" 1>&6
6130 echo "configure:6131: checking "for dnd
"" >&5
6131 # Check whether --with-dnd or --without-dnd was given.
6132 if test "${with_dnd+set}" = set; then
6134 if test "x$with_dnd" = xyes
; then
6135 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="1"'
6137 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="0"'
6141 LINE
=`grep "wxUSE_DRAG_AND_DROP" ${OSTYPE}.system.cache`
6142 if test "x$LINE" != x
; then
6143 eval "DEFAULT_$LINE"
6145 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6149 eval "$ac_cv_use_dnd"
6150 echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp
6151 if test "$wxUSE_DRAG_AND_DROP" = 1; then
6152 echo "$ac_t""yes" 1>&6
6154 echo "$ac_t""no" 1>&6
6160 echo $ac_n "checking "for mdi
"""... $ac_c" 1>&6
6161 echo "configure:6162: checking "for mdi
"" >&5
6162 # Check whether --with-mdi or --without-mdi was given.
6163 if test "${with_mdi+set}" = set; then
6165 if test "x$with_mdi" = xyes
; then
6166 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="1"'
6168 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="0"'
6172 LINE
=`grep "wxUSE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache`
6173 if test "x$LINE" != x
; then
6174 eval "DEFAULT_$LINE"
6176 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6180 eval "$ac_cv_use_mdi"
6181 echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp
6182 if test "$wxUSE_MDI_ARCHITECTURE" = 1; then
6183 echo "$ac_t""yes" 1>&6
6185 echo "$ac_t""no" 1>&6
6190 echo $ac_n "checking "for docview
"""... $ac_c" 1>&6
6191 echo "configure:6192: checking "for docview
"" >&5
6192 # Check whether --with-docview or --without-docview was given.
6193 if test "${with_docview+set}" = set; then
6194 withval
="$with_docview"
6195 if test "x$with_docview" = xyes
; then
6196 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="1"'
6198 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="0"'
6202 LINE
=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
6203 if test "x$LINE" != x
; then
6204 eval "DEFAULT_$LINE"
6206 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6210 eval "$ac_cv_use_docview"
6211 echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
6212 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1; then
6213 echo "$ac_t""yes" 1>&6
6215 echo "$ac_t""no" 1>&6
6220 echo $ac_n "checking "for printarch
"""... $ac_c" 1>&6
6221 echo "configure:6222: checking "for printarch
"" >&5
6222 # Check whether --with-printarch or --without-printarch was given.
6223 if test "${with_printarch+set}" = set; then
6224 withval
="$with_printarch"
6225 if test "x$with_printarch" = xyes
; then
6226 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="1"'
6228 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="0"'
6232 LINE
=`grep "wxUSE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
6233 if test "x$LINE" != x
; then
6234 eval "DEFAULT_$LINE"
6236 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6240 eval "$ac_cv_use_printarch"
6241 echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
6242 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1; then
6243 echo "$ac_t""yes" 1>&6
6245 echo "$ac_t""no" 1>&6
6250 echo $ac_n "checking "for help"""... $ac_c" 1>&6
6251 echo "configure:6252: checking "for help"" >&5
6252 # Check whether --with-help or --without-help was given.
6253 if test "${with_help+set}" = set; then
6254 withval
="$with_help"
6255 if test "x$with_help" = xyes
; then
6256 ac_cv_use_help
='wxUSE_HELP="1"'
6258 ac_cv_use_help
='wxUSE_HELP="0"'
6262 LINE
=`grep "wxUSE_HELP" ${OSTYPE}.system.cache`
6263 if test "x$LINE" != x
; then
6264 eval "DEFAULT_$LINE"
6266 ac_cv_use_help
='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6270 eval "$ac_cv_use_help"
6271 echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
6272 if test "$wxUSE_HELP" = 1; then
6273 echo "$ac_t""yes" 1>&6
6275 echo "$ac_t""no" 1>&6
6280 if test "$wxUSE_UNIX" = 1 ; then
6281 cat >> confdefs.h
<<\EOF
6287 if test "$USE_LINUX" = 1; then
6288 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
6289 echo "configure:6290: checking for gettext in -lc" >&5
6290 ac_lib_var
=`echo c'_'gettext | sed 'y%./+-%__p_%'`
6291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6292 echo $ac_n "(cached) $ac_c" 1>&6
6294 ac_save_LIBS
="$LIBS"
6296 cat > conftest.
$ac_ext <<EOF
6297 #line 6298 "configure"
6298 #include "confdefs.h"
6299 /* Override any gcc2 internal prototype to avoid an error. */
6300 /* We use char because int might match the return type of a gcc2
6301 builtin and then its argument prototype would still apply. */
6308 if { (eval echo configure
:6309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6310 eval "ac_cv_lib_$ac_lib_var=yes"
6312 echo "configure: failed program was:" >&5
6313 cat conftest.
$ac_ext >&5
6315 eval "ac_cv_lib_$ac_lib_var=no"
6318 LIBS
="$ac_save_LIBS"
6321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6322 echo "$ac_t""yes" 1>&6
6323 cat >> confdefs.h
<<\EOF
6324 #define wxHAVE_GLIBC2 1
6328 echo "$ac_t""no" 1>&6
6345 if test "$wxUSE_GTK" = 1; then
6346 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6347 if test "${with_gtk_prefix+set}" = set; then
6348 withval
="$with_gtk_prefix"
6349 gtk_config_prefix
="$withval"
6351 gtk_config_prefix
=""
6354 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
6355 if test "${with_gtk_exec_prefix+set}" = set; then
6356 withval
="$with_gtk_exec_prefix"
6357 gtk_config_exec_prefix
="$withval"
6359 gtk_config_exec_prefix
=""
6363 if test x
$gtk_config_exec_prefix != x
; then
6364 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6365 if test x
${GTK_CONFIG+set} != xset
; then
6366 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
6369 if test x
$gtk_config_prefix != x
; then
6370 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
6371 if test x
${GTK_CONFIG+set} != xset
; then
6372 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
6376 # Extract the first word of "gtk-config", so it can be a program name with args.
6377 set dummy gtk
-config; ac_word
=$2
6378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6379 echo "configure:6380: checking for $ac_word" >&5
6380 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6381 echo $ac_n "(cached) $ac_c" 1>&6
6383 case "$GTK_CONFIG" in
6385 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
6388 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a dos path.
6391 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6393 for ac_dir
in $ac_dummy; do
6394 test -z "$ac_dir" && ac_dir
=.
6395 if test -f $ac_dir/$ac_word; then
6396 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
6401 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
6405 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
6406 if test -n "$GTK_CONFIG"; then
6407 echo "$ac_t""$GTK_CONFIG" 1>&6
6409 echo "$ac_t""no" 1>&6
6412 min_gtk_version
=1.0.4
6413 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6414 echo "configure:6415: checking for GTK - version >= $min_gtk_version" >&5
6416 if test "$GTK_CONFIG" != "no" ; then
6417 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
6418 GTK_LIBS
=`$GTK_CONFIG --libs`
6419 ac_save_CFLAGS
="$CFLAGS"
6420 ac_save_LIBS
="$LIBS"
6421 CFLAGS
="$CFLAGS $GTK_CFLAGS"
6422 LIBS
="$LIBS $GTK_LIBS"
6423 if test "$cross_compiling" = yes; then
6424 echo $ac_n "cross compiling; assumed OK... $ac_c"
6426 cat > conftest.
$ac_ext <<EOF
6427 #line 6428 "configure"
6428 #include "confdefs.h"
6430 #include <gtk/gtk.h>
6436 int major, minor, micro;
6438 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
6439 printf("%s, bad version string\n", "$min_gtk_version");
6443 if (gtk_minor_version > 0) return FALSE;
6445 return !((gtk_major_version > major) ||
6446 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6447 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6451 if { (eval echo configure
:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6455 echo "configure: failed program was:" >&5
6456 cat conftest.
$ac_ext >&5
6463 CFLAGS
="$ac_save_CFLAGS"
6464 LIBS
="$ac_save_LIBS"
6468 if test "x$no_gtk" = x
; then
6469 echo "$ac_t""yes" 1>&6
6471 GUI_TK_INCLUDE
="$GTK_CFLAGS"
6472 GUI_TK_LIBRARY
="$GTK_LIBS"
6475 echo "$ac_t""no" 1>&6
6478 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.0.4 up-to 1.0.6?" 1>&2; exit 1; }
6484 TOOLKIT_DEF
=__WXGTK__
6486 MAKEINCLUDE
=..
/gtk.inc
6489 if test "$wxUSE_QT" = 1; then
6490 echo $ac_n "checking for Qt includes""... $ac_c" 1>&6
6491 echo "configure:6492: checking for Qt includes" >&5
6494 for ac_dir
in $SEARCH_INCLUDE;
6496 if test -f "$ac_dir/qapp.h"; then
6497 ac_find_includes
=$ac_dir
6502 if test "$ac_find_includes" != "" ; then
6503 echo "$ac_t""found $ac_find_includes" 1>&6
6504 echo $ac_n "checking for Qt library""... $ac_c" 1>&6
6505 echo "configure:6506: checking for Qt library" >&5
6508 for ac_dir
in $SEARCH_LIB;
6510 for ac_extension
in a so sl
; do
6511 if test -f "$ac_dir/libqt.$ac_extension"; then
6512 ac_find_libraries
=$ac_dir
6518 if test "$ac_find_libraries" != "" ; then
6520 ac_path_to_include
=$ac_find_includes
6521 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
6523 if test $result = 0; then
6524 ac_path_to_include
=""
6526 ac_path_to_include
="-I$ac_find_includes"
6530 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6532 if test $result = 0; then
6535 ac_path_to_link
="-L$ac_find_libraries"
6538 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
6539 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
6540 echo "$ac_t""found Qt at $ac_find_libraries" 1>&6
6542 { echo "configure: error: no" 1>&2; exit 1; }
6545 { echo "configure: error: no" 1>&2; exit 1; }
6547 GUI_TK_LINK
="-lX11 -lqt -lm"
6549 TOOLKIT_DEF
=__WXQT__
6551 MAKEINCLUDE
=..
/qt.inc
6554 if test "$wxUSE_MOTIF" = 1; then
6555 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
6556 echo "configure:6557: checking for Motif/Lesstif includes" >&5
6559 for ac_dir
in $SEARCH_INCLUDE;
6561 if test -f "$ac_dir/Xm/Xm.h"; then
6562 ac_find_includes
=$ac_dir
6567 if test "$ac_find_includes" != "" ; then
6568 echo "$ac_t""found $ac_find_includes" 1>&6
6569 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
6570 echo "configure:6571: checking for Motif/Lesstif library" >&5
6573 for ac_dir
in $SEARCH_LIB;
6575 for ac_extension
in a so sl
; do
6576 if test -f "$ac_dir/libXm.$ac_extension"; then
6577 ac_find_libraries
=$ac_dir
6583 if test "$ac_find_libraries" != "" ; then
6585 ac_path_to_include
=$ac_find_includes
6586 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
6588 if test $result = 0; then
6589 ac_path_to_include
=""
6591 ac_path_to_include
="-I$ac_find_includes"
6595 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6597 if test $result = 0; then
6600 ac_path_to_link
="-L$ac_find_libraries"
6603 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6604 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
6605 echo "$ac_t""found at $ac_find_libraries" 1>&6
6606 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
6607 echo "configure:6608: checking for Xt library" >&5
6610 for ac_dir
in $SEARCH_LIB;
6612 for ac_extension
in a so sl
; do
6613 if test -f "$ac_dir/libXt.$ac_extension"; then
6614 ac_find_libraries
=$ac_dir
6620 if test "$ac_find_libraries" != "" ; then
6622 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6624 if test $result = 0; then
6627 ac_path_to_link
="-L$ac_find_libraries"
6630 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6631 echo "$ac_t""found at $ac_find_libraries" 1>&6
6632 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6633 echo "configure:6634: checking for Xpm library" >&5
6636 for ac_dir
in $SEARCH_LIB;
6638 for ac_extension
in a so sl
; do
6639 if test -f "$ac_dir/libXpm.$ac_extension"; then
6640 ac_find_libraries
=$ac_dir
6646 if test "$ac_find_libraries" != "" ; then
6648 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6650 if test $result = 0; then
6653 ac_path_to_link
="-L$ac_find_libraries"
6656 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6657 echo "$ac_t""found at $ac_find_libraries" 1>&6
6659 { echo "configure: error: no" 1>&2; exit 1; }
6662 { echo "configure: error: no" 1>&2; exit 1; }
6665 { echo "configure: error: no" 1>&2; exit 1; }
6668 { echo "configure: error: no" 1>&2; exit 1; }
6671 GUI_TK_LINK
="-lXm -lXpm -lXmu -lXt -lX11 -lm"
6672 GUI_TK_LIBRARY
="$CHECK_LIB $GUI_TK_LINK"
6674 TOOLKIT_DEF
="__WXMOTIF__ -D__LINUX__ -D__UNIX__"
6676 MAKEINCLUDE
=..
/motif.inc
6679 if test "$TOOLKIT" = ""; then
6680 { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; }
6698 if test "$wxUSE_DEBUG_GDB" = 1 ; then
6703 if test "$wxUSE_DEBUG_INFO" = 1 ; then
6707 EXTRA_LINK
="-s $EXTRA_LINK"
6712 if test "$wxUSE_DEBUG_FLAG" = 1 ; then
6713 cat >> confdefs.h
<<EOF
6714 #define WXDEBUG $wxUSE_DEBUG_FLAG
6717 WXDEBUG_DEFINE
="-D__WXDEBUG__"
6720 WXDEBUG_DEFINE
="-DGTK_NO_CHECK_CASTS"
6724 if test "$wxUSE_MEM_TRACING" = 1 ; then
6725 cat >> confdefs.h
<<EOF
6726 #define wxUSE_MEMORY_TRACING $wxUSE_MEM_TRACING
6729 cat >> confdefs.h
<<EOF
6730 #define wxUSE_GLOBAL_MEMORY_OPERATORS $wxUSE_MEM_TRACING
6735 if test "$wxUSE_DMALLOC" = 1 ; then
6736 EXTRA_LINK
="$EXTRA_LINK -ldmalloc"
6741 if test "$wxUSE_PROFILE" = 1 ; then
6746 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
6747 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
6748 if test "$wxUSE_OPTIMISE" = 0 ; then
6751 if test "$GCC" = yes ; then
6753 case "${canonical}" in
6755 OPTIMISE
="${OPTIMISE} "
6765 if test "$wxUSE_APPLE_IEEE" = 1 ; then
6766 APPLE_IEEE
="APPLE_IEEE"
6767 cat >> confdefs.h
<<EOF
6768 #define wxUSE_APPLE_IEEE $wxUSE_APPLE_IEEE
6773 wxUSE_IOSTREAMH
=$DEFAULT_wxUSE_IOSTREAMH
6774 cat >> confdefs.h
<<EOF
6775 #define wxUSE_IOSTREAMH $wxUSE_IOSTREAMH
6780 if test "$wxUSE_ZLIB" = 1 ; then
6781 cat >> confdefs.h
<<EOF
6782 #define wxUSE_ZLIB $wxUSE_ZLIB
6785 Z_C_SRC
="\$(Z_C_SRC)"
6789 if test "$wxUSE_LIBPNG" = 1 ; then
6790 cat >> confdefs.h
<<EOF
6791 #define wxUSE_LIBPNG $wxUSE_LIBPNG
6794 PNG_C_SRC
="\$(PNG_C_SRC)"
6799 if test "$wxUSE_LIBJPEG" = 1 ; then
6800 cat >> confdefs.h
<<EOF
6801 #define wxUSE_LIBJPEG $wxUSE_LIBJPEG
6804 echo $ac_n "checking for in -ljpeg""... $ac_c" 1>&6
6805 echo "configure:6806: checking for in -ljpeg" >&5
6806 ac_lib_var
=`echo jpeg'_' | sed 'y%./+-%__p_%'`
6807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6808 echo $ac_n "(cached) $ac_c" 1>&6
6810 ac_save_LIBS
="$LIBS"
6812 cat > conftest.
$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6815 /* Override any gcc2 internal prototype to avoid an error. */
6816 /* We use char because int might match the return type of a gcc2
6817 builtin and then its argument prototype would still apply. */
6824 if { (eval echo configure
:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6826 eval "ac_cv_lib_$ac_lib_var=yes"
6828 echo "configure: failed program was:" >&5
6829 cat conftest.
$ac_ext >&5
6831 eval "ac_cv_lib_$ac_lib_var=no"
6834 LIBS
="$ac_save_LIBS"
6837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6838 echo "$ac_t""yes" 1>&6
6839 ac_tr_lib
=HAVE_LIB
`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6840 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6841 cat >> confdefs.h
<<EOF
6842 #define $ac_tr_lib 1
6848 echo "$ac_t""no" 1>&6
6856 if test "$wxUSE_ODBC" = 1 ; then
6857 cat >> confdefs.h
<<EOF
6858 #define wxUSE_ODBC $wxUSE_ODBC
6861 IODBC_C_SRC
="\$(IODBC_C_SRC)"
6866 if test "$wxUSE_CONFIG" = 1 ; then
6867 cat >> confdefs.h
<<EOF
6868 #define wxUSE_CONFIG $wxUSE_CONFIG
6873 if test "$wxUSE_TIMEDATE" = 1 ; then
6874 cat >> confdefs.h
<<EOF
6875 #define wxUSE_TIMEDATE $wxUSE_TIMEDATE
6880 if test "$wxUSE_INTL" = 1 ; then
6881 cat >> confdefs.h
<<EOF
6882 #define wxUSE_INTL $wxUSE_INTL
6887 if test "$wxUSE_STREAMS" = 1 ; then
6888 cat >> confdefs.h
<<EOF
6889 #define wxUSE_STREAMS $wxUSE_STREAMS
6894 if test "$wxUSE_SERIAL" = 1 ; then
6895 cat >> confdefs.h
<<EOF
6896 #define wxUSE_SERIAL $wxUSE_SERIAL
6903 if test "$wxUSE_DYNLIB_CLASS" = "1"; then
6904 for ac_func
in dlopen
6906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6907 echo "configure:6908: checking for $ac_func" >&5
6908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6911 cat > conftest.
$ac_ext <<EOF
6912 #line 6913 "configure"
6913 #include "confdefs.h"
6914 /* System header to define __stub macros and hopefully few prototypes,
6915 which can conflict with char $ac_func(); below. */
6917 /* Override any gcc2 internal prototype to avoid an error. */
6918 /* We use char because int might match the return type of a gcc2
6919 builtin and then its argument prototype would still apply. */
6924 /* The GNU C library defines this for functions which it implements
6925 to always fail with ENOSYS. Some functions are actually named
6926 something starting with __ and the normal name is an alias. */
6927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6935 if { (eval echo configure
:6936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6937 eval "ac_cv_func_$ac_func=yes"
6939 echo "configure: failed program was:" >&5
6940 cat conftest.
$ac_ext >&5
6942 eval "ac_cv_func_$ac_func=no"
6947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6948 echo "$ac_t""yes" 1>&6
6949 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6950 cat >> confdefs.h
<<EOF
6951 #define $ac_tr_func 1
6953 cat >> confdefs.h
<<\EOF
6954 #define HAVE_DLOPEN 1
6958 echo "$ac_t""no" 1>&6
6959 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6960 echo "configure:6961: checking for dlopen in -ldl" >&5
6961 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6963 echo $ac_n "(cached) $ac_c" 1>&6
6965 ac_save_LIBS
="$LIBS"
6967 cat > conftest.
$ac_ext <<EOF
6968 #line 6969 "configure"
6969 #include "confdefs.h"
6970 /* Override any gcc2 internal prototype to avoid an error. */
6971 /* We use char because int might match the return type of a gcc2
6972 builtin and then its argument prototype would still apply. */
6979 if { (eval echo configure
:6980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6981 eval "ac_cv_lib_$ac_lib_var=yes"
6983 echo "configure: failed program was:" >&5
6984 cat conftest.
$ac_ext >&5
6986 eval "ac_cv_lib_$ac_lib_var=no"
6989 LIBS
="$ac_save_LIBS"
6992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6993 echo "$ac_t""yes" 1>&6
6994 cat >> confdefs.h
<<\EOF
6995 #define HAVE_DLOPEN 1
6999 echo "$ac_t""no" 1>&6
7005 for ac_func
in shl_load
7007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7008 echo "configure:7009: checking for $ac_func" >&5
7009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7010 echo $ac_n "(cached) $ac_c" 1>&6
7012 cat > conftest.
$ac_ext <<EOF
7013 #line 7014 "configure"
7014 #include "confdefs.h"
7015 /* System header to define __stub macros and hopefully few prototypes,
7016 which can conflict with char $ac_func(); below. */
7018 /* Override any gcc2 internal prototype to avoid an error. */
7019 /* We use char because int might match the return type of a gcc2
7020 builtin and then its argument prototype would still apply. */
7025 /* The GNU C library defines this for functions which it implements
7026 to always fail with ENOSYS. Some functions are actually named
7027 something starting with __ and the normal name is an alias. */
7028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7036 if { (eval echo configure
:7037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7038 eval "ac_cv_func_$ac_func=yes"
7040 echo "configure: failed program was:" >&5
7041 cat conftest.
$ac_ext >&5
7043 eval "ac_cv_func_$ac_func=no"
7048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7049 echo "$ac_t""yes" 1>&6
7050 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7051 cat >> confdefs.h
<<EOF
7052 #define $ac_tr_func 1
7054 cat >> confdefs.h
<<\EOF
7055 #define HAVE_SHL_LOAD 1
7059 echo "$ac_t""no" 1>&6
7064 if test "$HAVE_DL_FUNCS" = 0; then
7065 echo "configure: warning: "--with-dynlib will be disabled because no
function was found to load a shared library on this platform
"" 1>&2
7067 wxUSE_DYNLIB_CLASS
=0
7071 if test "$wxUSE_DYNLIB_CLASS" = 1 ; then
7072 cat >> confdefs.h
<<EOF
7073 #define wxUSE_DYNLIB_CLASS $wxUSE_DYNLIB_CLASS
7079 if test "$wxUSE_RPC" = 1 ; then
7080 cat >> confdefs.h
<<EOF
7081 #define wxUSE_RPC $wxUSE_RPC
7086 if test "$wxUSE_WX_RESOURCES" = 1 ; then
7087 cat >> confdefs.h
<<EOF
7088 #define wxUSE_WX_RESOURCES $wxUSE_WX_RESOURCES
7093 if test "$wxUSE_PROLOGIO" = 1 ; then
7094 cat >> confdefs.h
<<EOF
7095 #define wxUSE_PROLOGIO 1
7101 if test "$wxUSE_POSTSCRIPT" = 1 ; then
7102 cat >> confdefs.h
<<EOF
7103 #define wxUSE_POSTSCRIPT 1
7108 cat >> confdefs.h
<<EOF
7109 #define wxUSE_AFM_FOR_POSTSCRIPT $wxUSE_AFM_FOR_POSTSCRIPT
7113 cat >> confdefs.h
<<EOF
7114 #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
7119 if test "$wxUSE_MDI_ARCHITECTURE" = 1 ; then
7120 cat >> confdefs.h
<<EOF
7121 #define wxUSE_MDI_ARCHITECTURE $wxUSE_MDI_ARCHITECTURE
7126 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1 ; then
7127 cat >> confdefs.h
<<EOF
7128 #define wxUSE_DOC_VIEW_ARCHITECTURE $wxUSE_DOC_VIEW_ARCHITECTURE
7133 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1 ; then
7134 cat >> confdefs.h
<<EOF
7135 #define wxUSE_PRINTING_ARCHITECTURE $wxUSE_PRINTING_ARCHITECTURE
7141 if test "$wxUSE_UNICODE" = 1 ; then
7142 cat >> confdefs.h
<<EOF
7143 #define wxUSE_UNICODE 1
7148 if test "$wxUSE_WCSRTOMBS" = 1 ; then
7149 cat >> confdefs.h
<<EOF
7150 #define wxUSE_WCSRTOMBS 1
7156 if test "$wxUSE_IPC" = 1 ; then
7157 cat >> confdefs.h
<<EOF
7163 if test "$wxUSE_RESOURCES" = 1 ; then
7164 cat >> confdefs.h
<<EOF
7165 #define wxUSE_RESOURCES $wxUSE_RESOURCES
7170 if test "$wxUSE_CLIPBOARD" = 1 ; then
7171 cat >> confdefs.h
<<EOF
7172 #define wxUSE_CLIPBOARD $wxUSE_CLIPBOARD
7177 if test "$wxUSE_TOOLTIPS" = 1 ; then
7178 cat >> confdefs.h
<<EOF
7179 #define wxUSE_TOOLTIPS $wxUSE_TOOLTIPS
7184 if test "$wxUSE_DRAG_AND_DROP" = 1 ; then
7185 cat >> confdefs.h
<<EOF
7186 #define wxUSE_DRAG_AND_DROP $wxUSE_DRAG_AND_DROP
7193 if test "$wxUSE_HELP" = 1 ; then
7195 cat >> confdefs.h
<<EOF
7196 #define wxUSE_HELP $wxUSE_HELP
7206 if test "$wxUSE_THREADS" = "1"; then
7209 echo $ac_n "checking for pthread_create in -lpthread-0.7""... $ac_c" 1>&6
7210 echo "configure:7211: checking for pthread_create in -lpthread-0.7" >&5
7211 ac_lib_var
=`echo pthread-0.7'_'pthread_create | sed 'y%./+-%__p_%'`
7212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7215 ac_save_LIBS
="$LIBS"
7216 LIBS
="-lpthread-0.7 $LIBS"
7217 cat > conftest.
$ac_ext <<EOF
7218 #line 7219 "configure"
7219 #include "confdefs.h"
7220 /* Override any gcc2 internal prototype to avoid an error. */
7221 /* We use char because int might match the return type of a gcc2
7222 builtin and then its argument prototype would still apply. */
7223 char pthread_create();
7229 if { (eval echo configure
:7230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7231 eval "ac_cv_lib_$ac_lib_var=yes"
7233 echo "configure: failed program was:" >&5
7234 cat conftest.
$ac_ext >&5
7236 eval "ac_cv_lib_$ac_lib_var=no"
7239 LIBS
="$ac_save_LIBS"
7242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7243 echo "$ac_t""yes" 1>&6
7245 UNIX_THREAD
="gtk/threadpsx.cpp"
7246 THREADS_LINK
="-lpthread-0.7"
7249 echo "$ac_t""no" 1>&6
7251 ac_safe
=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
7252 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7253 echo "configure:7254: checking for sys/prctl.h" >&5
7254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7257 cat > conftest.
$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7260 #include <sys/prctl.h>
7262 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7263 { (eval echo configure
:7264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7264 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7265 if test -z "$ac_err"; then
7267 eval "ac_cv_header_$ac_safe=yes"
7270 echo "configure: failed program was:" >&5
7271 cat conftest.
$ac_ext >&5
7273 eval "ac_cv_header_$ac_safe=no"
7277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7278 echo "$ac_t""yes" 1>&6
7280 UNIX_THREAD
="gtk/threadsgi.cpp"
7283 echo "$ac_t""no" 1>&6
7288 echo $ac_n "checking for pthread_setcanceltype in -lpthread""... $ac_c" 1>&6
7289 echo "configure:7290: checking for pthread_setcanceltype in -lpthread" >&5
7290 ac_lib_var
=`echo pthread'_'pthread_setcanceltype | sed 'y%./+-%__p_%'`
7291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7292 echo $ac_n "(cached) $ac_c" 1>&6
7294 ac_save_LIBS
="$LIBS"
7295 LIBS
="-lpthread $LIBS"
7296 cat > conftest.
$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7299 /* Override any gcc2 internal prototype to avoid an error. */
7300 /* We use char because int might match the return type of a gcc2
7301 builtin and then its argument prototype would still apply. */
7302 char pthread_setcanceltype();
7305 pthread_setcanceltype()
7308 if { (eval echo configure
:7309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7310 eval "ac_cv_lib_$ac_lib_var=yes"
7312 echo "configure: failed program was:" >&5
7313 cat conftest.
$ac_ext >&5
7315 eval "ac_cv_lib_$ac_lib_var=no"
7318 LIBS
="$ac_save_LIBS"
7321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7322 echo "$ac_t""yes" 1>&6
7324 UNIX_THREAD
="gtk/threadpsx.cpp"
7325 THREADS_LINK
="-lpthread"
7328 echo "$ac_t""no" 1>&6
7335 if test "$THREADS_LINK" != ""; then
7336 cat >> confdefs.h
<<\EOF
7337 #define wxUSE_THREADS 1
7343 echo $ac_n "checking for printf in -lposix4""... $ac_c" 1>&6
7344 echo "configure:7345: checking for printf in -lposix4" >&5
7345 ac_lib_var
=`echo posix4'_'printf | sed 'y%./+-%__p_%'`
7346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7347 echo $ac_n "(cached) $ac_c" 1>&6
7349 ac_save_LIBS
="$LIBS"
7350 LIBS
="-lposix4 $LIBS"
7351 cat > conftest.
$ac_ext <<EOF
7352 #line 7353 "configure"
7353 #include "confdefs.h"
7354 /* Override any gcc2 internal prototype to avoid an error. */
7355 /* We use char because int might match the return type of a gcc2
7356 builtin and then its argument prototype would still apply. */
7363 if { (eval echo configure
:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7365 eval "ac_cv_lib_$ac_lib_var=yes"
7367 echo "configure: failed program was:" >&5
7368 cat conftest.
$ac_ext >&5
7370 eval "ac_cv_lib_$ac_lib_var=no"
7373 LIBS
="$ac_save_LIBS"
7376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7377 echo "$ac_t""yes" 1>&6
7379 THREADS_LINK
="$THREADS_LINK -lposix4"
7382 echo "$ac_t""no" 1>&6
7388 if test "$wxUSE_MOTIF" = "1"; then
7389 UNIX_THREAD
="motif/thread.cpp"
7392 if test -z "$UNIX_THREAD"; then
7403 case "${canonical}" in
7406 if test "$GCC" != "yes" ; then
7407 CXXFLAGS
="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
7408 CFLAGS
="${CFLAGS} -z -D_HPUX_SOURCE"
7414 CREATE_SHARED
=sharedHpux
7419 CREATE_SHARED
=sharedLinux
7422 *-*-irix5* | *-*-irix6* )
7423 # PICFLAGS can remain empty, as pic is the default
7425 CREATE_SHARED
=sharedIrix
7426 cat >> confdefs.h
<<\EOF
7433 if test "$GCC" != "yes" ; then
7438 CREATE_SHARED
=sharedSolaris2
7439 cat >> confdefs.h
<<\EOF
7446 if test "$GCC" != "yes" ; then
7452 CREATE_SHARED
=sharedSunos4
7453 cat >> confdefs.h
<<\EOF
7459 *-*-freebsd* | *-*-netbsd*)
7461 CREATE_SHARED
=sharedBsd
7462 cat >> confdefs.h
<<\EOF
7470 CREATE_SHARED
=sharedOSF
7474 if test "$GCC" != "yes" ; then
7479 CREATE_SHARED
=sharedDgux
7480 cat >> confdefs.h
<<\EOF
7487 if test "$GCC" != "yes" ; then
7492 CREATE_SHARED
=sharedSysV
7493 cat >> confdefs.h
<<\EOF
7500 if test "$GCC" != "yes" ; then
7505 CREATE_SHARED
=sharedAIX
7506 cat >> confdefs.h
<<\EOF
7517 if test "x$GCC" = xyes
; then
7518 CFLAGS
="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER -DHAVE_LIBDL"
7521 if test "x$GXX" = xyes
; then
7522 if test "$wxUSE_MOTIF" = 1; then
7523 CXXFLAGS
="${CXXFLAGS} -Wall -Wno-unused -D_REENTRANT"
7525 CXXFLAGS
="${CXXFLAGS} -Wall -D_REENTRANT"
7529 if test "$wxUSE_SHARED" != 1; then
7539 echo $OS >> system.list
7543 cat > confcache
<<\EOF
7544 # This file is a shell script that caches the results of configure
7545 # tests run on this system so they can be shared between configure
7546 # scripts and configure runs. It is not useful on other systems.
7547 # If it contains results you don't want to keep, you may remove or edit it.
7549 # By default, configure uses ./config.cache as the cache file,
7550 # creating it if it does not exist already. You can give configure
7551 # the --cache-file=FILE option to use a different cache file; that is
7552 # what configure does when it calls configure scripts in
7553 # subdirectories, so they share the cache.
7554 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7555 # config.status only pays attention to the cache file if you give it the
7556 # --recheck option to rerun configure.
7559 # The following way of writing the cache mishandles newlines in values,
7560 # but we know of no workaround that is simple, portable, and efficient.
7561 # So, don't put newlines in cache variables' values.
7562 # Ultrix sh set writes to stderr and can't be redirected directly,
7563 # and sets the high bit in the cache file unless we assign to the vars.
7565 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7567 # `set' does not quote correctly, so add quotes (double-quote substitution
7568 # turns \\\\ into \\, and sed turns \\ into \).
7570 -e "s/'/'\\\\''/g" \
7571 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7574 # `set' quotes correctly as required by POSIX, so do not add quotes.
7575 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7578 if cmp -s $cache_file confcache
; then
7581 if test -w $cache_file; then
7582 echo "updating cache $cache_file"
7583 cat confcache
> $cache_file
7585 echo "not updating unwritable cache $cache_file"
7590 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7592 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7593 # Let make expand exec_prefix.
7594 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7596 # Any assignment to VPATH causes Sun make to only execute
7597 # the first set of double-colon rules, so remove it if not needed.
7598 # If there is a colon in the path, we need to keep it.
7599 if test "x$srcdir" = x.
; then
7600 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7603 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7605 DEFS
=-DHAVE_CONFIG_H
7607 # Without the "./", some shells look in PATH for config.status.
7608 : ${CONFIG_STATUS=./config.status}
7610 echo creating
$CONFIG_STATUS
7611 rm -f $CONFIG_STATUS
7612 cat > $CONFIG_STATUS <<EOF
7614 # Generated automatically by configure.
7615 # Run this file to recreate the current configuration.
7616 # This directory was configured as follows,
7617 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7619 # $0 $ac_configure_args
7621 # Compiler output produced by configure, useful for debugging
7622 # configure, is in ./config.log if it exists.
7624 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7627 case "\$ac_option" in
7628 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7629 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7630 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7631 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7632 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7634 -help | --help | --hel | --he | --h)
7635 echo "\$ac_cs_usage"; exit 0 ;;
7636 *) echo "\$ac_cs_usage"; exit 1 ;;
7640 ac_given_srcdir=$srcdir
7641 ac_given_INSTALL="$INSTALL"
7643 trap 'rm -fr `echo "./setup/substit ./wx-config:./wx-config.in ./include/wx/gtk/setup.h:./setup/setup.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7645 cat >> $CONFIG_STATUS <<EOF
7647 # Protect against being on the right side of a sed subst in config.status.
7648 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7649 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7653 s%@CFLAGS@%$CFLAGS%g
7654 s%@CPPFLAGS@%$CPPFLAGS%g
7655 s%@CXXFLAGS@%$CXXFLAGS%g
7656 s%@FFLAGS@%$FFLAGS%g
7658 s%@LDFLAGS@%$LDFLAGS%g
7660 s%@exec_prefix@%$exec_prefix%g
7661 s%@prefix@%$prefix%g
7662 s%@program_transform_name@%$program_transform_name%g
7663 s%@bindir@%$bindir%g
7664 s%@sbindir@%$sbindir%g
7665 s%@libexecdir@%$libexecdir%g
7666 s%@datadir@%$datadir%g
7667 s%@sysconfdir@%$sysconfdir%g
7668 s%@sharedstatedir@%$sharedstatedir%g
7669 s%@localstatedir@%$localstatedir%g
7670 s%@libdir@%$libdir%g
7671 s%@includedir@%$includedir%g
7672 s%@oldincludedir@%$oldincludedir%g
7673 s%@infodir@%$infodir%g
7674 s%@mandir@%$mandir%g
7675 s%@WXBASEDIR@%$WXBASEDIR%g
7679 s%@CXXCPP@%$CXXCPP%g
7680 s%@RANLIB@%$RANLIB%g
7682 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7683 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7684 s%@INSTALL_DATA@%$INSTALL_DATA%g
7687 s%@X_CFLAGS@%$X_CFLAGS%g
7688 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7689 s%@X_LIBS@%$X_LIBS%g
7690 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7691 s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
7692 s%@LIBOBJS@%$LIBOBJS%g
7695 s%@LEXLIB@%$LEXLIB%g
7696 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
7697 s%@DL_LIBRARY@%$DL_LIBRARY%g
7699 s%@host_alias@%$host_alias%g
7700 s%@host_cpu@%$host_cpu%g
7701 s%@host_vendor@%$host_vendor%g
7702 s%@host_os@%$host_os%g
7703 s%@GTK_CONFIG@%$GTK_CONFIG%g
7704 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
7705 s%@GTK_LIBS@%$GTK_LIBS%g
7706 s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
7707 s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
7708 s%@GUI_TK_LINK@%$GUI_TK_LINK%g
7709 s%@WX_LINK@%$WX_LINK%g
7710 s%@TOOLKIT@%$TOOLKIT%g
7711 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
7712 s%@MAKEINCLUDE@%$MAKEINCLUDE%g
7713 s%@WXDEBUG@%$WXDEBUG%g
7714 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
7715 s%@EXTRA_LINK@%$EXTRA_LINK%g
7716 s%@PROFILE@%$PROFILE%g
7717 s%@OPTIMISE@%$OPTIMISE%g
7718 s%@Z_C_SRC@%$Z_C_SRC%g
7719 s%@PNG_C_SRC@%$PNG_C_SRC%g
7720 s%@JPEG_LINK@%$JPEG_LINK%g
7721 s%@IODBC_C_SRC@%$IODBC_C_SRC%g
7723 s%@UNIX_THREAD@%$UNIX_THREAD%g
7724 s%@THREADS_LINK@%$THREADS_LINK%g
7726 s%@PICFLAGS@%$PICFLAGS%g
7727 s%@CREATE_SHARED@%$CREATE_SHARED%g
7732 cat >> $CONFIG_STATUS <<\EOF
7734 # Split the substitutions into bite-sized pieces for seds with
7735 # small command number limits, like on Digital OSF/1 and HP-UX.
7736 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7737 ac_file
=1 # Number of current file.
7738 ac_beg
=1 # First line for current file.
7739 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7742 while $ac_more_lines; do
7743 if test $ac_beg -gt 1; then
7744 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7746 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7748 if test ! -s conftest.s
$ac_file; then
7750 rm -f conftest.s
$ac_file
7752 if test -z "$ac_sed_cmds"; then
7753 ac_sed_cmds
="sed -f conftest.s$ac_file"
7755 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7757 ac_file
=`expr $ac_file + 1`
7759 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7762 if test -z "$ac_sed_cmds"; then
7767 cat >> $CONFIG_STATUS <<EOF
7769 CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"}
7771 cat >> $CONFIG_STATUS <<\EOF
7772 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7773 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7775 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7776 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7777 *) ac_file_in
="${ac_file}.in" ;;
7780 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7782 # Remove last slash and all that follows it. Not all systems have dirname.
7783 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7784 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7785 # The file is in a subdirectory.
7786 test ! -d "$ac_dir" && mkdir "$ac_dir"
7787 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7788 # A "../" for each directory in $ac_dir_suffix.
7789 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7791 ac_dir_suffix
= ac_dots
=
7794 case "$ac_given_srcdir" in
7796 if test -z "$ac_dots"; then top_srcdir
=.
7797 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7798 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7800 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7801 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7804 case "$ac_given_INSTALL" in
7805 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7806 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7809 echo creating
"$ac_file"
7811 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7813 *Makefile
*) ac_comsub
="1i\\
7814 # $configure_input" ;;
7818 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7820 s%@configure_input@%$configure_input%g
7821 s%@srcdir@%$srcdir%g
7822 s%@top_srcdir@%$top_srcdir%g
7823 s%@INSTALL@%$INSTALL%g
7824 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7828 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7829 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7831 # ac_d sets the value in "#define NAME VALUE" lines.
7832 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7833 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7836 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7837 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7838 ac_uB
='\([ ]\)%\1#\2define\3'
7841 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7842 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7843 ac_eB
='$%\1#\2define\3'
7847 if test "${CONFIG_HEADERS+set}" != set; then
7849 cat >> $CONFIG_STATUS <<EOF
7850 CONFIG_HEADERS="./include/wx/gtk/setup.h:./setup/setup.hin"
7852 cat >> $CONFIG_STATUS <<\EOF
7854 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7855 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7857 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7858 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7859 *) ac_file_in
="${ac_file}.in" ;;
7862 echo creating
$ac_file
7864 rm -f conftest.frag conftest.
in conftest.out
7865 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7866 cat $ac_file_inputs > conftest.
in
7870 # Transform confdefs.h into a sed script conftest.vals that substitutes
7871 # the proper values into config.h.in to produce config.h. And first:
7872 # Protect against being on the right side of a sed subst in config.status.
7873 # Protect against being in an unquoted here document in config.status.
7875 cat > conftest.hdr
<<\EOF
7878 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7882 sed -n -f conftest.hdr confdefs.h > conftest.vals
7885 # This sed command replaces #undef with comments. This is necessary, for
7886 # example, in the case of _POSIX_SOURCE, which is predefined and required
7887 # on some systems where configure will not decide to define it.
7888 cat >> conftest.vals <<\EOF
7889 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7892 # Break up conftest.vals because some shells have a limit on
7893 # the size of here documents, and old seds have small limits too.
7898 ac_lines=`grep -c . conftest.vals
`
7899 # grep -c gives empty output for an empty file on some AIX systems.
7900 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7901 # Write a limited-size here document to conftest.frag.
7902 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7903 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7905 sed -f conftest.frag conftest.in > conftest.out
7907 mv conftest.out conftest.in
7909 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7911 mv conftest.tail conftest.vals
7915 cat >> $CONFIG_STATUS <<\EOF
7916 rm -f conftest.frag conftest.h
7917 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7918 cat conftest.in >> conftest.h
7920 if cmp -s $ac_file conftest.h 2>/dev/null; then
7921 echo "$ac_file is unchanged"
7924 # Remove last slash and all that follows it. Not all systems have dirname.
7925 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7926 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7927 # The file is in a subdirectory.
7928 test ! -d "$ac_dir" && mkdir "$ac_dir"
7931 mv conftest.h $ac_file
7936 cat >> $CONFIG_STATUS <<EOF
7939 cat >> $CONFIG_STATUS <<\EOF
7940 ./setup/general/createall
7943 chmod +x $CONFIG_STATUS
7944 rm -fr confdefs* $ac_clean_files
7945 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7949 mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache