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-mem_traing create code with memory tracing"
33 **--with-dmalloc use dmalloc memory debug library (www.letters.com/dmalloc/)"
35 **--with-profile create code with profiling information"
37 **--with_apple_ieee use the Apple IEEE codec"
39 **--with-zlib use zlib for LZW comression"
41 **--with-gdk_imlib use Raster's gdk_imlib (Image library)"
43 **--with-libpng use libpng (PNG image format)"
45 **--with-odbc use iODBC and wxODBC classes"
47 **--with-opengl use OpenGL (or Mesa)"
49 **--with-gauge use wxGauge class"
51 **--with-scrollbar use wxScrollbar class"
53 **--with-listctrl use wxListCtrl class"
55 **--with-treectrl use wxTreeCtrl class"
57 **--with-grid use wxGrid class"
59 **--with-tab_dialog use wxTabDia class"
61 **--with-notebook use wxNotebook class"
63 **--with-timedate use wxTime and wxDate classes"
65 **--with-fraction use wxFraction class"
67 **--with-log use logging system"
69 **--with-intl use internationalization system"
71 **--with-config use wxConfig class"
73 **--with-streams use wxStream etc classes"
75 **--with-serial use class serialization"
77 **--with-file use wxFile class"
79 **--with-textfile use wxTextFile class"
81 **--with-afmfonts use Adobe Font Metric Font table"
83 **--with-PS-normalized use normalized PS fonts"
85 **--with-postscript use wxPostscriptDC device context"
87 **--with-wxresources use wxWindows's resources"
89 **--with-prologio use Prolog IO library"
91 **--with-rpc use Prolog's remote procedure calls"
93 **--with-ipc use interprocess communication (wxSocket etc.)"
95 **--with-resources use X resources for saving information"
97 **--with-clipboard use wxClipboard classes"
99 **--with-dnd use Drag'n'Drop classes"
101 **--with-constraints use layout-constraints system"
103 **--with-mdi use multiple document interface architecture"
105 **--with-docview use document view architecture"
107 **--with-printarch use printing architecture"
109 **--with-gtk-prefix=PFX Prefix where GTK is installed"
111 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
113 **--without-threads Force disabling threads "
115 # Initialize some variables set by options.
116 # The variables have the same names as the options, with
117 # dashes changed to underlines.
119 cache_file
=.
/config.cache
128 program_transform_name
=s
,x
,x
,
136 bindir
='${exec_prefix}/bin'
137 sbindir
='${exec_prefix}/sbin'
138 libexecdir
='${exec_prefix}/libexec'
139 datadir
='${prefix}/share'
140 sysconfdir
='${prefix}/etc'
141 sharedstatedir
='${prefix}/com'
142 localstatedir
='${prefix}/var'
143 libdir
='${exec_prefix}/lib'
144 includedir
='${prefix}/include'
145 oldincludedir
='/usr/include'
146 infodir
='${prefix}/info'
147 mandir
='${prefix}/man'
149 # Initialize some other variables.
152 # Maximum number of lines to put in a shell here document.
159 # If the previous option needs an argument, assign it.
160 if test -n "$ac_prev"; then
161 eval "$ac_prev=\$ac_option"
167 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
171 # Accept the important Cygnus configure options, so we can diagnose typos.
175 -bindir | --bindir | --bindi | --bind | --bin | --bi)
177 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
178 bindir
="$ac_optarg" ;;
180 -build | --build | --buil | --bui | --bu)
182 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
183 build
="$ac_optarg" ;;
185 -cache-file | --cache-file | --cache-fil | --cache-fi \
186 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
187 ac_prev
=cache_file
;;
188 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
189 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
190 cache_file
="$ac_optarg" ;;
192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196 datadir
="$ac_optarg" ;;
198 -disable-* | --disable-*)
199 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
200 # Reject names that are not valid shell variable names.
201 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
202 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
204 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
205 eval "enable_${ac_feature}=no" ;;
207 -enable-* | --enable-*)
208 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
209 # Reject names that are not valid shell variable names.
210 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
211 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
213 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
218 eval "enable_${ac_feature}='$ac_optarg'" ;;
220 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
221 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
222 | --exec | --exe | --ex)
223 ac_prev
=exec_prefix
;;
224 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
225 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
226 | --exec=* | --exe=* | --ex=*)
227 exec_prefix
="$ac_optarg" ;;
229 -gas | --gas | --ga | --g)
230 # Obsolete; use --with-gas.
233 -help | --help | --hel | --he)
234 # Omit some internal or obsolete options to make the list less imposing.
235 # This message is too long to be a string in the A/UX 3.1 sh.
237 Usage: configure [options] [host]
238 Options: [defaults in brackets after descriptions]
240 --cache-file=FILE cache test results in FILE
241 --help print this message
242 --no-create do not create output files
243 --quiet, --silent do not print \`checking...' messages
244 --version print the version of autoconf that created configure
245 Directory and file names:
246 --prefix=PREFIX install architecture-independent files in PREFIX
248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
250 --bindir=DIR user executables in DIR [EPREFIX/bin]
251 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
252 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
253 --datadir=DIR read-only architecture-independent data in DIR
255 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
256 --sharedstatedir=DIR modifiable architecture-independent data in DIR
258 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
259 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
260 --includedir=DIR C header files in DIR [PREFIX/include]
261 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
262 --infodir=DIR info documentation in DIR [PREFIX/info]
263 --mandir=DIR man documentation in DIR [PREFIX/man]
264 --srcdir=DIR find the sources in DIR [configure dir or ..]
265 --program-prefix=PREFIX prepend PREFIX to installed program names
266 --program-suffix=SUFFIX append SUFFIX to installed program names
267 --program-transform-name=PROGRAM
268 run sed PROGRAM on installed program names
272 --build=BUILD configure for building on BUILD [BUILD=HOST]
273 --host=HOST configure for HOST [guessed]
274 --target=TARGET configure for TARGET [TARGET=HOST]
275 Features and packages:
276 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
277 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
278 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
279 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
280 --x-includes=DIR X include files are in DIR
281 --x-libraries=DIR X library files are in DIR
283 if test -n "$ac_help"; then
284 echo "--enable and --with options recognized:$ac_help"
288 -host | --host | --hos | --ho)
290 -host=* | --host=* | --hos=* | --ho=*)
293 -includedir | --includedir | --includedi | --included | --include \
294 | --includ | --inclu | --incl | --inc)
295 ac_prev
=includedir
;;
296 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
297 | --includ=* | --inclu=* | --incl=* | --inc=*)
298 includedir
="$ac_optarg" ;;
300 -infodir | --infodir | --infodi | --infod | --info | --inf)
302 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
303 infodir
="$ac_optarg" ;;
305 -libdir | --libdir | --libdi | --libd)
307 -libdir=* | --libdir=* | --libdi=* | --libd=*)
308 libdir
="$ac_optarg" ;;
310 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
311 | --libexe | --libex | --libe)
312 ac_prev
=libexecdir
;;
313 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
314 | --libexe=* | --libex=* | --libe=*)
315 libexecdir
="$ac_optarg" ;;
317 -localstatedir | --localstatedir | --localstatedi | --localstated \
318 | --localstate | --localstat | --localsta | --localst \
319 | --locals | --local | --loca | --loc | --lo)
320 ac_prev
=localstatedir
;;
321 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
322 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
323 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
324 localstatedir
="$ac_optarg" ;;
326 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
328 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
329 mandir
="$ac_optarg" ;;
332 # Obsolete; use --without-fp.
335 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
339 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
340 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
343 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
344 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
345 | --oldin | --oldi | --old | --ol | --o)
346 ac_prev
=oldincludedir
;;
347 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
348 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
349 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
350 oldincludedir
="$ac_optarg" ;;
352 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
354 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
355 prefix
="$ac_optarg" ;;
357 -program-prefix | --program-prefix | --program-prefi | --program-pref \
358 | --program-pre | --program-pr | --program-p)
359 ac_prev
=program_prefix
;;
360 -program-prefix=* | --program-prefix=* | --program-prefi=* \
361 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
362 program_prefix
="$ac_optarg" ;;
364 -program-suffix | --program-suffix | --program-suffi | --program-suff \
365 | --program-suf | --program-su | --program-s)
366 ac_prev
=program_suffix
;;
367 -program-suffix=* | --program-suffix=* | --program-suffi=* \
368 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
369 program_suffix
="$ac_optarg" ;;
371 -program-transform-name | --program-transform-name \
372 | --program-transform-nam | --program-transform-na \
373 | --program-transform-n | --program-transform- \
374 | --program-transform | --program-transfor \
375 | --program-transfo | --program-transf \
376 | --program-trans | --program-tran \
377 | --progr-tra | --program-tr | --program-t)
378 ac_prev
=program_transform_name
;;
379 -program-transform-name=* | --program-transform-name=* \
380 | --program-transform-nam=* | --program-transform-na=* \
381 | --program-transform-n=* | --program-transform-=* \
382 | --program-transform=* | --program-transfor=* \
383 | --program-transfo=* | --program-transf=* \
384 | --program-trans=* | --program-tran=* \
385 | --progr-tra=* | --program-tr=* | --program-t=*)
386 program_transform_name
="$ac_optarg" ;;
388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
389 | -silent | --silent | --silen | --sile | --sil)
392 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
394 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
396 sbindir
="$ac_optarg" ;;
398 -sharedstatedir | --sharedstatedir | --sharedstatedi \
399 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
400 | --sharedst | --shareds | --shared | --share | --shar \
402 ac_prev
=sharedstatedir
;;
403 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
404 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
405 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
407 sharedstatedir
="$ac_optarg" ;;
409 -site | --site | --sit)
411 -site=* | --site=* | --sit=*)
414 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
416 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
417 srcdir
="$ac_optarg" ;;
419 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
420 | --syscon | --sysco | --sysc | --sys | --sy)
421 ac_prev
=sysconfdir
;;
422 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
423 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
424 sysconfdir
="$ac_optarg" ;;
426 -target | --target | --targe | --targ | --tar | --ta | --t)
428 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
429 target
="$ac_optarg" ;;
431 -v | -verbose | --verbose | --verbos | --verbo | --verb)
434 -version | --version | --versio | --versi | --vers)
435 echo "configure generated by autoconf version 2.12"
439 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
440 # Reject names that are not valid shell variable names.
441 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
442 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
444 ac_package
=`echo $ac_package| sed 's/-/_/g'`
449 eval "with_${ac_package}='$ac_optarg'" ;;
451 -without-* | --without-*)
452 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
453 # Reject names that are not valid shell variable names.
454 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
455 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
457 ac_package
=`echo $ac_package| sed 's/-/_/g'`
458 eval "with_${ac_package}=no" ;;
461 # Obsolete; use --with-x.
464 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
465 | --x-incl | --x-inc | --x-in | --x-i)
466 ac_prev
=x_includes
;;
467 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
468 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
469 x_includes
="$ac_optarg" ;;
471 -x-libraries | --x-libraries | --x-librarie | --x-librari \
472 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
473 ac_prev
=x_libraries
;;
474 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
475 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
476 x_libraries
="$ac_optarg" ;;
478 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
482 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
483 echo "configure: warning: $ac_option: invalid host type" 1>&2
485 if test "x$nonopt" != xNONE
; then
486 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
494 if test -n "$ac_prev"; then
495 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
498 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
500 # File descriptor usage:
503 # 2 errors and warnings
504 # 3 some systems may open it to /dev/tty
505 # 4 used on the Kubota Titan
506 # 6 checking for... messages and results
507 # 5 compiler messages saved in config.log
508 if test "$silent" = yes; then
516 This file contains any messages produced by compilers while
517 running configure, to aid debugging if configure makes a mistake.
520 # Strip out --no-create and --no-recursion so they do not pile up.
521 # Also quote any args containing shell metacharacters.
526 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
527 | --no-cr | --no-c) ;;
528 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
529 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
530 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
531 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
532 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
537 # Only set these to C if already set. These must not be set unconditionally
538 # because not all systems understand e.g. LANG=C (notably SCO).
539 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
540 # Non-C LC_CTYPE values break the ctype check.
541 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
542 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
543 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
544 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
546 # confdefs.h avoids OS command line length limits that DEFS can exceed.
547 rm -rf conftest
* confdefs.h
548 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
551 # A filename unique to this package, relative to the directory that
552 # configure is in, which we can look for to find out if srcdir is correct.
553 ac_unique_file
=configure.
in
555 # Find the source files, if location was not specified.
556 if test -z "$srcdir"; then
557 ac_srcdir_defaulted
=yes
558 # Try the directory containing this script, then its parent.
560 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
561 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
563 if test ! -r $srcdir/$ac_unique_file; then
567 ac_srcdir_defaulted
=no
569 if test ! -r $srcdir/$ac_unique_file; then
570 if test "$ac_srcdir_defaulted" = yes; then
571 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
573 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
576 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
578 # Prefer explicitly selected file to automatically selected ones.
579 if test -z "$CONFIG_SITE"; then
580 if test "x$prefix" != xNONE
; then
581 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
583 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
586 for ac_site_file
in $CONFIG_SITE; do
587 if test -r "$ac_site_file"; then
588 echo "loading site script $ac_site_file"
593 if test -r "$cache_file"; then
594 echo "loading cache $cache_file"
597 echo "creating cache $cache_file"
602 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
603 ac_cpp
='$CPP $CPPFLAGS'
604 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
605 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
606 cross_compiling
=$ac_cv_prog_cc_cross
608 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
609 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
610 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
617 ac_n
= ac_c
='\c' ac_t
=
625 if test "x$OS" = "x"; then
627 { echo "configure: error: "The system variable OS has not been
set"
628 "please
set is everytime befor compiling on this system
"
629 "A good example
for this system would be
:"
630 "setenv OSTYPE
$UNAME for csh as a SHELL
"
631 "EXPORT OSTYPE
=$UNAME for sh as SHELL
"
632 "please
set this and restart again.
"
642 /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 \
671 /usr/unsupported/include \
672 /usr/athena/include \
673 /usr/local/x11r5/include \
674 /usr/lpp/Xamples/include \
676 /usr/local/include/gtk \
677 /usr/X11R6/include/Xm \
678 /usr/X11/include/Xm \
681 /usr/openwin/include \
682 /usr/openwin/share/include \
685 SEARCH_LIB
="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` \
690 # Extract the first word of "gcc", so it can be a program name with args.
691 set dummy gcc
; ac_word
=$2
692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
693 echo "configure:694: checking for $ac_word" >&5
694 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
697 if test -n "$CC"; then
698 ac_cv_prog_CC
="$CC" # Let the user override the test.
700 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
701 for ac_dir
in $PATH; do
702 test -z "$ac_dir" && ac_dir
=.
703 if test -f $ac_dir/$ac_word; then
712 if test -n "$CC"; then
713 echo "$ac_t""$CC" 1>&6
715 echo "$ac_t""no" 1>&6
718 if test -z "$CC"; then
719 # Extract the first word of "cc", so it can be a program name with args.
720 set dummy cc
; ac_word
=$2
721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
722 echo "configure:723: checking for $ac_word" >&5
723 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
724 echo $ac_n "(cached) $ac_c" 1>&6
726 if test -n "$CC"; then
727 ac_cv_prog_CC
="$CC" # Let the user override the test.
729 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
731 for ac_dir
in $PATH; do
732 test -z "$ac_dir" && ac_dir
=.
733 if test -f $ac_dir/$ac_word; then
734 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
743 if test $ac_prog_rejected = yes; then
744 # We found a bogon in the path, so make sure we never use it.
745 set dummy
$ac_cv_prog_CC
747 if test $# -gt 0; then
748 # We chose a different compiler from the bogus one.
749 # However, it has the same basename, so the bogon will be chosen
750 # first if we set CC to just the basename; use the full file name.
752 set dummy
"$ac_dir/$ac_word" "$@"
760 if test -n "$CC"; then
761 echo "$ac_t""$CC" 1>&6
763 echo "$ac_t""no" 1>&6
766 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
769 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
770 echo "configure:771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
774 ac_cpp
='$CPP $CPPFLAGS'
775 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
776 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
777 cross_compiling
=$ac_cv_prog_cc_cross
779 cat > conftest.
$ac_ext <<EOF
780 #line 781 "configure"
781 #include "confdefs.h"
784 if { (eval echo configure
:785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
785 ac_cv_prog_cc_works
=yes
786 # If we can't run a trivial program, we are probably using a cross compiler.
787 if (.
/conftest
; exit) 2>/dev
/null
; then
788 ac_cv_prog_cc_cross
=no
790 ac_cv_prog_cc_cross
=yes
793 echo "configure: failed program was:" >&5
794 cat conftest.
$ac_ext >&5
795 ac_cv_prog_cc_works
=no
799 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
800 if test $ac_cv_prog_cc_works = no
; then
801 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
803 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
804 echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
805 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
806 cross_compiling
=$ac_cv_prog_cc_cross
808 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
809 echo "configure:810: checking whether we are using GNU C" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 cat > conftest.c
<<EOF
818 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
825 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
827 if test $ac_cv_prog_gcc = yes; then
829 ac_test_CFLAGS
="${CFLAGS+set}"
830 ac_save_CFLAGS
="$CFLAGS"
832 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
833 echo "configure:834: checking whether ${CC-cc} accepts -g" >&5
834 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 echo 'void f(){}' > conftest.c
838 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
847 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
848 if test "$ac_test_CFLAGS" = set; then
849 CFLAGS
="$ac_save_CFLAGS"
850 elif test $ac_cv_prog_cc_g = yes; then
857 test "${CFLAGS+set}" = set || CFLAGS
="-g"
861 CFLAGS
=`echo "$CFLAGS" | sed 's/-g//g'`
863 if test "x$CC" != xcc
; then
864 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
865 echo "configure:866: checking whether $CC and cc understand -c and -o together" >&5
867 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
868 echo "configure:869: checking whether cc understands -c and -o together" >&5
870 set dummy
$CC; ac_cc
="`echo $2 |
871 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
872 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
873 echo $ac_n "(cached) $ac_c" 1>&6
875 echo 'foo(){}' > conftest.c
876 # Make sure it works both with $CC and with simple cc.
877 # We do the test twice because some compilers refuse to overwrite an
878 # existing .o file with -o, though they will create one.
879 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
880 if { (eval echo configure
:881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
881 test -f conftest.o
&& { (eval echo configure
:882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
883 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
884 if test "x$CC" != xcc
; then
885 # Test first that cc exists at all.
886 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
887 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
888 if { (eval echo configure
:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
889 test -f conftest.o
&& { (eval echo configure
:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
894 # cc exists but doesn't like -o.
895 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
900 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
905 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
906 echo "$ac_t""yes" 1>&6
908 echo "$ac_t""no" 1>&6
909 cat >> confdefs.h
<<\EOF
910 #define NO_MINUS_C_MINUS_O 1
915 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
916 echo "configure:917: checking how to run the C preprocessor" >&5
917 # On Suns, sometimes $CPP names a directory.
918 if test -n "$CPP" && test -d "$CPP"; then
921 if test -z "$CPP"; then
922 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 # This must be in double quotes, not single quotes, because CPP may get
926 # substituted into the Makefile and "${CC-cc}" will confuse make.
928 # On the NeXT, cc -E runs the code through the compiler's parser,
929 # not just through cpp.
930 cat > conftest.
$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
936 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
937 { (eval echo configure
:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
938 ac_err
=`grep -v '^ *+' conftest.out`
939 if test -z "$ac_err"; then
943 echo "configure: failed program was:" >&5
944 cat conftest.
$ac_ext >&5
946 CPP
="${CC-cc} -E -traditional-cpp"
947 cat > conftest.
$ac_ext <<EOF
948 #line 949 "configure"
949 #include "confdefs.h"
953 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
954 { (eval echo configure
:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
955 ac_err
=`grep -v '^ *+' conftest.out`
956 if test -z "$ac_err"; then
960 echo "configure: failed program was:" >&5
961 cat conftest.
$ac_ext >&5
968 ac_cv_prog_CPP
="$CPP"
970 CPP
="$ac_cv_prog_CPP"
972 ac_cv_prog_CPP
="$CPP"
974 echo "$ac_t""$CPP" 1>&6
976 if test $ac_cv_prog_gcc = yes; then
977 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
978 echo "configure:979: checking whether ${CC-cc} needs -traditional" >&5
979 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
980 echo $ac_n "(cached) $ac_c" 1>&6
982 ac_pattern
="Autoconf.*'x'"
983 cat > conftest.
$ac_ext <<EOF
984 #line 985 "configure"
985 #include "confdefs.h"
989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
990 egrep "$ac_pattern" >/dev
/null
2>&1; then
992 ac_cv_prog_gcc_traditional
=yes
995 ac_cv_prog_gcc_traditional
=no
1000 if test $ac_cv_prog_gcc_traditional = no
; then
1001 cat > conftest.
$ac_ext <<EOF
1002 #line 1003 "configure"
1003 #include "confdefs.h"
1007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1008 egrep "$ac_pattern" >/dev
/null
2>&1; then
1010 ac_cv_prog_gcc_traditional
=yes
1017 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1018 if test $ac_cv_prog_gcc_traditional = yes; then
1019 CC
="$CC -traditional"
1026 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1028 # Extract the first word of "$ac_prog", so it can be a program name with args.
1029 set dummy
$ac_prog; ac_word
=$2
1030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1031 echo "configure:1032: checking for $ac_word" >&5
1032 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1033 echo $ac_n "(cached) $ac_c" 1>&6
1035 if test -n "$CXX"; then
1036 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1038 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1039 for ac_dir
in $PATH; do
1040 test -z "$ac_dir" && ac_dir
=.
1041 if test -f $ac_dir/$ac_word; then
1042 ac_cv_prog_CXX
="$ac_prog"
1049 CXX
="$ac_cv_prog_CXX"
1050 if test -n "$CXX"; then
1051 echo "$ac_t""$CXX" 1>&6
1053 echo "$ac_t""no" 1>&6
1056 test -n "$CXX" && break
1058 test -n "$CXX" || CXX
="gcc"
1061 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1062 echo "configure:1063: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1065 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1066 ac_cpp
='$CXXCPP $CPPFLAGS'
1067 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1068 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1069 cross_compiling
=$ac_cv_prog_cxx_cross
1071 cat > conftest.
$ac_ext <<EOF
1072 #line 1073 "configure"
1073 #include "confdefs.h"
1076 if { (eval echo configure
:1077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1077 ac_cv_prog_cxx_works
=yes
1078 # If we can't run a trivial program, we are probably using a cross compiler.
1079 if (.
/conftest
; exit) 2>/dev
/null
; then
1080 ac_cv_prog_cxx_cross
=no
1082 ac_cv_prog_cxx_cross
=yes
1085 echo "configure: failed program was:" >&5
1086 cat conftest.
$ac_ext >&5
1087 ac_cv_prog_cxx_works
=no
1091 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1092 ac_cpp
='$CPP $CPPFLAGS'
1093 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1094 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1095 cross_compiling
=$ac_cv_prog_cc_cross
1097 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1098 if test $ac_cv_prog_cxx_works = no
; then
1099 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1101 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1102 echo "configure:1103: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1103 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1104 cross_compiling
=$ac_cv_prog_cxx_cross
1106 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1107 echo "configure:1108: checking whether we are using GNU C++" >&5
1108 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 cat > conftest.C
<<EOF
1116 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
1123 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1125 if test $ac_cv_prog_gxx = yes; then
1127 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1128 ac_save_CXXFLAGS
="$CXXFLAGS"
1130 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1131 echo "configure:1132: checking whether ${CXX-g++} accepts -g" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 echo 'void f(){}' > conftest.cc
1136 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1137 ac_cv_prog_cxx_g
=yes
1145 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1146 if test "$ac_test_CXXFLAGS" = set; then
1147 CXXFLAGS
="$ac_save_CXXFLAGS"
1148 elif test $ac_cv_prog_cxx_g = yes; then
1155 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1158 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1159 echo "configure:1160: checking how to run the C++ preprocessor" >&5
1160 if test -z "$CXXCPP"; then
1161 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1165 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1166 ac_cpp
='$CXXCPP $CPPFLAGS'
1167 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1168 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1169 cross_compiling
=$ac_cv_prog_cxx_cross
1170 CXXCPP
="${CXX-g++} -E"
1171 cat > conftest.
$ac_ext <<EOF
1172 #line 1173 "configure"
1173 #include "confdefs.h"
1176 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1177 { (eval echo configure
:1178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1178 ac_err
=`grep -v '^ *+' conftest.out`
1179 if test -z "$ac_err"; then
1183 echo "configure: failed program was:" >&5
1184 cat conftest.
$ac_ext >&5
1189 ac_cv_prog_CXXCPP
="$CXXCPP"
1191 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1192 ac_cpp
='$CPP $CPPFLAGS'
1193 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1194 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1195 cross_compiling
=$ac_cv_prog_cc_cross
1198 CXXCPP
="$ac_cv_prog_CXXCPP"
1199 echo "$ac_t""$CXXCPP" 1>&6
1202 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-g//g'`
1206 # Extract the first word of "ranlib", so it can be a program name with args.
1207 set dummy ranlib
; ac_word
=$2
1208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1209 echo "configure:1210: checking for $ac_word" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 if test -n "$RANLIB"; then
1214 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1216 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1217 for ac_dir
in $PATH; do
1218 test -z "$ac_dir" && ac_dir
=.
1219 if test -f $ac_dir/$ac_word; then
1220 ac_cv_prog_RANLIB
="ranlib"
1225 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1228 RANLIB
="$ac_cv_prog_RANLIB"
1229 if test -n "$RANLIB"; then
1230 echo "$ac_t""$RANLIB" 1>&6
1232 echo "$ac_t""no" 1>&6
1236 # Extract the first word of "ar", so it can be a program name with args.
1237 set dummy
ar; ac_word
=$2
1238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1239 echo "configure:1240: checking for $ac_word" >&5
1240 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 if test -n "$AR"; then
1244 ac_cv_prog_AR
="$AR" # Let the user override the test.
1246 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1247 for ac_dir
in $PATH; do
1248 test -z "$ac_dir" && ac_dir
=.
1249 if test -f $ac_dir/$ac_word; then
1255 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1259 if test -n "$AR"; then
1260 echo "$ac_t""$AR" 1>&6
1262 echo "$ac_t""no" 1>&6
1267 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1268 if test -f $ac_dir/install-sh; then
1270 ac_install_sh
="$ac_aux_dir/install-sh -c"
1272 elif test -f $ac_dir/install.sh
; then
1274 ac_install_sh
="$ac_aux_dir/install.sh -c"
1278 if test -z "$ac_aux_dir"; then
1279 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1281 ac_config_guess
=$ac_aux_dir/config.guess
1282 ac_config_sub
=$ac_aux_dir/config.sub
1283 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1285 # Find a good install program. We prefer a C program (faster),
1286 # so one script is as good as another. But avoid the broken or
1287 # incompatible versions:
1288 # SysV /etc/install, /usr/sbin/install
1289 # SunOS /usr/etc/install
1290 # IRIX /sbin/install
1292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1294 # ./install, which can be erroneously created by make from ./install.sh.
1295 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1296 echo "configure:1297: checking for a BSD compatible install" >&5
1297 if test -z "$INSTALL"; then
1298 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1302 for ac_dir
in $PATH; do
1303 # Account for people who put trailing slashes in PATH elements.
1305 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1307 # OSF1 and SCO ODT 3.0 have their own names for install.
1308 for ac_prog
in ginstall installbsd scoinst
install; do
1309 if test -f $ac_dir/$ac_prog; then
1310 if test $ac_prog = install &&
1311 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1312 # AIX install. It has an incompatible calling convention.
1313 # OSF/1 installbsd also uses dspmsg, but is usable.
1316 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1327 if test "${ac_cv_path_install+set}" = set; then
1328 INSTALL
="$ac_cv_path_install"
1330 # As a last resort, use the slow shell script. We don't cache a
1331 # path for INSTALL within a source directory, because that will
1332 # break other packages using the cache if that directory is
1333 # removed, or if the path is relative.
1334 INSTALL
="$ac_install_sh"
1337 echo "$ac_t""$INSTALL" 1>&6
1339 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1340 # It thinks the first close brace ends the variable substitution.
1341 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1343 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1346 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1347 echo "configure:1348: checking whether ln -s works" >&5
1348 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1352 if ln -s X conftestdata
2>/dev
/null
1355 ac_cv_prog_LN_S
="ln -s"
1360 LN_S
="$ac_cv_prog_LN_S"
1361 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1362 echo "$ac_t""yes" 1>&6
1364 echo "$ac_t""no" 1>&6
1368 for ac_prog
in mawk gawk nawk
awk
1370 # Extract the first word of "$ac_prog", so it can be a program name with args.
1371 set dummy
$ac_prog; ac_word
=$2
1372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1373 echo "configure:1374: checking for $ac_word" >&5
1374 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1377 if test -n "$AWK"; then
1378 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1380 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1381 for ac_dir
in $PATH; do
1382 test -z "$ac_dir" && ac_dir
=.
1383 if test -f $ac_dir/$ac_word; then
1384 ac_cv_prog_AWK
="$ac_prog"
1391 AWK
="$ac_cv_prog_AWK"
1392 if test -n "$AWK"; then
1393 echo "$ac_t""$AWK" 1>&6
1395 echo "$ac_t""no" 1>&6
1398 test -n "$AWK" && break
1402 echo $ac_n "checking "make for VPATH support
"""... $ac_c" 1>&6
1403 echo "configure:1404: checking "make for VPATH support
"" >&5
1404 cat - << EOF > confMake
1410 if test ! -d sub
; then
1413 echo dummy
> sub
/file
1414 ${MAKE-make} -f confMake VPATH
=sub
2> config.log
> /dev
/null
1416 rm -f sub
/file check final_file config.log confMake
1418 if test "$RESULT" = 0; then
1419 echo "$ac_t""yes" 1>&6
1421 echo "$ac_t""no" 1>&6
1422 { echo "configure: error: You need a make-utility that is able to use the variable
1424 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
1428 # If we find X, set shell vars x_includes and x_libraries to the
1429 # paths, otherwise set no_x=yes.
1430 # Uses ac_ vars as temps to allow command line to override cache and checks.
1431 # --without-x overrides everything else, but does not touch the cache.
1432 echo $ac_n "checking for X""... $ac_c" 1>&6
1433 echo "configure:1434: checking for X" >&5
1435 # Check whether --with-x or --without-x was given.
1436 if test "${with_x+set}" = set; then
1441 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1442 if test "x$with_x" = xno
; then
1443 # The user explicitly disabled X.
1446 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1447 # Both variables are already set.
1450 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1453 # One or both of the vars are not set, and there is no cached value.
1454 ac_x_includes
=NO ac_x_libraries
=NO
1456 if mkdir conftestdir
; then
1458 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1459 cat > Imakefile
<<'EOF'
1461 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1463 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1464 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1465 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1466 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1467 for ac_extension
in a so sl
; do
1468 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1469 test -f $ac_im_libdir/libX11.
$ac_extension; then
1470 ac_im_usrlibdir
=$ac_im_libdir; break
1473 # Screen out bogus values from the imake configuration. They are
1474 # bogus both because they are the default anyway, and because
1475 # using them would break gcc on systems where it needs fixed includes.
1476 case "$ac_im_incroot" in
1478 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1480 case "$ac_im_usrlibdir" in
1482 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1489 if test "$ac_x_includes" = NO
; then
1490 # Guess where to find include files, by looking for this one X11 .h file.
1491 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1493 # First, try using that file with no special directory specified.
1494 cat > conftest.
$ac_ext <<EOF
1495 #line 1496 "configure"
1496 #include "confdefs.h"
1497 #include <$x_direct_test_include>
1499 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1500 { (eval echo configure
:1501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1501 ac_err
=`grep -v '^ *+' conftest.out`
1502 if test -z "$ac_err"; then
1504 # We can compile using X headers with no special include directory.
1508 echo "configure: failed program was:" >&5
1509 cat conftest.
$ac_ext >&5
1511 # Look for the header file in a standard set of common directories.
1512 # Check X11 before X11Rn because it is often a symlink to the current release.
1515 /usr
/X
11R
6/include \
1516 /usr
/X
11R
5/include \
1517 /usr
/X
11R
4/include \
1520 /usr
/include
/X11R6 \
1521 /usr
/include
/X11R5 \
1522 /usr
/include
/X11R4 \
1524 /usr
/local
/X
11/include \
1525 /usr
/local
/X
11R
6/include \
1526 /usr
/local
/X
11R
5/include \
1527 /usr
/local
/X
11R
4/include \
1529 /usr
/local
/include
/X11 \
1530 /usr
/local
/include
/X11R6 \
1531 /usr
/local
/include
/X11R5 \
1532 /usr
/local
/include
/X11R4 \
1536 /usr
/XFree
86/include
/X11 \
1539 /usr
/local
/include \
1540 /usr
/unsupported
/include \
1541 /usr
/athena
/include \
1542 /usr
/local
/x
11r
5/include \
1543 /usr
/lpp
/Xamples
/include \
1545 /usr
/openwin
/include \
1546 /usr
/openwin
/share
/include \
1549 if test -r "$ac_dir/$x_direct_test_include"; then
1550 ac_x_includes
=$ac_dir
1556 fi # $ac_x_includes = NO
1558 if test "$ac_x_libraries" = NO
; then
1559 # Check for the libraries.
1561 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1562 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1564 # See if we find them without any special options.
1565 # Don't add to $LIBS permanently.
1566 ac_save_LIBS
="$LIBS"
1567 LIBS
="-l$x_direct_test_library $LIBS"
1568 cat > conftest.
$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1573 ${x_direct_test_function}()
1576 if { (eval echo configure
:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1578 LIBS
="$ac_save_LIBS"
1579 # We can link X programs with no special library path.
1582 echo "configure: failed program was:" >&5
1583 cat conftest.
$ac_ext >&5
1585 LIBS
="$ac_save_LIBS"
1586 # First see if replacing the include by lib works.
1587 # Check X11 before X11Rn because it is often a symlink to the current release.
1588 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1599 /usr
/local
/X
11/lib \
1600 /usr
/local
/X
11R
6/lib \
1601 /usr
/local
/X
11R
5/lib \
1602 /usr
/local
/X
11R
4/lib \
1604 /usr
/local
/lib
/X11 \
1605 /usr
/local
/lib
/X11R6 \
1606 /usr
/local
/lib
/X11R5 \
1607 /usr
/local
/lib
/X11R4 \
1611 /usr
/XFree
86/lib
/X11 \
1615 /usr
/unsupported
/lib \
1617 /usr
/local
/x
11r
5/lib \
1618 /usr
/lpp
/Xamples
/lib \
1622 /usr
/openwin
/share
/lib \
1625 for ac_extension
in a so sl
; do
1626 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1627 ac_x_libraries
=$ac_dir
1634 fi # $ac_x_libraries = NO
1636 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
1637 # Didn't find X anywhere. Cache the known absence of X.
1638 ac_cv_have_x
="have_x=no"
1640 # Record where we found X for the cache.
1641 ac_cv_have_x
="have_x=yes \
1642 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1646 eval "$ac_cv_have_x"
1649 if test "$have_x" != yes; then
1650 echo "$ac_t""$have_x" 1>&6
1653 # If each of the values was on the command line, it overrides each guess.
1654 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1655 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1656 # Update the cache value to reflect the command line values.
1657 ac_cv_have_x
="have_x=yes \
1658 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1659 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1662 if test "$no_x" = yes; then
1663 # Not all programs may use this symbol, but it does not hurt to define it.
1664 cat >> confdefs.h
<<\EOF
1665 #define X_DISPLAY_MISSING 1
1668 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1670 if test -n "$x_includes"; then
1671 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1674 # It would also be nice to do this for all -L options, not just this one.
1675 if test -n "$x_libraries"; then
1676 X_LIBS
="$X_LIBS -L$x_libraries"
1677 # For Solaris; some versions of Sun CC require a space after -R and
1678 # others require no space. Words are not sufficient . . . .
1679 case "`(uname -sr) 2>/dev/null`" in
1681 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1682 echo "configure:1683: checking whether -R must be followed by a space" >&5
1683 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1684 cat > conftest.
$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1692 if { (eval echo configure
:1693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1696 echo "configure: failed program was:" >&5
1697 cat conftest.
$ac_ext >&5
1702 if test $ac_R_nospace = yes; then
1703 echo "$ac_t""no" 1>&6
1704 X_LIBS
="$X_LIBS -R$x_libraries"
1706 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1707 cat > conftest.
$ac_ext <<EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1715 if { (eval echo configure
:1716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1719 echo "configure: failed program was:" >&5
1720 cat conftest.
$ac_ext >&5
1725 if test $ac_R_space = yes; then
1726 echo "$ac_t""yes" 1>&6
1727 X_LIBS
="$X_LIBS -R $x_libraries"
1729 echo "$ac_t""neither works" 1>&6
1732 LIBS
="$ac_xsave_LIBS"
1736 # Check for system-dependent libraries X programs must link with.
1737 # Do this before checking for the system-independent R6 libraries
1738 # (-lICE), since we may need -lsocket or whatever for X linking.
1740 if test "$ISC" = yes; then
1741 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1743 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1744 # libraries were built with DECnet support. And karl@cs.umb.edu says
1745 # the Alpha needs dnet_stub (dnet does not exist).
1746 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1747 echo "configure:1748: checking for dnet_ntoa in -ldnet" >&5
1748 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1752 ac_save_LIBS
="$LIBS"
1754 cat > conftest.
$ac_ext <<EOF
1755 #line 1756 "configure"
1756 #include "confdefs.h"
1757 /* Override any gcc2 internal prototype to avoid an error. */
1758 /* We use char because int might match the return type of a gcc2
1759 builtin and then its argument prototype would still apply. */
1766 if { (eval echo configure
:1767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1768 eval "ac_cv_lib_$ac_lib_var=yes"
1770 echo "configure: failed program was:" >&5
1771 cat conftest.
$ac_ext >&5
1773 eval "ac_cv_lib_$ac_lib_var=no"
1776 LIBS
="$ac_save_LIBS"
1779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1780 echo "$ac_t""yes" 1>&6
1781 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1783 echo "$ac_t""no" 1>&6
1786 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1787 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1788 echo "configure:1789: checking for dnet_ntoa in -ldnet_stub" >&5
1789 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1791 echo $ac_n "(cached) $ac_c" 1>&6
1793 ac_save_LIBS
="$LIBS"
1794 LIBS
="-ldnet_stub $LIBS"
1795 cat > conftest.
$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1798 /* Override any gcc2 internal prototype to avoid an error. */
1799 /* We use char because int might match the return type of a gcc2
1800 builtin and then its argument prototype would still apply. */
1807 if { (eval echo configure
:1808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1809 eval "ac_cv_lib_$ac_lib_var=yes"
1811 echo "configure: failed program was:" >&5
1812 cat conftest.
$ac_ext >&5
1814 eval "ac_cv_lib_$ac_lib_var=no"
1817 LIBS
="$ac_save_LIBS"
1820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1821 echo "$ac_t""yes" 1>&6
1822 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1824 echo "$ac_t""no" 1>&6
1829 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1830 # to get the SysV transport functions.
1831 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1833 # The nsl library prevents programs from opening the X display
1834 # on Irix 5.2, according to dickey@clark.net.
1835 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1836 echo "configure:1837: checking for gethostbyname" >&5
1837 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.
$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char gethostbyname(); below. */
1846 /* Override any gcc2 internal prototype to avoid an error. */
1847 /* We use char because int might match the return type of a gcc2
1848 builtin and then its argument prototype would still apply. */
1849 char gethostbyname();
1853 /* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1864 if { (eval echo configure
:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1866 eval "ac_cv_func_gethostbyname=yes"
1868 echo "configure: failed program was:" >&5
1869 cat conftest.
$ac_ext >&5
1871 eval "ac_cv_func_gethostbyname=no"
1876 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1877 echo "$ac_t""yes" 1>&6
1880 echo "$ac_t""no" 1>&6
1883 if test $ac_cv_func_gethostbyname = no
; then
1884 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1885 echo "configure:1886: checking for gethostbyname in -lnsl" >&5
1886 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1890 ac_save_LIBS
="$LIBS"
1892 cat > conftest.
$ac_ext <<EOF
1893 #line 1894 "configure"
1894 #include "confdefs.h"
1895 /* Override any gcc2 internal prototype to avoid an error. */
1896 /* We use char because int might match the return type of a gcc2
1897 builtin and then its argument prototype would still apply. */
1898 char gethostbyname();
1904 if { (eval echo configure
:1905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1906 eval "ac_cv_lib_$ac_lib_var=yes"
1908 echo "configure: failed program was:" >&5
1909 cat conftest.
$ac_ext >&5
1911 eval "ac_cv_lib_$ac_lib_var=no"
1914 LIBS
="$ac_save_LIBS"
1917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1918 echo "$ac_t""yes" 1>&6
1919 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1921 echo "$ac_t""no" 1>&6
1926 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1927 # socket/setsockopt and other routines are undefined under SCO ODT
1928 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1929 # on later versions), says simon@lia.di.epfl.ch: it contains
1930 # gethostby* variants that don't use the nameserver (or something).
1931 # -lsocket must be given before -lnsl if both are needed.
1932 # We assume that if connect needs -lnsl, so does gethostbyname.
1933 echo $ac_n "checking for connect""... $ac_c" 1>&6
1934 echo "configure:1935: checking for connect" >&5
1935 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
1938 cat > conftest.
$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1941 /* System header to define __stub macros and hopefully few prototypes,
1942 which can conflict with char connect(); below. */
1944 /* Override any gcc2 internal prototype to avoid an error. */
1945 /* We use char because int might match the return type of a gcc2
1946 builtin and then its argument prototype would still apply. */
1951 /* The GNU C library defines this for functions which it implements
1952 to always fail with ENOSYS. Some functions are actually named
1953 something starting with __ and the normal name is an alias. */
1954 #if defined (__stub_connect) || defined (__stub___connect)
1962 if { (eval echo configure
:1963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1964 eval "ac_cv_func_connect=yes"
1966 echo "configure: failed program was:" >&5
1967 cat conftest.
$ac_ext >&5
1969 eval "ac_cv_func_connect=no"
1974 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1975 echo "$ac_t""yes" 1>&6
1978 echo "$ac_t""no" 1>&6
1981 if test $ac_cv_func_connect = no
; then
1982 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1983 echo "configure:1984: checking for connect in -lsocket" >&5
1984 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1988 ac_save_LIBS
="$LIBS"
1989 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1990 cat > conftest.
$ac_ext <<EOF
1991 #line 1992 "configure"
1992 #include "confdefs.h"
1993 /* Override any gcc2 internal prototype to avoid an error. */
1994 /* We use char because int might match the return type of a gcc2
1995 builtin and then its argument prototype would still apply. */
2002 if { (eval echo configure
:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2004 eval "ac_cv_lib_$ac_lib_var=yes"
2006 echo "configure: failed program was:" >&5
2007 cat conftest.
$ac_ext >&5
2009 eval "ac_cv_lib_$ac_lib_var=no"
2012 LIBS
="$ac_save_LIBS"
2015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2016 echo "$ac_t""yes" 1>&6
2017 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2019 echo "$ac_t""no" 1>&6
2024 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2025 echo $ac_n "checking for remove""... $ac_c" 1>&6
2026 echo "configure:2027: checking for remove" >&5
2027 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2030 cat > conftest.
$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2033 /* System header to define __stub macros and hopefully few prototypes,
2034 which can conflict with char remove(); below. */
2036 /* Override any gcc2 internal prototype to avoid an error. */
2037 /* We use char because int might match the return type of a gcc2
2038 builtin and then its argument prototype would still apply. */
2043 /* The GNU C library defines this for functions which it implements
2044 to always fail with ENOSYS. Some functions are actually named
2045 something starting with __ and the normal name is an alias. */
2046 #if defined (__stub_remove) || defined (__stub___remove)
2054 if { (eval echo configure
:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2056 eval "ac_cv_func_remove=yes"
2058 echo "configure: failed program was:" >&5
2059 cat conftest.
$ac_ext >&5
2061 eval "ac_cv_func_remove=no"
2066 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2067 echo "$ac_t""yes" 1>&6
2070 echo "$ac_t""no" 1>&6
2073 if test $ac_cv_func_remove = no
; then
2074 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2075 echo "configure:2076: checking for remove in -lposix" >&5
2076 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2078 echo $ac_n "(cached) $ac_c" 1>&6
2080 ac_save_LIBS
="$LIBS"
2081 LIBS
="-lposix $LIBS"
2082 cat > conftest.
$ac_ext <<EOF
2083 #line 2084 "configure"
2084 #include "confdefs.h"
2085 /* Override any gcc2 internal prototype to avoid an error. */
2086 /* We use char because int might match the return type of a gcc2
2087 builtin and then its argument prototype would still apply. */
2094 if { (eval echo configure
:2095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2096 eval "ac_cv_lib_$ac_lib_var=yes"
2098 echo "configure: failed program was:" >&5
2099 cat conftest.
$ac_ext >&5
2101 eval "ac_cv_lib_$ac_lib_var=no"
2104 LIBS
="$ac_save_LIBS"
2107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2108 echo "$ac_t""yes" 1>&6
2109 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2111 echo "$ac_t""no" 1>&6
2116 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2117 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2118 echo "configure:2119: checking for shmat" >&5
2119 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2122 cat > conftest.
$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2125 /* System header to define __stub macros and hopefully few prototypes,
2126 which can conflict with char shmat(); below. */
2128 /* Override any gcc2 internal prototype to avoid an error. */
2129 /* We use char because int might match the return type of a gcc2
2130 builtin and then its argument prototype would still apply. */
2135 /* The GNU C library defines this for functions which it implements
2136 to always fail with ENOSYS. Some functions are actually named
2137 something starting with __ and the normal name is an alias. */
2138 #if defined (__stub_shmat) || defined (__stub___shmat)
2146 if { (eval echo configure
:2147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2148 eval "ac_cv_func_shmat=yes"
2150 echo "configure: failed program was:" >&5
2151 cat conftest.
$ac_ext >&5
2153 eval "ac_cv_func_shmat=no"
2158 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2159 echo "$ac_t""yes" 1>&6
2162 echo "$ac_t""no" 1>&6
2165 if test $ac_cv_func_shmat = no
; then
2166 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2167 echo "configure:2168: checking for shmat in -lipc" >&5
2168 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 ac_save_LIBS
="$LIBS"
2174 cat > conftest.
$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2177 /* Override any gcc2 internal prototype to avoid an error. */
2178 /* We use char because int might match the return type of a gcc2
2179 builtin and then its argument prototype would still apply. */
2186 if { (eval echo configure
:2187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2188 eval "ac_cv_lib_$ac_lib_var=yes"
2190 echo "configure: failed program was:" >&5
2191 cat conftest.
$ac_ext >&5
2193 eval "ac_cv_lib_$ac_lib_var=no"
2196 LIBS
="$ac_save_LIBS"
2199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2200 echo "$ac_t""yes" 1>&6
2201 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2203 echo "$ac_t""no" 1>&6
2209 # Check for libraries that X11R6 Xt/Xaw programs need.
2210 ac_save_LDFLAGS
="$LDFLAGS"
2211 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2212 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2213 # check for ICE first), but we must link in the order -lSM -lICE or
2214 # we get undefined symbols. So assume we have SM if we have ICE.
2215 # These have to be linked with before -lX11, unlike the other
2216 # libraries we check for below, so use a different variable.
2217 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2218 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2219 echo "configure:2220: checking for IceConnectionNumber in -lICE" >&5
2220 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 ac_save_LIBS
="$LIBS"
2226 cat > conftest.
$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 /* Override any gcc2 internal prototype to avoid an error. */
2230 /* We use char because int might match the return type of a gcc2
2231 builtin and then its argument prototype would still apply. */
2232 char IceConnectionNumber();
2235 IceConnectionNumber()
2238 if { (eval echo configure
:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2240 eval "ac_cv_lib_$ac_lib_var=yes"
2242 echo "configure: failed program was:" >&5
2243 cat conftest.
$ac_ext >&5
2245 eval "ac_cv_lib_$ac_lib_var=no"
2248 LIBS
="$ac_save_LIBS"
2251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2252 echo "$ac_t""yes" 1>&6
2253 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2255 echo "$ac_t""no" 1>&6
2258 LDFLAGS
="$ac_save_LDFLAGS"
2264 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2266 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2267 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2268 echo "configure:2269: checking for $ac_hdr that defines DIR" >&5
2269 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2272 cat > conftest.
$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2275 #include <sys/types.h>
2281 if { (eval echo configure
:2282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2283 eval "ac_cv_header_dirent_$ac_safe=yes"
2285 echo "configure: failed program was:" >&5
2286 cat conftest.
$ac_ext >&5
2288 eval "ac_cv_header_dirent_$ac_safe=no"
2292 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2293 echo "$ac_t""yes" 1>&6
2294 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2295 cat >> confdefs.h
<<EOF
2296 #define $ac_tr_hdr 1
2298 ac_header_dirent
=$ac_hdr; break
2300 echo "$ac_t""no" 1>&6
2303 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2304 if test $ac_header_dirent = dirent.h
; then
2305 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2306 echo "configure:2307: checking for opendir in -ldir" >&5
2307 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2311 ac_save_LIBS
="$LIBS"
2313 cat > conftest.
$ac_ext <<EOF
2314 #line 2315 "configure"
2315 #include "confdefs.h"
2316 /* Override any gcc2 internal prototype to avoid an error. */
2317 /* We use char because int might match the return type of a gcc2
2318 builtin and then its argument prototype would still apply. */
2325 if { (eval echo configure
:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2327 eval "ac_cv_lib_$ac_lib_var=yes"
2329 echo "configure: failed program was:" >&5
2330 cat conftest.
$ac_ext >&5
2332 eval "ac_cv_lib_$ac_lib_var=no"
2335 LIBS
="$ac_save_LIBS"
2338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2342 echo "$ac_t""no" 1>&6
2346 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2347 echo "configure:2348: checking for opendir in -lx" >&5
2348 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 ac_save_LIBS
="$LIBS"
2354 cat > conftest.
$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 /* Override any gcc2 internal prototype to avoid an error. */
2358 /* We use char because int might match the return type of a gcc2
2359 builtin and then its argument prototype would still apply. */
2366 if { (eval echo configure
:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2368 eval "ac_cv_lib_$ac_lib_var=yes"
2370 echo "configure: failed program was:" >&5
2371 cat conftest.
$ac_ext >&5
2373 eval "ac_cv_lib_$ac_lib_var=no"
2376 LIBS
="$ac_save_LIBS"
2379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2383 echo "$ac_t""no" 1>&6
2388 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2389 echo "configure:2390: checking for ANSI C header files" >&5
2390 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2393 cat > conftest.
$ac_ext <<EOF
2394 #line 2395 "configure"
2395 #include "confdefs.h"
2401 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2402 { (eval echo configure
:2403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2403 ac_err
=`grep -v '^ *+' conftest.out`
2404 if test -z "$ac_err"; then
2406 ac_cv_header_stdc
=yes
2409 echo "configure: failed program was:" >&5
2410 cat conftest.
$ac_ext >&5
2412 ac_cv_header_stdc
=no
2416 if test $ac_cv_header_stdc = yes; then
2417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2418 cat > conftest.
$ac_ext <<EOF
2419 #line 2420 "configure"
2420 #include "confdefs.h"
2423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2424 egrep "memchr" >/dev
/null
2>&1; then
2428 ac_cv_header_stdc
=no
2434 if test $ac_cv_header_stdc = yes; then
2435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2436 cat > conftest.
$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2442 egrep "free" >/dev
/null
2>&1; then
2446 ac_cv_header_stdc
=no
2452 if test $ac_cv_header_stdc = yes; then
2453 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2454 if test "$cross_compiling" = yes; then
2457 cat > conftest.
$ac_ext <<EOF
2458 #line 2459 "configure"
2459 #include "confdefs.h"
2461 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2462 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2464 int main () { int i; for (i = 0; i < 256; i++)
2465 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2469 if { (eval echo configure
:2470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2473 echo "configure: failed program was:" >&5
2474 cat conftest.
$ac_ext >&5
2476 ac_cv_header_stdc
=no
2484 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2485 if test $ac_cv_header_stdc = yes; then
2486 cat >> confdefs.h
<<\EOF
2487 #define STDC_HEADERS 1
2492 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2493 echo "configure:2494: checking for sys/wait.h that is POSIX.1 compatible" >&5
2494 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2497 cat > conftest.
$ac_ext <<EOF
2498 #line 2499 "configure"
2499 #include "confdefs.h"
2500 #include <sys/types.h>
2501 #include <sys/wait.h>
2503 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2506 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2511 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2514 if { (eval echo configure
:2515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2516 ac_cv_header_sys_wait_h
=yes
2518 echo "configure: failed program was:" >&5
2519 cat conftest.
$ac_ext >&5
2521 ac_cv_header_sys_wait_h
=no
2526 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2527 if test $ac_cv_header_sys_wait_h = yes; then
2528 cat >> confdefs.h
<<\EOF
2529 #define HAVE_SYS_WAIT_H 1
2534 ac_safe
=`echo "fcntl.h" | sed 'y%./+-%__p_%'`
2535 echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6
2536 echo "configure:2537: checking for fcntl.h" >&5
2537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 cat > conftest.
$ac_ext <<EOF
2541 #line 2542 "configure"
2542 #include "confdefs.h"
2545 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2546 { (eval echo configure
:2547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2547 ac_err
=`grep -v '^ *+' conftest.out`
2548 if test -z "$ac_err"; then
2550 eval "ac_cv_header_$ac_safe=yes"
2553 echo "configure: failed program was:" >&5
2554 cat conftest.
$ac_ext >&5
2556 eval "ac_cv_header_$ac_safe=no"
2560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2561 echo "$ac_t""yes" 1>&6
2564 echo "$ac_t""no" 1>&6
2567 ac_safe
=`echo "limits.h" | sed 'y%./+-%__p_%'`
2568 echo $ac_n "checking for limits.h""... $ac_c" 1>&6
2569 echo "configure:2570: checking for limits.h" >&5
2570 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2573 cat > conftest.
$ac_ext <<EOF
2574 #line 2575 "configure"
2575 #include "confdefs.h"
2578 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2579 { (eval echo configure
:2580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2580 ac_err
=`grep -v '^ *+' conftest.out`
2581 if test -z "$ac_err"; then
2583 eval "ac_cv_header_$ac_safe=yes"
2586 echo "configure: failed program was:" >&5
2587 cat conftest.
$ac_ext >&5
2589 eval "ac_cv_header_$ac_safe=no"
2593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2594 echo "$ac_t""yes" 1>&6
2597 echo "$ac_t""no" 1>&6
2600 ac_safe
=`echo "sys/file.h" | sed 'y%./+-%__p_%'`
2601 echo $ac_n "checking for sys/file.h""... $ac_c" 1>&6
2602 echo "configure:2603: checking for sys/file.h" >&5
2603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6
2606 cat > conftest.
$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2609 #include <sys/file.h>
2611 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2612 { (eval echo configure
:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2613 ac_err
=`grep -v '^ *+' conftest.out`
2614 if test -z "$ac_err"; then
2616 eval "ac_cv_header_$ac_safe=yes"
2619 echo "configure: failed program was:" >&5
2620 cat conftest.
$ac_ext >&5
2622 eval "ac_cv_header_$ac_safe=no"
2626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2627 echo "$ac_t""yes" 1>&6
2630 echo "$ac_t""no" 1>&6
2633 ac_safe
=`echo "sys/time.h" | sed 'y%./+-%__p_%'`
2634 echo $ac_n "checking for sys/time.h""... $ac_c" 1>&6
2635 echo "configure:2636: checking for sys/time.h" >&5
2636 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2639 cat > conftest.
$ac_ext <<EOF
2640 #line 2641 "configure"
2641 #include "confdefs.h"
2642 #include <sys/time.h>
2644 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2645 { (eval echo configure
:2646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2646 ac_err
=`grep -v '^ *+' conftest.out`
2647 if test -z "$ac_err"; then
2649 eval "ac_cv_header_$ac_safe=yes"
2652 echo "configure: failed program was:" >&5
2653 cat conftest.
$ac_ext >&5
2655 eval "ac_cv_header_$ac_safe=no"
2659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2660 echo "$ac_t""yes" 1>&6
2663 echo "$ac_t""no" 1>&6
2666 ac_safe
=`echo "unistd.h" | sed 'y%./+-%__p_%'`
2667 echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
2668 echo "configure:2669: checking for unistd.h" >&5
2669 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2672 cat > conftest.
$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2677 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2678 { (eval echo configure
:2679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2679 ac_err
=`grep -v '^ *+' conftest.out`
2680 if test -z "$ac_err"; then
2682 eval "ac_cv_header_$ac_safe=yes"
2685 echo "configure: failed program was:" >&5
2686 cat conftest.
$ac_ext >&5
2688 eval "ac_cv_header_$ac_safe=no"
2692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2693 echo "$ac_t""yes" 1>&6
2696 echo "$ac_t""no" 1>&6
2699 ac_safe
=`echo "linux/joystick.h" | sed 'y%./+-%__p_%'`
2700 echo $ac_n "checking for linux/joystick.h""... $ac_c" 1>&6
2701 echo "configure:2702: checking for linux/joystick.h" >&5
2702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2703 echo $ac_n "(cached) $ac_c" 1>&6
2705 cat > conftest.
$ac_ext <<EOF
2706 #line 2707 "configure"
2707 #include "confdefs.h"
2708 #include <linux/joystick.h>
2710 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2711 { (eval echo configure
:2712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2712 ac_err
=`grep -v '^ *+' conftest.out`
2713 if test -z "$ac_err"; then
2715 eval "ac_cv_header_$ac_safe=yes"
2718 echo "configure: failed program was:" >&5
2719 cat conftest.
$ac_ext >&5
2721 eval "ac_cv_header_$ac_safe=no"
2725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2726 echo "$ac_t""yes" 1>&6
2729 echo "$ac_t""no" 1>&6
2733 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
2734 GTK_JOYSTICK
="gtk/joystick.cpp"
2738 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2739 echo "configure:2740: checking for uid_t in sys/types.h" >&5
2740 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+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"
2746 #include <sys/types.h>
2748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2749 egrep "uid_t" >/dev
/null
2>&1; then
2751 ac_cv_type_uid_t
=yes
2760 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2761 if test $ac_cv_type_uid_t = no
; then
2762 cat >> confdefs.h
<<\EOF
2766 cat >> confdefs.h
<<\EOF
2772 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2773 echo "configure:2774: checking type of array argument to getgroups" >&5
2774 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2777 if test "$cross_compiling" = yes; then
2778 ac_cv_type_getgroups
=cross
2780 cat > conftest.
$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2784 /* Thanks to Mike Rendell for this test. */
2785 #include <sys/types.h>
2788 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2793 union { gid_t gval; long lval; } val;
2796 for (i = 0; i < NGID; i++)
2797 gidset[i] = val.gval;
2798 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2800 /* Exit non-zero if getgroups seems to require an array of ints. This
2801 happens when gid_t is short but getgroups modifies an array of ints. */
2802 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2806 if { (eval echo configure
:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2808 ac_cv_type_getgroups
=gid_t
2810 echo "configure: failed program was:" >&5
2811 cat conftest.
$ac_ext >&5
2813 ac_cv_type_getgroups
=int
2818 if test $ac_cv_type_getgroups = cross
; then
2819 cat > conftest.
$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2825 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2827 ac_cv_type_getgroups
=gid_t
2830 ac_cv_type_getgroups
=int
2837 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2838 cat >> confdefs.h
<<EOF
2839 #define GETGROUPS_T $ac_cv_type_getgroups
2843 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2844 echo "configure:2845: checking for mode_t" >&5
2845 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2848 cat > conftest.
$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2851 #include <sys/types.h>
2857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2858 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2860 ac_cv_type_mode_t
=yes
2863 ac_cv_type_mode_t
=no
2868 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2869 if test $ac_cv_type_mode_t = no
; then
2870 cat >> confdefs.h
<<\EOF
2876 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2877 echo "configure:2878: checking for off_t" >&5
2878 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 cat > conftest.
$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2884 #include <sys/types.h>
2890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2891 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2893 ac_cv_type_off_t
=yes
2901 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2902 if test $ac_cv_type_off_t = no
; then
2903 cat >> confdefs.h
<<\EOF
2909 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2910 echo "configure:2911: checking for pid_t" >&5
2911 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 cat > conftest.
$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2917 #include <sys/types.h>
2923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2924 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2926 ac_cv_type_pid_t
=yes
2934 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2935 if test $ac_cv_type_pid_t = no
; then
2936 cat >> confdefs.h
<<\EOF
2942 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2943 echo "configure:2944: checking return type of signal handlers" >&5
2944 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 cat > conftest.
$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 #include <sys/types.h>
2956 extern "C" void (*signal (int, void (*)(int)))(int);
2958 void (*signal ()) ();
2965 if { (eval echo configure
:2966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2967 ac_cv_type_signal
=void
2969 echo "configure: failed program was:" >&5
2970 cat conftest.
$ac_ext >&5
2972 ac_cv_type_signal
=int
2977 echo "$ac_t""$ac_cv_type_signal" 1>&6
2978 cat >> confdefs.h
<<EOF
2979 #define RETSIGTYPE $ac_cv_type_signal
2983 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2984 echo "configure:2985: checking for size_t" >&5
2985 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2988 cat > conftest.
$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2991 #include <sys/types.h>
2997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2998 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3000 ac_cv_type_size_t
=yes
3003 ac_cv_type_size_t
=no
3008 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3009 if test $ac_cv_type_size_t = no
; then
3010 cat >> confdefs.h
<<\EOF
3011 #define size_t unsigned
3016 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3017 echo "configure:3018: checking for uid_t in sys/types.h" >&5
3018 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3021 cat > conftest.
$ac_ext <<EOF
3022 #line 3023 "configure"
3023 #include "confdefs.h"
3024 #include <sys/types.h>
3026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3027 egrep "uid_t" >/dev
/null
2>&1; then
3029 ac_cv_type_uid_t
=yes
3038 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3039 if test $ac_cv_type_uid_t = no
; then
3040 cat >> confdefs.h
<<\EOF
3044 cat >> confdefs.h
<<\EOF
3052 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3053 echo "configure:3054: checking whether stat file-mode macros are broken" >&5
3054 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 cat > conftest.
$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060 #include <sys/types.h>
3061 #include <sys/stat.h>
3063 #if defined(S_ISBLK) && defined(S_IFDIR)
3064 # if S_ISBLK (S_IFDIR)
3069 #if defined(S_ISBLK) && defined(S_IFCHR)
3070 # if S_ISBLK (S_IFCHR)
3075 #if defined(S_ISLNK) && defined(S_IFREG)
3076 # if S_ISLNK (S_IFREG)
3081 #if defined(S_ISSOCK) && defined(S_IFREG)
3082 # if S_ISSOCK (S_IFREG)
3088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3089 egrep "You lose" >/dev
/null
2>&1; then
3091 ac_cv_header_stat_broken
=yes
3094 ac_cv_header_stat_broken
=no
3100 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3101 if test $ac_cv_header_stat_broken = yes; then
3102 cat >> confdefs.h
<<\EOF
3103 #define STAT_MACROS_BROKEN 1
3108 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3109 echo "configure:3110: checking whether time.h and sys/time.h may both be included" >&5
3110 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 cat > conftest.
$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116 #include <sys/types.h>
3117 #include <sys/time.h>
3123 if { (eval echo configure
:3124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3125 ac_cv_header_time
=yes
3127 echo "configure: failed program was:" >&5
3128 cat conftest.
$ac_ext >&5
3130 ac_cv_header_time
=no
3135 echo "$ac_t""$ac_cv_header_time" 1>&6
3136 if test $ac_cv_header_time = yes; then
3137 cat >> confdefs.h
<<\EOF
3138 #define TIME_WITH_SYS_TIME 1
3143 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3144 echo "configure:3145: checking for st_blksize in struct stat" >&5
3145 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3148 cat > conftest.
$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3151 #include <sys/types.h>
3152 #include <sys/stat.h>
3154 struct stat s; s.st_blksize;
3157 if { (eval echo configure
:3158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3159 ac_cv_struct_st_blksize
=yes
3161 echo "configure: failed program was:" >&5
3162 cat conftest.
$ac_ext >&5
3164 ac_cv_struct_st_blksize
=no
3169 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3170 if test $ac_cv_struct_st_blksize = yes; then
3171 cat >> confdefs.h
<<\EOF
3172 #define HAVE_ST_BLKSIZE 1
3177 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3178 echo "configure:3179: checking for st_blocks in struct stat" >&5
3179 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3182 cat > conftest.
$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3185 #include <sys/types.h>
3186 #include <sys/stat.h>
3188 struct stat s; s.st_blocks;
3191 if { (eval echo configure
:3192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3193 ac_cv_struct_st_blocks
=yes
3195 echo "configure: failed program was:" >&5
3196 cat conftest.
$ac_ext >&5
3198 ac_cv_struct_st_blocks
=no
3203 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3204 if test $ac_cv_struct_st_blocks = yes; then
3205 cat >> confdefs.h
<<\EOF
3206 #define HAVE_ST_BLOCKS 1
3210 LIBOBJS
="$LIBOBJS fileblocks.o"
3213 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3214 echo "configure:3215: checking for st_rdev in struct stat" >&5
3215 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 cat > conftest.
$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3221 #include <sys/types.h>
3222 #include <sys/stat.h>
3224 struct stat s; s.st_rdev;
3227 if { (eval echo configure
:3228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3229 ac_cv_struct_st_rdev
=yes
3231 echo "configure: failed program was:" >&5
3232 cat conftest.
$ac_ext >&5
3234 ac_cv_struct_st_rdev
=no
3239 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3240 if test $ac_cv_struct_st_rdev = yes; then
3241 cat >> confdefs.h
<<\EOF
3242 #define HAVE_ST_RDEV 1
3247 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3248 echo "configure:3249: checking whether struct tm is in sys/time.h or time.h" >&5
3249 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3250 echo $ac_n "(cached) $ac_c" 1>&6
3252 cat > conftest.
$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 #include <sys/types.h>
3258 struct tm *tp; tp->tm_sec;
3261 if { (eval echo configure
:3262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3263 ac_cv_struct_tm
=time.h
3265 echo "configure: failed program was:" >&5
3266 cat conftest.
$ac_ext >&5
3268 ac_cv_struct_tm
=sys
/time.h
3273 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3274 if test $ac_cv_struct_tm = sys
/time.h
; then
3275 cat >> confdefs.h
<<\EOF
3276 #define TM_IN_SYS_TIME 1
3281 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3282 echo "configure:3283: checking for tm_zone in struct tm" >&5
3283 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3286 cat > conftest.
$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 #include <sys/types.h>
3290 #include <$ac_cv_struct_tm>
3292 struct tm tm; tm.tm_zone;
3295 if { (eval echo configure
:3296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3297 ac_cv_struct_tm_zone
=yes
3299 echo "configure: failed program was:" >&5
3300 cat conftest.
$ac_ext >&5
3302 ac_cv_struct_tm_zone
=no
3307 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3308 if test "$ac_cv_struct_tm_zone" = yes; then
3309 cat >> confdefs.h
<<\EOF
3310 #define HAVE_TM_ZONE 1
3314 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3315 echo "configure:3316: checking for tzname" >&5
3316 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 cat > conftest.
$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3323 #ifndef tzname /* For SGI. */
3324 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3330 if { (eval echo configure
:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3332 ac_cv_var_tzname
=yes
3334 echo "configure: failed program was:" >&5
3335 cat conftest.
$ac_ext >&5
3342 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3343 if test $ac_cv_var_tzname = yes; then
3344 cat >> confdefs.h
<<\EOF
3345 #define HAVE_TZNAME 1
3353 echo $ac_n "checking for working const""... $ac_c" 1>&6
3354 echo "configure:3355: checking for working const" >&5
3355 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3358 cat > conftest.
$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3364 /* Ultrix mips cc rejects this. */
3365 typedef int charset[2]; const charset x;
3366 /* SunOS 4.1.1 cc rejects this. */
3367 char const *const *ccp;
3369 /* NEC SVR4.0.2 mips cc rejects this. */
3370 struct point {int x, y;};
3371 static struct point const zero = {0,0};
3372 /* AIX XL C 1.02.0.0 rejects this.
3373 It does not let you subtract one const X* pointer from another in an arm
3374 of an if-expression whose if-part is not a constant expression */
3375 const char *g = "string";
3376 ccp = &g + (g ? g-g : 0);
3377 /* HPUX 7.0 cc rejects these. */
3380 ccp = (char const *const *) p;
3381 { /* SCO 3.2v4 cc rejects this. */
3383 char const *s = 0 ? (char *) 0 : (char const *) 0;
3387 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3389 const int *foo = &x[0];
3392 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3393 typedef const int *iptr;
3397 { /* AIX XL C 1.02.0.0 rejects this saying
3398 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3399 struct s { int j; const int *ap[3]; };
3400 struct s *b; b->j = 5;
3402 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3408 if { (eval echo configure
:3409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3412 echo "configure: failed program was:" >&5
3413 cat conftest.
$ac_ext >&5
3420 echo "$ac_t""$ac_cv_c_const" 1>&6
3421 if test $ac_cv_c_const = no
; then
3422 cat >> confdefs.h
<<\EOF
3428 echo $ac_n "checking for inline""... $ac_c" 1>&6
3429 echo "configure:3430: checking for inline" >&5
3430 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3434 for ac_kw
in inline __inline__ __inline
; do
3435 cat > conftest.
$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3443 if { (eval echo configure
:3444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3445 ac_cv_c_inline
=$ac_kw; break
3447 echo "configure: failed program was:" >&5
3448 cat conftest.
$ac_ext >&5
3455 echo "$ac_t""$ac_cv_c_inline" 1>&6
3456 case "$ac_cv_c_inline" in
3458 no
) cat >> confdefs.h
<<\EOF
3462 *) cat >> confdefs.h
<<EOF
3463 #define inline $ac_cv_c_inline
3468 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3469 echo "configure:3470: checking whether char is unsigned" >&5
3470 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 if test "$GCC" = yes; then
3474 # GCC predefines this symbol on systems where it applies.
3475 cat > conftest.
$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 #ifdef __CHAR_UNSIGNED__
3483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3484 egrep "yes" >/dev
/null
2>&1; then
3486 ac_cv_c_char_unsigned
=yes
3489 ac_cv_c_char_unsigned
=no
3494 if test "$cross_compiling" = yes; then
3495 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3497 cat > conftest.
$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3501 #if !defined(__STDC__) || __STDC__ != 1
3505 volatile char c = 255; exit(c < 0);
3508 if { (eval echo configure
:3509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3510 ac_cv_c_char_unsigned
=yes
3512 echo "configure: failed program was:" >&5
3513 cat conftest.
$ac_ext >&5
3515 ac_cv_c_char_unsigned
=no
3523 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3524 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3525 cat >> confdefs.h
<<\EOF
3526 #define __CHAR_UNSIGNED__ 1
3531 echo $ac_n "checking for long double""... $ac_c" 1>&6
3532 echo "configure:3533: checking for long double" >&5
3533 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3536 if test "$GCC" = yes; then
3537 ac_cv_c_long_double
=yes
3539 if test "$cross_compiling" = yes; then
3540 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3542 cat > conftest.
$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3546 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
3547 long double foo = 0.0;
3548 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3549 exit(sizeof(long double) < sizeof(double)); }
3551 if { (eval echo configure
:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3553 ac_cv_c_long_double
=yes
3555 echo "configure: failed program was:" >&5
3556 cat conftest.
$ac_ext >&5
3558 ac_cv_c_long_double
=no
3566 echo "$ac_t""$ac_cv_c_long_double" 1>&6
3567 if test $ac_cv_c_long_double = yes; then
3568 cat >> confdefs.h
<<\EOF
3569 #define HAVE_LONG_DOUBLE 1
3575 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3576 echo "configure:3577: checking whether byte ordering is bigendian" >&5
3577 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3580 ac_cv_c_bigendian
=unknown
3581 # See if sys/param.h defines the BYTE_ORDER macro.
3582 cat > conftest.
$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 #include <sys/types.h>
3586 #include <sys/param.h>
3589 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3594 if { (eval echo configure
:3595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3596 # It does; now see whether it defined to BIG_ENDIAN or not.
3597 cat > conftest.
$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <sys/types.h>
3601 #include <sys/param.h>
3604 #if BYTE_ORDER != BIG_ENDIAN
3609 if { (eval echo configure
:3610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3611 ac_cv_c_bigendian
=yes
3613 echo "configure: failed program was:" >&5
3614 cat conftest.
$ac_ext >&5
3616 ac_cv_c_bigendian
=no
3620 echo "configure: failed program was:" >&5
3621 cat conftest.
$ac_ext >&5
3624 if test $ac_cv_c_bigendian = unknown
; then
3625 if test "$cross_compiling" = yes; then
3626 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3628 cat > conftest.
$ac_ext <<EOF
3629 #line 3630 "configure"
3630 #include "confdefs.h"
3632 /* Are we little or big endian? From Harbison&Steele. */
3636 char c[sizeof (long)];
3639 exit (u.c[sizeof (long) - 1] == 1);
3642 if { (eval echo configure
:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3644 ac_cv_c_bigendian
=no
3646 echo "configure: failed program was:" >&5
3647 cat conftest.
$ac_ext >&5
3649 ac_cv_c_bigendian
=yes
3657 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3658 if test $ac_cv_c_bigendian = yes; then
3659 cat >> confdefs.h
<<\EOF
3660 #define WORDS_BIGENDIAN 1
3666 echo $ac_n "checking size of int *""... $ac_c" 1>&6
3667 echo "configure:3668: checking size of int *" >&5
3668 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3671 if test "$cross_compiling" = yes; then
3672 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3674 cat > conftest.
$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3680 FILE *f=fopen("conftestval", "w");
3682 fprintf(f, "%d\n", sizeof(int *));
3686 if { (eval echo configure
:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3688 ac_cv_sizeof_int_p
=`cat conftestval`
3690 echo "configure: failed program was:" >&5
3691 cat conftest.
$ac_ext >&5
3693 ac_cv_sizeof_int_p
=0
3699 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
3700 cat >> confdefs.h
<<EOF
3701 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
3705 echo $ac_n "checking size of int""... $ac_c" 1>&6
3706 echo "configure:3707: checking size of int" >&5
3707 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3708 echo $ac_n "(cached) $ac_c" 1>&6
3710 if test "$cross_compiling" = yes; then
3711 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3713 cat > conftest.
$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3719 FILE *f=fopen("conftestval", "w");
3721 fprintf(f, "%d\n", sizeof(int));
3725 if { (eval echo configure
:3726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3727 ac_cv_sizeof_int
=`cat conftestval`
3729 echo "configure: failed program was:" >&5
3730 cat conftest.
$ac_ext >&5
3738 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3739 cat >> confdefs.h
<<EOF
3740 #define SIZEOF_INT $ac_cv_sizeof_int
3744 echo $ac_n "checking size of long""... $ac_c" 1>&6
3745 echo "configure:3746: checking size of long" >&5
3746 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3749 if test "$cross_compiling" = yes; then
3750 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3752 cat > conftest.
$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3758 FILE *f=fopen("conftestval", "w");
3760 fprintf(f, "%d\n", sizeof(long));
3764 if { (eval echo configure
:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3766 ac_cv_sizeof_long
=`cat conftestval`
3768 echo "configure: failed program was:" >&5
3769 cat conftest.
$ac_ext >&5
3777 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3778 cat >> confdefs.h
<<EOF
3779 #define SIZEOF_LONG $ac_cv_sizeof_long
3787 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3788 echo "configure:3789: checking for long file names" >&5
3789 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3792 ac_cv_sys_long_file_names
=yes
3793 # Test for long file names in all the places we know might matter:
3794 # . the current directory, where building will happen
3795 # $prefix/lib where we will be installing things
3796 # $exec_prefix/lib likewise
3797 # eval it to expand exec_prefix.
3798 # $TMPDIR if set, where it might want to write temporary files
3799 # if $TMPDIR is not set:
3800 # /tmp where it might want to write temporary files
3803 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3804 ac_tmpdirs
="$TMPDIR"
3806 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
3808 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3809 test -d $ac_dir || continue
3810 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3811 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
3812 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
3813 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
3814 if test ! -f $ac_dir/conftest9012345
|| test "$val" != 1; then
3815 ac_cv_sys_long_file_names
=no
3816 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
3819 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
3823 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
3824 if test $ac_cv_sys_long_file_names = yes; then
3825 cat >> confdefs.h
<<\EOF
3826 #define HAVE_LONG_FILE_NAMES 1
3834 for ac_prog
in 'bison -y' byacc
3836 # Extract the first word of "$ac_prog", so it can be a program name with args.
3837 set dummy
$ac_prog; ac_word
=$2
3838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3839 echo "configure:3840: checking for $ac_word" >&5
3840 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3841 echo $ac_n "(cached) $ac_c" 1>&6
3843 if test -n "$YACC"; then
3844 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3846 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3847 for ac_dir
in $PATH; do
3848 test -z "$ac_dir" && ac_dir
=.
3849 if test -f $ac_dir/$ac_word; then
3850 ac_cv_prog_YACC
="$ac_prog"
3857 YACC
="$ac_cv_prog_YACC"
3858 if test -n "$YACC"; then
3859 echo "$ac_t""$YACC" 1>&6
3861 echo "$ac_t""no" 1>&6
3864 test -n "$YACC" && break
3866 test -n "$YACC" || YACC
="yacc"
3869 # Extract the first word of "flex", so it can be a program name with args.
3870 set dummy flex
; ac_word
=$2
3871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3872 echo "configure:3873: checking for $ac_word" >&5
3873 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3876 if test -n "$LEX"; then
3877 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3879 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3880 for ac_dir
in $PATH; do
3881 test -z "$ac_dir" && ac_dir
=.
3882 if test -f $ac_dir/$ac_word; then
3883 ac_cv_prog_LEX
="flex"
3888 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
3891 LEX
="$ac_cv_prog_LEX"
3892 if test -n "$LEX"; then
3893 echo "$ac_t""$LEX" 1>&6
3895 echo "$ac_t""no" 1>&6
3898 if test -z "$LEXLIB"
3904 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3905 echo "configure:3906: checking for yywrap in -l$ac_lib" >&5
3906 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3910 ac_save_LIBS
="$LIBS"
3911 LIBS
="-l$ac_lib $LIBS"
3912 cat > conftest.
$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3915 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3924 if { (eval echo configure
:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3926 eval "ac_cv_lib_$ac_lib_var=yes"
3928 echo "configure: failed program was:" >&5
3929 cat conftest.
$ac_ext >&5
3931 eval "ac_cv_lib_$ac_lib_var=no"
3934 LIBS
="$ac_save_LIBS"
3937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3938 echo "$ac_t""yes" 1>&6
3941 echo "$ac_t""no" 1>&6
3946 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3947 echo "configure:3948: checking lex output file root" >&5
3948 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3951 # The minimal lex program is just a single line: %%. But some broken lexes
3952 # (Solaris, I think it was) want two %% lines, so accommodate them.
3955 if test -f lex.yy.c
; then
3956 ac_cv_prog_lex_root
=lex.yy
3957 elif test -f lexyy.c
; then
3958 ac_cv_prog_lex_root
=lexyy
3960 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3964 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3965 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3967 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3968 echo "configure:3969: checking whether yytext is a pointer" >&5
3969 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3972 # POSIX says lex can declare yytext either as a pointer or an array; the
3973 # default is implementation-dependent. Figure out which it is, since
3974 # not all implementations provide the %pointer and %array declarations.
3975 ac_cv_prog_lex_yytext_pointer
=no
3976 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3977 ac_save_LIBS
="$LIBS"
3978 LIBS
="$LIBS $LEXLIB"
3979 cat > conftest.
$ac_ext <<EOF
3980 #line 3981 "configure"
3981 #include "confdefs.h"
3982 `cat $LEX_OUTPUT_ROOT.c`
3987 if { (eval echo configure
:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3989 ac_cv_prog_lex_yytext_pointer
=yes
3991 echo "configure: failed program was:" >&5
3992 cat conftest.
$ac_ext >&5
3995 LIBS
="$ac_save_LIBS"
3996 rm -f "${LEX_OUTPUT_ROOT}.c"
4000 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4001 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4002 cat >> confdefs.h
<<\EOF
4003 #define YYTEXT_POINTER 1
4010 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
4011 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
4015 # Make sure we can run config.sub.
4016 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
4017 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
4020 echo $ac_n "checking host system type""... $ac_c" 1>&6
4021 echo "configure:4022: checking host system type" >&5
4024 case "$host_alias" in
4028 if host_alias
=`$ac_config_guess`; then :
4029 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
4031 *) host_alias
=$nonopt ;;
4035 host=`$ac_config_sub $host_alias`
4036 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4037 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4038 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4039 echo "$ac_t""$host" 1>&6
4042 configuration
=$host_alias
4065 case "${canonical}" in
4068 cat >> confdefs.h
<<\EOF
4075 cat >> confdefs.h
<<\EOF
4080 *-*-irix5* | *-*-irix6* )
4083 cat >> confdefs.h
<<\EOF
4087 cat >> confdefs.h
<<\EOF
4096 cat >> confdefs.h
<<\EOF
4100 cat >> confdefs.h
<<\EOF
4101 #define __SOLARIS__ 1
4104 cat >> confdefs.h
<<\EOF
4113 cat >> confdefs.h
<<\EOF
4117 cat >> confdefs.h
<<\EOF
4121 cat >> confdefs.h
<<\EOF
4126 *-*-freebsd* | *-*-netbsd*)
4129 cat >> confdefs.h
<<\EOF
4130 #define __FREEBSD__ 1
4133 cat >> confdefs.h
<<\EOF
4141 cat >> confdefs.h
<<\EOF
4145 cat >> confdefs.h
<<\EOF
4153 cat >> confdefs.h
<<\EOF
4157 cat >> confdefs.h
<<\EOF
4165 cat >> confdefs.h
<<\EOF
4169 cat >> confdefs.h
<<\EOF
4178 cat >> confdefs.h
<<\EOF
4182 cat >> confdefs.h
<<\EOF
4186 cat >> confdefs.h
<<\EOF
4192 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
4197 rm -f ${OSTYPE}.system.cache.tmp
4198 touch ${OSTYPE}.system.cache.tmp
4199 touch ${OSTYPE}.system.cache
4206 DEFAULT_USE_SHARED
=1
4207 DEFAULT_USE_OPTIMISE
=1
4208 DEFAULT_USE_PROFILE
=0
4209 DEFAULT_USE_DEBUG_FLAG
=0
4210 DEFAULT_USE_DEBUG_INFO
=0
4211 DEFAULT_USE_MEM_TRACING
=0
4212 DEFAULT_USE_DMALLOC
=0
4213 DEFAULT_USE_APPLE_IEEE
=1
4214 DEFAULT_USE_IOSTREAMH
=1
4217 DEFAULT_USE_GDK_IMLIB
=1
4218 DEFAULT_USE_LIBPNG
=1
4222 DEFAULT_USE_SCROLLBAR
=1
4223 DEFAULT_USE_LISTCTRL
=1
4224 DEFAULT_USE_TREECTRL
=1
4226 DEFAULT_USE_TAB_DIALOG
=1
4227 DEFAULT_USE_NOTEBOOK
=1
4229 DEFAULT_USE_TIMEDATE
=1
4230 DEFAULT_USE_FRACTION
=1
4233 DEFAULT_USE_CONFIG
=1
4234 DEFAULT_USE_STREAMS
=1
4235 DEFAULT_USE_SERIAL
=1
4237 DEFAULT_USE_TEXTFILE
=1
4239 DEFAULT_USE_AFM_FOR_POSTSCRIPT
=1
4240 DEFAULT_WX_NORMALIZED_PS_FONTS
=1
4241 DEFAULT_USE_POSTSCRIPT
=1
4244 DEFAULT_USE_RESOURCES
=1
4245 DEFAULT_USE_CONSTRAINTS
=1
4246 DEFAULT_USE_CLIPBOARD
=0
4249 DEFAULT_USE_MDI_ARCHITECTURE
=1
4250 DEFAULT_USE_DOC_VIEW_ARCHITECTURE
=1
4251 DEFAULT_USE_PRINTING_ARCHITECTURE
=1
4253 DEFAULT_USE_PROLOGIO
=1
4254 DEFAULT_USE_WX_RESOURCES
=1
4257 DEFAULT_USE_OPENGL
=0
4258 DEFAULT_USE_METAFILE
=0
4259 DEFAULT_USE_WXGRAPH
=0
4260 DEFAULT_USE_WXTREE
=0
4265 echo $ac_n "checking "for gtk
"""... $ac_c" 1>&6
4266 echo "configure:4267: checking "for gtk
"" >&5
4267 # Check whether --with-gtk or --without-gtk was given.
4268 if test "${with_gtk+set}" = set; then
4270 if test "x$with_gtk" = xyes
; then
4271 ac_cv_use_gtk
='USE_GTK="1"'
4273 ac_cv_use_gtk
='USE_GTK="0"'
4277 LINE
=`grep "USE_GTK" ${OSTYPE}.system.cache`
4278 if test "x$LINE" != x
; then
4279 eval "DEFAULT_$LINE"
4281 ac_cv_use_gtk
='USE_GTK='$DEFAULT_USE_GTK
4285 eval "$ac_cv_use_gtk"
4286 echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp
4287 if test "$USE_GTK" = 1; then
4288 echo "$ac_t""yes" 1>&6
4290 echo "$ac_t""no" 1>&6
4295 echo $ac_n "checking "for qt
"""... $ac_c" 1>&6
4296 echo "configure:4297: checking "for qt
"" >&5
4297 # Check whether --with-qt or --without-qt was given.
4298 if test "${with_qt+set}" = set; then
4300 if test "x$with_qt" = xyes
; then
4301 ac_cv_use_qt
='USE_QT="1"'
4303 ac_cv_use_qt
='USE_QT="0"'
4307 LINE
=`grep "USE_QT" ${OSTYPE}.system.cache`
4308 if test "x$LINE" != x
; then
4309 eval "DEFAULT_$LINE"
4311 ac_cv_use_qt
='USE_QT='$DEFAULT_USE_QT
4315 eval "$ac_cv_use_qt"
4316 echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp
4317 if test "$USE_QT" = 1; then
4318 echo "$ac_t""yes" 1>&6
4320 echo "$ac_t""no" 1>&6
4325 echo $ac_n "checking "for motif
"""... $ac_c" 1>&6
4326 echo "configure:4327: checking "for motif
"" >&5
4327 # Check whether --with-motif or --without-motif was given.
4328 if test "${with_motif+set}" = set; then
4329 withval
="$with_motif"
4330 if test "x$with_motif" = xyes
; then
4331 ac_cv_use_motif
='USE_MOTIF="1"'
4333 ac_cv_use_motif
='USE_MOTIF="0"'
4337 LINE
=`grep "USE_MOTIF" ${OSTYPE}.system.cache`
4338 if test "x$LINE" != x
; then
4339 eval "DEFAULT_$LINE"
4341 ac_cv_use_motif
='USE_MOTIF='$DEFAULT_USE_MOTIF
4345 eval "$ac_cv_use_motif"
4346 echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp
4347 if test "$USE_MOTIF" = 1; then
4348 echo "$ac_t""yes" 1>&6
4350 echo "$ac_t""no" 1>&6
4356 echo $ac_n "checking "for shared
"""... $ac_c" 1>&6
4357 echo "configure:4358: checking "for shared
"" >&5
4358 # Check whether --with-shared or --without-shared was given.
4359 if test "${with_shared+set}" = set; then
4360 withval
="$with_shared"
4361 if test "x$with_shared" = xyes
; then
4362 ac_cv_use_shared
='USE_SHARED="1"'
4364 ac_cv_use_shared
='USE_SHARED="0"'
4368 LINE
=`grep "USE_SHARED" ${OSTYPE}.system.cache`
4369 if test "x$LINE" != x
; then
4370 eval "DEFAULT_$LINE"
4372 ac_cv_use_shared
='USE_SHARED='$DEFAULT_USE_SHARED
4376 eval "$ac_cv_use_shared"
4377 echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
4378 if test "$USE_SHARED" = 1; then
4379 echo "$ac_t""yes" 1>&6
4381 echo "$ac_t""no" 1>&6
4386 echo $ac_n "checking "for optimise
"""... $ac_c" 1>&6
4387 echo "configure:4388: checking "for optimise
"" >&5
4388 # Check whether --with-optimise or --without-optimise was given.
4389 if test "${with_optimise+set}" = set; then
4390 withval
="$with_optimise"
4391 if test "x$with_optimise" = xyes
; then
4392 ac_cv_use_optimise
='USE_OPTIMISE="1"'
4394 ac_cv_use_optimise
='USE_OPTIMISE="0"'
4398 LINE
=`grep "USE_OPTIMISE" ${OSTYPE}.system.cache`
4399 if test "x$LINE" != x
; then
4400 eval "DEFAULT_$LINE"
4402 ac_cv_use_optimise
='USE_OPTIMISE='$DEFAULT_USE_OPTIMISE
4406 eval "$ac_cv_use_optimise"
4407 echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
4408 if test "$USE_OPTIMISE" = 1; then
4409 echo "$ac_t""yes" 1>&6
4411 echo "$ac_t""no" 1>&6
4416 echo $ac_n "checking "for debug_flag
"""... $ac_c" 1>&6
4417 echo "configure:4418: checking "for debug_flag
"" >&5
4418 # Check whether --with-debug_flag or --without-debug_flag was given.
4419 if test "${with_debug_flag+set}" = set; then
4420 withval
="$with_debug_flag"
4421 if test "x$with_debug_flag" = xyes
; then
4422 ac_cv_use_debug_flag
='USE_DEBUG_FLAG="1"'
4424 ac_cv_use_debug_flag
='USE_DEBUG_FLAG="0"'
4428 LINE
=`grep "USE_DEBUG_FLAG" ${OSTYPE}.system.cache`
4429 if test "x$LINE" != x
; then
4430 eval "DEFAULT_$LINE"
4432 ac_cv_use_debug_flag
='USE_DEBUG_FLAG='$DEFAULT_USE_DEBUG_FLAG
4436 eval "$ac_cv_use_debug_flag"
4437 echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
4438 if test "$USE_DEBUG_FLAG" = 1; then
4439 echo "$ac_t""yes" 1>&6
4441 echo "$ac_t""no" 1>&6
4446 echo $ac_n "checking "for debug_info
"""... $ac_c" 1>&6
4447 echo "configure:4448: checking "for debug_info
"" >&5
4448 # Check whether --with-debug_info or --without-debug_info was given.
4449 if test "${with_debug_info+set}" = set; then
4450 withval
="$with_debug_info"
4451 if test "x$with_debug_info" = xyes
; then
4452 ac_cv_use_debug_info
='USE_DEBUG_INFO="1"'
4454 ac_cv_use_debug_info
='USE_DEBUG_INFO="0"'
4458 LINE
=`grep "USE_DEBUG_INFO" ${OSTYPE}.system.cache`
4459 if test "x$LINE" != x
; then
4460 eval "DEFAULT_$LINE"
4462 ac_cv_use_debug_info
='USE_DEBUG_INFO='$DEFAULT_USE_DEBUG_INFO
4466 eval "$ac_cv_use_debug_info"
4467 echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
4468 if test "$USE_DEBUG_INFO" = 1; then
4469 echo "$ac_t""yes" 1>&6
4471 echo "$ac_t""no" 1>&6
4476 echo $ac_n "checking "for mem_tracing
"""... $ac_c" 1>&6
4477 echo "configure:4478: checking "for mem_tracing
"" >&5
4478 # Check whether --with-mem_tracing or --without-mem_tracing was given.
4479 if test "${with_mem_tracing+set}" = set; then
4480 withval
="$with_mem_tracing"
4481 if test "x$with_mem_tracing" = xyes
; then
4482 ac_cv_use_mem_tracing
='USE_MEM_TRACING="1"'
4484 ac_cv_use_mem_tracing
='USE_MEM_TRACING="0"'
4488 LINE
=`grep "USE_MEM_TRACING" ${OSTYPE}.system.cache`
4489 if test "x$LINE" != x
; then
4490 eval "DEFAULT_$LINE"
4492 ac_cv_use_mem_tracing
='USE_MEM_TRACING='$DEFAULT_USE_MEM_TRACING
4496 eval "$ac_cv_use_mem_tracing"
4497 echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
4498 if test "$USE_MEM_TRACING" = 1; then
4499 echo "$ac_t""yes" 1>&6
4501 echo "$ac_t""no" 1>&6
4506 echo $ac_n "checking "for dmalloc
"""... $ac_c" 1>&6
4507 echo "configure:4508: checking "for dmalloc
"" >&5
4508 # Check whether --with-dmalloc or --without-dmalloc was given.
4509 if test "${with_dmalloc+set}" = set; then
4510 withval
="$with_dmalloc"
4511 if test "x$with_dmalloc" = xyes
; then
4512 ac_cv_use_dmalloc
='USE_DMALLOC="1"'
4514 ac_cv_use_dmalloc
='USE_DMALLOC="0"'
4518 LINE
=`grep "USE_DMALLOC" ${OSTYPE}.system.cache`
4519 if test "x$LINE" != x
; then
4520 eval "DEFAULT_$LINE"
4522 ac_cv_use_dmalloc
='USE_DMALLOC='$DEFAULT_USE_DMALLOC
4526 eval "$ac_cv_use_dmalloc"
4527 echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp
4528 if test "$USE_DMALLOC" = 1; then
4529 echo "$ac_t""yes" 1>&6
4531 echo "$ac_t""no" 1>&6
4536 echo $ac_n "checking "for profile
"""... $ac_c" 1>&6
4537 echo "configure:4538: checking "for profile
"" >&5
4538 # Check whether --with-profile or --without-profile was given.
4539 if test "${with_profile+set}" = set; then
4540 withval
="$with_profile"
4541 if test "x$with_profile" = xyes
; then
4542 ac_cv_use_profile
='USE_PROFILE="1"'
4544 ac_cv_use_profile
='USE_PROFILE="0"'
4548 LINE
=`grep "USE_PROFILE" ${OSTYPE}.system.cache`
4549 if test "x$LINE" != x
; then
4550 eval "DEFAULT_$LINE"
4552 ac_cv_use_profile
='USE_PROFILE='$DEFAULT_USE_PROFILE
4556 eval "$ac_cv_use_profile"
4557 echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
4558 if test "$USE_PROFILE" = 1; then
4559 echo "$ac_t""yes" 1>&6
4561 echo "$ac_t""no" 1>&6
4566 echo $ac_n "checking "for apple_ieee
"""... $ac_c" 1>&6
4567 echo "configure:4568: checking "for apple_ieee
"" >&5
4568 # Check whether --with-apple_ieee or --without-apple_ieee was given.
4569 if test "${with_apple_ieee+set}" = set; then
4570 withval
="$with_apple_ieee"
4571 if test "x$with_apple_ieee" = xyes
; then
4572 ac_cv_use_apple_ieee
='USE_APPLE_IEEE="1"'
4574 ac_cv_use_apple_ieee
='USE_APPLE_IEEE="0"'
4578 LINE
=`grep "USE_APPLE_IEEE" ${OSTYPE}.system.cache`
4579 if test "x$LINE" != x
; then
4580 eval "DEFAULT_$LINE"
4582 ac_cv_use_apple_ieee
='USE_APPLE_IEEE='$DEFAULT_USE_APPLE_IEEE
4586 eval "$ac_cv_use_apple_ieee"
4587 echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp
4588 if test "$USE_APPLE_IEEE" = 1; then
4589 echo "$ac_t""yes" 1>&6
4591 echo "$ac_t""no" 1>&6
4597 echo $ac_n "checking "for zlib
"""... $ac_c" 1>&6
4598 echo "configure:4599: checking "for zlib
"" >&5
4599 # Check whether --with-zlib or --without-zlib was given.
4600 if test "${with_zlib+set}" = set; then
4601 withval
="$with_zlib"
4602 if test "x$with_zlib" = xyes
; then
4603 ac_cv_use_zlib
='USE_ZLIB="1"'
4605 ac_cv_use_zlib
='USE_ZLIB="0"'
4609 LINE
=`grep "USE_ZLIB" ${OSTYPE}.system.cache`
4610 if test "x$LINE" != x
; then
4611 eval "DEFAULT_$LINE"
4613 ac_cv_use_zlib
='USE_ZLIB='$DEFAULT_USE_ZLIB
4617 eval "$ac_cv_use_zlib"
4618 echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
4619 if test "$USE_ZLIB" = 1; then
4620 echo "$ac_t""yes" 1>&6
4622 echo "$ac_t""no" 1>&6
4627 echo $ac_n "checking "for gdk_imlib
"""... $ac_c" 1>&6
4628 echo "configure:4629: checking "for gdk_imlib
"" >&5
4629 # Check whether --with-gdk_imlib or --without-gdk_imlib was given.
4630 if test "${with_gdk_imlib+set}" = set; then
4631 withval
="$with_gdk_imlib"
4632 if test "x$with_gdk_imlib" = xyes
; then
4633 ac_cv_use_gdk_imlib
='USE_GDK_IMLIB="1"'
4635 ac_cv_use_gdk_imlib
='USE_GDK_IMLIB="0"'
4639 LINE
=`grep "USE_GDK_IMLIB" ${OSTYPE}.system.cache`
4640 if test "x$LINE" != x
; then
4641 eval "DEFAULT_$LINE"
4643 ac_cv_use_gdk_imlib
='USE_GDK_IMLIB='$DEFAULT_USE_GDK_IMLIB
4647 eval "$ac_cv_use_gdk_imlib"
4648 echo $ac_cv_use_gdk_imlib >> ${OSTYPE}.system.cache.tmp
4649 if test "$USE_GDK_IMLIB" = 1; then
4650 echo "$ac_t""yes" 1>&6
4652 echo "$ac_t""no" 1>&6
4657 echo $ac_n "checking "for libpng
"""... $ac_c" 1>&6
4658 echo "configure:4659: checking "for libpng
"" >&5
4659 # Check whether --with-libpng or --without-libpng was given.
4660 if test "${with_libpng+set}" = set; then
4661 withval
="$with_libpng"
4662 if test "x$with_libpng" = xyes
; then
4663 ac_cv_use_libpng
='USE_LIBPNG="1"'
4665 ac_cv_use_libpng
='USE_LIBPNG="0"'
4669 LINE
=`grep "USE_LIBPNG" ${OSTYPE}.system.cache`
4670 if test "x$LINE" != x
; then
4671 eval "DEFAULT_$LINE"
4673 ac_cv_use_libpng
='USE_LIBPNG='$DEFAULT_USE_LIBPNG
4677 eval "$ac_cv_use_libpng"
4678 echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
4679 if test "$USE_LIBPNG" = 1; then
4680 echo "$ac_t""yes" 1>&6
4682 echo "$ac_t""no" 1>&6
4687 echo $ac_n "checking "for odbc
"""... $ac_c" 1>&6
4688 echo "configure:4689: checking "for odbc
"" >&5
4689 # Check whether --with-odbc or --without-odbc was given.
4690 if test "${with_odbc+set}" = set; then
4691 withval
="$with_odbc"
4692 if test "x$with_odbc" = xyes
; then
4693 ac_cv_use_odbc
='USE_ODBC="1"'
4695 ac_cv_use_odbc
='USE_ODBC="0"'
4699 LINE
=`grep "USE_ODBC" ${OSTYPE}.system.cache`
4700 if test "x$LINE" != x
; then
4701 eval "DEFAULT_$LINE"
4703 ac_cv_use_odbc
='USE_ODBC='$DEFAULT_USE_ODBC
4707 eval "$ac_cv_use_odbc"
4708 echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp
4709 if test "$USE_ODBC" = 1; then
4710 echo "$ac_t""yes" 1>&6
4712 echo "$ac_t""no" 1>&6
4717 echo $ac_n "checking "for opengl
"""... $ac_c" 1>&6
4718 echo "configure:4719: checking "for opengl
"" >&5
4719 # Check whether --with-opengl or --without-opengl was given.
4720 if test "${with_opengl+set}" = set; then
4721 withval
="$with_opengl"
4722 if test "x$with_opengl" = xyes
; then
4723 ac_cv_use_opengl
='USE_OPENGL="1"'
4725 ac_cv_use_opengl
='USE_OPENGL="0"'
4729 LINE
=`grep "USE_OPENGL" ${OSTYPE}.system.cache`
4730 if test "x$LINE" != x
; then
4731 eval "DEFAULT_$LINE"
4733 ac_cv_use_opengl
='USE_OPENGL='$DEFAULT_USE_OPENGL
4737 eval "$ac_cv_use_opengl"
4738 echo $ac_cv_use_opengl >> ${OSTYPE}.system.cache.tmp
4739 if test "$USE_OPENGL" = 1; then
4740 echo "$ac_t""yes" 1>&6
4742 echo "$ac_t""no" 1>&6
4748 echo $ac_n "checking "for gauge
"""... $ac_c" 1>&6
4749 echo "configure:4750: checking "for gauge
"" >&5
4750 # Check whether --with-gauge or --without-gauge was given.
4751 if test "${with_gauge+set}" = set; then
4752 withval
="$with_gauge"
4753 if test "x$with_gauge" = xyes
; then
4754 ac_cv_use_gauge
='USE_GAUGE="1"'
4756 ac_cv_use_gauge
='USE_GAUGE="0"'
4760 LINE
=`grep "USE_GAUGE" ${OSTYPE}.system.cache`
4761 if test "x$LINE" != x
; then
4762 eval "DEFAULT_$LINE"
4764 ac_cv_use_gauge
='USE_GAUGE='$DEFAULT_USE_GAUGE
4768 eval "$ac_cv_use_gauge"
4769 echo $ac_cv_use_gauge >> ${OSTYPE}.system.cache.tmp
4770 if test "$USE_GAUGE" = 1; then
4771 echo "$ac_t""yes" 1>&6
4773 echo "$ac_t""no" 1>&6
4778 echo $ac_n "checking "for scrollbar
"""... $ac_c" 1>&6
4779 echo "configure:4780: checking "for scrollbar
"" >&5
4780 # Check whether --with-scrollbar or --without-scrollbar was given.
4781 if test "${with_scrollbar+set}" = set; then
4782 withval
="$with_scrollbar"
4783 if test "x$with_scrollbar" = xyes
; then
4784 ac_cv_use_scrollbar
='USE_SCROLLBAR="1"'
4786 ac_cv_use_scrollbar
='USE_SCROLLBAR="0"'
4790 LINE
=`grep "USE_SCROLLBAR" ${OSTYPE}.system.cache`
4791 if test "x$LINE" != x
; then
4792 eval "DEFAULT_$LINE"
4794 ac_cv_use_scrollbar
='USE_SCROLLBAR='$DEFAULT_USE_SCROLLBAR
4798 eval "$ac_cv_use_scrollbar"
4799 echo $ac_cv_use_scrollbar >> ${OSTYPE}.system.cache.tmp
4800 if test "$USE_SCROLLBAR" = 1; then
4801 echo "$ac_t""yes" 1>&6
4803 echo "$ac_t""no" 1>&6
4808 echo $ac_n "checking "for listctrl
"""... $ac_c" 1>&6
4809 echo "configure:4810: checking "for listctrl
"" >&5
4810 # Check whether --with-listctrl or --without-listctrl was given.
4811 if test "${with_listctrl+set}" = set; then
4812 withval
="$with_listctrl"
4813 if test "x$with_listctrl" = xyes
; then
4814 ac_cv_use_listctrl
='USE_LISTCTRL="1"'
4816 ac_cv_use_listctrl
='USE_LISTCTRL="0"'
4820 LINE
=`grep "USE_LISTCTRL" ${OSTYPE}.system.cache`
4821 if test "x$LINE" != x
; then
4822 eval "DEFAULT_$LINE"
4824 ac_cv_use_listctrl
='USE_LISTCTRL='$DEFAULT_USE_LISTCTRL
4828 eval "$ac_cv_use_listctrl"
4829 echo $ac_cv_use_listctrl >> ${OSTYPE}.system.cache.tmp
4830 if test "$USE_LISTCTRL" = 1; then
4831 echo "$ac_t""yes" 1>&6
4833 echo "$ac_t""no" 1>&6
4838 echo $ac_n "checking "for treectrl
"""... $ac_c" 1>&6
4839 echo "configure:4840: checking "for treectrl
"" >&5
4840 # Check whether --with-treectrl or --without-treectrl was given.
4841 if test "${with_treectrl+set}" = set; then
4842 withval
="$with_treectrl"
4843 if test "x$with_treectrl" = xyes
; then
4844 ac_cv_use_treectrl
='USE_TREECTRL="1"'
4846 ac_cv_use_treectrl
='USE_TREECTRL="0"'
4850 LINE
=`grep "USE_TREECTRL" ${OSTYPE}.system.cache`
4851 if test "x$LINE" != x
; then
4852 eval "DEFAULT_$LINE"
4854 ac_cv_use_treectrl
='USE_TREECTRL='$DEFAULT_USE_TREECTRL
4858 eval "$ac_cv_use_treectrl"
4859 echo $ac_cv_use_treectrl >> ${OSTYPE}.system.cache.tmp
4860 if test "$USE_TREECTRL" = 1; then
4861 echo "$ac_t""yes" 1>&6
4863 echo "$ac_t""no" 1>&6
4868 echo $ac_n "checking "for grid
"""... $ac_c" 1>&6
4869 echo "configure:4870: checking "for grid
"" >&5
4870 # Check whether --with-grid or --without-grid was given.
4871 if test "${with_grid+set}" = set; then
4872 withval
="$with_grid"
4873 if test "x$with_grid" = xyes
; then
4874 ac_cv_use_grid
='USE_GRID="1"'
4876 ac_cv_use_grid
='USE_GRID="0"'
4880 LINE
=`grep "USE_GRID" ${OSTYPE}.system.cache`
4881 if test "x$LINE" != x
; then
4882 eval "DEFAULT_$LINE"
4884 ac_cv_use_grid
='USE_GRID='$DEFAULT_USE_GRID
4888 eval "$ac_cv_use_grid"
4889 echo $ac_cv_use_grid >> ${OSTYPE}.system.cache.tmp
4890 if test "$USE_GRID" = 1; then
4891 echo "$ac_t""yes" 1>&6
4893 echo "$ac_t""no" 1>&6
4898 echo $ac_n "checking "for tab_dialog
"""... $ac_c" 1>&6
4899 echo "configure:4900: checking "for tab_dialog
"" >&5
4900 # Check whether --with-tab_dialog or --without-tab_dialog was given.
4901 if test "${with_tab_dialog+set}" = set; then
4902 withval
="$with_tab_dialog"
4903 if test "x$with_tab_dialog" = xyes
; then
4904 ac_cv_use_tab_dialog
='USE_TAB_DIALOG="1"'
4906 ac_cv_use_tab_dialog
='USE_TAB_DIALOG="0"'
4910 LINE
=`grep "USE_TAB_DIALOG" ${OSTYPE}.system.cache`
4911 if test "x$LINE" != x
; then
4912 eval "DEFAULT_$LINE"
4914 ac_cv_use_tab_dialog
='USE_TAB_DIALOG='$DEFAULT_USE_TAB_DIALOG
4918 eval "$ac_cv_use_tab_dialog"
4919 echo $ac_cv_use_tab_dialog >> ${OSTYPE}.system.cache.tmp
4920 if test "$USE_TAB_DIALOG" = 1; then
4921 echo "$ac_t""yes" 1>&6
4923 echo "$ac_t""no" 1>&6
4928 echo $ac_n "checking "for notebook
"""... $ac_c" 1>&6
4929 echo "configure:4930: checking "for notebook
"" >&5
4930 # Check whether --with-notebook or --without-notebook was given.
4931 if test "${with_notebook+set}" = set; then
4932 withval
="$with_notebook"
4933 if test "x$with_notebook" = xyes
; then
4934 ac_cv_use_notebook
='USE_NOTEBOOK="1"'
4936 ac_cv_use_notebook
='USE_NOTEBOOK="0"'
4940 LINE
=`grep "USE_NOTEBOOK" ${OSTYPE}.system.cache`
4941 if test "x$LINE" != x
; then
4942 eval "DEFAULT_$LINE"
4944 ac_cv_use_notebook
='USE_NOTEBOOK='$DEFAULT_USE_NOTEBOOK
4948 eval "$ac_cv_use_notebook"
4949 echo $ac_cv_use_notebook >> ${OSTYPE}.system.cache.tmp
4950 if test "$USE_NOTEBOOK" = 1; then
4951 echo "$ac_t""yes" 1>&6
4953 echo "$ac_t""no" 1>&6
4959 echo $ac_n "checking "for timedate
"""... $ac_c" 1>&6
4960 echo "configure:4961: checking "for timedate
"" >&5
4961 # Check whether --with-timedate or --without-timedate was given.
4962 if test "${with_timedate+set}" = set; then
4963 withval
="$with_timedate"
4964 if test "x$with_timedate" = xyes
; then
4965 ac_cv_use_timedate
='USE_TIMEDATE="1"'
4967 ac_cv_use_timedate
='USE_TIMEDATE="0"'
4971 LINE
=`grep "USE_TIMEDATE" ${OSTYPE}.system.cache`
4972 if test "x$LINE" != x
; then
4973 eval "DEFAULT_$LINE"
4975 ac_cv_use_timedate
='USE_TIMEDATE='$DEFAULT_USE_TIMEDATE
4979 eval "$ac_cv_use_timedate"
4980 echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
4981 if test "$USE_TIMEDATE" = 1; then
4982 echo "$ac_t""yes" 1>&6
4984 echo "$ac_t""no" 1>&6
4989 echo $ac_n "checking "for fraction
"""... $ac_c" 1>&6
4990 echo "configure:4991: checking "for fraction
"" >&5
4991 # Check whether --with-fraction or --without-fraction was given.
4992 if test "${with_fraction+set}" = set; then
4993 withval
="$with_fraction"
4994 if test "x$with_fraction" = xyes
; then
4995 ac_cv_use_fraction
='USE_FRACTION="1"'
4997 ac_cv_use_fraction
='USE_FRACTION="0"'
5001 LINE
=`grep "USE_FRACTION" ${OSTYPE}.system.cache`
5002 if test "x$LINE" != x
; then
5003 eval "DEFAULT_$LINE"
5005 ac_cv_use_fraction
='USE_FRACTION='$DEFAULT_USE_FRACTION
5009 eval "$ac_cv_use_fraction"
5010 echo $ac_cv_use_fraction >> ${OSTYPE}.system.cache.tmp
5011 if test "$USE_FRACTION" = 1; then
5012 echo "$ac_t""yes" 1>&6
5014 echo "$ac_t""no" 1>&6
5019 echo $ac_n "checking "for log
"""... $ac_c" 1>&6
5020 echo "configure:5021: checking "for log
"" >&5
5021 # Check whether --with-log or --without-log was given.
5022 if test "${with_log+set}" = set; then
5024 if test "x$with_log" = xyes
; then
5025 ac_cv_use_log
='USE_LOG="1"'
5027 ac_cv_use_log
='USE_LOG="0"'
5031 LINE
=`grep "USE_LOG" ${OSTYPE}.system.cache`
5032 if test "x$LINE" != x
; then
5033 eval "DEFAULT_$LINE"
5035 ac_cv_use_log
='USE_LOG='$DEFAULT_USE_LOG
5039 eval "$ac_cv_use_log"
5040 echo $ac_cv_use_log >> ${OSTYPE}.system.cache.tmp
5041 if test "$USE_LOG" = 1; then
5042 echo "$ac_t""yes" 1>&6
5044 echo "$ac_t""no" 1>&6
5049 echo $ac_n "checking "for intl
"""... $ac_c" 1>&6
5050 echo "configure:5051: checking "for intl
"" >&5
5051 # Check whether --with-intl or --without-intl was given.
5052 if test "${with_intl+set}" = set; then
5053 withval
="$with_intl"
5054 if test "x$with_intl" = xyes
; then
5055 ac_cv_use_intl
='USE_INTL="1"'
5057 ac_cv_use_intl
='USE_INTL="0"'
5061 LINE
=`grep "USE_INTL" ${OSTYPE}.system.cache`
5062 if test "x$LINE" != x
; then
5063 eval "DEFAULT_$LINE"
5065 ac_cv_use_intl
='USE_INTL='$DEFAULT_USE_INTL
5069 eval "$ac_cv_use_intl"
5070 echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp
5071 if test "$USE_INTL" = 1; then
5072 echo "$ac_t""yes" 1>&6
5074 echo "$ac_t""no" 1>&6
5079 echo $ac_n "checking "for config
"""... $ac_c" 1>&6
5080 echo "configure:5081: checking "for config
"" >&5
5081 # Check whether --with-config or --without-config was given.
5082 if test "${with_config+set}" = set; then
5083 withval
="$with_config"
5084 if test "x$with_config" = xyes
; then
5085 ac_cv_use_config
='USE_CONFIG="1"'
5087 ac_cv_use_config
='USE_CONFIG="0"'
5091 LINE
=`grep "USE_CONFIG" ${OSTYPE}.system.cache`
5092 if test "x$LINE" != x
; then
5093 eval "DEFAULT_$LINE"
5095 ac_cv_use_config
='USE_CONFIG='$DEFAULT_USE_CONFIG
5099 eval "$ac_cv_use_config"
5100 echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp
5101 if test "$USE_CONFIG" = 1; then
5102 echo "$ac_t""yes" 1>&6
5104 echo "$ac_t""no" 1>&6
5109 echo $ac_n "checking "for streams
"""... $ac_c" 1>&6
5110 echo "configure:5111: checking "for streams
"" >&5
5111 # Check whether --with-streams or --without-streams was given.
5112 if test "${with_streams+set}" = set; then
5113 withval
="$with_streams"
5114 if test "x$with_streams" = xyes
; then
5115 ac_cv_use_streams
='USE_STREAMS="1"'
5117 ac_cv_use_streams
='USE_STREAMS="0"'
5121 LINE
=`grep "USE_STREAMS" ${OSTYPE}.system.cache`
5122 if test "x$LINE" != x
; then
5123 eval "DEFAULT_$LINE"
5125 ac_cv_use_streams
='USE_STREAMS='$DEFAULT_USE_STREAMS
5129 eval "$ac_cv_use_streams"
5130 echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp
5131 if test "$USE_STREAMS" = 1; then
5132 echo "$ac_t""yes" 1>&6
5134 echo "$ac_t""no" 1>&6
5139 echo $ac_n "checking "for serial
"""... $ac_c" 1>&6
5140 echo "configure:5141: checking "for serial
"" >&5
5141 # Check whether --with-serial or --without-serial was given.
5142 if test "${with_serial+set}" = set; then
5143 withval
="$with_serial"
5144 if test "x$with_serial" = xyes
; then
5145 ac_cv_use_serial
='USE_SERIAL="1"'
5147 ac_cv_use_serial
='USE_SERIAL="0"'
5151 LINE
=`grep "USE_SERIAL" ${OSTYPE}.system.cache`
5152 if test "x$LINE" != x
; then
5153 eval "DEFAULT_$LINE"
5155 ac_cv_use_serial
='USE_SERIAL='$DEFAULT_USE_SERIAL
5159 eval "$ac_cv_use_serial"
5160 echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp
5161 if test "$USE_SERIAL" = 1; then
5162 echo "$ac_t""yes" 1>&6
5164 echo "$ac_t""no" 1>&6
5169 echo $ac_n "checking "for file"""... $ac_c" 1>&6
5170 echo "configure:5171: checking "for file"" >&5
5171 # Check whether --with-file or --without-file was given.
5172 if test "${with_file+set}" = set; then
5173 withval
="$with_file"
5174 if test "x$with_file" = xyes
; then
5175 ac_cv_use_file
='USE_FILE="1"'
5177 ac_cv_use_file
='USE_FILE="0"'
5181 LINE
=`grep "USE_FILE" ${OSTYPE}.system.cache`
5182 if test "x$LINE" != x
; then
5183 eval "DEFAULT_$LINE"
5185 ac_cv_use_file
='USE_FILE='$DEFAULT_USE_FILE
5189 eval "$ac_cv_use_file"
5190 echo $ac_cv_use_file >> ${OSTYPE}.system.cache.tmp
5191 if test "$USE_FILE" = 1; then
5192 echo "$ac_t""yes" 1>&6
5194 echo "$ac_t""no" 1>&6
5199 echo $ac_n "checking "for textfile
"""... $ac_c" 1>&6
5200 echo "configure:5201: checking "for textfile
"" >&5
5201 # Check whether --with-textfile or --without-textfile was given.
5202 if test "${with_textfile+set}" = set; then
5203 withval
="$with_textfile"
5204 if test "x$with_textfile" = xyes
; then
5205 ac_cv_use_textfile
='USE_TEXTFILE="1"'
5207 ac_cv_use_textfile
='USE_TEXTFILE="0"'
5211 LINE
=`grep "USE_TEXTFILE" ${OSTYPE}.system.cache`
5212 if test "x$LINE" != x
; then
5213 eval "DEFAULT_$LINE"
5215 ac_cv_use_textfile
='USE_TEXTFILE='$DEFAULT_USE_TEXTFILE
5219 eval "$ac_cv_use_textfile"
5220 echo $ac_cv_use_textfile >> ${OSTYPE}.system.cache.tmp
5221 if test "$USE_TEXTFILE" = 1; then
5222 echo "$ac_t""yes" 1>&6
5224 echo "$ac_t""no" 1>&6
5230 echo $ac_n "checking "for afmfonts
"""... $ac_c" 1>&6
5231 echo "configure:5232: checking "for afmfonts
"" >&5
5232 # Check whether --with-afmfonts or --without-afmfonts was given.
5233 if test "${with_afmfonts+set}" = set; then
5234 withval
="$with_afmfonts"
5235 if test "x$with_afmfonts" = xyes
; then
5236 ac_cv_use_afmfonts
='USE_AFM_FOR_POSTSCRIPT="1"'
5238 ac_cv_use_afmfonts
='USE_AFM_FOR_POSTSCRIPT="0"'
5242 LINE
=`grep "USE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
5243 if test "x$LINE" != x
; then
5244 eval "DEFAULT_$LINE"
5246 ac_cv_use_afmfonts
='USE_AFM_FOR_POSTSCRIPT='$DEFAULT_USE_AFM_FOR_POSTSCRIPT
5250 eval "$ac_cv_use_afmfonts"
5251 echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
5252 if test "$USE_AFM_FOR_POSTSCRIPT" = 1; then
5253 echo "$ac_t""yes" 1>&6
5255 echo "$ac_t""no" 1>&6
5260 echo $ac_n "checking "for normalized
"""... $ac_c" 1>&6
5261 echo "configure:5262: checking "for normalized
"" >&5
5262 # Check whether --with-normalized or --without-normalized was given.
5263 if test "${with_normalized+set}" = set; then
5264 withval
="$with_normalized"
5265 if test "x$with_normalized" = xyes
; then
5266 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="1"'
5268 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="0"'
5272 LINE
=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
5273 if test "x$LINE" != x
; then
5274 eval "DEFAULT_$LINE"
5276 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
5280 eval "$ac_cv_use_normalized"
5281 echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
5282 if test "$WX_NORMALIZED_PS_FONTS" = 1; then
5283 echo "$ac_t""yes" 1>&6
5285 echo "$ac_t""no" 1>&6
5290 echo $ac_n "checking "for postscript
"""... $ac_c" 1>&6
5291 echo "configure:5292: checking "for postscript
"" >&5
5292 # Check whether --with-postscript or --without-postscript was given.
5293 if test "${with_postscript+set}" = set; then
5294 withval
="$with_postscript"
5295 if test "x$with_postscript" = xyes
; then
5296 ac_cv_use_postscript
='USE_POSTSCRIPT="1"'
5298 ac_cv_use_postscript
='USE_POSTSCRIPT="0"'
5302 LINE
=`grep "USE_POSTSCRIPT" ${OSTYPE}.system.cache`
5303 if test "x$LINE" != x
; then
5304 eval "DEFAULT_$LINE"
5306 ac_cv_use_postscript
='USE_POSTSCRIPT='$DEFAULT_USE_POSTSCRIPT
5310 eval "$ac_cv_use_postscript"
5311 echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
5312 if test "$USE_POSTSCRIPT" = 1; then
5313 echo "$ac_t""yes" 1>&6
5315 echo "$ac_t""no" 1>&6
5321 echo $ac_n "checking "for wxresources
"""... $ac_c" 1>&6
5322 echo "configure:5323: checking "for wxresources
"" >&5
5323 # Check whether --with-wxresources or --without-wxresources was given.
5324 if test "${with_wxresources+set}" = set; then
5325 withval
="$with_wxresources"
5326 if test "x$with_wxresources" = xyes
; then
5327 ac_cv_use_wxresources
='USE_WX_RESOURCES="1"'
5329 ac_cv_use_wxresources
='USE_WX_RESOURCES="0"'
5333 LINE
=`grep "USE_WX_RESOURCES" ${OSTYPE}.system.cache`
5334 if test "x$LINE" != x
; then
5335 eval "DEFAULT_$LINE"
5337 ac_cv_use_wxresources
='USE_WX_RESOURCES='$DEFAULT_USE_WX_RESOURCES
5341 eval "$ac_cv_use_wxresources"
5342 echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
5343 if test "$USE_WX_RESOURCES" = 1; then
5344 echo "$ac_t""yes" 1>&6
5346 echo "$ac_t""no" 1>&6
5351 echo $ac_n "checking "for prologio
"""... $ac_c" 1>&6
5352 echo "configure:5353: checking "for prologio
"" >&5
5353 # Check whether --with-prologio or --without-prologio was given.
5354 if test "${with_prologio+set}" = set; then
5355 withval
="$with_prologio"
5356 if test "x$with_prologio" = xyes
; then
5357 ac_cv_use_prologio
='USE_PROLOGIO="1"'
5359 ac_cv_use_prologio
='USE_PROLOGIO="0"'
5363 LINE
=`grep "USE_PROLOGIO" ${OSTYPE}.system.cache`
5364 if test "x$LINE" != x
; then
5365 eval "DEFAULT_$LINE"
5367 ac_cv_use_prologio
='USE_PROLOGIO='$DEFAULT_USE_PROLOGIO
5371 eval "$ac_cv_use_prologio"
5372 echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
5373 if test "$USE_PROLOGIO" = 1; then
5374 echo "$ac_t""yes" 1>&6
5376 echo "$ac_t""no" 1>&6
5381 echo $ac_n "checking "for RPC
"""... $ac_c" 1>&6
5382 echo "configure:5383: checking "for RPC
"" >&5
5383 # Check whether --with-rpc or --without-rpc was given.
5384 if test "${with_rpc+set}" = set; then
5386 if test "x$with_rpc" = xyes
; then
5387 ac_cv_use_rpc
='USE_RPC="1"'
5389 ac_cv_use_rpc
='USE_RPC="0"'
5393 LINE
=`grep "USE_RPC" ${OSTYPE}.system.cache`
5394 if test "x$LINE" != x
; then
5395 eval "DEFAULT_$LINE"
5397 ac_cv_use_rpc
='USE_RPC='$DEFAULT_USE_RPC
5401 eval "$ac_cv_use_rpc"
5402 echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
5403 if test "$USE_RPC" = 1; then
5404 echo "$ac_t""yes" 1>&6
5406 echo "$ac_t""no" 1>&6
5412 echo $ac_n "checking "for IPC
"""... $ac_c" 1>&6
5413 echo "configure:5414: checking "for IPC
"" >&5
5414 # Check whether --with-ipc or --without-ipc was given.
5415 if test "${with_ipc+set}" = set; then
5417 if test "x$with_ipc" = xyes
; then
5418 ac_cv_use_ipc
='USE_IPC="1"'
5420 ac_cv_use_ipc
='USE_IPC="0"'
5424 LINE
=`grep "USE_IPC" ${OSTYPE}.system.cache`
5425 if test "x$LINE" != x
; then
5426 eval "DEFAULT_$LINE"
5428 ac_cv_use_ipc
='USE_IPC='$DEFAULT_USE_IPC
5432 eval "$ac_cv_use_ipc"
5433 echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
5434 if test "$USE_IPC" = 1; then
5435 echo "$ac_t""yes" 1>&6
5437 echo "$ac_t""no" 1>&6
5442 echo $ac_n "checking "for resources
"""... $ac_c" 1>&6
5443 echo "configure:5444: checking "for resources
"" >&5
5444 # Check whether --with-resources or --without-resources was given.
5445 if test "${with_resources+set}" = set; then
5446 withval
="$with_resources"
5447 if test "x$with_resources" = xyes
; then
5448 ac_cv_use_resources
='USE_RESOURCES="1"'
5450 ac_cv_use_resources
='USE_RESOURCES="0"'
5454 LINE
=`grep "USE_RESOURCES" ${OSTYPE}.system.cache`
5455 if test "x$LINE" != x
; then
5456 eval "DEFAULT_$LINE"
5458 ac_cv_use_resources
='USE_RESOURCES='$DEFAULT_USE_RESOURCES
5462 eval "$ac_cv_use_resources"
5463 echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
5464 if test "$USE_RESOURCES" = 1; then
5465 echo "$ac_t""yes" 1>&6
5467 echo "$ac_t""no" 1>&6
5472 echo $ac_n "checking "for clipboard
"""... $ac_c" 1>&6
5473 echo "configure:5474: checking "for clipboard
"" >&5
5474 # Check whether --with-clipboard or --without-clipboard was given.
5475 if test "${with_clipboard+set}" = set; then
5476 withval
="$with_clipboard"
5477 if test "x$with_clipboard" = xyes
; then
5478 ac_cv_use_clipboard
='USE_CLIPBOARD="1"'
5480 ac_cv_use_clipboard
='USE_CLIPBOARD="0"'
5484 LINE
=`grep "USE_CLIPBOARD" ${OSTYPE}.system.cache`
5485 if test "x$LINE" != x
; then
5486 eval "DEFAULT_$LINE"
5488 ac_cv_use_clipboard
='USE_CLIPBOARD='$DEFAULT_USE_CLIPBOARD
5492 eval "$ac_cv_use_clipboard"
5493 echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
5494 if test "$USE_CLIPBOARD" = 1; then
5495 echo "$ac_t""yes" 1>&6
5497 echo "$ac_t""no" 1>&6
5502 echo $ac_n "checking "for dnd
"""... $ac_c" 1>&6
5503 echo "configure:5504: checking "for dnd
"" >&5
5504 # Check whether --with-dnd or --without-dnd was given.
5505 if test "${with_dnd+set}" = set; then
5507 if test "x$with_dnd" = xyes
; then
5508 ac_cv_use_dnd
='USE_DND="1"'
5510 ac_cv_use_dnd
='USE_DND="0"'
5514 LINE
=`grep "USE_DND" ${OSTYPE}.system.cache`
5515 if test "x$LINE" != x
; then
5516 eval "DEFAULT_$LINE"
5518 ac_cv_use_dnd
='USE_DND='$DEFAULT_USE_DND
5522 eval "$ac_cv_use_dnd"
5523 echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp
5524 if test "$USE_DND" = 1; then
5525 echo "$ac_t""yes" 1>&6
5527 echo "$ac_t""no" 1>&6
5532 echo $ac_n "checking "for constrains
"""... $ac_c" 1>&6
5533 echo "configure:5534: checking "for constrains
"" >&5
5534 # Check whether --with-constraints or --without-constraints was given.
5535 if test "${with_constraints+set}" = set; then
5536 withval
="$with_constraints"
5537 if test "x$with_constraints" = xyes
; then
5538 ac_cv_use_constraints
='USE_CONSTRAINTS="1"'
5540 ac_cv_use_constraints
='USE_CONSTRAINTS="0"'
5544 LINE
=`grep "USE_CONSTRAINTS" ${OSTYPE}.system.cache`
5545 if test "x$LINE" != x
; then
5546 eval "DEFAULT_$LINE"
5548 ac_cv_use_constraints
='USE_CONSTRAINTS='$DEFAULT_USE_CONSTRAINTS
5552 eval "$ac_cv_use_constraints"
5553 echo $ac_cv_use_constraints >> ${OSTYPE}.system.cache.tmp
5554 if test "$USE_CONSTRAINTS" = 1; then
5555 echo "$ac_t""yes" 1>&6
5557 echo "$ac_t""no" 1>&6
5563 echo $ac_n "checking "for mdi
"""... $ac_c" 1>&6
5564 echo "configure:5565: checking "for mdi
"" >&5
5565 # Check whether --with-mdi or --without-mdi was given.
5566 if test "${with_mdi+set}" = set; then
5568 if test "x$with_mdi" = xyes
; then
5569 ac_cv_use_mdi
='USE_MDI_ARCHITECTURE="1"'
5571 ac_cv_use_mdi
='USE_MDI_ARCHITECTURE="0"'
5575 LINE
=`grep "USE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache`
5576 if test "x$LINE" != x
; then
5577 eval "DEFAULT_$LINE"
5579 ac_cv_use_mdi
='USE_MDI_ARCHITECTURE='$DEFAULT_USE_MDI_ARCHITECTURE
5583 eval "$ac_cv_use_mdi"
5584 echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp
5585 if test "$USE_MDI_ARCHITECTURE" = 1; then
5586 echo "$ac_t""yes" 1>&6
5588 echo "$ac_t""no" 1>&6
5593 echo $ac_n "checking "for docview
"""... $ac_c" 1>&6
5594 echo "configure:5595: checking "for docview
"" >&5
5595 # Check whether --with-docview or --without-docview was given.
5596 if test "${with_docview+set}" = set; then
5597 withval
="$with_docview"
5598 if test "x$with_docview" = xyes
; then
5599 ac_cv_use_docview
='USE_DOC_VIEW_ARCHITECTURE="1"'
5601 ac_cv_use_docview
='USE_DOC_VIEW_ARCHITECTURE="0"'
5605 LINE
=`grep "USE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
5606 if test "x$LINE" != x
; then
5607 eval "DEFAULT_$LINE"
5609 ac_cv_use_docview
='USE_DOC_VIEW_ARCHITECTURE='$DEFAULT_USE_DOC_VIEW_ARCHITECTURE
5613 eval "$ac_cv_use_docview"
5614 echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
5615 if test "$USE_DOC_VIEW_ARCHITECTURE" = 1; then
5616 echo "$ac_t""yes" 1>&6
5618 echo "$ac_t""no" 1>&6
5623 echo $ac_n "checking "for printarch
"""... $ac_c" 1>&6
5624 echo "configure:5625: checking "for printarch
"" >&5
5625 # Check whether --with-printarch or --without-printarch was given.
5626 if test "${with_printarch+set}" = set; then
5627 withval
="$with_printarch"
5628 if test "x$with_printarch" = xyes
; then
5629 ac_cv_use_printarch
='USE_PRINTING_ARCHITECTURE="1"'
5631 ac_cv_use_printarch
='USE_PRINTING_ARCHITECTURE="0"'
5635 LINE
=`grep "USE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
5636 if test "x$LINE" != x
; then
5637 eval "DEFAULT_$LINE"
5639 ac_cv_use_printarch
='USE_PRINTING_ARCHITECTURE='$DEFAULT_USE_PRINTING_ARCHITECTURE
5643 eval "$ac_cv_use_printarch"
5644 echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
5645 if test "$USE_PRINTING_ARCHITECTURE" = 1; then
5646 echo "$ac_t""yes" 1>&6
5648 echo "$ac_t""no" 1>&6
5653 if test "$USE_UNIX" = 1 ; then
5654 cat >> confdefs.h
<<\EOF
5670 if test "$USE_GTK" = 1; then
5671 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
5672 if test "${with_gtk_prefix+set}" = set; then
5673 withval
="$with_gtk_prefix"
5674 gtk_config_prefix
="$withval"
5676 gtk_config_prefix
=""
5679 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
5680 if test "${with_gtk_exec_prefix+set}" = set; then
5681 withval
="$with_gtk_exec_prefix"
5682 gtk_config_exec_prefix
="$withval"
5684 gtk_config_exec_prefix
=""
5688 if test x
$gtk_config_exec_prefix != x
; then
5689 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
5690 if test x
${GTK_CONFIG+set} != xset
; then
5691 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
5694 if test x
$gtk_config_prefix != x
; then
5695 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
5696 if test x
${GTK_CONFIG+set} != xset
; then
5697 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
5701 # Extract the first word of "gtk-config", so it can be a program name with args.
5702 set dummy gtk
-config; ac_word
=$2
5703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5704 echo "configure:5705: checking for $ac_word" >&5
5705 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5706 echo $ac_n "(cached) $ac_c" 1>&6
5708 case "$GTK_CONFIG" in
5710 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
5713 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5714 for ac_dir
in $PATH; do
5715 test -z "$ac_dir" && ac_dir
=.
5716 if test -f $ac_dir/$ac_word; then
5717 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
5722 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
5726 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
5727 if test -n "$GTK_CONFIG"; then
5728 echo "$ac_t""$GTK_CONFIG" 1>&6
5730 echo "$ac_t""no" 1>&6
5733 min_gtk_version
=0.99.7
5734 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
5735 echo "configure:5736: checking for GTK - version >= $min_gtk_version" >&5
5737 if test "$GTK_CONFIG" != "no" ; then
5738 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
5739 GTK_LIBS
=`$GTK_CONFIG --libs`
5740 ac_save_CFLAGS
="$CFLAGS"
5741 ac_save_LIBS
="$LIBS"
5742 CFLAGS
="$CFLAGS $GTK_CFLAGS"
5743 LIBS
="$LIBS $GTK_LIBS"
5744 if test "$cross_compiling" = yes; then
5745 echo $ac_n "cross compiling; assumed OK... $ac_c"
5747 cat > conftest.
$ac_ext <<EOF
5748 #line 5749 "configure"
5749 #include "confdefs.h"
5751 #include <gtk/gtk.h>
5757 int major, minor, micro;
5759 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
5760 printf("%s, bad version string\n", "$min_gtk_version");
5764 return !((gtk_major_version > major) ||
5765 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
5766 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
5770 if { (eval echo configure
:5771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5774 echo "configure: failed program was:" >&5
5775 cat conftest.
$ac_ext >&5
5782 CFLAGS
="$ac_save_CFLAGS"
5783 LIBS
="$ac_save_LIBS"
5787 if test "x$no_gtk" = x
; then
5788 echo "$ac_t""yes" 1>&6
5790 GUI_TK_INCLUDE
="$GTK_CFLAGS"
5791 GUI_TK_LIBRARY
="$GTK_LIBS"
5794 echo "$ac_t""no" 1>&6
5797 { echo "configure: error: Are gtk-config and the GTK in path and up-to-date?" 1>&2; exit 1; }
5802 cat >> confdefs.h
<<\EOF
5807 TOOLKIT_DEF
=__WXGTK__
5808 MAKEINCLUDE
=..
/gtk.inc
5811 if test "$USE_QT" = 1; then
5812 echo $ac_n "checking for Qt includes""... $ac_c" 1>&6
5813 echo "configure:5814: checking for Qt includes" >&5
5816 for ac_dir
in $SEARCH_INCLUDE;
5818 if test -f "$ac_dir/qapp.h"; then
5819 ac_find_includes
=$ac_dir
5824 if test "$ac_find_includes" != "" ; then
5825 echo "$ac_t""found $ac_find_includes" 1>&6
5826 echo $ac_n "checking for Qt library""... $ac_c" 1>&6
5827 echo "configure:5828: checking for Qt library" >&5
5830 for ac_dir
in $SEARCH_LIB;
5832 for ac_extension
in a so sl
; do
5833 if test -f "$ac_dir/libqt.$ac_extension"; then
5834 ac_find_libraries
=$ac_dir
5840 if test "$ac_find_libraries" != "" ; then
5842 ac_path_to_include
=$ac_find_includes
5843 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
5845 if test $result = 0; then
5846 ac_path_to_include
=""
5848 ac_path_to_include
="-I$ac_find_includes"
5852 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5854 if test $result = 0; then
5857 ac_path_to_link
="-L$ac_find_libraries"
5860 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
5861 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
5862 echo "$ac_t""found Qt at $ac_find_libraries" 1>&6
5864 { echo "configure: error: no" 1>&2; exit 1; }
5867 { echo "configure: error: no" 1>&2; exit 1; }
5869 GUI_TK_LINK
="-lXext -lX11 -lqt -lm"
5870 cat >> confdefs.h
<<\EOF
5875 TOOLKIT_DEF
=__WXQT__
5876 MAKEINCLUDE
=..
/qt.inc
5879 if test "$USE_MOTIF" = 1; then
5880 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
5881 echo "configure:5882: checking for Motif/Lesstif includes" >&5
5884 for ac_dir
in $SEARCH_INCLUDE;
5886 if test -f "$ac_dir/Xm.h"; then
5887 ac_find_includes
=$ac_dir
5892 if test "$ac_find_includes" != "" ; then
5893 echo "$ac_t""found $ac_find_includes" 1>&6
5894 echo $ac_n "checking for Motif or Lesstif library""... $ac_c" 1>&6
5895 echo "configure:5896: checking for Motif or Lesstif library" >&5
5898 for ac_dir
in $SEARCH_LIB;
5900 for ac_extension
in a so sl
; do
5901 if test -f "$ac_dir/libXm.$ac_extension"; then
5902 ac_find_libraries
=$ac_dir
5908 if test "$ac_find_libraries" != "" ; then
5910 ac_path_to_include
=$ac_find_includes
5911 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
5913 if test $result = 0; then
5914 ac_path_to_include
=""
5916 ac_path_to_include
="-I$ac_find_includes"
5920 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5922 if test $result = 0; then
5925 ac_path_to_link
="-L$ac_find_libraries"
5928 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
5929 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
5930 echo "$ac_t""found at $ac_find_libraries" 1>&6
5932 { echo "configure: error: no" 1>&2; exit 1; }
5935 { echo "configure: error: no" 1>&2; exit 1; }
5937 GUI_TK_LINK
="-lXext -lXt -lX11 -lXm -lm"
5938 cat >> confdefs.h
<<\EOF
5939 #define __WXMOTIF__ 1
5943 TOOLKIT_DEF
=__WXMOTIF__
5944 MAKEINCLUDE
=..
/motif.inc
5947 if test "$TOOLKIT" = ""; then
5948 { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; }
5962 if test "$USE_DEBUG_INFO" = 1 ; then
5967 if test "$USE_DEBUG_FLAG" = 1 ; then
5968 cat >> confdefs.h
<<EOF
5969 #define WXDEBUG $USE_DEBUG_FLAG
5972 WXDEBUG_DEFINE
="-D__WXDEBUG__"
5976 if test "$USE_MEM_TRACING" = 1 ; then
5977 cat >> confdefs.h
<<EOF
5978 #define USE_MEMORY_TRACING $USE_MEM_TRACING
5984 if test "$USE_DMALLOC" = 1 ; then
5985 EXTRA_LINK
="$EXTRA_LINK -ldmalloc"
5990 if test "$USE_PROFILE" = 1 ; then
5995 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
5996 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
5997 if test "$USE_OPTIMISE" = 0 ; then
6000 if test "$GCC" = yes ; then
6002 case "${canonical}" in
6004 OPTIMISE
="${OPTIMISE} "
6014 if test "$USE_APPLE_IEEE" = 1 ; then
6015 APPLE_IEEE
="APPLE_IEEE"
6016 cat >> confdefs.h
<<EOF
6017 #define USE_APPLE_IEEE $USE_APPLE_IEEE
6022 USE_IOSTREAMH
=$DEFAULT_USE_IOSTREAMH
6023 cat >> confdefs.h
<<EOF
6024 #define USE_IOSTREAMH $USE_IOSTREAMH
6029 if test "$USE_ZLIB" = 1 ; then
6030 cat >> confdefs.h
<<EOF
6031 #define USE_ZLIB $USE_ZLIB
6036 if test "$USE_GDK_IMLIB" = 1 ; then
6037 cat >> confdefs.h
<<EOF
6038 #define USE_GDK_IMLIB $USE_GDK_IMLIB
6043 if test "$USE_LIBPNG" = 1 ; then
6044 cat >> confdefs.h
<<EOF
6045 #define USE_LIBPNG $USE_LIBPNG
6050 if test "$USE_ODBC" = 1 ; then
6051 cat >> confdefs.h
<<EOF
6052 #define USE_ODBC $USE_ODBC
6058 if test "$USE_GAUGE" = 1 ; then
6059 cat >> confdefs.h
<<EOF
6060 #define USE_GAUGE $USE_GAUGE
6065 if test "$USE_SCROLLBAR" = 1 ; then
6066 cat >> confdefs.h
<<EOF
6067 #define USE_SCROLLBAR $USE_SCROLLBAR
6072 if test "$USE_LISTCTRL" = 1 ; then
6073 cat >> confdefs.h
<<EOF
6074 #define USE_LISTCTRL $USE_LISTCTRL
6079 if test "$USE_TREECTRL" = 1 ; then
6080 cat >> confdefs.h
<<EOF
6081 #define USE_TREECTRL $USE_TREECTRL
6086 if test "$USE_GRID" = 1 ; then
6087 cat >> confdefs.h
<<EOF
6088 #define USE_GRID $USE_GRID
6093 if test "$USE_TAB_DIALOG" = 1 ; then
6094 cat >> confdefs.h
<<EOF
6095 #define USE_TAB_DIALOG $USE_TAB_DIALOG
6100 if test "$USE_NOTEBOOK" = 1 ; then
6101 cat >> confdefs.h
<<EOF
6102 #define USE_NOTEBOOK $USE_NOTEBOOK
6108 if test "$USE_CONFIG" = 1 ; then
6109 cat >> confdefs.h
<<EOF
6110 #define USE_CONFIG $USE_CONFIG
6115 if test "$USE_TIMEDATE" = 1 ; then
6116 cat >> confdefs.h
<<EOF
6117 #define USE_TIMEDATE $USE_TIMEDATE
6122 if test "$USE_FRACTION" = 1 ; then
6123 cat >> confdefs.h
<<EOF
6124 #define USE_FRACTION $USE_FRACTION
6129 if test "$USE_LOG" = 1 ; then
6130 cat >> confdefs.h
<<EOF
6131 #define USE_LOG $USE_LOG
6136 if test "$USE_INTL" = 1 ; then
6137 cat >> confdefs.h
<<EOF
6138 #define USE_INTL $USE_INTL
6143 if test "$USE_STREAMS" = 1 ; then
6144 cat >> confdefs.h
<<EOF
6145 #define USE_STREAMS $USE_STREAMS
6150 if test "$USE_SERIAL" = 1 ; then
6151 cat >> confdefs.h
<<EOF
6152 #define USE_SERIAL $USE_SERIAL
6157 if test "$USE_FILE" = 1 ; then
6158 cat >> confdefs.h
<<EOF
6159 #define USE_FILE $USE_FILE
6164 if test "$USE_TEXTFILE" = 1 ; then
6165 cat >> confdefs.h
<<EOF
6166 #define USE_TEXTFILE $USE_TEXTFILE
6172 if test "$USE_RPC" = 1 ; then
6173 cat >> confdefs.h
<<EOF
6174 #define USE_RPC $USE_RPC
6179 if test "$USE_WX_RESOURCES" = 1 ; then
6180 cat >> confdefs.h
<<EOF
6181 #define USE_WX_RESOURCES $USE_WX_RESOURCES
6186 if test "$USE_PROLOGIO" = 1 ; then
6187 cat >> confdefs.h
<<EOF
6188 #define USE_PROLOGIO 1
6194 if test "$USE_POSTSCRIPT" = 1 ; then
6195 cat >> confdefs.h
<<EOF
6196 #define USE_POSTSCRIPT 1
6201 cat >> confdefs.h
<<EOF
6202 #define USE_AFM_FOR_POSTSCRIPT $USE_AFM_FOR_POSTSCRIPT
6206 cat >> confdefs.h
<<EOF
6207 #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
6212 if test "$USE_MDI_ARCHITECTURE" = 1 ; then
6213 cat >> confdefs.h
<<EOF
6214 #define USE_MDI_ARCHITECTURE $USE_MDI_ARCHITECTURE
6219 if test "$USE_DOC_VIEW_ARCHITECTURE" = 1 ; then
6220 cat >> confdefs.h
<<EOF
6221 #define USE_DOC_VIEW_ARCHITECTURE $USE_DOC_VIEW_ARCHITECTURE
6226 if test "$USE_PRINTING_ARCHITECTURE" = 1 ; then
6227 cat >> confdefs.h
<<EOF
6228 #define USE_PRINTING_ARCHITECTURE $USE_PRINTING_ARCHITECTURE
6234 if test "$USE_IPC" = 1 ; then
6235 cat >> confdefs.h
<<EOF
6241 if test "$USE_RESOURCES" = 1 ; then
6242 cat >> confdefs.h
<<EOF
6243 #define USE_RESOURCES $USE_RESOURCES
6248 if test "$USE_CLIPBOARD" = 1 ; then
6249 cat >> confdefs.h
<<EOF
6250 #define USE_CLIPBOARD $USE_CLIPBOARD
6255 if test "$USE_DND" = 1 ; then
6256 cat >> confdefs.h
<<EOF
6257 #define USE_DND $USE_DND
6262 if test "$USE_CONSTRAINTS" = 1 ; then
6263 cat >> confdefs.h
<<EOF
6264 #define USE_CONSTRAINTS $USE_CONSTRAINTS
6271 if test "$USE_METAFILE" = 1 ; then
6273 cat >> confdefs.h
<<EOF
6274 #define USE_METAFILE $USE_METAFILE
6281 if test "$USE_HELP" = 1 ; then
6283 cat >> confdefs.h
<<EOF
6284 #define USE_HELP $USE_HELP
6291 if test "$USE_WXGRAPH" = 1 ; then
6293 cat >> confdefs.h
<<EOF
6294 #define USE_WXGRAPH $USE_WXGRAPH
6301 if test "$USE_WXTREE" = 1 ; then
6303 cat >> confdefs.h
<<EOF
6304 #define USE_WXTREE $USE_WXTREE
6311 if test "$USE_OPENGL" = 1 ; then
6325 # Check whether --with-threads or --without-threads was given.
6326 if test "${with_threads+set}" = set; then
6327 withval
="$with_threads"
6328 USE_THREADS
="$withval"
6332 if test "$USE_THREADS" = "1"; then
6333 UNIX_THREAD
="gtk/threadno.cpp"
6336 echo $ac_n "checking for pthread_create in -lpthread-0.7""... $ac_c" 1>&6
6337 echo "configure:6338: checking for pthread_create in -lpthread-0.7" >&5
6338 ac_lib_var
=`echo pthread-0.7'_'pthread_create | sed 'y%./+-%__p_%'`
6339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6340 echo $ac_n "(cached) $ac_c" 1>&6
6342 ac_save_LIBS
="$LIBS"
6343 LIBS
="-lpthread-0.7 $LIBS"
6344 cat > conftest.
$ac_ext <<EOF
6345 #line 6346 "configure"
6346 #include "confdefs.h"
6347 /* Override any gcc2 internal prototype to avoid an error. */
6348 /* We use char because int might match the return type of a gcc2
6349 builtin and then its argument prototype would still apply. */
6350 char pthread_create();
6356 if { (eval echo configure
:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6358 eval "ac_cv_lib_$ac_lib_var=yes"
6360 echo "configure: failed program was:" >&5
6361 cat conftest.
$ac_ext >&5
6363 eval "ac_cv_lib_$ac_lib_var=no"
6366 LIBS
="$ac_save_LIBS"
6369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6370 echo "$ac_t""yes" 1>&6
6372 UNIX_THREAD
="gtk/threadpsx.cpp"
6373 THREADS_LINK
="-lpthread-0.7"
6376 echo "$ac_t""no" 1>&6
6378 ac_safe
=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
6379 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
6380 echo "configure:6381: checking for sys/prctl.h" >&5
6381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6382 echo $ac_n "(cached) $ac_c" 1>&6
6384 cat > conftest.
$ac_ext <<EOF
6385 #line 6386 "configure"
6386 #include "confdefs.h"
6387 #include <sys/prctl.h>
6389 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6390 { (eval echo configure
:6391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6391 ac_err
=`grep -v '^ *+' conftest.out`
6392 if test -z "$ac_err"; then
6394 eval "ac_cv_header_$ac_safe=yes"
6397 echo "configure: failed program was:" >&5
6398 cat conftest.
$ac_ext >&5
6400 eval "ac_cv_header_$ac_safe=no"
6404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6405 echo "$ac_t""yes" 1>&6
6407 UNIX_THREAD
="gtk/threadsgi.cpp"
6410 echo "$ac_t""no" 1>&6
6415 echo $ac_n "checking for pthread_setcanceltype in -lpthread""... $ac_c" 1>&6
6416 echo "configure:6417: checking for pthread_setcanceltype in -lpthread" >&5
6417 ac_lib_var
=`echo pthread'_'pthread_setcanceltype | sed 'y%./+-%__p_%'`
6418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6419 echo $ac_n "(cached) $ac_c" 1>&6
6421 ac_save_LIBS
="$LIBS"
6422 LIBS
="-lpthread $LIBS"
6423 cat > conftest.
$ac_ext <<EOF
6424 #line 6425 "configure"
6425 #include "confdefs.h"
6426 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6429 char pthread_setcanceltype();
6432 pthread_setcanceltype()
6435 if { (eval echo configure
:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6437 eval "ac_cv_lib_$ac_lib_var=yes"
6439 echo "configure: failed program was:" >&5
6440 cat conftest.
$ac_ext >&5
6442 eval "ac_cv_lib_$ac_lib_var=no"
6445 LIBS
="$ac_save_LIBS"
6448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6449 echo "$ac_t""yes" 1>&6
6451 UNIX_THREAD
="gtk/threadpsx.cpp"
6452 THREADS_LINK
="-lpthread"
6455 echo "$ac_t""no" 1>&6
6461 echo $ac_n "checking for pthread_setcanceltype in -lpthreads""... $ac_c" 1>&6
6462 echo "configure:6463: checking for pthread_setcanceltype in -lpthreads" >&5
6463 ac_lib_var
=`echo pthreads'_'pthread_setcanceltype | sed 'y%./+-%__p_%'`
6464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6465 echo $ac_n "(cached) $ac_c" 1>&6
6467 ac_save_LIBS
="$LIBS"
6468 LIBS
="-lpthreads $LIBS"
6469 cat > conftest.
$ac_ext <<EOF
6470 #line 6471 "configure"
6471 #include "confdefs.h"
6472 /* Override any gcc2 internal prototype to avoid an error. */
6473 /* We use char because int might match the return type of a gcc2
6474 builtin and then its argument prototype would still apply. */
6475 char pthread_setcanceltype();
6478 pthread_setcanceltype()
6481 if { (eval echo configure
:6482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6483 eval "ac_cv_lib_$ac_lib_var=yes"
6485 echo "configure: failed program was:" >&5
6486 cat conftest.
$ac_ext >&5
6488 eval "ac_cv_lib_$ac_lib_var=no"
6491 LIBS
="$ac_save_LIBS"
6494 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6495 echo "$ac_t""yes" 1>&6
6497 UNIX_THREAD
="gtk/threadpsx.cpp"
6498 THREADS_LINK
="-lpthreads"
6501 echo "$ac_t""no" 1>&6
6506 if test -z "$UNIX_THREAD"; then
6512 cat >> confdefs.h
<<\EOF
6513 #define USE_THREADS 1
6523 if test "$USE_OPENGL" = 1; then
6524 echo $ac_n "checking for OpenGL includes""... $ac_c" 1>&6
6525 echo "configure:6526: checking for OpenGL includes" >&5
6528 for ac_dir
in $SEARCH_INCLUDE;
6530 if test -f "$ac_dir/GL/gl.h"; then
6531 ac_find_includes
=$ac_dir
6536 if test "$ac_find_includes" != "" ; then
6537 OPENGL_INCLUDE
="-I$ac_find_includes"
6538 echo "$ac_t""found $ac_find_includes" 1>&6
6539 echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
6540 echo "configure:6541: checking for OpenGL library" >&5
6543 for ac_dir
in $SEARCH_LIB;
6545 for ac_extension
in a so sl
; do
6546 if test -f "$ac_dir/libGL.$ac_extension"; then
6547 ac_find_libraries
=$ac_dir
6553 if test "$ac_find_libraries" != "" ; then
6555 ac_path_to_include
=$ac_find_includes
6556 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
6558 if test $result = 0; then
6559 ac_path_to_include
=""
6561 ac_path_to_include
="-I$ac_find_includes"
6565 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6567 if test $result = 0; then
6570 ac_path_to_link
="-L$ac_find_libraries"
6573 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
6574 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
6575 OPENGL_LIBRARY
="$ac_path_to_link"
6576 OPENGL_INCLUDE
="$ac_path_to_include"
6578 echo "$ac_t""found OpenGL at $ac_find_libraries" 1>&6
6582 for ac_dir
in $SEARCH_LIB;
6584 for ac_extension
in a so sl
; do
6585 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
6586 ac_find_libraries
=$ac_dir
6592 if test "$ac_find_libraries" != "" ; then
6594 ac_path_to_include
=$ac_find_includes
6595 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
6597 if test $result = 0; then
6598 ac_path_to_include
=""
6600 ac_path_to_include
="-I$ac_find_includes"
6604 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6606 if test $result = 0; then
6609 ac_path_to_link
="-L$ac_find_libraries"
6612 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
6613 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
6614 OPENGL_LIBRARY
="$ac_path_to_link"
6615 OPENGL_INCLUDE
="$ac_path_to_include"
6616 OPENGL_LINK
="-lMesaGL"
6617 echo "$ac_t""found MESA at $ac_find_libraries" 1>&6
6619 { echo "configure: error: no" 1>&2; exit 1; }
6623 { echo "configure: error: no" 1>&2; exit 1; }
6629 if test "$USE_OPENGL" != 1; then
6636 cat >> confdefs.h
<<EOF
6637 #define USE_GLX $USE_GLX
6648 case "${canonical}" in
6651 if test "${CC}" != "gcc" ; then
6652 CXXFLAGS
="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
6653 CFLAGS
="${CFLAGS} -z -D_HPUX_SOURCE"
6659 CREATE_SHARED
=sharedHpux
6664 CREATE_SHARED
=sharedLinux
6667 *-*-irix5* | *-*-irix6* )
6668 # PICFLAGS can remain empty, as pic is the default
6670 CREATE_SHARED
=sharedIrix
6671 cat >> confdefs.h
<<\EOF
6678 if test "${CC}" != "gcc" ; then
6683 CREATE_SHARED
=sharedSolaris2
6684 cat >> confdefs.h
<<\EOF
6691 if test "${CC}" != "gcc" ; then
6697 CREATE_SHARED
=sharedSunos4
6698 cat >> confdefs.h
<<\EOF
6704 *-*-freebsd* | *-*-netbsd*)
6706 CREATE_SHARED
=sharedBsd
6707 cat >> confdefs.h
<<\EOF
6715 CREATE_SHARED
=sharedOSF
6719 if test "${CC}" != "gcc" ; then
6724 CREATE_SHARED
=sharedDgux
6725 cat >> confdefs.h
<<\EOF
6732 if test "${CC}" != "gcc" ; then
6737 CREATE_SHARED
=sharedSysV
6738 cat >> confdefs.h
<<\EOF
6745 if test "${CC}" != "gcc" ; then
6750 CREATE_SHARED
=sharedAIX
6751 cat >> confdefs.h
<<\EOF
6762 if test "x$GCC" = xyes
; then
6763 CFLAGS
="${CFLAGS} -Wall"
6766 if test "x$GXX" = xyes
; then
6767 CXXFLAGS
="${CXXFLAGS} -Wall"
6770 if test "$USE_SHARED" != 1; then
6780 echo $OS >> system.list
6784 cat > confcache
<<\EOF
6785 # This file is a shell script that caches the results of configure
6786 # tests run on this system so they can be shared between configure
6787 # scripts and configure runs. It is not useful on other systems.
6788 # If it contains results you don't want to keep, you may remove or edit it.
6790 # By default, configure uses ./config.cache as the cache file,
6791 # creating it if it does not exist already. You can give configure
6792 # the --cache-file=FILE option to use a different cache file; that is
6793 # what configure does when it calls configure scripts in
6794 # subdirectories, so they share the cache.
6795 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6796 # config.status only pays attention to the cache file if you give it the
6797 # --recheck option to rerun configure.
6800 # The following way of writing the cache mishandles newlines in values,
6801 # but we know of no workaround that is simple, portable, and efficient.
6802 # So, don't put newlines in cache variables' values.
6803 # Ultrix sh set writes to stderr and can't be redirected directly,
6804 # and sets the high bit in the cache file unless we assign to the vars.
6806 case `(ac_space=' '; set) 2>&1` in
6808 # `set' does not quote correctly, so add quotes (double-quote substitution
6809 # turns \\\\ into \\, and sed turns \\ into \).
6811 -e "s/'/'\\\\''/g" \
6812 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6815 # `set' quotes correctly as required by POSIX, so do not add quotes.
6816 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6819 if cmp -s $cache_file confcache
; then
6822 if test -w $cache_file; then
6823 echo "updating cache $cache_file"
6824 cat confcache
> $cache_file
6826 echo "not updating unwritable cache $cache_file"
6831 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6833 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6834 # Let make expand exec_prefix.
6835 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6837 # Any assignment to VPATH causes Sun make to only execute
6838 # the first set of double-colon rules, so remove it if not needed.
6839 # If there is a colon in the path, we need to keep it.
6840 if test "x$srcdir" = x.
; then
6841 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6844 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6846 DEFS
=-DHAVE_CONFIG_H
6848 # Without the "./", some shells look in PATH for config.status.
6849 : ${CONFIG_STATUS=./config.status}
6851 echo creating
$CONFIG_STATUS
6852 rm -f $CONFIG_STATUS
6853 cat > $CONFIG_STATUS <<EOF
6855 # Generated automatically by configure.
6856 # Run this file to recreate the current configuration.
6857 # This directory was configured as follows,
6858 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6860 # $0 $ac_configure_args
6862 # Compiler output produced by configure, useful for debugging
6863 # configure, is in ./config.log if it exists.
6865 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6868 case "\$ac_option" in
6869 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6870 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6871 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6872 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6873 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6875 -help | --help | --hel | --he | --h)
6876 echo "\$ac_cs_usage"; exit 0 ;;
6877 *) echo "\$ac_cs_usage"; exit 1 ;;
6881 ac_given_srcdir=$srcdir
6882 ac_given_INSTALL="$INSTALL"
6884 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
6886 cat >> $CONFIG_STATUS <<EOF
6888 # Protect against being on the right side of a sed subst in config.status.
6889 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6890 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6893 s%@CFLAGS@%$CFLAGS%g
6894 s%@CPPFLAGS@%$CPPFLAGS%g
6895 s%@CXXFLAGS@%$CXXFLAGS%g
6897 s%@LDFLAGS@%$LDFLAGS%g
6899 s%@exec_prefix@%$exec_prefix%g
6900 s%@prefix@%$prefix%g
6901 s%@program_transform_name@%$program_transform_name%g
6902 s%@bindir@%$bindir%g
6903 s%@sbindir@%$sbindir%g
6904 s%@libexecdir@%$libexecdir%g
6905 s%@datadir@%$datadir%g
6906 s%@sysconfdir@%$sysconfdir%g
6907 s%@sharedstatedir@%$sharedstatedir%g
6908 s%@localstatedir@%$localstatedir%g
6909 s%@libdir@%$libdir%g
6910 s%@includedir@%$includedir%g
6911 s%@oldincludedir@%$oldincludedir%g
6912 s%@infodir@%$infodir%g
6913 s%@mandir@%$mandir%g
6914 s%@WXBASEDIR@%$WXBASEDIR%g
6918 s%@CXXCPP@%$CXXCPP%g
6919 s%@RANLIB@%$RANLIB%g
6921 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6922 s%@INSTALL_DATA@%$INSTALL_DATA%g
6925 s%@X_CFLAGS@%$X_CFLAGS%g
6926 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6927 s%@X_LIBS@%$X_LIBS%g
6928 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6929 s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
6930 s%@LIBOBJS@%$LIBOBJS%g
6933 s%@LEXLIB@%$LEXLIB%g
6934 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6936 s%@host_alias@%$host_alias%g
6937 s%@host_cpu@%$host_cpu%g
6938 s%@host_vendor@%$host_vendor%g
6939 s%@host_os@%$host_os%g
6940 s%@GTK_CONFIG@%$GTK_CONFIG%g
6941 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
6942 s%@GTK_LIBS@%$GTK_LIBS%g
6943 s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
6944 s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
6945 s%@GUI_TK_LINK@%$GUI_TK_LINK%g
6946 s%@TOOLKIT@%$TOOLKIT%g
6947 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
6948 s%@MAKEINCLUDE@%$MAKEINCLUDE%g
6949 s%@WXDEBUG@%$WXDEBUG%g
6950 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
6951 s%@EXTRA_LINK@%$EXTRA_LINK%g
6952 s%@PROFILE@%$PROFILE%g
6953 s%@OPTIMISE@%$OPTIMISE%g
6954 s%@METAFILE@%$METAFILE%g
6956 s%@WXGRAPH@%$WXGRAPH%g
6957 s%@WXTREE@%$WXTREE%g
6958 s%@DL_LIBRARY@%$DL_LIBRARY%g
6959 s%@UNIX_THREAD@%$UNIX_THREAD%g
6960 s%@THREADS_LINK@%$THREADS_LINK%g
6961 s%@OPENGL_INCLUDE@%$OPENGL_INCLUDE%g
6962 s%@OPENGL_LIBRARY@%$OPENGL_LIBRARY%g
6963 s%@OPENGL_LINK@%$OPENGL_LINK%g
6964 s%@GLCANVAS@%$GLCANVAS%g
6966 s%@PICFLAGS@%$PICFLAGS%g
6967 s%@CREATE_SHARED@%$CREATE_SHARED%g
6972 cat >> $CONFIG_STATUS <<\EOF
6974 # Split the substitutions into bite-sized pieces for seds with
6975 # small command number limits, like on Digital OSF/1 and HP-UX.
6976 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6977 ac_file
=1 # Number of current file.
6978 ac_beg
=1 # First line for current file.
6979 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6982 while $ac_more_lines; do
6983 if test $ac_beg -gt 1; then
6984 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6986 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6988 if test ! -s conftest.s
$ac_file; then
6990 rm -f conftest.s
$ac_file
6992 if test -z "$ac_sed_cmds"; then
6993 ac_sed_cmds
="sed -f conftest.s$ac_file"
6995 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6997 ac_file
=`expr $ac_file + 1`
6999 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7002 if test -z "$ac_sed_cmds"; then
7007 cat >> $CONFIG_STATUS <<EOF
7009 CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"}
7011 cat >> $CONFIG_STATUS <<\EOF
7012 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7013 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7015 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7016 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7017 *) ac_file_in
="${ac_file}.in" ;;
7020 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7022 # Remove last slash and all that follows it. Not all systems have dirname.
7023 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7024 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7025 # The file is in a subdirectory.
7026 test ! -d "$ac_dir" && mkdir "$ac_dir"
7027 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7028 # A "../" for each directory in $ac_dir_suffix.
7029 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7031 ac_dir_suffix
= ac_dots
=
7034 case "$ac_given_srcdir" in
7036 if test -z "$ac_dots"; then top_srcdir
=.
7037 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7038 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7040 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7041 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7044 case "$ac_given_INSTALL" in
7045 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7046 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7049 echo creating
"$ac_file"
7051 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7053 *Makefile
*) ac_comsub
="1i\\
7054 # $configure_input" ;;
7058 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7060 s%@configure_input@%$configure_input%g
7061 s%@srcdir@%$srcdir%g
7062 s%@top_srcdir@%$top_srcdir%g
7063 s%@INSTALL@%$INSTALL%g
7064 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7068 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7069 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7071 # ac_d sets the value in "#define NAME VALUE" lines.
7072 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7073 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7076 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7077 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7078 ac_uB
='\([ ]\)%\1#\2define\3'
7081 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7082 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7083 ac_eB
='$%\1#\2define\3'
7087 if test "${CONFIG_HEADERS+set}" != set; then
7089 cat >> $CONFIG_STATUS <<EOF
7090 CONFIG_HEADERS="./include/wx/gtk/setup.h:./setup/setup.hin"
7092 cat >> $CONFIG_STATUS <<\EOF
7094 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7095 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7097 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7098 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7099 *) ac_file_in
="${ac_file}.in" ;;
7102 echo creating
$ac_file
7104 rm -f conftest.frag conftest.
in conftest.out
7105 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7106 cat $ac_file_inputs > conftest.
in
7110 # Transform confdefs.h into a sed script conftest.vals that substitutes
7111 # the proper values into config.h.in to produce config.h. And first:
7112 # Protect against being on the right side of a sed subst in config.status.
7113 # Protect against being in an unquoted here document in config.status.
7115 cat > conftest.hdr
<<\EOF
7118 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7122 sed -n -f conftest.hdr confdefs.h > conftest.vals
7125 # This sed command replaces #undef with comments. This is necessary, for
7126 # example, in the case of _POSIX_SOURCE, which is predefined and required
7127 # on some systems where configure will not decide to define it.
7128 cat >> conftest.vals <<\EOF
7129 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7132 # Break up conftest.vals because some shells have a limit on
7133 # the size of here documents, and old seds have small limits too.
7138 ac_lines=`grep -c . conftest.vals
`
7139 # grep -c gives empty output for an empty file on some AIX systems.
7140 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7141 # Write a limited-size here document to conftest.frag.
7142 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7143 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7145 sed -f conftest.frag conftest.in > conftest.out
7147 mv conftest.out conftest.in
7149 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7151 mv conftest.tail conftest.vals
7155 cat >> $CONFIG_STATUS <<\EOF
7156 rm -f conftest.frag conftest.h
7157 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7158 cat conftest.in >> conftest.h
7160 if cmp -s $ac_file conftest.h 2>/dev/null; then
7161 echo "$ac_file is unchanged"
7164 # Remove last slash and all that follows it. Not all systems have dirname.
7165 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7166 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7167 # The file is in a subdirectory.
7168 test ! -d "$ac_dir" && mkdir "$ac_dir"
7171 mv conftest.h $ac_file
7176 cat >> $CONFIG_STATUS <<EOF
7179 cat >> $CONFIG_STATUS <<\EOF
7180 ./setup/general/createall
7183 chmod +x $CONFIG_STATUS
7184 rm -fr confdefs* $ac_clean_files
7185 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7189 mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache