3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-x use the X Window System"
21 **--with-motif use Motif/Lesstif"
23 **--with-shared create shared libraries"
25 **--with-optimise create optimised code"
27 **--with-debug_flag create code with WXDEBUG define set to 1"
29 **--with-debug_info create code with debuging information"
31 **--with-debug_gdb create code with extra GDB debuging information"
33 **--with-mem_traing create code with memory tracing"
35 **--with-dmalloc use dmalloc memory debug library (www.letters.com/dmalloc/)"
37 **--with-profile create code with profiling information"
39 **--with_apple_ieee use the Apple IEEE codec"
41 **--with-threads for enabling threads"
43 **--with-dynlib to compile wxLibrary class"
45 **--with-zlib use zlib for LZW comression"
47 **--with-libpng use libpng (PNG image format)"
49 **--with-libjpeg use libjpeg (JPEG image format)"
51 **--with-odbc use iODBC and wxODBC classes"
53 **--with-timedate use wxTime and wxDate classes"
55 **--with-intl use internationalization system"
57 **--with-config use wxConfig class"
59 **--with-streams use wxStream etc classes"
61 **--with-serial use class serialization"
63 **--with-sockets use wxSocket etc classes"
65 **--with-afmfonts use Adobe Font Metric Font table"
67 **--with-PS-normalized use normalized PS fonts"
69 **--with-postscript use wxPostscriptDC device context"
71 **--with-unicode compile wxString with Unicode support"
73 **--with-wcsrtombs use wcsrtombs instead of (buggy in GNU libc5) wcstombs"
75 **--with-wxresources use wxWindows's resources"
77 **--with-prologio use Prolog IO library"
79 **--with-rpc use Prolog's remote procedure calls"
81 **--with-ipc use interprocess communication (wxSocket etc.)"
83 **--with-resources use X resources for saving information"
85 **--with-clipboard use wxClipboard classes"
87 **--with-tooltips use tooltips"
89 **--with-dnd use Drag'n'Drop classes"
91 **--with-mdi use multiple document interface architecture"
93 **--with-docview use document view architecture"
95 **--with-printarch use printing architecture"
97 **--with-help use help (using external browser at present)"
99 **--with-gtk-prefix=PFX Prefix where GTK is installed"
101 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
103 # Initialize some variables set by options.
104 # The variables have the same names as the options, with
105 # dashes changed to underlines.
107 cache_file
=.
/config.cache
116 program_transform_name
=s
,x
,x
,
124 bindir
='${exec_prefix}/bin'
125 sbindir
='${exec_prefix}/sbin'
126 libexecdir
='${exec_prefix}/libexec'
127 datadir
='${prefix}/share'
128 sysconfdir
='${prefix}/etc'
129 sharedstatedir
='${prefix}/com'
130 localstatedir
='${prefix}/var'
131 libdir
='${exec_prefix}/lib'
132 includedir
='${prefix}/include'
133 oldincludedir
='/usr/include'
134 infodir
='${prefix}/info'
135 mandir
='${prefix}/man'
137 # Initialize some other variables.
140 # Maximum number of lines to put in a shell here document.
147 # If the previous option needs an argument, assign it.
148 if test -n "$ac_prev"; then
149 eval "$ac_prev=\$ac_option"
155 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
159 # Accept the important Cygnus configure options, so we can diagnose typos.
163 -bindir | --bindir | --bindi | --bind | --bin | --bi)
165 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
166 bindir
="$ac_optarg" ;;
168 -build | --build | --buil | --bui | --bu)
170 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
171 build
="$ac_optarg" ;;
173 -cache-file | --cache-file | --cache-fil | --cache-fi \
174 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
175 ac_prev
=cache_file
;;
176 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
177 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
178 cache_file
="$ac_optarg" ;;
180 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
182 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
184 datadir
="$ac_optarg" ;;
186 -disable-* | --disable-*)
187 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
188 # Reject names that are not valid shell variable names.
189 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
190 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
192 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}=no" ;;
195 -enable-* | --enable-*)
196 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
197 # Reject names that are not valid shell variable names.
198 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
199 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
201 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
206 eval "enable_${ac_feature}='$ac_optarg'" ;;
208 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
209 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
210 | --exec | --exe | --ex)
211 ac_prev
=exec_prefix
;;
212 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
213 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
214 | --exec=* | --exe=* | --ex=*)
215 exec_prefix
="$ac_optarg" ;;
217 -gas | --gas | --ga | --g)
218 # Obsolete; use --with-gas.
221 -help | --help | --hel | --he)
222 # Omit some internal or obsolete options to make the list less imposing.
223 # This message is too long to be a string in the A/UX 3.1 sh.
225 Usage: configure [options] [host]
226 Options: [defaults in brackets after descriptions]
228 --cache-file=FILE cache test results in FILE
229 --help print this message
230 --no-create do not create output files
231 --quiet, --silent do not print \`checking...' messages
232 --version print the version of autoconf that created configure
233 Directory and file names:
234 --prefix=PREFIX install architecture-independent files in PREFIX
236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
238 --bindir=DIR user executables in DIR [EPREFIX/bin]
239 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
240 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
241 --datadir=DIR read-only architecture-independent data in DIR
243 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
244 --sharedstatedir=DIR modifiable architecture-independent data in DIR
246 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
247 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
248 --includedir=DIR C header files in DIR [PREFIX/include]
249 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
250 --infodir=DIR info documentation in DIR [PREFIX/info]
251 --mandir=DIR man documentation in DIR [PREFIX/man]
252 --srcdir=DIR find the sources in DIR [configure dir or ..]
253 --program-prefix=PREFIX prepend PREFIX to installed program names
254 --program-suffix=SUFFIX append SUFFIX to installed program names
255 --program-transform-name=PROGRAM
256 run sed PROGRAM on installed program names
260 --build=BUILD configure for building on BUILD [BUILD=HOST]
261 --host=HOST configure for HOST [guessed]
262 --target=TARGET configure for TARGET [TARGET=HOST]
263 Features and packages:
264 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
265 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
266 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
267 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
268 --x-includes=DIR X include files are in DIR
269 --x-libraries=DIR X library files are in DIR
271 if test -n "$ac_help"; then
272 echo "--enable and --with options recognized:$ac_help"
276 -host | --host | --hos | --ho)
278 -host=* | --host=* | --hos=* | --ho=*)
281 -includedir | --includedir | --includedi | --included | --include \
282 | --includ | --inclu | --incl | --inc)
283 ac_prev
=includedir
;;
284 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
285 | --includ=* | --inclu=* | --incl=* | --inc=*)
286 includedir
="$ac_optarg" ;;
288 -infodir | --infodir | --infodi | --infod | --info | --inf)
290 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
291 infodir
="$ac_optarg" ;;
293 -libdir | --libdir | --libdi | --libd)
295 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 libdir
="$ac_optarg" ;;
298 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
299 | --libexe | --libex | --libe)
300 ac_prev
=libexecdir
;;
301 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
302 | --libexe=* | --libex=* | --libe=*)
303 libexecdir
="$ac_optarg" ;;
305 -localstatedir | --localstatedir | --localstatedi | --localstated \
306 | --localstate | --localstat | --localsta | --localst \
307 | --locals | --local | --loca | --loc | --lo)
308 ac_prev
=localstatedir
;;
309 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
310 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
311 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
312 localstatedir
="$ac_optarg" ;;
314 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
316 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
317 mandir
="$ac_optarg" ;;
320 # Obsolete; use --without-fp.
323 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
327 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
328 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
331 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
332 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
333 | --oldin | --oldi | --old | --ol | --o)
334 ac_prev
=oldincludedir
;;
335 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
336 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
337 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
338 oldincludedir
="$ac_optarg" ;;
340 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
342 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 prefix
="$ac_optarg" ;;
345 -program-prefix | --program-prefix | --program-prefi | --program-pref \
346 | --program-pre | --program-pr | --program-p)
347 ac_prev
=program_prefix
;;
348 -program-prefix=* | --program-prefix=* | --program-prefi=* \
349 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
350 program_prefix
="$ac_optarg" ;;
352 -program-suffix | --program-suffix | --program-suffi | --program-suff \
353 | --program-suf | --program-su | --program-s)
354 ac_prev
=program_suffix
;;
355 -program-suffix=* | --program-suffix=* | --program-suffi=* \
356 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
357 program_suffix
="$ac_optarg" ;;
359 -program-transform-name | --program-transform-name \
360 | --program-transform-nam | --program-transform-na \
361 | --program-transform-n | --program-transform- \
362 | --program-transform | --program-transfor \
363 | --program-transfo | --program-transf \
364 | --program-trans | --program-tran \
365 | --progr-tra | --program-tr | --program-t)
366 ac_prev
=program_transform_name
;;
367 -program-transform-name=* | --program-transform-name=* \
368 | --program-transform-nam=* | --program-transform-na=* \
369 | --program-transform-n=* | --program-transform-=* \
370 | --program-transform=* | --program-transfor=* \
371 | --program-transfo=* | --program-transf=* \
372 | --program-trans=* | --program-tran=* \
373 | --progr-tra=* | --program-tr=* | --program-t=*)
374 program_transform_name
="$ac_optarg" ;;
376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
377 | -silent | --silent | --silen | --sile | --sil)
380 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
382 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
384 sbindir
="$ac_optarg" ;;
386 -sharedstatedir | --sharedstatedir | --sharedstatedi \
387 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
388 | --sharedst | --shareds | --shared | --share | --shar \
390 ac_prev
=sharedstatedir
;;
391 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
392 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
393 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
395 sharedstatedir
="$ac_optarg" ;;
397 -site | --site | --sit)
399 -site=* | --site=* | --sit=*)
402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 srcdir
="$ac_optarg" ;;
407 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
408 | --syscon | --sysco | --sysc | --sys | --sy)
409 ac_prev
=sysconfdir
;;
410 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
411 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
412 sysconfdir
="$ac_optarg" ;;
414 -target | --target | --targe | --targ | --tar | --ta | --t)
416 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
417 target
="$ac_optarg" ;;
419 -v | -verbose | --verbose | --verbos | --verbo | --verb)
422 -version | --version | --versio | --versi | --vers)
423 echo "configure generated by autoconf version 2.12"
427 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package
=`echo $ac_package| sed 's/-/_/g'`
437 eval "with_${ac_package}='$ac_optarg'" ;;
439 -without-* | --without-*)
440 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
441 # Reject names that are not valid shell variable names.
442 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
443 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
445 ac_package
=`echo $ac_package| sed 's/-/_/g'`
446 eval "with_${ac_package}=no" ;;
449 # Obsolete; use --with-x.
452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
453 | --x-incl | --x-inc | --x-in | --x-i)
454 ac_prev
=x_includes
;;
455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
457 x_includes
="$ac_optarg" ;;
459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
461 ac_prev
=x_libraries
;;
462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
464 x_libraries
="$ac_optarg" ;;
466 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
470 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
471 echo "configure: warning: $ac_option: invalid host type" 1>&2
473 if test "x$nonopt" != xNONE
; then
474 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
482 if test -n "$ac_prev"; then
483 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
486 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
488 # File descriptor usage:
491 # 2 errors and warnings
492 # 3 some systems may open it to /dev/tty
493 # 4 used on the Kubota Titan
494 # 6 checking for... messages and results
495 # 5 compiler messages saved in config.log
496 if test "$silent" = yes; then
504 This file contains any messages produced by compilers while
505 running configure, to aid debugging if configure makes a mistake.
508 # Strip out --no-create and --no-recursion so they do not pile up.
509 # Also quote any args containing shell metacharacters.
514 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
515 | --no-cr | --no-c) ;;
516 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
517 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
518 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
519 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
520 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
525 # Only set these to C if already set. These must not be set unconditionally
526 # because not all systems understand e.g. LANG=C (notably SCO).
527 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
528 # Non-C LC_CTYPE values break the ctype check.
529 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
530 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
531 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
532 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
535 rm -rf conftest
* confdefs.h
536 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
539 # A filename unique to this package, relative to the directory that
540 # configure is in, which we can look for to find out if srcdir is correct.
541 ac_unique_file
=configure.
in
543 # Find the source files, if location was not specified.
544 if test -z "$srcdir"; then
545 ac_srcdir_defaulted
=yes
546 # Try the directory containing this script, then its parent.
548 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
549 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
551 if test ! -r $srcdir/$ac_unique_file; then
555 ac_srcdir_defaulted
=no
557 if test ! -r $srcdir/$ac_unique_file; then
558 if test "$ac_srcdir_defaulted" = yes; then
559 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
561 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
564 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
566 # Prefer explicitly selected file to automatically selected ones.
567 if test -z "$CONFIG_SITE"; then
568 if test "x$prefix" != xNONE
; then
569 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
571 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
574 for ac_site_file
in $CONFIG_SITE; do
575 if test -r "$ac_site_file"; then
576 echo "loading site script $ac_site_file"
581 if test -r "$cache_file"; then
582 echo "loading cache $cache_file"
585 echo "creating cache $cache_file"
590 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
591 ac_cpp
='$CPP $CPPFLAGS'
592 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
593 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
594 cross_compiling
=$ac_cv_prog_cc_cross
596 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
597 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
598 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
605 ac_n
= ac_c
='\c' ac_t
=
613 if test "x$OS" = "x"; then
615 { echo "configure: error: "The system variable OS has not been
set"
616 "please
set is everytime befor compiling on this system
"
617 "A good example
for this system would be
:"
618 "setenv OSTYPE
$UNAME for csh as a SHELL
"
619 "EXPORT OSTYPE
=$UNAME for sh as SHELL
"
620 "please
set this and restart again.
"
630 /usr/Motif-1.2/include \
631 /usr/Motif-2.1/include \
633 /usr/include/Motif1.2 \
634 /opt/xpm/include/X11 \
636 /usr/Motif1.2/include \
652 /usr/local/X11R6/include \
653 /usr/local/X11R5/include \
654 /usr/local/X11R4/include \
656 /usr/local/include/X11R6 \
657 /usr/local/include/X11R5 \
658 /usr/local/include/X11R4 \
662 /usr/local/X11/include \
663 /usr/local/include/X11 \
667 /usr/XFree86/include/X11 \
674 /usr/unsupported/include \
675 /usr/athena/include \
676 /usr/local/x11r5/include \
677 /usr/lpp/Xamples/include \
679 /usr/local/include/gtk \
680 /usr/local/include/qt \
683 /usr/openwin/include \
684 /usr/openwin/share/include \
687 SEARCH_LIB
="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
691 # Extract the first word of "gcc", so it can be a program name with args.
692 set dummy gcc
; ac_word
=$2
693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
694 echo "configure:695: checking for $ac_word" >&5
695 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 if test -n "$CC"; then
699 ac_cv_prog_CC
="$CC" # Let the user override the test.
701 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
702 for ac_dir
in $PATH; do
703 test -z "$ac_dir" && ac_dir
=.
704 if test -f $ac_dir/$ac_word; then
713 if test -n "$CC"; then
714 echo "$ac_t""$CC" 1>&6
716 echo "$ac_t""no" 1>&6
719 if test -z "$CC"; then
720 # Extract the first word of "cc", so it can be a program name with args.
721 set dummy cc
; ac_word
=$2
722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
723 echo "configure:724: checking for $ac_word" >&5
724 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
725 echo $ac_n "(cached) $ac_c" 1>&6
727 if test -n "$CC"; then
728 ac_cv_prog_CC
="$CC" # Let the user override the test.
730 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
732 for ac_dir
in $PATH; do
733 test -z "$ac_dir" && ac_dir
=.
734 if test -f $ac_dir/$ac_word; then
735 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
744 if test $ac_prog_rejected = yes; then
745 # We found a bogon in the path, so make sure we never use it.
746 set dummy
$ac_cv_prog_CC
748 if test $# -gt 0; then
749 # We chose a different compiler from the bogus one.
750 # However, it has the same basename, so the bogon will be chosen
751 # first if we set CC to just the basename; use the full file name.
753 set dummy
"$ac_dir/$ac_word" "$@"
761 if test -n "$CC"; then
762 echo "$ac_t""$CC" 1>&6
764 echo "$ac_t""no" 1>&6
767 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
771 echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
775 ac_cpp
='$CPP $CPPFLAGS'
776 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
777 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
778 cross_compiling
=$ac_cv_prog_cc_cross
780 cat > conftest.
$ac_ext <<EOF
781 #line 782 "configure"
782 #include "confdefs.h"
785 if { (eval echo configure
:786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
786 ac_cv_prog_cc_works
=yes
787 # If we can't run a trivial program, we are probably using a cross compiler.
788 if (.
/conftest
; exit) 2>/dev
/null
; then
789 ac_cv_prog_cc_cross
=no
791 ac_cv_prog_cc_cross
=yes
794 echo "configure: failed program was:" >&5
795 cat conftest.
$ac_ext >&5
796 ac_cv_prog_cc_works
=no
800 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
801 if test $ac_cv_prog_cc_works = no
; then
802 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
804 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
805 echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
806 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
807 cross_compiling
=$ac_cv_prog_cc_cross
809 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
810 echo "configure:811: checking whether we are using GNU C" >&5
811 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 cat > conftest.c
<<EOF
819 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
826 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
828 if test $ac_cv_prog_gcc = yes; then
830 ac_test_CFLAGS
="${CFLAGS+set}"
831 ac_save_CFLAGS
="$CFLAGS"
833 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
834 echo "configure:835: checking whether ${CC-cc} accepts -g" >&5
835 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 echo 'void f(){}' > conftest.c
839 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
848 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
849 if test "$ac_test_CFLAGS" = set; then
850 CFLAGS
="$ac_save_CFLAGS"
851 elif test $ac_cv_prog_cc_g = yes; then
858 test "${CFLAGS+set}" = set || CFLAGS
="-g"
862 CFLAGS
=`echo "$CFLAGS" | sed 's/-g//g'`
864 if test "x$CC" != xcc
; then
865 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
866 echo "configure:867: checking whether $CC and cc understand -c and -o together" >&5
868 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
869 echo "configure:870: checking whether cc understands -c and -o together" >&5
871 set dummy
$CC; ac_cc
="`echo $2 |
872 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
873 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
876 echo 'foo(){}' > conftest.c
877 # Make sure it works both with $CC and with simple cc.
878 # We do the test twice because some compilers refuse to overwrite an
879 # existing .o file with -o, though they will create one.
880 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
881 if { (eval echo configure
:882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
882 test -f conftest.o
&& { (eval echo configure
:883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
884 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
885 if test "x$CC" != xcc
; then
886 # Test first that cc exists at all.
887 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
888 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
889 if { (eval echo configure
:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
890 test -f conftest.o
&& { (eval echo configure
:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
895 # cc exists but doesn't like -o.
896 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
901 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
906 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
907 echo "$ac_t""yes" 1>&6
909 echo "$ac_t""no" 1>&6
910 cat >> confdefs.h
<<\EOF
911 #define NO_MINUS_C_MINUS_O 1
916 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
917 echo "configure:918: checking how to run the C preprocessor" >&5
918 # On Suns, sometimes $CPP names a directory.
919 if test -n "$CPP" && test -d "$CPP"; then
922 if test -z "$CPP"; then
923 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
924 echo $ac_n "(cached) $ac_c" 1>&6
926 # This must be in double quotes, not single quotes, because CPP may get
927 # substituted into the Makefile and "${CC-cc}" will confuse make.
929 # On the NeXT, cc -E runs the code through the compiler's parser,
930 # not just through cpp.
931 cat > conftest.
$ac_ext <<EOF
932 #line 933 "configure"
933 #include "confdefs.h"
937 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
938 { (eval echo configure
:939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
939 ac_err
=`grep -v '^ *+' conftest.out`
940 if test -z "$ac_err"; then
944 echo "configure: failed program was:" >&5
945 cat conftest.
$ac_ext >&5
947 CPP
="${CC-cc} -E -traditional-cpp"
948 cat > conftest.
$ac_ext <<EOF
949 #line 950 "configure"
950 #include "confdefs.h"
954 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
955 { (eval echo configure
:956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
956 ac_err
=`grep -v '^ *+' conftest.out`
957 if test -z "$ac_err"; then
961 echo "configure: failed program was:" >&5
962 cat conftest.
$ac_ext >&5
969 ac_cv_prog_CPP
="$CPP"
971 CPP
="$ac_cv_prog_CPP"
973 ac_cv_prog_CPP
="$CPP"
975 echo "$ac_t""$CPP" 1>&6
977 if test $ac_cv_prog_gcc = yes; then
978 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
979 echo "configure:980: checking whether ${CC-cc} needs -traditional" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
983 ac_pattern
="Autoconf.*'x'"
984 cat > conftest.
$ac_ext <<EOF
985 #line 986 "configure"
986 #include "confdefs.h"
990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
991 egrep "$ac_pattern" >/dev
/null
2>&1; then
993 ac_cv_prog_gcc_traditional
=yes
996 ac_cv_prog_gcc_traditional
=no
1001 if test $ac_cv_prog_gcc_traditional = no
; then
1002 cat > conftest.
$ac_ext <<EOF
1003 #line 1004 "configure"
1004 #include "confdefs.h"
1008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1009 egrep "$ac_pattern" >/dev
/null
2>&1; then
1011 ac_cv_prog_gcc_traditional
=yes
1018 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1019 if test $ac_cv_prog_gcc_traditional = yes; then
1020 CC
="$CC -traditional"
1027 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1029 # Extract the first word of "$ac_prog", so it can be a program name with args.
1030 set dummy
$ac_prog; ac_word
=$2
1031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1032 echo "configure:1033: checking for $ac_word" >&5
1033 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 if test -n "$CXX"; then
1037 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1039 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1040 for ac_dir
in $PATH; do
1041 test -z "$ac_dir" && ac_dir
=.
1042 if test -f $ac_dir/$ac_word; then
1043 ac_cv_prog_CXX
="$ac_prog"
1050 CXX
="$ac_cv_prog_CXX"
1051 if test -n "$CXX"; then
1052 echo "$ac_t""$CXX" 1>&6
1054 echo "$ac_t""no" 1>&6
1057 test -n "$CXX" && break
1059 test -n "$CXX" || CXX
="gcc"
1062 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1063 echo "configure:1064: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1066 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1067 ac_cpp
='$CXXCPP $CPPFLAGS'
1068 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1069 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1070 cross_compiling
=$ac_cv_prog_cxx_cross
1072 cat > conftest.
$ac_ext <<EOF
1073 #line 1074 "configure"
1074 #include "confdefs.h"
1077 if { (eval echo configure
:1078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1078 ac_cv_prog_cxx_works
=yes
1079 # If we can't run a trivial program, we are probably using a cross compiler.
1080 if (.
/conftest
; exit) 2>/dev
/null
; then
1081 ac_cv_prog_cxx_cross
=no
1083 ac_cv_prog_cxx_cross
=yes
1086 echo "configure: failed program was:" >&5
1087 cat conftest.
$ac_ext >&5
1088 ac_cv_prog_cxx_works
=no
1092 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1093 ac_cpp
='$CPP $CPPFLAGS'
1094 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1095 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1096 cross_compiling
=$ac_cv_prog_cc_cross
1098 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1099 if test $ac_cv_prog_cxx_works = no
; then
1100 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1102 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1103 echo "configure:1104: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1104 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1105 cross_compiling
=$ac_cv_prog_cxx_cross
1107 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1108 echo "configure:1109: checking whether we are using GNU C++" >&5
1109 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1112 cat > conftest.C
<<EOF
1117 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
1124 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1126 if test $ac_cv_prog_gxx = yes; then
1128 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1129 ac_save_CXXFLAGS
="$CXXFLAGS"
1131 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1132 echo "configure:1133: checking whether ${CXX-g++} accepts -g" >&5
1133 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1136 echo 'void f(){}' > conftest.cc
1137 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1138 ac_cv_prog_cxx_g
=yes
1146 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1147 if test "$ac_test_CXXFLAGS" = set; then
1148 CXXFLAGS
="$ac_save_CXXFLAGS"
1149 elif test $ac_cv_prog_cxx_g = yes; then
1156 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1159 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1160 echo "configure:1161: checking how to run the C++ preprocessor" >&5
1161 if test -z "$CXXCPP"; then
1162 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1166 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1167 ac_cpp
='$CXXCPP $CPPFLAGS'
1168 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1169 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1170 cross_compiling
=$ac_cv_prog_cxx_cross
1171 CXXCPP
="${CXX-g++} -E"
1172 cat > conftest.
$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1177 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1178 { (eval echo configure
:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1179 ac_err
=`grep -v '^ *+' conftest.out`
1180 if test -z "$ac_err"; then
1184 echo "configure: failed program was:" >&5
1185 cat conftest.
$ac_ext >&5
1190 ac_cv_prog_CXXCPP
="$CXXCPP"
1192 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1193 ac_cpp
='$CPP $CPPFLAGS'
1194 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1195 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1196 cross_compiling
=$ac_cv_prog_cc_cross
1199 CXXCPP
="$ac_cv_prog_CXXCPP"
1200 echo "$ac_t""$CXXCPP" 1>&6
1203 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-g//g'`
1207 # Extract the first word of "ranlib", so it can be a program name with args.
1208 set dummy ranlib
; ac_word
=$2
1209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1210 echo "configure:1211: checking for $ac_word" >&5
1211 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1214 if test -n "$RANLIB"; then
1215 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1217 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1218 for ac_dir
in $PATH; do
1219 test -z "$ac_dir" && ac_dir
=.
1220 if test -f $ac_dir/$ac_word; then
1221 ac_cv_prog_RANLIB
="ranlib"
1226 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1229 RANLIB
="$ac_cv_prog_RANLIB"
1230 if test -n "$RANLIB"; then
1231 echo "$ac_t""$RANLIB" 1>&6
1233 echo "$ac_t""no" 1>&6
1237 # Extract the first word of "ar", so it can be a program name with args.
1238 set dummy
ar; ac_word
=$2
1239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1240 echo "configure:1241: checking for $ac_word" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1244 if test -n "$AR"; then
1245 ac_cv_prog_AR
="$AR" # Let the user override the test.
1247 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1248 for ac_dir
in $PATH; do
1249 test -z "$ac_dir" && ac_dir
=.
1250 if test -f $ac_dir/$ac_word; then
1256 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1260 if test -n "$AR"; then
1261 echo "$ac_t""$AR" 1>&6
1263 echo "$ac_t""no" 1>&6
1268 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1269 if test -f $ac_dir/install-sh; then
1271 ac_install_sh
="$ac_aux_dir/install-sh -c"
1273 elif test -f $ac_dir/install.sh
; then
1275 ac_install_sh
="$ac_aux_dir/install.sh -c"
1279 if test -z "$ac_aux_dir"; then
1280 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1282 ac_config_guess
=$ac_aux_dir/config.guess
1283 ac_config_sub
=$ac_aux_dir/config.sub
1284 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1286 # Find a good install program. We prefer a C program (faster),
1287 # so one script is as good as another. But avoid the broken or
1288 # incompatible versions:
1289 # SysV /etc/install, /usr/sbin/install
1290 # SunOS /usr/etc/install
1291 # IRIX /sbin/install
1293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1295 # ./install, which can be erroneously created by make from ./install.sh.
1296 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1297 echo "configure:1298: checking for a BSD compatible install" >&5
1298 if test -z "$INSTALL"; then
1299 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1303 for ac_dir
in $PATH; do
1304 # Account for people who put trailing slashes in PATH elements.
1306 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1308 # OSF1 and SCO ODT 3.0 have their own names for install.
1309 for ac_prog
in ginstall installbsd scoinst
install; do
1310 if test -f $ac_dir/$ac_prog; then
1311 if test $ac_prog = install &&
1312 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1313 # AIX install. It has an incompatible calling convention.
1314 # OSF/1 installbsd also uses dspmsg, but is usable.
1317 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1328 if test "${ac_cv_path_install+set}" = set; then
1329 INSTALL
="$ac_cv_path_install"
1331 # As a last resort, use the slow shell script. We don't cache a
1332 # path for INSTALL within a source directory, because that will
1333 # break other packages using the cache if that directory is
1334 # removed, or if the path is relative.
1335 INSTALL
="$ac_install_sh"
1338 echo "$ac_t""$INSTALL" 1>&6
1340 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1341 # It thinks the first close brace ends the variable substitution.
1342 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1344 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1347 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1348 echo "configure:1349: checking whether ln -s works" >&5
1349 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1353 if ln -s X conftestdata
2>/dev
/null
1356 ac_cv_prog_LN_S
="ln -s"
1361 LN_S
="$ac_cv_prog_LN_S"
1362 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1363 echo "$ac_t""yes" 1>&6
1365 echo "$ac_t""no" 1>&6
1369 for ac_prog
in mawk gawk nawk
awk
1371 # Extract the first word of "$ac_prog", so it can be a program name with args.
1372 set dummy
$ac_prog; ac_word
=$2
1373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1374 echo "configure:1375: checking for $ac_word" >&5
1375 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 if test -n "$AWK"; then
1379 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1381 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1382 for ac_dir
in $PATH; do
1383 test -z "$ac_dir" && ac_dir
=.
1384 if test -f $ac_dir/$ac_word; then
1385 ac_cv_prog_AWK
="$ac_prog"
1392 AWK
="$ac_cv_prog_AWK"
1393 if test -n "$AWK"; then
1394 echo "$ac_t""$AWK" 1>&6
1396 echo "$ac_t""no" 1>&6
1399 test -n "$AWK" && break
1403 echo $ac_n "checking "make for VPATH support
"""... $ac_c" 1>&6
1404 echo "configure:1405: checking "make for VPATH support
"" >&5
1405 cat - << EOF > confMake
1411 if test ! -d sub
; then
1414 echo dummy
> sub
/file
1415 ${MAKE-make} -f confMake VPATH
=sub
2> config.log
> /dev
/null
1417 rm -f sub
/file check final_file confMake
1419 if test "$RESULT" = 0; then
1420 echo "$ac_t""yes" 1>&6
1422 echo "$ac_t""no" 1>&6
1423 { echo "configure: error: You need a make-utility that is able to use the variable
1425 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
1429 # If we find X, set shell vars x_includes and x_libraries to the
1430 # paths, otherwise set no_x=yes.
1431 # Uses ac_ vars as temps to allow command line to override cache and checks.
1432 # --without-x overrides everything else, but does not touch the cache.
1433 echo $ac_n "checking for X""... $ac_c" 1>&6
1434 echo "configure:1435: checking for X" >&5
1436 # Check whether --with-x or --without-x was given.
1437 if test "${with_x+set}" = set; then
1442 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1443 if test "x$with_x" = xno
; then
1444 # The user explicitly disabled X.
1447 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1448 # Both variables are already set.
1451 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1454 # One or both of the vars are not set, and there is no cached value.
1455 ac_x_includes
=NO ac_x_libraries
=NO
1457 if mkdir conftestdir
; then
1459 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1460 cat > Imakefile
<<'EOF'
1462 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1464 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1465 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1466 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1467 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1468 for ac_extension
in a so sl
; do
1469 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1470 test -f $ac_im_libdir/libX11.
$ac_extension; then
1471 ac_im_usrlibdir
=$ac_im_libdir; break
1474 # Screen out bogus values from the imake configuration. They are
1475 # bogus both because they are the default anyway, and because
1476 # using them would break gcc on systems where it needs fixed includes.
1477 case "$ac_im_incroot" in
1479 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1481 case "$ac_im_usrlibdir" in
1483 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1490 if test "$ac_x_includes" = NO
; then
1491 # Guess where to find include files, by looking for this one X11 .h file.
1492 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1494 # First, try using that file with no special directory specified.
1495 cat > conftest.
$ac_ext <<EOF
1496 #line 1497 "configure"
1497 #include "confdefs.h"
1498 #include <$x_direct_test_include>
1500 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1501 { (eval echo configure
:1502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1502 ac_err
=`grep -v '^ *+' conftest.out`
1503 if test -z "$ac_err"; then
1505 # We can compile using X headers with no special include directory.
1509 echo "configure: failed program was:" >&5
1510 cat conftest.
$ac_ext >&5
1512 # Look for the header file in a standard set of common directories.
1513 # Check X11 before X11Rn because it is often a symlink to the current release.
1516 /usr
/X
11R
6/include \
1517 /usr
/X
11R
5/include \
1518 /usr
/X
11R
4/include \
1521 /usr
/include
/X11R6 \
1522 /usr
/include
/X11R5 \
1523 /usr
/include
/X11R4 \
1525 /usr
/local
/X
11/include \
1526 /usr
/local
/X
11R
6/include \
1527 /usr
/local
/X
11R
5/include \
1528 /usr
/local
/X
11R
4/include \
1530 /usr
/local
/include
/X11 \
1531 /usr
/local
/include
/X11R6 \
1532 /usr
/local
/include
/X11R5 \
1533 /usr
/local
/include
/X11R4 \
1537 /usr
/XFree
86/include
/X11 \
1540 /usr
/local
/include \
1541 /usr
/unsupported
/include \
1542 /usr
/athena
/include \
1543 /usr
/local
/x
11r
5/include \
1544 /usr
/lpp
/Xamples
/include \
1546 /usr
/openwin
/include \
1547 /usr
/openwin
/share
/include \
1550 if test -r "$ac_dir/$x_direct_test_include"; then
1551 ac_x_includes
=$ac_dir
1557 fi # $ac_x_includes = NO
1559 if test "$ac_x_libraries" = NO
; then
1560 # Check for the libraries.
1562 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1563 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1565 # See if we find them without any special options.
1566 # Don't add to $LIBS permanently.
1567 ac_save_LIBS
="$LIBS"
1568 LIBS
="-l$x_direct_test_library $LIBS"
1569 cat > conftest.
$ac_ext <<EOF
1570 #line 1571 "configure"
1571 #include "confdefs.h"
1574 ${x_direct_test_function}()
1577 if { (eval echo configure
:1578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1579 LIBS
="$ac_save_LIBS"
1580 # We can link X programs with no special library path.
1583 echo "configure: failed program was:" >&5
1584 cat conftest.
$ac_ext >&5
1586 LIBS
="$ac_save_LIBS"
1587 # First see if replacing the include by lib works.
1588 # Check X11 before X11Rn because it is often a symlink to the current release.
1589 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1600 /usr
/local
/X
11/lib \
1601 /usr
/local
/X
11R
6/lib \
1602 /usr
/local
/X
11R
5/lib \
1603 /usr
/local
/X
11R
4/lib \
1605 /usr
/local
/lib
/X11 \
1606 /usr
/local
/lib
/X11R6 \
1607 /usr
/local
/lib
/X11R5 \
1608 /usr
/local
/lib
/X11R4 \
1612 /usr
/XFree
86/lib
/X11 \
1616 /usr
/unsupported
/lib \
1618 /usr
/local
/x
11r
5/lib \
1619 /usr
/lpp
/Xamples
/lib \
1623 /usr
/openwin
/share
/lib \
1626 for ac_extension
in a so sl
; do
1627 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1628 ac_x_libraries
=$ac_dir
1635 fi # $ac_x_libraries = NO
1637 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
1638 # Didn't find X anywhere. Cache the known absence of X.
1639 ac_cv_have_x
="have_x=no"
1641 # Record where we found X for the cache.
1642 ac_cv_have_x
="have_x=yes \
1643 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1647 eval "$ac_cv_have_x"
1650 if test "$have_x" != yes; then
1651 echo "$ac_t""$have_x" 1>&6
1654 # If each of the values was on the command line, it overrides each guess.
1655 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1656 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1657 # Update the cache value to reflect the command line values.
1658 ac_cv_have_x
="have_x=yes \
1659 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1660 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1663 if test "$no_x" = yes; then
1664 # Not all programs may use this symbol, but it does not hurt to define it.
1665 cat >> confdefs.h
<<\EOF
1666 #define X_DISPLAY_MISSING 1
1669 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1671 if test -n "$x_includes"; then
1672 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1675 # It would also be nice to do this for all -L options, not just this one.
1676 if test -n "$x_libraries"; then
1677 X_LIBS
="$X_LIBS -L$x_libraries"
1678 # For Solaris; some versions of Sun CC require a space after -R and
1679 # others require no space. Words are not sufficient . . . .
1680 case "`(uname -sr) 2>/dev/null`" in
1682 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1683 echo "configure:1684: checking whether -R must be followed by a space" >&5
1684 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1685 cat > conftest.
$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1693 if { (eval echo configure
:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1697 echo "configure: failed program was:" >&5
1698 cat conftest.
$ac_ext >&5
1703 if test $ac_R_nospace = yes; then
1704 echo "$ac_t""no" 1>&6
1705 X_LIBS
="$X_LIBS -R$x_libraries"
1707 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1708 cat > conftest.
$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1716 if { (eval echo configure
:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1720 echo "configure: failed program was:" >&5
1721 cat conftest.
$ac_ext >&5
1726 if test $ac_R_space = yes; then
1727 echo "$ac_t""yes" 1>&6
1728 X_LIBS
="$X_LIBS -R $x_libraries"
1730 echo "$ac_t""neither works" 1>&6
1733 LIBS
="$ac_xsave_LIBS"
1737 # Check for system-dependent libraries X programs must link with.
1738 # Do this before checking for the system-independent R6 libraries
1739 # (-lICE), since we may need -lsocket or whatever for X linking.
1741 if test "$ISC" = yes; then
1742 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1744 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1745 # libraries were built with DECnet support. And karl@cs.umb.edu says
1746 # the Alpha needs dnet_stub (dnet does not exist).
1747 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1748 echo "configure:1749: checking for dnet_ntoa in -ldnet" >&5
1749 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 ac_save_LIBS
="$LIBS"
1755 cat > conftest.
$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1758 /* Override any gcc2 internal prototype to avoid an error. */
1759 /* We use char because int might match the return type of a gcc2
1760 builtin and then its argument prototype would still apply. */
1767 if { (eval echo configure
:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1769 eval "ac_cv_lib_$ac_lib_var=yes"
1771 echo "configure: failed program was:" >&5
1772 cat conftest.
$ac_ext >&5
1774 eval "ac_cv_lib_$ac_lib_var=no"
1777 LIBS
="$ac_save_LIBS"
1780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1781 echo "$ac_t""yes" 1>&6
1782 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1784 echo "$ac_t""no" 1>&6
1787 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1788 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1789 echo "configure:1790: checking for dnet_ntoa in -ldnet_stub" >&5
1790 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 ac_save_LIBS
="$LIBS"
1795 LIBS
="-ldnet_stub $LIBS"
1796 cat > conftest.
$ac_ext <<EOF
1797 #line 1798 "configure"
1798 #include "confdefs.h"
1799 /* Override any gcc2 internal prototype to avoid an error. */
1800 /* We use char because int might match the return type of a gcc2
1801 builtin and then its argument prototype would still apply. */
1808 if { (eval echo configure
:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1810 eval "ac_cv_lib_$ac_lib_var=yes"
1812 echo "configure: failed program was:" >&5
1813 cat conftest.
$ac_ext >&5
1815 eval "ac_cv_lib_$ac_lib_var=no"
1818 LIBS
="$ac_save_LIBS"
1821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1822 echo "$ac_t""yes" 1>&6
1823 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1825 echo "$ac_t""no" 1>&6
1830 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1831 # to get the SysV transport functions.
1832 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1834 # The nsl library prevents programs from opening the X display
1835 # on Irix 5.2, according to dickey@clark.net.
1836 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1837 echo "configure:1838: checking for gethostbyname" >&5
1838 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1841 cat > conftest.
$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char gethostbyname(); below. */
1847 /* Override any gcc2 internal prototype to avoid an error. */
1848 /* We use char because int might match the return type of a gcc2
1849 builtin and then its argument prototype would still apply. */
1850 char gethostbyname();
1854 /* The GNU C library defines this for functions which it implements
1855 to always fail with ENOSYS. Some functions are actually named
1856 something starting with __ and the normal name is an alias. */
1857 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1865 if { (eval echo configure
:1866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1867 eval "ac_cv_func_gethostbyname=yes"
1869 echo "configure: failed program was:" >&5
1870 cat conftest.
$ac_ext >&5
1872 eval "ac_cv_func_gethostbyname=no"
1877 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1878 echo "$ac_t""yes" 1>&6
1881 echo "$ac_t""no" 1>&6
1884 if test $ac_cv_func_gethostbyname = no
; then
1885 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1886 echo "configure:1887: checking for gethostbyname in -lnsl" >&5
1887 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 ac_save_LIBS
="$LIBS"
1893 cat > conftest.
$ac_ext <<EOF
1894 #line 1895 "configure"
1895 #include "confdefs.h"
1896 /* Override any gcc2 internal prototype to avoid an error. */
1897 /* We use char because int might match the return type of a gcc2
1898 builtin and then its argument prototype would still apply. */
1899 char gethostbyname();
1905 if { (eval echo configure
:1906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1907 eval "ac_cv_lib_$ac_lib_var=yes"
1909 echo "configure: failed program was:" >&5
1910 cat conftest.
$ac_ext >&5
1912 eval "ac_cv_lib_$ac_lib_var=no"
1915 LIBS
="$ac_save_LIBS"
1918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1919 echo "$ac_t""yes" 1>&6
1920 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1922 echo "$ac_t""no" 1>&6
1927 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1928 # socket/setsockopt and other routines are undefined under SCO ODT
1929 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1930 # on later versions), says simon@lia.di.epfl.ch: it contains
1931 # gethostby* variants that don't use the nameserver (or something).
1932 # -lsocket must be given before -lnsl if both are needed.
1933 # We assume that if connect needs -lnsl, so does gethostbyname.
1934 echo $ac_n "checking for connect""... $ac_c" 1>&6
1935 echo "configure:1936: checking for connect" >&5
1936 if eval "test \"`echo '$''{'ac_cv_func_connect'+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 connect(); 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. */
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_connect) || defined (__stub___connect)
1963 if { (eval echo configure
:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1965 eval "ac_cv_func_connect=yes"
1967 echo "configure: failed program was:" >&5
1968 cat conftest.
$ac_ext >&5
1970 eval "ac_cv_func_connect=no"
1975 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1979 echo "$ac_t""no" 1>&6
1982 if test $ac_cv_func_connect = no
; then
1983 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1984 echo "configure:1985: checking for connect in -lsocket" >&5
1985 ac_lib_var
=`echo socket'_'connect | 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"
1990 LIBS
="-lsocket $X_EXTRA_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. */
2003 if { (eval echo configure
:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; 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
="-lsocket $X_EXTRA_LIBS"
2020 echo "$ac_t""no" 1>&6
2025 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2026 echo $ac_n "checking for remove""... $ac_c" 1>&6
2027 echo "configure:2028: checking for remove" >&5
2028 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2029 echo $ac_n "(cached) $ac_c" 1>&6
2031 cat > conftest.
$ac_ext <<EOF
2032 #line 2033 "configure"
2033 #include "confdefs.h"
2034 /* System header to define __stub macros and hopefully few prototypes,
2035 which can conflict with char remove(); below. */
2037 /* Override any gcc2 internal prototype to avoid an error. */
2038 /* We use char because int might match the return type of a gcc2
2039 builtin and then its argument prototype would still apply. */
2044 /* The GNU C library defines this for functions which it implements
2045 to always fail with ENOSYS. Some functions are actually named
2046 something starting with __ and the normal name is an alias. */
2047 #if defined (__stub_remove) || defined (__stub___remove)
2055 if { (eval echo configure
:2056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2057 eval "ac_cv_func_remove=yes"
2059 echo "configure: failed program was:" >&5
2060 cat conftest.
$ac_ext >&5
2062 eval "ac_cv_func_remove=no"
2067 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2068 echo "$ac_t""yes" 1>&6
2071 echo "$ac_t""no" 1>&6
2074 if test $ac_cv_func_remove = no
; then
2075 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2076 echo "configure:2077: checking for remove in -lposix" >&5
2077 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2081 ac_save_LIBS
="$LIBS"
2082 LIBS
="-lposix $LIBS"
2083 cat > conftest.
$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 /* Override any gcc2 internal prototype to avoid an error. */
2087 /* We use char because int might match the return type of a gcc2
2088 builtin and then its argument prototype would still apply. */
2095 if { (eval echo configure
:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2097 eval "ac_cv_lib_$ac_lib_var=yes"
2099 echo "configure: failed program was:" >&5
2100 cat conftest.
$ac_ext >&5
2102 eval "ac_cv_lib_$ac_lib_var=no"
2105 LIBS
="$ac_save_LIBS"
2108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2110 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2112 echo "$ac_t""no" 1>&6
2117 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2118 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2119 echo "configure:2120: checking for shmat" >&5
2120 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2123 cat > conftest.
$ac_ext <<EOF
2124 #line 2125 "configure"
2125 #include "confdefs.h"
2126 /* System header to define __stub macros and hopefully few prototypes,
2127 which can conflict with char shmat(); below. */
2129 /* Override any gcc2 internal prototype to avoid an error. */
2130 /* We use char because int might match the return type of a gcc2
2131 builtin and then its argument prototype would still apply. */
2136 /* The GNU C library defines this for functions which it implements
2137 to always fail with ENOSYS. Some functions are actually named
2138 something starting with __ and the normal name is an alias. */
2139 #if defined (__stub_shmat) || defined (__stub___shmat)
2147 if { (eval echo configure
:2148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2149 eval "ac_cv_func_shmat=yes"
2151 echo "configure: failed program was:" >&5
2152 cat conftest.
$ac_ext >&5
2154 eval "ac_cv_func_shmat=no"
2159 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2160 echo "$ac_t""yes" 1>&6
2163 echo "$ac_t""no" 1>&6
2166 if test $ac_cv_func_shmat = no
; then
2167 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2168 echo "configure:2169: checking for shmat in -lipc" >&5
2169 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 ac_save_LIBS
="$LIBS"
2175 cat > conftest.
$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2178 /* Override any gcc2 internal prototype to avoid an error. */
2179 /* We use char because int might match the return type of a gcc2
2180 builtin and then its argument prototype would still apply. */
2187 if { (eval echo configure
:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2189 eval "ac_cv_lib_$ac_lib_var=yes"
2191 echo "configure: failed program was:" >&5
2192 cat conftest.
$ac_ext >&5
2194 eval "ac_cv_lib_$ac_lib_var=no"
2197 LIBS
="$ac_save_LIBS"
2200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2201 echo "$ac_t""yes" 1>&6
2202 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2204 echo "$ac_t""no" 1>&6
2210 # Check for libraries that X11R6 Xt/Xaw programs need.
2211 ac_save_LDFLAGS
="$LDFLAGS"
2212 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2213 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2214 # check for ICE first), but we must link in the order -lSM -lICE or
2215 # we get undefined symbols. So assume we have SM if we have ICE.
2216 # These have to be linked with before -lX11, unlike the other
2217 # libraries we check for below, so use a different variable.
2218 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2219 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2220 echo "configure:2221: checking for IceConnectionNumber in -lICE" >&5
2221 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2225 ac_save_LIBS
="$LIBS"
2227 cat > conftest.
$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 /* Override any gcc2 internal prototype to avoid an error. */
2231 /* We use char because int might match the return type of a gcc2
2232 builtin and then its argument prototype would still apply. */
2233 char IceConnectionNumber();
2236 IceConnectionNumber()
2239 if { (eval echo configure
:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2241 eval "ac_cv_lib_$ac_lib_var=yes"
2243 echo "configure: failed program was:" >&5
2244 cat conftest.
$ac_ext >&5
2246 eval "ac_cv_lib_$ac_lib_var=no"
2249 LIBS
="$ac_save_LIBS"
2252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
2254 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2256 echo "$ac_t""no" 1>&6
2259 LDFLAGS
="$ac_save_LDFLAGS"
2265 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2267 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2268 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2269 echo "configure:2270: checking for $ac_hdr that defines DIR" >&5
2270 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 cat > conftest.
$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276 #include <sys/types.h>
2282 if { (eval echo configure
:2283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2284 eval "ac_cv_header_dirent_$ac_safe=yes"
2286 echo "configure: failed program was:" >&5
2287 cat conftest.
$ac_ext >&5
2289 eval "ac_cv_header_dirent_$ac_safe=no"
2293 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2294 echo "$ac_t""yes" 1>&6
2295 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2296 cat >> confdefs.h
<<EOF
2297 #define $ac_tr_hdr 1
2299 ac_header_dirent
=$ac_hdr; break
2301 echo "$ac_t""no" 1>&6
2304 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2305 if test $ac_header_dirent = dirent.h
; then
2306 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2307 echo "configure:2308: checking for opendir in -ldir" >&5
2308 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2312 ac_save_LIBS
="$LIBS"
2314 cat > conftest.
$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2317 /* Override any gcc2 internal prototype to avoid an error. */
2318 /* We use char because int might match the return type of a gcc2
2319 builtin and then its argument prototype would still apply. */
2326 if { (eval echo configure
:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2328 eval "ac_cv_lib_$ac_lib_var=yes"
2330 echo "configure: failed program was:" >&5
2331 cat conftest.
$ac_ext >&5
2333 eval "ac_cv_lib_$ac_lib_var=no"
2336 LIBS
="$ac_save_LIBS"
2339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2340 echo "$ac_t""yes" 1>&6
2343 echo "$ac_t""no" 1>&6
2347 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2348 echo "configure:2349: checking for opendir in -lx" >&5
2349 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2353 ac_save_LIBS
="$LIBS"
2355 cat > conftest.
$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2358 /* Override any gcc2 internal prototype to avoid an error. */
2359 /* We use char because int might match the return type of a gcc2
2360 builtin and then its argument prototype would still apply. */
2367 if { (eval echo configure
:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2369 eval "ac_cv_lib_$ac_lib_var=yes"
2371 echo "configure: failed program was:" >&5
2372 cat conftest.
$ac_ext >&5
2374 eval "ac_cv_lib_$ac_lib_var=no"
2377 LIBS
="$ac_save_LIBS"
2380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2384 echo "$ac_t""no" 1>&6
2389 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2390 echo "configure:2391: checking for ANSI C header files" >&5
2391 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2394 cat > conftest.
$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2402 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2403 { (eval echo configure
:2404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2404 ac_err
=`grep -v '^ *+' conftest.out`
2405 if test -z "$ac_err"; then
2407 ac_cv_header_stdc
=yes
2410 echo "configure: failed program was:" >&5
2411 cat conftest.
$ac_ext >&5
2413 ac_cv_header_stdc
=no
2417 if test $ac_cv_header_stdc = yes; then
2418 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2419 cat > conftest.
$ac_ext <<EOF
2420 #line 2421 "configure"
2421 #include "confdefs.h"
2424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2425 egrep "memchr" >/dev
/null
2>&1; then
2429 ac_cv_header_stdc
=no
2435 if test $ac_cv_header_stdc = yes; then
2436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2437 cat > conftest.
$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2443 egrep "free" >/dev
/null
2>&1; then
2447 ac_cv_header_stdc
=no
2453 if test $ac_cv_header_stdc = yes; then
2454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2455 if test "$cross_compiling" = yes; then
2458 cat > conftest.
$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2462 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2463 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2465 int main () { int i; for (i = 0; i < 256; i++)
2466 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2470 if { (eval echo configure
:2471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2474 echo "configure: failed program was:" >&5
2475 cat conftest.
$ac_ext >&5
2477 ac_cv_header_stdc
=no
2485 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2486 if test $ac_cv_header_stdc = yes; then
2487 cat >> confdefs.h
<<\EOF
2488 #define STDC_HEADERS 1
2493 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2494 echo "configure:2495: checking for sys/wait.h that is POSIX.1 compatible" >&5
2495 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 cat > conftest.
$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 #include <sys/types.h>
2502 #include <sys/wait.h>
2504 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2507 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2512 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2515 if { (eval echo configure
:2516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2517 ac_cv_header_sys_wait_h
=yes
2519 echo "configure: failed program was:" >&5
2520 cat conftest.
$ac_ext >&5
2522 ac_cv_header_sys_wait_h
=no
2527 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2528 if test $ac_cv_header_sys_wait_h = yes; then
2529 cat >> confdefs.h
<<\EOF
2530 #define HAVE_SYS_WAIT_H 1
2535 for ac_hdr
in fcntl.h
2537 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2539 echo "configure:2540: checking for $ac_hdr" >&5
2540 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 cat > conftest.
$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2548 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2549 { (eval echo configure
:2550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2550 ac_err
=`grep -v '^ *+' conftest.out`
2551 if test -z "$ac_err"; then
2553 eval "ac_cv_header_$ac_safe=yes"
2556 echo "configure: failed program was:" >&5
2557 cat conftest.
$ac_ext >&5
2559 eval "ac_cv_header_$ac_safe=no"
2563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2564 echo "$ac_t""yes" 1>&6
2565 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2566 cat >> confdefs.h
<<EOF
2567 #define $ac_tr_hdr 1
2571 echo "$ac_t""no" 1>&6
2575 for ac_hdr
in limits.h
2577 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2579 echo "configure:2580: checking for $ac_hdr" >&5
2580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 cat > conftest.
$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2588 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2589 { (eval echo configure
:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2590 ac_err
=`grep -v '^ *+' conftest.out`
2591 if test -z "$ac_err"; then
2593 eval "ac_cv_header_$ac_safe=yes"
2596 echo "configure: failed program was:" >&5
2597 cat conftest.
$ac_ext >&5
2599 eval "ac_cv_header_$ac_safe=no"
2603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2604 echo "$ac_t""yes" 1>&6
2605 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2606 cat >> confdefs.h
<<EOF
2607 #define $ac_tr_hdr 1
2611 echo "$ac_t""no" 1>&6
2615 for ac_hdr
in sys
/file.h
2617 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2619 echo "configure:2620: checking for $ac_hdr" >&5
2620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2623 cat > conftest.
$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2628 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2629 { (eval echo configure
:2630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2630 ac_err
=`grep -v '^ *+' conftest.out`
2631 if test -z "$ac_err"; then
2633 eval "ac_cv_header_$ac_safe=yes"
2636 echo "configure: failed program was:" >&5
2637 cat conftest.
$ac_ext >&5
2639 eval "ac_cv_header_$ac_safe=no"
2643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2644 echo "$ac_t""yes" 1>&6
2645 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2646 cat >> confdefs.h
<<EOF
2647 #define $ac_tr_hdr 1
2651 echo "$ac_t""no" 1>&6
2655 for ac_hdr
in sys
/time.h
2657 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2659 echo "configure:2660: checking for $ac_hdr" >&5
2660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2663 cat > conftest.
$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2668 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2669 { (eval echo configure
:2670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2670 ac_err
=`grep -v '^ *+' conftest.out`
2671 if test -z "$ac_err"; then
2673 eval "ac_cv_header_$ac_safe=yes"
2676 echo "configure: failed program was:" >&5
2677 cat conftest.
$ac_ext >&5
2679 eval "ac_cv_header_$ac_safe=no"
2683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2684 echo "$ac_t""yes" 1>&6
2685 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2686 cat >> confdefs.h
<<EOF
2687 #define $ac_tr_hdr 1
2691 echo "$ac_t""no" 1>&6
2695 for ac_hdr
in unistd.h
2697 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2699 echo "configure:2700: checking for $ac_hdr" >&5
2700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2703 cat > conftest.
$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2708 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2709 { (eval echo configure
:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2710 ac_err
=`grep -v '^ *+' conftest.out`
2711 if test -z "$ac_err"; then
2713 eval "ac_cv_header_$ac_safe=yes"
2716 echo "configure: failed program was:" >&5
2717 cat conftest.
$ac_ext >&5
2719 eval "ac_cv_header_$ac_safe=no"
2723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2724 echo "$ac_t""yes" 1>&6
2725 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2726 cat >> confdefs.h
<<EOF
2727 #define $ac_tr_hdr 1
2731 echo "$ac_t""no" 1>&6
2735 for ac_hdr
in fnmatch.h
2737 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_hdr" >&5
2740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 cat > conftest.
$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2748 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2749 { (eval echo configure
:2750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2750 ac_err
=`grep -v '^ *+' conftest.out`
2751 if test -z "$ac_err"; then
2753 eval "ac_cv_header_$ac_safe=yes"
2756 echo "configure: failed program was:" >&5
2757 cat conftest.
$ac_ext >&5
2759 eval "ac_cv_header_$ac_safe=no"
2763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2764 echo "$ac_t""yes" 1>&6
2765 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2766 cat >> confdefs.h
<<EOF
2767 #define $ac_tr_hdr 1
2771 echo "$ac_t""no" 1>&6
2775 for ac_hdr
in linux
/joystick.h
2777 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2779 echo "configure:2780: checking for $ac_hdr" >&5
2780 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2783 cat > conftest.
$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2788 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2789 { (eval echo configure
:2790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2790 ac_err
=`grep -v '^ *+' conftest.out`
2791 if test -z "$ac_err"; then
2793 eval "ac_cv_header_$ac_safe=yes"
2796 echo "configure: failed program was:" >&5
2797 cat conftest.
$ac_ext >&5
2799 eval "ac_cv_header_$ac_safe=no"
2803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2804 echo "$ac_t""yes" 1>&6
2805 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2806 cat >> confdefs.h
<<EOF
2807 #define $ac_tr_hdr 1
2811 echo "$ac_t""no" 1>&6
2816 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
2817 GTK_JOYSTICK
="gtk/joystick.cpp"
2821 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2822 echo "configure:2823: checking for vprintf" >&5
2823 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2826 cat > conftest.
$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2829 /* System header to define __stub macros and hopefully few prototypes,
2830 which can conflict with char vprintf(); below. */
2832 /* Override any gcc2 internal prototype to avoid an error. */
2833 /* We use char because int might match the return type of a gcc2
2834 builtin and then its argument prototype would still apply. */
2839 /* The GNU C library defines this for functions which it implements
2840 to always fail with ENOSYS. Some functions are actually named
2841 something starting with __ and the normal name is an alias. */
2842 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2850 if { (eval echo configure
:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2852 eval "ac_cv_func_vprintf=yes"
2854 echo "configure: failed program was:" >&5
2855 cat conftest.
$ac_ext >&5
2857 eval "ac_cv_func_vprintf=no"
2862 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2863 echo "$ac_t""yes" 1>&6
2864 cat >> confdefs.h
<<\EOF
2865 #define HAVE_VPRINTF 1
2869 echo "$ac_t""no" 1>&6
2872 if test "$ac_cv_func_vprintf" != yes; then
2873 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2874 echo "configure:2875: checking for _doprnt" >&5
2875 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2878 cat > conftest.
$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2881 /* System header to define __stub macros and hopefully few prototypes,
2882 which can conflict with char _doprnt(); below. */
2884 /* Override any gcc2 internal prototype to avoid an error. */
2885 /* We use char because int might match the return type of a gcc2
2886 builtin and then its argument prototype would still apply. */
2891 /* The GNU C library defines this for functions which it implements
2892 to always fail with ENOSYS. Some functions are actually named
2893 something starting with __ and the normal name is an alias. */
2894 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2902 if { (eval echo configure
:2903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2904 eval "ac_cv_func__doprnt=yes"
2906 echo "configure: failed program was:" >&5
2907 cat conftest.
$ac_ext >&5
2909 eval "ac_cv_func__doprnt=no"
2914 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2915 echo "$ac_t""yes" 1>&6
2916 cat >> confdefs.h
<<\EOF
2917 #define HAVE_DOPRNT 1
2921 echo "$ac_t""no" 1>&6
2926 for ac_func
in vsnprintf
2928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2929 echo "configure:2930: checking for $ac_func" >&5
2930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2933 cat > conftest.
$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2936 /* System header to define __stub macros and hopefully few prototypes,
2937 which can conflict with char $ac_func(); below. */
2939 /* Override any gcc2 internal prototype to avoid an error. */
2940 /* We use char because int might match the return type of a gcc2
2941 builtin and then its argument prototype would still apply. */
2946 /* The GNU C library defines this for functions which it implements
2947 to always fail with ENOSYS. Some functions are actually named
2948 something starting with __ and the normal name is an alias. */
2949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2957 if { (eval echo configure
:2958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2959 eval "ac_cv_func_$ac_func=yes"
2961 echo "configure: failed program was:" >&5
2962 cat conftest.
$ac_ext >&5
2964 eval "ac_cv_func_$ac_func=no"
2969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2970 echo "$ac_t""yes" 1>&6
2971 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2972 cat >> confdefs.h
<<EOF
2973 #define $ac_tr_func 1
2977 echo "$ac_t""no" 1>&6
2982 for ac_func
in nanosleep
2984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2985 echo "configure:2986: checking for $ac_func" >&5
2986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 cat > conftest.
$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2992 /* System header to define __stub macros and hopefully few prototypes,
2993 which can conflict with char $ac_func(); below. */
2995 /* Override any gcc2 internal prototype to avoid an error. */
2996 /* We use char because int might match the return type of a gcc2
2997 builtin and then its argument prototype would still apply. */
3002 /* The GNU C library defines this for functions which it implements
3003 to always fail with ENOSYS. Some functions are actually named
3004 something starting with __ and the normal name is an alias. */
3005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3013 if { (eval echo configure
:3014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3015 eval "ac_cv_func_$ac_func=yes"
3017 echo "configure: failed program was:" >&5
3018 cat conftest.
$ac_ext >&5
3020 eval "ac_cv_func_$ac_func=no"
3025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3026 echo "$ac_t""yes" 1>&6
3027 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3028 cat >> confdefs.h
<<EOF
3029 #define $ac_tr_func 1
3031 cat >> confdefs.h
<<\EOF
3032 #define HAVE_NANOSLEEP 1
3036 echo "$ac_t""no" 1>&6
3037 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3038 echo "configure:3039: checking for nanosleep in -lposix4" >&5
3039 ac_lib_var
=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3040 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3043 ac_save_LIBS
="$LIBS"
3044 LIBS
="-lposix4 $LIBS"
3045 cat > conftest.
$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3048 /* Override any gcc2 internal prototype to avoid an error. */
3049 /* We use char because int might match the return type of a gcc2
3050 builtin and then its argument prototype would still apply. */
3057 if { (eval echo configure
:3058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3059 eval "ac_cv_lib_$ac_lib_var=yes"
3061 echo "configure: failed program was:" >&5
3062 cat conftest.
$ac_ext >&5
3064 eval "ac_cv_lib_$ac_lib_var=no"
3067 LIBS
="$ac_save_LIBS"
3070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3071 echo "$ac_t""yes" 1>&6
3072 cat >> confdefs.h
<<\EOF
3073 #define HAVE_NANOSLEEP 1
3077 echo "$ac_t""no" 1>&6
3083 for ac_func
in usleep
3085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3086 echo "configure:3087: checking for $ac_func" >&5
3087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 cat > conftest.
$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3093 /* System header to define __stub macros and hopefully few prototypes,
3094 which can conflict with char $ac_func(); below. */
3096 /* Override any gcc2 internal prototype to avoid an error. */
3097 /* We use char because int might match the return type of a gcc2
3098 builtin and then its argument prototype would still apply. */
3103 /* The GNU C library defines this for functions which it implements
3104 to always fail with ENOSYS. Some functions are actually named
3105 something starting with __ and the normal name is an alias. */
3106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3114 if { (eval echo configure
:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3116 eval "ac_cv_func_$ac_func=yes"
3118 echo "configure: failed program was:" >&5
3119 cat conftest.
$ac_ext >&5
3121 eval "ac_cv_func_$ac_func=no"
3126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3127 echo "$ac_t""yes" 1>&6
3128 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3129 cat >> confdefs.h
<<EOF
3130 #define $ac_tr_func 1
3134 echo "$ac_t""no" 1>&6
3141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3142 ac_cpp
='$CXXCPP $CPPFLAGS'
3143 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3144 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3145 cross_compiling
=$ac_cv_prog_cxx_cross
3147 for ac_hdr
in iostream
3149 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3151 echo "configure:3152: checking for $ac_hdr" >&5
3152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6
3155 cat > conftest.
$ac_ext <<EOF
3156 #line 3157 "configure"
3157 #include "confdefs.h"
3160 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3161 { (eval echo configure
:3162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3162 ac_err
=`grep -v '^ *+' conftest.out`
3163 if test -z "$ac_err"; then
3165 eval "ac_cv_header_$ac_safe=yes"
3168 echo "configure: failed program was:" >&5
3169 cat conftest.
$ac_ext >&5
3171 eval "ac_cv_header_$ac_safe=no"
3175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3176 echo "$ac_t""yes" 1>&6
3177 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3178 cat >> confdefs.h
<<EOF
3179 #define $ac_tr_hdr 1
3183 echo "$ac_t""no" 1>&6
3187 if test "x$HAVE_IOSTREAM" = "x" ; then
3188 cat >> confdefs.h
<<\EOF
3189 #define wxUSE_IOSTREAMH 1
3194 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3195 ac_cpp
='$CPP $CPPFLAGS'
3196 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3197 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3198 cross_compiling
=$ac_cv_prog_cc_cross
3201 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3202 echo "configure:3203: checking for uid_t in sys/types.h" >&5
3203 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3206 cat > conftest.
$ac_ext <<EOF
3207 #line 3208 "configure"
3208 #include "confdefs.h"
3209 #include <sys/types.h>
3211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3212 egrep "uid_t" >/dev
/null
2>&1; then
3214 ac_cv_type_uid_t
=yes
3223 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3224 if test $ac_cv_type_uid_t = no
; then
3225 cat >> confdefs.h
<<\EOF
3229 cat >> confdefs.h
<<\EOF
3235 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3236 echo "configure:3237: checking type of array argument to getgroups" >&5
3237 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3240 if test "$cross_compiling" = yes; then
3241 ac_cv_type_getgroups
=cross
3243 cat > conftest.
$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3247 /* Thanks to Mike Rendell for this test. */
3248 #include <sys/types.h>
3251 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3256 union { gid_t gval; long lval; } val;
3259 for (i = 0; i < NGID; i++)
3260 gidset[i] = val.gval;
3261 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3263 /* Exit non-zero if getgroups seems to require an array of ints. This
3264 happens when gid_t is short but getgroups modifies an array of ints. */
3265 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3269 if { (eval echo configure
:3270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3271 ac_cv_type_getgroups
=gid_t
3273 echo "configure: failed program was:" >&5
3274 cat conftest.
$ac_ext >&5
3276 ac_cv_type_getgroups
=int
3281 if test $ac_cv_type_getgroups = cross
; then
3282 cat > conftest.
$ac_ext <<EOF
3283 #line 3284 "configure"
3284 #include "confdefs.h"
3287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3288 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3290 ac_cv_type_getgroups
=gid_t
3293 ac_cv_type_getgroups
=int
3300 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3301 cat >> confdefs.h
<<EOF
3302 #define GETGROUPS_T $ac_cv_type_getgroups
3306 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3307 echo "configure:3308: checking for mode_t" >&5
3308 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 cat > conftest.
$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 #include <sys/types.h>
3320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3321 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3323 ac_cv_type_mode_t
=yes
3326 ac_cv_type_mode_t
=no
3331 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3332 if test $ac_cv_type_mode_t = no
; then
3333 cat >> confdefs.h
<<\EOF
3339 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3340 echo "configure:3341: checking for off_t" >&5
3341 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3344 cat > conftest.
$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 #include <sys/types.h>
3353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3354 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3356 ac_cv_type_off_t
=yes
3364 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3365 if test $ac_cv_type_off_t = no
; then
3366 cat >> confdefs.h
<<\EOF
3372 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3373 echo "configure:3374: checking for pid_t" >&5
3374 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3377 cat > conftest.
$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3380 #include <sys/types.h>
3386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3387 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3389 ac_cv_type_pid_t
=yes
3397 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3398 if test $ac_cv_type_pid_t = no
; then
3399 cat >> confdefs.h
<<\EOF
3405 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3406 echo "configure:3407: checking return type of signal handlers" >&5
3407 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.
$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 #include <sys/types.h>
3419 extern "C" void (*signal (int, void (*)(int)))(int);
3421 void (*signal ()) ();
3428 if { (eval echo configure
:3429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3430 ac_cv_type_signal
=void
3432 echo "configure: failed program was:" >&5
3433 cat conftest.
$ac_ext >&5
3435 ac_cv_type_signal
=int
3440 echo "$ac_t""$ac_cv_type_signal" 1>&6
3441 cat >> confdefs.h
<<EOF
3442 #define RETSIGTYPE $ac_cv_type_signal
3446 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3447 echo "configure:3448: checking for size_t" >&5
3448 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3451 cat > conftest.
$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 #include <sys/types.h>
3460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3461 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3463 ac_cv_type_size_t
=yes
3466 ac_cv_type_size_t
=no
3471 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3472 if test $ac_cv_type_size_t = no
; then
3473 cat >> confdefs.h
<<\EOF
3474 #define size_t unsigned
3479 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3480 echo "configure:3481: checking for uid_t in sys/types.h" >&5
3481 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3482 echo $ac_n "(cached) $ac_c" 1>&6
3484 cat > conftest.
$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 #include <sys/types.h>
3489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3490 egrep "uid_t" >/dev
/null
2>&1; then
3492 ac_cv_type_uid_t
=yes
3501 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3502 if test $ac_cv_type_uid_t = no
; then
3503 cat >> confdefs.h
<<\EOF
3507 cat >> confdefs.h
<<\EOF
3515 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3516 echo "configure:3517: checking whether stat file-mode macros are broken" >&5
3517 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 cat > conftest.
$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 #include <sys/types.h>
3524 #include <sys/stat.h>
3526 #if defined(S_ISBLK) && defined(S_IFDIR)
3527 # if S_ISBLK (S_IFDIR)
3532 #if defined(S_ISBLK) && defined(S_IFCHR)
3533 # if S_ISBLK (S_IFCHR)
3538 #if defined(S_ISLNK) && defined(S_IFREG)
3539 # if S_ISLNK (S_IFREG)
3544 #if defined(S_ISSOCK) && defined(S_IFREG)
3545 # if S_ISSOCK (S_IFREG)
3551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3552 egrep "You lose" >/dev
/null
2>&1; then
3554 ac_cv_header_stat_broken
=yes
3557 ac_cv_header_stat_broken
=no
3563 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3564 if test $ac_cv_header_stat_broken = yes; then
3565 cat >> confdefs.h
<<\EOF
3566 #define STAT_MACROS_BROKEN 1
3571 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3572 echo "configure:3573: checking whether time.h and sys/time.h may both be included" >&5
3573 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3574 echo $ac_n "(cached) $ac_c" 1>&6
3576 cat > conftest.
$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 #include <sys/types.h>
3580 #include <sys/time.h>
3586 if { (eval echo configure
:3587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3588 ac_cv_header_time
=yes
3590 echo "configure: failed program was:" >&5
3591 cat conftest.
$ac_ext >&5
3593 ac_cv_header_time
=no
3598 echo "$ac_t""$ac_cv_header_time" 1>&6
3599 if test $ac_cv_header_time = yes; then
3600 cat >> confdefs.h
<<\EOF
3601 #define TIME_WITH_SYS_TIME 1
3606 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3607 echo "configure:3608: checking for st_blksize in struct stat" >&5
3608 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3611 cat > conftest.
$ac_ext <<EOF
3612 #line 3613 "configure"
3613 #include "confdefs.h"
3614 #include <sys/types.h>
3615 #include <sys/stat.h>
3617 struct stat s; s.st_blksize;
3620 if { (eval echo configure
:3621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3622 ac_cv_struct_st_blksize
=yes
3624 echo "configure: failed program was:" >&5
3625 cat conftest.
$ac_ext >&5
3627 ac_cv_struct_st_blksize
=no
3632 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3633 if test $ac_cv_struct_st_blksize = yes; then
3634 cat >> confdefs.h
<<\EOF
3635 #define HAVE_ST_BLKSIZE 1
3640 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3641 echo "configure:3642: checking for st_blocks in struct stat" >&5
3642 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 cat > conftest.
$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 #include <sys/types.h>
3649 #include <sys/stat.h>
3651 struct stat s; s.st_blocks;
3654 if { (eval echo configure
:3655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3656 ac_cv_struct_st_blocks
=yes
3658 echo "configure: failed program was:" >&5
3659 cat conftest.
$ac_ext >&5
3661 ac_cv_struct_st_blocks
=no
3666 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3667 if test $ac_cv_struct_st_blocks = yes; then
3668 cat >> confdefs.h
<<\EOF
3669 #define HAVE_ST_BLOCKS 1
3673 LIBOBJS
="$LIBOBJS fileblocks.o"
3676 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3677 echo "configure:3678: checking for st_rdev in struct stat" >&5
3678 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3681 cat > conftest.
$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 #include <sys/types.h>
3685 #include <sys/stat.h>
3687 struct stat s; s.st_rdev;
3690 if { (eval echo configure
:3691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3692 ac_cv_struct_st_rdev
=yes
3694 echo "configure: failed program was:" >&5
3695 cat conftest.
$ac_ext >&5
3697 ac_cv_struct_st_rdev
=no
3702 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3703 if test $ac_cv_struct_st_rdev = yes; then
3704 cat >> confdefs.h
<<\EOF
3705 #define HAVE_ST_RDEV 1
3710 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3711 echo "configure:3712: checking whether struct tm is in sys/time.h or time.h" >&5
3712 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3715 cat > conftest.
$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 #include <sys/types.h>
3721 struct tm *tp; tp->tm_sec;
3724 if { (eval echo configure
:3725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3726 ac_cv_struct_tm
=time.h
3728 echo "configure: failed program was:" >&5
3729 cat conftest.
$ac_ext >&5
3731 ac_cv_struct_tm
=sys
/time.h
3736 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3737 if test $ac_cv_struct_tm = sys
/time.h
; then
3738 cat >> confdefs.h
<<\EOF
3739 #define TM_IN_SYS_TIME 1
3744 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3745 echo "configure:3746: checking for tm_zone in struct tm" >&5
3746 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3749 cat > conftest.
$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 #include <sys/types.h>
3753 #include <$ac_cv_struct_tm>
3755 struct tm tm; tm.tm_zone;
3758 if { (eval echo configure
:3759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3760 ac_cv_struct_tm_zone
=yes
3762 echo "configure: failed program was:" >&5
3763 cat conftest.
$ac_ext >&5
3765 ac_cv_struct_tm_zone
=no
3770 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3771 if test "$ac_cv_struct_tm_zone" = yes; then
3772 cat >> confdefs.h
<<\EOF
3773 #define HAVE_TM_ZONE 1
3777 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3778 echo "configure:3779: checking for tzname" >&5
3779 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3782 cat > conftest.
$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3786 #ifndef tzname /* For SGI. */
3787 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3793 if { (eval echo configure
:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3795 ac_cv_var_tzname
=yes
3797 echo "configure: failed program was:" >&5
3798 cat conftest.
$ac_ext >&5
3805 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3806 if test $ac_cv_var_tzname = yes; then
3807 cat >> confdefs.h
<<\EOF
3808 #define HAVE_TZNAME 1
3816 echo $ac_n "checking for working const""... $ac_c" 1>&6
3817 echo "configure:3818: checking for working const" >&5
3818 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3821 cat > conftest.
$ac_ext <<EOF
3822 #line 3823 "configure"
3823 #include "confdefs.h"
3827 /* Ultrix mips cc rejects this. */
3828 typedef int charset[2]; const charset x;
3829 /* SunOS 4.1.1 cc rejects this. */
3830 char const *const *ccp;
3832 /* NEC SVR4.0.2 mips cc rejects this. */
3833 struct point {int x, y;};
3834 static struct point const zero = {0,0};
3835 /* AIX XL C 1.02.0.0 rejects this.
3836 It does not let you subtract one const X* pointer from another in an arm
3837 of an if-expression whose if-part is not a constant expression */
3838 const char *g = "string";
3839 ccp = &g + (g ? g-g : 0);
3840 /* HPUX 7.0 cc rejects these. */
3843 ccp = (char const *const *) p;
3844 { /* SCO 3.2v4 cc rejects this. */
3846 char const *s = 0 ? (char *) 0 : (char const *) 0;
3850 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3852 const int *foo = &x[0];
3855 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3856 typedef const int *iptr;
3860 { /* AIX XL C 1.02.0.0 rejects this saying
3861 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3862 struct s { int j; const int *ap[3]; };
3863 struct s *b; b->j = 5;
3865 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3871 if { (eval echo configure
:3872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3875 echo "configure: failed program was:" >&5
3876 cat conftest.
$ac_ext >&5
3883 echo "$ac_t""$ac_cv_c_const" 1>&6
3884 if test $ac_cv_c_const = no
; then
3885 cat >> confdefs.h
<<\EOF
3891 echo $ac_n "checking for inline""... $ac_c" 1>&6
3892 echo "configure:3893: checking for inline" >&5
3893 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3897 for ac_kw
in inline __inline__ __inline
; do
3898 cat > conftest.
$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3906 if { (eval echo configure
:3907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3908 ac_cv_c_inline
=$ac_kw; break
3910 echo "configure: failed program was:" >&5
3911 cat conftest.
$ac_ext >&5
3918 echo "$ac_t""$ac_cv_c_inline" 1>&6
3919 case "$ac_cv_c_inline" in
3921 no
) cat >> confdefs.h
<<\EOF
3925 *) cat >> confdefs.h
<<EOF
3926 #define inline $ac_cv_c_inline
3931 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3932 echo "configure:3933: checking whether char is unsigned" >&5
3933 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3936 if test "$GCC" = yes; then
3937 # GCC predefines this symbol on systems where it applies.
3938 cat > conftest.
$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3941 #ifdef __CHAR_UNSIGNED__
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 egrep "yes" >/dev
/null
2>&1; then
3949 ac_cv_c_char_unsigned
=yes
3952 ac_cv_c_char_unsigned
=no
3957 if test "$cross_compiling" = yes; then
3958 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3960 cat > conftest.
$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3963 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3964 #if !defined(__STDC__) || __STDC__ != 1
3968 volatile char c = 255; exit(c < 0);
3971 if { (eval echo configure
:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3973 ac_cv_c_char_unsigned
=yes
3975 echo "configure: failed program was:" >&5
3976 cat conftest.
$ac_ext >&5
3978 ac_cv_c_char_unsigned
=no
3986 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3987 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3988 cat >> confdefs.h
<<\EOF
3989 #define __CHAR_UNSIGNED__ 1
3994 echo $ac_n "checking for long double""... $ac_c" 1>&6
3995 echo "configure:3996: checking for long double" >&5
3996 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3999 if test "$GCC" = yes; then
4000 ac_cv_c_long_double
=yes
4002 if test "$cross_compiling" = yes; then
4003 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4005 cat > conftest.
$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4009 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4010 long double foo = 0.0;
4011 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4012 exit(sizeof(long double) < sizeof(double)); }
4014 if { (eval echo configure
:4015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4016 ac_cv_c_long_double
=yes
4018 echo "configure: failed program was:" >&5
4019 cat conftest.
$ac_ext >&5
4021 ac_cv_c_long_double
=no
4029 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4030 if test $ac_cv_c_long_double = yes; then
4031 cat >> confdefs.h
<<\EOF
4032 #define HAVE_LONG_DOUBLE 1
4038 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4039 echo "configure:4040: checking whether byte ordering is bigendian" >&5
4040 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4041 echo $ac_n "(cached) $ac_c" 1>&6
4043 ac_cv_c_bigendian
=unknown
4044 # See if sys/param.h defines the BYTE_ORDER macro.
4045 cat > conftest.
$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4048 #include <sys/types.h>
4049 #include <sys/param.h>
4052 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4057 if { (eval echo configure
:4058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4059 # It does; now see whether it defined to BIG_ENDIAN or not.
4060 cat > conftest.
$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 #include <sys/types.h>
4064 #include <sys/param.h>
4067 #if BYTE_ORDER != BIG_ENDIAN
4072 if { (eval echo configure
:4073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4074 ac_cv_c_bigendian
=yes
4076 echo "configure: failed program was:" >&5
4077 cat conftest.
$ac_ext >&5
4079 ac_cv_c_bigendian
=no
4083 echo "configure: failed program was:" >&5
4084 cat conftest.
$ac_ext >&5
4087 if test $ac_cv_c_bigendian = unknown
; then
4088 if test "$cross_compiling" = yes; then
4089 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4091 cat > conftest.
$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4095 /* Are we little or big endian? From Harbison&Steele. */
4099 char c[sizeof (long)];
4102 exit (u.c[sizeof (long) - 1] == 1);
4105 if { (eval echo configure
:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4107 ac_cv_c_bigendian
=no
4109 echo "configure: failed program was:" >&5
4110 cat conftest.
$ac_ext >&5
4112 ac_cv_c_bigendian
=yes
4120 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4121 if test $ac_cv_c_bigendian = yes; then
4122 cat >> confdefs.h
<<\EOF
4123 #define WORDS_BIGENDIAN 1
4129 echo $ac_n "checking size of int *""... $ac_c" 1>&6
4130 echo "configure:4131: checking size of int *" >&5
4131 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4134 if test "$cross_compiling" = yes; then
4135 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4137 cat > conftest.
$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4143 FILE *f=fopen("conftestval", "w");
4145 fprintf(f, "%d\n", sizeof(int *));
4149 if { (eval echo configure
:4150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4151 ac_cv_sizeof_int_p
=`cat conftestval`
4153 echo "configure: failed program was:" >&5
4154 cat conftest.
$ac_ext >&5
4156 ac_cv_sizeof_int_p
=0
4162 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
4163 cat >> confdefs.h
<<EOF
4164 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
4168 echo $ac_n "checking size of int""... $ac_c" 1>&6
4169 echo "configure:4170: checking size of int" >&5
4170 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4171 echo $ac_n "(cached) $ac_c" 1>&6
4173 if test "$cross_compiling" = yes; then
4174 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4176 cat > conftest.
$ac_ext <<EOF
4177 #line 4178 "configure"
4178 #include "confdefs.h"
4182 FILE *f=fopen("conftestval", "w");
4184 fprintf(f, "%d\n", sizeof(int));
4188 if { (eval echo configure
:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4190 ac_cv_sizeof_int
=`cat conftestval`
4192 echo "configure: failed program was:" >&5
4193 cat conftest.
$ac_ext >&5
4201 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4202 cat >> confdefs.h
<<EOF
4203 #define SIZEOF_INT $ac_cv_sizeof_int
4207 echo $ac_n "checking size of long""... $ac_c" 1>&6
4208 echo "configure:4209: checking size of long" >&5
4209 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4212 if test "$cross_compiling" = yes; then
4213 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4215 cat > conftest.
$ac_ext <<EOF
4216 #line 4217 "configure"
4217 #include "confdefs.h"
4221 FILE *f=fopen("conftestval", "w");
4223 fprintf(f, "%d\n", sizeof(long));
4227 if { (eval echo configure
:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4229 ac_cv_sizeof_long
=`cat conftestval`
4231 echo "configure: failed program was:" >&5
4232 cat conftest.
$ac_ext >&5
4240 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4241 cat >> confdefs.h
<<EOF
4242 #define SIZEOF_LONG $ac_cv_sizeof_long
4246 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4247 echo "configure:4248: checking size of long long" >&5
4248 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4251 if test "$cross_compiling" = yes; then
4252 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4254 cat > conftest.
$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4260 FILE *f=fopen("conftestval", "w");
4262 fprintf(f, "%d\n", sizeof(long long));
4266 if { (eval echo configure
:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4268 ac_cv_sizeof_long_long
=`cat conftestval`
4270 echo "configure: failed program was:" >&5
4271 cat conftest.
$ac_ext >&5
4273 ac_cv_sizeof_long_long
=0
4279 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4280 cat >> confdefs.h
<<EOF
4281 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4289 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4290 echo "configure:4291: checking for long file names" >&5
4291 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
4292 echo $ac_n "(cached) $ac_c" 1>&6
4294 ac_cv_sys_long_file_names
=yes
4295 # Test for long file names in all the places we know might matter:
4296 # . the current directory, where building will happen
4297 # $prefix/lib where we will be installing things
4298 # $exec_prefix/lib likewise
4299 # eval it to expand exec_prefix.
4300 # $TMPDIR if set, where it might want to write temporary files
4301 # if $TMPDIR is not set:
4302 # /tmp where it might want to write temporary files
4305 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4306 ac_tmpdirs
="$TMPDIR"
4308 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
4310 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4311 test -d $ac_dir || continue
4312 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4313 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
4314 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
4315 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
4316 if test ! -f $ac_dir/conftest9012345
|| test "$val" != 1; then
4317 ac_cv_sys_long_file_names
=no
4318 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4321 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4325 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4326 if test $ac_cv_sys_long_file_names = yes; then
4327 cat >> confdefs.h
<<\EOF
4328 #define HAVE_LONG_FILE_NAMES 1
4336 for ac_prog
in 'bison -y' byacc
4338 # Extract the first word of "$ac_prog", so it can be a program name with args.
4339 set dummy
$ac_prog; ac_word
=$2
4340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4341 echo "configure:4342: checking for $ac_word" >&5
4342 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4345 if test -n "$YACC"; then
4346 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4348 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4349 for ac_dir
in $PATH; do
4350 test -z "$ac_dir" && ac_dir
=.
4351 if test -f $ac_dir/$ac_word; then
4352 ac_cv_prog_YACC
="$ac_prog"
4359 YACC
="$ac_cv_prog_YACC"
4360 if test -n "$YACC"; then
4361 echo "$ac_t""$YACC" 1>&6
4363 echo "$ac_t""no" 1>&6
4366 test -n "$YACC" && break
4368 test -n "$YACC" || YACC
="yacc"
4371 # Extract the first word of "flex", so it can be a program name with args.
4372 set dummy flex
; ac_word
=$2
4373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4374 echo "configure:4375: checking for $ac_word" >&5
4375 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4378 if test -n "$LEX"; then
4379 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4381 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4382 for ac_dir
in $PATH; do
4383 test -z "$ac_dir" && ac_dir
=.
4384 if test -f $ac_dir/$ac_word; then
4385 ac_cv_prog_LEX
="flex"
4390 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4393 LEX
="$ac_cv_prog_LEX"
4394 if test -n "$LEX"; then
4395 echo "$ac_t""$LEX" 1>&6
4397 echo "$ac_t""no" 1>&6
4400 if test -z "$LEXLIB"
4406 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4407 echo "configure:4408: checking for yywrap in -l$ac_lib" >&5
4408 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4412 ac_save_LIBS
="$LIBS"
4413 LIBS
="-l$ac_lib $LIBS"
4414 cat > conftest.
$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4417 /* Override any gcc2 internal prototype to avoid an error. */
4418 /* We use char because int might match the return type of a gcc2
4419 builtin and then its argument prototype would still apply. */
4426 if { (eval echo configure
:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4428 eval "ac_cv_lib_$ac_lib_var=yes"
4430 echo "configure: failed program was:" >&5
4431 cat conftest.
$ac_ext >&5
4433 eval "ac_cv_lib_$ac_lib_var=no"
4436 LIBS
="$ac_save_LIBS"
4439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4443 echo "$ac_t""no" 1>&6
4448 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4449 echo "configure:4450: checking lex output file root" >&5
4450 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 # The minimal lex program is just a single line: %%. But some broken lexes
4454 # (Solaris, I think it was) want two %% lines, so accommodate them.
4457 if test -f lex.yy.c
; then
4458 ac_cv_prog_lex_root
=lex.yy
4459 elif test -f lexyy.c
; then
4460 ac_cv_prog_lex_root
=lexyy
4462 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4466 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4467 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4469 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4470 echo "configure:4471: checking whether yytext is a pointer" >&5
4471 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4472 echo $ac_n "(cached) $ac_c" 1>&6
4474 # POSIX says lex can declare yytext either as a pointer or an array; the
4475 # default is implementation-dependent. Figure out which it is, since
4476 # not all implementations provide the %pointer and %array declarations.
4477 ac_cv_prog_lex_yytext_pointer
=no
4478 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4479 ac_save_LIBS
="$LIBS"
4480 LIBS
="$LIBS $LEXLIB"
4481 cat > conftest.
$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4484 `cat $LEX_OUTPUT_ROOT.c`
4489 if { (eval echo configure
:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4491 ac_cv_prog_lex_yytext_pointer
=yes
4493 echo "configure: failed program was:" >&5
4494 cat conftest.
$ac_ext >&5
4497 LIBS
="$ac_save_LIBS"
4498 rm -f "${LEX_OUTPUT_ROOT}.c"
4502 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4503 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4504 cat >> confdefs.h
<<\EOF
4505 #define YYTEXT_POINTER 1
4513 for ac_func
in dlopen
4515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4516 echo "configure:4517: checking for $ac_func" >&5
4517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4520 cat > conftest.
$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4523 /* System header to define __stub macros and hopefully few prototypes,
4524 which can conflict with char $ac_func(); below. */
4526 /* Override any gcc2 internal prototype to avoid an error. */
4527 /* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */
4533 /* The GNU C library defines this for functions which it implements
4534 to always fail with ENOSYS. Some functions are actually named
4535 something starting with __ and the normal name is an alias. */
4536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4544 if { (eval echo configure
:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4546 eval "ac_cv_func_$ac_func=yes"
4548 echo "configure: failed program was:" >&5
4549 cat conftest.
$ac_ext >&5
4551 eval "ac_cv_func_$ac_func=no"
4556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4557 echo "$ac_t""yes" 1>&6
4558 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4559 cat >> confdefs.h
<<EOF
4560 #define $ac_tr_func 1
4562 cat >> confdefs.h
<<\EOF
4563 #define HAVE_LIBDL 1
4567 echo "$ac_t""no" 1>&6
4568 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4569 echo "configure:4570: checking for dlopen in -ldl" >&5
4570 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4572 echo $ac_n "(cached) $ac_c" 1>&6
4574 ac_save_LIBS
="$LIBS"
4576 cat > conftest.
$ac_ext <<EOF
4577 #line 4578 "configure"
4578 #include "confdefs.h"
4579 /* Override any gcc2 internal prototype to avoid an error. */
4580 /* We use char because int might match the return type of a gcc2
4581 builtin and then its argument prototype would still apply. */
4588 if { (eval echo configure
:4589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4590 eval "ac_cv_lib_$ac_lib_var=yes"
4592 echo "configure: failed program was:" >&5
4593 cat conftest.
$ac_ext >&5
4595 eval "ac_cv_lib_$ac_lib_var=no"
4598 LIBS
="$ac_save_LIBS"
4601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4602 echo "$ac_t""yes" 1>&6
4603 cat >> confdefs.h
<<\EOF
4604 #define HAVE_LIBDL 1
4608 echo "$ac_t""no" 1>&6
4609 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4610 echo "configure:4611: checking for dld_link in -ldld" >&5
4611 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4613 echo $ac_n "(cached) $ac_c" 1>&6
4615 ac_save_LIBS
="$LIBS"
4617 cat > conftest.
$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4620 /* Override any gcc2 internal prototype to avoid an error. */
4621 /* We use char because int might match the return type of a gcc2
4622 builtin and then its argument prototype would still apply. */
4629 if { (eval echo configure
:4630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4631 eval "ac_cv_lib_$ac_lib_var=yes"
4633 echo "configure: failed program was:" >&5
4634 cat conftest.
$ac_ext >&5
4636 eval "ac_cv_lib_$ac_lib_var=no"
4639 LIBS
="$ac_save_LIBS"
4642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4643 echo "$ac_t""yes" 1>&6
4644 cat >> confdefs.h
<<\EOF
4649 echo "$ac_t""no" 1>&6
4650 for ac_func
in shl_load
4652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4653 echo "configure:4654: checking for $ac_func" >&5
4654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4657 cat > conftest.
$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4660 /* System header to define __stub macros and hopefully few prototypes,
4661 which can conflict with char $ac_func(); below. */
4663 /* Override any gcc2 internal prototype to avoid an error. */
4664 /* We use char because int might match the return type of a gcc2
4665 builtin and then its argument prototype would still apply. */
4670 /* The GNU C library defines this for functions which it implements
4671 to always fail with ENOSYS. Some functions are actually named
4672 something starting with __ and the normal name is an alias. */
4673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4681 if { (eval echo configure
:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4683 eval "ac_cv_func_$ac_func=yes"
4685 echo "configure: failed program was:" >&5
4686 cat conftest.
$ac_ext >&5
4688 eval "ac_cv_func_$ac_func=no"
4693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4694 echo "$ac_t""yes" 1>&6
4695 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4696 cat >> confdefs.h
<<EOF
4697 #define $ac_tr_func 1
4699 cat >> confdefs.h
<<\EOF
4700 #define HAVE_SHL_LOAD 1
4704 echo "$ac_t""no" 1>&6
4720 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
4721 echo "configure:4722: checking for underscore before symbols" >&5
4722 if eval "test \"`echo '$''{'libltdl_cv_uscore'+set}'`\" = set"; then
4723 echo $ac_n "(cached) $ac_c" 1>&6
4726 echo "main(){int i=1;} fnord(){int i=23; int ltuae=42;}" > conftest.c
4727 ${CC} -c conftest.c
> /dev
/null
4728 if (nm conftest.o
| grep _fnord
) > /dev
/null
; then
4729 libltdl_cv_uscore
=yes
4731 libltdl_cv_uscore
=no
4737 echo "$ac_t""$libltdl_cv_uscore" 1>&6
4739 if test x
"$libltdl_cv_uscore" = xyes
; then
4740 if test x
"$ac_cv_func_dlopen" = xyes
||
4741 test x
"$ac_cv_lib_dl_dlopen" = xyes
; then
4742 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
4743 echo "configure:4744: checking whether we have to add an underscore for dlsym" >&5
4744 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
4745 echo $ac_n "(cached) $ac_c" 1>&6
4747 if test "$cross_compiling" = yes; then
4748 libltdl_cv_need_uscore
=no
4751 cat > conftest.
$ac_ext <<EOF
4752 #line 4753 "configure"
4753 #include "confdefs.h"
4757 fnord() { int i=42;}
4758 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
4759 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
4760 if(ptr1 && !ptr2) exit(0); } exit(1); }
4763 if { (eval echo configure
:4764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4765 libltdl_cv_need_uscore
=no
4767 echo "configure: failed program was:" >&5
4768 cat conftest.
$ac_ext >&5
4770 libltdl_cv_need_uscore
=yes
4777 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
4781 if test x
"$libltdl_cv_need_uscore" = xyes
; then
4782 cat >> confdefs.h
<<\EOF
4783 #define NEED_USCORE 1
4789 for ac_func
in strerror
4791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4792 echo "configure:4793: checking for $ac_func" >&5
4793 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4796 cat > conftest.
$ac_ext <<EOF
4797 #line 4798 "configure"
4798 #include "confdefs.h"
4799 /* System header to define __stub macros and hopefully few prototypes,
4800 which can conflict with char $ac_func(); below. */
4802 /* Override any gcc2 internal prototype to avoid an error. */
4803 /* We use char because int might match the return type of a gcc2
4804 builtin and then its argument prototype would still apply. */
4809 /* The GNU C library defines this for functions which it implements
4810 to always fail with ENOSYS. Some functions are actually named
4811 something starting with __ and the normal name is an alias. */
4812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4820 if { (eval echo configure
:4821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4822 eval "ac_cv_func_$ac_func=yes"
4824 echo "configure: failed program was:" >&5
4825 cat conftest.
$ac_ext >&5
4827 eval "ac_cv_func_$ac_func=no"
4832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4833 echo "$ac_t""yes" 1>&6
4834 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4835 cat >> confdefs.h
<<EOF
4836 #define $ac_tr_func 1
4840 echo "$ac_t""no" 1>&6
4846 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
4847 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
4851 # Make sure we can run config.sub.
4852 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
4853 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
4856 echo $ac_n "checking host system type""... $ac_c" 1>&6
4857 echo "configure:4858: checking host system type" >&5
4860 case "$host_alias" in
4864 if host_alias
=`$ac_config_guess`; then :
4865 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
4867 *) host_alias
=$nonopt ;;
4871 host=`$ac_config_sub $host_alias`
4872 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4873 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4874 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4875 echo "$ac_t""$host" 1>&6
4878 configuration
=$host_alias
4900 cat >> confdefs.h
<<\EOF
4904 case "${canonical}" in
4907 cat >> confdefs.h
<<\EOF
4914 cat >> confdefs.h
<<\EOF
4919 if test "x$TMP" = "xalpha"
4922 cat >> confdefs.h
<<\EOF
4928 *-*-irix5* | *-*-irix6* )
4931 cat >> confdefs.h
<<\EOF
4935 cat >> confdefs.h
<<\EOF
4944 cat >> confdefs.h
<<\EOF
4948 cat >> confdefs.h
<<\EOF
4949 #define __SOLARIS__ 1
4952 cat >> confdefs.h
<<\EOF
4961 cat >> confdefs.h
<<\EOF
4965 cat >> confdefs.h
<<\EOF
4969 cat >> confdefs.h
<<\EOF
4974 *-*-freebsd* | *-*-netbsd*)
4977 cat >> confdefs.h
<<\EOF
4978 #define __FREEBSD__ 1
4981 cat >> confdefs.h
<<\EOF
4989 cat >> confdefs.h
<<\EOF
4993 cat >> confdefs.h
<<\EOF
5001 cat >> confdefs.h
<<\EOF
5005 cat >> confdefs.h
<<\EOF
5013 cat >> confdefs.h
<<\EOF
5017 cat >> confdefs.h
<<\EOF
5026 cat >> confdefs.h
<<\EOF
5030 cat >> confdefs.h
<<\EOF
5034 cat >> confdefs.h
<<\EOF
5040 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
5045 rm -f ${OSTYPE}.system.cache.tmp
5046 touch ${OSTYPE}.system.cache.tmp
5047 touch ${OSTYPE}.system.cache
5052 DEFAULT_wxUSE_MOTIF
=0
5054 DEFAULT_wxUSE_THREADS
=0
5056 DEFAULT_wxUSE_SHARED
=1
5057 DEFAULT_wxUSE_OPTIMISE
=1
5058 DEFAULT_wxUSE_PROFILE
=0
5059 DEFAULT_wxUSE_DEBUG_FLAG
=0
5060 DEFAULT_wxUSE_DEBUG_INFO
=0
5061 DEFAULT_wxUSE_MEM_TRACING
=0
5062 DEFAULT_wxUSE_DMALLOC
=0
5063 DEFAULT_wxUSE_APPLE_IEEE
=1
5064 DEFAULT_wxUSE_IOSTREAMH
=1
5066 DEFAULT_wxUSE_ZLIB
=1
5067 DEFAULT_wxUSE_LIBPNG
=1
5068 DEFAULT_wxUSE_LIBJPEG
=0
5069 DEFAULT_wxUSE_ODBC
=1
5071 DEFAULT_wxUSE_TIMEDATE
=1
5072 DEFAULT_wxUSE_INTL
=1
5073 DEFAULT_wxUSE_CONFIG
=1
5074 DEFAULT_wxUSE_STREAMS
=1
5075 DEFAULT_wxUSE_SOCKETS
=1
5076 DEFAULT_wxUSE_SERIAL
=1
5077 DEFAULT_wxUSE_DYNLIB_CLASS
=1
5079 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
=1
5080 DEFAULT_WX_NORMALIZED_PS_FONTS
=1
5081 DEFAULT_wxUSE_POSTSCRIPT
=1
5084 DEFAULT_wxUSE_RESOURCES
=1
5085 DEFAULT_wxUSE_CLIPBOARD
=1
5086 DEFAULT_wxUSE_TOOLTIPS
=1
5087 DEFAULT_wxUSE_DRAG_AND_DROP
=1
5089 DEFAULT_wxUSE_MDI_ARCHITECTURE
=1
5090 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
=1
5091 DEFAULT_wxUSE_PRINTING_ARCHITECTURE
=1
5093 DEFAULT_wxUSE_PROLOGIO
=1
5094 DEFAULT_wxUSE_WX_RESOURCES
=1
5096 DEFAULT_wxUSE_HELP
=1
5098 DEFAULT_wxUSE_UNICODE
=1
5099 DEFAULT_wxUSE_WCSRTOMBS
=0
5103 echo $ac_n "checking "for gtk
"""... $ac_c" 1>&6
5104 echo "configure:5105: checking "for gtk
"" >&5
5105 # Check whether --with-gtk or --without-gtk was given.
5106 if test "${with_gtk+set}" = set; then
5108 if test "x$with_gtk" = xyes
; then
5109 ac_cv_use_gtk
='wxUSE_GTK="1"'
5111 ac_cv_use_gtk
='wxUSE_GTK="0"'
5115 LINE
=`grep "wxUSE_GTK" ${OSTYPE}.system.cache`
5116 if test "x$LINE" != x
; then
5117 eval "DEFAULT_$LINE"
5119 ac_cv_use_gtk
='wxUSE_GTK='$DEFAULT_wxUSE_GTK
5123 eval "$ac_cv_use_gtk"
5124 echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp
5125 if test "$wxUSE_GTK" = 1; then
5126 echo "$ac_t""yes" 1>&6
5128 echo "$ac_t""no" 1>&6
5133 echo $ac_n "checking "for qt
"""... $ac_c" 1>&6
5134 echo "configure:5135: checking "for qt
"" >&5
5135 # Check whether --with-qt or --without-qt was given.
5136 if test "${with_qt+set}" = set; then
5138 if test "x$with_qt" = xyes
; then
5139 ac_cv_use_qt
='wxUSE_QT="1"'
5141 ac_cv_use_qt
='wxUSE_QT="0"'
5145 LINE
=`grep "wxUSE_QT" ${OSTYPE}.system.cache`
5146 if test "x$LINE" != x
; then
5147 eval "DEFAULT_$LINE"
5149 ac_cv_use_qt
='wxUSE_QT='$DEFAULT_wxUSE_QT
5153 eval "$ac_cv_use_qt"
5154 echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp
5155 if test "$wxUSE_QT" = 1; then
5156 echo "$ac_t""yes" 1>&6
5158 echo "$ac_t""no" 1>&6
5163 echo $ac_n "checking "for motif
"""... $ac_c" 1>&6
5164 echo "configure:5165: checking "for motif
"" >&5
5165 # Check whether --with-motif or --without-motif was given.
5166 if test "${with_motif+set}" = set; then
5167 withval
="$with_motif"
5168 if test "x$with_motif" = xyes
; then
5169 ac_cv_use_motif
='wxUSE_MOTIF="1"'
5171 ac_cv_use_motif
='wxUSE_MOTIF="0"'
5175 LINE
=`grep "wxUSE_MOTIF" ${OSTYPE}.system.cache`
5176 if test "x$LINE" != x
; then
5177 eval "DEFAULT_$LINE"
5179 ac_cv_use_motif
='wxUSE_MOTIF='$DEFAULT_wxUSE_MOTIF
5183 eval "$ac_cv_use_motif"
5184 echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp
5185 if test "$wxUSE_MOTIF" = 1; then
5186 echo "$ac_t""yes" 1>&6
5188 echo "$ac_t""no" 1>&6
5194 echo $ac_n "checking "for shared
"""... $ac_c" 1>&6
5195 echo "configure:5196: checking "for shared
"" >&5
5196 # Check whether --with-shared or --without-shared was given.
5197 if test "${with_shared+set}" = set; then
5198 withval
="$with_shared"
5199 if test "x$with_shared" = xyes
; then
5200 ac_cv_use_shared
='wxUSE_SHARED="1"'
5202 ac_cv_use_shared
='wxUSE_SHARED="0"'
5206 LINE
=`grep "wxUSE_SHARED" ${OSTYPE}.system.cache`
5207 if test "x$LINE" != x
; then
5208 eval "DEFAULT_$LINE"
5210 ac_cv_use_shared
='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
5214 eval "$ac_cv_use_shared"
5215 echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
5216 if test "$wxUSE_SHARED" = 1; then
5217 echo "$ac_t""yes" 1>&6
5219 echo "$ac_t""no" 1>&6
5224 echo $ac_n "checking "for optimise
"""... $ac_c" 1>&6
5225 echo "configure:5226: checking "for optimise
"" >&5
5226 # Check whether --with-optimise or --without-optimise was given.
5227 if test "${with_optimise+set}" = set; then
5228 withval
="$with_optimise"
5229 if test "x$with_optimise" = xyes
; then
5230 ac_cv_use_optimise
='wxUSE_OPTIMISE="1"'
5232 ac_cv_use_optimise
='wxUSE_OPTIMISE="0"'
5236 LINE
=`grep "wxUSE_OPTIMISE" ${OSTYPE}.system.cache`
5237 if test "x$LINE" != x
; then
5238 eval "DEFAULT_$LINE"
5240 ac_cv_use_optimise
='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
5244 eval "$ac_cv_use_optimise"
5245 echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
5246 if test "$wxUSE_OPTIMISE" = 1; then
5247 echo "$ac_t""yes" 1>&6
5249 echo "$ac_t""no" 1>&6
5254 echo $ac_n "checking "for debug_flag
"""... $ac_c" 1>&6
5255 echo "configure:5256: checking "for debug_flag
"" >&5
5256 # Check whether --with-debug_flag or --without-debug_flag was given.
5257 if test "${with_debug_flag+set}" = set; then
5258 withval
="$with_debug_flag"
5259 if test "x$with_debug_flag" = xyes
; then
5260 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="1"'
5262 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="0"'
5266 LINE
=`grep "wxUSE_DEBUG_FLAG" ${OSTYPE}.system.cache`
5267 if test "x$LINE" != x
; then
5268 eval "DEFAULT_$LINE"
5270 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
5274 eval "$ac_cv_use_debug_flag"
5275 echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
5276 if test "$wxUSE_DEBUG_FLAG" = 1; then
5277 echo "$ac_t""yes" 1>&6
5279 echo "$ac_t""no" 1>&6
5284 echo $ac_n "checking "for debug_info
"""... $ac_c" 1>&6
5285 echo "configure:5286: checking "for debug_info
"" >&5
5286 # Check whether --with-debug_info or --without-debug_info was given.
5287 if test "${with_debug_info+set}" = set; then
5288 withval
="$with_debug_info"
5289 if test "x$with_debug_info" = xyes
; then
5290 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="1"'
5292 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="0"'
5296 LINE
=`grep "wxUSE_DEBUG_INFO" ${OSTYPE}.system.cache`
5297 if test "x$LINE" != x
; then
5298 eval "DEFAULT_$LINE"
5300 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
5304 eval "$ac_cv_use_debug_info"
5305 echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
5306 if test "$wxUSE_DEBUG_INFO" = 1; then
5307 echo "$ac_t""yes" 1>&6
5309 echo "$ac_t""no" 1>&6
5314 echo $ac_n "checking "for debug_gdb
"""... $ac_c" 1>&6
5315 echo "configure:5316: checking "for debug_gdb
"" >&5
5316 # Check whether --with-debug_gdb or --without-debug_gdb was given.
5317 if test "${with_debug_gdb+set}" = set; then
5318 withval
="$with_debug_gdb"
5319 if test "x$with_debug_gdb" = xyes
; then
5320 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="1"'
5322 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="0"'
5326 LINE
=`grep "wxUSE_DEBUG_GDB" ${OSTYPE}.system.cache`
5327 if test "x$LINE" != x
; then
5328 eval "DEFAULT_$LINE"
5330 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
5334 eval "$ac_cv_use_debug_gdb"
5335 echo $ac_cv_use_debug_gdb >> ${OSTYPE}.system.cache.tmp
5336 if test "$wxUSE_DEBUG_GDB" = 1; then
5337 echo "$ac_t""yes" 1>&6
5339 echo "$ac_t""no" 1>&6
5344 echo $ac_n "checking "for mem_tracing
"""... $ac_c" 1>&6
5345 echo "configure:5346: checking "for mem_tracing
"" >&5
5346 # Check whether --with-mem_tracing or --without-mem_tracing was given.
5347 if test "${with_mem_tracing+set}" = set; then
5348 withval
="$with_mem_tracing"
5349 if test "x$with_mem_tracing" = xyes
; then
5350 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="1"'
5352 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="0"'
5356 LINE
=`grep "wxUSE_MEM_TRACING" ${OSTYPE}.system.cache`
5357 if test "x$LINE" != x
; then
5358 eval "DEFAULT_$LINE"
5360 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
5364 eval "$ac_cv_use_mem_tracing"
5365 echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
5366 if test "$wxUSE_MEM_TRACING" = 1; then
5367 echo "$ac_t""yes" 1>&6
5369 echo "$ac_t""no" 1>&6
5374 echo $ac_n "checking "for dmalloc
"""... $ac_c" 1>&6
5375 echo "configure:5376: checking "for dmalloc
"" >&5
5376 # Check whether --with-dmalloc or --without-dmalloc was given.
5377 if test "${with_dmalloc+set}" = set; then
5378 withval
="$with_dmalloc"
5379 if test "x$with_dmalloc" = xyes
; then
5380 ac_cv_use_dmalloc
='wxUSE_DMALLOC="1"'
5382 ac_cv_use_dmalloc
='wxUSE_DMALLOC="0"'
5386 LINE
=`grep "wxUSE_DMALLOC" ${OSTYPE}.system.cache`
5387 if test "x$LINE" != x
; then
5388 eval "DEFAULT_$LINE"
5390 ac_cv_use_dmalloc
='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
5394 eval "$ac_cv_use_dmalloc"
5395 echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp
5396 if test "$wxUSE_DMALLOC" = 1; then
5397 echo "$ac_t""yes" 1>&6
5399 echo "$ac_t""no" 1>&6
5404 echo $ac_n "checking "for profile
"""... $ac_c" 1>&6
5405 echo "configure:5406: checking "for profile
"" >&5
5406 # Check whether --with-profile or --without-profile was given.
5407 if test "${with_profile+set}" = set; then
5408 withval
="$with_profile"
5409 if test "x$with_profile" = xyes
; then
5410 ac_cv_use_profile
='wxUSE_PROFILE="1"'
5412 ac_cv_use_profile
='wxUSE_PROFILE="0"'
5416 LINE
=`grep "wxUSE_PROFILE" ${OSTYPE}.system.cache`
5417 if test "x$LINE" != x
; then
5418 eval "DEFAULT_$LINE"
5420 ac_cv_use_profile
='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
5424 eval "$ac_cv_use_profile"
5425 echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
5426 if test "$wxUSE_PROFILE" = 1; then
5427 echo "$ac_t""yes" 1>&6
5429 echo "$ac_t""no" 1>&6
5434 echo $ac_n "checking "for apple_ieee
"""... $ac_c" 1>&6
5435 echo "configure:5436: checking "for apple_ieee
"" >&5
5436 # Check whether --with-apple_ieee or --without-apple_ieee was given.
5437 if test "${with_apple_ieee+set}" = set; then
5438 withval
="$with_apple_ieee"
5439 if test "x$with_apple_ieee" = xyes
; then
5440 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="1"'
5442 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="0"'
5446 LINE
=`grep "wxUSE_APPLE_IEEE" ${OSTYPE}.system.cache`
5447 if test "x$LINE" != x
; then
5448 eval "DEFAULT_$LINE"
5450 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5454 eval "$ac_cv_use_apple_ieee"
5455 echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp
5456 if test "$wxUSE_APPLE_IEEE" = 1; then
5457 echo "$ac_t""yes" 1>&6
5459 echo "$ac_t""no" 1>&6
5464 echo $ac_n "checking "for threads
"""... $ac_c" 1>&6
5465 echo "configure:5466: checking "for threads
"" >&5
5466 # Check whether --with-threads or --without-threads was given.
5467 if test "${with_threads+set}" = set; then
5468 withval
="$with_threads"
5469 if test "x$with_threads" = xyes
; then
5470 ac_cv_use_threads
='wxUSE_THREADS="1"'
5472 ac_cv_use_threads
='wxUSE_THREADS="0"'
5476 LINE
=`grep "wxUSE_THREADS" ${OSTYPE}.system.cache`
5477 if test "x$LINE" != x
; then
5478 eval "DEFAULT_$LINE"
5480 ac_cv_use_threads
='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5484 eval "$ac_cv_use_threads"
5485 echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
5486 if test "$wxUSE_THREADS" = 1; then
5487 echo "$ac_t""yes" 1>&6
5489 echo "$ac_t""no" 1>&6
5494 echo $ac_n "checking "for dynlib
"""... $ac_c" 1>&6
5495 echo "configure:5496: checking "for dynlib
"" >&5
5496 # Check whether --with-dynlib or --without-dynlib was given.
5497 if test "${with_dynlib+set}" = set; then
5498 withval
="$with_dynlib"
5499 if test "x$with_dynlib" = xyes
; then
5500 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="1"'
5502 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="0"'
5506 LINE
=`grep "wxUSE_DYNLIB_CLASS" ${OSTYPE}.system.cache`
5507 if test "x$LINE" != x
; then
5508 eval "DEFAULT_$LINE"
5510 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5514 eval "$ac_cv_use_dynlib"
5515 echo $ac_cv_use_dynlib >> ${OSTYPE}.system.cache.tmp
5516 if test "$wxUSE_DYNLIB_CLASS" = 1; then
5517 echo "$ac_t""yes" 1>&6
5519 echo "$ac_t""no" 1>&6
5525 echo $ac_n "checking "for zlib
"""... $ac_c" 1>&6
5526 echo "configure:5527: checking "for zlib
"" >&5
5527 # Check whether --with-zlib or --without-zlib was given.
5528 if test "${with_zlib+set}" = set; then
5529 withval
="$with_zlib"
5530 if test "x$with_zlib" = xyes
; then
5531 ac_cv_use_zlib
='wxUSE_ZLIB="1"'
5533 ac_cv_use_zlib
='wxUSE_ZLIB="0"'
5537 LINE
=`grep "wxUSE_ZLIB" ${OSTYPE}.system.cache`
5538 if test "x$LINE" != x
; then
5539 eval "DEFAULT_$LINE"
5541 ac_cv_use_zlib
='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
5545 eval "$ac_cv_use_zlib"
5546 echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
5547 if test "$wxUSE_ZLIB" = 1; then
5548 echo "$ac_t""yes" 1>&6
5550 echo "$ac_t""no" 1>&6
5555 echo $ac_n "checking "for libpng
"""... $ac_c" 1>&6
5556 echo "configure:5557: checking "for libpng
"" >&5
5557 # Check whether --with-libpng or --without-libpng was given.
5558 if test "${with_libpng+set}" = set; then
5559 withval
="$with_libpng"
5560 if test "x$with_libpng" = xyes
; then
5561 ac_cv_use_libpng
='wxUSE_LIBPNG="1"'
5563 ac_cv_use_libpng
='wxUSE_LIBPNG="0"'
5567 LINE
=`grep "wxUSE_LIBPNG" ${OSTYPE}.system.cache`
5568 if test "x$LINE" != x
; then
5569 eval "DEFAULT_$LINE"
5571 ac_cv_use_libpng
='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
5575 eval "$ac_cv_use_libpng"
5576 echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
5577 if test "$wxUSE_LIBPNG" = 1; then
5578 echo "$ac_t""yes" 1>&6
5580 echo "$ac_t""no" 1>&6
5585 echo $ac_n "checking "for libjpeg
"""... $ac_c" 1>&6
5586 echo "configure:5587: checking "for libjpeg
"" >&5
5587 # Check whether --with-libjpeg or --without-libjpeg was given.
5588 if test "${with_libjpeg+set}" = set; then
5589 withval
="$with_libjpeg"
5590 if test "x$with_libjpeg" = xyes
; then
5591 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="1"'
5593 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="0"'
5597 LINE
=`grep "wxUSE_LIBJPEG" ${OSTYPE}.system.cache`
5598 if test "x$LINE" != x
; then
5599 eval "DEFAULT_$LINE"
5601 ac_cv_use_libjpeg
='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
5605 eval "$ac_cv_use_libjpeg"
5606 echo $ac_cv_use_libjpeg >> ${OSTYPE}.system.cache.tmp
5607 if test "$wxUSE_LIBJPEG" = 1; then
5608 echo "$ac_t""yes" 1>&6
5610 echo "$ac_t""no" 1>&6
5615 echo $ac_n "checking "for odbc
"""... $ac_c" 1>&6
5616 echo "configure:5617: checking "for odbc
"" >&5
5617 # Check whether --with-odbc or --without-odbc was given.
5618 if test "${with_odbc+set}" = set; then
5619 withval
="$with_odbc"
5620 if test "x$with_odbc" = xyes
; then
5621 ac_cv_use_odbc
='wxUSE_ODBC="1"'
5623 ac_cv_use_odbc
='wxUSE_ODBC="0"'
5627 LINE
=`grep "wxUSE_ODBC" ${OSTYPE}.system.cache`
5628 if test "x$LINE" != x
; then
5629 eval "DEFAULT_$LINE"
5631 ac_cv_use_odbc
='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
5635 eval "$ac_cv_use_odbc"
5636 echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp
5637 if test "$wxUSE_ODBC" = 1; then
5638 echo "$ac_t""yes" 1>&6
5640 echo "$ac_t""no" 1>&6
5646 echo $ac_n "checking "for timedate
"""... $ac_c" 1>&6
5647 echo "configure:5648: checking "for timedate
"" >&5
5648 # Check whether --with-timedate or --without-timedate was given.
5649 if test "${with_timedate+set}" = set; then
5650 withval
="$with_timedate"
5651 if test "x$with_timedate" = xyes
; then
5652 ac_cv_use_timedate
='wxUSE_TIMEDATE="1"'
5654 ac_cv_use_timedate
='wxUSE_TIMEDATE="0"'
5658 LINE
=`grep "wxUSE_TIMEDATE" ${OSTYPE}.system.cache`
5659 if test "x$LINE" != x
; then
5660 eval "DEFAULT_$LINE"
5662 ac_cv_use_timedate
='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
5666 eval "$ac_cv_use_timedate"
5667 echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
5668 if test "$wxUSE_TIMEDATE" = 1; then
5669 echo "$ac_t""yes" 1>&6
5671 echo "$ac_t""no" 1>&6
5676 echo $ac_n "checking "for intl
"""... $ac_c" 1>&6
5677 echo "configure:5678: checking "for intl
"" >&5
5678 # Check whether --with-intl or --without-intl was given.
5679 if test "${with_intl+set}" = set; then
5680 withval
="$with_intl"
5681 if test "x$with_intl" = xyes
; then
5682 ac_cv_use_intl
='wxUSE_INTL="1"'
5684 ac_cv_use_intl
='wxUSE_INTL="0"'
5688 LINE
=`grep "wxUSE_INTL" ${OSTYPE}.system.cache`
5689 if test "x$LINE" != x
; then
5690 eval "DEFAULT_$LINE"
5692 ac_cv_use_intl
='wxUSE_INTL='$DEFAULT_wxUSE_INTL
5696 eval "$ac_cv_use_intl"
5697 echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp
5698 if test "$wxUSE_INTL" = 1; then
5699 echo "$ac_t""yes" 1>&6
5701 echo "$ac_t""no" 1>&6
5706 echo $ac_n "checking "for config
"""... $ac_c" 1>&6
5707 echo "configure:5708: checking "for config
"" >&5
5708 # Check whether --with-config or --without-config was given.
5709 if test "${with_config+set}" = set; then
5710 withval
="$with_config"
5711 if test "x$with_config" = xyes
; then
5712 ac_cv_use_config
='wxUSE_CONFIG="1"'
5714 ac_cv_use_config
='wxUSE_CONFIG="0"'
5718 LINE
=`grep "wxUSE_CONFIG" ${OSTYPE}.system.cache`
5719 if test "x$LINE" != x
; then
5720 eval "DEFAULT_$LINE"
5722 ac_cv_use_config
='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
5726 eval "$ac_cv_use_config"
5727 echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp
5728 if test "$wxUSE_CONFIG" = 1; then
5729 echo "$ac_t""yes" 1>&6
5731 echo "$ac_t""no" 1>&6
5736 echo $ac_n "checking "for streams
"""... $ac_c" 1>&6
5737 echo "configure:5738: checking "for streams
"" >&5
5738 # Check whether --with-streams or --without-streams was given.
5739 if test "${with_streams+set}" = set; then
5740 withval
="$with_streams"
5741 if test "x$with_streams" = xyes
; then
5742 ac_cv_use_streams
='wxUSE_STREAMS="1"'
5744 ac_cv_use_streams
='wxUSE_STREAMS="0"'
5748 LINE
=`grep "wxUSE_STREAMS" ${OSTYPE}.system.cache`
5749 if test "x$LINE" != x
; then
5750 eval "DEFAULT_$LINE"
5752 ac_cv_use_streams
='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5756 eval "$ac_cv_use_streams"
5757 echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp
5758 if test "$wxUSE_STREAMS" = 1; then
5759 echo "$ac_t""yes" 1>&6
5761 echo "$ac_t""no" 1>&6
5766 echo $ac_n "checking "for serial
"""... $ac_c" 1>&6
5767 echo "configure:5768: checking "for serial
"" >&5
5768 # Check whether --with-serial or --without-serial was given.
5769 if test "${with_serial+set}" = set; then
5770 withval
="$with_serial"
5771 if test "x$with_serial" = xyes
; then
5772 ac_cv_use_serial
='wxUSE_SERIAL="1"'
5774 ac_cv_use_serial
='wxUSE_SERIAL="0"'
5778 LINE
=`grep "wxUSE_SERIAL" ${OSTYPE}.system.cache`
5779 if test "x$LINE" != x
; then
5780 eval "DEFAULT_$LINE"
5782 ac_cv_use_serial
='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
5786 eval "$ac_cv_use_serial"
5787 echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp
5788 if test "$wxUSE_SERIAL" = 1; then
5789 echo "$ac_t""yes" 1>&6
5791 echo "$ac_t""no" 1>&6
5796 echo $ac_n "checking "for sockets
"""... $ac_c" 1>&6
5797 echo "configure:5798: checking "for sockets
"" >&5
5798 # Check whether --with-sockets or --without-sockets was given.
5799 if test "${with_sockets+set}" = set; then
5800 withval
="$with_sockets"
5801 if test "x$with_sockets" = xyes
; then
5802 ac_cv_use_sockets
='wxUSE_SOCKETS="1"'
5804 ac_cv_use_sockets
='wxUSE_SOCKETS="0"'
5808 LINE
=`grep "wxUSE_SOCKETS" ${OSTYPE}.system.cache`
5809 if test "x$LINE" != x
; then
5810 eval "DEFAULT_$LINE"
5812 ac_cv_use_sockets
='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
5816 eval "$ac_cv_use_sockets"
5817 echo $ac_cv_use_sockets >> ${OSTYPE}.system.cache.tmp
5818 if test "$wxUSE_SOCKETS" = 1; then
5819 echo "$ac_t""yes" 1>&6
5821 echo "$ac_t""no" 1>&6
5827 echo $ac_n "checking "for afmfonts
"""... $ac_c" 1>&6
5828 echo "configure:5829: checking "for afmfonts
"" >&5
5829 # Check whether --with-afmfonts or --without-afmfonts was given.
5830 if test "${with_afmfonts+set}" = set; then
5831 withval
="$with_afmfonts"
5832 if test "x$with_afmfonts" = xyes
; then
5833 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="1"'
5835 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="0"'
5839 LINE
=`grep "wxUSE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
5840 if test "x$LINE" != x
; then
5841 eval "DEFAULT_$LINE"
5843 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT='$DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
5847 eval "$ac_cv_use_afmfonts"
5848 echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
5849 if test "$wxUSE_AFM_FOR_POSTSCRIPT" = 1; then
5850 echo "$ac_t""yes" 1>&6
5852 echo "$ac_t""no" 1>&6
5857 echo $ac_n "checking "for normalized
"""... $ac_c" 1>&6
5858 echo "configure:5859: checking "for normalized
"" >&5
5859 # Check whether --with-normalized or --without-normalized was given.
5860 if test "${with_normalized+set}" = set; then
5861 withval
="$with_normalized"
5862 if test "x$with_normalized" = xyes
; then
5863 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="1"'
5865 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="0"'
5869 LINE
=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
5870 if test "x$LINE" != x
; then
5871 eval "DEFAULT_$LINE"
5873 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
5877 eval "$ac_cv_use_normalized"
5878 echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
5879 if test "$WX_NORMALIZED_PS_FONTS" = 1; then
5880 echo "$ac_t""yes" 1>&6
5882 echo "$ac_t""no" 1>&6
5887 echo $ac_n "checking "for postscript
"""... $ac_c" 1>&6
5888 echo "configure:5889: checking "for postscript
"" >&5
5889 # Check whether --with-postscript or --without-postscript was given.
5890 if test "${with_postscript+set}" = set; then
5891 withval
="$with_postscript"
5892 if test "x$with_postscript" = xyes
; then
5893 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="1"'
5895 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="0"'
5899 LINE
=`grep "wxUSE_POSTSCRIPT" ${OSTYPE}.system.cache`
5900 if test "x$LINE" != x
; then
5901 eval "DEFAULT_$LINE"
5903 ac_cv_use_postscript
='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5907 eval "$ac_cv_use_postscript"
5908 echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
5909 if test "$wxUSE_POSTSCRIPT" = 1; then
5910 echo "$ac_t""yes" 1>&6
5912 echo "$ac_t""no" 1>&6
5918 echo $ac_n "checking "for unicode
"""... $ac_c" 1>&6
5919 echo "configure:5920: checking "for unicode
"" >&5
5920 # Check whether --with-unicode or --without-unicode was given.
5921 if test "${with_unicode+set}" = set; then
5922 withval
="$with_unicode"
5923 if test "x$with_unicode" = xyes
; then
5924 ac_cv_use_unicode
='wxUSE_UNICODE="1"'
5926 ac_cv_use_unicode
='wxUSE_UNICODE="0"'
5930 LINE
=`grep "wxUSE_UNICODE" ${OSTYPE}.system.cache`
5931 if test "x$LINE" != x
; then
5932 eval "DEFAULT_$LINE"
5934 ac_cv_use_unicode
='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5938 eval "$ac_cv_use_unicode"
5939 echo $ac_cv_use_unicode >> ${OSTYPE}.system.cache.tmp
5940 if test "$wxUSE_UNICODE" = 1; then
5941 echo "$ac_t""yes" 1>&6
5943 echo "$ac_t""no" 1>&6
5948 echo $ac_n "checking "for wcsrtombs
"""... $ac_c" 1>&6
5949 echo "configure:5950: checking "for wcsrtombs
"" >&5
5950 # Check whether --with-wcsrtombs or --without-wcsrtombs was given.
5951 if test "${with_wcsrtombs+set}" = set; then
5952 withval
="$with_wcsrtombs"
5953 if test "x$with_wcsrtombs" = xyes
; then
5954 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="1"'
5956 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="0"'
5960 LINE
=`grep "wxUSE_WCSRTOMBS" ${OSTYPE}.system.cache`
5961 if test "x$LINE" != x
; then
5962 eval "DEFAULT_$LINE"
5964 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
5968 eval "$ac_cv_use_wcsrtombs"
5969 echo $ac_cv_use_wcsrtombs >> ${OSTYPE}.system.cache.tmp
5970 if test "$wxUSE_WCSRTOMBS" = 1; then
5971 echo "$ac_t""yes" 1>&6
5973 echo "$ac_t""no" 1>&6
5979 echo $ac_n "checking "for wxresources
"""... $ac_c" 1>&6
5980 echo "configure:5981: checking "for wxresources
"" >&5
5981 # Check whether --with-wxresources or --without-wxresources was given.
5982 if test "${with_wxresources+set}" = set; then
5983 withval
="$with_wxresources"
5984 if test "x$with_wxresources" = xyes
; then
5985 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="1"'
5987 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="0"'
5991 LINE
=`grep "wxUSE_WX_RESOURCES" ${OSTYPE}.system.cache`
5992 if test "x$LINE" != x
; then
5993 eval "DEFAULT_$LINE"
5995 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES='$DEFAULT_wxUSE_WX_RESOURCES
5999 eval "$ac_cv_use_wxresources"
6000 echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
6001 if test "$wxUSE_WX_RESOURCES" = 1; then
6002 echo "$ac_t""yes" 1>&6
6004 echo "$ac_t""no" 1>&6
6009 echo $ac_n "checking "for prologio
"""... $ac_c" 1>&6
6010 echo "configure:6011: checking "for prologio
"" >&5
6011 # Check whether --with-prologio or --without-prologio was given.
6012 if test "${with_prologio+set}" = set; then
6013 withval
="$with_prologio"
6014 if test "x$with_prologio" = xyes
; then
6015 ac_cv_use_prologio
='wxUSE_PROLOGIO="1"'
6017 ac_cv_use_prologio
='wxUSE_PROLOGIO="0"'
6021 LINE
=`grep "wxUSE_PROLOGIO" ${OSTYPE}.system.cache`
6022 if test "x$LINE" != x
; then
6023 eval "DEFAULT_$LINE"
6025 ac_cv_use_prologio
='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6029 eval "$ac_cv_use_prologio"
6030 echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
6031 if test "$wxUSE_PROLOGIO" = 1; then
6032 echo "$ac_t""yes" 1>&6
6034 echo "$ac_t""no" 1>&6
6039 echo $ac_n "checking "for RPC
"""... $ac_c" 1>&6
6040 echo "configure:6041: checking "for RPC
"" >&5
6041 # Check whether --with-rpc or --without-rpc was given.
6042 if test "${with_rpc+set}" = set; then
6044 if test "x$with_rpc" = xyes
; then
6045 ac_cv_use_rpc
='wxUSE_RPC="1"'
6047 ac_cv_use_rpc
='wxUSE_RPC="0"'
6051 LINE
=`grep "wxUSE_RPC" ${OSTYPE}.system.cache`
6052 if test "x$LINE" != x
; then
6053 eval "DEFAULT_$LINE"
6055 ac_cv_use_rpc
='wxUSE_RPC='$DEFAULT_wxUSE_RPC
6059 eval "$ac_cv_use_rpc"
6060 echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
6061 if test "$wxUSE_RPC" = 1; then
6062 echo "$ac_t""yes" 1>&6
6064 echo "$ac_t""no" 1>&6
6070 echo $ac_n "checking "for IPC
"""... $ac_c" 1>&6
6071 echo "configure:6072: checking "for IPC
"" >&5
6072 # Check whether --with-ipc or --without-ipc was given.
6073 if test "${with_ipc+set}" = set; then
6075 if test "x$with_ipc" = xyes
; then
6076 ac_cv_use_ipc
='wxUSE_IPC="1"'
6078 ac_cv_use_ipc
='wxUSE_IPC="0"'
6082 LINE
=`grep "wxUSE_IPC" ${OSTYPE}.system.cache`
6083 if test "x$LINE" != x
; then
6084 eval "DEFAULT_$LINE"
6086 ac_cv_use_ipc
='wxUSE_IPC='$DEFAULT_wxUSE_IPC
6090 eval "$ac_cv_use_ipc"
6091 echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
6092 if test "$wxUSE_IPC" = 1; then
6093 echo "$ac_t""yes" 1>&6
6095 echo "$ac_t""no" 1>&6
6100 echo $ac_n "checking "for resources
"""... $ac_c" 1>&6
6101 echo "configure:6102: checking "for resources
"" >&5
6102 # Check whether --with-resources or --without-resources was given.
6103 if test "${with_resources+set}" = set; then
6104 withval
="$with_resources"
6105 if test "x$with_resources" = xyes
; then
6106 ac_cv_use_resources
='wxUSE_RESOURCES="1"'
6108 ac_cv_use_resources
='wxUSE_RESOURCES="0"'
6112 LINE
=`grep "wxUSE_RESOURCES" ${OSTYPE}.system.cache`
6113 if test "x$LINE" != x
; then
6114 eval "DEFAULT_$LINE"
6116 ac_cv_use_resources
='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6120 eval "$ac_cv_use_resources"
6121 echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
6122 if test "$wxUSE_RESOURCES" = 1; then
6123 echo "$ac_t""yes" 1>&6
6125 echo "$ac_t""no" 1>&6
6130 echo $ac_n "checking "for clipboard
"""... $ac_c" 1>&6
6131 echo "configure:6132: checking "for clipboard
"" >&5
6132 # Check whether --with-clipboard or --without-clipboard was given.
6133 if test "${with_clipboard+set}" = set; then
6134 withval
="$with_clipboard"
6135 if test "x$with_clipboard" = xyes
; then
6136 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="1"'
6138 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="0"'
6142 LINE
=`grep "wxUSE_CLIPBOARD" ${OSTYPE}.system.cache`
6143 if test "x$LINE" != x
; then
6144 eval "DEFAULT_$LINE"
6146 ac_cv_use_clipboard
='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6150 eval "$ac_cv_use_clipboard"
6151 echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
6152 if test "$wxUSE_CLIPBOARD" = 1; then
6153 echo "$ac_t""yes" 1>&6
6155 echo "$ac_t""no" 1>&6
6160 echo $ac_n "checking "for tooltips
"""... $ac_c" 1>&6
6161 echo "configure:6162: checking "for tooltips
"" >&5
6162 # Check whether --with-tooltips or --without-tooltips was given.
6163 if test "${with_tooltips+set}" = set; then
6164 withval
="$with_tooltips"
6165 if test "x$with_tooltips" = xyes
; then
6166 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="1"'
6168 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="0"'
6172 LINE
=`grep "wxUSE_TOOLTIPS" ${OSTYPE}.system.cache`
6173 if test "x$LINE" != x
; then
6174 eval "DEFAULT_$LINE"
6176 ac_cv_use_tooltips
='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6180 eval "$ac_cv_use_tooltips"
6181 echo $ac_cv_use_tooltips >> ${OSTYPE}.system.cache.tmp
6182 if test "$wxUSE_TOOLTIPS" = 1; then
6183 echo "$ac_t""yes" 1>&6
6185 echo "$ac_t""no" 1>&6
6190 echo $ac_n "checking "for dnd
"""... $ac_c" 1>&6
6191 echo "configure:6192: checking "for dnd
"" >&5
6192 # Check whether --with-dnd or --without-dnd was given.
6193 if test "${with_dnd+set}" = set; then
6195 if test "x$with_dnd" = xyes
; then
6196 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="1"'
6198 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="0"'
6202 LINE
=`grep "wxUSE_DRAG_AND_DROP" ${OSTYPE}.system.cache`
6203 if test "x$LINE" != x
; then
6204 eval "DEFAULT_$LINE"
6206 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6210 eval "$ac_cv_use_dnd"
6211 echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp
6212 if test "$wxUSE_DRAG_AND_DROP" = 1; then
6213 echo "$ac_t""yes" 1>&6
6215 echo "$ac_t""no" 1>&6
6221 echo $ac_n "checking "for mdi
"""... $ac_c" 1>&6
6222 echo "configure:6223: checking "for mdi
"" >&5
6223 # Check whether --with-mdi or --without-mdi was given.
6224 if test "${with_mdi+set}" = set; then
6226 if test "x$with_mdi" = xyes
; then
6227 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="1"'
6229 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="0"'
6233 LINE
=`grep "wxUSE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache`
6234 if test "x$LINE" != x
; then
6235 eval "DEFAULT_$LINE"
6237 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6241 eval "$ac_cv_use_mdi"
6242 echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp
6243 if test "$wxUSE_MDI_ARCHITECTURE" = 1; then
6244 echo "$ac_t""yes" 1>&6
6246 echo "$ac_t""no" 1>&6
6251 echo $ac_n "checking "for docview
"""... $ac_c" 1>&6
6252 echo "configure:6253: checking "for docview
"" >&5
6253 # Check whether --with-docview or --without-docview was given.
6254 if test "${with_docview+set}" = set; then
6255 withval
="$with_docview"
6256 if test "x$with_docview" = xyes
; then
6257 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="1"'
6259 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="0"'
6263 LINE
=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
6264 if test "x$LINE" != x
; then
6265 eval "DEFAULT_$LINE"
6267 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6271 eval "$ac_cv_use_docview"
6272 echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
6273 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1; then
6274 echo "$ac_t""yes" 1>&6
6276 echo "$ac_t""no" 1>&6
6281 echo $ac_n "checking "for printarch
"""... $ac_c" 1>&6
6282 echo "configure:6283: checking "for printarch
"" >&5
6283 # Check whether --with-printarch or --without-printarch was given.
6284 if test "${with_printarch+set}" = set; then
6285 withval
="$with_printarch"
6286 if test "x$with_printarch" = xyes
; then
6287 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="1"'
6289 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="0"'
6293 LINE
=`grep "wxUSE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
6294 if test "x$LINE" != x
; then
6295 eval "DEFAULT_$LINE"
6297 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6301 eval "$ac_cv_use_printarch"
6302 echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
6303 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1; then
6304 echo "$ac_t""yes" 1>&6
6306 echo "$ac_t""no" 1>&6
6311 echo $ac_n "checking "for help"""... $ac_c" 1>&6
6312 echo "configure:6313: checking "for help"" >&5
6313 # Check whether --with-help or --without-help was given.
6314 if test "${with_help+set}" = set; then
6315 withval
="$with_help"
6316 if test "x$with_help" = xyes
; then
6317 ac_cv_use_help
='wxUSE_HELP="1"'
6319 ac_cv_use_help
='wxUSE_HELP="0"'
6323 LINE
=`grep "wxUSE_HELP" ${OSTYPE}.system.cache`
6324 if test "x$LINE" != x
; then
6325 eval "DEFAULT_$LINE"
6327 ac_cv_use_help
='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6331 eval "$ac_cv_use_help"
6332 echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
6333 if test "$wxUSE_HELP" = 1; then
6334 echo "$ac_t""yes" 1>&6
6336 echo "$ac_t""no" 1>&6
6341 if test "$wxUSE_UNIX" = 1 ; then
6342 cat >> confdefs.h
<<\EOF
6348 if test "$USE_LINUX" = 1; then
6349 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
6350 echo "configure:6351: checking for gettext in -lc" >&5
6351 ac_lib_var
=`echo c'_'gettext | sed 'y%./+-%__p_%'`
6352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6353 echo $ac_n "(cached) $ac_c" 1>&6
6355 ac_save_LIBS
="$LIBS"
6357 cat > conftest.
$ac_ext <<EOF
6358 #line 6359 "configure"
6359 #include "confdefs.h"
6360 /* Override any gcc2 internal prototype to avoid an error. */
6361 /* We use char because int might match the return type of a gcc2
6362 builtin and then its argument prototype would still apply. */
6369 if { (eval echo configure
:6370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6371 eval "ac_cv_lib_$ac_lib_var=yes"
6373 echo "configure: failed program was:" >&5
6374 cat conftest.
$ac_ext >&5
6376 eval "ac_cv_lib_$ac_lib_var=no"
6379 LIBS
="$ac_save_LIBS"
6382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6383 echo "$ac_t""yes" 1>&6
6384 cat >> confdefs.h
<<\EOF
6385 #define wxHAVE_GLIBC2 1
6389 echo "$ac_t""no" 1>&6
6406 if test "$wxUSE_GTK" = 1; then
6407 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6408 if test "${with_gtk_prefix+set}" = set; then
6409 withval
="$with_gtk_prefix"
6410 gtk_config_prefix
="$withval"
6412 gtk_config_prefix
=""
6415 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
6416 if test "${with_gtk_exec_prefix+set}" = set; then
6417 withval
="$with_gtk_exec_prefix"
6418 gtk_config_exec_prefix
="$withval"
6420 gtk_config_exec_prefix
=""
6424 if test x
$gtk_config_exec_prefix != x
; then
6425 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6426 if test x
${GTK_CONFIG+set} != xset
; then
6427 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
6430 if test x
$gtk_config_prefix != x
; then
6431 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
6432 if test x
${GTK_CONFIG+set} != xset
; then
6433 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
6437 # Extract the first word of "gtk-config", so it can be a program name with args.
6438 set dummy gtk
-config; ac_word
=$2
6439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6440 echo "configure:6441: checking for $ac_word" >&5
6441 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6444 case "$GTK_CONFIG" in
6446 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
6449 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6450 for ac_dir
in $PATH; do
6451 test -z "$ac_dir" && ac_dir
=.
6452 if test -f $ac_dir/$ac_word; then
6453 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
6458 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
6462 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
6463 if test -n "$GTK_CONFIG"; then
6464 echo "$ac_t""$GTK_CONFIG" 1>&6
6466 echo "$ac_t""no" 1>&6
6469 min_gtk_version
=1.0.4
6470 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6471 echo "configure:6472: checking for GTK - version >= $min_gtk_version" >&5
6473 if test "$GTK_CONFIG" != "no" ; then
6474 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
6475 GTK_LIBS
=`$GTK_CONFIG --libs`
6476 ac_save_CFLAGS
="$CFLAGS"
6477 ac_save_LIBS
="$LIBS"
6478 CFLAGS
="$CFLAGS $GTK_CFLAGS"
6479 LIBS
="$LIBS $GTK_LIBS"
6480 if test "$cross_compiling" = yes; then
6481 echo $ac_n "cross compiling; assumed OK... $ac_c"
6483 cat > conftest.
$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6487 #include <gtk/gtk.h>
6493 int major, minor, micro;
6495 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
6496 printf("%s, bad version string\n", "$min_gtk_version");
6500 if (gtk_minor_version > 0) return FALSE;
6502 return !((gtk_major_version > major) ||
6503 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6504 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6508 if { (eval echo configure
:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6512 echo "configure: failed program was:" >&5
6513 cat conftest.
$ac_ext >&5
6520 CFLAGS
="$ac_save_CFLAGS"
6521 LIBS
="$ac_save_LIBS"
6525 if test "x$no_gtk" = x
; then
6526 echo "$ac_t""yes" 1>&6
6528 GUI_TK_INCLUDE
="$GTK_CFLAGS"
6529 GUI_TK_LIBRARY
="$GTK_LIBS"
6532 echo "$ac_t""no" 1>&6
6535 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.0.4 up-to 1.0.6?" 1>&2; exit 1; }
6541 TOOLKIT_DEF
=__WXGTK__
6543 MAKEINCLUDE
=..
/gtk.inc
6546 if test "$wxUSE_QT" = 1; then
6547 echo $ac_n "checking for Qt includes""... $ac_c" 1>&6
6548 echo "configure:6549: checking for Qt includes" >&5
6551 for ac_dir
in $SEARCH_INCLUDE;
6553 if test -f "$ac_dir/qapp.h"; then
6554 ac_find_includes
=$ac_dir
6559 if test "$ac_find_includes" != "" ; then
6560 echo "$ac_t""found $ac_find_includes" 1>&6
6561 echo $ac_n "checking for Qt library""... $ac_c" 1>&6
6562 echo "configure:6563: checking for Qt library" >&5
6565 for ac_dir
in $SEARCH_LIB;
6567 for ac_extension
in a so sl
; do
6568 if test -f "$ac_dir/libqt.$ac_extension"; then
6569 ac_find_libraries
=$ac_dir
6575 if test "$ac_find_libraries" != "" ; then
6577 ac_path_to_include
=$ac_find_includes
6578 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
6580 if test $result = 0; then
6581 ac_path_to_include
=""
6583 ac_path_to_include
="-I$ac_find_includes"
6587 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6589 if test $result = 0; then
6592 ac_path_to_link
="-L$ac_find_libraries"
6595 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
6596 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
6597 echo "$ac_t""found Qt at $ac_find_libraries" 1>&6
6599 { echo "configure: error: no" 1>&2; exit 1; }
6602 { echo "configure: error: no" 1>&2; exit 1; }
6604 GUI_TK_LINK
="-lX11 -lqt -lm"
6606 TOOLKIT_DEF
=__WXQT__
6608 MAKEINCLUDE
=..
/qt.inc
6611 if test "$wxUSE_MOTIF" = 1; then
6612 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
6613 echo "configure:6614: checking for Motif/Lesstif includes" >&5
6616 for ac_dir
in $SEARCH_INCLUDE;
6618 if test -f "$ac_dir/Xm/Xm.h"; then
6619 ac_find_includes
=$ac_dir
6624 if test "$ac_find_includes" != "" ; then
6625 echo "$ac_t""found $ac_find_includes" 1>&6
6626 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
6627 echo "configure:6628: checking for Motif/Lesstif library" >&5
6630 for ac_dir
in $SEARCH_LIB;
6632 for ac_extension
in a so sl
; do
6633 if test -f "$ac_dir/libXm.$ac_extension"; then
6634 ac_find_libraries
=$ac_dir
6640 if test "$ac_find_libraries" != "" ; then
6642 ac_path_to_include
=$ac_find_includes
6643 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
6645 if test $result = 0; then
6646 ac_path_to_include
=""
6648 ac_path_to_include
="-I$ac_find_includes"
6652 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6654 if test $result = 0; then
6657 ac_path_to_link
="-L$ac_find_libraries"
6660 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6661 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
6662 echo "$ac_t""found at $ac_find_libraries" 1>&6
6663 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
6664 echo "configure:6665: checking for Xt library" >&5
6667 for ac_dir
in $SEARCH_LIB;
6669 for ac_extension
in a so sl
; do
6670 if test -f "$ac_dir/libXt.$ac_extension"; then
6671 ac_find_libraries
=$ac_dir
6677 if test "$ac_find_libraries" != "" ; then
6679 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6681 if test $result = 0; then
6684 ac_path_to_link
="-L$ac_find_libraries"
6687 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6688 echo "$ac_t""found at $ac_find_libraries" 1>&6
6689 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6690 echo "configure:6691: checking for Xpm library" >&5
6693 for ac_dir
in $SEARCH_LIB;
6695 for ac_extension
in a so sl
; do
6696 if test -f "$ac_dir/libXpm.$ac_extension"; then
6697 ac_find_libraries
=$ac_dir
6703 if test "$ac_find_libraries" != "" ; then
6705 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6707 if test $result = 0; then
6710 ac_path_to_link
="-L$ac_find_libraries"
6713 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6714 echo "$ac_t""found at $ac_find_libraries" 1>&6
6716 { echo "configure: error: no" 1>&2; exit 1; }
6719 { echo "configure: error: no" 1>&2; exit 1; }
6722 { echo "configure: error: no" 1>&2; exit 1; }
6725 { echo "configure: error: no" 1>&2; exit 1; }
6728 GUI_TK_LINK
="-lXm -lXpm -lXmu -lXt -lX11 -lm"
6729 GUI_TK_LIBRARY
="$CHECK_LIB $GUI_TK_LINK"
6731 TOOLKIT_DEF
="__WXMOTIF__ -D__LINUX__ -D__UNIX__"
6733 MAKEINCLUDE
=..
/motif.inc
6736 if test "$TOOLKIT" = ""; then
6737 { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; }
6755 if test "$wxUSE_DEBUG_GDB" = 1 ; then
6760 if test "$wxUSE_DEBUG_INFO" = 1 ; then
6764 EXTRA_LINK
="-s $EXTRA_LINK"
6769 if test "$wxUSE_DEBUG_FLAG" = 1 ; then
6770 cat >> confdefs.h
<<EOF
6771 #define WXDEBUG $wxUSE_DEBUG_FLAG
6774 WXDEBUG_DEFINE
="-D__WXDEBUG__"
6777 WXDEBUG_DEFINE
="-DGTK_NO_CHECK_CASTS"
6781 if test "$wxUSE_MEM_TRACING" = 1 ; then
6782 cat >> confdefs.h
<<EOF
6783 #define wxUSE_MEMORY_TRACING $wxUSE_MEM_TRACING
6786 cat >> confdefs.h
<<EOF
6787 #define wxUSE_GLOBAL_MEMORY_OPERATORS $wxUSE_MEM_TRACING
6792 if test "$wxUSE_DMALLOC" = 1 ; then
6793 EXTRA_LINK
="$EXTRA_LINK -ldmalloc"
6798 if test "$wxUSE_PROFILE" = 1 ; then
6803 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
6804 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
6805 if test "$wxUSE_OPTIMISE" = 0 ; then
6808 if test "$GCC" = yes ; then
6810 case "${canonical}" in
6812 OPTIMISE
="${OPTIMISE} "
6822 if test "$wxUSE_APPLE_IEEE" = 1 ; then
6823 APPLE_IEEE
="APPLE_IEEE"
6824 cat >> confdefs.h
<<EOF
6825 #define wxUSE_APPLE_IEEE $wxUSE_APPLE_IEEE
6830 wxUSE_IOSTREAMH
=$DEFAULT_wxUSE_IOSTREAMH
6831 cat >> confdefs.h
<<EOF
6832 #define wxUSE_IOSTREAMH $wxUSE_IOSTREAMH
6837 if test "$wxUSE_ZLIB" = 1 ; then
6838 cat >> confdefs.h
<<EOF
6839 #define wxUSE_ZLIB $wxUSE_ZLIB
6842 Z_C_SRC
="\$(Z_C_SRC)"
6846 if test "$wxUSE_LIBPNG" = 1 ; then
6847 cat >> confdefs.h
<<EOF
6848 #define wxUSE_LIBPNG $wxUSE_LIBPNG
6851 PNG_C_SRC
="\$(PNG_C_SRC)"
6856 if test "$wxUSE_LIBJPEG" = 1 ; then
6857 cat >> confdefs.h
<<EOF
6858 #define wxUSE_LIBJPEG $wxUSE_LIBJPEG
6861 echo $ac_n "checking for in -ljpeg""... $ac_c" 1>&6
6862 echo "configure:6863: checking for in -ljpeg" >&5
6863 ac_lib_var
=`echo jpeg'_' | sed 'y%./+-%__p_%'`
6864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6865 echo $ac_n "(cached) $ac_c" 1>&6
6867 ac_save_LIBS
="$LIBS"
6869 cat > conftest.
$ac_ext <<EOF
6870 #line 6871 "configure"
6871 #include "confdefs.h"
6872 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6881 if { (eval echo configure
:6882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6883 eval "ac_cv_lib_$ac_lib_var=yes"
6885 echo "configure: failed program was:" >&5
6886 cat conftest.
$ac_ext >&5
6888 eval "ac_cv_lib_$ac_lib_var=no"
6891 LIBS
="$ac_save_LIBS"
6894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6895 echo "$ac_t""yes" 1>&6
6896 ac_tr_lib
=HAVE_LIB
`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6897 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6898 cat >> confdefs.h
<<EOF
6899 #define $ac_tr_lib 1
6905 echo "$ac_t""no" 1>&6
6913 if test "$wxUSE_ODBC" = 1 ; then
6914 cat >> confdefs.h
<<EOF
6915 #define wxUSE_ODBC $wxUSE_ODBC
6918 IODBC_C_SRC
="\$(IODBC_C_SRC)"
6923 if test "$wxUSE_CONFIG" = 1 ; then
6924 cat >> confdefs.h
<<EOF
6925 #define wxUSE_CONFIG $wxUSE_CONFIG
6930 if test "$wxUSE_TIMEDATE" = 1 ; then
6931 cat >> confdefs.h
<<EOF
6932 #define wxUSE_TIMEDATE $wxUSE_TIMEDATE
6937 if test "$wxUSE_INTL" = 1 ; then
6938 cat >> confdefs.h
<<EOF
6939 #define wxUSE_INTL $wxUSE_INTL
6944 if test "$wxUSE_STREAMS" = 1 ; then
6945 cat >> confdefs.h
<<EOF
6946 #define wxUSE_STREAMS $wxUSE_STREAMS
6951 if test "$wxUSE_SOCKETS" = 1 ; then
6952 cat >> confdefs.h
<<EOF
6953 #define wxUSE_SOCKETS $wxUSE_SOCKETS
6958 if test "$wxUSE_SERIAL" = 1 ; then
6959 cat >> confdefs.h
<<EOF
6960 #define wxUSE_SERIAL $wxUSE_SERIAL
6967 if test "$wxUSE_DYNLIB_CLASS" = "1"; then
6968 for ac_func
in dlopen
6970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6971 echo "configure:6972: checking for $ac_func" >&5
6972 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6973 echo $ac_n "(cached) $ac_c" 1>&6
6975 cat > conftest.
$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6978 /* System header to define __stub macros and hopefully few prototypes,
6979 which can conflict with char $ac_func(); below. */
6981 /* Override any gcc2 internal prototype to avoid an error. */
6982 /* We use char because int might match the return type of a gcc2
6983 builtin and then its argument prototype would still apply. */
6988 /* The GNU C library defines this for functions which it implements
6989 to always fail with ENOSYS. Some functions are actually named
6990 something starting with __ and the normal name is an alias. */
6991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6999 if { (eval echo configure
:7000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7001 eval "ac_cv_func_$ac_func=yes"
7003 echo "configure: failed program was:" >&5
7004 cat conftest.
$ac_ext >&5
7006 eval "ac_cv_func_$ac_func=no"
7011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7012 echo "$ac_t""yes" 1>&6
7013 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7014 cat >> confdefs.h
<<EOF
7015 #define $ac_tr_func 1
7017 cat >> confdefs.h
<<\EOF
7018 #define HAVE_DLOPEN 1
7022 echo "$ac_t""no" 1>&6
7023 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7024 echo "configure:7025: checking for dlopen in -ldl" >&5
7025 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
7026 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7027 echo $ac_n "(cached) $ac_c" 1>&6
7029 ac_save_LIBS
="$LIBS"
7031 cat > conftest.
$ac_ext <<EOF
7032 #line 7033 "configure"
7033 #include "confdefs.h"
7034 /* Override any gcc2 internal prototype to avoid an error. */
7035 /* We use char because int might match the return type of a gcc2
7036 builtin and then its argument prototype would still apply. */
7043 if { (eval echo configure
:7044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7045 eval "ac_cv_lib_$ac_lib_var=yes"
7047 echo "configure: failed program was:" >&5
7048 cat conftest.
$ac_ext >&5
7050 eval "ac_cv_lib_$ac_lib_var=no"
7053 LIBS
="$ac_save_LIBS"
7056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7057 echo "$ac_t""yes" 1>&6
7058 cat >> confdefs.h
<<\EOF
7059 #define HAVE_DLOPEN 1
7063 echo "$ac_t""no" 1>&6
7069 for ac_func
in shl_load
7071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7072 echo "configure:7073: checking for $ac_func" >&5
7073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7074 echo $ac_n "(cached) $ac_c" 1>&6
7076 cat > conftest.
$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7079 /* System header to define __stub macros and hopefully few prototypes,
7080 which can conflict with char $ac_func(); below. */
7082 /* Override any gcc2 internal prototype to avoid an error. */
7083 /* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */
7089 /* The GNU C library defines this for functions which it implements
7090 to always fail with ENOSYS. Some functions are actually named
7091 something starting with __ and the normal name is an alias. */
7092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7100 if { (eval echo configure
:7101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7102 eval "ac_cv_func_$ac_func=yes"
7104 echo "configure: failed program was:" >&5
7105 cat conftest.
$ac_ext >&5
7107 eval "ac_cv_func_$ac_func=no"
7112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7113 echo "$ac_t""yes" 1>&6
7114 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7115 cat >> confdefs.h
<<EOF
7116 #define $ac_tr_func 1
7118 cat >> confdefs.h
<<\EOF
7119 #define HAVE_SHL_LOAD 1
7123 echo "$ac_t""no" 1>&6
7128 if test "$HAVE_DL_FUNCS" = 0; then
7129 echo "configure: warning: "--with-dynlib will be disabled because no
function was found to load a shared library on this platform
"" 1>&2
7131 wxUSE_DYNLIB_CLASS
=0
7135 if test "$wxUSE_DYNLIB_CLASS" = 1 ; then
7136 cat >> confdefs.h
<<EOF
7137 #define wxUSE_DYNLIB_CLASS $wxUSE_DYNLIB_CLASS
7143 if test "$wxUSE_RPC" = 1 ; then
7144 cat >> confdefs.h
<<EOF
7145 #define wxUSE_RPC $wxUSE_RPC
7150 if test "$wxUSE_WX_RESOURCES" = 1 ; then
7151 cat >> confdefs.h
<<EOF
7152 #define wxUSE_WX_RESOURCES $wxUSE_WX_RESOURCES
7157 if test "$wxUSE_PROLOGIO" = 1 ; then
7158 cat >> confdefs.h
<<EOF
7159 #define wxUSE_PROLOGIO 1
7165 if test "$wxUSE_POSTSCRIPT" = 1 ; then
7166 cat >> confdefs.h
<<EOF
7167 #define wxUSE_POSTSCRIPT 1
7172 cat >> confdefs.h
<<EOF
7173 #define wxUSE_AFM_FOR_POSTSCRIPT $wxUSE_AFM_FOR_POSTSCRIPT
7177 cat >> confdefs.h
<<EOF
7178 #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
7183 if test "$wxUSE_MDI_ARCHITECTURE" = 1 ; then
7184 cat >> confdefs.h
<<EOF
7185 #define wxUSE_MDI_ARCHITECTURE $wxUSE_MDI_ARCHITECTURE
7190 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1 ; then
7191 cat >> confdefs.h
<<EOF
7192 #define wxUSE_DOC_VIEW_ARCHITECTURE $wxUSE_DOC_VIEW_ARCHITECTURE
7197 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1 ; then
7198 cat >> confdefs.h
<<EOF
7199 #define wxUSE_PRINTING_ARCHITECTURE $wxUSE_PRINTING_ARCHITECTURE
7205 if test "$wxUSE_UNICODE" = 1 ; then
7206 cat >> confdefs.h
<<EOF
7207 #define wxUSE_UNICODE 1
7212 if test "$wxUSE_WCSRTOMBS" = 1 ; then
7213 cat >> confdefs.h
<<EOF
7214 #define wxUSE_WCSRTOMBS 1
7220 if test "$wxUSE_IPC" = 1 ; then
7221 cat >> confdefs.h
<<EOF
7227 if test "$wxUSE_RESOURCES" = 1 ; then
7228 cat >> confdefs.h
<<EOF
7229 #define wxUSE_RESOURCES $wxUSE_RESOURCES
7234 if test "$wxUSE_CLIPBOARD" = 1 ; then
7235 cat >> confdefs.h
<<EOF
7236 #define wxUSE_CLIPBOARD $wxUSE_CLIPBOARD
7241 if test "$wxUSE_TOOLTIPS" = 1 ; then
7242 cat >> confdefs.h
<<EOF
7243 #define wxUSE_TOOLTIPS $wxUSE_TOOLTIPS
7248 if test "$wxUSE_DRAG_AND_DROP" = 1 ; then
7249 cat >> confdefs.h
<<EOF
7250 #define wxUSE_DRAG_AND_DROP $wxUSE_DRAG_AND_DROP
7257 if test "$wxUSE_HELP" = 1 ; then
7259 cat >> confdefs.h
<<EOF
7260 #define wxUSE_HELP $wxUSE_HELP
7270 if test "$wxUSE_THREADS" = "1"; then
7273 echo $ac_n "checking for pthread_create in -lpthread-0.7""... $ac_c" 1>&6
7274 echo "configure:7275: checking for pthread_create in -lpthread-0.7" >&5
7275 ac_lib_var
=`echo pthread-0.7'_'pthread_create | sed 'y%./+-%__p_%'`
7276 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7277 echo $ac_n "(cached) $ac_c" 1>&6
7279 ac_save_LIBS
="$LIBS"
7280 LIBS
="-lpthread-0.7 $LIBS"
7281 cat > conftest.
$ac_ext <<EOF
7282 #line 7283 "configure"
7283 #include "confdefs.h"
7284 /* Override any gcc2 internal prototype to avoid an error. */
7285 /* We use char because int might match the return type of a gcc2
7286 builtin and then its argument prototype would still apply. */
7287 char pthread_create();
7293 if { (eval echo configure
:7294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7295 eval "ac_cv_lib_$ac_lib_var=yes"
7297 echo "configure: failed program was:" >&5
7298 cat conftest.
$ac_ext >&5
7300 eval "ac_cv_lib_$ac_lib_var=no"
7303 LIBS
="$ac_save_LIBS"
7306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7307 echo "$ac_t""yes" 1>&6
7309 UNIX_THREAD
="gtk/threadpsx.cpp"
7310 THREADS_LINK
="-lpthread-0.7"
7313 echo "$ac_t""no" 1>&6
7315 ac_safe
=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
7316 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7317 echo "configure:7318: checking for sys/prctl.h" >&5
7318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7319 echo $ac_n "(cached) $ac_c" 1>&6
7321 cat > conftest.
$ac_ext <<EOF
7322 #line 7323 "configure"
7323 #include "confdefs.h"
7324 #include <sys/prctl.h>
7326 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7327 { (eval echo configure
:7328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7328 ac_err
=`grep -v '^ *+' conftest.out`
7329 if test -z "$ac_err"; then
7331 eval "ac_cv_header_$ac_safe=yes"
7334 echo "configure: failed program was:" >&5
7335 cat conftest.
$ac_ext >&5
7337 eval "ac_cv_header_$ac_safe=no"
7341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7342 echo "$ac_t""yes" 1>&6
7344 UNIX_THREAD
="gtk/threadsgi.cpp"
7347 echo "$ac_t""no" 1>&6
7352 echo $ac_n "checking for pthread_setcanceltype in -lpthread""... $ac_c" 1>&6
7353 echo "configure:7354: checking for pthread_setcanceltype in -lpthread" >&5
7354 ac_lib_var
=`echo pthread'_'pthread_setcanceltype | sed 'y%./+-%__p_%'`
7355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7356 echo $ac_n "(cached) $ac_c" 1>&6
7358 ac_save_LIBS
="$LIBS"
7359 LIBS
="-lpthread $LIBS"
7360 cat > conftest.
$ac_ext <<EOF
7361 #line 7362 "configure"
7362 #include "confdefs.h"
7363 /* Override any gcc2 internal prototype to avoid an error. */
7364 /* We use char because int might match the return type of a gcc2
7365 builtin and then its argument prototype would still apply. */
7366 char pthread_setcanceltype();
7369 pthread_setcanceltype()
7372 if { (eval echo configure
:7373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7374 eval "ac_cv_lib_$ac_lib_var=yes"
7376 echo "configure: failed program was:" >&5
7377 cat conftest.
$ac_ext >&5
7379 eval "ac_cv_lib_$ac_lib_var=no"
7382 LIBS
="$ac_save_LIBS"
7385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7386 echo "$ac_t""yes" 1>&6
7388 UNIX_THREAD
="gtk/threadpsx.cpp"
7389 THREADS_LINK
="-lpthread"
7392 echo "$ac_t""no" 1>&6
7399 if test "$THREADS_LINK" != ""; then
7400 cat >> confdefs.h
<<\EOF
7401 #define wxUSE_THREADS 1
7407 echo $ac_n "checking for printf in -lposix4""... $ac_c" 1>&6
7408 echo "configure:7409: checking for printf in -lposix4" >&5
7409 ac_lib_var
=`echo posix4'_'printf | sed 'y%./+-%__p_%'`
7410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7411 echo $ac_n "(cached) $ac_c" 1>&6
7413 ac_save_LIBS
="$LIBS"
7414 LIBS
="-lposix4 $LIBS"
7415 cat > conftest.
$ac_ext <<EOF
7416 #line 7417 "configure"
7417 #include "confdefs.h"
7418 /* Override any gcc2 internal prototype to avoid an error. */
7419 /* We use char because int might match the return type of a gcc2
7420 builtin and then its argument prototype would still apply. */
7427 if { (eval echo configure
:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7429 eval "ac_cv_lib_$ac_lib_var=yes"
7431 echo "configure: failed program was:" >&5
7432 cat conftest.
$ac_ext >&5
7434 eval "ac_cv_lib_$ac_lib_var=no"
7437 LIBS
="$ac_save_LIBS"
7440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7441 echo "$ac_t""yes" 1>&6
7443 THREADS_LINK
="$THREADS_LINK -lposix4"
7446 echo "$ac_t""no" 1>&6
7452 if test "$wxUSE_MOTIF" = "1"; then
7453 UNIX_THREAD
="motif/thread.cpp"
7456 if test -z "$UNIX_THREAD"; then
7467 case "${canonical}" in
7470 if test "$GCC" != "yes" ; then
7471 CXXFLAGS
="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
7472 CFLAGS
="${CFLAGS} -z -D_HPUX_SOURCE"
7478 CREATE_SHARED
=sharedHpux
7483 CREATE_SHARED
=sharedLinux
7486 *-*-irix5* | *-*-irix6* )
7487 # PICFLAGS can remain empty, as pic is the default
7489 CREATE_SHARED
=sharedIrix
7490 cat >> confdefs.h
<<\EOF
7497 if test "$GCC" != "yes" ; then
7502 CREATE_SHARED
=sharedSolaris2
7503 cat >> confdefs.h
<<\EOF
7510 if test "$GCC" != "yes" ; then
7516 CREATE_SHARED
=sharedSunos4
7517 cat >> confdefs.h
<<\EOF
7523 *-*-freebsd* | *-*-netbsd*)
7525 CREATE_SHARED
=sharedBsd
7526 cat >> confdefs.h
<<\EOF
7534 CREATE_SHARED
=sharedOSF
7538 if test "$GCC" != "yes" ; then
7543 CREATE_SHARED
=sharedDgux
7544 cat >> confdefs.h
<<\EOF
7551 if test "$GCC" != "yes" ; then
7556 CREATE_SHARED
=sharedSysV
7557 cat >> confdefs.h
<<\EOF
7564 if test "$GCC" != "yes" ; then
7569 CREATE_SHARED
=sharedAIX
7570 cat >> confdefs.h
<<\EOF
7581 if test "x$GCC" = xyes
; then
7582 CFLAGS
="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER -DHAVE_LIBDL"
7585 if test "x$GXX" = xyes
; then
7586 if test "$wxUSE_MOTIF" = 1; then
7587 CXXFLAGS
="${CXXFLAGS} -Wall -Wno-unused -D_REENTRANT"
7589 CXXFLAGS
="${CXXFLAGS} -Wall -D_REENTRANT"
7593 if test "$wxUSE_SHARED" != 1; then
7603 echo $OS >> system.list
7607 cat > confcache
<<\EOF
7608 # This file is a shell script that caches the results of configure
7609 # tests run on this system so they can be shared between configure
7610 # scripts and configure runs. It is not useful on other systems.
7611 # If it contains results you don't want to keep, you may remove or edit it.
7613 # By default, configure uses ./config.cache as the cache file,
7614 # creating it if it does not exist already. You can give configure
7615 # the --cache-file=FILE option to use a different cache file; that is
7616 # what configure does when it calls configure scripts in
7617 # subdirectories, so they share the cache.
7618 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7619 # config.status only pays attention to the cache file if you give it the
7620 # --recheck option to rerun configure.
7623 # The following way of writing the cache mishandles newlines in values,
7624 # but we know of no workaround that is simple, portable, and efficient.
7625 # So, don't put newlines in cache variables' values.
7626 # Ultrix sh set writes to stderr and can't be redirected directly,
7627 # and sets the high bit in the cache file unless we assign to the vars.
7629 case `(ac_space=' '; set) 2>&1` in
7631 # `set' does not quote correctly, so add quotes (double-quote substitution
7632 # turns \\\\ into \\, and sed turns \\ into \).
7634 -e "s/'/'\\\\''/g" \
7635 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7638 # `set' quotes correctly as required by POSIX, so do not add quotes.
7639 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7642 if cmp -s $cache_file confcache
; then
7645 if test -w $cache_file; then
7646 echo "updating cache $cache_file"
7647 cat confcache
> $cache_file
7649 echo "not updating unwritable cache $cache_file"
7654 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7656 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7657 # Let make expand exec_prefix.
7658 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7660 # Any assignment to VPATH causes Sun make to only execute
7661 # the first set of double-colon rules, so remove it if not needed.
7662 # If there is a colon in the path, we need to keep it.
7663 if test "x$srcdir" = x.
; then
7664 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7667 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7669 DEFS
=-DHAVE_CONFIG_H
7671 # Without the "./", some shells look in PATH for config.status.
7672 : ${CONFIG_STATUS=./config.status}
7674 echo creating
$CONFIG_STATUS
7675 rm -f $CONFIG_STATUS
7676 cat > $CONFIG_STATUS <<EOF
7678 # Generated automatically by configure.
7679 # Run this file to recreate the current configuration.
7680 # This directory was configured as follows,
7681 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7683 # $0 $ac_configure_args
7685 # Compiler output produced by configure, useful for debugging
7686 # configure, is in ./config.log if it exists.
7688 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7691 case "\$ac_option" in
7692 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7693 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7694 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7695 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7696 echo "$CONFIG_STATUS generated by autoconf version 2.12"
7698 -help | --help | --hel | --he | --h)
7699 echo "\$ac_cs_usage"; exit 0 ;;
7700 *) echo "\$ac_cs_usage"; exit 1 ;;
7704 ac_given_srcdir=$srcdir
7705 ac_given_INSTALL="$INSTALL"
7707 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
7709 cat >> $CONFIG_STATUS <<EOF
7711 # Protect against being on the right side of a sed subst in config.status.
7712 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7713 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7716 s%@CFLAGS@%$CFLAGS%g
7717 s%@CPPFLAGS@%$CPPFLAGS%g
7718 s%@CXXFLAGS@%$CXXFLAGS%g
7720 s%@LDFLAGS@%$LDFLAGS%g
7722 s%@exec_prefix@%$exec_prefix%g
7723 s%@prefix@%$prefix%g
7724 s%@program_transform_name@%$program_transform_name%g
7725 s%@bindir@%$bindir%g
7726 s%@sbindir@%$sbindir%g
7727 s%@libexecdir@%$libexecdir%g
7728 s%@datadir@%$datadir%g
7729 s%@sysconfdir@%$sysconfdir%g
7730 s%@sharedstatedir@%$sharedstatedir%g
7731 s%@localstatedir@%$localstatedir%g
7732 s%@libdir@%$libdir%g
7733 s%@includedir@%$includedir%g
7734 s%@oldincludedir@%$oldincludedir%g
7735 s%@infodir@%$infodir%g
7736 s%@mandir@%$mandir%g
7737 s%@WXBASEDIR@%$WXBASEDIR%g
7741 s%@CXXCPP@%$CXXCPP%g
7742 s%@RANLIB@%$RANLIB%g
7744 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7745 s%@INSTALL_DATA@%$INSTALL_DATA%g
7748 s%@X_CFLAGS@%$X_CFLAGS%g
7749 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7750 s%@X_LIBS@%$X_LIBS%g
7751 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7752 s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
7753 s%@LIBOBJS@%$LIBOBJS%g
7756 s%@LEXLIB@%$LEXLIB%g
7757 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
7758 s%@DL_LIBRARY@%$DL_LIBRARY%g
7760 s%@host_alias@%$host_alias%g
7761 s%@host_cpu@%$host_cpu%g
7762 s%@host_vendor@%$host_vendor%g
7763 s%@host_os@%$host_os%g
7764 s%@GTK_CONFIG@%$GTK_CONFIG%g
7765 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
7766 s%@GTK_LIBS@%$GTK_LIBS%g
7767 s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
7768 s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
7769 s%@GUI_TK_LINK@%$GUI_TK_LINK%g
7770 s%@WX_LINK@%$WX_LINK%g
7771 s%@TOOLKIT@%$TOOLKIT%g
7772 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
7773 s%@MAKEINCLUDE@%$MAKEINCLUDE%g
7774 s%@WXDEBUG@%$WXDEBUG%g
7775 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
7776 s%@EXTRA_LINK@%$EXTRA_LINK%g
7777 s%@PROFILE@%$PROFILE%g
7778 s%@OPTIMISE@%$OPTIMISE%g
7779 s%@Z_C_SRC@%$Z_C_SRC%g
7780 s%@PNG_C_SRC@%$PNG_C_SRC%g
7781 s%@JPEG_LINK@%$JPEG_LINK%g
7782 s%@IODBC_C_SRC@%$IODBC_C_SRC%g
7784 s%@UNIX_THREAD@%$UNIX_THREAD%g
7785 s%@THREADS_LINK@%$THREADS_LINK%g
7787 s%@PICFLAGS@%$PICFLAGS%g
7788 s%@CREATE_SHARED@%$CREATE_SHARED%g
7793 cat >> $CONFIG_STATUS <<\EOF
7795 # Split the substitutions into bite-sized pieces for seds with
7796 # small command number limits, like on Digital OSF/1 and HP-UX.
7797 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7798 ac_file
=1 # Number of current file.
7799 ac_beg
=1 # First line for current file.
7800 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7803 while $ac_more_lines; do
7804 if test $ac_beg -gt 1; then
7805 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7807 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7809 if test ! -s conftest.s
$ac_file; then
7811 rm -f conftest.s
$ac_file
7813 if test -z "$ac_sed_cmds"; then
7814 ac_sed_cmds
="sed -f conftest.s$ac_file"
7816 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7818 ac_file
=`expr $ac_file + 1`
7820 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7823 if test -z "$ac_sed_cmds"; then
7828 cat >> $CONFIG_STATUS <<EOF
7830 CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"}
7832 cat >> $CONFIG_STATUS <<\EOF
7833 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7834 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7836 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7837 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7838 *) ac_file_in
="${ac_file}.in" ;;
7841 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7843 # Remove last slash and all that follows it. Not all systems have dirname.
7844 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7845 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7846 # The file is in a subdirectory.
7847 test ! -d "$ac_dir" && mkdir "$ac_dir"
7848 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7849 # A "../" for each directory in $ac_dir_suffix.
7850 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7852 ac_dir_suffix
= ac_dots
=
7855 case "$ac_given_srcdir" in
7857 if test -z "$ac_dots"; then top_srcdir
=.
7858 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7859 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7861 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7862 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7865 case "$ac_given_INSTALL" in
7866 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7867 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7870 echo creating
"$ac_file"
7872 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7874 *Makefile
*) ac_comsub
="1i\\
7875 # $configure_input" ;;
7879 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7881 s%@configure_input@%$configure_input%g
7882 s%@srcdir@%$srcdir%g
7883 s%@top_srcdir@%$top_srcdir%g
7884 s%@INSTALL@%$INSTALL%g
7885 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7889 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7890 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7892 # ac_d sets the value in "#define NAME VALUE" lines.
7893 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7894 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7897 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7898 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7899 ac_uB
='\([ ]\)%\1#\2define\3'
7902 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7903 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7904 ac_eB
='$%\1#\2define\3'
7908 if test "${CONFIG_HEADERS+set}" != set; then
7910 cat >> $CONFIG_STATUS <<EOF
7911 CONFIG_HEADERS="./include/wx/gtk/setup.h:./setup/setup.hin"
7913 cat >> $CONFIG_STATUS <<\EOF
7915 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7916 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7918 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7919 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7920 *) ac_file_in
="${ac_file}.in" ;;
7923 echo creating
$ac_file
7925 rm -f conftest.frag conftest.
in conftest.out
7926 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7927 cat $ac_file_inputs > conftest.
in
7931 # Transform confdefs.h into a sed script conftest.vals that substitutes
7932 # the proper values into config.h.in to produce config.h. And first:
7933 # Protect against being on the right side of a sed subst in config.status.
7934 # Protect against being in an unquoted here document in config.status.
7936 cat > conftest.hdr
<<\EOF
7939 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7943 sed -n -f conftest.hdr confdefs.h > conftest.vals
7946 # This sed command replaces #undef with comments. This is necessary, for
7947 # example, in the case of _POSIX_SOURCE, which is predefined and required
7948 # on some systems where configure will not decide to define it.
7949 cat >> conftest.vals <<\EOF
7950 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7953 # Break up conftest.vals because some shells have a limit on
7954 # the size of here documents, and old seds have small limits too.
7959 ac_lines=`grep -c . conftest.vals
`
7960 # grep -c gives empty output for an empty file on some AIX systems.
7961 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7962 # Write a limited-size here document to conftest.frag.
7963 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7964 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7966 sed -f conftest.frag conftest.in > conftest.out
7968 mv conftest.out conftest.in
7970 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7972 mv conftest.tail conftest.vals
7976 cat >> $CONFIG_STATUS <<\EOF
7977 rm -f conftest.frag conftest.h
7978 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7979 cat conftest.in >> conftest.h
7981 if cmp -s $ac_file conftest.h 2>/dev/null; then
7982 echo "$ac_file is unchanged"
7985 # Remove last slash and all that follows it. Not all systems have dirname.
7986 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7987 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7988 # The file is in a subdirectory.
7989 test ! -d "$ac_dir" && mkdir "$ac_dir"
7992 mv conftest.h $ac_file
7997 cat >> $CONFIG_STATUS <<EOF
8000 cat >> $CONFIG_STATUS <<\EOF
8001 ./setup/general/createall
8004 chmod +x $CONFIG_STATUS
8005 rm -fr confdefs* $ac_clean_files
8006 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8010 mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache