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"
17 **--with-shared create shared libraries"
19 **--without-optimise create unoptimised code"
21 **--with-debug_flag create code with DEBUG define set to 1"
23 **--with-debug_info create code with debuging information included"
25 **--with-mem_traing create code with memory tracing"
27 **--with-profile create code with profiling information included"
29 **--with-zlib use zlib (LZW comression)"
31 **--with-gdk_imlib use Raster's gdk_imlib (Image library)"
33 **--with-libpng use libpng (PNG image format)"
35 **--with-threads use threads"
37 **--with-opengl use opengl (OpenGL or Mesa)"
39 **--with-storable use storable classes"
41 **--with-autotrans use gettext automatic translation"
43 **--with-afmfonts use Adobe Font Metric Font table"
45 **--with-PS-normalized use normalized PS fonts"
49 **--with-wxresources use wxresources"
51 **--with-prologio use prologio"
53 **--with-postscript use postscript-device-context"
55 **--with-metafile use metafile"
57 **--with-form use form"
59 **--with-help use help"
63 **--with-enhanceddialog use enhanced dialog"
65 **--with-resources use resources"
67 **--with-clipboard use clipboard"
69 **--with-timedate use timedate"
71 **--with-fraction use fraction"
73 **--with-constraints use constraints"
75 **--with-toolbar use toolbar"
77 **--with-gauge use gauge"
79 **--with-vlbox use virtual list box"
81 **--with-scrollbar use scrollbar"
83 **--with-docview use document view architecture"
85 **--with-printarch use printing architecture"
87 **--with-typetree use typetree"
89 **--with-wxgraph use wxgraph"
91 **--with-wxtree use wxtree"
93 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
95 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
97 # Initialize some variables set by options.
98 # The variables have the same names as the options, with
99 # dashes changed to underlines.
101 cache_file
=.
/config.cache
110 program_transform_name
=s
,x
,x
,
118 bindir
='${exec_prefix}/bin'
119 sbindir
='${exec_prefix}/sbin'
120 libexecdir
='${exec_prefix}/libexec'
121 datadir
='${prefix}/share'
122 sysconfdir
='${prefix}/etc'
123 sharedstatedir
='${prefix}/com'
124 localstatedir
='${prefix}/var'
125 libdir
='${exec_prefix}/lib'
126 includedir
='${prefix}/include'
127 oldincludedir
='/usr/include'
128 infodir
='${prefix}/info'
129 mandir
='${prefix}/man'
131 # Initialize some other variables.
134 # Maximum number of lines to put in a shell here document.
141 # If the previous option needs an argument, assign it.
142 if test -n "$ac_prev"; then
143 eval "$ac_prev=\$ac_option"
149 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
153 # Accept the important Cygnus configure options, so we can diagnose typos.
157 -bindir | --bindir | --bindi | --bind | --bin | --bi)
159 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
160 bindir
="$ac_optarg" ;;
162 -build | --build | --buil | --bui | --bu)
164 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
165 build
="$ac_optarg" ;;
167 -cache-file | --cache-file | --cache-fil | --cache-fi \
168 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
169 ac_prev
=cache_file
;;
170 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
171 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
172 cache_file
="$ac_optarg" ;;
174 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
176 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
178 datadir
="$ac_optarg" ;;
180 -disable-* | --disable-*)
181 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}=no" ;;
189 -enable-* | --enable-*)
190 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
191 # Reject names that are not valid shell variable names.
192 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
193 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
195 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
200 eval "enable_${ac_feature}='$ac_optarg'" ;;
202 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
203 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
204 | --exec | --exe | --ex)
205 ac_prev
=exec_prefix
;;
206 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
207 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
208 | --exec=* | --exe=* | --ex=*)
209 exec_prefix
="$ac_optarg" ;;
211 -gas | --gas | --ga | --g)
212 # Obsolete; use --with-gas.
215 -help | --help | --hel | --he)
216 # Omit some internal or obsolete options to make the list less imposing.
217 # This message is too long to be a string in the A/UX 3.1 sh.
219 Usage: configure [options] [host]
220 Options: [defaults in brackets after descriptions]
222 --cache-file=FILE cache test results in FILE
223 --help print this message
224 --no-create do not create output files
225 --quiet, --silent do not print \`checking...' messages
226 --version print the version of autoconf that created configure
227 Directory and file names:
228 --prefix=PREFIX install architecture-independent files in PREFIX
230 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
232 --bindir=DIR user executables in DIR [EPREFIX/bin]
233 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
234 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
235 --datadir=DIR read-only architecture-independent data in DIR
237 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
238 --sharedstatedir=DIR modifiable architecture-independent data in DIR
240 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
241 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
242 --includedir=DIR C header files in DIR [PREFIX/include]
243 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
244 --infodir=DIR info documentation in DIR [PREFIX/info]
245 --mandir=DIR man documentation in DIR [PREFIX/man]
246 --srcdir=DIR find the sources in DIR [configure dir or ..]
247 --program-prefix=PREFIX prepend PREFIX to installed program names
248 --program-suffix=SUFFIX append SUFFIX to installed program names
249 --program-transform-name=PROGRAM
250 run sed PROGRAM on installed program names
254 --build=BUILD configure for building on BUILD [BUILD=HOST]
255 --host=HOST configure for HOST [guessed]
256 --target=TARGET configure for TARGET [TARGET=HOST]
257 Features and packages:
258 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
259 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
260 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
261 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
262 --x-includes=DIR X include files are in DIR
263 --x-libraries=DIR X library files are in DIR
265 if test -n "$ac_help"; then
266 echo "--enable and --with options recognized:$ac_help"
270 -host | --host | --hos | --ho)
272 -host=* | --host=* | --hos=* | --ho=*)
275 -includedir | --includedir | --includedi | --included | --include \
276 | --includ | --inclu | --incl | --inc)
277 ac_prev
=includedir
;;
278 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
279 | --includ=* | --inclu=* | --incl=* | --inc=*)
280 includedir
="$ac_optarg" ;;
282 -infodir | --infodir | --infodi | --infod | --info | --inf)
284 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
285 infodir
="$ac_optarg" ;;
287 -libdir | --libdir | --libdi | --libd)
289 -libdir=* | --libdir=* | --libdi=* | --libd=*)
290 libdir
="$ac_optarg" ;;
292 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
293 | --libexe | --libex | --libe)
294 ac_prev
=libexecdir
;;
295 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
296 | --libexe=* | --libex=* | --libe=*)
297 libexecdir
="$ac_optarg" ;;
299 -localstatedir | --localstatedir | --localstatedi | --localstated \
300 | --localstate | --localstat | --localsta | --localst \
301 | --locals | --local | --loca | --loc | --lo)
302 ac_prev
=localstatedir
;;
303 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
304 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
305 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
306 localstatedir
="$ac_optarg" ;;
308 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
310 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
311 mandir
="$ac_optarg" ;;
314 # Obsolete; use --without-fp.
317 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
321 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
322 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
325 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
326 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
327 | --oldin | --oldi | --old | --ol | --o)
328 ac_prev
=oldincludedir
;;
329 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
330 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
331 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
332 oldincludedir
="$ac_optarg" ;;
334 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
336 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
337 prefix
="$ac_optarg" ;;
339 -program-prefix | --program-prefix | --program-prefi | --program-pref \
340 | --program-pre | --program-pr | --program-p)
341 ac_prev
=program_prefix
;;
342 -program-prefix=* | --program-prefix=* | --program-prefi=* \
343 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
344 program_prefix
="$ac_optarg" ;;
346 -program-suffix | --program-suffix | --program-suffi | --program-suff \
347 | --program-suf | --program-su | --program-s)
348 ac_prev
=program_suffix
;;
349 -program-suffix=* | --program-suffix=* | --program-suffi=* \
350 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
351 program_suffix
="$ac_optarg" ;;
353 -program-transform-name | --program-transform-name \
354 | --program-transform-nam | --program-transform-na \
355 | --program-transform-n | --program-transform- \
356 | --program-transform | --program-transfor \
357 | --program-transfo | --program-transf \
358 | --program-trans | --program-tran \
359 | --progr-tra | --program-tr | --program-t)
360 ac_prev
=program_transform_name
;;
361 -program-transform-name=* | --program-transform-name=* \
362 | --program-transform-nam=* | --program-transform-na=* \
363 | --program-transform-n=* | --program-transform-=* \
364 | --program-transform=* | --program-transfor=* \
365 | --program-transfo=* | --program-transf=* \
366 | --program-trans=* | --program-tran=* \
367 | --progr-tra=* | --program-tr=* | --program-t=*)
368 program_transform_name
="$ac_optarg" ;;
370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
371 | -silent | --silent | --silen | --sile | --sil)
374 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
376 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
378 sbindir
="$ac_optarg" ;;
380 -sharedstatedir | --sharedstatedir | --sharedstatedi \
381 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
382 | --sharedst | --shareds | --shared | --share | --shar \
384 ac_prev
=sharedstatedir
;;
385 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
386 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
387 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
389 sharedstatedir
="$ac_optarg" ;;
391 -site | --site | --sit)
393 -site=* | --site=* | --sit=*)
396 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
398 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
399 srcdir
="$ac_optarg" ;;
401 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
402 | --syscon | --sysco | --sysc | --sys | --sy)
403 ac_prev
=sysconfdir
;;
404 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
405 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
406 sysconfdir
="$ac_optarg" ;;
408 -target | --target | --targe | --targ | --tar | --ta | --t)
410 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
411 target
="$ac_optarg" ;;
413 -v | -verbose | --verbose | --verbos | --verbo | --verb)
416 -version | --version | --versio | --versi | --vers)
417 echo "configure generated by autoconf version 2.12"
421 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}='$ac_optarg'" ;;
433 -without-* | --without-*)
434 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
435 # Reject names that are not valid shell variable names.
436 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
437 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
439 ac_package
=`echo $ac_package| sed 's/-/_/g'`
440 eval "with_${ac_package}=no" ;;
443 # Obsolete; use --with-x.
446 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
447 | --x-incl | --x-inc | --x-in | --x-i)
448 ac_prev
=x_includes
;;
449 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
450 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
451 x_includes
="$ac_optarg" ;;
453 -x-libraries | --x-libraries | --x-librarie | --x-librari \
454 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
455 ac_prev
=x_libraries
;;
456 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
457 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
458 x_libraries
="$ac_optarg" ;;
460 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
464 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
465 echo "configure: warning: $ac_option: invalid host type" 1>&2
467 if test "x$nonopt" != xNONE
; then
468 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
476 if test -n "$ac_prev"; then
477 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
480 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
482 # File descriptor usage:
485 # 2 errors and warnings
486 # 3 some systems may open it to /dev/tty
487 # 4 used on the Kubota Titan
488 # 6 checking for... messages and results
489 # 5 compiler messages saved in config.log
490 if test "$silent" = yes; then
498 This file contains any messages produced by compilers while
499 running configure, to aid debugging if configure makes a mistake.
502 # Strip out --no-create and --no-recursion so they do not pile up.
503 # Also quote any args containing shell metacharacters.
508 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
509 | --no-cr | --no-c) ;;
510 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
511 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
513 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
514 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
519 # Only set these to C if already set. These must not be set unconditionally
520 # because not all systems understand e.g. LANG=C (notably SCO).
521 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
522 # Non-C LC_CTYPE values break the ctype check.
523 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
524 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
525 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
526 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
528 # confdefs.h avoids OS command line length limits that DEFS can exceed.
529 rm -rf conftest
* confdefs.h
530 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
533 # A filename unique to this package, relative to the directory that
534 # configure is in, which we can look for to find out if srcdir is correct.
535 ac_unique_file
=configure.
in
537 # Find the source files, if location was not specified.
538 if test -z "$srcdir"; then
539 ac_srcdir_defaulted
=yes
540 # Try the directory containing this script, then its parent.
542 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
543 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
545 if test ! -r $srcdir/$ac_unique_file; then
549 ac_srcdir_defaulted
=no
551 if test ! -r $srcdir/$ac_unique_file; then
552 if test "$ac_srcdir_defaulted" = yes; then
553 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
555 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
558 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
560 # Prefer explicitly selected file to automatically selected ones.
561 if test -z "$CONFIG_SITE"; then
562 if test "x$prefix" != xNONE
; then
563 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
565 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
568 for ac_site_file
in $CONFIG_SITE; do
569 if test -r "$ac_site_file"; then
570 echo "loading site script $ac_site_file"
575 if test -r "$cache_file"; then
576 echo "loading cache $cache_file"
579 echo "creating cache $cache_file"
584 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
585 ac_cpp
='$CPP $CPPFLAGS'
586 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
587 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
588 cross_compiling
=$ac_cv_prog_cc_cross
590 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
591 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
592 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
599 ac_n
= ac_c
='\c' ac_t
=
607 if test "x$OS" = "x"; then
609 { echo "configure: error: "The system variable OS has not been
set"
610 "please
set is everytime befor compiling on this system
"
611 "A good example
for this system would be
:"
612 "setenv OSTYPE
$UNAME for csh as a SHELL
"
613 "EXPORT OSTYPE
=$UNAME for sh as SHELL
"
614 "please
set this and restart again.
"
626 /usr/Motif1.2/include \
636 /usr/local/X11R6/include \
637 /usr/local/X11R5/include \
638 /usr/local/X11R4/include \
640 /usr/local/include/X11R6 \
641 /usr/local/include/X11R5 \
642 /usr/local/include/X11R4 \
646 /usr/local/X11/include \
647 /usr/local/include/X11 \
651 /usr/XFree86/include/X11 \
655 /usr/local/include/gtk \
656 /usr/unsupported/include \
657 /usr/athena/include \
658 /usr/local/x11r5/include \
659 /usr/lpp/Xamples/include \
661 /usr/openwin/include \
662 /usr/openwin/share/include \
665 SEARCH_LIB
="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` \
670 # Extract the first word of "gcc", so it can be a program name with args.
671 set dummy gcc
; ac_word
=$2
672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673 echo "configure:674: checking for $ac_word" >&5
674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
677 if test -n "$CC"; then
678 ac_cv_prog_CC
="$CC" # Let the user override the test.
680 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
681 for ac_dir
in $PATH; do
682 test -z "$ac_dir" && ac_dir
=.
683 if test -f $ac_dir/$ac_word; then
692 if test -n "$CC"; then
693 echo "$ac_t""$CC" 1>&6
695 echo "$ac_t""no" 1>&6
698 if test -z "$CC"; then
699 # Extract the first word of "cc", so it can be a program name with args.
700 set dummy cc
; ac_word
=$2
701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
702 echo "configure:703: checking for $ac_word" >&5
703 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
704 echo $ac_n "(cached) $ac_c" 1>&6
706 if test -n "$CC"; then
707 ac_cv_prog_CC
="$CC" # Let the user override the test.
709 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
711 for ac_dir
in $PATH; do
712 test -z "$ac_dir" && ac_dir
=.
713 if test -f $ac_dir/$ac_word; then
714 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
723 if test $ac_prog_rejected = yes; then
724 # We found a bogon in the path, so make sure we never use it.
725 set dummy
$ac_cv_prog_CC
727 if test $# -gt 0; then
728 # We chose a different compiler from the bogus one.
729 # However, it has the same basename, so the bogon will be chosen
730 # first if we set CC to just the basename; use the full file name.
732 set dummy
"$ac_dir/$ac_word" "$@"
740 if test -n "$CC"; then
741 echo "$ac_t""$CC" 1>&6
743 echo "$ac_t""no" 1>&6
746 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
749 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
750 echo "configure:751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
753 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
754 ac_cpp
='$CPP $CPPFLAGS'
755 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
756 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
757 cross_compiling
=$ac_cv_prog_cc_cross
759 cat > conftest.
$ac_ext <<EOF
760 #line 761 "configure"
761 #include "confdefs.h"
764 if { (eval echo configure
:765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
765 ac_cv_prog_cc_works
=yes
766 # If we can't run a trivial program, we are probably using a cross compiler.
767 if (.
/conftest
; exit) 2>/dev
/null
; then
768 ac_cv_prog_cc_cross
=no
770 ac_cv_prog_cc_cross
=yes
773 echo "configure: failed program was:" >&5
774 cat conftest.
$ac_ext >&5
775 ac_cv_prog_cc_works
=no
779 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
780 if test $ac_cv_prog_cc_works = no
; then
781 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
783 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
784 echo "configure:785: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
785 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
786 cross_compiling
=$ac_cv_prog_cc_cross
788 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
789 echo "configure:790: checking whether we are using GNU C" >&5
790 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
791 echo $ac_n "(cached) $ac_c" 1>&6
793 cat > conftest.c
<<EOF
798 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
805 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
807 if test $ac_cv_prog_gcc = yes; then
809 ac_test_CFLAGS
="${CFLAGS+set}"
810 ac_save_CFLAGS
="$CFLAGS"
812 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
813 echo "configure:814: checking whether ${CC-cc} accepts -g" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 echo 'void f(){}' > conftest.c
818 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
827 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
828 if test "$ac_test_CFLAGS" = set; then
829 CFLAGS
="$ac_save_CFLAGS"
830 elif test $ac_cv_prog_cc_g = yes; then
837 test "${CFLAGS+set}" = set || CFLAGS
="-g"
841 CFLAGS
=`echo "$CFLAGS" | sed 's/-g//g'`
843 if test "x$CC" != xcc
; then
844 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
845 echo "configure:846: checking whether $CC and cc understand -c and -o together" >&5
847 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
848 echo "configure:849: checking whether cc understands -c and -o together" >&5
850 set dummy
$CC; ac_cc
="`echo $2 |
851 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
852 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
855 echo 'foo(){}' > conftest.c
856 # Make sure it works both with $CC and with simple cc.
857 # We do the test twice because some compilers refuse to overwrite an
858 # existing .o file with -o, though they will create one.
859 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
860 if { (eval echo configure
:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
861 test -f conftest.o
&& { (eval echo configure
:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
863 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
864 if test "x$CC" != xcc
; then
865 # Test first that cc exists at all.
866 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
867 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
868 if { (eval echo configure
:869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
869 test -f conftest.o
&& { (eval echo configure
:870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
874 # cc exists but doesn't like -o.
875 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
880 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
885 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
886 echo "$ac_t""yes" 1>&6
888 echo "$ac_t""no" 1>&6
889 cat >> confdefs.h
<<\EOF
890 #define NO_MINUS_C_MINUS_O 1
895 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
896 echo "configure:897: checking how to run the C preprocessor" >&5
897 # On Suns, sometimes $CPP names a directory.
898 if test -n "$CPP" && test -d "$CPP"; then
901 if test -z "$CPP"; then
902 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
905 # This must be in double quotes, not single quotes, because CPP may get
906 # substituted into the Makefile and "${CC-cc}" will confuse make.
908 # On the NeXT, cc -E runs the code through the compiler's parser,
909 # not just through cpp.
910 cat > conftest.
$ac_ext <<EOF
911 #line 912 "configure"
912 #include "confdefs.h"
916 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
917 { (eval echo configure
:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
918 ac_err
=`grep -v '^ *+' conftest.out`
919 if test -z "$ac_err"; then
923 echo "configure: failed program was:" >&5
924 cat conftest.
$ac_ext >&5
926 CPP
="${CC-cc} -E -traditional-cpp"
927 cat > conftest.
$ac_ext <<EOF
928 #line 929 "configure"
929 #include "confdefs.h"
933 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
934 { (eval echo configure
:935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
935 ac_err
=`grep -v '^ *+' conftest.out`
936 if test -z "$ac_err"; then
940 echo "configure: failed program was:" >&5
941 cat conftest.
$ac_ext >&5
948 ac_cv_prog_CPP
="$CPP"
950 CPP
="$ac_cv_prog_CPP"
952 ac_cv_prog_CPP
="$CPP"
954 echo "$ac_t""$CPP" 1>&6
956 if test $ac_cv_prog_gcc = yes; then
957 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
958 echo "configure:959: checking whether ${CC-cc} needs -traditional" >&5
959 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 ac_pattern
="Autoconf.*'x'"
963 cat > conftest.
$ac_ext <<EOF
964 #line 965 "configure"
965 #include "confdefs.h"
969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
970 egrep "$ac_pattern" >/dev
/null
2>&1; then
972 ac_cv_prog_gcc_traditional
=yes
975 ac_cv_prog_gcc_traditional
=no
980 if test $ac_cv_prog_gcc_traditional = no
; then
981 cat > conftest.
$ac_ext <<EOF
982 #line 983 "configure"
983 #include "confdefs.h"
987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
988 egrep "$ac_pattern" >/dev
/null
2>&1; then
990 ac_cv_prog_gcc_traditional
=yes
997 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
998 if test $ac_cv_prog_gcc_traditional = yes; then
999 CC
="$CC -traditional"
1006 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1008 # Extract the first word of "$ac_prog", so it can be a program name with args.
1009 set dummy
$ac_prog; ac_word
=$2
1010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1011 echo "configure:1012: checking for $ac_word" >&5
1012 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1013 echo $ac_n "(cached) $ac_c" 1>&6
1015 if test -n "$CXX"; then
1016 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1018 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1019 for ac_dir
in $PATH; do
1020 test -z "$ac_dir" && ac_dir
=.
1021 if test -f $ac_dir/$ac_word; then
1022 ac_cv_prog_CXX
="$ac_prog"
1029 CXX
="$ac_cv_prog_CXX"
1030 if test -n "$CXX"; then
1031 echo "$ac_t""$CXX" 1>&6
1033 echo "$ac_t""no" 1>&6
1036 test -n "$CXX" && break
1038 test -n "$CXX" || CXX
="gcc"
1041 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1046 ac_cpp
='$CXXCPP $CPPFLAGS'
1047 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1048 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1049 cross_compiling
=$ac_cv_prog_cxx_cross
1051 cat > conftest.
$ac_ext <<EOF
1052 #line 1053 "configure"
1053 #include "confdefs.h"
1056 if { (eval echo configure
:1057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1057 ac_cv_prog_cxx_works
=yes
1058 # If we can't run a trivial program, we are probably using a cross compiler.
1059 if (.
/conftest
; exit) 2>/dev
/null
; then
1060 ac_cv_prog_cxx_cross
=no
1062 ac_cv_prog_cxx_cross
=yes
1065 echo "configure: failed program was:" >&5
1066 cat conftest.
$ac_ext >&5
1067 ac_cv_prog_cxx_works
=no
1071 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1072 ac_cpp
='$CPP $CPPFLAGS'
1073 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1074 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1075 cross_compiling
=$ac_cv_prog_cc_cross
1077 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1078 if test $ac_cv_prog_cxx_works = no
; then
1079 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1081 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1082 echo "configure:1083: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1083 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1084 cross_compiling
=$ac_cv_prog_cxx_cross
1086 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1087 echo "configure:1088: checking whether we are using GNU C++" >&5
1088 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1091 cat > conftest.C
<<EOF
1096 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
1103 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1105 if test $ac_cv_prog_gxx = yes; then
1107 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1108 ac_save_CXXFLAGS
="$CXXFLAGS"
1110 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1111 echo "configure:1112: checking whether ${CXX-g++} accepts -g" >&5
1112 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1115 echo 'void f(){}' > conftest.cc
1116 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1117 ac_cv_prog_cxx_g
=yes
1125 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1126 if test "$ac_test_CXXFLAGS" = set; then
1127 CXXFLAGS
="$ac_save_CXXFLAGS"
1128 elif test $ac_cv_prog_cxx_g = yes; then
1135 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1138 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1139 echo "configure:1140: checking how to run the C++ preprocessor" >&5
1140 if test -z "$CXXCPP"; then
1141 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1145 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1146 ac_cpp
='$CXXCPP $CPPFLAGS'
1147 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1148 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1149 cross_compiling
=$ac_cv_prog_cxx_cross
1150 CXXCPP
="${CXX-g++} -E"
1151 cat > conftest.
$ac_ext <<EOF
1152 #line 1153 "configure"
1153 #include "confdefs.h"
1156 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1157 { (eval echo configure
:1158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1158 ac_err
=`grep -v '^ *+' conftest.out`
1159 if test -z "$ac_err"; then
1163 echo "configure: failed program was:" >&5
1164 cat conftest.
$ac_ext >&5
1169 ac_cv_prog_CXXCPP
="$CXXCPP"
1171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1172 ac_cpp
='$CPP $CPPFLAGS'
1173 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1174 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1175 cross_compiling
=$ac_cv_prog_cc_cross
1178 CXXCPP
="$ac_cv_prog_CXXCPP"
1179 echo "$ac_t""$CXXCPP" 1>&6
1182 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-g//g'`
1186 # Extract the first word of "ranlib", so it can be a program name with args.
1187 set dummy ranlib
; ac_word
=$2
1188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1189 echo "configure:1190: checking for $ac_word" >&5
1190 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 if test -n "$RANLIB"; then
1194 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1196 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1197 for ac_dir
in $PATH; do
1198 test -z "$ac_dir" && ac_dir
=.
1199 if test -f $ac_dir/$ac_word; then
1200 ac_cv_prog_RANLIB
="ranlib"
1205 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1208 RANLIB
="$ac_cv_prog_RANLIB"
1209 if test -n "$RANLIB"; then
1210 echo "$ac_t""$RANLIB" 1>&6
1212 echo "$ac_t""no" 1>&6
1216 # Extract the first word of "ar", so it can be a program name with args.
1217 set dummy
ar; ac_word
=$2
1218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_word" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if test -n "$AR"; then
1224 ac_cv_prog_AR
="$AR" # Let the user override the test.
1226 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1227 for ac_dir
in $PATH; do
1228 test -z "$ac_dir" && ac_dir
=.
1229 if test -f $ac_dir/$ac_word; then
1235 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1239 if test -n "$AR"; then
1240 echo "$ac_t""$AR" 1>&6
1242 echo "$ac_t""no" 1>&6
1247 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1248 if test -f $ac_dir/install-sh; then
1250 ac_install_sh
="$ac_aux_dir/install-sh -c"
1252 elif test -f $ac_dir/install.sh
; then
1254 ac_install_sh
="$ac_aux_dir/install.sh -c"
1258 if test -z "$ac_aux_dir"; then
1259 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1261 ac_config_guess
=$ac_aux_dir/config.guess
1262 ac_config_sub
=$ac_aux_dir/config.sub
1263 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1265 # Find a good install program. We prefer a C program (faster),
1266 # so one script is as good as another. But avoid the broken or
1267 # incompatible versions:
1268 # SysV /etc/install, /usr/sbin/install
1269 # SunOS /usr/etc/install
1270 # IRIX /sbin/install
1272 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1273 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1274 # ./install, which can be erroneously created by make from ./install.sh.
1275 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1276 echo "configure:1277: checking for a BSD compatible install" >&5
1277 if test -z "$INSTALL"; then
1278 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1281 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1282 for ac_dir
in $PATH; do
1283 # Account for people who put trailing slashes in PATH elements.
1285 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1287 # OSF1 and SCO ODT 3.0 have their own names for install.
1288 for ac_prog
in ginstall installbsd scoinst
install; do
1289 if test -f $ac_dir/$ac_prog; then
1290 if test $ac_prog = install &&
1291 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1292 # AIX install. It has an incompatible calling convention.
1293 # OSF/1 installbsd also uses dspmsg, but is usable.
1296 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1307 if test "${ac_cv_path_install+set}" = set; then
1308 INSTALL
="$ac_cv_path_install"
1310 # As a last resort, use the slow shell script. We don't cache a
1311 # path for INSTALL within a source directory, because that will
1312 # break other packages using the cache if that directory is
1313 # removed, or if the path is relative.
1314 INSTALL
="$ac_install_sh"
1317 echo "$ac_t""$INSTALL" 1>&6
1319 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1320 # It thinks the first close brace ends the variable substitution.
1321 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1323 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1326 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1327 echo "configure:1328: checking whether ln -s works" >&5
1328 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1332 if ln -s X conftestdata
2>/dev
/null
1335 ac_cv_prog_LN_S
="ln -s"
1340 LN_S
="$ac_cv_prog_LN_S"
1341 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1342 echo "$ac_t""yes" 1>&6
1344 echo "$ac_t""no" 1>&6
1348 for ac_prog
in mawk gawk nawk
awk
1350 # Extract the first word of "$ac_prog", so it can be a program name with args.
1351 set dummy
$ac_prog; ac_word
=$2
1352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1353 echo "configure:1354: checking for $ac_word" >&5
1354 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1357 if test -n "$AWK"; then
1358 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1360 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1361 for ac_dir
in $PATH; do
1362 test -z "$ac_dir" && ac_dir
=.
1363 if test -f $ac_dir/$ac_word; then
1364 ac_cv_prog_AWK
="$ac_prog"
1371 AWK
="$ac_cv_prog_AWK"
1372 if test -n "$AWK"; then
1373 echo "$ac_t""$AWK" 1>&6
1375 echo "$ac_t""no" 1>&6
1378 test -n "$AWK" && break
1382 echo $ac_n "checking "make for VPATH support
"""... $ac_c" 1>&6
1383 echo "configure:1384: checking "make for VPATH support
"" >&5
1384 cat - << EOF > confMake
1390 if test ! -d sub
; then
1393 echo dummy
> sub
/file
1394 ${MAKE-make} -f confMake VPATH
=sub
2> config.log
> /dev
/null
1396 rm -f sub
/file check final_file config.log confMake
1398 if test "$RESULT" = 0; then
1399 echo "$ac_t""yes" 1>&6
1401 echo "$ac_t""no" 1>&6
1402 { echo "configure: error: You need a make-utility that is able to use the variable
1404 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
1408 # If we find X, set shell vars x_includes and x_libraries to the
1409 # paths, otherwise set no_x=yes.
1410 # Uses ac_ vars as temps to allow command line to override cache and checks.
1411 # --without-x overrides everything else, but does not touch the cache.
1412 echo $ac_n "checking for X""... $ac_c" 1>&6
1413 echo "configure:1414: checking for X" >&5
1415 # Check whether --with-x or --without-x was given.
1416 if test "${with_x+set}" = set; then
1421 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1422 if test "x$with_x" = xno
; then
1423 # The user explicitly disabled X.
1426 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1427 # Both variables are already set.
1430 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 # One or both of the vars are not set, and there is no cached value.
1434 ac_x_includes
=NO ac_x_libraries
=NO
1436 if mkdir conftestdir
; then
1438 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1439 cat > Imakefile
<<'EOF'
1441 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1443 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1444 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1445 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1446 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1447 for ac_extension
in a so sl
; do
1448 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1449 test -f $ac_im_libdir/libX11.
$ac_extension; then
1450 ac_im_usrlibdir
=$ac_im_libdir; break
1453 # Screen out bogus values from the imake configuration. They are
1454 # bogus both because they are the default anyway, and because
1455 # using them would break gcc on systems where it needs fixed includes.
1456 case "$ac_im_incroot" in
1458 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1460 case "$ac_im_usrlibdir" in
1462 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1469 if test "$ac_x_includes" = NO
; then
1470 # Guess where to find include files, by looking for this one X11 .h file.
1471 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1473 # First, try using that file with no special directory specified.
1474 cat > conftest.
$ac_ext <<EOF
1475 #line 1476 "configure"
1476 #include "confdefs.h"
1477 #include <$x_direct_test_include>
1479 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1480 { (eval echo configure
:1481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1481 ac_err
=`grep -v '^ *+' conftest.out`
1482 if test -z "$ac_err"; then
1484 # We can compile using X headers with no special include directory.
1488 echo "configure: failed program was:" >&5
1489 cat conftest.
$ac_ext >&5
1491 # Look for the header file in a standard set of common directories.
1492 # Check X11 before X11Rn because it is often a symlink to the current release.
1495 /usr
/X
11R
6/include \
1496 /usr
/X
11R
5/include \
1497 /usr
/X
11R
4/include \
1500 /usr
/include
/X11R6 \
1501 /usr
/include
/X11R5 \
1502 /usr
/include
/X11R4 \
1504 /usr
/local
/X
11/include \
1505 /usr
/local
/X
11R
6/include \
1506 /usr
/local
/X
11R
5/include \
1507 /usr
/local
/X
11R
4/include \
1509 /usr
/local
/include
/X11 \
1510 /usr
/local
/include
/X11R6 \
1511 /usr
/local
/include
/X11R5 \
1512 /usr
/local
/include
/X11R4 \
1516 /usr
/XFree
86/include
/X11 \
1519 /usr
/local
/include \
1520 /usr
/unsupported
/include \
1521 /usr
/athena
/include \
1522 /usr
/local
/x
11r
5/include \
1523 /usr
/lpp
/Xamples
/include \
1525 /usr
/openwin
/include \
1526 /usr
/openwin
/share
/include \
1529 if test -r "$ac_dir/$x_direct_test_include"; then
1530 ac_x_includes
=$ac_dir
1536 fi # $ac_x_includes = NO
1538 if test "$ac_x_libraries" = NO
; then
1539 # Check for the libraries.
1541 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1542 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1544 # See if we find them without any special options.
1545 # Don't add to $LIBS permanently.
1546 ac_save_LIBS
="$LIBS"
1547 LIBS
="-l$x_direct_test_library $LIBS"
1548 cat > conftest.
$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1553 ${x_direct_test_function}()
1556 if { (eval echo configure
:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1558 LIBS
="$ac_save_LIBS"
1559 # We can link X programs with no special library path.
1562 echo "configure: failed program was:" >&5
1563 cat conftest.
$ac_ext >&5
1565 LIBS
="$ac_save_LIBS"
1566 # First see if replacing the include by lib works.
1567 # Check X11 before X11Rn because it is often a symlink to the current release.
1568 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1579 /usr
/local
/X
11/lib \
1580 /usr
/local
/X
11R
6/lib \
1581 /usr
/local
/X
11R
5/lib \
1582 /usr
/local
/X
11R
4/lib \
1584 /usr
/local
/lib
/X11 \
1585 /usr
/local
/lib
/X11R6 \
1586 /usr
/local
/lib
/X11R5 \
1587 /usr
/local
/lib
/X11R4 \
1591 /usr
/XFree
86/lib
/X11 \
1595 /usr
/unsupported
/lib \
1597 /usr
/local
/x
11r
5/lib \
1598 /usr
/lpp
/Xamples
/lib \
1602 /usr
/openwin
/share
/lib \
1605 for ac_extension
in a so sl
; do
1606 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1607 ac_x_libraries
=$ac_dir
1614 fi # $ac_x_libraries = NO
1616 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
1617 # Didn't find X anywhere. Cache the known absence of X.
1618 ac_cv_have_x
="have_x=no"
1620 # Record where we found X for the cache.
1621 ac_cv_have_x
="have_x=yes \
1622 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1626 eval "$ac_cv_have_x"
1629 if test "$have_x" != yes; then
1630 echo "$ac_t""$have_x" 1>&6
1633 # If each of the values was on the command line, it overrides each guess.
1634 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1635 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1636 # Update the cache value to reflect the command line values.
1637 ac_cv_have_x
="have_x=yes \
1638 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1639 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1642 if test "$no_x" = yes; then
1643 # Not all programs may use this symbol, but it does not hurt to define it.
1644 cat >> confdefs.h
<<\EOF
1645 #define X_DISPLAY_MISSING 1
1648 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1650 if test -n "$x_includes"; then
1651 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1654 # It would also be nice to do this for all -L options, not just this one.
1655 if test -n "$x_libraries"; then
1656 X_LIBS
="$X_LIBS -L$x_libraries"
1657 # For Solaris; some versions of Sun CC require a space after -R and
1658 # others require no space. Words are not sufficient . . . .
1659 case "`(uname -sr) 2>/dev/null`" in
1661 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1662 echo "configure:1663: checking whether -R must be followed by a space" >&5
1663 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1664 cat > conftest.
$ac_ext <<EOF
1665 #line 1666 "configure"
1666 #include "confdefs.h"
1672 if { (eval echo configure
:1673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1676 echo "configure: failed program was:" >&5
1677 cat conftest.
$ac_ext >&5
1682 if test $ac_R_nospace = yes; then
1683 echo "$ac_t""no" 1>&6
1684 X_LIBS
="$X_LIBS -R$x_libraries"
1686 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1687 cat > conftest.
$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1695 if { (eval echo configure
:1696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1699 echo "configure: failed program was:" >&5
1700 cat conftest.
$ac_ext >&5
1705 if test $ac_R_space = yes; then
1706 echo "$ac_t""yes" 1>&6
1707 X_LIBS
="$X_LIBS -R $x_libraries"
1709 echo "$ac_t""neither works" 1>&6
1712 LIBS
="$ac_xsave_LIBS"
1716 # Check for system-dependent libraries X programs must link with.
1717 # Do this before checking for the system-independent R6 libraries
1718 # (-lICE), since we may need -lsocket or whatever for X linking.
1720 if test "$ISC" = yes; then
1721 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1723 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1724 # libraries were built with DECnet support. And karl@cs.umb.edu says
1725 # the Alpha needs dnet_stub (dnet does not exist).
1726 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1727 echo "configure:1728: checking for dnet_ntoa in -ldnet" >&5
1728 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6
1732 ac_save_LIBS
="$LIBS"
1734 cat > conftest.
$ac_ext <<EOF
1735 #line 1736 "configure"
1736 #include "confdefs.h"
1737 /* Override any gcc2 internal prototype to avoid an error. */
1738 /* We use char because int might match the return type of a gcc2
1739 builtin and then its argument prototype would still apply. */
1746 if { (eval echo configure
:1747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1748 eval "ac_cv_lib_$ac_lib_var=yes"
1750 echo "configure: failed program was:" >&5
1751 cat conftest.
$ac_ext >&5
1753 eval "ac_cv_lib_$ac_lib_var=no"
1756 LIBS
="$ac_save_LIBS"
1759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1760 echo "$ac_t""yes" 1>&6
1761 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1763 echo "$ac_t""no" 1>&6
1766 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1767 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1768 echo "configure:1769: checking for dnet_ntoa in -ldnet_stub" >&5
1769 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1773 ac_save_LIBS
="$LIBS"
1774 LIBS
="-ldnet_stub $LIBS"
1775 cat > conftest.
$ac_ext <<EOF
1776 #line 1777 "configure"
1777 #include "confdefs.h"
1778 /* Override any gcc2 internal prototype to avoid an error. */
1779 /* We use char because int might match the return type of a gcc2
1780 builtin and then its argument prototype would still apply. */
1787 if { (eval echo configure
:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1789 eval "ac_cv_lib_$ac_lib_var=yes"
1791 echo "configure: failed program was:" >&5
1792 cat conftest.
$ac_ext >&5
1794 eval "ac_cv_lib_$ac_lib_var=no"
1797 LIBS
="$ac_save_LIBS"
1800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1801 echo "$ac_t""yes" 1>&6
1802 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1804 echo "$ac_t""no" 1>&6
1809 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1810 # to get the SysV transport functions.
1811 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1813 # The nsl library prevents programs from opening the X display
1814 # on Irix 5.2, according to dickey@clark.net.
1815 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1816 echo "configure:1817: checking for gethostbyname" >&5
1817 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1818 echo $ac_n "(cached) $ac_c" 1>&6
1820 cat > conftest.
$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1823 /* System header to define __stub macros and hopefully few prototypes,
1824 which can conflict with char gethostbyname(); below. */
1826 /* Override any gcc2 internal prototype to avoid an error. */
1827 /* We use char because int might match the return type of a gcc2
1828 builtin and then its argument prototype would still apply. */
1829 char gethostbyname();
1833 /* The GNU C library defines this for functions which it implements
1834 to always fail with ENOSYS. Some functions are actually named
1835 something starting with __ and the normal name is an alias. */
1836 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1844 if { (eval echo configure
:1845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1846 eval "ac_cv_func_gethostbyname=yes"
1848 echo "configure: failed program was:" >&5
1849 cat conftest.
$ac_ext >&5
1851 eval "ac_cv_func_gethostbyname=no"
1856 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1857 echo "$ac_t""yes" 1>&6
1860 echo "$ac_t""no" 1>&6
1863 if test $ac_cv_func_gethostbyname = no
; then
1864 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1865 echo "configure:1866: checking for gethostbyname in -lnsl" >&5
1866 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 ac_save_LIBS
="$LIBS"
1872 cat > conftest.
$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1875 /* Override any gcc2 internal prototype to avoid an error. */
1876 /* We use char because int might match the return type of a gcc2
1877 builtin and then its argument prototype would still apply. */
1878 char gethostbyname();
1884 if { (eval echo configure
:1885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1886 eval "ac_cv_lib_$ac_lib_var=yes"
1888 echo "configure: failed program was:" >&5
1889 cat conftest.
$ac_ext >&5
1891 eval "ac_cv_lib_$ac_lib_var=no"
1894 LIBS
="$ac_save_LIBS"
1897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1898 echo "$ac_t""yes" 1>&6
1899 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1901 echo "$ac_t""no" 1>&6
1906 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1907 # socket/setsockopt and other routines are undefined under SCO ODT
1908 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1909 # on later versions), says simon@lia.di.epfl.ch: it contains
1910 # gethostby* variants that don't use the nameserver (or something).
1911 # -lsocket must be given before -lnsl if both are needed.
1912 # We assume that if connect needs -lnsl, so does gethostbyname.
1913 echo $ac_n "checking for connect""... $ac_c" 1>&6
1914 echo "configure:1915: checking for connect" >&5
1915 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6
1918 cat > conftest.
$ac_ext <<EOF
1919 #line 1920 "configure"
1920 #include "confdefs.h"
1921 /* System header to define __stub macros and hopefully few prototypes,
1922 which can conflict with char connect(); below. */
1924 /* Override any gcc2 internal prototype to avoid an error. */
1925 /* We use char because int might match the return type of a gcc2
1926 builtin and then its argument prototype would still apply. */
1931 /* The GNU C library defines this for functions which it implements
1932 to always fail with ENOSYS. Some functions are actually named
1933 something starting with __ and the normal name is an alias. */
1934 #if defined (__stub_connect) || defined (__stub___connect)
1942 if { (eval echo configure
:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1944 eval "ac_cv_func_connect=yes"
1946 echo "configure: failed program was:" >&5
1947 cat conftest.
$ac_ext >&5
1949 eval "ac_cv_func_connect=no"
1954 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1955 echo "$ac_t""yes" 1>&6
1958 echo "$ac_t""no" 1>&6
1961 if test $ac_cv_func_connect = no
; then
1962 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1963 echo "configure:1964: checking for connect in -lsocket" >&5
1964 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1968 ac_save_LIBS
="$LIBS"
1969 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1970 cat > conftest.
$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1973 /* Override any gcc2 internal prototype to avoid an error. */
1974 /* We use char because int might match the return type of a gcc2
1975 builtin and then its argument prototype would still apply. */
1982 if { (eval echo configure
:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1984 eval "ac_cv_lib_$ac_lib_var=yes"
1986 echo "configure: failed program was:" >&5
1987 cat conftest.
$ac_ext >&5
1989 eval "ac_cv_lib_$ac_lib_var=no"
1992 LIBS
="$ac_save_LIBS"
1995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1996 echo "$ac_t""yes" 1>&6
1997 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1999 echo "$ac_t""no" 1>&6
2004 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2005 echo $ac_n "checking for remove""... $ac_c" 1>&6
2006 echo "configure:2007: checking for remove" >&5
2007 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2008 echo $ac_n "(cached) $ac_c" 1>&6
2010 cat > conftest.
$ac_ext <<EOF
2011 #line 2012 "configure"
2012 #include "confdefs.h"
2013 /* System header to define __stub macros and hopefully few prototypes,
2014 which can conflict with char remove(); below. */
2016 /* Override any gcc2 internal prototype to avoid an error. */
2017 /* We use char because int might match the return type of a gcc2
2018 builtin and then its argument prototype would still apply. */
2023 /* The GNU C library defines this for functions which it implements
2024 to always fail with ENOSYS. Some functions are actually named
2025 something starting with __ and the normal name is an alias. */
2026 #if defined (__stub_remove) || defined (__stub___remove)
2034 if { (eval echo configure
:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2036 eval "ac_cv_func_remove=yes"
2038 echo "configure: failed program was:" >&5
2039 cat conftest.
$ac_ext >&5
2041 eval "ac_cv_func_remove=no"
2046 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2047 echo "$ac_t""yes" 1>&6
2050 echo "$ac_t""no" 1>&6
2053 if test $ac_cv_func_remove = no
; then
2054 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2055 echo "configure:2056: checking for remove in -lposix" >&5
2056 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2060 ac_save_LIBS
="$LIBS"
2061 LIBS
="-lposix $LIBS"
2062 cat > conftest.
$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2065 /* Override any gcc2 internal prototype to avoid an error. */
2066 /* We use char because int might match the return type of a gcc2
2067 builtin and then its argument prototype would still apply. */
2074 if { (eval echo configure
:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2076 eval "ac_cv_lib_$ac_lib_var=yes"
2078 echo "configure: failed program was:" >&5
2079 cat conftest.
$ac_ext >&5
2081 eval "ac_cv_lib_$ac_lib_var=no"
2084 LIBS
="$ac_save_LIBS"
2087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2091 echo "$ac_t""no" 1>&6
2096 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2097 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2098 echo "configure:2099: checking for shmat" >&5
2099 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2102 cat > conftest.
$ac_ext <<EOF
2103 #line 2104 "configure"
2104 #include "confdefs.h"
2105 /* System header to define __stub macros and hopefully few prototypes,
2106 which can conflict with char shmat(); below. */
2108 /* Override any gcc2 internal prototype to avoid an error. */
2109 /* We use char because int might match the return type of a gcc2
2110 builtin and then its argument prototype would still apply. */
2115 /* The GNU C library defines this for functions which it implements
2116 to always fail with ENOSYS. Some functions are actually named
2117 something starting with __ and the normal name is an alias. */
2118 #if defined (__stub_shmat) || defined (__stub___shmat)
2126 if { (eval echo configure
:2127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2128 eval "ac_cv_func_shmat=yes"
2130 echo "configure: failed program was:" >&5
2131 cat conftest.
$ac_ext >&5
2133 eval "ac_cv_func_shmat=no"
2138 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2139 echo "$ac_t""yes" 1>&6
2142 echo "$ac_t""no" 1>&6
2145 if test $ac_cv_func_shmat = no
; then
2146 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2147 echo "configure:2148: checking for shmat in -lipc" >&5
2148 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2152 ac_save_LIBS
="$LIBS"
2154 cat > conftest.
$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157 /* Override any gcc2 internal prototype to avoid an error. */
2158 /* We use char because int might match the return type of a gcc2
2159 builtin and then its argument prototype would still apply. */
2166 if { (eval echo configure
:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2168 eval "ac_cv_lib_$ac_lib_var=yes"
2170 echo "configure: failed program was:" >&5
2171 cat conftest.
$ac_ext >&5
2173 eval "ac_cv_lib_$ac_lib_var=no"
2176 LIBS
="$ac_save_LIBS"
2179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2181 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2183 echo "$ac_t""no" 1>&6
2189 # Check for libraries that X11R6 Xt/Xaw programs need.
2190 ac_save_LDFLAGS
="$LDFLAGS"
2191 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2192 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2193 # check for ICE first), but we must link in the order -lSM -lICE or
2194 # we get undefined symbols. So assume we have SM if we have ICE.
2195 # These have to be linked with before -lX11, unlike the other
2196 # libraries we check for below, so use a different variable.
2197 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2198 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2199 echo "configure:2200: checking for IceConnectionNumber in -lICE" >&5
2200 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2204 ac_save_LIBS
="$LIBS"
2206 cat > conftest.
$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2209 /* Override any gcc2 internal prototype to avoid an error. */
2210 /* We use char because int might match the return type of a gcc2
2211 builtin and then its argument prototype would still apply. */
2212 char IceConnectionNumber();
2215 IceConnectionNumber()
2218 if { (eval echo configure
:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2220 eval "ac_cv_lib_$ac_lib_var=yes"
2222 echo "configure: failed program was:" >&5
2223 cat conftest.
$ac_ext >&5
2225 eval "ac_cv_lib_$ac_lib_var=no"
2228 LIBS
="$ac_save_LIBS"
2231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2232 echo "$ac_t""yes" 1>&6
2233 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2235 echo "$ac_t""no" 1>&6
2238 LDFLAGS
="$ac_save_LDFLAGS"
2244 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2246 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2247 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2248 echo "configure:2249: checking for $ac_hdr that defines DIR" >&5
2249 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2252 cat > conftest.
$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2255 #include <sys/types.h>
2261 if { (eval echo configure
:2262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2263 eval "ac_cv_header_dirent_$ac_safe=yes"
2265 echo "configure: failed program was:" >&5
2266 cat conftest.
$ac_ext >&5
2268 eval "ac_cv_header_dirent_$ac_safe=no"
2272 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2273 echo "$ac_t""yes" 1>&6
2274 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2275 cat >> confdefs.h
<<EOF
2276 #define $ac_tr_hdr 1
2278 ac_header_dirent
=$ac_hdr; break
2280 echo "$ac_t""no" 1>&6
2283 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2284 if test $ac_header_dirent = dirent.h
; then
2285 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2286 echo "configure:2287: checking for opendir in -ldir" >&5
2287 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2291 ac_save_LIBS
="$LIBS"
2293 cat > conftest.
$ac_ext <<EOF
2294 #line 2295 "configure"
2295 #include "confdefs.h"
2296 /* Override any gcc2 internal prototype to avoid an error. */
2297 /* We use char because int might match the return type of a gcc2
2298 builtin and then its argument prototype would still apply. */
2305 if { (eval echo configure
:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2307 eval "ac_cv_lib_$ac_lib_var=yes"
2309 echo "configure: failed program was:" >&5
2310 cat conftest.
$ac_ext >&5
2312 eval "ac_cv_lib_$ac_lib_var=no"
2315 LIBS
="$ac_save_LIBS"
2318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2319 echo "$ac_t""yes" 1>&6
2322 echo "$ac_t""no" 1>&6
2326 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2327 echo "configure:2328: checking for opendir in -lx" >&5
2328 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2329 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2332 ac_save_LIBS
="$LIBS"
2334 cat > conftest.
$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2337 /* Override any gcc2 internal prototype to avoid an error. */
2338 /* We use char because int might match the return type of a gcc2
2339 builtin and then its argument prototype would still apply. */
2346 if { (eval echo configure
:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2348 eval "ac_cv_lib_$ac_lib_var=yes"
2350 echo "configure: failed program was:" >&5
2351 cat conftest.
$ac_ext >&5
2353 eval "ac_cv_lib_$ac_lib_var=no"
2356 LIBS
="$ac_save_LIBS"
2359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2360 echo "$ac_t""yes" 1>&6
2363 echo "$ac_t""no" 1>&6
2368 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2369 echo "configure:2370: checking for ANSI C header files" >&5
2370 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2373 cat > conftest.
$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2381 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2382 { (eval echo configure
:2383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2383 ac_err
=`grep -v '^ *+' conftest.out`
2384 if test -z "$ac_err"; then
2386 ac_cv_header_stdc
=yes
2389 echo "configure: failed program was:" >&5
2390 cat conftest.
$ac_ext >&5
2392 ac_cv_header_stdc
=no
2396 if test $ac_cv_header_stdc = yes; then
2397 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2398 cat > conftest.
$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2404 egrep "memchr" >/dev
/null
2>&1; then
2408 ac_cv_header_stdc
=no
2414 if test $ac_cv_header_stdc = yes; then
2415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2416 cat > conftest.
$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2422 egrep "free" >/dev
/null
2>&1; then
2426 ac_cv_header_stdc
=no
2432 if test $ac_cv_header_stdc = yes; then
2433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2434 if test "$cross_compiling" = yes; then
2437 cat > conftest.
$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2441 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2442 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2443 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2444 int main () { int i; for (i = 0; i < 256; i++)
2445 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2449 if { (eval echo configure
:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2453 echo "configure: failed program was:" >&5
2454 cat conftest.
$ac_ext >&5
2456 ac_cv_header_stdc
=no
2464 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2465 if test $ac_cv_header_stdc = yes; then
2466 cat >> confdefs.h
<<\EOF
2467 #define STDC_HEADERS 1
2472 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2473 echo "configure:2474: checking for sys/wait.h that is POSIX.1 compatible" >&5
2474 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 cat > conftest.
$ac_ext <<EOF
2478 #line 2479 "configure"
2479 #include "confdefs.h"
2480 #include <sys/types.h>
2481 #include <sys/wait.h>
2483 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2486 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2491 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2494 if { (eval echo configure
:2495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2496 ac_cv_header_sys_wait_h
=yes
2498 echo "configure: failed program was:" >&5
2499 cat conftest.
$ac_ext >&5
2501 ac_cv_header_sys_wait_h
=no
2506 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2507 if test $ac_cv_header_sys_wait_h = yes; then
2508 cat >> confdefs.h
<<\EOF
2509 #define HAVE_SYS_WAIT_H 1
2514 ac_safe
=`echo "fcntl.h" | sed 'y%./+-%__p_%'`
2515 echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6
2516 echo "configure:2517: checking for fcntl.h" >&5
2517 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2520 cat > conftest.
$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2525 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2526 { (eval echo configure
:2527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2527 ac_err
=`grep -v '^ *+' conftest.out`
2528 if test -z "$ac_err"; then
2530 eval "ac_cv_header_$ac_safe=yes"
2533 echo "configure: failed program was:" >&5
2534 cat conftest.
$ac_ext >&5
2536 eval "ac_cv_header_$ac_safe=no"
2540 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2541 echo "$ac_t""yes" 1>&6
2544 echo "$ac_t""no" 1>&6
2547 ac_safe
=`echo "limits.h" | sed 'y%./+-%__p_%'`
2548 echo $ac_n "checking for limits.h""... $ac_c" 1>&6
2549 echo "configure:2550: checking for limits.h" >&5
2550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2553 cat > conftest.
$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2558 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2559 { (eval echo configure
:2560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2560 ac_err
=`grep -v '^ *+' conftest.out`
2561 if test -z "$ac_err"; then
2563 eval "ac_cv_header_$ac_safe=yes"
2566 echo "configure: failed program was:" >&5
2567 cat conftest.
$ac_ext >&5
2569 eval "ac_cv_header_$ac_safe=no"
2573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2574 echo "$ac_t""yes" 1>&6
2577 echo "$ac_t""no" 1>&6
2580 ac_safe
=`echo "sys/file.h" | sed 'y%./+-%__p_%'`
2581 echo $ac_n "checking for sys/file.h""... $ac_c" 1>&6
2582 echo "configure:2583: checking for sys/file.h" >&5
2583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2586 cat > conftest.
$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2589 #include <sys/file.h>
2591 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2592 { (eval echo configure
:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2593 ac_err
=`grep -v '^ *+' conftest.out`
2594 if test -z "$ac_err"; then
2596 eval "ac_cv_header_$ac_safe=yes"
2599 echo "configure: failed program was:" >&5
2600 cat conftest.
$ac_ext >&5
2602 eval "ac_cv_header_$ac_safe=no"
2606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2607 echo "$ac_t""yes" 1>&6
2610 echo "$ac_t""no" 1>&6
2613 ac_safe
=`echo "sys/time.h" | sed 'y%./+-%__p_%'`
2614 echo $ac_n "checking for sys/time.h""... $ac_c" 1>&6
2615 echo "configure:2616: checking for sys/time.h" >&5
2616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2619 cat > conftest.
$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2622 #include <sys/time.h>
2624 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2625 { (eval echo configure
:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2626 ac_err
=`grep -v '^ *+' conftest.out`
2627 if test -z "$ac_err"; then
2629 eval "ac_cv_header_$ac_safe=yes"
2632 echo "configure: failed program was:" >&5
2633 cat conftest.
$ac_ext >&5
2635 eval "ac_cv_header_$ac_safe=no"
2639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2640 echo "$ac_t""yes" 1>&6
2643 echo "$ac_t""no" 1>&6
2646 ac_safe
=`echo "unistd.h" | sed 'y%./+-%__p_%'`
2647 echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
2648 echo "configure:2649: checking for unistd.h" >&5
2649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2652 cat > conftest.
$ac_ext <<EOF
2653 #line 2654 "configure"
2654 #include "confdefs.h"
2657 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2658 { (eval echo configure
:2659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2659 ac_err
=`grep -v '^ *+' conftest.out`
2660 if test -z "$ac_err"; then
2662 eval "ac_cv_header_$ac_safe=yes"
2665 echo "configure: failed program was:" >&5
2666 cat conftest.
$ac_ext >&5
2668 eval "ac_cv_header_$ac_safe=no"
2672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2673 echo "$ac_t""yes" 1>&6
2676 echo "$ac_t""no" 1>&6
2680 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2681 echo "configure:2682: checking for uid_t in sys/types.h" >&5
2682 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2685 cat > conftest.
$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2688 #include <sys/types.h>
2690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2691 egrep "uid_t" >/dev
/null
2>&1; then
2693 ac_cv_type_uid_t
=yes
2702 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2703 if test $ac_cv_type_uid_t = no
; then
2704 cat >> confdefs.h
<<\EOF
2708 cat >> confdefs.h
<<\EOF
2714 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2715 echo "configure:2716: checking type of array argument to getgroups" >&5
2716 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2719 if test "$cross_compiling" = yes; then
2720 ac_cv_type_getgroups
=cross
2722 cat > conftest.
$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2726 /* Thanks to Mike Rendell for this test. */
2727 #include <sys/types.h>
2730 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2735 union { gid_t gval; long lval; } val;
2738 for (i = 0; i < NGID; i++)
2739 gidset[i] = val.gval;
2740 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2742 /* Exit non-zero if getgroups seems to require an array of ints. This
2743 happens when gid_t is short but getgroups modifies an array of ints. */
2744 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2748 if { (eval echo configure
:2749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2750 ac_cv_type_getgroups
=gid_t
2752 echo "configure: failed program was:" >&5
2753 cat conftest.
$ac_ext >&5
2755 ac_cv_type_getgroups
=int
2760 if test $ac_cv_type_getgroups = cross
; then
2761 cat > conftest.
$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2767 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2769 ac_cv_type_getgroups
=gid_t
2772 ac_cv_type_getgroups
=int
2779 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2780 cat >> confdefs.h
<<EOF
2781 #define GETGROUPS_T $ac_cv_type_getgroups
2785 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2786 echo "configure:2787: checking for mode_t" >&5
2787 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6
2790 cat > conftest.
$ac_ext <<EOF
2791 #line 2792 "configure"
2792 #include "confdefs.h"
2793 #include <sys/types.h>
2799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2800 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2802 ac_cv_type_mode_t
=yes
2805 ac_cv_type_mode_t
=no
2810 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2811 if test $ac_cv_type_mode_t = no
; then
2812 cat >> confdefs.h
<<\EOF
2818 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2819 echo "configure:2820: checking for off_t" >&5
2820 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2823 cat > conftest.
$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2826 #include <sys/types.h>
2832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2833 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2835 ac_cv_type_off_t
=yes
2843 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2844 if test $ac_cv_type_off_t = no
; then
2845 cat >> confdefs.h
<<\EOF
2851 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2852 echo "configure:2853: checking for pid_t" >&5
2853 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2854 echo $ac_n "(cached) $ac_c" 1>&6
2856 cat > conftest.
$ac_ext <<EOF
2857 #line 2858 "configure"
2858 #include "confdefs.h"
2859 #include <sys/types.h>
2865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2866 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2868 ac_cv_type_pid_t
=yes
2876 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2877 if test $ac_cv_type_pid_t = no
; then
2878 cat >> confdefs.h
<<\EOF
2884 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2885 echo "configure:2886: checking return type of signal handlers" >&5
2886 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2889 cat > conftest.
$ac_ext <<EOF
2890 #line 2891 "configure"
2891 #include "confdefs.h"
2892 #include <sys/types.h>
2898 extern "C" void (*signal (int, void (*)(int)))(int);
2900 void (*signal ()) ();
2907 if { (eval echo configure
:2908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2909 ac_cv_type_signal
=void
2911 echo "configure: failed program was:" >&5
2912 cat conftest.
$ac_ext >&5
2914 ac_cv_type_signal
=int
2919 echo "$ac_t""$ac_cv_type_signal" 1>&6
2920 cat >> confdefs.h
<<EOF
2921 #define RETSIGTYPE $ac_cv_type_signal
2925 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2926 echo "configure:2927: checking for size_t" >&5
2927 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 cat > conftest.
$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2933 #include <sys/types.h>
2939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2940 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2942 ac_cv_type_size_t
=yes
2945 ac_cv_type_size_t
=no
2950 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2951 if test $ac_cv_type_size_t = no
; then
2952 cat >> confdefs.h
<<\EOF
2953 #define size_t unsigned
2958 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2959 echo "configure:2960: checking for uid_t in sys/types.h" >&5
2960 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2963 cat > conftest.
$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2966 #include <sys/types.h>
2968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2969 egrep "uid_t" >/dev
/null
2>&1; then
2971 ac_cv_type_uid_t
=yes
2980 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2981 if test $ac_cv_type_uid_t = no
; then
2982 cat >> confdefs.h
<<\EOF
2986 cat >> confdefs.h
<<\EOF
2994 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2995 echo "configure:2996: checking whether stat file-mode macros are broken" >&5
2996 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2997 echo $ac_n "(cached) $ac_c" 1>&6
2999 cat > conftest.
$ac_ext <<EOF
3000 #line 3001 "configure"
3001 #include "confdefs.h"
3002 #include <sys/types.h>
3003 #include <sys/stat.h>
3005 #if defined(S_ISBLK) && defined(S_IFDIR)
3006 # if S_ISBLK (S_IFDIR)
3011 #if defined(S_ISBLK) && defined(S_IFCHR)
3012 # if S_ISBLK (S_IFCHR)
3017 #if defined(S_ISLNK) && defined(S_IFREG)
3018 # if S_ISLNK (S_IFREG)
3023 #if defined(S_ISSOCK) && defined(S_IFREG)
3024 # if S_ISSOCK (S_IFREG)
3030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3031 egrep "You lose" >/dev
/null
2>&1; then
3033 ac_cv_header_stat_broken
=yes
3036 ac_cv_header_stat_broken
=no
3042 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3043 if test $ac_cv_header_stat_broken = yes; then
3044 cat >> confdefs.h
<<\EOF
3045 #define STAT_MACROS_BROKEN 1
3050 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3051 echo "configure:3052: checking whether time.h and sys/time.h may both be included" >&5
3052 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3055 cat > conftest.
$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3058 #include <sys/types.h>
3059 #include <sys/time.h>
3065 if { (eval echo configure
:3066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3067 ac_cv_header_time
=yes
3069 echo "configure: failed program was:" >&5
3070 cat conftest.
$ac_ext >&5
3072 ac_cv_header_time
=no
3077 echo "$ac_t""$ac_cv_header_time" 1>&6
3078 if test $ac_cv_header_time = yes; then
3079 cat >> confdefs.h
<<\EOF
3080 #define TIME_WITH_SYS_TIME 1
3085 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3086 echo "configure:3087: checking for st_blksize in struct stat" >&5
3087 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 cat > conftest.
$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3093 #include <sys/types.h>
3094 #include <sys/stat.h>
3096 struct stat s; s.st_blksize;
3099 if { (eval echo configure
:3100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3101 ac_cv_struct_st_blksize
=yes
3103 echo "configure: failed program was:" >&5
3104 cat conftest.
$ac_ext >&5
3106 ac_cv_struct_st_blksize
=no
3111 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3112 if test $ac_cv_struct_st_blksize = yes; then
3113 cat >> confdefs.h
<<\EOF
3114 #define HAVE_ST_BLKSIZE 1
3119 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3120 echo "configure:3121: checking for st_blocks in struct stat" >&5
3121 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 cat > conftest.
$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 #include <sys/types.h>
3128 #include <sys/stat.h>
3130 struct stat s; s.st_blocks;
3133 if { (eval echo configure
:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3135 ac_cv_struct_st_blocks
=yes
3137 echo "configure: failed program was:" >&5
3138 cat conftest.
$ac_ext >&5
3140 ac_cv_struct_st_blocks
=no
3145 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3146 if test $ac_cv_struct_st_blocks = yes; then
3147 cat >> confdefs.h
<<\EOF
3148 #define HAVE_ST_BLOCKS 1
3152 LIBOBJS
="$LIBOBJS fileblocks.o"
3155 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3156 echo "configure:3157: checking for st_rdev in struct stat" >&5
3157 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3158 echo $ac_n "(cached) $ac_c" 1>&6
3160 cat > conftest.
$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3163 #include <sys/types.h>
3164 #include <sys/stat.h>
3166 struct stat s; s.st_rdev;
3169 if { (eval echo configure
:3170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3171 ac_cv_struct_st_rdev
=yes
3173 echo "configure: failed program was:" >&5
3174 cat conftest.
$ac_ext >&5
3176 ac_cv_struct_st_rdev
=no
3181 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3182 if test $ac_cv_struct_st_rdev = yes; then
3183 cat >> confdefs.h
<<\EOF
3184 #define HAVE_ST_RDEV 1
3189 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3190 echo "configure:3191: checking whether struct tm is in sys/time.h or time.h" >&5
3191 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 cat > conftest.
$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 #include <sys/types.h>
3200 struct tm *tp; tp->tm_sec;
3203 if { (eval echo configure
:3204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3205 ac_cv_struct_tm
=time.h
3207 echo "configure: failed program was:" >&5
3208 cat conftest.
$ac_ext >&5
3210 ac_cv_struct_tm
=sys
/time.h
3215 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3216 if test $ac_cv_struct_tm = sys
/time.h
; then
3217 cat >> confdefs.h
<<\EOF
3218 #define TM_IN_SYS_TIME 1
3223 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3224 echo "configure:3225: checking for tm_zone in struct tm" >&5
3225 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 cat > conftest.
$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3231 #include <sys/types.h>
3232 #include <$ac_cv_struct_tm>
3234 struct tm tm; tm.tm_zone;
3237 if { (eval echo configure
:3238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3239 ac_cv_struct_tm_zone
=yes
3241 echo "configure: failed program was:" >&5
3242 cat conftest.
$ac_ext >&5
3244 ac_cv_struct_tm_zone
=no
3249 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3250 if test "$ac_cv_struct_tm_zone" = yes; then
3251 cat >> confdefs.h
<<\EOF
3252 #define HAVE_TM_ZONE 1
3256 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3257 echo "configure:3258: checking for tzname" >&5
3258 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 cat > conftest.
$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3265 #ifndef tzname /* For SGI. */
3266 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3272 if { (eval echo configure
:3273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3274 ac_cv_var_tzname
=yes
3276 echo "configure: failed program was:" >&5
3277 cat conftest.
$ac_ext >&5
3284 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3285 if test $ac_cv_var_tzname = yes; then
3286 cat >> confdefs.h
<<\EOF
3287 #define HAVE_TZNAME 1
3295 echo $ac_n "checking for working const""... $ac_c" 1>&6
3296 echo "configure:3297: checking for working const" >&5
3297 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 cat > conftest.
$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3306 /* Ultrix mips cc rejects this. */
3307 typedef int charset[2]; const charset x;
3308 /* SunOS 4.1.1 cc rejects this. */
3309 char const *const *ccp;
3311 /* NEC SVR4.0.2 mips cc rejects this. */
3312 struct point {int x, y;};
3313 static struct point const zero = {0,0};
3314 /* AIX XL C 1.02.0.0 rejects this.
3315 It does not let you subtract one const X* pointer from another in an arm
3316 of an if-expression whose if-part is not a constant expression */
3317 const char *g = "string";
3318 ccp = &g + (g ? g-g : 0);
3319 /* HPUX 7.0 cc rejects these. */
3322 ccp = (char const *const *) p;
3323 { /* SCO 3.2v4 cc rejects this. */
3325 char const *s = 0 ? (char *) 0 : (char const *) 0;
3329 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3331 const int *foo = &x[0];
3334 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3335 typedef const int *iptr;
3339 { /* AIX XL C 1.02.0.0 rejects this saying
3340 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3341 struct s { int j; const int *ap[3]; };
3342 struct s *b; b->j = 5;
3344 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3350 if { (eval echo configure
:3351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3354 echo "configure: failed program was:" >&5
3355 cat conftest.
$ac_ext >&5
3362 echo "$ac_t""$ac_cv_c_const" 1>&6
3363 if test $ac_cv_c_const = no
; then
3364 cat >> confdefs.h
<<\EOF
3370 echo $ac_n "checking for inline""... $ac_c" 1>&6
3371 echo "configure:3372: checking for inline" >&5
3372 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3376 for ac_kw
in inline __inline__ __inline
; do
3377 cat > conftest.
$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3385 if { (eval echo configure
:3386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3387 ac_cv_c_inline
=$ac_kw; break
3389 echo "configure: failed program was:" >&5
3390 cat conftest.
$ac_ext >&5
3397 echo "$ac_t""$ac_cv_c_inline" 1>&6
3398 case "$ac_cv_c_inline" in
3400 no
) cat >> confdefs.h
<<\EOF
3404 *) cat >> confdefs.h
<<EOF
3405 #define inline $ac_cv_c_inline
3410 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3411 echo "configure:3412: checking whether char is unsigned" >&5
3412 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3415 if test "$GCC" = yes; then
3416 # GCC predefines this symbol on systems where it applies.
3417 cat > conftest.
$ac_ext <<EOF
3418 #line 3419 "configure"
3419 #include "confdefs.h"
3420 #ifdef __CHAR_UNSIGNED__
3425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3426 egrep "yes" >/dev
/null
2>&1; then
3428 ac_cv_c_char_unsigned
=yes
3431 ac_cv_c_char_unsigned
=no
3436 if test "$cross_compiling" = yes; then
3437 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3439 cat > conftest.
$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3443 #if !defined(__STDC__) || __STDC__ != 1
3447 volatile char c = 255; exit(c < 0);
3450 if { (eval echo configure
:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3452 ac_cv_c_char_unsigned
=yes
3454 echo "configure: failed program was:" >&5
3455 cat conftest.
$ac_ext >&5
3457 ac_cv_c_char_unsigned
=no
3465 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3466 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3467 cat >> confdefs.h
<<\EOF
3468 #define __CHAR_UNSIGNED__ 1
3473 echo $ac_n "checking for long double""... $ac_c" 1>&6
3474 echo "configure:3475: checking for long double" >&5
3475 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3478 if test "$GCC" = yes; then
3479 ac_cv_c_long_double
=yes
3481 if test "$cross_compiling" = yes; then
3482 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3484 cat > conftest.
$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3488 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
3489 long double foo = 0.0;
3490 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3491 exit(sizeof(long double) < sizeof(double)); }
3493 if { (eval echo configure
:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3495 ac_cv_c_long_double
=yes
3497 echo "configure: failed program was:" >&5
3498 cat conftest.
$ac_ext >&5
3500 ac_cv_c_long_double
=no
3508 echo "$ac_t""$ac_cv_c_long_double" 1>&6
3509 if test $ac_cv_c_long_double = yes; then
3510 cat >> confdefs.h
<<\EOF
3511 #define HAVE_LONG_DOUBLE 1
3517 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3518 echo "configure:3519: checking whether byte ordering is bigendian" >&5
3519 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3522 ac_cv_c_bigendian
=unknown
3523 # See if sys/param.h defines the BYTE_ORDER macro.
3524 cat > conftest.
$ac_ext <<EOF
3525 #line 3526 "configure"
3526 #include "confdefs.h"
3527 #include <sys/types.h>
3528 #include <sys/param.h>
3531 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3536 if { (eval echo configure
:3537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3538 # It does; now see whether it defined to BIG_ENDIAN or not.
3539 cat > conftest.
$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3542 #include <sys/types.h>
3543 #include <sys/param.h>
3546 #if BYTE_ORDER != BIG_ENDIAN
3551 if { (eval echo configure
:3552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3553 ac_cv_c_bigendian
=yes
3555 echo "configure: failed program was:" >&5
3556 cat conftest.
$ac_ext >&5
3558 ac_cv_c_bigendian
=no
3562 echo "configure: failed program was:" >&5
3563 cat conftest.
$ac_ext >&5
3566 if test $ac_cv_c_bigendian = unknown
; then
3567 if test "$cross_compiling" = yes; then
3568 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3570 cat > conftest.
$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3574 /* Are we little or big endian? From Harbison&Steele. */
3578 char c[sizeof (long)];
3581 exit (u.c[sizeof (long) - 1] == 1);
3584 if { (eval echo configure
:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3586 ac_cv_c_bigendian
=no
3588 echo "configure: failed program was:" >&5
3589 cat conftest.
$ac_ext >&5
3591 ac_cv_c_bigendian
=yes
3599 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3600 if test $ac_cv_c_bigendian = yes; then
3601 cat >> confdefs.h
<<\EOF
3602 #define WORDS_BIGENDIAN 1
3608 echo $ac_n "checking size of int *""... $ac_c" 1>&6
3609 echo "configure:3610: checking size of int *" >&5
3610 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
3611 echo $ac_n "(cached) $ac_c" 1>&6
3613 if test "$cross_compiling" = yes; then
3614 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3616 cat > conftest.
$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3622 FILE *f=fopen("conftestval", "w");
3624 fprintf(f, "%d\n", sizeof(int *));
3628 if { (eval echo configure
:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3630 ac_cv_sizeof_int_p
=`cat conftestval`
3632 echo "configure: failed program was:" >&5
3633 cat conftest.
$ac_ext >&5
3635 ac_cv_sizeof_int_p
=0
3641 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
3642 cat >> confdefs.h
<<EOF
3643 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
3647 echo $ac_n "checking size of int""... $ac_c" 1>&6
3648 echo "configure:3649: checking size of int" >&5
3649 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 if test "$cross_compiling" = yes; then
3653 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3655 cat > conftest.
$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3661 FILE *f=fopen("conftestval", "w");
3663 fprintf(f, "%d\n", sizeof(int));
3667 if { (eval echo configure
:3668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3669 ac_cv_sizeof_int
=`cat conftestval`
3671 echo "configure: failed program was:" >&5
3672 cat conftest.
$ac_ext >&5
3680 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3681 cat >> confdefs.h
<<EOF
3682 #define SIZEOF_INT $ac_cv_sizeof_int
3686 echo $ac_n "checking size of long""... $ac_c" 1>&6
3687 echo "configure:3688: checking size of long" >&5
3688 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 if test "$cross_compiling" = yes; then
3692 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3694 cat > conftest.
$ac_ext <<EOF
3695 #line 3696 "configure"
3696 #include "confdefs.h"
3700 FILE *f=fopen("conftestval", "w");
3702 fprintf(f, "%d\n", sizeof(long));
3706 if { (eval echo configure
:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3708 ac_cv_sizeof_long
=`cat conftestval`
3710 echo "configure: failed program was:" >&5
3711 cat conftest.
$ac_ext >&5
3719 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3720 cat >> confdefs.h
<<EOF
3721 #define SIZEOF_LONG $ac_cv_sizeof_long
3728 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3729 echo "configure:3730: checking for long file names" >&5
3730 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3733 ac_cv_sys_long_file_names
=yes
3734 # Test for long file names in all the places we know might matter:
3735 # . the current directory, where building will happen
3736 # $prefix/lib where we will be installing things
3737 # $exec_prefix/lib likewise
3738 # eval it to expand exec_prefix.
3739 # $TMPDIR if set, where it might want to write temporary files
3740 # if $TMPDIR is not set:
3741 # /tmp where it might want to write temporary files
3744 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3745 ac_tmpdirs
="$TMPDIR"
3747 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
3749 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3750 test -d $ac_dir || continue
3751 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3752 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
3753 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
3754 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
3755 if test ! -f $ac_dir/conftest9012345
|| test "$val" != 1; then
3756 ac_cv_sys_long_file_names
=no
3757 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
3760 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
3764 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
3765 if test $ac_cv_sys_long_file_names = yes; then
3766 cat >> confdefs.h
<<\EOF
3767 #define HAVE_LONG_FILE_NAMES 1
3775 for ac_prog
in 'bison -y' byacc
3777 # Extract the first word of "$ac_prog", so it can be a program name with args.
3778 set dummy
$ac_prog; ac_word
=$2
3779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3780 echo "configure:3781: checking for $ac_word" >&5
3781 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3784 if test -n "$YACC"; then
3785 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3787 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3788 for ac_dir
in $PATH; do
3789 test -z "$ac_dir" && ac_dir
=.
3790 if test -f $ac_dir/$ac_word; then
3791 ac_cv_prog_YACC
="$ac_prog"
3798 YACC
="$ac_cv_prog_YACC"
3799 if test -n "$YACC"; then
3800 echo "$ac_t""$YACC" 1>&6
3802 echo "$ac_t""no" 1>&6
3805 test -n "$YACC" && break
3807 test -n "$YACC" || YACC
="yacc"
3810 # Extract the first word of "flex", so it can be a program name with args.
3811 set dummy flex
; ac_word
=$2
3812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3813 echo "configure:3814: checking for $ac_word" >&5
3814 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 if test -n "$LEX"; then
3818 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3820 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3821 for ac_dir
in $PATH; do
3822 test -z "$ac_dir" && ac_dir
=.
3823 if test -f $ac_dir/$ac_word; then
3824 ac_cv_prog_LEX
="flex"
3829 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
3832 LEX
="$ac_cv_prog_LEX"
3833 if test -n "$LEX"; then
3834 echo "$ac_t""$LEX" 1>&6
3836 echo "$ac_t""no" 1>&6
3839 if test -z "$LEXLIB"
3845 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3846 echo "configure:3847: checking for yywrap in -l$ac_lib" >&5
3847 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3851 ac_save_LIBS
="$LIBS"
3852 LIBS
="-l$ac_lib $LIBS"
3853 cat > conftest.
$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3856 /* Override any gcc2 internal prototype to avoid an error. */
3857 /* We use char because int might match the return type of a gcc2
3858 builtin and then its argument prototype would still apply. */
3865 if { (eval echo configure
:3866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3867 eval "ac_cv_lib_$ac_lib_var=yes"
3869 echo "configure: failed program was:" >&5
3870 cat conftest.
$ac_ext >&5
3872 eval "ac_cv_lib_$ac_lib_var=no"
3875 LIBS
="$ac_save_LIBS"
3878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3879 echo "$ac_t""yes" 1>&6
3882 echo "$ac_t""no" 1>&6
3887 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3888 echo "configure:3889: checking lex output file root" >&5
3889 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3892 # The minimal lex program is just a single line: %%. But some broken lexes
3893 # (Solaris, I think it was) want two %% lines, so accommodate them.
3896 if test -f lex.yy.c
; then
3897 ac_cv_prog_lex_root
=lex.yy
3898 elif test -f lexyy.c
; then
3899 ac_cv_prog_lex_root
=lexyy
3901 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3905 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3906 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3908 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3909 echo "configure:3910: checking whether yytext is a pointer" >&5
3910 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3913 # POSIX says lex can declare yytext either as a pointer or an array; the
3914 # default is implementation-dependent. Figure out which it is, since
3915 # not all implementations provide the %pointer and %array declarations.
3916 ac_cv_prog_lex_yytext_pointer
=no
3917 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3918 ac_save_LIBS
="$LIBS"
3919 LIBS
="$LIBS $LEXLIB"
3920 cat > conftest.
$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3923 `cat $LEX_OUTPUT_ROOT.c`
3928 if { (eval echo configure
:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3930 ac_cv_prog_lex_yytext_pointer
=yes
3932 echo "configure: failed program was:" >&5
3933 cat conftest.
$ac_ext >&5
3936 LIBS
="$ac_save_LIBS"
3937 rm -f "${LEX_OUTPUT_ROOT}.c"
3941 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3942 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3943 cat >> confdefs.h
<<\EOF
3944 #define YYTEXT_POINTER 1
3951 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
3952 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
3956 # Make sure we can run config.sub.
3957 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
3958 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
3961 echo $ac_n "checking host system type""... $ac_c" 1>&6
3962 echo "configure:3963: checking host system type" >&5
3965 case "$host_alias" in
3969 if host_alias
=`$ac_config_guess`; then :
3970 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
3972 *) host_alias
=$nonopt ;;
3976 host=`$ac_config_sub $host_alias`
3977 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3978 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3979 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3980 echo "$ac_t""$host" 1>&6
3983 configuration
=$host_alias
4009 case "${canonical}" in
4012 cat >> confdefs.h
<<\EOF
4019 cat >> confdefs.h
<<\EOF
4024 *-*-irix5* | *-*-irix6* )
4027 cat >> confdefs.h
<<\EOF
4031 cat >> confdefs.h
<<\EOF
4040 cat >> confdefs.h
<<\EOF
4044 cat >> confdefs.h
<<\EOF
4045 #define __SOLARIS__ 1
4048 cat >> confdefs.h
<<\EOF
4057 cat >> confdefs.h
<<\EOF
4061 cat >> confdefs.h
<<\EOF
4065 cat >> confdefs.h
<<\EOF
4070 *-*-freebsd* | *-*-netbsd*)
4073 cat >> confdefs.h
<<\EOF
4074 #define __FREEBSD__ 1
4077 cat >> confdefs.h
<<\EOF
4085 cat >> confdefs.h
<<\EOF
4089 cat >> confdefs.h
<<\EOF
4097 cat >> confdefs.h
<<\EOF
4101 cat >> confdefs.h
<<\EOF
4109 cat >> confdefs.h
<<\EOF
4113 cat >> confdefs.h
<<\EOF
4122 cat >> confdefs.h
<<\EOF
4126 cat >> confdefs.h
<<\EOF
4130 cat >> confdefs.h
<<\EOF
4136 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
4141 rm -f ${OSTYPE}.system.cache.tmp
4142 touch ${OSTYPE}.system.cache.tmp
4143 touch ${OSTYPE}.system.cache
4146 DEFAULT_USE_SHARED
=0
4147 DEFAULT_USE_OPTIMISE
=1
4148 DEFAULT_USE_PROFILE
=0
4149 DEFAULT_USE_DEBUG_FLAG
=0
4150 DEFAULT_USE_DEBUG_INFO
=0
4151 DEFAULT_USE_MEM_TRACING
=0
4154 DEFAULT_USE_GDK_IMLIB
=1
4155 DEFAULT_USE_LIBPNG
=1
4157 DEFAULT_USE_STORABLE_CLASSES
=1
4158 DEFAULT_USE_AUTOTRANS
=1
4159 DEFAULT_USE_AFM_FOR_POSTSCRIPT
=1
4160 DEFAULT_WX_NORMALIZED_PS_FONTS
=1
4162 DEFAULT_USE_IOSTREAMH
=1
4164 DEFAULT_USE_THREADS
=0
4165 DEFAULT_USE_THREADS_SGI
=0
4166 DEFAULT_USE_THREADS_POSIX
=0
4167 DEFAULT_USE_OPENGL
=0
4169 DEFAULT_USE_POSTSCRIPT
=1
4171 DEFAULT_USE_RESOURCES
=1
4172 DEFAULT_USE_TIMEDATE
=1
4173 DEFAULT_USE_FRACTION
=1
4174 DEFAULT_USE_CONSTRAINTS
=1
4175 DEFAULT_USE_TOOLBAR
=1
4177 DEFAULT_USE_SCROLLBAR
=1
4178 DEFAULT_USE_DOC_VIEW_ARCHITECTURE
=1
4179 DEFAULT_USE_PRINTING_ARCHITECTURE
=1
4181 DEFAULT_USE_METAFILE
=0
4183 DEFAULT_USE_CLIPBOARD
=0
4185 DEFAULT_USE_WXGRAPH
=0
4186 DEFAULT_USE_WXTREE
=0
4187 DEFAULT_USE_ENHANCED_DIALOG
=0
4190 DEFAULT_USE_PROLOGIO
=0
4192 DEFAULT_USE_WX_RESOURCES
=1
4196 echo $ac_n "checking "for shared
"""... $ac_c" 1>&6
4197 echo "configure:4198: checking "for shared
"" >&5
4198 # Check whether --with-shared or --without-shared was given.
4199 if test "${with_shared+set}" = set; then
4200 withval
="$with_shared"
4201 if test "x$with_shared" = xyes
; then
4202 ac_cv_use_shared
='USE_SHARED="1"'
4204 ac_cv_use_shared
='USE_SHARED="0"'
4208 LINE
=`grep "USE_SHARED" ${OSTYPE}.system.cache`
4209 if test "x$LINE" != x
; then
4210 eval "DEFAULT_$LINE"
4212 ac_cv_use_shared
='USE_SHARED='$DEFAULT_USE_SHARED
4216 eval "$ac_cv_use_shared"
4217 echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
4218 if test "$USE_SHARED" = 1; then
4219 echo "$ac_t""yes" 1>&6
4221 echo "$ac_t""no" 1>&6
4226 echo $ac_n "checking "for optimise
"""... $ac_c" 1>&6
4227 echo "configure:4228: checking "for optimise
"" >&5
4228 # Check whether --with-optimise or --without-optimise was given.
4229 if test "${with_optimise+set}" = set; then
4230 withval
="$with_optimise"
4231 if test "x$with_optimise" = xyes
; then
4232 ac_cv_use_optimise
='USE_OPTIMISE="1"'
4234 ac_cv_use_optimise
='USE_OPTIMISE="0"'
4238 LINE
=`grep "USE_OPTIMISE" ${OSTYPE}.system.cache`
4239 if test "x$LINE" != x
; then
4240 eval "DEFAULT_$LINE"
4242 ac_cv_use_optimise
='USE_OPTIMISE='$DEFAULT_USE_OPTIMISE
4246 eval "$ac_cv_use_optimise"
4247 echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
4248 if test "$USE_OPTIMISE" = 1; then
4249 echo "$ac_t""yes" 1>&6
4251 echo "$ac_t""no" 1>&6
4256 echo $ac_n "checking "for debug_flag
"""... $ac_c" 1>&6
4257 echo "configure:4258: checking "for debug_flag
"" >&5
4258 # Check whether --with-debug_flag or --without-debug_flag was given.
4259 if test "${with_debug_flag+set}" = set; then
4260 withval
="$with_debug_flag"
4261 if test "x$with_debug_flag" = xyes
; then
4262 ac_cv_use_debug_flag
='USE_DEBUG_FLAG="1"'
4264 ac_cv_use_debug_flag
='USE_DEBUG_FLAG="0"'
4268 LINE
=`grep "USE_DEBUG_FLAG" ${OSTYPE}.system.cache`
4269 if test "x$LINE" != x
; then
4270 eval "DEFAULT_$LINE"
4272 ac_cv_use_debug_flag
='USE_DEBUG_FLAG='$DEFAULT_USE_DEBUG_FLAG
4276 eval "$ac_cv_use_debug_flag"
4277 echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
4278 if test "$USE_DEBUG_FLAG" = 1; then
4279 echo "$ac_t""yes" 1>&6
4281 echo "$ac_t""no" 1>&6
4286 echo $ac_n "checking "for debug_info
"""... $ac_c" 1>&6
4287 echo "configure:4288: checking "for debug_info
"" >&5
4288 # Check whether --with-debug_info or --without-debug_info was given.
4289 if test "${with_debug_info+set}" = set; then
4290 withval
="$with_debug_info"
4291 if test "x$with_debug_info" = xyes
; then
4292 ac_cv_use_debug_info
='USE_DEBUG_INFO="1"'
4294 ac_cv_use_debug_info
='USE_DEBUG_INFO="0"'
4298 LINE
=`grep "USE_DEBUG_INFO" ${OSTYPE}.system.cache`
4299 if test "x$LINE" != x
; then
4300 eval "DEFAULT_$LINE"
4302 ac_cv_use_debug_info
='USE_DEBUG_INFO='$DEFAULT_USE_DEBUG_INFO
4306 eval "$ac_cv_use_debug_info"
4307 echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
4308 if test "$USE_DEBUG_INFO" = 1; then
4309 echo "$ac_t""yes" 1>&6
4311 echo "$ac_t""no" 1>&6
4316 echo $ac_n "checking "for mem_tracing
"""... $ac_c" 1>&6
4317 echo "configure:4318: checking "for mem_tracing
"" >&5
4318 # Check whether --with-mem_tracing or --without-mem_tracing was given.
4319 if test "${with_mem_tracing+set}" = set; then
4320 withval
="$with_mem_tracing"
4321 if test "x$with_mem_tracing" = xyes
; then
4322 ac_cv_use_mem_tracing
='USE_MEM_TRACING="1"'
4324 ac_cv_use_mem_tracing
='USE_MEM_TRACING="0"'
4328 LINE
=`grep "USE_MEM_TRACING" ${OSTYPE}.system.cache`
4329 if test "x$LINE" != x
; then
4330 eval "DEFAULT_$LINE"
4332 ac_cv_use_mem_tracing
='USE_MEM_TRACING='$DEFAULT_USE_MEM_TRACING
4336 eval "$ac_cv_use_mem_tracing"
4337 echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
4338 if test "$USE_MEM_TRACING" = 1; then
4339 echo "$ac_t""yes" 1>&6
4341 echo "$ac_t""no" 1>&6
4346 echo $ac_n "checking "for profile
"""... $ac_c" 1>&6
4347 echo "configure:4348: checking "for profile
"" >&5
4348 # Check whether --with-profile or --without-profile was given.
4349 if test "${with_profile+set}" = set; then
4350 withval
="$with_profile"
4351 if test "x$with_profile" = xyes
; then
4352 ac_cv_use_profile
='USE_PROFILE="1"'
4354 ac_cv_use_profile
='USE_PROFILE="0"'
4358 LINE
=`grep "USE_PROFILE" ${OSTYPE}.system.cache`
4359 if test "x$LINE" != x
; then
4360 eval "DEFAULT_$LINE"
4362 ac_cv_use_profile
='USE_PROFILE='$DEFAULT_USE_PROFILE
4366 eval "$ac_cv_use_profile"
4367 echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
4368 if test "$USE_PROFILE" = 1; then
4369 echo "$ac_t""yes" 1>&6
4371 echo "$ac_t""no" 1>&6
4377 echo $ac_n "checking "for zlib
"""... $ac_c" 1>&6
4378 echo "configure:4379: checking "for zlib
"" >&5
4379 # Check whether --with-zlib or --without-zlib was given.
4380 if test "${with_zlib+set}" = set; then
4381 withval
="$with_zlib"
4382 if test "x$with_zlib" = xyes
; then
4383 ac_cv_use_zlib
='USE_ZLIB="1"'
4385 ac_cv_use_zlib
='USE_ZLIB="0"'
4389 LINE
=`grep "USE_ZLIB" ${OSTYPE}.system.cache`
4390 if test "x$LINE" != x
; then
4391 eval "DEFAULT_$LINE"
4393 ac_cv_use_zlib
='USE_ZLIB='$DEFAULT_USE_ZLIB
4397 eval "$ac_cv_use_zlib"
4398 echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
4399 if test "$USE_ZLIB" = 1; then
4400 echo "$ac_t""yes" 1>&6
4402 echo "$ac_t""no" 1>&6
4407 echo $ac_n "checking "for gdk_imlib
"""... $ac_c" 1>&6
4408 echo "configure:4409: checking "for gdk_imlib
"" >&5
4409 # Check whether --with-gdk_imlib or --without-gdk_imlib was given.
4410 if test "${with_gdk_imlib+set}" = set; then
4411 withval
="$with_gdk_imlib"
4412 if test "x$with_gdk_imlib" = xyes
; then
4413 ac_cv_use_gdk_imlib
='USE_GDK_IMLIB="1"'
4415 ac_cv_use_gdk_imlib
='USE_GDK_IMLIB="0"'
4419 LINE
=`grep "USE_GDK_IMLIB" ${OSTYPE}.system.cache`
4420 if test "x$LINE" != x
; then
4421 eval "DEFAULT_$LINE"
4423 ac_cv_use_gdk_imlib
='USE_GDK_IMLIB='$DEFAULT_USE_GDK_IMLIB
4427 eval "$ac_cv_use_gdk_imlib"
4428 echo $ac_cv_use_gdk_imlib >> ${OSTYPE}.system.cache.tmp
4429 if test "$USE_GDK_IMLIB" = 1; then
4430 echo "$ac_t""yes" 1>&6
4432 echo "$ac_t""no" 1>&6
4437 echo $ac_n "checking "for libpng
"""... $ac_c" 1>&6
4438 echo "configure:4439: checking "for libpng
"" >&5
4439 # Check whether --with-libpng or --without-libpng was given.
4440 if test "${with_libpng+set}" = set; then
4441 withval
="$with_libpng"
4442 if test "x$with_libpng" = xyes
; then
4443 ac_cv_use_libpng
='USE_LIBPNG="1"'
4445 ac_cv_use_libpng
='USE_LIBPNG="0"'
4449 LINE
=`grep "USE_LIBPNG" ${OSTYPE}.system.cache`
4450 if test "x$LINE" != x
; then
4451 eval "DEFAULT_$LINE"
4453 ac_cv_use_libpng
='USE_LIBPNG='$DEFAULT_USE_LIBPNG
4457 eval "$ac_cv_use_libpng"
4458 echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
4459 if test "$USE_LIBPNG" = 1; then
4460 echo "$ac_t""yes" 1>&6
4462 echo "$ac_t""no" 1>&6
4467 echo $ac_n "checking "for threads
"""... $ac_c" 1>&6
4468 echo "configure:4469: checking "for threads
"" >&5
4469 # Check whether --with-threads or --without-threads was given.
4470 if test "${with_threads+set}" = set; then
4471 withval
="$with_threads"
4472 if test "x$with_threads" = xyes
; then
4473 ac_cv_use_threads
='USE_THREADS="1"'
4475 ac_cv_use_threads
='USE_THREADS="0"'
4479 LINE
=`grep "USE_THREADS" ${OSTYPE}.system.cache`
4480 if test "x$LINE" != x
; then
4481 eval "DEFAULT_$LINE"
4483 ac_cv_use_threads
='USE_THREADS='$DEFAULT_USE_THREADS
4487 eval "$ac_cv_use_threads"
4488 echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
4489 if test "$USE_THREADS" = 1; then
4490 echo "$ac_t""yes" 1>&6
4492 echo "$ac_t""no" 1>&6
4497 echo $ac_n "checking "for opengl
"""... $ac_c" 1>&6
4498 echo "configure:4499: checking "for opengl
"" >&5
4499 # Check whether --with-opengl or --without-opengl was given.
4500 if test "${with_opengl+set}" = set; then
4501 withval
="$with_opengl"
4502 if test "x$with_opengl" = xyes
; then
4503 ac_cv_use_opengl
='USE_OPENGL="1"'
4505 ac_cv_use_opengl
='USE_OPENGL="0"'
4509 LINE
=`grep "USE_OPENGL" ${OSTYPE}.system.cache`
4510 if test "x$LINE" != x
; then
4511 eval "DEFAULT_$LINE"
4513 ac_cv_use_opengl
='USE_OPENGL='$DEFAULT_USE_OPENGL
4517 eval "$ac_cv_use_opengl"
4518 echo $ac_cv_use_opengl >> ${OSTYPE}.system.cache.tmp
4519 if test "$USE_OPENGL" = 1; then
4520 echo "$ac_t""yes" 1>&6
4522 echo "$ac_t""no" 1>&6
4528 echo $ac_n "checking "for storable
"""... $ac_c" 1>&6
4529 echo "configure:4530: checking "for storable
"" >&5
4530 # Check whether --with-storable or --without-storable was given.
4531 if test "${with_storable+set}" = set; then
4532 withval
="$with_storable"
4533 if test "x$with_storable" = xyes
; then
4534 ac_cv_use_storable
='USE_STORABLE_CLASSES="1"'
4536 ac_cv_use_storable
='USE_STORABLE_CLASSES="0"'
4540 LINE
=`grep "USE_STORABLE_CLASSES" ${OSTYPE}.system.cache`
4541 if test "x$LINE" != x
; then
4542 eval "DEFAULT_$LINE"
4544 ac_cv_use_storable
='USE_STORABLE_CLASSES='$DEFAULT_USE_STORABLE_CLASSES
4548 eval "$ac_cv_use_storable"
4549 echo $ac_cv_use_storable >> ${OSTYPE}.system.cache.tmp
4550 if test "$USE_STORABLE_CLASSES" = 1; then
4551 echo "$ac_t""yes" 1>&6
4553 echo "$ac_t""no" 1>&6
4558 echo $ac_n "checking "for autotrans
"""... $ac_c" 1>&6
4559 echo "configure:4560: checking "for autotrans
"" >&5
4560 # Check whether --with-autotrans or --without-autotrans was given.
4561 if test "${with_autotrans+set}" = set; then
4562 withval
="$with_autotrans"
4563 if test "x$with_autotrans" = xyes
; then
4564 ac_cv_use_autotrans
='USE_AUTOTRANS="1"'
4566 ac_cv_use_autotrans
='USE_AUTOTRANS="0"'
4570 LINE
=`grep "USE_AUTOTRANS" ${OSTYPE}.system.cache`
4571 if test "x$LINE" != x
; then
4572 eval "DEFAULT_$LINE"
4574 ac_cv_use_autotrans
='USE_AUTOTRANS='$DEFAULT_USE_AUTOTRANS
4578 eval "$ac_cv_use_autotrans"
4579 echo $ac_cv_use_autotrans >> ${OSTYPE}.system.cache.tmp
4580 if test "$USE_AUTOTRANS" = 1; then
4581 echo "$ac_t""yes" 1>&6
4583 echo "$ac_t""no" 1>&6
4588 echo $ac_n "checking "for afmfonts
"""... $ac_c" 1>&6
4589 echo "configure:4590: checking "for afmfonts
"" >&5
4590 # Check whether --with-afmfonts or --without-afmfonts was given.
4591 if test "${with_afmfonts+set}" = set; then
4592 withval
="$with_afmfonts"
4593 if test "x$with_afmfonts" = xyes
; then
4594 ac_cv_use_afmfonts
='USE_AFM_FOR_POSTSCRIPT="1"'
4596 ac_cv_use_afmfonts
='USE_AFM_FOR_POSTSCRIPT="0"'
4600 LINE
=`grep "USE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
4601 if test "x$LINE" != x
; then
4602 eval "DEFAULT_$LINE"
4604 ac_cv_use_afmfonts
='USE_AFM_FOR_POSTSCRIPT='$DEFAULT_USE_AFM_FOR_POSTSCRIPT
4608 eval "$ac_cv_use_afmfonts"
4609 echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
4610 if test "$USE_AFM_FOR_POSTSCRIPT" = 1; then
4611 echo "$ac_t""yes" 1>&6
4613 echo "$ac_t""no" 1>&6
4618 echo $ac_n "checking "for normalized
"""... $ac_c" 1>&6
4619 echo "configure:4620: checking "for normalized
"" >&5
4620 # Check whether --with-normalized or --without-normalized was given.
4621 if test "${with_normalized+set}" = set; then
4622 withval
="$with_normalized"
4623 if test "x$with_normalized" = xyes
; then
4624 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="1"'
4626 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="0"'
4630 LINE
=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
4631 if test "x$LINE" != x
; then
4632 eval "DEFAULT_$LINE"
4634 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
4638 eval "$ac_cv_use_normalized"
4639 echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
4640 if test "$WX_NORMALIZED_PS_FONTS" = 1; then
4641 echo "$ac_t""yes" 1>&6
4643 echo "$ac_t""no" 1>&6
4648 echo $ac_n "checking "for RPC
"""... $ac_c" 1>&6
4649 echo "configure:4650: checking "for RPC
"" >&5
4650 # Check whether --with-rpc or --without-rpc was given.
4651 if test "${with_rpc+set}" = set; then
4653 if test "x$with_rpc" = xyes
; then
4654 ac_cv_use_rpc
='USE_RPC="1"'
4656 ac_cv_use_rpc
='USE_RPC="0"'
4660 LINE
=`grep "USE_RPC" ${OSTYPE}.system.cache`
4661 if test "x$LINE" != x
; then
4662 eval "DEFAULT_$LINE"
4664 ac_cv_use_rpc
='USE_RPC='$DEFAULT_USE_RPC
4668 eval "$ac_cv_use_rpc"
4669 echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
4670 if test "$USE_RPC" = 1; then
4671 echo "$ac_t""yes" 1>&6
4673 echo "$ac_t""no" 1>&6
4678 echo $ac_n "checking "for wxresources
"""... $ac_c" 1>&6
4679 echo "configure:4680: checking "for wxresources
"" >&5
4680 # Check whether --with-wxresources or --without-wxresources was given.
4681 if test "${with_wxresources+set}" = set; then
4682 withval
="$with_wxresources"
4683 if test "x$with_wxresources" = xyes
; then
4684 ac_cv_use_wxresources
='USE_WX_RESOURCES="1"'
4686 ac_cv_use_wxresources
='USE_WX_RESOURCES="0"'
4690 LINE
=`grep "USE_WX_RESOURCES" ${OSTYPE}.system.cache`
4691 if test "x$LINE" != x
; then
4692 eval "DEFAULT_$LINE"
4694 ac_cv_use_wxresources
='USE_WX_RESOURCES='$DEFAULT_USE_WX_RESOURCES
4698 eval "$ac_cv_use_wxresources"
4699 echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
4700 if test "$USE_WX_RESOURCES" = 1; then
4701 echo "$ac_t""yes" 1>&6
4703 echo "$ac_t""no" 1>&6
4708 echo $ac_n "checking "for prologio
"""... $ac_c" 1>&6
4709 echo "configure:4710: checking "for prologio
"" >&5
4710 # Check whether --with-prologio or --without-prologio was given.
4711 if test "${with_prologio+set}" = set; then
4712 withval
="$with_prologio"
4713 if test "x$with_prologio" = xyes
; then
4714 ac_cv_use_prologio
='USE_PROLOGIO="1"'
4716 ac_cv_use_prologio
='USE_PROLOGIO="0"'
4720 LINE
=`grep "USE_PROLOGIO" ${OSTYPE}.system.cache`
4721 if test "x$LINE" != x
; then
4722 eval "DEFAULT_$LINE"
4724 ac_cv_use_prologio
='USE_PROLOGIO='$DEFAULT_USE_PROLOGIO
4728 eval "$ac_cv_use_prologio"
4729 echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
4730 if test "$USE_PROLOGIO" = 1; then
4731 echo "$ac_t""yes" 1>&6
4733 echo "$ac_t""no" 1>&6
4738 echo $ac_n "checking "for postscript
"""... $ac_c" 1>&6
4739 echo "configure:4740: checking "for postscript
"" >&5
4740 # Check whether --with-postscript or --without-postscript was given.
4741 if test "${with_postscript+set}" = set; then
4742 withval
="$with_postscript"
4743 if test "x$with_postscript" = xyes
; then
4744 ac_cv_use_postscript
='USE_POSTSCRIPT="1"'
4746 ac_cv_use_postscript
='USE_POSTSCRIPT="0"'
4750 LINE
=`grep "USE_POSTSCRIPT" ${OSTYPE}.system.cache`
4751 if test "x$LINE" != x
; then
4752 eval "DEFAULT_$LINE"
4754 ac_cv_use_postscript
='USE_POSTSCRIPT='$DEFAULT_USE_POSTSCRIPT
4758 eval "$ac_cv_use_postscript"
4759 echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
4760 if test "$USE_POSTSCRIPT" = 1; then
4761 echo "$ac_t""yes" 1>&6
4763 echo "$ac_t""no" 1>&6
4768 echo $ac_n "checking "for metafile
"""... $ac_c" 1>&6
4769 echo "configure:4770: checking "for metafile
"" >&5
4770 # Check whether --with-metafile or --without-metafile was given.
4771 if test "${with_metafile+set}" = set; then
4772 withval
="$with_metafile"
4773 if test "x$with_metafile" = xyes
; then
4774 ac_cv_use_metafile
='USE_METAFILE="1"'
4776 ac_cv_use_metafile
='USE_METAFILE="0"'
4780 LINE
=`grep "USE_METAFILE" ${OSTYPE}.system.cache`
4781 if test "x$LINE" != x
; then
4782 eval "DEFAULT_$LINE"
4784 ac_cv_use_metafile
='USE_METAFILE='$DEFAULT_USE_METAFILE
4788 eval "$ac_cv_use_metafile"
4789 echo $ac_cv_use_metafile >> ${OSTYPE}.system.cache.tmp
4790 if test "$USE_METAFILE" = 1; then
4791 echo "$ac_t""yes" 1>&6
4793 echo "$ac_t""no" 1>&6
4798 echo $ac_n "checking "for form
"""... $ac_c" 1>&6
4799 echo "configure:4800: checking "for form
"" >&5
4800 # Check whether --with-form or --without-form was given.
4801 if test "${with_form+set}" = set; then
4802 withval
="$with_form"
4803 if test "x$with_form" = xyes
; then
4804 ac_cv_use_form
='USE_FORM="1"'
4806 ac_cv_use_form
='USE_FORM="0"'
4810 LINE
=`grep "USE_FORM" ${OSTYPE}.system.cache`
4811 if test "x$LINE" != x
; then
4812 eval "DEFAULT_$LINE"
4814 ac_cv_use_form
='USE_FORM='$DEFAULT_USE_FORM
4818 eval "$ac_cv_use_form"
4819 echo $ac_cv_use_form >> ${OSTYPE}.system.cache.tmp
4820 if test "$USE_FORM" = 1; then
4821 echo "$ac_t""yes" 1>&6
4823 echo "$ac_t""no" 1>&6
4828 echo $ac_n "checking "for help"""... $ac_c" 1>&6
4829 echo "configure:4830: checking "for help"" >&5
4830 # Check whether --with-help or --without-help was given.
4831 if test "${with_help+set}" = set; then
4832 withval
="$with_help"
4833 if test "x$with_help" = xyes
; then
4834 ac_cv_use_help
='USE_HELP="1"'
4836 ac_cv_use_help
='USE_HELP="0"'
4840 LINE
=`grep "USE_HELP" ${OSTYPE}.system.cache`
4841 if test "x$LINE" != x
; then
4842 eval "DEFAULT_$LINE"
4844 ac_cv_use_help
='USE_HELP='$DEFAULT_USE_HELP
4848 eval "$ac_cv_use_help"
4849 echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
4850 if test "$USE_HELP" = 1; then
4851 echo "$ac_t""yes" 1>&6
4853 echo "$ac_t""no" 1>&6
4858 echo $ac_n "checking "for IPC
"""... $ac_c" 1>&6
4859 echo "configure:4860: checking "for IPC
"" >&5
4860 # Check whether --with-ipc or --without-ipc was given.
4861 if test "${with_ipc+set}" = set; then
4863 if test "x$with_ipc" = xyes
; then
4864 ac_cv_use_ipc
='USE_IPC="1"'
4866 ac_cv_use_ipc
='USE_IPC="0"'
4870 LINE
=`grep "USE_IPC" ${OSTYPE}.system.cache`
4871 if test "x$LINE" != x
; then
4872 eval "DEFAULT_$LINE"
4874 ac_cv_use_ipc
='USE_IPC='$DEFAULT_USE_IPC
4878 eval "$ac_cv_use_ipc"
4879 echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
4880 if test "$USE_IPC" = 1; then
4881 echo "$ac_t""yes" 1>&6
4883 echo "$ac_t""no" 1>&6
4888 echo $ac_n "checking "for enhanced dialog
"""... $ac_c" 1>&6
4889 echo "configure:4890: checking "for enhanced dialog
"" >&5
4890 # Check whether --with-enhanceddialog or --without-enhanceddialog was given.
4891 if test "${with_enhanceddialog+set}" = set; then
4892 withval
="$with_enhanceddialog"
4893 if test "x$with_enhanceddialog" = xyes
; then
4894 ac_cv_use_enhanceddialog
='USE_ENHANCED_DIALOG="1"'
4896 ac_cv_use_enhanceddialog
='USE_ENHANCED_DIALOG="0"'
4900 LINE
=`grep "USE_ENHANCED_DIALOG" ${OSTYPE}.system.cache`
4901 if test "x$LINE" != x
; then
4902 eval "DEFAULT_$LINE"
4904 ac_cv_use_enhanceddialog
='USE_ENHANCED_DIALOG='$DEFAULT_USE_ENHANCED_DIALOG
4908 eval "$ac_cv_use_enhanceddialog"
4909 echo $ac_cv_use_enhanceddialog >> ${OSTYPE}.system.cache.tmp
4910 if test "$USE_ENHANCED_DIALOG" = 1; then
4911 echo "$ac_t""yes" 1>&6
4913 echo "$ac_t""no" 1>&6
4918 echo $ac_n "checking "for resources
"""... $ac_c" 1>&6
4919 echo "configure:4920: checking "for resources
"" >&5
4920 # Check whether --with-resources or --without-resources was given.
4921 if test "${with_resources+set}" = set; then
4922 withval
="$with_resources"
4923 if test "x$with_resources" = xyes
; then
4924 ac_cv_use_resources
='USE_RESOURCES="1"'
4926 ac_cv_use_resources
='USE_RESOURCES="0"'
4930 LINE
=`grep "USE_RESOURCES" ${OSTYPE}.system.cache`
4931 if test "x$LINE" != x
; then
4932 eval "DEFAULT_$LINE"
4934 ac_cv_use_resources
='USE_RESOURCES='$DEFAULT_USE_RESOURCES
4938 eval "$ac_cv_use_resources"
4939 echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
4940 if test "$USE_RESOURCES" = 1; then
4941 echo "$ac_t""yes" 1>&6
4943 echo "$ac_t""no" 1>&6
4948 echo $ac_n "checking "for clipboard
"""... $ac_c" 1>&6
4949 echo "configure:4950: checking "for clipboard
"" >&5
4950 # Check whether --with-clipboard or --without-clipboard was given.
4951 if test "${with_clipboard+set}" = set; then
4952 withval
="$with_clipboard"
4953 if test "x$with_clipboard" = xyes
; then
4954 ac_cv_use_clipboard
='USE_CLIPBOARD="1"'
4956 ac_cv_use_clipboard
='USE_CLIPBOARD="0"'
4960 LINE
=`grep "USE_CLIPBOARD" ${OSTYPE}.system.cache`
4961 if test "x$LINE" != x
; then
4962 eval "DEFAULT_$LINE"
4964 ac_cv_use_clipboard
='USE_CLIPBOARD='$DEFAULT_USE_CLIPBOARD
4968 eval "$ac_cv_use_clipboard"
4969 echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
4970 if test "$USE_CLIPBOARD" = 1; then
4971 echo "$ac_t""yes" 1>&6
4973 echo "$ac_t""no" 1>&6
4978 echo $ac_n "checking "for timedate
"""... $ac_c" 1>&6
4979 echo "configure:4980: checking "for timedate
"" >&5
4980 # Check whether --with-timedate or --without-timedate was given.
4981 if test "${with_timedate+set}" = set; then
4982 withval
="$with_timedate"
4983 if test "x$with_timedate" = xyes
; then
4984 ac_cv_use_timedate
='USE_TIMEDATE="1"'
4986 ac_cv_use_timedate
='USE_TIMEDATE="0"'
4990 LINE
=`grep "USE_TIMEDATE" ${OSTYPE}.system.cache`
4991 if test "x$LINE" != x
; then
4992 eval "DEFAULT_$LINE"
4994 ac_cv_use_timedate
='USE_TIMEDATE='$DEFAULT_USE_TIMEDATE
4998 eval "$ac_cv_use_timedate"
4999 echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
5000 if test "$USE_TIMEDATE" = 1; then
5001 echo "$ac_t""yes" 1>&6
5003 echo "$ac_t""no" 1>&6
5008 echo $ac_n "checking "for fraction
"""... $ac_c" 1>&6
5009 echo "configure:5010: checking "for fraction
"" >&5
5010 # Check whether --with-fraction or --without-fraction was given.
5011 if test "${with_fraction+set}" = set; then
5012 withval
="$with_fraction"
5013 if test "x$with_fraction" = xyes
; then
5014 ac_cv_use_fraction
='USE_FRACTION="1"'
5016 ac_cv_use_fraction
='USE_FRACTION="0"'
5020 LINE
=`grep "USE_FRACTION" ${OSTYPE}.system.cache`
5021 if test "x$LINE" != x
; then
5022 eval "DEFAULT_$LINE"
5024 ac_cv_use_fraction
='USE_FRACTION='$DEFAULT_USE_FRACTION
5028 eval "$ac_cv_use_fraction"
5029 echo $ac_cv_use_fraction >> ${OSTYPE}.system.cache.tmp
5030 if test "$USE_FRACTION" = 1; then
5031 echo "$ac_t""yes" 1>&6
5033 echo "$ac_t""no" 1>&6
5038 echo $ac_n "checking "for constrains
"""... $ac_c" 1>&6
5039 echo "configure:5040: checking "for constrains
"" >&5
5040 # Check whether --with-constraints or --without-constraints was given.
5041 if test "${with_constraints+set}" = set; then
5042 withval
="$with_constraints"
5043 if test "x$with_constraints" = xyes
; then
5044 ac_cv_use_constraints
='USE_CONSTRAINTS="1"'
5046 ac_cv_use_constraints
='USE_CONSTRAINTS="0"'
5050 LINE
=`grep "USE_CONSTRAINTS" ${OSTYPE}.system.cache`
5051 if test "x$LINE" != x
; then
5052 eval "DEFAULT_$LINE"
5054 ac_cv_use_constraints
='USE_CONSTRAINTS='$DEFAULT_USE_CONSTRAINTS
5058 eval "$ac_cv_use_constraints"
5059 echo $ac_cv_use_constraints >> ${OSTYPE}.system.cache.tmp
5060 if test "$USE_CONSTRAINTS" = 1; then
5061 echo "$ac_t""yes" 1>&6
5063 echo "$ac_t""no" 1>&6
5068 echo $ac_n "checking "for toolbar
"""... $ac_c" 1>&6
5069 echo "configure:5070: checking "for toolbar
"" >&5
5070 # Check whether --with-toolbar or --without-toolbar was given.
5071 if test "${with_toolbar+set}" = set; then
5072 withval
="$with_toolbar"
5073 if test "x$with_toolbar" = xyes
; then
5074 ac_cv_use_toolbar
='USE_TOOLBAR="1"'
5076 ac_cv_use_toolbar
='USE_TOOLBAR="0"'
5080 LINE
=`grep "USE_TOOLBAR" ${OSTYPE}.system.cache`
5081 if test "x$LINE" != x
; then
5082 eval "DEFAULT_$LINE"
5084 ac_cv_use_toolbar
='USE_TOOLBAR='$DEFAULT_USE_TOOLBAR
5088 eval "$ac_cv_use_toolbar"
5089 echo $ac_cv_use_toolbar >> ${OSTYPE}.system.cache.tmp
5090 if test "$USE_TOOLBAR" = 1; then
5091 echo "$ac_t""yes" 1>&6
5093 echo "$ac_t""no" 1>&6
5098 echo $ac_n "checking "for gauge
"""... $ac_c" 1>&6
5099 echo "configure:5100: checking "for gauge
"" >&5
5100 # Check whether --with-gauge or --without-gauge was given.
5101 if test "${with_gauge+set}" = set; then
5102 withval
="$with_gauge"
5103 if test "x$with_gauge" = xyes
; then
5104 ac_cv_use_gauge
='USE_GAUGE="1"'
5106 ac_cv_use_gauge
='USE_GAUGE="0"'
5110 LINE
=`grep "USE_GAUGE" ${OSTYPE}.system.cache`
5111 if test "x$LINE" != x
; then
5112 eval "DEFAULT_$LINE"
5114 ac_cv_use_gauge
='USE_GAUGE='$DEFAULT_USE_GAUGE
5118 eval "$ac_cv_use_gauge"
5119 echo $ac_cv_use_gauge >> ${OSTYPE}.system.cache.tmp
5120 if test "$USE_GAUGE" = 1; then
5121 echo "$ac_t""yes" 1>&6
5123 echo "$ac_t""no" 1>&6
5128 echo $ac_n "checking "for vllist
"""... $ac_c" 1>&6
5129 echo "configure:5130: checking "for vllist
"" >&5
5130 # Check whether --with-vllist or --without-vllist was given.
5131 if test "${with_vllist+set}" = set; then
5132 withval
="$with_vllist"
5133 if test "x$with_vllist" = xyes
; then
5134 ac_cv_use_vllist
='USE_VLBOX="1"'
5136 ac_cv_use_vllist
='USE_VLBOX="0"'
5140 LINE
=`grep "USE_VLBOX" ${OSTYPE}.system.cache`
5141 if test "x$LINE" != x
; then
5142 eval "DEFAULT_$LINE"
5144 ac_cv_use_vllist
='USE_VLBOX='$DEFAULT_USE_VLBOX
5148 eval "$ac_cv_use_vllist"
5149 echo $ac_cv_use_vllist >> ${OSTYPE}.system.cache.tmp
5150 if test "$USE_VLBOX" = 1; then
5151 echo "$ac_t""yes" 1>&6
5153 echo "$ac_t""no" 1>&6
5158 echo $ac_n "checking "for scrollbar
"""... $ac_c" 1>&6
5159 echo "configure:5160: checking "for scrollbar
"" >&5
5160 # Check whether --with-scrollbar or --without-scrollbar was given.
5161 if test "${with_scrollbar+set}" = set; then
5162 withval
="$with_scrollbar"
5163 if test "x$with_scrollbar" = xyes
; then
5164 ac_cv_use_scrollbar
='USE_SCROLLBAR="1"'
5166 ac_cv_use_scrollbar
='USE_SCROLLBAR="0"'
5170 LINE
=`grep "USE_SCROLLBAR" ${OSTYPE}.system.cache`
5171 if test "x$LINE" != x
; then
5172 eval "DEFAULT_$LINE"
5174 ac_cv_use_scrollbar
='USE_SCROLLBAR='$DEFAULT_USE_SCROLLBAR
5178 eval "$ac_cv_use_scrollbar"
5179 echo $ac_cv_use_scrollbar >> ${OSTYPE}.system.cache.tmp
5180 if test "$USE_SCROLLBAR" = 1; then
5181 echo "$ac_t""yes" 1>&6
5183 echo "$ac_t""no" 1>&6
5188 echo $ac_n "checking "for docview
"""... $ac_c" 1>&6
5189 echo "configure:5190: checking "for docview
"" >&5
5190 # Check whether --with-docview or --without-docview was given.
5191 if test "${with_docview+set}" = set; then
5192 withval
="$with_docview"
5193 if test "x$with_docview" = xyes
; then
5194 ac_cv_use_docview
='USE_DOC_VIEW_ARCHITECTURE="1"'
5196 ac_cv_use_docview
='USE_DOC_VIEW_ARCHITECTURE="0"'
5200 LINE
=`grep "USE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
5201 if test "x$LINE" != x
; then
5202 eval "DEFAULT_$LINE"
5204 ac_cv_use_docview
='USE_DOC_VIEW_ARCHITECTURE='$DEFAULT_USE_DOC_VIEW_ARCHITECTURE
5208 eval "$ac_cv_use_docview"
5209 echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
5210 if test "$USE_DOC_VIEW_ARCHITECTURE" = 1; then
5211 echo "$ac_t""yes" 1>&6
5213 echo "$ac_t""no" 1>&6
5218 echo $ac_n "checking "for printarch
"""... $ac_c" 1>&6
5219 echo "configure:5220: checking "for printarch
"" >&5
5220 # Check whether --with-printarch or --without-printarch was given.
5221 if test "${with_printarch+set}" = set; then
5222 withval
="$with_printarch"
5223 if test "x$with_printarch" = xyes
; then
5224 ac_cv_use_printarch
='USE_PRINTING_ARCHITECTURE="1"'
5226 ac_cv_use_printarch
='USE_PRINTING_ARCHITECTURE="0"'
5230 LINE
=`grep "USE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
5231 if test "x$LINE" != x
; then
5232 eval "DEFAULT_$LINE"
5234 ac_cv_use_printarch
='USE_PRINTING_ARCHITECTURE='$DEFAULT_USE_PRINTING_ARCHITECTURE
5238 eval "$ac_cv_use_printarch"
5239 echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
5240 if test "$USE_PRINTING_ARCHITECTURE" = 1; then
5241 echo "$ac_t""yes" 1>&6
5243 echo "$ac_t""no" 1>&6
5248 echo $ac_n "checking "for typetree
"""... $ac_c" 1>&6
5249 echo "configure:5250: checking "for typetree
"" >&5
5250 # Check whether --with-typetree or --without-typetree was given.
5251 if test "${with_typetree+set}" = set; then
5252 withval
="$with_typetree"
5253 if test "x$with_typetree" = xyes
; then
5254 ac_cv_use_typetree
='USE_TYPETREE="1"'
5256 ac_cv_use_typetree
='USE_TYPETREE="0"'
5260 LINE
=`grep "USE_TYPETREE" ${OSTYPE}.system.cache`
5261 if test "x$LINE" != x
; then
5262 eval "DEFAULT_$LINE"
5264 ac_cv_use_typetree
='USE_TYPETREE='$DEFAULT_USE_TYPETREE
5268 eval "$ac_cv_use_typetree"
5269 echo $ac_cv_use_typetree >> ${OSTYPE}.system.cache.tmp
5270 if test "$USE_TYPETREE" = 1; then
5271 echo "$ac_t""yes" 1>&6
5273 echo "$ac_t""no" 1>&6
5278 echo $ac_n "checking "for wxgraph
"""... $ac_c" 1>&6
5279 echo "configure:5280: checking "for wxgraph
"" >&5
5280 # Check whether --with-wxgraph or --without-wxgraph was given.
5281 if test "${with_wxgraph+set}" = set; then
5282 withval
="$with_wxgraph"
5283 if test "x$with_wxgraph" = xyes
; then
5284 ac_cv_use_wxgraph
='USE_WXGRAPH="1"'
5286 ac_cv_use_wxgraph
='USE_WXGRAPH="0"'
5290 LINE
=`grep "USE_WXGRAPH" ${OSTYPE}.system.cache`
5291 if test "x$LINE" != x
; then
5292 eval "DEFAULT_$LINE"
5294 ac_cv_use_wxgraph
='USE_WXGRAPH='$DEFAULT_USE_WXGRAPH
5298 eval "$ac_cv_use_wxgraph"
5299 echo $ac_cv_use_wxgraph >> ${OSTYPE}.system.cache.tmp
5300 if test "$USE_WXGRAPH" = 1; then
5301 echo "$ac_t""yes" 1>&6
5303 echo "$ac_t""no" 1>&6
5308 echo $ac_n "checking "for wxtree
"""... $ac_c" 1>&6
5309 echo "configure:5310: checking "for wxtree
"" >&5
5310 # Check whether --with-wxtree or --without-wxtree was given.
5311 if test "${with_wxtree+set}" = set; then
5312 withval
="$with_wxtree"
5313 if test "x$with_wxtree" = xyes
; then
5314 ac_cv_use_wxtree
='USE_WXTREE="1"'
5316 ac_cv_use_wxtree
='USE_WXTREE="0"'
5320 LINE
=`grep "USE_WXTREE" ${OSTYPE}.system.cache`
5321 if test "x$LINE" != x
; then
5322 eval "DEFAULT_$LINE"
5324 ac_cv_use_wxtree
='USE_WXTREE='$DEFAULT_USE_WXTREE
5328 eval "$ac_cv_use_wxtree"
5329 echo $ac_cv_use_wxtree >> ${OSTYPE}.system.cache.tmp
5330 if test "$USE_WXTREE" = 1; then
5331 echo "$ac_t""yes" 1>&6
5333 echo "$ac_t""no" 1>&6
5340 if test "$USE_ZLIB" = 1 ; then
5345 if test "$USE_GDK_IMLIB" = 1 ; then
5346 GDK_IMLIB
="GDK_IMLIB"
5350 if test "$USE_LIBPNG" = 1 ; then
5356 if test "$USE_THREADS" = 1 ; then
5357 case "$OS" in iris
| IRIX
| Irix5
| Irix6
)
5364 THREADS_LINK
=-lpthread
5368 cat >> confdefs.h
<<EOF
5369 #define USE_THREADS $USE_THREADS
5372 cat >> confdefs.h
<<EOF
5373 #define USE_THREADS_SGI $USE_THREADS_SGI
5376 cat >> confdefs.h
<<EOF
5377 #define USE_THREADS_POSIX $USE_THREADS_POSIX
5385 if test "$USE_STORABLE_CLASSES" = 1 ; then
5387 cat >> confdefs.h
<<EOF
5388 #define USE_STORABLE_CLASSES $USE_STORABLE_CLASSES
5394 if test "$USE_AUTOTRANS" = 1 ; then
5395 AUTOTRANS
="AUTOTRANS"
5396 cat >> confdefs.h
<<EOF
5397 #define USE_AUTOTRANS $USE_AUTOTRANS
5403 if test "$USE_DEBUG_INFO" = 1 ; then
5408 if test "$USE_DEBUG_FLAG" = 1 ; then
5409 cat >> confdefs.h
<<EOF
5410 #define DEBUG $USE_DEBUG_FLAG
5415 if test "$USE_MEM_TRACING" = 1 ; then
5416 cat >> confdefs.h
<<EOF
5417 #define USE_MEMORY_TRACING $USE_MEM_TRACING
5420 cat >> confdefs.h
<<EOF
5421 #define USE_GLOBAL_MEMORY_OPERATORS $USE_MEM_TRACING
5427 if test "$USE_PROFILE" = 1 ; then
5432 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
5433 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
5434 if test "$USE_OPTIMISE" = 0 ; then
5437 if test "$GCC" = yes ; then
5439 case "${canonical}" in
5441 OPTIMISE
="${OPTIMISE} "
5450 USE_IOSTREAMH
=$DEFAULT_USE_IOSTREAMH
5451 cat >> confdefs.h
<<EOF
5452 #define USE_IOSTREAMH $USE_IOSTREAMH
5457 if test "$USE_RPC" = 1 ; then
5459 cat >> confdefs.h
<<EOF
5460 #define USE_RPC $USE_RPC
5467 if test "$USE_WX_RESOURCES" = 1 ; then
5468 WXRESOURCES
="WXRESOURCES"
5469 cat >> confdefs.h
<<EOF
5470 #define USE_WX_RESOURCES $USE_WX_RESOURCES
5478 if test "$USE_PROLOGIO" = 1 ; then
5480 PROLOGIOSRC
="PROLOGIOSRC"
5481 cat >> confdefs.h
<<EOF
5482 #define USE_PROLOGIO 1
5490 if test "$USE_POSTSCRIPT" = 1 ; then
5491 POSTSCRIPTDC
="POSTSCRIPTDC"
5492 cat >> confdefs.h
<<EOF
5493 #define USE_POSTSCRIPT 1
5500 if test "$USE_METAFILE" = 1 ; then
5502 cat >> confdefs.h
<<EOF
5503 #define USE_METAFILE $USE_METAFILE
5510 if test "$USE_FORM" = 1 ; then
5512 cat >> confdefs.h
<<EOF
5513 #define USE_FORM $USE_FORM
5520 if test "$USE_HELP" = 1 ; then
5522 cat >> confdefs.h
<<EOF
5523 #define USE_HELP $USE_HELP
5530 if test "$USE_IPC" = 1 ; then
5532 cat >> confdefs.h
<<EOF
5540 if test "$USE_ENHANCED_DIALOG" = 1 ; then
5541 ENHDIALOGBOX
="ENHDIALOGBOX"
5542 cat >> confdefs.h
<<EOF
5543 #define USE_ENHANCED_DIALOG $USE_ENHANCED_DIALOG
5550 if test "$USE_RESOURCES" = 1 ; then
5551 XRESOURCES
="XRESOURCES"
5552 cat >> confdefs.h
<<EOF
5553 #define USE_RESOURCES $USE_RESOURCES
5560 if test "$USE_CLIPBOARD" = 1 ; then
5561 CLIPBOARD
="CLIPBOARD"
5562 cat >> confdefs.h
<<EOF
5563 #define USE_CLIPBOARD $USE_CLIPBOARD
5570 if test "$USE_CONSTRAINTS" = 1 ; then
5571 CONSTRAINTS
="CONSTRAINTS"
5572 cat >> confdefs.h
<<EOF
5573 #define USE_CONSTRAINTS $USE_CONSTRAINTS
5580 if test "$USE_TIMEDATE" = 1 ; then
5582 cat >> confdefs.h
<<EOF
5583 #define USE_TIMEDATE $USE_TIMEDATE
5590 if test "$USE_FRACTION" = 1 ; then
5592 cat >> confdefs.h
<<EOF
5593 #define USE_FRACTION $USE_FRACTION
5600 if test "$USE_TOOLBAR" = 1 ; then
5602 cat >> confdefs.h
<<EOF
5603 #define USE_TOOLBAR $USE_TOOLBAR
5606 cat >> confdefs.h
<<EOF
5607 #define USE_XT_TOOLBAR $USE_XT_TOOLBAR
5614 if test "$USE_GAUGE" = 1 ; then
5617 cat >> confdefs.h
<<EOF
5618 #define USE_GAUGE $USE_GAUGE
5624 if test "$USE_VLBOX" = 1 ; then
5625 VIRTLISTBOX
="VIRLISTBOX"
5626 cat >> confdefs.h
<<EOF
5627 #define USE_VIRLISTBOX $USE_VIRLISTBOX
5634 if test "$USE_SCROLLBAR" = 1 ; then
5635 SCROLLBAR
="SCROLLBAR"
5636 cat >> confdefs.h
<<EOF
5637 #define USE_SCROLLBAR $USE_SCROLLBAR
5644 if test "$USE_DOC_VIEW_ARCHITECTURE" = 1 ; then
5646 cat >> confdefs.h
<<EOF
5647 #define USE_DOC_VIEW_ARCHITECTURE $USE_DOC_VIEW_ARCHITECTURE
5654 if test "$USE_PRINTING_ARCHITECTURE" = 1 ; then
5655 PRINTPREVIEW
="PRINTPREVIEW"
5656 cat >> confdefs.h
<<EOF
5657 #define USE_PRINTING_ARCHITECTURE $USE_PRINTING_ARCHITECTURE
5664 if test "$USE_TYPETREE" = 1 ; then
5666 cat >> confdefs.h
<<EOF
5667 #define USE_TYPETREE $USE_TYPETREE
5674 if test "$USE_WXGRAPH" = 1 ; then
5676 cat >> confdefs.h
<<EOF
5677 #define USE_WXGRAPH $USE_WXGRAPH
5684 if test "$USE_WXTREE" = 1 ; then
5686 cat >> confdefs.h
<<EOF
5687 #define USE_WXTREE $USE_WXTREE
5694 if test "$USE_OPENGL" = 1 ; then
5698 cat >> confdefs.h
<<EOF
5699 #define USE_AFM_FOR_POSTSCRIPT $USE_AFM_FOR_POSTSCRIPT
5703 cat >> confdefs.h
<<EOF
5704 #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
5709 if test "$USE_UNIX" = 1 ; then
5710 cat >> confdefs.h
<<\EOF
5721 if test "$USE_GTK" = 1; then
5722 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
5723 if test "${with_gtk_prefix+set}" = set; then
5724 withval
="$with_gtk_prefix"
5725 gtk_config_prefix
="$withval"
5727 gtk_config_prefix
=""
5730 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
5731 if test "${with_gtk_exec_prefix+set}" = set; then
5732 withval
="$with_gtk_exec_prefix"
5733 gtk_config_exec_prefix
="$withval"
5735 gtk_config_exec_prefix
=""
5739 if test x
$gtk_config_exec_prefix != x
; then
5740 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
5741 if test x
${GTK_CONFIG+set} != xset
; then
5742 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
5745 if test x
$gtk_config_prefix != x
; then
5746 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
5747 if test x
${GTK_CONFIG+set} != xset
; then
5748 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
5752 # Extract the first word of "gtk-config", so it can be a program name with args.
5753 set dummy gtk
-config; ac_word
=$2
5754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5755 echo "configure:5756: checking for $ac_word" >&5
5756 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5757 echo $ac_n "(cached) $ac_c" 1>&6
5759 case "$GTK_CONFIG" in
5761 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
5764 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5765 for ac_dir
in $PATH; do
5766 test -z "$ac_dir" && ac_dir
=.
5767 if test -f $ac_dir/$ac_word; then
5768 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
5773 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
5777 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
5778 if test -n "$GTK_CONFIG"; then
5779 echo "$ac_t""$GTK_CONFIG" 1>&6
5781 echo "$ac_t""no" 1>&6
5784 min_gtk_version
=0.99.7
5785 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
5786 echo "configure:5787: checking for GTK - version >= $min_gtk_version" >&5
5788 if test "$GTK_CONFIG" != "no" ; then
5789 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
5790 GTK_LIBS
=`$GTK_CONFIG --libs`
5791 ac_save_CFLAGS
="$CFLAGS"
5792 ac_save_LIBS
="$LIBS"
5793 CFLAGS
="$CFLAGS $GTK_CFLAGS"
5794 LIBS
="$LIBS $GTK_LIBS"
5795 if test "$cross_compiling" = yes; then
5796 echo $ac_n "cross compiling; assumed OK... $ac_c"
5798 cat > conftest.
$ac_ext <<EOF
5799 #line 5800 "configure"
5800 #include "confdefs.h"
5802 #include <gtk/gtk.h>
5808 int major, minor, micro;
5810 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
5811 printf("%s, bad version string\n", "$min_gtk_version");
5815 return !((gtk_major_version > major) ||
5816 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
5817 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
5821 if { (eval echo configure
:5822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5825 echo "configure: failed program was:" >&5
5826 cat conftest.
$ac_ext >&5
5833 CFLAGS
="$ac_save_CFLAGS"
5834 LIBS
="$ac_save_LIBS"
5838 if test "x$no_gtk" = x
; then
5839 echo "$ac_t""yes" 1>&6
5841 GUI_TK_INCLUDE
="$GTK_CFLAGS"
5842 GUI_TK_LIBRARY
="$GTK_LIBS"
5845 echo "$ac_t""no" 1>&6
5848 { echo "configure: error: Are gtk-config and the GTK in path and up-to-date?" 1>&2; exit 1; }
5853 cat >> confdefs.h
<<\EOF
5870 if test "$USE_OPENGL" = 1; then
5871 echo $ac_n "checking for OpenGL includes""... $ac_c" 1>&6
5872 echo "configure:5873: checking for OpenGL includes" >&5
5875 for ac_dir
in $SEARCH_INCLUDE;
5877 if test -f "$ac_dir/GL/gl.h"; then
5878 ac_find_includes
=$ac_dir
5883 if test "$ac_find_includes" != "" ; then
5884 OPENGL_INCLUDE
="-I$ac_find_includes"
5885 echo "$ac_t""found $ac_find_includes" 1>&6
5886 echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
5887 echo "configure:5888: checking for OpenGL library" >&5
5890 for ac_dir
in $SEARCH_LIB;
5892 for ac_extension
in a so sl
; do
5893 if test -f "$ac_dir/libGL.$ac_extension"; then
5894 ac_find_libraries
=$ac_dir
5900 if test "$ac_find_libraries" != "" ; then
5902 ac_path_to_include
=$ac_find_includes
5903 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
5905 if test $result = 0; then
5906 ac_path_to_include
=""
5908 ac_path_to_include
="-I$ac_find_includes"
5912 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5914 if test $result = 0; then
5917 ac_path_to_link
="-L$ac_find_libraries"
5920 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
5921 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
5922 OPENGL_LIBRARY
="$ac_path_to_link"
5923 OPENGL_INCLUDE
="$ac_path_to_include"
5925 echo "$ac_t""found OpenGL at $ac_find_libraries" 1>&6
5929 for ac_dir
in $SEARCH_LIB;
5931 for ac_extension
in a so sl
; do
5932 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
5933 ac_find_libraries
=$ac_dir
5939 if test "$ac_find_libraries" != "" ; then
5941 ac_path_to_include
=$ac_find_includes
5942 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
5944 if test $result = 0; then
5945 ac_path_to_include
=""
5947 ac_path_to_include
="-I$ac_find_includes"
5951 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5953 if test $result = 0; then
5956 ac_path_to_link
="-L$ac_find_libraries"
5959 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
5960 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
5961 OPENGL_LIBRARY
="$ac_path_to_link"
5962 OPENGL_INCLUDE
="$ac_path_to_include"
5963 OPENGL_LINK
="-lMesaGL"
5964 echo "$ac_t""found MESA at $ac_find_libraries" 1>&6
5966 { echo "configure: error: no" 1>&2; exit 1; }
5970 { echo "configure: error: no" 1>&2; exit 1; }
5974 if test "$USE_GDK_IMLIB" = 1; then
5975 cat >> confdefs.h
<<EOF
5976 #define USE_GDK_IMLIB $USE_GDK_IMLIB
5981 if test "$USE_ZLIB" = 1; then
5982 cat >> confdefs.h
<<EOF
5983 #define USE_ZLIB $USE_ZLIB
5988 if test "$USE_LIBPNG" = 1; then
5989 cat >> confdefs.h
<<EOF
5990 #define USE_LIBPNG $USE_LIBPNG
5999 if test "$USE_OPENGL" != 1; then
6006 cat >> confdefs.h
<<EOF
6007 #define USE_GLX $USE_GLX
6018 case "${canonical}" in
6021 if test "${CC}" != "gcc" ; then
6022 CXXFLAGS
="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
6023 CFLAGS
="${CFLAGS} -z -D_HPUX_SOURCE"
6029 CREATE_SHARED
=sharedHpux
6034 CREATE_SHARED
=sharedLinux
6037 *-*-irix5* | *-*-irix6* )
6038 # PICFLAGS can remain empty, as pic is the default
6040 CREATE_SHARED
=sharedIrix
6041 cat >> confdefs.h
<<\EOF
6048 if test "${CC}" != "gcc" ; then
6053 CREATE_SHARED
=sharedSolaris2
6054 cat >> confdefs.h
<<\EOF
6061 if test "${CC}" != "gcc" ; then
6067 CREATE_SHARED
=sharedSunos4
6068 cat >> confdefs.h
<<\EOF
6074 *-*-freebsd* | *-*-netbsd*)
6076 CREATE_SHARED
=sharedBsd
6077 cat >> confdefs.h
<<\EOF
6085 CREATE_SHARED
=sharedOSF
6089 if test "${CC}" != "gcc" ; then
6094 CREATE_SHARED
=sharedDgux
6095 cat >> confdefs.h
<<\EOF
6102 if test "${CC}" != "gcc" ; then
6107 CREATE_SHARED
=sharedSysV
6108 cat >> confdefs.h
<<\EOF
6115 if test "${CC}" != "gcc" ; then
6120 CREATE_SHARED
=sharedAIX
6121 cat >> confdefs.h
<<\EOF
6132 if test "x$GCC" = xyes
; then
6133 CFLAGS
="${CFLAGS} -Wall"
6136 if test "x$GXX" = xyes
; then
6137 CXXFLAGS
="${CXXFLAGS} -Wall"
6140 if test "$USE_SHARED" != 1; then
6150 echo $OS >> system.list
6151 echo $OS >> ..
/..
/system.list
6155 cat > confcache
<<\EOF
6156 # This file is a shell script that caches the results of configure
6157 # tests run on this system so they can be shared between configure
6158 # scripts and configure runs. It is not useful on other systems.
6159 # If it contains results you don't want to keep, you may remove or edit it.
6161 # By default, configure uses ./config.cache as the cache file,
6162 # creating it if it does not exist already. You can give configure
6163 # the --cache-file=FILE option to use a different cache file; that is
6164 # what configure does when it calls configure scripts in
6165 # subdirectories, so they share the cache.
6166 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6167 # config.status only pays attention to the cache file if you give it the
6168 # --recheck option to rerun configure.
6171 # The following way of writing the cache mishandles newlines in values,
6172 # but we know of no workaround that is simple, portable, and efficient.
6173 # So, don't put newlines in cache variables' values.
6174 # Ultrix sh set writes to stderr and can't be redirected directly,
6175 # and sets the high bit in the cache file unless we assign to the vars.
6177 case `(ac_space=' '; set) 2>&1` in
6179 # `set' does not quote correctly, so add quotes (double-quote substitution
6180 # turns \\\\ into \\, and sed turns \\ into \).
6182 -e "s/'/'\\\\''/g" \
6183 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6186 # `set' quotes correctly as required by POSIX, so do not add quotes.
6187 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6190 if cmp -s $cache_file confcache
; then
6193 if test -w $cache_file; then
6194 echo "updating cache $cache_file"
6195 cat confcache
> $cache_file
6197 echo "not updating unwritable cache $cache_file"
6202 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6204 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6205 # Let make expand exec_prefix.
6206 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6208 # Any assignment to VPATH causes Sun make to only execute
6209 # the first set of double-colon rules, so remove it if not needed.
6210 # If there is a colon in the path, we need to keep it.
6211 if test "x$srcdir" = x.
; then
6212 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6215 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6217 DEFS
=-DHAVE_CONFIG_H
6219 # Without the "./", some shells look in PATH for config.status.
6220 : ${CONFIG_STATUS=./config.status}
6222 echo creating
$CONFIG_STATUS
6223 rm -f $CONFIG_STATUS
6224 cat > $CONFIG_STATUS <<EOF
6226 # Generated automatically by configure.
6227 # Run this file to recreate the current configuration.
6228 # This directory was configured as follows,
6229 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6231 # $0 $ac_configure_args
6233 # Compiler output produced by configure, useful for debugging
6234 # configure, is in ./config.log if it exists.
6236 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6239 case "\$ac_option" in
6240 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6241 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6242 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6243 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6244 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6246 -help | --help | --hel | --he | --h)
6247 echo "\$ac_cs_usage"; exit 0 ;;
6248 *) echo "\$ac_cs_usage"; exit 1 ;;
6252 ac_given_srcdir=$srcdir
6253 ac_given_INSTALL="$INSTALL"
6255 trap 'rm -fr `echo "../../src/gtk/setup/substit ../../include/wx/gtk/setup.h:../../src/gtk/setup/setup.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6257 cat >> $CONFIG_STATUS <<EOF
6259 # Protect against being on the right side of a sed subst in config.status.
6260 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6261 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6264 s%@CFLAGS@%$CFLAGS%g
6265 s%@CPPFLAGS@%$CPPFLAGS%g
6266 s%@CXXFLAGS@%$CXXFLAGS%g
6268 s%@LDFLAGS@%$LDFLAGS%g
6270 s%@exec_prefix@%$exec_prefix%g
6271 s%@prefix@%$prefix%g
6272 s%@program_transform_name@%$program_transform_name%g
6273 s%@bindir@%$bindir%g
6274 s%@sbindir@%$sbindir%g
6275 s%@libexecdir@%$libexecdir%g
6276 s%@datadir@%$datadir%g
6277 s%@sysconfdir@%$sysconfdir%g
6278 s%@sharedstatedir@%$sharedstatedir%g
6279 s%@localstatedir@%$localstatedir%g
6280 s%@libdir@%$libdir%g
6281 s%@includedir@%$includedir%g
6282 s%@oldincludedir@%$oldincludedir%g
6283 s%@infodir@%$infodir%g
6284 s%@mandir@%$mandir%g
6285 s%@WXBASEDIR@%$WXBASEDIR%g
6289 s%@CXXCPP@%$CXXCPP%g
6290 s%@RANLIB@%$RANLIB%g
6292 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6293 s%@INSTALL_DATA@%$INSTALL_DATA%g
6296 s%@X_CFLAGS@%$X_CFLAGS%g
6297 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6298 s%@X_LIBS@%$X_LIBS%g
6299 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6300 s%@LIBOBJS@%$LIBOBJS%g
6303 s%@LEXLIB@%$LEXLIB%g
6304 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6306 s%@host_alias@%$host_alias%g
6307 s%@host_cpu@%$host_cpu%g
6308 s%@host_vendor@%$host_vendor%g
6309 s%@host_os@%$host_os%g
6310 s%@THREADS@%$THREADS%g
6311 s%@THREADS_LINK@%$THREADS_LINK%g
6313 s%@PROFILE@%$PROFILE%g
6314 s%@OPTIMISE@%$OPTIMISE%g
6316 s%@WXRESOURCES@%$WXRESOURCES%g
6317 s%@PROLOGIO@%$PROLOGIO%g
6318 s%@PROLOGIOSRC@%$PROLOGIOSRC%g
6319 s%@POSTSCRIPTDC@%$POSTSCRIPTDC%g
6320 s%@METAFILE@%$METAFILE%g
6324 s%@ENHDIALOGBOX@%$ENHDIALOGBOX%g
6325 s%@XRESOURCES@%$XRESOURCES%g
6326 s%@CLIPBOARD@%$CLIPBOARD%g
6327 s%@CONSTRAINTS@%$CONSTRAINTS%g
6328 s%@TIMEDATE@%$TIMEDATE%g
6329 s%@FRACTION@%$FRACTION%g
6330 s%@TOOLBAR@%$TOOLBAR%g
6332 s%@VIRLISTBOX@%$VIRLISTBOX%g
6333 s%@SCROLLBAR@%$SCROLLBAR%g
6334 s%@DOCVIEW@%$DOCVIEW%g
6335 s%@PRINTPREVIEW@%$PRINTPREVIEW%g
6336 s%@TYPETREE@%$TYPETREE%g
6337 s%@WXGRAPH@%$WXGRAPH%g
6338 s%@WXTREE@%$WXTREE%g
6339 s%@GTK_CONFIG@%$GTK_CONFIG%g
6340 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
6341 s%@GTK_LIBS@%$GTK_LIBS%g
6342 s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
6343 s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
6344 s%@GUI_TK_LINK@%$GUI_TK_LINK%g
6345 s%@TOOLKIT@%$TOOLKIT%g
6346 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
6347 s%@OPENGL_INCLUDE@%$OPENGL_INCLUDE%g
6348 s%@OPENGL_LIBRARY@%$OPENGL_LIBRARY%g
6349 s%@OPENGL_LINK@%$OPENGL_LINK%g
6350 s%@GLCANVAS@%$GLCANVAS%g
6352 s%@PICFLAGS@%$PICFLAGS%g
6353 s%@CREATE_SHARED@%$CREATE_SHARED%g
6358 cat >> $CONFIG_STATUS <<\EOF
6360 # Split the substitutions into bite-sized pieces for seds with
6361 # small command number limits, like on Digital OSF/1 and HP-UX.
6362 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6363 ac_file
=1 # Number of current file.
6364 ac_beg
=1 # First line for current file.
6365 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6368 while $ac_more_lines; do
6369 if test $ac_beg -gt 1; then
6370 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6372 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6374 if test ! -s conftest.s
$ac_file; then
6376 rm -f conftest.s
$ac_file
6378 if test -z "$ac_sed_cmds"; then
6379 ac_sed_cmds
="sed -f conftest.s$ac_file"
6381 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6383 ac_file
=`expr $ac_file + 1`
6385 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6388 if test -z "$ac_sed_cmds"; then
6393 cat >> $CONFIG_STATUS <<EOF
6395 CONFIG_FILES=\${CONFIG_FILES-"../../src/gtk/setup/substit"}
6397 cat >> $CONFIG_STATUS <<\EOF
6398 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6399 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6401 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6402 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6403 *) ac_file_in
="${ac_file}.in" ;;
6406 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6408 # Remove last slash and all that follows it. Not all systems have dirname.
6409 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6410 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6411 # The file is in a subdirectory.
6412 test ! -d "$ac_dir" && mkdir "$ac_dir"
6413 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6414 # A "../" for each directory in $ac_dir_suffix.
6415 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6417 ac_dir_suffix
= ac_dots
=
6420 case "$ac_given_srcdir" in
6422 if test -z "$ac_dots"; then top_srcdir
=.
6423 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6424 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6426 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6427 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6430 case "$ac_given_INSTALL" in
6431 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6432 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6435 echo creating
"$ac_file"
6437 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6439 *Makefile
*) ac_comsub
="1i\\
6440 # $configure_input" ;;
6444 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6446 s%@configure_input@%$configure_input%g
6447 s%@srcdir@%$srcdir%g
6448 s%@top_srcdir@%$top_srcdir%g
6449 s%@INSTALL@%$INSTALL%g
6450 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6454 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6455 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6457 # ac_d sets the value in "#define NAME VALUE" lines.
6458 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6459 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6462 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6463 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6464 ac_uB
='\([ ]\)%\1#\2define\3'
6467 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6468 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6469 ac_eB
='$%\1#\2define\3'
6473 if test "${CONFIG_HEADERS+set}" != set; then
6475 cat >> $CONFIG_STATUS <<EOF
6476 CONFIG_HEADERS="../../include/wx/gtk/setup.h:../../src/gtk/setup/setup.hin"
6478 cat >> $CONFIG_STATUS <<\EOF
6480 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6481 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6483 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6484 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6485 *) ac_file_in
="${ac_file}.in" ;;
6488 echo creating
$ac_file
6490 rm -f conftest.frag conftest.
in conftest.out
6491 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6492 cat $ac_file_inputs > conftest.
in
6496 # Transform confdefs.h into a sed script conftest.vals that substitutes
6497 # the proper values into config.h.in to produce config.h. And first:
6498 # Protect against being on the right side of a sed subst in config.status.
6499 # Protect against being in an unquoted here document in config.status.
6501 cat > conftest.hdr
<<\EOF
6504 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6508 sed -n -f conftest.hdr confdefs.h > conftest.vals
6511 # This sed command replaces #undef with comments. This is necessary, for
6512 # example, in the case of _POSIX_SOURCE, which is predefined and required
6513 # on some systems where configure will not decide to define it.
6514 cat >> conftest.vals <<\EOF
6515 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6518 # Break up conftest.vals because some shells have a limit on
6519 # the size of here documents, and old seds have small limits too.
6524 ac_lines=`grep -c . conftest.vals
`
6525 # grep -c gives empty output for an empty file on some AIX systems.
6526 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6527 # Write a limited-size here document to conftest.frag.
6528 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6529 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6531 sed -f conftest.frag conftest.in > conftest.out
6533 mv conftest.out conftest.in
6535 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6537 mv conftest.tail conftest.vals
6541 cat >> $CONFIG_STATUS <<\EOF
6542 rm -f conftest.frag conftest.h
6543 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6544 cat conftest.in >> conftest.h
6546 if cmp -s $ac_file conftest.h 2>/dev/null; then
6547 echo "$ac_file is unchanged"
6550 # Remove last slash and all that follows it. Not all systems have dirname.
6551 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6552 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6553 # The file is in a subdirectory.
6554 test ! -d "$ac_dir" && mkdir "$ac_dir"
6557 mv conftest.h $ac_file
6562 cat >> $CONFIG_STATUS <<EOF
6565 cat >> $CONFIG_STATUS <<\EOF
6569 chmod +x $CONFIG_STATUS
6570 rm -fr confdefs* $ac_clean_files
6571 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6574 mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache