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.
"
624 /usr/Motif1.2/include \
634 /usr/local/X11R6/include \
635 /usr/local/X11R5/include \
636 /usr/local/X11R4/include \
638 /usr/local/include/X11R6 \
639 /usr/local/include/X11R5 \
640 /usr/local/include/X11R4 \
644 /usr/local/X11/include \
645 /usr/local/include/X11 \
649 /usr/XFree86/include/X11 \
653 /usr/local/include/gtk \
654 /usr/unsupported/include \
655 /usr/athena/include \
656 /usr/local/x11r5/include \
657 /usr/lpp/Xamples/include \
659 /usr/openwin/include \
660 /usr/openwin/share/include \
663 SEARCH_LIB
="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` \
668 # Extract the first word of "gcc", so it can be a program name with args.
669 set dummy gcc
; ac_word
=$2
670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
671 echo "configure:672: checking for $ac_word" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
675 if test -n "$CC"; then
676 ac_cv_prog_CC
="$CC" # Let the user override the test.
678 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
679 for ac_dir
in $PATH; do
680 test -z "$ac_dir" && ac_dir
=.
681 if test -f $ac_dir/$ac_word; then
690 if test -n "$CC"; then
691 echo "$ac_t""$CC" 1>&6
693 echo "$ac_t""no" 1>&6
696 if test -z "$CC"; then
697 # Extract the first word of "cc", so it can be a program name with args.
698 set dummy cc
; ac_word
=$2
699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
700 echo "configure:701: checking for $ac_word" >&5
701 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
704 if test -n "$CC"; then
705 ac_cv_prog_CC
="$CC" # Let the user override the test.
707 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
709 for ac_dir
in $PATH; do
710 test -z "$ac_dir" && ac_dir
=.
711 if test -f $ac_dir/$ac_word; then
712 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
721 if test $ac_prog_rejected = yes; then
722 # We found a bogon in the path, so make sure we never use it.
723 set dummy
$ac_cv_prog_CC
725 if test $# -gt 0; then
726 # We chose a different compiler from the bogus one.
727 # However, it has the same basename, so the bogon will be chosen
728 # first if we set CC to just the basename; use the full file name.
730 set dummy
"$ac_dir/$ac_word" "$@"
738 if test -n "$CC"; then
739 echo "$ac_t""$CC" 1>&6
741 echo "$ac_t""no" 1>&6
744 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
747 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
748 echo "configure:749: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
751 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
752 ac_cpp
='$CPP $CPPFLAGS'
753 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
754 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
755 cross_compiling
=$ac_cv_prog_cc_cross
757 cat > conftest.
$ac_ext <<EOF
758 #line 759 "configure"
759 #include "confdefs.h"
762 if { (eval echo configure
:763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
763 ac_cv_prog_cc_works
=yes
764 # If we can't run a trivial program, we are probably using a cross compiler.
765 if (.
/conftest
; exit) 2>/dev
/null
; then
766 ac_cv_prog_cc_cross
=no
768 ac_cv_prog_cc_cross
=yes
771 echo "configure: failed program was:" >&5
772 cat conftest.
$ac_ext >&5
773 ac_cv_prog_cc_works
=no
777 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
778 if test $ac_cv_prog_cc_works = no
; then
779 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
781 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
782 echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
783 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
784 cross_compiling
=$ac_cv_prog_cc_cross
786 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
787 echo "configure:788: checking whether we are using GNU C" >&5
788 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
789 echo $ac_n "(cached) $ac_c" 1>&6
791 cat > conftest.c
<<EOF
796 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
803 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
805 if test $ac_cv_prog_gcc = yes; then
807 ac_test_CFLAGS
="${CFLAGS+set}"
808 ac_save_CFLAGS
="$CFLAGS"
810 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
811 echo "configure:812: checking whether ${CC-cc} accepts -g" >&5
812 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
813 echo $ac_n "(cached) $ac_c" 1>&6
815 echo 'void f(){}' > conftest.c
816 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
825 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
826 if test "$ac_test_CFLAGS" = set; then
827 CFLAGS
="$ac_save_CFLAGS"
828 elif test $ac_cv_prog_cc_g = yes; then
835 test "${CFLAGS+set}" = set || CFLAGS
="-g"
839 CFLAGS
=`echo "$CFLAGS" | sed 's/-g//g'`
841 if test "x$CC" != xcc
; then
842 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
843 echo "configure:844: checking whether $CC and cc understand -c and -o together" >&5
845 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
846 echo "configure:847: checking whether cc understands -c and -o together" >&5
848 set dummy
$CC; ac_cc
="`echo $2 |
849 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
850 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 echo 'foo(){}' > conftest.c
854 # Make sure it works both with $CC and with simple cc.
855 # We do the test twice because some compilers refuse to overwrite an
856 # existing .o file with -o, though they will create one.
857 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
858 if { (eval echo configure
:859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
859 test -f conftest.o
&& { (eval echo configure
:860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
861 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
862 if test "x$CC" != xcc
; then
863 # Test first that cc exists at all.
864 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
865 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
866 if { (eval echo configure
:867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
867 test -f conftest.o
&& { (eval echo configure
:868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
872 # cc exists but doesn't like -o.
873 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
878 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
883 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
884 echo "$ac_t""yes" 1>&6
886 echo "$ac_t""no" 1>&6
887 cat >> confdefs.h
<<\EOF
888 #define NO_MINUS_C_MINUS_O 1
893 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
894 echo "configure:895: checking how to run the C preprocessor" >&5
895 # On Suns, sometimes $CPP names a directory.
896 if test -n "$CPP" && test -d "$CPP"; then
899 if test -z "$CPP"; then
900 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 # This must be in double quotes, not single quotes, because CPP may get
904 # substituted into the Makefile and "${CC-cc}" will confuse make.
906 # On the NeXT, cc -E runs the code through the compiler's parser,
907 # not just through cpp.
908 cat > conftest.
$ac_ext <<EOF
909 #line 910 "configure"
910 #include "confdefs.h"
914 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
915 { (eval echo configure
:916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
916 ac_err
=`grep -v '^ *+' conftest.out`
917 if test -z "$ac_err"; then
921 echo "configure: failed program was:" >&5
922 cat conftest.
$ac_ext >&5
924 CPP
="${CC-cc} -E -traditional-cpp"
925 cat > conftest.
$ac_ext <<EOF
926 #line 927 "configure"
927 #include "confdefs.h"
931 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
932 { (eval echo configure
:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
933 ac_err
=`grep -v '^ *+' conftest.out`
934 if test -z "$ac_err"; then
938 echo "configure: failed program was:" >&5
939 cat conftest.
$ac_ext >&5
946 ac_cv_prog_CPP
="$CPP"
948 CPP
="$ac_cv_prog_CPP"
950 ac_cv_prog_CPP
="$CPP"
952 echo "$ac_t""$CPP" 1>&6
954 if test $ac_cv_prog_gcc = yes; then
955 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
956 echo "configure:957: checking whether ${CC-cc} needs -traditional" >&5
957 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
960 ac_pattern
="Autoconf.*'x'"
961 cat > conftest.
$ac_ext <<EOF
962 #line 963 "configure"
963 #include "confdefs.h"
967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
968 egrep "$ac_pattern" >/dev
/null
2>&1; then
970 ac_cv_prog_gcc_traditional
=yes
973 ac_cv_prog_gcc_traditional
=no
978 if test $ac_cv_prog_gcc_traditional = no
; then
979 cat > conftest.
$ac_ext <<EOF
980 #line 981 "configure"
981 #include "confdefs.h"
985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
986 egrep "$ac_pattern" >/dev
/null
2>&1; then
988 ac_cv_prog_gcc_traditional
=yes
995 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
996 if test $ac_cv_prog_gcc_traditional = yes; then
997 CC
="$CC -traditional"
1004 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1006 # Extract the first word of "$ac_prog", so it can be a program name with args.
1007 set dummy
$ac_prog; ac_word
=$2
1008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1009 echo "configure:1010: checking for $ac_word" >&5
1010 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1013 if test -n "$CXX"; then
1014 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1016 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1017 for ac_dir
in $PATH; do
1018 test -z "$ac_dir" && ac_dir
=.
1019 if test -f $ac_dir/$ac_word; then
1020 ac_cv_prog_CXX
="$ac_prog"
1027 CXX
="$ac_cv_prog_CXX"
1028 if test -n "$CXX"; then
1029 echo "$ac_t""$CXX" 1>&6
1031 echo "$ac_t""no" 1>&6
1034 test -n "$CXX" && break
1036 test -n "$CXX" || CXX
="gcc"
1039 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1040 echo "configure:1041: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1043 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1044 ac_cpp
='$CXXCPP $CPPFLAGS'
1045 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1046 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1047 cross_compiling
=$ac_cv_prog_cxx_cross
1049 cat > conftest.
$ac_ext <<EOF
1050 #line 1051 "configure"
1051 #include "confdefs.h"
1054 if { (eval echo configure
:1055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1055 ac_cv_prog_cxx_works
=yes
1056 # If we can't run a trivial program, we are probably using a cross compiler.
1057 if (.
/conftest
; exit) 2>/dev
/null
; then
1058 ac_cv_prog_cxx_cross
=no
1060 ac_cv_prog_cxx_cross
=yes
1063 echo "configure: failed program was:" >&5
1064 cat conftest.
$ac_ext >&5
1065 ac_cv_prog_cxx_works
=no
1069 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1070 ac_cpp
='$CPP $CPPFLAGS'
1071 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1072 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1073 cross_compiling
=$ac_cv_prog_cc_cross
1075 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1076 if test $ac_cv_prog_cxx_works = no
; then
1077 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1079 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1080 echo "configure:1081: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1081 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1082 cross_compiling
=$ac_cv_prog_cxx_cross
1084 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1085 echo "configure:1086: checking whether we are using GNU C++" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 cat > conftest.C
<<EOF
1094 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
1101 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1103 if test $ac_cv_prog_gxx = yes; then
1105 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1106 ac_save_CXXFLAGS
="$CXXFLAGS"
1108 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1109 echo "configure:1110: checking whether ${CXX-g++} accepts -g" >&5
1110 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1113 echo 'void f(){}' > conftest.cc
1114 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1115 ac_cv_prog_cxx_g
=yes
1123 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1124 if test "$ac_test_CXXFLAGS" = set; then
1125 CXXFLAGS
="$ac_save_CXXFLAGS"
1126 elif test $ac_cv_prog_cxx_g = yes; then
1133 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1136 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1137 echo "configure:1138: checking how to run the C++ preprocessor" >&5
1138 if test -z "$CXXCPP"; then
1139 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1143 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1144 ac_cpp
='$CXXCPP $CPPFLAGS'
1145 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1146 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1147 cross_compiling
=$ac_cv_prog_cxx_cross
1148 CXXCPP
="${CXX-g++} -E"
1149 cat > conftest.
$ac_ext <<EOF
1150 #line 1151 "configure"
1151 #include "confdefs.h"
1154 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1155 { (eval echo configure
:1156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1156 ac_err
=`grep -v '^ *+' conftest.out`
1157 if test -z "$ac_err"; then
1161 echo "configure: failed program was:" >&5
1162 cat conftest.
$ac_ext >&5
1167 ac_cv_prog_CXXCPP
="$CXXCPP"
1169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1170 ac_cpp
='$CPP $CPPFLAGS'
1171 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1172 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1173 cross_compiling
=$ac_cv_prog_cc_cross
1176 CXXCPP
="$ac_cv_prog_CXXCPP"
1177 echo "$ac_t""$CXXCPP" 1>&6
1180 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-g//g'`
1184 # Extract the first word of "ranlib", so it can be a program name with args.
1185 set dummy ranlib
; ac_word
=$2
1186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1187 echo "configure:1188: checking for $ac_word" >&5
1188 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 if test -n "$RANLIB"; then
1192 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1194 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1195 for ac_dir
in $PATH; do
1196 test -z "$ac_dir" && ac_dir
=.
1197 if test -f $ac_dir/$ac_word; then
1198 ac_cv_prog_RANLIB
="ranlib"
1203 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1206 RANLIB
="$ac_cv_prog_RANLIB"
1207 if test -n "$RANLIB"; then
1208 echo "$ac_t""$RANLIB" 1>&6
1210 echo "$ac_t""no" 1>&6
1214 # Extract the first word of "ar", so it can be a program name with args.
1215 set dummy
ar; ac_word
=$2
1216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1217 echo "configure:1218: checking for $ac_word" >&5
1218 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1221 if test -n "$AR"; then
1222 ac_cv_prog_AR
="$AR" # Let the user override the test.
1224 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1225 for ac_dir
in $PATH; do
1226 test -z "$ac_dir" && ac_dir
=.
1227 if test -f $ac_dir/$ac_word; then
1233 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1237 if test -n "$AR"; then
1238 echo "$ac_t""$AR" 1>&6
1240 echo "$ac_t""no" 1>&6
1245 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1246 if test -f $ac_dir/install-sh; then
1248 ac_install_sh
="$ac_aux_dir/install-sh -c"
1250 elif test -f $ac_dir/install.sh
; then
1252 ac_install_sh
="$ac_aux_dir/install.sh -c"
1256 if test -z "$ac_aux_dir"; then
1257 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1259 ac_config_guess
=$ac_aux_dir/config.guess
1260 ac_config_sub
=$ac_aux_dir/config.sub
1261 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1263 # Find a good install program. We prefer a C program (faster),
1264 # so one script is as good as another. But avoid the broken or
1265 # incompatible versions:
1266 # SysV /etc/install, /usr/sbin/install
1267 # SunOS /usr/etc/install
1268 # IRIX /sbin/install
1270 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1271 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1272 # ./install, which can be erroneously created by make from ./install.sh.
1273 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1274 echo "configure:1275: checking for a BSD compatible install" >&5
1275 if test -z "$INSTALL"; then
1276 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1280 for ac_dir
in $PATH; do
1281 # Account for people who put trailing slashes in PATH elements.
1283 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1285 # OSF1 and SCO ODT 3.0 have their own names for install.
1286 for ac_prog
in ginstall installbsd scoinst
install; do
1287 if test -f $ac_dir/$ac_prog; then
1288 if test $ac_prog = install &&
1289 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1290 # AIX install. It has an incompatible calling convention.
1291 # OSF/1 installbsd also uses dspmsg, but is usable.
1294 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1305 if test "${ac_cv_path_install+set}" = set; then
1306 INSTALL
="$ac_cv_path_install"
1308 # As a last resort, use the slow shell script. We don't cache a
1309 # path for INSTALL within a source directory, because that will
1310 # break other packages using the cache if that directory is
1311 # removed, or if the path is relative.
1312 INSTALL
="$ac_install_sh"
1315 echo "$ac_t""$INSTALL" 1>&6
1317 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1318 # It thinks the first close brace ends the variable substitution.
1319 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1321 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1324 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1325 echo "configure:1326: checking whether ln -s works" >&5
1326 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1330 if ln -s X conftestdata
2>/dev
/null
1333 ac_cv_prog_LN_S
="ln -s"
1338 LN_S
="$ac_cv_prog_LN_S"
1339 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1340 echo "$ac_t""yes" 1>&6
1342 echo "$ac_t""no" 1>&6
1346 for ac_prog
in mawk gawk nawk
awk
1348 # Extract the first word of "$ac_prog", so it can be a program name with args.
1349 set dummy
$ac_prog; ac_word
=$2
1350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1351 echo "configure:1352: checking for $ac_word" >&5
1352 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 if test -n "$AWK"; then
1356 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1358 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1359 for ac_dir
in $PATH; do
1360 test -z "$ac_dir" && ac_dir
=.
1361 if test -f $ac_dir/$ac_word; then
1362 ac_cv_prog_AWK
="$ac_prog"
1369 AWK
="$ac_cv_prog_AWK"
1370 if test -n "$AWK"; then
1371 echo "$ac_t""$AWK" 1>&6
1373 echo "$ac_t""no" 1>&6
1376 test -n "$AWK" && break
1380 echo $ac_n "checking "make for VPATH support
"""... $ac_c" 1>&6
1381 echo "configure:1382: checking "make for VPATH support
"" >&5
1382 cat - << EOF > confMake
1388 if test ! -d sub
; then
1391 echo dummy
> sub
/file
1392 ${MAKE-make} -f confMake VPATH
=sub
2> config.log
> /dev
/null
1394 rm -f sub
/file check final_file config.log confMake
1396 if test "$RESULT" = 0; then
1397 echo "$ac_t""yes" 1>&6
1399 echo "$ac_t""no" 1>&6
1400 { echo "configure: error: You need a make-utility that is able to use the variable
1402 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
1406 # If we find X, set shell vars x_includes and x_libraries to the
1407 # paths, otherwise set no_x=yes.
1408 # Uses ac_ vars as temps to allow command line to override cache and checks.
1409 # --without-x overrides everything else, but does not touch the cache.
1410 echo $ac_n "checking for X""... $ac_c" 1>&6
1411 echo "configure:1412: checking for X" >&5
1413 # Check whether --with-x or --without-x was given.
1414 if test "${with_x+set}" = set; then
1419 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1420 if test "x$with_x" = xno
; then
1421 # The user explicitly disabled X.
1424 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1425 # Both variables are already set.
1428 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 # One or both of the vars are not set, and there is no cached value.
1432 ac_x_includes
=NO ac_x_libraries
=NO
1434 if mkdir conftestdir
; then
1436 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1437 cat > Imakefile
<<'EOF'
1439 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1441 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1443 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1444 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1445 for ac_extension
in a so sl
; do
1446 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1447 test -f $ac_im_libdir/libX11.
$ac_extension; then
1448 ac_im_usrlibdir
=$ac_im_libdir; break
1451 # Screen out bogus values from the imake configuration. They are
1452 # bogus both because they are the default anyway, and because
1453 # using them would break gcc on systems where it needs fixed includes.
1454 case "$ac_im_incroot" in
1456 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1458 case "$ac_im_usrlibdir" in
1460 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1467 if test "$ac_x_includes" = NO
; then
1468 # Guess where to find include files, by looking for this one X11 .h file.
1469 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1471 # First, try using that file with no special directory specified.
1472 cat > conftest.
$ac_ext <<EOF
1473 #line 1474 "configure"
1474 #include "confdefs.h"
1475 #include <$x_direct_test_include>
1477 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1478 { (eval echo configure
:1479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1479 ac_err
=`grep -v '^ *+' conftest.out`
1480 if test -z "$ac_err"; then
1482 # We can compile using X headers with no special include directory.
1486 echo "configure: failed program was:" >&5
1487 cat conftest.
$ac_ext >&5
1489 # Look for the header file in a standard set of common directories.
1490 # Check X11 before X11Rn because it is often a symlink to the current release.
1493 /usr
/X
11R
6/include \
1494 /usr
/X
11R
5/include \
1495 /usr
/X
11R
4/include \
1498 /usr
/include
/X11R6 \
1499 /usr
/include
/X11R5 \
1500 /usr
/include
/X11R4 \
1502 /usr
/local
/X
11/include \
1503 /usr
/local
/X
11R
6/include \
1504 /usr
/local
/X
11R
5/include \
1505 /usr
/local
/X
11R
4/include \
1507 /usr
/local
/include
/X11 \
1508 /usr
/local
/include
/X11R6 \
1509 /usr
/local
/include
/X11R5 \
1510 /usr
/local
/include
/X11R4 \
1514 /usr
/XFree
86/include
/X11 \
1517 /usr
/local
/include \
1518 /usr
/unsupported
/include \
1519 /usr
/athena
/include \
1520 /usr
/local
/x
11r
5/include \
1521 /usr
/lpp
/Xamples
/include \
1523 /usr
/openwin
/include \
1524 /usr
/openwin
/share
/include \
1527 if test -r "$ac_dir/$x_direct_test_include"; then
1528 ac_x_includes
=$ac_dir
1534 fi # $ac_x_includes = NO
1536 if test "$ac_x_libraries" = NO
; then
1537 # Check for the libraries.
1539 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1540 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1542 # See if we find them without any special options.
1543 # Don't add to $LIBS permanently.
1544 ac_save_LIBS
="$LIBS"
1545 LIBS
="-l$x_direct_test_library $LIBS"
1546 cat > conftest.
$ac_ext <<EOF
1547 #line 1548 "configure"
1548 #include "confdefs.h"
1551 ${x_direct_test_function}()
1554 if { (eval echo configure
:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1556 LIBS
="$ac_save_LIBS"
1557 # We can link X programs with no special library path.
1560 echo "configure: failed program was:" >&5
1561 cat conftest.
$ac_ext >&5
1563 LIBS
="$ac_save_LIBS"
1564 # First see if replacing the include by lib works.
1565 # Check X11 before X11Rn because it is often a symlink to the current release.
1566 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1577 /usr
/local
/X
11/lib \
1578 /usr
/local
/X
11R
6/lib \
1579 /usr
/local
/X
11R
5/lib \
1580 /usr
/local
/X
11R
4/lib \
1582 /usr
/local
/lib
/X11 \
1583 /usr
/local
/lib
/X11R6 \
1584 /usr
/local
/lib
/X11R5 \
1585 /usr
/local
/lib
/X11R4 \
1589 /usr
/XFree
86/lib
/X11 \
1593 /usr
/unsupported
/lib \
1595 /usr
/local
/x
11r
5/lib \
1596 /usr
/lpp
/Xamples
/lib \
1600 /usr
/openwin
/share
/lib \
1603 for ac_extension
in a so sl
; do
1604 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1605 ac_x_libraries
=$ac_dir
1612 fi # $ac_x_libraries = NO
1614 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
1615 # Didn't find X anywhere. Cache the known absence of X.
1616 ac_cv_have_x
="have_x=no"
1618 # Record where we found X for the cache.
1619 ac_cv_have_x
="have_x=yes \
1620 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1624 eval "$ac_cv_have_x"
1627 if test "$have_x" != yes; then
1628 echo "$ac_t""$have_x" 1>&6
1631 # If each of the values was on the command line, it overrides each guess.
1632 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1633 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1634 # Update the cache value to reflect the command line values.
1635 ac_cv_have_x
="have_x=yes \
1636 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1637 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1640 if test "$no_x" = yes; then
1641 # Not all programs may use this symbol, but it does not hurt to define it.
1642 cat >> confdefs.h
<<\EOF
1643 #define X_DISPLAY_MISSING 1
1646 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1648 if test -n "$x_includes"; then
1649 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1652 # It would also be nice to do this for all -L options, not just this one.
1653 if test -n "$x_libraries"; then
1654 X_LIBS
="$X_LIBS -L$x_libraries"
1655 # For Solaris; some versions of Sun CC require a space after -R and
1656 # others require no space. Words are not sufficient . . . .
1657 case "`(uname -sr) 2>/dev/null`" in
1659 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1660 echo "configure:1661: checking whether -R must be followed by a space" >&5
1661 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1662 cat > conftest.
$ac_ext <<EOF
1663 #line 1664 "configure"
1664 #include "confdefs.h"
1670 if { (eval echo configure
:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1674 echo "configure: failed program was:" >&5
1675 cat conftest.
$ac_ext >&5
1680 if test $ac_R_nospace = yes; then
1681 echo "$ac_t""no" 1>&6
1682 X_LIBS
="$X_LIBS -R$x_libraries"
1684 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1685 cat > conftest.
$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1693 if { (eval echo configure
:1694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1697 echo "configure: failed program was:" >&5
1698 cat conftest.
$ac_ext >&5
1703 if test $ac_R_space = yes; then
1704 echo "$ac_t""yes" 1>&6
1705 X_LIBS
="$X_LIBS -R $x_libraries"
1707 echo "$ac_t""neither works" 1>&6
1710 LIBS
="$ac_xsave_LIBS"
1714 # Check for system-dependent libraries X programs must link with.
1715 # Do this before checking for the system-independent R6 libraries
1716 # (-lICE), since we may need -lsocket or whatever for X linking.
1718 if test "$ISC" = yes; then
1719 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1721 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1722 # libraries were built with DECnet support. And karl@cs.umb.edu says
1723 # the Alpha needs dnet_stub (dnet does not exist).
1724 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1725 echo "configure:1726: checking for dnet_ntoa in -ldnet" >&5
1726 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 ac_save_LIBS
="$LIBS"
1732 cat > conftest.
$ac_ext <<EOF
1733 #line 1734 "configure"
1734 #include "confdefs.h"
1735 /* Override any gcc2 internal prototype to avoid an error. */
1736 /* We use char because int might match the return type of a gcc2
1737 builtin and then its argument prototype would still apply. */
1744 if { (eval echo configure
:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1746 eval "ac_cv_lib_$ac_lib_var=yes"
1748 echo "configure: failed program was:" >&5
1749 cat conftest.
$ac_ext >&5
1751 eval "ac_cv_lib_$ac_lib_var=no"
1754 LIBS
="$ac_save_LIBS"
1757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1758 echo "$ac_t""yes" 1>&6
1759 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1761 echo "$ac_t""no" 1>&6
1764 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1765 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1766 echo "configure:1767: checking for dnet_ntoa in -ldnet_stub" >&5
1767 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1771 ac_save_LIBS
="$LIBS"
1772 LIBS
="-ldnet_stub $LIBS"
1773 cat > conftest.
$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1776 /* Override any gcc2 internal prototype to avoid an error. */
1777 /* We use char because int might match the return type of a gcc2
1778 builtin and then its argument prototype would still apply. */
1785 if { (eval echo configure
:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1787 eval "ac_cv_lib_$ac_lib_var=yes"
1789 echo "configure: failed program was:" >&5
1790 cat conftest.
$ac_ext >&5
1792 eval "ac_cv_lib_$ac_lib_var=no"
1795 LIBS
="$ac_save_LIBS"
1798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1799 echo "$ac_t""yes" 1>&6
1800 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1802 echo "$ac_t""no" 1>&6
1807 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1808 # to get the SysV transport functions.
1809 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1811 # The nsl library prevents programs from opening the X display
1812 # on Irix 5.2, according to dickey@clark.net.
1813 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1814 echo "configure:1815: checking for gethostbyname" >&5
1815 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 cat > conftest.
$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1821 /* System header to define __stub macros and hopefully few prototypes,
1822 which can conflict with char gethostbyname(); below. */
1824 /* Override any gcc2 internal prototype to avoid an error. */
1825 /* We use char because int might match the return type of a gcc2
1826 builtin and then its argument prototype would still apply. */
1827 char gethostbyname();
1831 /* The GNU C library defines this for functions which it implements
1832 to always fail with ENOSYS. Some functions are actually named
1833 something starting with __ and the normal name is an alias. */
1834 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1842 if { (eval echo configure
:1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1844 eval "ac_cv_func_gethostbyname=yes"
1846 echo "configure: failed program was:" >&5
1847 cat conftest.
$ac_ext >&5
1849 eval "ac_cv_func_gethostbyname=no"
1854 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1855 echo "$ac_t""yes" 1>&6
1858 echo "$ac_t""no" 1>&6
1861 if test $ac_cv_func_gethostbyname = no
; then
1862 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1863 echo "configure:1864: checking for gethostbyname in -lnsl" >&5
1864 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1866 echo $ac_n "(cached) $ac_c" 1>&6
1868 ac_save_LIBS
="$LIBS"
1870 cat > conftest.
$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 /* Override any gcc2 internal prototype to avoid an error. */
1874 /* We use char because int might match the return type of a gcc2
1875 builtin and then its argument prototype would still apply. */
1876 char gethostbyname();
1882 if { (eval echo configure
:1883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1884 eval "ac_cv_lib_$ac_lib_var=yes"
1886 echo "configure: failed program was:" >&5
1887 cat conftest.
$ac_ext >&5
1889 eval "ac_cv_lib_$ac_lib_var=no"
1892 LIBS
="$ac_save_LIBS"
1895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1896 echo "$ac_t""yes" 1>&6
1897 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1899 echo "$ac_t""no" 1>&6
1904 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1905 # socket/setsockopt and other routines are undefined under SCO ODT
1906 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1907 # on later versions), says simon@lia.di.epfl.ch: it contains
1908 # gethostby* variants that don't use the nameserver (or something).
1909 # -lsocket must be given before -lnsl if both are needed.
1910 # We assume that if connect needs -lnsl, so does gethostbyname.
1911 echo $ac_n "checking for connect""... $ac_c" 1>&6
1912 echo "configure:1913: checking for connect" >&5
1913 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 cat > conftest.
$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1919 /* System header to define __stub macros and hopefully few prototypes,
1920 which can conflict with char connect(); below. */
1922 /* Override any gcc2 internal prototype to avoid an error. */
1923 /* We use char because int might match the return type of a gcc2
1924 builtin and then its argument prototype would still apply. */
1929 /* The GNU C library defines this for functions which it implements
1930 to always fail with ENOSYS. Some functions are actually named
1931 something starting with __ and the normal name is an alias. */
1932 #if defined (__stub_connect) || defined (__stub___connect)
1940 if { (eval echo configure
:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1942 eval "ac_cv_func_connect=yes"
1944 echo "configure: failed program was:" >&5
1945 cat conftest.
$ac_ext >&5
1947 eval "ac_cv_func_connect=no"
1952 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1953 echo "$ac_t""yes" 1>&6
1956 echo "$ac_t""no" 1>&6
1959 if test $ac_cv_func_connect = no
; then
1960 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1961 echo "configure:1962: checking for connect in -lsocket" >&5
1962 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 ac_save_LIBS
="$LIBS"
1967 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1968 cat > conftest.
$ac_ext <<EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1971 /* Override any gcc2 internal prototype to avoid an error. */
1972 /* We use char because int might match the return type of a gcc2
1973 builtin and then its argument prototype would still apply. */
1980 if { (eval echo configure
:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1982 eval "ac_cv_lib_$ac_lib_var=yes"
1984 echo "configure: failed program was:" >&5
1985 cat conftest.
$ac_ext >&5
1987 eval "ac_cv_lib_$ac_lib_var=no"
1990 LIBS
="$ac_save_LIBS"
1993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1994 echo "$ac_t""yes" 1>&6
1995 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1997 echo "$ac_t""no" 1>&6
2002 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2003 echo $ac_n "checking for remove""... $ac_c" 1>&6
2004 echo "configure:2005: checking for remove" >&5
2005 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2008 cat > conftest.
$ac_ext <<EOF
2009 #line 2010 "configure"
2010 #include "confdefs.h"
2011 /* System header to define __stub macros and hopefully few prototypes,
2012 which can conflict with char remove(); below. */
2014 /* Override any gcc2 internal prototype to avoid an error. */
2015 /* We use char because int might match the return type of a gcc2
2016 builtin and then its argument prototype would still apply. */
2021 /* The GNU C library defines this for functions which it implements
2022 to always fail with ENOSYS. Some functions are actually named
2023 something starting with __ and the normal name is an alias. */
2024 #if defined (__stub_remove) || defined (__stub___remove)
2032 if { (eval echo configure
:2033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2034 eval "ac_cv_func_remove=yes"
2036 echo "configure: failed program was:" >&5
2037 cat conftest.
$ac_ext >&5
2039 eval "ac_cv_func_remove=no"
2044 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2045 echo "$ac_t""yes" 1>&6
2048 echo "$ac_t""no" 1>&6
2051 if test $ac_cv_func_remove = no
; then
2052 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2053 echo "configure:2054: checking for remove in -lposix" >&5
2054 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2058 ac_save_LIBS
="$LIBS"
2059 LIBS
="-lposix $LIBS"
2060 cat > conftest.
$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2063 /* Override any gcc2 internal prototype to avoid an error. */
2064 /* We use char because int might match the return type of a gcc2
2065 builtin and then its argument prototype would still apply. */
2072 if { (eval echo configure
:2073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2074 eval "ac_cv_lib_$ac_lib_var=yes"
2076 echo "configure: failed program was:" >&5
2077 cat conftest.
$ac_ext >&5
2079 eval "ac_cv_lib_$ac_lib_var=no"
2082 LIBS
="$ac_save_LIBS"
2085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2086 echo "$ac_t""yes" 1>&6
2087 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2089 echo "$ac_t""no" 1>&6
2094 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2095 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2096 echo "configure:2097: checking for shmat" >&5
2097 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2098 echo $ac_n "(cached) $ac_c" 1>&6
2100 cat > conftest.
$ac_ext <<EOF
2101 #line 2102 "configure"
2102 #include "confdefs.h"
2103 /* System header to define __stub macros and hopefully few prototypes,
2104 which can conflict with char shmat(); below. */
2106 /* Override any gcc2 internal prototype to avoid an error. */
2107 /* We use char because int might match the return type of a gcc2
2108 builtin and then its argument prototype would still apply. */
2113 /* The GNU C library defines this for functions which it implements
2114 to always fail with ENOSYS. Some functions are actually named
2115 something starting with __ and the normal name is an alias. */
2116 #if defined (__stub_shmat) || defined (__stub___shmat)
2124 if { (eval echo configure
:2125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2126 eval "ac_cv_func_shmat=yes"
2128 echo "configure: failed program was:" >&5
2129 cat conftest.
$ac_ext >&5
2131 eval "ac_cv_func_shmat=no"
2136 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2137 echo "$ac_t""yes" 1>&6
2140 echo "$ac_t""no" 1>&6
2143 if test $ac_cv_func_shmat = no
; then
2144 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2145 echo "configure:2146: checking for shmat in -lipc" >&5
2146 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2150 ac_save_LIBS
="$LIBS"
2152 cat > conftest.
$ac_ext <<EOF
2153 #line 2154 "configure"
2154 #include "confdefs.h"
2155 /* Override any gcc2 internal prototype to avoid an error. */
2156 /* We use char because int might match the return type of a gcc2
2157 builtin and then its argument prototype would still apply. */
2164 if { (eval echo configure
:2165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2166 eval "ac_cv_lib_$ac_lib_var=yes"
2168 echo "configure: failed program was:" >&5
2169 cat conftest.
$ac_ext >&5
2171 eval "ac_cv_lib_$ac_lib_var=no"
2174 LIBS
="$ac_save_LIBS"
2177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2178 echo "$ac_t""yes" 1>&6
2179 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2181 echo "$ac_t""no" 1>&6
2187 # Check for libraries that X11R6 Xt/Xaw programs need.
2188 ac_save_LDFLAGS
="$LDFLAGS"
2189 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2190 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2191 # check for ICE first), but we must link in the order -lSM -lICE or
2192 # we get undefined symbols. So assume we have SM if we have ICE.
2193 # These have to be linked with before -lX11, unlike the other
2194 # libraries we check for below, so use a different variable.
2195 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2196 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2197 echo "configure:2198: checking for IceConnectionNumber in -lICE" >&5
2198 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2202 ac_save_LIBS
="$LIBS"
2204 cat > conftest.
$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207 /* Override any gcc2 internal prototype to avoid an error. */
2208 /* We use char because int might match the return type of a gcc2
2209 builtin and then its argument prototype would still apply. */
2210 char IceConnectionNumber();
2213 IceConnectionNumber()
2216 if { (eval echo configure
:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2218 eval "ac_cv_lib_$ac_lib_var=yes"
2220 echo "configure: failed program was:" >&5
2221 cat conftest.
$ac_ext >&5
2223 eval "ac_cv_lib_$ac_lib_var=no"
2226 LIBS
="$ac_save_LIBS"
2229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2230 echo "$ac_t""yes" 1>&6
2231 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2233 echo "$ac_t""no" 1>&6
2236 LDFLAGS
="$ac_save_LDFLAGS"
2242 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2244 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2245 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_hdr that defines DIR" >&5
2247 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 cat > conftest.
$ac_ext <<EOF
2251 #line 2252 "configure"
2252 #include "confdefs.h"
2253 #include <sys/types.h>
2259 if { (eval echo configure
:2260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2261 eval "ac_cv_header_dirent_$ac_safe=yes"
2263 echo "configure: failed program was:" >&5
2264 cat conftest.
$ac_ext >&5
2266 eval "ac_cv_header_dirent_$ac_safe=no"
2270 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2271 echo "$ac_t""yes" 1>&6
2272 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2273 cat >> confdefs.h
<<EOF
2274 #define $ac_tr_hdr 1
2276 ac_header_dirent
=$ac_hdr; break
2278 echo "$ac_t""no" 1>&6
2281 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2282 if test $ac_header_dirent = dirent.h
; then
2283 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2284 echo "configure:2285: checking for opendir in -ldir" >&5
2285 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 ac_save_LIBS
="$LIBS"
2291 cat > conftest.
$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2294 /* Override any gcc2 internal prototype to avoid an error. */
2295 /* We use char because int might match the return type of a gcc2
2296 builtin and then its argument prototype would still apply. */
2303 if { (eval echo configure
:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2305 eval "ac_cv_lib_$ac_lib_var=yes"
2307 echo "configure: failed program was:" >&5
2308 cat conftest.
$ac_ext >&5
2310 eval "ac_cv_lib_$ac_lib_var=no"
2313 LIBS
="$ac_save_LIBS"
2316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2317 echo "$ac_t""yes" 1>&6
2320 echo "$ac_t""no" 1>&6
2324 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2325 echo "configure:2326: checking for opendir in -lx" >&5
2326 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 ac_save_LIBS
="$LIBS"
2332 cat > conftest.
$ac_ext <<EOF
2333 #line 2334 "configure"
2334 #include "confdefs.h"
2335 /* Override any gcc2 internal prototype to avoid an error. */
2336 /* We use char because int might match the return type of a gcc2
2337 builtin and then its argument prototype would still apply. */
2344 if { (eval echo configure
:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2346 eval "ac_cv_lib_$ac_lib_var=yes"
2348 echo "configure: failed program was:" >&5
2349 cat conftest.
$ac_ext >&5
2351 eval "ac_cv_lib_$ac_lib_var=no"
2354 LIBS
="$ac_save_LIBS"
2357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2358 echo "$ac_t""yes" 1>&6
2361 echo "$ac_t""no" 1>&6
2366 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2367 echo "configure:2368: checking for ANSI C header files" >&5
2368 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 cat > conftest.
$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2379 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2380 { (eval echo configure
:2381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2381 ac_err
=`grep -v '^ *+' conftest.out`
2382 if test -z "$ac_err"; then
2384 ac_cv_header_stdc
=yes
2387 echo "configure: failed program was:" >&5
2388 cat conftest.
$ac_ext >&5
2390 ac_cv_header_stdc
=no
2394 if test $ac_cv_header_stdc = yes; then
2395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2396 cat > conftest.
$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2402 egrep "memchr" >/dev
/null
2>&1; then
2406 ac_cv_header_stdc
=no
2412 if test $ac_cv_header_stdc = yes; then
2413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2414 cat > conftest.
$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2420 egrep "free" >/dev
/null
2>&1; then
2424 ac_cv_header_stdc
=no
2430 if test $ac_cv_header_stdc = yes; then
2431 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2432 if test "$cross_compiling" = yes; then
2435 cat > conftest.
$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2439 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2440 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2441 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2442 int main () { int i; for (i = 0; i < 256; i++)
2443 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2447 if { (eval echo configure
:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2451 echo "configure: failed program was:" >&5
2452 cat conftest.
$ac_ext >&5
2454 ac_cv_header_stdc
=no
2462 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2463 if test $ac_cv_header_stdc = yes; then
2464 cat >> confdefs.h
<<\EOF
2465 #define STDC_HEADERS 1
2470 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2471 echo "configure:2472: checking for sys/wait.h that is POSIX.1 compatible" >&5
2472 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2475 cat > conftest.
$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2478 #include <sys/types.h>
2479 #include <sys/wait.h>
2481 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2484 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2489 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2492 if { (eval echo configure
:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2494 ac_cv_header_sys_wait_h
=yes
2496 echo "configure: failed program was:" >&5
2497 cat conftest.
$ac_ext >&5
2499 ac_cv_header_sys_wait_h
=no
2504 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2505 if test $ac_cv_header_sys_wait_h = yes; then
2506 cat >> confdefs.h
<<\EOF
2507 #define HAVE_SYS_WAIT_H 1
2512 ac_safe
=`echo "fcntl.h" | sed 'y%./+-%__p_%'`
2513 echo $ac_n "checking for fcntl.h""... $ac_c" 1>&6
2514 echo "configure:2515: checking for fcntl.h" >&5
2515 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2518 cat > conftest.
$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2523 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2524 { (eval echo configure
:2525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2525 ac_err
=`grep -v '^ *+' conftest.out`
2526 if test -z "$ac_err"; then
2528 eval "ac_cv_header_$ac_safe=yes"
2531 echo "configure: failed program was:" >&5
2532 cat conftest.
$ac_ext >&5
2534 eval "ac_cv_header_$ac_safe=no"
2538 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2539 echo "$ac_t""yes" 1>&6
2542 echo "$ac_t""no" 1>&6
2545 ac_safe
=`echo "limits.h" | sed 'y%./+-%__p_%'`
2546 echo $ac_n "checking for limits.h""... $ac_c" 1>&6
2547 echo "configure:2548: checking for limits.h" >&5
2548 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2551 cat > conftest.
$ac_ext <<EOF
2552 #line 2553 "configure"
2553 #include "confdefs.h"
2556 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2557 { (eval echo configure
:2558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2558 ac_err
=`grep -v '^ *+' conftest.out`
2559 if test -z "$ac_err"; then
2561 eval "ac_cv_header_$ac_safe=yes"
2564 echo "configure: failed program was:" >&5
2565 cat conftest.
$ac_ext >&5
2567 eval "ac_cv_header_$ac_safe=no"
2571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2572 echo "$ac_t""yes" 1>&6
2575 echo "$ac_t""no" 1>&6
2578 ac_safe
=`echo "sys/file.h" | sed 'y%./+-%__p_%'`
2579 echo $ac_n "checking for sys/file.h""... $ac_c" 1>&6
2580 echo "configure:2581: checking for sys/file.h" >&5
2581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 cat > conftest.
$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2587 #include <sys/file.h>
2589 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2590 { (eval echo configure
:2591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2591 ac_err
=`grep -v '^ *+' conftest.out`
2592 if test -z "$ac_err"; then
2594 eval "ac_cv_header_$ac_safe=yes"
2597 echo "configure: failed program was:" >&5
2598 cat conftest.
$ac_ext >&5
2600 eval "ac_cv_header_$ac_safe=no"
2604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2605 echo "$ac_t""yes" 1>&6
2608 echo "$ac_t""no" 1>&6
2611 ac_safe
=`echo "sys/time.h" | sed 'y%./+-%__p_%'`
2612 echo $ac_n "checking for sys/time.h""... $ac_c" 1>&6
2613 echo "configure:2614: checking for sys/time.h" >&5
2614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2617 cat > conftest.
$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2620 #include <sys/time.h>
2622 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2623 { (eval echo configure
:2624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2624 ac_err
=`grep -v '^ *+' conftest.out`
2625 if test -z "$ac_err"; then
2627 eval "ac_cv_header_$ac_safe=yes"
2630 echo "configure: failed program was:" >&5
2631 cat conftest.
$ac_ext >&5
2633 eval "ac_cv_header_$ac_safe=no"
2637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2638 echo "$ac_t""yes" 1>&6
2641 echo "$ac_t""no" 1>&6
2644 ac_safe
=`echo "unistd.h" | sed 'y%./+-%__p_%'`
2645 echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
2646 echo "configure:2647: checking for unistd.h" >&5
2647 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2650 cat > conftest.
$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2655 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2656 { (eval echo configure
:2657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2657 ac_err
=`grep -v '^ *+' conftest.out`
2658 if test -z "$ac_err"; then
2660 eval "ac_cv_header_$ac_safe=yes"
2663 echo "configure: failed program was:" >&5
2664 cat conftest.
$ac_ext >&5
2666 eval "ac_cv_header_$ac_safe=no"
2670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2671 echo "$ac_t""yes" 1>&6
2674 echo "$ac_t""no" 1>&6
2678 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2679 echo "configure:2680: checking for uid_t in sys/types.h" >&5
2680 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2683 cat > conftest.
$ac_ext <<EOF
2684 #line 2685 "configure"
2685 #include "confdefs.h"
2686 #include <sys/types.h>
2688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2689 egrep "uid_t" >/dev
/null
2>&1; then
2691 ac_cv_type_uid_t
=yes
2700 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2701 if test $ac_cv_type_uid_t = no
; then
2702 cat >> confdefs.h
<<\EOF
2706 cat >> confdefs.h
<<\EOF
2712 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2713 echo "configure:2714: checking type of array argument to getgroups" >&5
2714 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2717 if test "$cross_compiling" = yes; then
2718 ac_cv_type_getgroups
=cross
2720 cat > conftest.
$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2724 /* Thanks to Mike Rendell for this test. */
2725 #include <sys/types.h>
2728 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2733 union { gid_t gval; long lval; } val;
2736 for (i = 0; i < NGID; i++)
2737 gidset[i] = val.gval;
2738 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2740 /* Exit non-zero if getgroups seems to require an array of ints. This
2741 happens when gid_t is short but getgroups modifies an array of ints. */
2742 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2746 if { (eval echo configure
:2747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2748 ac_cv_type_getgroups
=gid_t
2750 echo "configure: failed program was:" >&5
2751 cat conftest.
$ac_ext >&5
2753 ac_cv_type_getgroups
=int
2758 if test $ac_cv_type_getgroups = cross
; then
2759 cat > conftest.
$ac_ext <<EOF
2760 #line 2761 "configure"
2761 #include "confdefs.h"
2764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2765 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
2767 ac_cv_type_getgroups
=gid_t
2770 ac_cv_type_getgroups
=int
2777 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2778 cat >> confdefs.h
<<EOF
2779 #define GETGROUPS_T $ac_cv_type_getgroups
2783 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2784 echo "configure:2785: checking for mode_t" >&5
2785 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 cat > conftest.
$ac_ext <<EOF
2789 #line 2790 "configure"
2790 #include "confdefs.h"
2791 #include <sys/types.h>
2797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2798 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2800 ac_cv_type_mode_t
=yes
2803 ac_cv_type_mode_t
=no
2808 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2809 if test $ac_cv_type_mode_t = no
; then
2810 cat >> confdefs.h
<<\EOF
2816 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2817 echo "configure:2818: checking for off_t" >&5
2818 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 cat > conftest.
$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2824 #include <sys/types.h>
2830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2831 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2833 ac_cv_type_off_t
=yes
2841 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2842 if test $ac_cv_type_off_t = no
; then
2843 cat >> confdefs.h
<<\EOF
2849 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2850 echo "configure:2851: checking for pid_t" >&5
2851 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2852 echo $ac_n "(cached) $ac_c" 1>&6
2854 cat > conftest.
$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2857 #include <sys/types.h>
2863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2864 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2866 ac_cv_type_pid_t
=yes
2874 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2875 if test $ac_cv_type_pid_t = no
; then
2876 cat >> confdefs.h
<<\EOF
2882 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2883 echo "configure:2884: checking return type of signal handlers" >&5
2884 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2885 echo $ac_n "(cached) $ac_c" 1>&6
2887 cat > conftest.
$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890 #include <sys/types.h>
2896 extern "C" void (*signal (int, void (*)(int)))(int);
2898 void (*signal ()) ();
2905 if { (eval echo configure
:2906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2907 ac_cv_type_signal
=void
2909 echo "configure: failed program was:" >&5
2910 cat conftest.
$ac_ext >&5
2912 ac_cv_type_signal
=int
2917 echo "$ac_t""$ac_cv_type_signal" 1>&6
2918 cat >> confdefs.h
<<EOF
2919 #define RETSIGTYPE $ac_cv_type_signal
2923 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2924 echo "configure:2925: checking for size_t" >&5
2925 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2928 cat > conftest.
$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 #include <sys/types.h>
2937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2938 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2940 ac_cv_type_size_t
=yes
2943 ac_cv_type_size_t
=no
2948 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2949 if test $ac_cv_type_size_t = no
; then
2950 cat >> confdefs.h
<<\EOF
2951 #define size_t unsigned
2956 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2957 echo "configure:2958: checking for uid_t in sys/types.h" >&5
2958 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2961 cat > conftest.
$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 #include <sys/types.h>
2966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2967 egrep "uid_t" >/dev
/null
2>&1; then
2969 ac_cv_type_uid_t
=yes
2978 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2979 if test $ac_cv_type_uid_t = no
; then
2980 cat >> confdefs.h
<<\EOF
2984 cat >> confdefs.h
<<\EOF
2992 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2993 echo "configure:2994: checking whether stat file-mode macros are broken" >&5
2994 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2997 cat > conftest.
$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3000 #include <sys/types.h>
3001 #include <sys/stat.h>
3003 #if defined(S_ISBLK) && defined(S_IFDIR)
3004 # if S_ISBLK (S_IFDIR)
3009 #if defined(S_ISBLK) && defined(S_IFCHR)
3010 # if S_ISBLK (S_IFCHR)
3015 #if defined(S_ISLNK) && defined(S_IFREG)
3016 # if S_ISLNK (S_IFREG)
3021 #if defined(S_ISSOCK) && defined(S_IFREG)
3022 # if S_ISSOCK (S_IFREG)
3028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3029 egrep "You lose" >/dev
/null
2>&1; then
3031 ac_cv_header_stat_broken
=yes
3034 ac_cv_header_stat_broken
=no
3040 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3041 if test $ac_cv_header_stat_broken = yes; then
3042 cat >> confdefs.h
<<\EOF
3043 #define STAT_MACROS_BROKEN 1
3048 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3049 echo "configure:3050: checking whether time.h and sys/time.h may both be included" >&5
3050 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3053 cat > conftest.
$ac_ext <<EOF
3054 #line 3055 "configure"
3055 #include "confdefs.h"
3056 #include <sys/types.h>
3057 #include <sys/time.h>
3063 if { (eval echo configure
:3064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3065 ac_cv_header_time
=yes
3067 echo "configure: failed program was:" >&5
3068 cat conftest.
$ac_ext >&5
3070 ac_cv_header_time
=no
3075 echo "$ac_t""$ac_cv_header_time" 1>&6
3076 if test $ac_cv_header_time = yes; then
3077 cat >> confdefs.h
<<\EOF
3078 #define TIME_WITH_SYS_TIME 1
3083 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3084 echo "configure:3085: checking for st_blksize in struct stat" >&5
3085 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3086 echo $ac_n "(cached) $ac_c" 1>&6
3088 cat > conftest.
$ac_ext <<EOF
3089 #line 3090 "configure"
3090 #include "confdefs.h"
3091 #include <sys/types.h>
3092 #include <sys/stat.h>
3094 struct stat s; s.st_blksize;
3097 if { (eval echo configure
:3098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3099 ac_cv_struct_st_blksize
=yes
3101 echo "configure: failed program was:" >&5
3102 cat conftest.
$ac_ext >&5
3104 ac_cv_struct_st_blksize
=no
3109 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3110 if test $ac_cv_struct_st_blksize = yes; then
3111 cat >> confdefs.h
<<\EOF
3112 #define HAVE_ST_BLKSIZE 1
3117 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3118 echo "configure:3119: checking for st_blocks in struct stat" >&5
3119 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 cat > conftest.
$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3125 #include <sys/types.h>
3126 #include <sys/stat.h>
3128 struct stat s; s.st_blocks;
3131 if { (eval echo configure
:3132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3133 ac_cv_struct_st_blocks
=yes
3135 echo "configure: failed program was:" >&5
3136 cat conftest.
$ac_ext >&5
3138 ac_cv_struct_st_blocks
=no
3143 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3144 if test $ac_cv_struct_st_blocks = yes; then
3145 cat >> confdefs.h
<<\EOF
3146 #define HAVE_ST_BLOCKS 1
3150 LIBOBJS
="$LIBOBJS fileblocks.o"
3153 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3154 echo "configure:3155: checking for st_rdev in struct stat" >&5
3155 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 cat > conftest.
$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3161 #include <sys/types.h>
3162 #include <sys/stat.h>
3164 struct stat s; s.st_rdev;
3167 if { (eval echo configure
:3168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3169 ac_cv_struct_st_rdev
=yes
3171 echo "configure: failed program was:" >&5
3172 cat conftest.
$ac_ext >&5
3174 ac_cv_struct_st_rdev
=no
3179 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3180 if test $ac_cv_struct_st_rdev = yes; then
3181 cat >> confdefs.h
<<\EOF
3182 #define HAVE_ST_RDEV 1
3187 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3188 echo "configure:3189: checking whether struct tm is in sys/time.h or time.h" >&5
3189 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3192 cat > conftest.
$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3195 #include <sys/types.h>
3198 struct tm *tp; tp->tm_sec;
3201 if { (eval echo configure
:3202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3203 ac_cv_struct_tm
=time.h
3205 echo "configure: failed program was:" >&5
3206 cat conftest.
$ac_ext >&5
3208 ac_cv_struct_tm
=sys
/time.h
3213 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3214 if test $ac_cv_struct_tm = sys
/time.h
; then
3215 cat >> confdefs.h
<<\EOF
3216 #define TM_IN_SYS_TIME 1
3221 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3222 echo "configure:3223: checking for tm_zone in struct tm" >&5
3223 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 cat > conftest.
$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3229 #include <sys/types.h>
3230 #include <$ac_cv_struct_tm>
3232 struct tm tm; tm.tm_zone;
3235 if { (eval echo configure
:3236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3237 ac_cv_struct_tm_zone
=yes
3239 echo "configure: failed program was:" >&5
3240 cat conftest.
$ac_ext >&5
3242 ac_cv_struct_tm_zone
=no
3247 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3248 if test "$ac_cv_struct_tm_zone" = yes; then
3249 cat >> confdefs.h
<<\EOF
3250 #define HAVE_TM_ZONE 1
3254 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3255 echo "configure:3256: checking for tzname" >&5
3256 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3259 cat > conftest.
$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3263 #ifndef tzname /* For SGI. */
3264 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3270 if { (eval echo configure
:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3272 ac_cv_var_tzname
=yes
3274 echo "configure: failed program was:" >&5
3275 cat conftest.
$ac_ext >&5
3282 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3283 if test $ac_cv_var_tzname = yes; then
3284 cat >> confdefs.h
<<\EOF
3285 #define HAVE_TZNAME 1
3293 echo $ac_n "checking for working const""... $ac_c" 1>&6
3294 echo "configure:3295: checking for working const" >&5
3295 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 cat > conftest.
$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3304 /* Ultrix mips cc rejects this. */
3305 typedef int charset[2]; const charset x;
3306 /* SunOS 4.1.1 cc rejects this. */
3307 char const *const *ccp;
3309 /* NEC SVR4.0.2 mips cc rejects this. */
3310 struct point {int x, y;};
3311 static struct point const zero = {0,0};
3312 /* AIX XL C 1.02.0.0 rejects this.
3313 It does not let you subtract one const X* pointer from another in an arm
3314 of an if-expression whose if-part is not a constant expression */
3315 const char *g = "string";
3316 ccp = &g + (g ? g-g : 0);
3317 /* HPUX 7.0 cc rejects these. */
3320 ccp = (char const *const *) p;
3321 { /* SCO 3.2v4 cc rejects this. */
3323 char const *s = 0 ? (char *) 0 : (char const *) 0;
3327 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3329 const int *foo = &x[0];
3332 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3333 typedef const int *iptr;
3337 { /* AIX XL C 1.02.0.0 rejects this saying
3338 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3339 struct s { int j; const int *ap[3]; };
3340 struct s *b; b->j = 5;
3342 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3348 if { (eval echo configure
:3349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3352 echo "configure: failed program was:" >&5
3353 cat conftest.
$ac_ext >&5
3360 echo "$ac_t""$ac_cv_c_const" 1>&6
3361 if test $ac_cv_c_const = no
; then
3362 cat >> confdefs.h
<<\EOF
3368 echo $ac_n "checking for inline""... $ac_c" 1>&6
3369 echo "configure:3370: checking for inline" >&5
3370 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3374 for ac_kw
in inline __inline__ __inline
; do
3375 cat > conftest.
$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3383 if { (eval echo configure
:3384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3385 ac_cv_c_inline
=$ac_kw; break
3387 echo "configure: failed program was:" >&5
3388 cat conftest.
$ac_ext >&5
3395 echo "$ac_t""$ac_cv_c_inline" 1>&6
3396 case "$ac_cv_c_inline" in
3398 no
) cat >> confdefs.h
<<\EOF
3402 *) cat >> confdefs.h
<<EOF
3403 #define inline $ac_cv_c_inline
3408 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3409 echo "configure:3410: checking whether char is unsigned" >&5
3410 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 if test "$GCC" = yes; then
3414 # GCC predefines this symbol on systems where it applies.
3415 cat > conftest.
$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3418 #ifdef __CHAR_UNSIGNED__
3423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3424 egrep "yes" >/dev
/null
2>&1; then
3426 ac_cv_c_char_unsigned
=yes
3429 ac_cv_c_char_unsigned
=no
3434 if test "$cross_compiling" = yes; then
3435 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3437 cat > conftest.
$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3441 #if !defined(__STDC__) || __STDC__ != 1
3445 volatile char c = 255; exit(c < 0);
3448 if { (eval echo configure
:3449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3450 ac_cv_c_char_unsigned
=yes
3452 echo "configure: failed program was:" >&5
3453 cat conftest.
$ac_ext >&5
3455 ac_cv_c_char_unsigned
=no
3463 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3464 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3465 cat >> confdefs.h
<<\EOF
3466 #define __CHAR_UNSIGNED__ 1
3471 echo $ac_n "checking for long double""... $ac_c" 1>&6
3472 echo "configure:3473: checking for long double" >&5
3473 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 if test "$GCC" = yes; then
3477 ac_cv_c_long_double
=yes
3479 if test "$cross_compiling" = yes; then
3480 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3482 cat > conftest.
$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3486 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
3487 long double foo = 0.0;
3488 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3489 exit(sizeof(long double) < sizeof(double)); }
3491 if { (eval echo configure
:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3493 ac_cv_c_long_double
=yes
3495 echo "configure: failed program was:" >&5
3496 cat conftest.
$ac_ext >&5
3498 ac_cv_c_long_double
=no
3506 echo "$ac_t""$ac_cv_c_long_double" 1>&6
3507 if test $ac_cv_c_long_double = yes; then
3508 cat >> confdefs.h
<<\EOF
3509 #define HAVE_LONG_DOUBLE 1
3515 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3516 echo "configure:3517: checking whether byte ordering is bigendian" >&5
3517 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 ac_cv_c_bigendian
=unknown
3521 # See if sys/param.h defines the BYTE_ORDER macro.
3522 cat > conftest.
$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 #include <sys/types.h>
3526 #include <sys/param.h>
3529 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3534 if { (eval echo configure
:3535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3536 # It does; now see whether it defined to BIG_ENDIAN or not.
3537 cat > conftest.
$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3540 #include <sys/types.h>
3541 #include <sys/param.h>
3544 #if BYTE_ORDER != BIG_ENDIAN
3549 if { (eval echo configure
:3550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3551 ac_cv_c_bigendian
=yes
3553 echo "configure: failed program was:" >&5
3554 cat conftest.
$ac_ext >&5
3556 ac_cv_c_bigendian
=no
3560 echo "configure: failed program was:" >&5
3561 cat conftest.
$ac_ext >&5
3564 if test $ac_cv_c_bigendian = unknown
; then
3565 if test "$cross_compiling" = yes; then
3566 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3568 cat > conftest.
$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3572 /* Are we little or big endian? From Harbison&Steele. */
3576 char c[sizeof (long)];
3579 exit (u.c[sizeof (long) - 1] == 1);
3582 if { (eval echo configure
:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3584 ac_cv_c_bigendian
=no
3586 echo "configure: failed program was:" >&5
3587 cat conftest.
$ac_ext >&5
3589 ac_cv_c_bigendian
=yes
3597 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3598 if test $ac_cv_c_bigendian = yes; then
3599 cat >> confdefs.h
<<\EOF
3600 #define WORDS_BIGENDIAN 1
3606 echo $ac_n "checking size of int *""... $ac_c" 1>&6
3607 echo "configure:3608: checking size of int *" >&5
3608 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3611 if test "$cross_compiling" = yes; then
3612 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3614 cat > conftest.
$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3620 FILE *f=fopen("conftestval", "w");
3622 fprintf(f, "%d\n", sizeof(int *));
3626 if { (eval echo configure
:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3628 ac_cv_sizeof_int_p
=`cat conftestval`
3630 echo "configure: failed program was:" >&5
3631 cat conftest.
$ac_ext >&5
3633 ac_cv_sizeof_int_p
=0
3639 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
3640 cat >> confdefs.h
<<EOF
3641 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
3645 echo $ac_n "checking size of int""... $ac_c" 1>&6
3646 echo "configure:3647: checking size of int" >&5
3647 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3650 if test "$cross_compiling" = yes; then
3651 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3653 cat > conftest.
$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3659 FILE *f=fopen("conftestval", "w");
3661 fprintf(f, "%d\n", sizeof(int));
3665 if { (eval echo configure
:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3667 ac_cv_sizeof_int
=`cat conftestval`
3669 echo "configure: failed program was:" >&5
3670 cat conftest.
$ac_ext >&5
3678 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3679 cat >> confdefs.h
<<EOF
3680 #define SIZEOF_INT $ac_cv_sizeof_int
3684 echo $ac_n "checking size of long""... $ac_c" 1>&6
3685 echo "configure:3686: checking size of long" >&5
3686 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3689 if test "$cross_compiling" = yes; then
3690 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3692 cat > conftest.
$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3698 FILE *f=fopen("conftestval", "w");
3700 fprintf(f, "%d\n", sizeof(long));
3704 if { (eval echo configure
:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3706 ac_cv_sizeof_long
=`cat conftestval`
3708 echo "configure: failed program was:" >&5
3709 cat conftest.
$ac_ext >&5
3717 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3718 cat >> confdefs.h
<<EOF
3719 #define SIZEOF_LONG $ac_cv_sizeof_long
3726 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3727 echo "configure:3728: checking for long file names" >&5
3728 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3731 ac_cv_sys_long_file_names
=yes
3732 # Test for long file names in all the places we know might matter:
3733 # . the current directory, where building will happen
3734 # $prefix/lib where we will be installing things
3735 # $exec_prefix/lib likewise
3736 # eval it to expand exec_prefix.
3737 # $TMPDIR if set, where it might want to write temporary files
3738 # if $TMPDIR is not set:
3739 # /tmp where it might want to write temporary files
3742 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3743 ac_tmpdirs
="$TMPDIR"
3745 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
3747 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3748 test -d $ac_dir || continue
3749 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3750 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
3751 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
3752 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
3753 if test ! -f $ac_dir/conftest9012345
|| test "$val" != 1; then
3754 ac_cv_sys_long_file_names
=no
3755 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
3758 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
3762 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
3763 if test $ac_cv_sys_long_file_names = yes; then
3764 cat >> confdefs.h
<<\EOF
3765 #define HAVE_LONG_FILE_NAMES 1
3773 for ac_prog
in 'bison -y' byacc
3775 # Extract the first word of "$ac_prog", so it can be a program name with args.
3776 set dummy
$ac_prog; ac_word
=$2
3777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3778 echo "configure:3779: checking for $ac_word" >&5
3779 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3782 if test -n "$YACC"; then
3783 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3785 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3786 for ac_dir
in $PATH; do
3787 test -z "$ac_dir" && ac_dir
=.
3788 if test -f $ac_dir/$ac_word; then
3789 ac_cv_prog_YACC
="$ac_prog"
3796 YACC
="$ac_cv_prog_YACC"
3797 if test -n "$YACC"; then
3798 echo "$ac_t""$YACC" 1>&6
3800 echo "$ac_t""no" 1>&6
3803 test -n "$YACC" && break
3805 test -n "$YACC" || YACC
="yacc"
3808 # Extract the first word of "flex", so it can be a program name with args.
3809 set dummy flex
; ac_word
=$2
3810 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3811 echo "configure:3812: checking for $ac_word" >&5
3812 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3813 echo $ac_n "(cached) $ac_c" 1>&6
3815 if test -n "$LEX"; then
3816 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3818 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3819 for ac_dir
in $PATH; do
3820 test -z "$ac_dir" && ac_dir
=.
3821 if test -f $ac_dir/$ac_word; then
3822 ac_cv_prog_LEX
="flex"
3827 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
3830 LEX
="$ac_cv_prog_LEX"
3831 if test -n "$LEX"; then
3832 echo "$ac_t""$LEX" 1>&6
3834 echo "$ac_t""no" 1>&6
3837 if test -z "$LEXLIB"
3843 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3844 echo "configure:3845: checking for yywrap in -l$ac_lib" >&5
3845 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3849 ac_save_LIBS
="$LIBS"
3850 LIBS
="-l$ac_lib $LIBS"
3851 cat > conftest.
$ac_ext <<EOF
3852 #line 3853 "configure"
3853 #include "confdefs.h"
3854 /* Override any gcc2 internal prototype to avoid an error. */
3855 /* We use char because int might match the return type of a gcc2
3856 builtin and then its argument prototype would still apply. */
3863 if { (eval echo configure
:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3865 eval "ac_cv_lib_$ac_lib_var=yes"
3867 echo "configure: failed program was:" >&5
3868 cat conftest.
$ac_ext >&5
3870 eval "ac_cv_lib_$ac_lib_var=no"
3873 LIBS
="$ac_save_LIBS"
3876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3877 echo "$ac_t""yes" 1>&6
3880 echo "$ac_t""no" 1>&6
3885 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3886 echo "configure:3887: checking lex output file root" >&5
3887 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3888 echo $ac_n "(cached) $ac_c" 1>&6
3890 # The minimal lex program is just a single line: %%. But some broken lexes
3891 # (Solaris, I think it was) want two %% lines, so accommodate them.
3894 if test -f lex.yy.c
; then
3895 ac_cv_prog_lex_root
=lex.yy
3896 elif test -f lexyy.c
; then
3897 ac_cv_prog_lex_root
=lexyy
3899 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3903 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3904 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3906 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3907 echo "configure:3908: checking whether yytext is a pointer" >&5
3908 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
3911 # POSIX says lex can declare yytext either as a pointer or an array; the
3912 # default is implementation-dependent. Figure out which it is, since
3913 # not all implementations provide the %pointer and %array declarations.
3914 ac_cv_prog_lex_yytext_pointer
=no
3915 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3916 ac_save_LIBS
="$LIBS"
3917 LIBS
="$LIBS $LEXLIB"
3918 cat > conftest.
$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3921 `cat $LEX_OUTPUT_ROOT.c`
3926 if { (eval echo configure
:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3928 ac_cv_prog_lex_yytext_pointer
=yes
3930 echo "configure: failed program was:" >&5
3931 cat conftest.
$ac_ext >&5
3934 LIBS
="$ac_save_LIBS"
3935 rm -f "${LEX_OUTPUT_ROOT}.c"
3939 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3940 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3941 cat >> confdefs.h
<<\EOF
3942 #define YYTEXT_POINTER 1
3949 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
3950 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
3954 # Make sure we can run config.sub.
3955 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
3956 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
3959 echo $ac_n "checking host system type""... $ac_c" 1>&6
3960 echo "configure:3961: checking host system type" >&5
3963 case "$host_alias" in
3967 if host_alias
=`$ac_config_guess`; then :
3968 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
3970 *) host_alias
=$nonopt ;;
3974 host=`$ac_config_sub $host_alias`
3975 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3976 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3977 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3978 echo "$ac_t""$host" 1>&6
3981 configuration
=$host_alias
4007 case "${canonical}" in
4010 cat >> confdefs.h
<<\EOF
4017 cat >> confdefs.h
<<\EOF
4022 *-*-irix5* | *-*-irix6* )
4025 cat >> confdefs.h
<<\EOF
4029 cat >> confdefs.h
<<\EOF
4038 cat >> confdefs.h
<<\EOF
4042 cat >> confdefs.h
<<\EOF
4043 #define __SOLARIS__ 1
4046 cat >> confdefs.h
<<\EOF
4055 cat >> confdefs.h
<<\EOF
4059 cat >> confdefs.h
<<\EOF
4063 cat >> confdefs.h
<<\EOF
4068 *-*-freebsd* | *-*-netbsd*)
4071 cat >> confdefs.h
<<\EOF
4072 #define __FREEBSD__ 1
4075 cat >> confdefs.h
<<\EOF
4083 cat >> confdefs.h
<<\EOF
4087 cat >> confdefs.h
<<\EOF
4095 cat >> confdefs.h
<<\EOF
4099 cat >> confdefs.h
<<\EOF
4107 cat >> confdefs.h
<<\EOF
4111 cat >> confdefs.h
<<\EOF
4120 cat >> confdefs.h
<<\EOF
4124 cat >> confdefs.h
<<\EOF
4128 cat >> confdefs.h
<<\EOF
4134 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
4139 rm -f ${OSTYPE}.system.cache.tmp
4140 touch ${OSTYPE}.system.cache.tmp
4141 touch ${OSTYPE}.system.cache
4144 DEFAULT_USE_SHARED
=0
4145 DEFAULT_USE_OPTIMISE
=1
4146 DEFAULT_USE_PROFILE
=0
4147 DEFAULT_USE_DEBUG_FLAG
=0
4148 DEFAULT_USE_DEBUG_INFO
=0
4149 DEFAULT_USE_MEM_TRACING
=0
4152 DEFAULT_USE_GDK_IMLIB
=1
4153 DEFAULT_USE_LIBPNG
=1
4155 DEFAULT_USE_STORABLE_CLASSES
=1
4156 DEFAULT_USE_AUTOTRANS
=1
4157 DEFAULT_USE_AFM_FOR_POSTSCRIPT
=1
4158 DEFAULT_WX_NORMALIZED_PS_FONTS
=1
4160 DEFAULT_USE_IOSTREAMH
=1
4162 DEFAULT_USE_THREADS
=0
4163 DEFAULT_USE_THREADS_SGI
=0
4164 DEFAULT_USE_THREADS_POSIX
=0
4165 DEFAULT_USE_OPENGL
=0
4167 DEFAULT_USE_POSTSCRIPT
=1
4169 DEFAULT_USE_RESOURCES
=1
4170 DEFAULT_USE_TIMEDATE
=1
4171 DEFAULT_USE_FRACTION
=1
4172 DEFAULT_USE_CONSTRAINTS
=1
4173 DEFAULT_USE_TOOLBAR
=1
4175 DEFAULT_USE_SCROLLBAR
=1
4176 DEFAULT_USE_DOC_VIEW_ARCHITECTURE
=1
4177 DEFAULT_USE_PRINTING_ARCHITECTURE
=1
4179 DEFAULT_USE_METAFILE
=0
4181 DEFAULT_USE_CLIPBOARD
=0
4183 DEFAULT_USE_WXGRAPH
=0
4184 DEFAULT_USE_WXTREE
=0
4185 DEFAULT_USE_ENHANCED_DIALOG
=0
4188 DEFAULT_USE_PROLOGIO
=0
4190 DEFAULT_USE_WX_RESOURCES
=1
4194 echo $ac_n "checking "for shared
"""... $ac_c" 1>&6
4195 echo "configure:4196: checking "for shared
"" >&5
4196 # Check whether --with-shared or --without-shared was given.
4197 if test "${with_shared+set}" = set; then
4198 withval
="$with_shared"
4199 if test "x$with_shared" = xyes
; then
4200 ac_cv_use_shared
='USE_SHARED="1"'
4202 ac_cv_use_shared
='USE_SHARED="0"'
4206 LINE
=`grep "USE_SHARED" ${OSTYPE}.system.cache`
4207 if test "x$LINE" != x
; then
4208 eval "DEFAULT_$LINE"
4210 ac_cv_use_shared
='USE_SHARED='$DEFAULT_USE_SHARED
4214 eval "$ac_cv_use_shared"
4215 echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
4216 if test "$USE_SHARED" = 1; then
4217 echo "$ac_t""yes" 1>&6
4219 echo "$ac_t""no" 1>&6
4224 echo $ac_n "checking "for optimise
"""... $ac_c" 1>&6
4225 echo "configure:4226: checking "for optimise
"" >&5
4226 # Check whether --with-optimise or --without-optimise was given.
4227 if test "${with_optimise+set}" = set; then
4228 withval
="$with_optimise"
4229 if test "x$with_optimise" = xyes
; then
4230 ac_cv_use_optimise
='USE_OPTIMISE="1"'
4232 ac_cv_use_optimise
='USE_OPTIMISE="0"'
4236 LINE
=`grep "USE_OPTIMISE" ${OSTYPE}.system.cache`
4237 if test "x$LINE" != x
; then
4238 eval "DEFAULT_$LINE"
4240 ac_cv_use_optimise
='USE_OPTIMISE='$DEFAULT_USE_OPTIMISE
4244 eval "$ac_cv_use_optimise"
4245 echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
4246 if test "$USE_OPTIMISE" = 1; then
4247 echo "$ac_t""yes" 1>&6
4249 echo "$ac_t""no" 1>&6
4254 echo $ac_n "checking "for debug_flag
"""... $ac_c" 1>&6
4255 echo "configure:4256: checking "for debug_flag
"" >&5
4256 # Check whether --with-debug_flag or --without-debug_flag was given.
4257 if test "${with_debug_flag+set}" = set; then
4258 withval
="$with_debug_flag"
4259 if test "x$with_debug_flag" = xyes
; then
4260 ac_cv_use_debug_flag
='USE_DEBUG_FLAG="1"'
4262 ac_cv_use_debug_flag
='USE_DEBUG_FLAG="0"'
4266 LINE
=`grep "USE_DEBUG_FLAG" ${OSTYPE}.system.cache`
4267 if test "x$LINE" != x
; then
4268 eval "DEFAULT_$LINE"
4270 ac_cv_use_debug_flag
='USE_DEBUG_FLAG='$DEFAULT_USE_DEBUG_FLAG
4274 eval "$ac_cv_use_debug_flag"
4275 echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
4276 if test "$USE_DEBUG_FLAG" = 1; then
4277 echo "$ac_t""yes" 1>&6
4279 echo "$ac_t""no" 1>&6
4284 echo $ac_n "checking "for debug_info
"""... $ac_c" 1>&6
4285 echo "configure:4286: checking "for debug_info
"" >&5
4286 # Check whether --with-debug_info or --without-debug_info was given.
4287 if test "${with_debug_info+set}" = set; then
4288 withval
="$with_debug_info"
4289 if test "x$with_debug_info" = xyes
; then
4290 ac_cv_use_debug_info
='USE_DEBUG_INFO="1"'
4292 ac_cv_use_debug_info
='USE_DEBUG_INFO="0"'
4296 LINE
=`grep "USE_DEBUG_INFO" ${OSTYPE}.system.cache`
4297 if test "x$LINE" != x
; then
4298 eval "DEFAULT_$LINE"
4300 ac_cv_use_debug_info
='USE_DEBUG_INFO='$DEFAULT_USE_DEBUG_INFO
4304 eval "$ac_cv_use_debug_info"
4305 echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
4306 if test "$USE_DEBUG_INFO" = 1; then
4307 echo "$ac_t""yes" 1>&6
4309 echo "$ac_t""no" 1>&6
4314 echo $ac_n "checking "for mem_tracing
"""... $ac_c" 1>&6
4315 echo "configure:4316: checking "for mem_tracing
"" >&5
4316 # Check whether --with-mem_tracing or --without-mem_tracing was given.
4317 if test "${with_mem_tracing+set}" = set; then
4318 withval
="$with_mem_tracing"
4319 if test "x$with_mem_tracing" = xyes
; then
4320 ac_cv_use_mem_tracing
='USE_MEM_TRACING="1"'
4322 ac_cv_use_mem_tracing
='USE_MEM_TRACING="0"'
4326 LINE
=`grep "USE_MEM_TRACING" ${OSTYPE}.system.cache`
4327 if test "x$LINE" != x
; then
4328 eval "DEFAULT_$LINE"
4330 ac_cv_use_mem_tracing
='USE_MEM_TRACING='$DEFAULT_USE_MEM_TRACING
4334 eval "$ac_cv_use_mem_tracing"
4335 echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
4336 if test "$USE_MEM_TRACING" = 1; then
4337 echo "$ac_t""yes" 1>&6
4339 echo "$ac_t""no" 1>&6
4344 echo $ac_n "checking "for profile
"""... $ac_c" 1>&6
4345 echo "configure:4346: checking "for profile
"" >&5
4346 # Check whether --with-profile or --without-profile was given.
4347 if test "${with_profile+set}" = set; then
4348 withval
="$with_profile"
4349 if test "x$with_profile" = xyes
; then
4350 ac_cv_use_profile
='USE_PROFILE="1"'
4352 ac_cv_use_profile
='USE_PROFILE="0"'
4356 LINE
=`grep "USE_PROFILE" ${OSTYPE}.system.cache`
4357 if test "x$LINE" != x
; then
4358 eval "DEFAULT_$LINE"
4360 ac_cv_use_profile
='USE_PROFILE='$DEFAULT_USE_PROFILE
4364 eval "$ac_cv_use_profile"
4365 echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
4366 if test "$USE_PROFILE" = 1; then
4367 echo "$ac_t""yes" 1>&6
4369 echo "$ac_t""no" 1>&6
4375 echo $ac_n "checking "for zlib
"""... $ac_c" 1>&6
4376 echo "configure:4377: checking "for zlib
"" >&5
4377 # Check whether --with-zlib or --without-zlib was given.
4378 if test "${with_zlib+set}" = set; then
4379 withval
="$with_zlib"
4380 if test "x$with_zlib" = xyes
; then
4381 ac_cv_use_zlib
='USE_ZLIB="1"'
4383 ac_cv_use_zlib
='USE_ZLIB="0"'
4387 LINE
=`grep "USE_ZLIB" ${OSTYPE}.system.cache`
4388 if test "x$LINE" != x
; then
4389 eval "DEFAULT_$LINE"
4391 ac_cv_use_zlib
='USE_ZLIB='$DEFAULT_USE_ZLIB
4395 eval "$ac_cv_use_zlib"
4396 echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
4397 if test "$USE_ZLIB" = 1; then
4398 echo "$ac_t""yes" 1>&6
4400 echo "$ac_t""no" 1>&6
4405 echo $ac_n "checking "for gdk_imlib
"""... $ac_c" 1>&6
4406 echo "configure:4407: checking "for gdk_imlib
"" >&5
4407 # Check whether --with-gdk_imlib or --without-gdk_imlib was given.
4408 if test "${with_gdk_imlib+set}" = set; then
4409 withval
="$with_gdk_imlib"
4410 if test "x$with_gdk_imlib" = xyes
; then
4411 ac_cv_use_gdk_imlib
='USE_GDK_IMLIB="1"'
4413 ac_cv_use_gdk_imlib
='USE_GDK_IMLIB="0"'
4417 LINE
=`grep "USE_GDK_IMLIB" ${OSTYPE}.system.cache`
4418 if test "x$LINE" != x
; then
4419 eval "DEFAULT_$LINE"
4421 ac_cv_use_gdk_imlib
='USE_GDK_IMLIB='$DEFAULT_USE_GDK_IMLIB
4425 eval "$ac_cv_use_gdk_imlib"
4426 echo $ac_cv_use_gdk_imlib >> ${OSTYPE}.system.cache.tmp
4427 if test "$USE_GDK_IMLIB" = 1; then
4428 echo "$ac_t""yes" 1>&6
4430 echo "$ac_t""no" 1>&6
4435 echo $ac_n "checking "for libpng
"""... $ac_c" 1>&6
4436 echo "configure:4437: checking "for libpng
"" >&5
4437 # Check whether --with-libpng or --without-libpng was given.
4438 if test "${with_libpng+set}" = set; then
4439 withval
="$with_libpng"
4440 if test "x$with_libpng" = xyes
; then
4441 ac_cv_use_libpng
='USE_LIBPNG="1"'
4443 ac_cv_use_libpng
='USE_LIBPNG="0"'
4447 LINE
=`grep "USE_LIBPNG" ${OSTYPE}.system.cache`
4448 if test "x$LINE" != x
; then
4449 eval "DEFAULT_$LINE"
4451 ac_cv_use_libpng
='USE_LIBPNG='$DEFAULT_USE_LIBPNG
4455 eval "$ac_cv_use_libpng"
4456 echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
4457 if test "$USE_LIBPNG" = 1; then
4458 echo "$ac_t""yes" 1>&6
4460 echo "$ac_t""no" 1>&6
4465 echo $ac_n "checking "for threads
"""... $ac_c" 1>&6
4466 echo "configure:4467: checking "for threads
"" >&5
4467 # Check whether --with-threads or --without-threads was given.
4468 if test "${with_threads+set}" = set; then
4469 withval
="$with_threads"
4470 if test "x$with_threads" = xyes
; then
4471 ac_cv_use_threads
='USE_THREADS="1"'
4473 ac_cv_use_threads
='USE_THREADS="0"'
4477 LINE
=`grep "USE_THREADS" ${OSTYPE}.system.cache`
4478 if test "x$LINE" != x
; then
4479 eval "DEFAULT_$LINE"
4481 ac_cv_use_threads
='USE_THREADS='$DEFAULT_USE_THREADS
4485 eval "$ac_cv_use_threads"
4486 echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
4487 if test "$USE_THREADS" = 1; then
4488 echo "$ac_t""yes" 1>&6
4490 echo "$ac_t""no" 1>&6
4495 echo $ac_n "checking "for opengl
"""... $ac_c" 1>&6
4496 echo "configure:4497: checking "for opengl
"" >&5
4497 # Check whether --with-opengl or --without-opengl was given.
4498 if test "${with_opengl+set}" = set; then
4499 withval
="$with_opengl"
4500 if test "x$with_opengl" = xyes
; then
4501 ac_cv_use_opengl
='USE_OPENGL="1"'
4503 ac_cv_use_opengl
='USE_OPENGL="0"'
4507 LINE
=`grep "USE_OPENGL" ${OSTYPE}.system.cache`
4508 if test "x$LINE" != x
; then
4509 eval "DEFAULT_$LINE"
4511 ac_cv_use_opengl
='USE_OPENGL='$DEFAULT_USE_OPENGL
4515 eval "$ac_cv_use_opengl"
4516 echo $ac_cv_use_opengl >> ${OSTYPE}.system.cache.tmp
4517 if test "$USE_OPENGL" = 1; then
4518 echo "$ac_t""yes" 1>&6
4520 echo "$ac_t""no" 1>&6
4526 echo $ac_n "checking "for storable
"""... $ac_c" 1>&6
4527 echo "configure:4528: checking "for storable
"" >&5
4528 # Check whether --with-storable or --without-storable was given.
4529 if test "${with_storable+set}" = set; then
4530 withval
="$with_storable"
4531 if test "x$with_storable" = xyes
; then
4532 ac_cv_use_storable
='USE_STORABLE_CLASSES="1"'
4534 ac_cv_use_storable
='USE_STORABLE_CLASSES="0"'
4538 LINE
=`grep "USE_STORABLE_CLASSES" ${OSTYPE}.system.cache`
4539 if test "x$LINE" != x
; then
4540 eval "DEFAULT_$LINE"
4542 ac_cv_use_storable
='USE_STORABLE_CLASSES='$DEFAULT_USE_STORABLE_CLASSES
4546 eval "$ac_cv_use_storable"
4547 echo $ac_cv_use_storable >> ${OSTYPE}.system.cache.tmp
4548 if test "$USE_STORABLE_CLASSES" = 1; then
4549 echo "$ac_t""yes" 1>&6
4551 echo "$ac_t""no" 1>&6
4556 echo $ac_n "checking "for autotrans
"""... $ac_c" 1>&6
4557 echo "configure:4558: checking "for autotrans
"" >&5
4558 # Check whether --with-autotrans or --without-autotrans was given.
4559 if test "${with_autotrans+set}" = set; then
4560 withval
="$with_autotrans"
4561 if test "x$with_autotrans" = xyes
; then
4562 ac_cv_use_autotrans
='USE_AUTOTRANS="1"'
4564 ac_cv_use_autotrans
='USE_AUTOTRANS="0"'
4568 LINE
=`grep "USE_AUTOTRANS" ${OSTYPE}.system.cache`
4569 if test "x$LINE" != x
; then
4570 eval "DEFAULT_$LINE"
4572 ac_cv_use_autotrans
='USE_AUTOTRANS='$DEFAULT_USE_AUTOTRANS
4576 eval "$ac_cv_use_autotrans"
4577 echo $ac_cv_use_autotrans >> ${OSTYPE}.system.cache.tmp
4578 if test "$USE_AUTOTRANS" = 1; then
4579 echo "$ac_t""yes" 1>&6
4581 echo "$ac_t""no" 1>&6
4586 echo $ac_n "checking "for afmfonts
"""... $ac_c" 1>&6
4587 echo "configure:4588: checking "for afmfonts
"" >&5
4588 # Check whether --with-afmfonts or --without-afmfonts was given.
4589 if test "${with_afmfonts+set}" = set; then
4590 withval
="$with_afmfonts"
4591 if test "x$with_afmfonts" = xyes
; then
4592 ac_cv_use_afmfonts
='USE_AFM_FOR_POSTSCRIPT="1"'
4594 ac_cv_use_afmfonts
='USE_AFM_FOR_POSTSCRIPT="0"'
4598 LINE
=`grep "USE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
4599 if test "x$LINE" != x
; then
4600 eval "DEFAULT_$LINE"
4602 ac_cv_use_afmfonts
='USE_AFM_FOR_POSTSCRIPT='$DEFAULT_USE_AFM_FOR_POSTSCRIPT
4606 eval "$ac_cv_use_afmfonts"
4607 echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
4608 if test "$USE_AFM_FOR_POSTSCRIPT" = 1; then
4609 echo "$ac_t""yes" 1>&6
4611 echo "$ac_t""no" 1>&6
4616 echo $ac_n "checking "for normalized
"""... $ac_c" 1>&6
4617 echo "configure:4618: checking "for normalized
"" >&5
4618 # Check whether --with-normalized or --without-normalized was given.
4619 if test "${with_normalized+set}" = set; then
4620 withval
="$with_normalized"
4621 if test "x$with_normalized" = xyes
; then
4622 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="1"'
4624 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="0"'
4628 LINE
=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
4629 if test "x$LINE" != x
; then
4630 eval "DEFAULT_$LINE"
4632 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
4636 eval "$ac_cv_use_normalized"
4637 echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
4638 if test "$WX_NORMALIZED_PS_FONTS" = 1; then
4639 echo "$ac_t""yes" 1>&6
4641 echo "$ac_t""no" 1>&6
4646 echo $ac_n "checking "for RPC
"""... $ac_c" 1>&6
4647 echo "configure:4648: checking "for RPC
"" >&5
4648 # Check whether --with-rpc or --without-rpc was given.
4649 if test "${with_rpc+set}" = set; then
4651 if test "x$with_rpc" = xyes
; then
4652 ac_cv_use_rpc
='USE_RPC="1"'
4654 ac_cv_use_rpc
='USE_RPC="0"'
4658 LINE
=`grep "USE_RPC" ${OSTYPE}.system.cache`
4659 if test "x$LINE" != x
; then
4660 eval "DEFAULT_$LINE"
4662 ac_cv_use_rpc
='USE_RPC='$DEFAULT_USE_RPC
4666 eval "$ac_cv_use_rpc"
4667 echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
4668 if test "$USE_RPC" = 1; then
4669 echo "$ac_t""yes" 1>&6
4671 echo "$ac_t""no" 1>&6
4676 echo $ac_n "checking "for wxresources
"""... $ac_c" 1>&6
4677 echo "configure:4678: checking "for wxresources
"" >&5
4678 # Check whether --with-wxresources or --without-wxresources was given.
4679 if test "${with_wxresources+set}" = set; then
4680 withval
="$with_wxresources"
4681 if test "x$with_wxresources" = xyes
; then
4682 ac_cv_use_wxresources
='USE_WX_RESOURCES="1"'
4684 ac_cv_use_wxresources
='USE_WX_RESOURCES="0"'
4688 LINE
=`grep "USE_WX_RESOURCES" ${OSTYPE}.system.cache`
4689 if test "x$LINE" != x
; then
4690 eval "DEFAULT_$LINE"
4692 ac_cv_use_wxresources
='USE_WX_RESOURCES='$DEFAULT_USE_WX_RESOURCES
4696 eval "$ac_cv_use_wxresources"
4697 echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
4698 if test "$USE_WX_RESOURCES" = 1; then
4699 echo "$ac_t""yes" 1>&6
4701 echo "$ac_t""no" 1>&6
4706 echo $ac_n "checking "for prologio
"""... $ac_c" 1>&6
4707 echo "configure:4708: checking "for prologio
"" >&5
4708 # Check whether --with-prologio or --without-prologio was given.
4709 if test "${with_prologio+set}" = set; then
4710 withval
="$with_prologio"
4711 if test "x$with_prologio" = xyes
; then
4712 ac_cv_use_prologio
='USE_PROLOGIO="1"'
4714 ac_cv_use_prologio
='USE_PROLOGIO="0"'
4718 LINE
=`grep "USE_PROLOGIO" ${OSTYPE}.system.cache`
4719 if test "x$LINE" != x
; then
4720 eval "DEFAULT_$LINE"
4722 ac_cv_use_prologio
='USE_PROLOGIO='$DEFAULT_USE_PROLOGIO
4726 eval "$ac_cv_use_prologio"
4727 echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
4728 if test "$USE_PROLOGIO" = 1; then
4729 echo "$ac_t""yes" 1>&6
4731 echo "$ac_t""no" 1>&6
4736 echo $ac_n "checking "for postscript
"""... $ac_c" 1>&6
4737 echo "configure:4738: checking "for postscript
"" >&5
4738 # Check whether --with-postscript or --without-postscript was given.
4739 if test "${with_postscript+set}" = set; then
4740 withval
="$with_postscript"
4741 if test "x$with_postscript" = xyes
; then
4742 ac_cv_use_postscript
='USE_POSTSCRIPT="1"'
4744 ac_cv_use_postscript
='USE_POSTSCRIPT="0"'
4748 LINE
=`grep "USE_POSTSCRIPT" ${OSTYPE}.system.cache`
4749 if test "x$LINE" != x
; then
4750 eval "DEFAULT_$LINE"
4752 ac_cv_use_postscript
='USE_POSTSCRIPT='$DEFAULT_USE_POSTSCRIPT
4756 eval "$ac_cv_use_postscript"
4757 echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
4758 if test "$USE_POSTSCRIPT" = 1; then
4759 echo "$ac_t""yes" 1>&6
4761 echo "$ac_t""no" 1>&6
4766 echo $ac_n "checking "for metafile
"""... $ac_c" 1>&6
4767 echo "configure:4768: checking "for metafile
"" >&5
4768 # Check whether --with-metafile or --without-metafile was given.
4769 if test "${with_metafile+set}" = set; then
4770 withval
="$with_metafile"
4771 if test "x$with_metafile" = xyes
; then
4772 ac_cv_use_metafile
='USE_METAFILE="1"'
4774 ac_cv_use_metafile
='USE_METAFILE="0"'
4778 LINE
=`grep "USE_METAFILE" ${OSTYPE}.system.cache`
4779 if test "x$LINE" != x
; then
4780 eval "DEFAULT_$LINE"
4782 ac_cv_use_metafile
='USE_METAFILE='$DEFAULT_USE_METAFILE
4786 eval "$ac_cv_use_metafile"
4787 echo $ac_cv_use_metafile >> ${OSTYPE}.system.cache.tmp
4788 if test "$USE_METAFILE" = 1; then
4789 echo "$ac_t""yes" 1>&6
4791 echo "$ac_t""no" 1>&6
4796 echo $ac_n "checking "for form
"""... $ac_c" 1>&6
4797 echo "configure:4798: checking "for form
"" >&5
4798 # Check whether --with-form or --without-form was given.
4799 if test "${with_form+set}" = set; then
4800 withval
="$with_form"
4801 if test "x$with_form" = xyes
; then
4802 ac_cv_use_form
='USE_FORM="1"'
4804 ac_cv_use_form
='USE_FORM="0"'
4808 LINE
=`grep "USE_FORM" ${OSTYPE}.system.cache`
4809 if test "x$LINE" != x
; then
4810 eval "DEFAULT_$LINE"
4812 ac_cv_use_form
='USE_FORM='$DEFAULT_USE_FORM
4816 eval "$ac_cv_use_form"
4817 echo $ac_cv_use_form >> ${OSTYPE}.system.cache.tmp
4818 if test "$USE_FORM" = 1; then
4819 echo "$ac_t""yes" 1>&6
4821 echo "$ac_t""no" 1>&6
4826 echo $ac_n "checking "for help"""... $ac_c" 1>&6
4827 echo "configure:4828: checking "for help"" >&5
4828 # Check whether --with-help or --without-help was given.
4829 if test "${with_help+set}" = set; then
4830 withval
="$with_help"
4831 if test "x$with_help" = xyes
; then
4832 ac_cv_use_help
='USE_HELP="1"'
4834 ac_cv_use_help
='USE_HELP="0"'
4838 LINE
=`grep "USE_HELP" ${OSTYPE}.system.cache`
4839 if test "x$LINE" != x
; then
4840 eval "DEFAULT_$LINE"
4842 ac_cv_use_help
='USE_HELP='$DEFAULT_USE_HELP
4846 eval "$ac_cv_use_help"
4847 echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
4848 if test "$USE_HELP" = 1; then
4849 echo "$ac_t""yes" 1>&6
4851 echo "$ac_t""no" 1>&6
4856 echo $ac_n "checking "for IPC
"""... $ac_c" 1>&6
4857 echo "configure:4858: checking "for IPC
"" >&5
4858 # Check whether --with-ipc or --without-ipc was given.
4859 if test "${with_ipc+set}" = set; then
4861 if test "x$with_ipc" = xyes
; then
4862 ac_cv_use_ipc
='USE_IPC="1"'
4864 ac_cv_use_ipc
='USE_IPC="0"'
4868 LINE
=`grep "USE_IPC" ${OSTYPE}.system.cache`
4869 if test "x$LINE" != x
; then
4870 eval "DEFAULT_$LINE"
4872 ac_cv_use_ipc
='USE_IPC='$DEFAULT_USE_IPC
4876 eval "$ac_cv_use_ipc"
4877 echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
4878 if test "$USE_IPC" = 1; then
4879 echo "$ac_t""yes" 1>&6
4881 echo "$ac_t""no" 1>&6
4886 echo $ac_n "checking "for enhanced dialog
"""... $ac_c" 1>&6
4887 echo "configure:4888: checking "for enhanced dialog
"" >&5
4888 # Check whether --with-enhanceddialog or --without-enhanceddialog was given.
4889 if test "${with_enhanceddialog+set}" = set; then
4890 withval
="$with_enhanceddialog"
4891 if test "x$with_enhanceddialog" = xyes
; then
4892 ac_cv_use_enhanceddialog
='USE_ENHANCED_DIALOG="1"'
4894 ac_cv_use_enhanceddialog
='USE_ENHANCED_DIALOG="0"'
4898 LINE
=`grep "USE_ENHANCED_DIALOG" ${OSTYPE}.system.cache`
4899 if test "x$LINE" != x
; then
4900 eval "DEFAULT_$LINE"
4902 ac_cv_use_enhanceddialog
='USE_ENHANCED_DIALOG='$DEFAULT_USE_ENHANCED_DIALOG
4906 eval "$ac_cv_use_enhanceddialog"
4907 echo $ac_cv_use_enhanceddialog >> ${OSTYPE}.system.cache.tmp
4908 if test "$USE_ENHANCED_DIALOG" = 1; then
4909 echo "$ac_t""yes" 1>&6
4911 echo "$ac_t""no" 1>&6
4916 echo $ac_n "checking "for resources
"""... $ac_c" 1>&6
4917 echo "configure:4918: checking "for resources
"" >&5
4918 # Check whether --with-resources or --without-resources was given.
4919 if test "${with_resources+set}" = set; then
4920 withval
="$with_resources"
4921 if test "x$with_resources" = xyes
; then
4922 ac_cv_use_resources
='USE_RESOURCES="1"'
4924 ac_cv_use_resources
='USE_RESOURCES="0"'
4928 LINE
=`grep "USE_RESOURCES" ${OSTYPE}.system.cache`
4929 if test "x$LINE" != x
; then
4930 eval "DEFAULT_$LINE"
4932 ac_cv_use_resources
='USE_RESOURCES='$DEFAULT_USE_RESOURCES
4936 eval "$ac_cv_use_resources"
4937 echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
4938 if test "$USE_RESOURCES" = 1; then
4939 echo "$ac_t""yes" 1>&6
4941 echo "$ac_t""no" 1>&6
4946 echo $ac_n "checking "for clipboard
"""... $ac_c" 1>&6
4947 echo "configure:4948: checking "for clipboard
"" >&5
4948 # Check whether --with-clipboard or --without-clipboard was given.
4949 if test "${with_clipboard+set}" = set; then
4950 withval
="$with_clipboard"
4951 if test "x$with_clipboard" = xyes
; then
4952 ac_cv_use_clipboard
='USE_CLIPBOARD="1"'
4954 ac_cv_use_clipboard
='USE_CLIPBOARD="0"'
4958 LINE
=`grep "USE_CLIPBOARD" ${OSTYPE}.system.cache`
4959 if test "x$LINE" != x
; then
4960 eval "DEFAULT_$LINE"
4962 ac_cv_use_clipboard
='USE_CLIPBOARD='$DEFAULT_USE_CLIPBOARD
4966 eval "$ac_cv_use_clipboard"
4967 echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
4968 if test "$USE_CLIPBOARD" = 1; then
4969 echo "$ac_t""yes" 1>&6
4971 echo "$ac_t""no" 1>&6
4976 echo $ac_n "checking "for timedate
"""... $ac_c" 1>&6
4977 echo "configure:4978: checking "for timedate
"" >&5
4978 # Check whether --with-timedate or --without-timedate was given.
4979 if test "${with_timedate+set}" = set; then
4980 withval
="$with_timedate"
4981 if test "x$with_timedate" = xyes
; then
4982 ac_cv_use_timedate
='USE_TIMEDATE="1"'
4984 ac_cv_use_timedate
='USE_TIMEDATE="0"'
4988 LINE
=`grep "USE_TIMEDATE" ${OSTYPE}.system.cache`
4989 if test "x$LINE" != x
; then
4990 eval "DEFAULT_$LINE"
4992 ac_cv_use_timedate
='USE_TIMEDATE='$DEFAULT_USE_TIMEDATE
4996 eval "$ac_cv_use_timedate"
4997 echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
4998 if test "$USE_TIMEDATE" = 1; then
4999 echo "$ac_t""yes" 1>&6
5001 echo "$ac_t""no" 1>&6
5006 echo $ac_n "checking "for fraction
"""... $ac_c" 1>&6
5007 echo "configure:5008: checking "for fraction
"" >&5
5008 # Check whether --with-fraction or --without-fraction was given.
5009 if test "${with_fraction+set}" = set; then
5010 withval
="$with_fraction"
5011 if test "x$with_fraction" = xyes
; then
5012 ac_cv_use_fraction
='USE_FRACTION="1"'
5014 ac_cv_use_fraction
='USE_FRACTION="0"'
5018 LINE
=`grep "USE_FRACTION" ${OSTYPE}.system.cache`
5019 if test "x$LINE" != x
; then
5020 eval "DEFAULT_$LINE"
5022 ac_cv_use_fraction
='USE_FRACTION='$DEFAULT_USE_FRACTION
5026 eval "$ac_cv_use_fraction"
5027 echo $ac_cv_use_fraction >> ${OSTYPE}.system.cache.tmp
5028 if test "$USE_FRACTION" = 1; then
5029 echo "$ac_t""yes" 1>&6
5031 echo "$ac_t""no" 1>&6
5036 echo $ac_n "checking "for constrains
"""... $ac_c" 1>&6
5037 echo "configure:5038: checking "for constrains
"" >&5
5038 # Check whether --with-constraints or --without-constraints was given.
5039 if test "${with_constraints+set}" = set; then
5040 withval
="$with_constraints"
5041 if test "x$with_constraints" = xyes
; then
5042 ac_cv_use_constraints
='USE_CONSTRAINTS="1"'
5044 ac_cv_use_constraints
='USE_CONSTRAINTS="0"'
5048 LINE
=`grep "USE_CONSTRAINTS" ${OSTYPE}.system.cache`
5049 if test "x$LINE" != x
; then
5050 eval "DEFAULT_$LINE"
5052 ac_cv_use_constraints
='USE_CONSTRAINTS='$DEFAULT_USE_CONSTRAINTS
5056 eval "$ac_cv_use_constraints"
5057 echo $ac_cv_use_constraints >> ${OSTYPE}.system.cache.tmp
5058 if test "$USE_CONSTRAINTS" = 1; then
5059 echo "$ac_t""yes" 1>&6
5061 echo "$ac_t""no" 1>&6
5066 echo $ac_n "checking "for toolbar
"""... $ac_c" 1>&6
5067 echo "configure:5068: checking "for toolbar
"" >&5
5068 # Check whether --with-toolbar or --without-toolbar was given.
5069 if test "${with_toolbar+set}" = set; then
5070 withval
="$with_toolbar"
5071 if test "x$with_toolbar" = xyes
; then
5072 ac_cv_use_toolbar
='USE_TOOLBAR="1"'
5074 ac_cv_use_toolbar
='USE_TOOLBAR="0"'
5078 LINE
=`grep "USE_TOOLBAR" ${OSTYPE}.system.cache`
5079 if test "x$LINE" != x
; then
5080 eval "DEFAULT_$LINE"
5082 ac_cv_use_toolbar
='USE_TOOLBAR='$DEFAULT_USE_TOOLBAR
5086 eval "$ac_cv_use_toolbar"
5087 echo $ac_cv_use_toolbar >> ${OSTYPE}.system.cache.tmp
5088 if test "$USE_TOOLBAR" = 1; then
5089 echo "$ac_t""yes" 1>&6
5091 echo "$ac_t""no" 1>&6
5096 echo $ac_n "checking "for gauge
"""... $ac_c" 1>&6
5097 echo "configure:5098: checking "for gauge
"" >&5
5098 # Check whether --with-gauge or --without-gauge was given.
5099 if test "${with_gauge+set}" = set; then
5100 withval
="$with_gauge"
5101 if test "x$with_gauge" = xyes
; then
5102 ac_cv_use_gauge
='USE_GAUGE="1"'
5104 ac_cv_use_gauge
='USE_GAUGE="0"'
5108 LINE
=`grep "USE_GAUGE" ${OSTYPE}.system.cache`
5109 if test "x$LINE" != x
; then
5110 eval "DEFAULT_$LINE"
5112 ac_cv_use_gauge
='USE_GAUGE='$DEFAULT_USE_GAUGE
5116 eval "$ac_cv_use_gauge"
5117 echo $ac_cv_use_gauge >> ${OSTYPE}.system.cache.tmp
5118 if test "$USE_GAUGE" = 1; then
5119 echo "$ac_t""yes" 1>&6
5121 echo "$ac_t""no" 1>&6
5126 echo $ac_n "checking "for vllist
"""... $ac_c" 1>&6
5127 echo "configure:5128: checking "for vllist
"" >&5
5128 # Check whether --with-vllist or --without-vllist was given.
5129 if test "${with_vllist+set}" = set; then
5130 withval
="$with_vllist"
5131 if test "x$with_vllist" = xyes
; then
5132 ac_cv_use_vllist
='USE_VLBOX="1"'
5134 ac_cv_use_vllist
='USE_VLBOX="0"'
5138 LINE
=`grep "USE_VLBOX" ${OSTYPE}.system.cache`
5139 if test "x$LINE" != x
; then
5140 eval "DEFAULT_$LINE"
5142 ac_cv_use_vllist
='USE_VLBOX='$DEFAULT_USE_VLBOX
5146 eval "$ac_cv_use_vllist"
5147 echo $ac_cv_use_vllist >> ${OSTYPE}.system.cache.tmp
5148 if test "$USE_VLBOX" = 1; then
5149 echo "$ac_t""yes" 1>&6
5151 echo "$ac_t""no" 1>&6
5156 echo $ac_n "checking "for scrollbar
"""... $ac_c" 1>&6
5157 echo "configure:5158: checking "for scrollbar
"" >&5
5158 # Check whether --with-scrollbar or --without-scrollbar was given.
5159 if test "${with_scrollbar+set}" = set; then
5160 withval
="$with_scrollbar"
5161 if test "x$with_scrollbar" = xyes
; then
5162 ac_cv_use_scrollbar
='USE_SCROLLBAR="1"'
5164 ac_cv_use_scrollbar
='USE_SCROLLBAR="0"'
5168 LINE
=`grep "USE_SCROLLBAR" ${OSTYPE}.system.cache`
5169 if test "x$LINE" != x
; then
5170 eval "DEFAULT_$LINE"
5172 ac_cv_use_scrollbar
='USE_SCROLLBAR='$DEFAULT_USE_SCROLLBAR
5176 eval "$ac_cv_use_scrollbar"
5177 echo $ac_cv_use_scrollbar >> ${OSTYPE}.system.cache.tmp
5178 if test "$USE_SCROLLBAR" = 1; then
5179 echo "$ac_t""yes" 1>&6
5181 echo "$ac_t""no" 1>&6
5186 echo $ac_n "checking "for docview
"""... $ac_c" 1>&6
5187 echo "configure:5188: checking "for docview
"" >&5
5188 # Check whether --with-docview or --without-docview was given.
5189 if test "${with_docview+set}" = set; then
5190 withval
="$with_docview"
5191 if test "x$with_docview" = xyes
; then
5192 ac_cv_use_docview
='USE_DOC_VIEW_ARCHITECTURE="1"'
5194 ac_cv_use_docview
='USE_DOC_VIEW_ARCHITECTURE="0"'
5198 LINE
=`grep "USE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
5199 if test "x$LINE" != x
; then
5200 eval "DEFAULT_$LINE"
5202 ac_cv_use_docview
='USE_DOC_VIEW_ARCHITECTURE='$DEFAULT_USE_DOC_VIEW_ARCHITECTURE
5206 eval "$ac_cv_use_docview"
5207 echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
5208 if test "$USE_DOC_VIEW_ARCHITECTURE" = 1; then
5209 echo "$ac_t""yes" 1>&6
5211 echo "$ac_t""no" 1>&6
5216 echo $ac_n "checking "for printarch
"""... $ac_c" 1>&6
5217 echo "configure:5218: checking "for printarch
"" >&5
5218 # Check whether --with-printarch or --without-printarch was given.
5219 if test "${with_printarch+set}" = set; then
5220 withval
="$with_printarch"
5221 if test "x$with_printarch" = xyes
; then
5222 ac_cv_use_printarch
='USE_PRINTING_ARCHITECTURE="1"'
5224 ac_cv_use_printarch
='USE_PRINTING_ARCHITECTURE="0"'
5228 LINE
=`grep "USE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
5229 if test "x$LINE" != x
; then
5230 eval "DEFAULT_$LINE"
5232 ac_cv_use_printarch
='USE_PRINTING_ARCHITECTURE='$DEFAULT_USE_PRINTING_ARCHITECTURE
5236 eval "$ac_cv_use_printarch"
5237 echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
5238 if test "$USE_PRINTING_ARCHITECTURE" = 1; then
5239 echo "$ac_t""yes" 1>&6
5241 echo "$ac_t""no" 1>&6
5246 echo $ac_n "checking "for typetree
"""... $ac_c" 1>&6
5247 echo "configure:5248: checking "for typetree
"" >&5
5248 # Check whether --with-typetree or --without-typetree was given.
5249 if test "${with_typetree+set}" = set; then
5250 withval
="$with_typetree"
5251 if test "x$with_typetree" = xyes
; then
5252 ac_cv_use_typetree
='USE_TYPETREE="1"'
5254 ac_cv_use_typetree
='USE_TYPETREE="0"'
5258 LINE
=`grep "USE_TYPETREE" ${OSTYPE}.system.cache`
5259 if test "x$LINE" != x
; then
5260 eval "DEFAULT_$LINE"
5262 ac_cv_use_typetree
='USE_TYPETREE='$DEFAULT_USE_TYPETREE
5266 eval "$ac_cv_use_typetree"
5267 echo $ac_cv_use_typetree >> ${OSTYPE}.system.cache.tmp
5268 if test "$USE_TYPETREE" = 1; then
5269 echo "$ac_t""yes" 1>&6
5271 echo "$ac_t""no" 1>&6
5276 echo $ac_n "checking "for wxgraph
"""... $ac_c" 1>&6
5277 echo "configure:5278: checking "for wxgraph
"" >&5
5278 # Check whether --with-wxgraph or --without-wxgraph was given.
5279 if test "${with_wxgraph+set}" = set; then
5280 withval
="$with_wxgraph"
5281 if test "x$with_wxgraph" = xyes
; then
5282 ac_cv_use_wxgraph
='USE_WXGRAPH="1"'
5284 ac_cv_use_wxgraph
='USE_WXGRAPH="0"'
5288 LINE
=`grep "USE_WXGRAPH" ${OSTYPE}.system.cache`
5289 if test "x$LINE" != x
; then
5290 eval "DEFAULT_$LINE"
5292 ac_cv_use_wxgraph
='USE_WXGRAPH='$DEFAULT_USE_WXGRAPH
5296 eval "$ac_cv_use_wxgraph"
5297 echo $ac_cv_use_wxgraph >> ${OSTYPE}.system.cache.tmp
5298 if test "$USE_WXGRAPH" = 1; then
5299 echo "$ac_t""yes" 1>&6
5301 echo "$ac_t""no" 1>&6
5306 echo $ac_n "checking "for wxtree
"""... $ac_c" 1>&6
5307 echo "configure:5308: checking "for wxtree
"" >&5
5308 # Check whether --with-wxtree or --without-wxtree was given.
5309 if test "${with_wxtree+set}" = set; then
5310 withval
="$with_wxtree"
5311 if test "x$with_wxtree" = xyes
; then
5312 ac_cv_use_wxtree
='USE_WXTREE="1"'
5314 ac_cv_use_wxtree
='USE_WXTREE="0"'
5318 LINE
=`grep "USE_WXTREE" ${OSTYPE}.system.cache`
5319 if test "x$LINE" != x
; then
5320 eval "DEFAULT_$LINE"
5322 ac_cv_use_wxtree
='USE_WXTREE='$DEFAULT_USE_WXTREE
5326 eval "$ac_cv_use_wxtree"
5327 echo $ac_cv_use_wxtree >> ${OSTYPE}.system.cache.tmp
5328 if test "$USE_WXTREE" = 1; then
5329 echo "$ac_t""yes" 1>&6
5331 echo "$ac_t""no" 1>&6
5338 if test "$USE_ZLIB" = 1 ; then
5343 if test "$USE_GDK_IMLIB" = 1 ; then
5344 GDK_IMLIB
="GDK_IMLIB"
5348 if test "$USE_LIBPNG" = 1 ; then
5354 if test "$USE_THREADS" = 1 ; then
5355 case "$OS" in iris
| IRIX
| Irix5
| Irix6
)
5362 THREADS_LINK
=-lpthread
5366 cat >> confdefs.h
<<EOF
5367 #define USE_THREADS $USE_THREADS
5370 cat >> confdefs.h
<<EOF
5371 #define USE_THREADS_SGI $USE_THREADS_SGI
5374 cat >> confdefs.h
<<EOF
5375 #define USE_THREADS_POSIX $USE_THREADS_POSIX
5383 if test "$USE_STORABLE_CLASSES" = 1 ; then
5385 cat >> confdefs.h
<<EOF
5386 #define USE_STORABLE_CLASSES $USE_STORABLE_CLASSES
5392 if test "$USE_AUTOTRANS" = 1 ; then
5393 AUTOTRANS
="AUTOTRANS"
5394 cat >> confdefs.h
<<EOF
5395 #define USE_AUTOTRANS $USE_AUTOTRANS
5401 if test "$USE_DEBUG_INFO" = 1 ; then
5406 if test "$USE_DEBUG_FLAG" = 1 ; then
5407 cat >> confdefs.h
<<EOF
5408 #define DEBUG $USE_DEBUG_FLAG
5413 if test "$USE_MEM_TRACING" = 1 ; then
5414 cat >> confdefs.h
<<EOF
5415 #define USE_MEMORY_TRACING $USE_MEM_TRACING
5418 cat >> confdefs.h
<<EOF
5419 #define USE_GLOBAL_MEMORY_OPERATORS $USE_MEM_TRACING
5425 if test "$USE_PROFILE" = 1 ; then
5430 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
5431 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
5432 if test "$USE_OPTIMISE" = 0 ; then
5435 if test "$GCC" = yes ; then
5437 case "${canonical}" in
5439 OPTIMISE
="${OPTIMISE} "
5448 USE_IOSTREAMH
=$DEFAULT_USE_IOSTREAMH
5449 cat >> confdefs.h
<<EOF
5450 #define USE_IOSTREAMH $USE_IOSTREAMH
5455 if test "$USE_RPC" = 1 ; then
5457 cat >> confdefs.h
<<EOF
5458 #define USE_RPC $USE_RPC
5465 if test "$USE_WX_RESOURCES" = 1 ; then
5466 WXRESOURCES
="WXRESOURCES"
5467 cat >> confdefs.h
<<EOF
5468 #define USE_WX_RESOURCES $USE_WX_RESOURCES
5476 if test "$USE_PROLOGIO" = 1 ; then
5478 PROLOGIOSRC
="PROLOGIOSRC"
5479 cat >> confdefs.h
<<EOF
5480 #define USE_PROLOGIO 1
5488 if test "$USE_POSTSCRIPT" = 1 ; then
5489 POSTSCRIPTDC
="POSTSCRIPTDC"
5490 cat >> confdefs.h
<<EOF
5491 #define USE_POSTSCRIPT 1
5498 if test "$USE_METAFILE" = 1 ; then
5500 cat >> confdefs.h
<<EOF
5501 #define USE_METAFILE $USE_METAFILE
5508 if test "$USE_FORM" = 1 ; then
5510 cat >> confdefs.h
<<EOF
5511 #define USE_FORM $USE_FORM
5518 if test "$USE_HELP" = 1 ; then
5520 cat >> confdefs.h
<<EOF
5521 #define USE_HELP $USE_HELP
5528 if test "$USE_IPC" = 1 ; then
5530 cat >> confdefs.h
<<EOF
5538 if test "$USE_ENHANCED_DIALOG" = 1 ; then
5539 ENHDIALOGBOX
="ENHDIALOGBOX"
5540 cat >> confdefs.h
<<EOF
5541 #define USE_ENHANCED_DIALOG $USE_ENHANCED_DIALOG
5548 if test "$USE_RESOURCES" = 1 ; then
5549 XRESOURCES
="XRESOURCES"
5550 cat >> confdefs.h
<<EOF
5551 #define USE_RESOURCES $USE_RESOURCES
5558 if test "$USE_CLIPBOARD" = 1 ; then
5559 CLIPBOARD
="CLIPBOARD"
5560 cat >> confdefs.h
<<EOF
5561 #define USE_CLIPBOARD $USE_CLIPBOARD
5568 if test "$USE_CONSTRAINTS" = 1 ; then
5569 CONSTRAINTS
="CONSTRAINTS"
5570 cat >> confdefs.h
<<EOF
5571 #define USE_CONSTRAINTS $USE_CONSTRAINTS
5578 if test "$USE_TIMEDATE" = 1 ; then
5580 cat >> confdefs.h
<<EOF
5581 #define USE_TIMEDATE $USE_TIMEDATE
5588 if test "$USE_FRACTION" = 1 ; then
5590 cat >> confdefs.h
<<EOF
5591 #define USE_FRACTION $USE_FRACTION
5598 if test "$USE_TOOLBAR" = 1 ; then
5600 cat >> confdefs.h
<<EOF
5601 #define USE_TOOLBAR $USE_TOOLBAR
5604 cat >> confdefs.h
<<EOF
5605 #define USE_XT_TOOLBAR $USE_XT_TOOLBAR
5612 if test "$USE_GAUGE" = 1 ; then
5615 cat >> confdefs.h
<<EOF
5616 #define USE_GAUGE $USE_GAUGE
5622 if test "$USE_VLBOX" = 1 ; then
5623 VIRTLISTBOX
="VIRLISTBOX"
5624 cat >> confdefs.h
<<EOF
5625 #define USE_VIRLISTBOX $USE_VIRLISTBOX
5632 if test "$USE_SCROLLBAR" = 1 ; then
5633 SCROLLBAR
="SCROLLBAR"
5634 cat >> confdefs.h
<<EOF
5635 #define USE_SCROLLBAR $USE_SCROLLBAR
5642 if test "$USE_DOC_VIEW_ARCHITECTURE" = 1 ; then
5644 cat >> confdefs.h
<<EOF
5645 #define USE_DOC_VIEW_ARCHITECTURE $USE_DOC_VIEW_ARCHITECTURE
5652 if test "$USE_PRINTING_ARCHITECTURE" = 1 ; then
5653 PRINTPREVIEW
="PRINTPREVIEW"
5654 cat >> confdefs.h
<<EOF
5655 #define USE_PRINTING_ARCHITECTURE $USE_PRINTING_ARCHITECTURE
5662 if test "$USE_TYPETREE" = 1 ; then
5664 cat >> confdefs.h
<<EOF
5665 #define USE_TYPETREE $USE_TYPETREE
5672 if test "$USE_WXGRAPH" = 1 ; then
5674 cat >> confdefs.h
<<EOF
5675 #define USE_WXGRAPH $USE_WXGRAPH
5682 if test "$USE_WXTREE" = 1 ; then
5684 cat >> confdefs.h
<<EOF
5685 #define USE_WXTREE $USE_WXTREE
5692 if test "$USE_OPENGL" = 1 ; then
5696 cat >> confdefs.h
<<EOF
5697 #define USE_AFM_FOR_POSTSCRIPT $USE_AFM_FOR_POSTSCRIPT
5701 cat >> confdefs.h
<<EOF
5702 #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
5707 if test "$USE_UNIX" = 1 ; then
5708 cat >> confdefs.h
<<\EOF
5719 if test "$USE_GTK" = 1; then
5720 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
5721 if test "${with_gtk_prefix+set}" = set; then
5722 withval
="$with_gtk_prefix"
5723 gtk_config_prefix
="$withval"
5725 gtk_config_prefix
=""
5728 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
5729 if test "${with_gtk_exec_prefix+set}" = set; then
5730 withval
="$with_gtk_exec_prefix"
5731 gtk_config_exec_prefix
="$withval"
5733 gtk_config_exec_prefix
=""
5737 if test x
$gtk_config_exec_prefix != x
; then
5738 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
5739 if test x
${GTK_CONFIG+set} != xset
; then
5740 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
5743 if test x
$gtk_config_prefix != x
; then
5744 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
5745 if test x
${GTK_CONFIG+set} != xset
; then
5746 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
5750 # Extract the first word of "gtk-config", so it can be a program name with args.
5751 set dummy gtk
-config; ac_word
=$2
5752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5753 echo "configure:5754: checking for $ac_word" >&5
5754 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5757 case "$GTK_CONFIG" in
5759 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
5762 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5763 for ac_dir
in $PATH; do
5764 test -z "$ac_dir" && ac_dir
=.
5765 if test -f $ac_dir/$ac_word; then
5766 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
5771 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
5775 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
5776 if test -n "$GTK_CONFIG"; then
5777 echo "$ac_t""$GTK_CONFIG" 1>&6
5779 echo "$ac_t""no" 1>&6
5782 min_gtk_version
=0.99.7
5783 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
5784 echo "configure:5785: checking for GTK - version >= $min_gtk_version" >&5
5786 if test "$GTK_CONFIG" != "no" ; then
5787 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
5788 GTK_LIBS
=`$GTK_CONFIG --libs`
5789 ac_save_CFLAGS
="$CFLAGS"
5790 ac_save_LIBS
="$LIBS"
5791 CFLAGS
="$CFLAGS $GTK_CFLAGS"
5792 LIBS
="$LIBS $GTK_LIBS"
5793 if test "$cross_compiling" = yes; then
5794 echo $ac_n "cross compiling; assumed OK... $ac_c"
5796 cat > conftest.
$ac_ext <<EOF
5797 #line 5798 "configure"
5798 #include "confdefs.h"
5800 #include <gtk/gtk.h>
5806 int major, minor, micro;
5808 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
5809 printf("%s, bad version string\n", "$min_gtk_version");
5813 return !((gtk_major_version > major) ||
5814 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
5815 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
5819 if { (eval echo configure
:5820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
5823 echo "configure: failed program was:" >&5
5824 cat conftest.
$ac_ext >&5
5831 CFLAGS
="$ac_save_CFLAGS"
5832 LIBS
="$ac_save_LIBS"
5836 if test "x$no_gtk" = x
; then
5837 echo "$ac_t""yes" 1>&6
5839 GUI_TK_INCLUDE
="$GTK_CFLAGS"
5840 GUI_TK_LIBRARY
="$GTK_LIBS"
5843 echo "$ac_t""no" 1>&6
5846 { echo "configure: error: Are gtk-config and the GTK in path and up-to-date?" 1>&2; exit 1; }
5851 cat >> confdefs.h
<<\EOF
5868 if test "$USE_OPENGL" = 1; then
5869 echo $ac_n "checking for OpenGL includes""... $ac_c" 1>&6
5870 echo "configure:5871: checking for OpenGL includes" >&5
5873 for ac_dir
in $SEARCH_INCLUDE;
5875 if test -f "$ac_dir/GL/gl.h"; then
5876 ac_find_includes
=$ac_dir
5881 if test "$ac_find_includes" != "" ; then
5882 OPENGL_INCLUDE
="-I$ac_find_includes"
5883 echo "$ac_t""found $ac_find_includes" 1>&6
5884 echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
5885 echo "configure:5886: checking for OpenGL library" >&5
5888 for ac_dir
in $SEARCH_LIB;
5890 for ac_extension
in a so sl
; do
5891 if test -f "$ac_dir/libGL.$ac_extension"; then
5892 ac_find_libraries
=$ac_dir
5898 if test "$ac_find_libraries" != "" ; then
5900 ac_path_to_include
=$ac_find_includes
5901 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
5903 if test $result = 0; then
5904 ac_path_to_include
=""
5906 ac_path_to_include
="-I$ac_find_includes"
5910 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5912 if test $result = 0; then
5915 ac_path_to_link
="-L$ac_find_libraries"
5918 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
5919 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
5920 OPENGL_LIBRARY
="$ac_path_to_link"
5921 OPENGL_INCLUDE
="$ac_path_to_include"
5923 echo "$ac_t""found OpenGL at $ac_find_libraries" 1>&6
5927 for ac_dir
in $SEARCH_LIB;
5929 for ac_extension
in a so sl
; do
5930 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
5931 ac_find_libraries
=$ac_dir
5937 if test "$ac_find_libraries" != "" ; then
5939 ac_path_to_include
=$ac_find_includes
5940 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
5942 if test $result = 0; then
5943 ac_path_to_include
=""
5945 ac_path_to_include
="-I$ac_find_includes"
5949 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
5951 if test $result = 0; then
5954 ac_path_to_link
="-L$ac_find_libraries"
5957 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
5958 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
5959 OPENGL_LIBRARY
="$ac_path_to_link"
5960 OPENGL_INCLUDE
="$ac_path_to_include"
5961 OPENGL_LINK
="-lMesaGL"
5962 echo "$ac_t""found MESA at $ac_find_libraries" 1>&6
5964 { echo "configure: error: no" 1>&2; exit 1; }
5968 { echo "configure: error: no" 1>&2; exit 1; }
5972 if test "$USE_GDK_IMLIB" = 1; then
5973 cat >> confdefs.h
<<EOF
5974 #define USE_GDK_IMLIB $USE_GDK_IMLIB
5979 if test "$USE_ZLIB" = 1; then
5980 cat >> confdefs.h
<<EOF
5981 #define USE_ZLIB $USE_ZLIB
5986 if test "$USE_LIBPNG" = 1; then
5987 cat >> confdefs.h
<<EOF
5988 #define USE_LIBPNG $USE_LIBPNG
5997 if test "$USE_OPENGL" != 1; then
6004 cat >> confdefs.h
<<EOF
6005 #define USE_GLX $USE_GLX
6016 case "${canonical}" in
6019 if test "${CC}" != "gcc" ; then
6020 CXXFLAGS
="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
6021 CFLAGS
="${CFLAGS} -z -D_HPUX_SOURCE"
6027 CREATE_SHARED
=sharedHpux
6032 CREATE_SHARED
=sharedLinux
6035 *-*-irix5* | *-*-irix6* )
6036 # PICFLAGS can remain empty, as pic is the default
6038 CREATE_SHARED
=sharedIrix
6039 cat >> confdefs.h
<<\EOF
6046 if test "${CC}" != "gcc" ; then
6051 CREATE_SHARED
=sharedSolaris2
6052 cat >> confdefs.h
<<\EOF
6059 if test "${CC}" != "gcc" ; then
6065 CREATE_SHARED
=sharedSunos4
6066 cat >> confdefs.h
<<\EOF
6072 *-*-freebsd* | *-*-netbsd*)
6074 CREATE_SHARED
=sharedBsd
6075 cat >> confdefs.h
<<\EOF
6083 CREATE_SHARED
=sharedOSF
6087 if test "${CC}" != "gcc" ; then
6092 CREATE_SHARED
=sharedDgux
6093 cat >> confdefs.h
<<\EOF
6100 if test "${CC}" != "gcc" ; then
6105 CREATE_SHARED
=sharedSysV
6106 cat >> confdefs.h
<<\EOF
6113 if test "${CC}" != "gcc" ; then
6118 CREATE_SHARED
=sharedAIX
6119 cat >> confdefs.h
<<\EOF
6130 if test "x$GCC" = xyes
; then
6131 CFLAGS
="${CFLAGS} -Wall"
6134 if test "x$GXX" = xyes
; then
6135 CXXFLAGS
="${CXXFLAGS} -Wall"
6138 if test "$USE_SHARED" != 1; then
6148 echo $OS >> system.list
6152 cat > confcache
<<\EOF
6153 # This file is a shell script that caches the results of configure
6154 # tests run on this system so they can be shared between configure
6155 # scripts and configure runs. It is not useful on other systems.
6156 # If it contains results you don't want to keep, you may remove or edit it.
6158 # By default, configure uses ./config.cache as the cache file,
6159 # creating it if it does not exist already. You can give configure
6160 # the --cache-file=FILE option to use a different cache file; that is
6161 # what configure does when it calls configure scripts in
6162 # subdirectories, so they share the cache.
6163 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6164 # config.status only pays attention to the cache file if you give it the
6165 # --recheck option to rerun configure.
6168 # The following way of writing the cache mishandles newlines in values,
6169 # but we know of no workaround that is simple, portable, and efficient.
6170 # So, don't put newlines in cache variables' values.
6171 # Ultrix sh set writes to stderr and can't be redirected directly,
6172 # and sets the high bit in the cache file unless we assign to the vars.
6174 case `(ac_space=' '; set) 2>&1` in
6176 # `set' does not quote correctly, so add quotes (double-quote substitution
6177 # turns \\\\ into \\, and sed turns \\ into \).
6179 -e "s/'/'\\\\''/g" \
6180 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6183 # `set' quotes correctly as required by POSIX, so do not add quotes.
6184 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6187 if cmp -s $cache_file confcache
; then
6190 if test -w $cache_file; then
6191 echo "updating cache $cache_file"
6192 cat confcache
> $cache_file
6194 echo "not updating unwritable cache $cache_file"
6199 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6201 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6202 # Let make expand exec_prefix.
6203 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6205 # Any assignment to VPATH causes Sun make to only execute
6206 # the first set of double-colon rules, so remove it if not needed.
6207 # If there is a colon in the path, we need to keep it.
6208 if test "x$srcdir" = x.
; then
6209 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6212 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6214 DEFS
=-DHAVE_CONFIG_H
6216 # Without the "./", some shells look in PATH for config.status.
6217 : ${CONFIG_STATUS=./config.status}
6219 echo creating
$CONFIG_STATUS
6220 rm -f $CONFIG_STATUS
6221 cat > $CONFIG_STATUS <<EOF
6223 # Generated automatically by configure.
6224 # Run this file to recreate the current configuration.
6225 # This directory was configured as follows,
6226 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6228 # $0 $ac_configure_args
6230 # Compiler output produced by configure, useful for debugging
6231 # configure, is in ./config.log if it exists.
6233 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6236 case "\$ac_option" in
6237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6238 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6239 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6240 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6241 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6243 -help | --help | --hel | --he | --h)
6244 echo "\$ac_cs_usage"; exit 0 ;;
6245 *) echo "\$ac_cs_usage"; exit 1 ;;
6249 ac_given_srcdir=$srcdir
6250 ac_given_INSTALL="$INSTALL"
6252 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
6254 cat >> $CONFIG_STATUS <<EOF
6256 # Protect against being on the right side of a sed subst in config.status.
6257 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6258 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6261 s%@CFLAGS@%$CFLAGS%g
6262 s%@CPPFLAGS@%$CPPFLAGS%g
6263 s%@CXXFLAGS@%$CXXFLAGS%g
6265 s%@LDFLAGS@%$LDFLAGS%g
6267 s%@exec_prefix@%$exec_prefix%g
6268 s%@prefix@%$prefix%g
6269 s%@program_transform_name@%$program_transform_name%g
6270 s%@bindir@%$bindir%g
6271 s%@sbindir@%$sbindir%g
6272 s%@libexecdir@%$libexecdir%g
6273 s%@datadir@%$datadir%g
6274 s%@sysconfdir@%$sysconfdir%g
6275 s%@sharedstatedir@%$sharedstatedir%g
6276 s%@localstatedir@%$localstatedir%g
6277 s%@libdir@%$libdir%g
6278 s%@includedir@%$includedir%g
6279 s%@oldincludedir@%$oldincludedir%g
6280 s%@infodir@%$infodir%g
6281 s%@mandir@%$mandir%g
6282 s%@WXBASEDIR@%$WXBASEDIR%g
6286 s%@CXXCPP@%$CXXCPP%g
6287 s%@RANLIB@%$RANLIB%g
6289 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6290 s%@INSTALL_DATA@%$INSTALL_DATA%g
6293 s%@X_CFLAGS@%$X_CFLAGS%g
6294 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6295 s%@X_LIBS@%$X_LIBS%g
6296 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6297 s%@LIBOBJS@%$LIBOBJS%g
6300 s%@LEXLIB@%$LEXLIB%g
6301 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6303 s%@host_alias@%$host_alias%g
6304 s%@host_cpu@%$host_cpu%g
6305 s%@host_vendor@%$host_vendor%g
6306 s%@host_os@%$host_os%g
6307 s%@THREADS@%$THREADS%g
6308 s%@THREADS_LINK@%$THREADS_LINK%g
6310 s%@PROFILE@%$PROFILE%g
6311 s%@OPTIMISE@%$OPTIMISE%g
6313 s%@WXRESOURCES@%$WXRESOURCES%g
6314 s%@PROLOGIO@%$PROLOGIO%g
6315 s%@PROLOGIOSRC@%$PROLOGIOSRC%g
6316 s%@POSTSCRIPTDC@%$POSTSCRIPTDC%g
6317 s%@METAFILE@%$METAFILE%g
6321 s%@ENHDIALOGBOX@%$ENHDIALOGBOX%g
6322 s%@XRESOURCES@%$XRESOURCES%g
6323 s%@CLIPBOARD@%$CLIPBOARD%g
6324 s%@CONSTRAINTS@%$CONSTRAINTS%g
6325 s%@TIMEDATE@%$TIMEDATE%g
6326 s%@FRACTION@%$FRACTION%g
6327 s%@TOOLBAR@%$TOOLBAR%g
6329 s%@VIRLISTBOX@%$VIRLISTBOX%g
6330 s%@SCROLLBAR@%$SCROLLBAR%g
6331 s%@DOCVIEW@%$DOCVIEW%g
6332 s%@PRINTPREVIEW@%$PRINTPREVIEW%g
6333 s%@TYPETREE@%$TYPETREE%g
6334 s%@WXGRAPH@%$WXGRAPH%g
6335 s%@WXTREE@%$WXTREE%g
6336 s%@GTK_CONFIG@%$GTK_CONFIG%g
6337 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
6338 s%@GTK_LIBS@%$GTK_LIBS%g
6339 s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
6340 s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
6341 s%@GUI_TK_LINK@%$GUI_TK_LINK%g
6342 s%@TOOLKIT@%$TOOLKIT%g
6343 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
6344 s%@OPENGL_INCLUDE@%$OPENGL_INCLUDE%g
6345 s%@OPENGL_LIBRARY@%$OPENGL_LIBRARY%g
6346 s%@OPENGL_LINK@%$OPENGL_LINK%g
6347 s%@GLCANVAS@%$GLCANVAS%g
6349 s%@PICFLAGS@%$PICFLAGS%g
6350 s%@CREATE_SHARED@%$CREATE_SHARED%g
6355 cat >> $CONFIG_STATUS <<\EOF
6357 # Split the substitutions into bite-sized pieces for seds with
6358 # small command number limits, like on Digital OSF/1 and HP-UX.
6359 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6360 ac_file
=1 # Number of current file.
6361 ac_beg
=1 # First line for current file.
6362 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6365 while $ac_more_lines; do
6366 if test $ac_beg -gt 1; then
6367 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6369 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6371 if test ! -s conftest.s
$ac_file; then
6373 rm -f conftest.s
$ac_file
6375 if test -z "$ac_sed_cmds"; then
6376 ac_sed_cmds
="sed -f conftest.s$ac_file"
6378 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6380 ac_file
=`expr $ac_file + 1`
6382 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6385 if test -z "$ac_sed_cmds"; then
6390 cat >> $CONFIG_STATUS <<EOF
6392 CONFIG_FILES=\${CONFIG_FILES-"src/gtk/setup/substit"}
6394 cat >> $CONFIG_STATUS <<\EOF
6395 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6396 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6398 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6399 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6400 *) ac_file_in
="${ac_file}.in" ;;
6403 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6405 # Remove last slash and all that follows it. Not all systems have dirname.
6406 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6407 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6408 # The file is in a subdirectory.
6409 test ! -d "$ac_dir" && mkdir "$ac_dir"
6410 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6411 # A "../" for each directory in $ac_dir_suffix.
6412 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6414 ac_dir_suffix
= ac_dots
=
6417 case "$ac_given_srcdir" in
6419 if test -z "$ac_dots"; then top_srcdir
=.
6420 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6421 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6423 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6424 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6427 case "$ac_given_INSTALL" in
6428 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6429 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6432 echo creating
"$ac_file"
6434 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6436 *Makefile
*) ac_comsub
="1i\\
6437 # $configure_input" ;;
6441 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6443 s%@configure_input@%$configure_input%g
6444 s%@srcdir@%$srcdir%g
6445 s%@top_srcdir@%$top_srcdir%g
6446 s%@INSTALL@%$INSTALL%g
6447 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6451 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6452 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6454 # ac_d sets the value in "#define NAME VALUE" lines.
6455 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6456 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6459 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6460 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6461 ac_uB
='\([ ]\)%\1#\2define\3'
6464 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6465 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6466 ac_eB
='$%\1#\2define\3'
6470 if test "${CONFIG_HEADERS+set}" != set; then
6472 cat >> $CONFIG_STATUS <<EOF
6473 CONFIG_HEADERS="include/wx/gtk/setup.h:src/gtk/setup/setup.hin"
6475 cat >> $CONFIG_STATUS <<\EOF
6477 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6478 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6480 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6481 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6482 *) ac_file_in
="${ac_file}.in" ;;
6485 echo creating
$ac_file
6487 rm -f conftest.frag conftest.
in conftest.out
6488 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6489 cat $ac_file_inputs > conftest.
in
6493 # Transform confdefs.h into a sed script conftest.vals that substitutes
6494 # the proper values into config.h.in to produce config.h. And first:
6495 # Protect against being on the right side of a sed subst in config.status.
6496 # Protect against being in an unquoted here document in config.status.
6498 cat > conftest.hdr
<<\EOF
6501 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6505 sed -n -f conftest.hdr confdefs.h > conftest.vals
6508 # This sed command replaces #undef with comments. This is necessary, for
6509 # example, in the case of _POSIX_SOURCE, which is predefined and required
6510 # on some systems where configure will not decide to define it.
6511 cat >> conftest.vals <<\EOF
6512 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6515 # Break up conftest.vals because some shells have a limit on
6516 # the size of here documents, and old seds have small limits too.
6521 ac_lines=`grep -c . conftest.vals
`
6522 # grep -c gives empty output for an empty file on some AIX systems.
6523 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6524 # Write a limited-size here document to conftest.frag.
6525 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6526 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6528 sed -f conftest.frag conftest.in > conftest.out
6530 mv conftest.out conftest.in
6532 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6534 mv conftest.tail conftest.vals
6538 cat >> $CONFIG_STATUS <<\EOF
6539 rm -f conftest.frag conftest.h
6540 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6541 cat conftest.in >> conftest.h
6543 if cmp -s $ac_file conftest.h 2>/dev/null; then
6544 echo "$ac_file is unchanged"
6547 # Remove last slash and all that follows it. Not all systems have dirname.
6548 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6549 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6550 # The file is in a subdirectory.
6551 test ! -d "$ac_dir" && mkdir "$ac_dir"
6554 mv conftest.h $ac_file
6559 cat >> $CONFIG_STATUS <<EOF
6562 cat >> $CONFIG_STATUS <<\EOF
6563 src/gtk/setup/general/createall
6566 chmod +x $CONFIG_STATUS
6567 rm -fr confdefs* $ac_clean_files
6568 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6571 mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache