3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
16 --enable-debug Turn on debugging output"
18 --with-sdl Turn on SDL support instead of X11"
20 --with-x use the X Window System"
22 # Initialize some variables set by options.
23 # The variables have the same names as the options, with
24 # dashes changed to underlines.
26 cache_file
=.
/config.cache
35 program_transform_name
=s
,x
,x
,
43 bindir
='${exec_prefix}/bin'
44 sbindir
='${exec_prefix}/sbin'
45 libexecdir
='${exec_prefix}/libexec'
46 datadir
='${prefix}/share'
47 sysconfdir
='${prefix}/etc'
48 sharedstatedir
='${prefix}/com'
49 localstatedir
='${prefix}/var'
50 libdir
='${exec_prefix}/lib'
51 includedir
='${prefix}/include'
52 oldincludedir
='/usr/include'
53 infodir
='${prefix}/info'
54 mandir
='${prefix}/man'
56 # Initialize some other variables.
59 SHELL
=${CONFIG_SHELL-/bin/sh}
60 # Maximum number of lines to put in a shell here document.
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
75 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 # Accept the important Cygnus configure options, so we can diagnose typos.
83 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
85 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
86 bindir
="$ac_optarg" ;;
88 -build |
--build |
--buil |
--bui |
--bu)
90 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
93 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
94 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
96 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
97 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
98 cache_file
="$ac_optarg" ;;
100 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
102 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
104 datadir
="$ac_optarg" ;;
106 -disable-* |
--disable-*)
107 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
115 -enable-* |
--enable-*)
116 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
128 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
129 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
130 |
--exec |
--exe |
--ex)
131 ac_prev
=exec_prefix
;;
132 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
133 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
134 |
--exec=* |
--exe=* |
--ex=*)
135 exec_prefix
="$ac_optarg" ;;
137 -gas |
--gas |
--ga |
--g)
138 # Obsolete; use --with-gas.
141 -help |
--help |
--hel |
--he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153 Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183 Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
196 -host |
--host |
--hos |
--ho)
198 -host=* |
--host=* |
--hos=* |
--ho=*)
201 -includedir |
--includedir |
--includedi |
--included |
--include \
202 |
--includ |
--inclu |
--incl |
--inc)
203 ac_prev
=includedir
;;
204 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
205 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
206 includedir
="$ac_optarg" ;;
208 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
210 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
211 infodir
="$ac_optarg" ;;
213 -libdir |
--libdir |
--libdi |
--libd)
215 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
216 libdir
="$ac_optarg" ;;
218 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
219 |
--libexe |
--libex |
--libe)
220 ac_prev
=libexecdir
;;
221 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
222 |
--libexe=* |
--libex=* |
--libe=*)
223 libexecdir
="$ac_optarg" ;;
225 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
226 |
--localstate |
--localstat |
--localsta |
--localst \
227 |
--locals |
--local |
--loca |
--loc |
--lo)
228 ac_prev
=localstatedir
;;
229 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
230 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
231 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
232 localstatedir
="$ac_optarg" ;;
234 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
236 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
237 mandir
="$ac_optarg" ;;
240 # Obsolete; use --without-fp.
243 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
247 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
248 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
251 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
252 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
253 |
--oldin |
--oldi |
--old |
--ol |
--o)
254 ac_prev
=oldincludedir
;;
255 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
256 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
257 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
258 oldincludedir
="$ac_optarg" ;;
260 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
262 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
263 prefix
="$ac_optarg" ;;
265 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
266 |
--program-pre |
--program-pr |
--program-p)
267 ac_prev
=program_prefix
;;
268 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
269 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
270 program_prefix
="$ac_optarg" ;;
272 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
273 |
--program-suf |
--program-su |
--program-s)
274 ac_prev
=program_suffix
;;
275 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
276 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
277 program_suffix
="$ac_optarg" ;;
279 -program-transform-name |
--program-transform-name \
280 |
--program-transform-nam |
--program-transform-na \
281 |
--program-transform-n |
--program-transform- \
282 |
--program-transform |
--program-transfor \
283 |
--program-transfo |
--program-transf \
284 |
--program-trans |
--program-tran \
285 |
--progr-tra |
--program-tr |
--program-t)
286 ac_prev
=program_transform_name
;;
287 -program-transform-name=* |
--program-transform-name=* \
288 |
--program-transform-nam=* |
--program-transform-na=* \
289 |
--program-transform-n=* |
--program-transform-=* \
290 |
--program-transform=* |
--program-transfor=* \
291 |
--program-transfo=* |
--program-transf=* \
292 |
--program-trans=* |
--program-tran=* \
293 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
294 program_transform_name
="$ac_optarg" ;;
296 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
297 |
-silent |
--silent |
--silen |
--sile |
--sil)
300 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
302 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
304 sbindir
="$ac_optarg" ;;
306 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
307 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
308 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
310 ac_prev
=sharedstatedir
;;
311 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
312 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
313 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
315 sharedstatedir
="$ac_optarg" ;;
317 -site |
--site |
--sit)
319 -site=* |
--site=* |
--sit=*)
322 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
324 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
325 srcdir
="$ac_optarg" ;;
327 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
328 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
329 ac_prev
=sysconfdir
;;
330 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
331 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
332 sysconfdir
="$ac_optarg" ;;
334 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
336 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
337 target
="$ac_optarg" ;;
339 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
342 -version |
--version |
--versio |
--versi |
--vers)
343 echo "configure generated by autoconf version 2.13"
347 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352 ac_package
=`echo $ac_package| sed 's/-/_/g'`
357 eval "with_${ac_package}='$ac_optarg'" ;;
359 -without-* |
--without-*)
360 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package
=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
369 # Obsolete; use --with-x.
372 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
373 |
--x-incl |
--x-inc |
--x-in |
--x-i)
374 ac_prev
=x_includes
;;
375 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
376 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
377 x_includes
="$ac_optarg" ;;
379 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
380 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
381 ac_prev
=x_libraries
;;
382 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
383 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
384 x_libraries
="$ac_optarg" ;;
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
393 if test "x$nonopt" != xNONE
; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402 if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408 # File descriptor usage:
411 # 2 errors and warnings
412 # 3 some systems may open it to /dev/tty
413 # 4 used on the Kubota Titan
414 # 6 checking for... messages and results
415 # 5 compiler messages saved in config.log
416 if test "$silent" = yes; then
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
434 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
435 |
--no-cr |
--no-c) ;;
436 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
437 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
438 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
445 # Only set these to C if already set. These must not be set unconditionally
446 # because not all systems understand e.g. LANG=C (notably SCO).
447 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448 # Non-C LC_CTYPE values break the ctype check.
449 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
450 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
451 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
452 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
455 rm -rf conftest
* confdefs.h
456 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
459 # A filename unique to this package, relative to the directory that
460 # configure is in, which we can look for to find out if srcdir is correct.
461 ac_unique_file
=src
/main.cxx
463 # Find the source files, if location was not specified.
464 if test -z "$srcdir"; then
465 ac_srcdir_defaulted
=yes
466 # Try the directory containing this script, then its parent.
468 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
471 if test ! -r $srcdir/$ac_unique_file; then
475 ac_srcdir_defaulted
=no
477 if test ! -r $srcdir/$ac_unique_file; then
478 if test "$ac_srcdir_defaulted" = yes; then
479 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
484 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486 # Prefer explicitly selected file to automatically selected ones.
487 if test -z "$CONFIG_SITE"; then
488 if test "x$prefix" != xNONE
; then
489 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
491 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
494 for ac_site_file
in $CONFIG_SITE; do
495 if test -r "$ac_site_file"; then
496 echo "loading site script $ac_site_file"
501 if test -r "$cache_file"; then
502 echo "loading cache $cache_file"
505 echo "creating cache $cache_file"
510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
511 ac_cpp
='$CPP $CPPFLAGS'
512 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
513 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
514 cross_compiling
=$ac_cv_prog_cc_cross
518 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
519 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
527 ac_n
= ac_c
='\c' ac_t
=
532 if test -z "${CFLAGS}"; then
533 if test -z "${CCOPTS}"; then
541 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
542 if test -f $ac_dir/install-sh
; then
544 ac_install_sh
="$ac_aux_dir/install-sh -c"
546 elif test -f $ac_dir/install.sh
; then
548 ac_install_sh
="$ac_aux_dir/install.sh -c"
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
555 ac_config_guess
=$ac_aux_dir/config.guess
556 ac_config_sub
=$ac_aux_dir/config.sub
557 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
560 # Make sure we can run config.sub.
561 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
562 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
565 echo $ac_n "checking host system type""... $ac_c" 1>&6
566 echo "configure:567: checking host system type" >&5
569 case "$host_alias" in
573 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
574 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
576 *) host_alias
=$nonopt ;;
580 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
581 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
582 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
583 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
584 echo "$ac_t""$host" 1>&6
586 ARCH
=`echo $host | sed 's/\([^-]*\)-[^-]*-\([^-]*\)/\1-\2/'`
589 # Extract the first word of "gcc", so it can be a program name with args.
590 set dummy gcc
; ac_word
=$2
591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
592 echo "configure:593: checking for $ac_word" >&5
593 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
594 echo $ac_n "(cached) $ac_c" 1>&6
596 if test -n "$CC"; then
597 ac_cv_prog_CC
="$CC" # Let the user override the test.
599 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
601 for ac_dir
in $ac_dummy; do
602 test -z "$ac_dir" && ac_dir
=.
603 if test -f $ac_dir/$ac_word; then
612 if test -n "$CC"; then
613 echo "$ac_t""$CC" 1>&6
615 echo "$ac_t""no" 1>&6
618 if test -z "$CC"; then
619 # Extract the first word of "cc", so it can be a program name with args.
620 set dummy cc
; ac_word
=$2
621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
622 echo "configure:623: checking for $ac_word" >&5
623 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
624 echo $ac_n "(cached) $ac_c" 1>&6
626 if test -n "$CC"; then
627 ac_cv_prog_CC
="$CC" # Let the user override the test.
629 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
632 for ac_dir
in $ac_dummy; do
633 test -z "$ac_dir" && ac_dir
=.
634 if test -f $ac_dir/$ac_word; then
635 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
644 if test $ac_prog_rejected = yes; then
645 # We found a bogon in the path, so make sure we never use it.
646 set dummy
$ac_cv_prog_CC
648 if test $# -gt 0; then
649 # We chose a different compiler from the bogus one.
650 # However, it has the same basename, so the bogon will be chosen
651 # first if we set CC to just the basename; use the full file name.
653 set dummy
"$ac_dir/$ac_word" "$@"
661 if test -n "$CC"; then
662 echo "$ac_t""$CC" 1>&6
664 echo "$ac_t""no" 1>&6
667 if test -z "$CC"; then
670 # Extract the first word of "cl", so it can be a program name with args.
671 set dummy cl
; ac_word
=$2
672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673 echo "configure:674: checking for $ac_word" >&5
674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
677 if test -n "$CC"; then
678 ac_cv_prog_CC
="$CC" # Let the user override the test.
680 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
682 for ac_dir
in $ac_dummy; do
683 test -z "$ac_dir" && ac_dir
=.
684 if test -f $ac_dir/$ac_word; then
693 if test -n "$CC"; then
694 echo "$ac_t""$CC" 1>&6
696 echo "$ac_t""no" 1>&6
701 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
705 echo "configure:706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
709 ac_cpp
='$CPP $CPPFLAGS'
710 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
711 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
712 cross_compiling
=$ac_cv_prog_cc_cross
714 cat > conftest.
$ac_ext << EOF
716 #line 717 "configure"
717 #include "confdefs.h"
721 if { (eval echo configure
:722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
722 ac_cv_prog_cc_works
=yes
723 # If we can't run a trivial program, we are probably using a cross compiler.
724 if (.
/conftest
; exit) 2>/dev
/null
; then
725 ac_cv_prog_cc_cross
=no
727 ac_cv_prog_cc_cross
=yes
730 echo "configure: failed program was:" >&5
731 cat conftest.
$ac_ext >&5
732 ac_cv_prog_cc_works
=no
736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
737 ac_cpp
='$CPP $CPPFLAGS'
738 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
739 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
740 cross_compiling
=$ac_cv_prog_cc_cross
742 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
743 if test $ac_cv_prog_cc_works = no
; then
744 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
746 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
747 echo "configure:748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
748 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
749 cross_compiling
=$ac_cv_prog_cc_cross
751 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
752 echo "configure:753: checking whether we are using GNU C" >&5
753 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
754 echo $ac_n "(cached) $ac_c" 1>&6
756 cat > conftest.c
<<EOF
761 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
768 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
770 if test $ac_cv_prog_gcc = yes; then
776 ac_test_CFLAGS
="${CFLAGS+set}"
777 ac_save_CFLAGS
="$CFLAGS"
779 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
780 echo "configure:781: checking whether ${CC-cc} accepts -g" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 echo 'void f(){}' > conftest.c
785 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
794 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
795 if test "$ac_test_CFLAGS" = set; then
796 CFLAGS
="$ac_save_CFLAGS"
797 elif test $ac_cv_prog_cc_g = yes; then
798 if test "$GCC" = yes; then
804 if test "$GCC" = yes; then
811 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
812 echo "configure:813: checking for POSIXized ISC" >&5
813 if test -d /etc
/conf
/kconfig.d
&&
814 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
816 echo "$ac_t""yes" 1>&6
817 ISC
=yes # If later tests want to check for ISC.
818 cat >> confdefs.h
<<\EOF
819 #define _POSIX_SOURCE 1
822 if test "$GCC" = yes; then
828 echo "$ac_t""no" 1>&6
832 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
833 echo "configure:834: checking how to run the C preprocessor" >&5
834 # On Suns, sometimes $CPP names a directory.
835 if test -n "$CPP" && test -d "$CPP"; then
838 if test -z "$CPP"; then
839 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 # This must be in double quotes, not single quotes, because CPP may get
843 # substituted into the Makefile and "${CC-cc}" will confuse make.
845 # On the NeXT, cc -E runs the code through the compiler's parser,
846 # not just through cpp.
847 cat > conftest.
$ac_ext <<EOF
848 #line 849 "configure"
849 #include "confdefs.h"
853 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
854 { (eval echo configure
:855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
855 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
856 if test -z "$ac_err"; then
860 echo "configure: failed program was:" >&5
861 cat conftest.
$ac_ext >&5
863 CPP
="${CC-cc} -E -traditional-cpp"
864 cat > conftest.
$ac_ext <<EOF
865 #line 866 "configure"
866 #include "confdefs.h"
870 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
871 { (eval echo configure
:872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
872 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
873 if test -z "$ac_err"; then
877 echo "configure: failed program was:" >&5
878 cat conftest.
$ac_ext >&5
880 CPP
="${CC-cc} -nologo -E"
881 cat > conftest.
$ac_ext <<EOF
882 #line 883 "configure"
883 #include "confdefs.h"
887 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
888 { (eval echo configure
:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
889 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
890 if test -z "$ac_err"; then
894 echo "configure: failed program was:" >&5
895 cat conftest.
$ac_ext >&5
904 ac_cv_prog_CPP
="$CPP"
906 CPP
="$ac_cv_prog_CPP"
908 ac_cv_prog_CPP
="$CPP"
910 echo "$ac_t""$CPP" 1>&6
912 echo $ac_n "checking for AIX""... $ac_c" 1>&6
913 echo "configure:914: checking for AIX" >&5
914 cat > conftest.
$ac_ext <<EOF
915 #line 916 "configure"
916 #include "confdefs.h"
922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
923 egrep "yes" >/dev
/null
2>&1; then
925 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
926 #define _ALL_SOURCE 1
931 echo "$ac_t""no" 1>&6
936 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
937 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
938 echo "configure:939: checking for minix/config.h" >&5
939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
942 cat > conftest.
$ac_ext <<EOF
943 #line 944 "configure"
944 #include "confdefs.h"
945 #include <minix/config.h>
947 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
948 { (eval echo configure
:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
949 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
950 if test -z "$ac_err"; then
952 eval "ac_cv_header_$ac_safe=yes"
955 echo "configure: failed program was:" >&5
956 cat conftest.
$ac_ext >&5
958 eval "ac_cv_header_$ac_safe=no"
962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
963 echo "$ac_t""yes" 1>&6
966 echo "$ac_t""no" 1>&6
970 if test "$MINIX" = yes; then
971 cat >> confdefs.h
<<\EOF
972 #define _POSIX_SOURCE 1
975 cat >> confdefs.h
<<\EOF
976 #define _POSIX_1_SOURCE 2
979 cat >> confdefs.h
<<\EOF
985 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
987 # Extract the first word of "$ac_prog", so it can be a program name with args.
988 set dummy
$ac_prog; ac_word
=$2
989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
990 echo "configure:991: checking for $ac_word" >&5
991 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
994 if test -n "$CXX"; then
995 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
997 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
999 for ac_dir
in $ac_dummy; do
1000 test -z "$ac_dir" && ac_dir
=.
1001 if test -f $ac_dir/$ac_word; then
1002 ac_cv_prog_CXX
="$ac_prog"
1009 CXX
="$ac_cv_prog_CXX"
1010 if test -n "$CXX"; then
1011 echo "$ac_t""$CXX" 1>&6
1013 echo "$ac_t""no" 1>&6
1016 test -n "$CXX" && break
1018 test -n "$CXX" || CXX
="gcc"
1021 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1022 echo "configure:1023: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1025 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1026 ac_cpp
='$CXXCPP $CPPFLAGS'
1027 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1028 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1029 cross_compiling
=$ac_cv_prog_cxx_cross
1031 cat > conftest.
$ac_ext << EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1036 int main(){return(0);}
1038 if { (eval echo configure
:1039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1039 ac_cv_prog_cxx_works
=yes
1040 # If we can't run a trivial program, we are probably using a cross compiler.
1041 if (.
/conftest
; exit) 2>/dev
/null
; then
1042 ac_cv_prog_cxx_cross
=no
1044 ac_cv_prog_cxx_cross
=yes
1047 echo "configure: failed program was:" >&5
1048 cat conftest.
$ac_ext >&5
1049 ac_cv_prog_cxx_works
=no
1053 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1054 ac_cpp
='$CPP $CPPFLAGS'
1055 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1056 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1057 cross_compiling
=$ac_cv_prog_cc_cross
1059 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1060 if test $ac_cv_prog_cxx_works = no
; then
1061 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1063 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1064 echo "configure:1065: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1065 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1066 cross_compiling
=$ac_cv_prog_cxx_cross
1068 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1069 echo "configure:1070: checking whether we are using GNU C++" >&5
1070 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1073 cat > conftest.C
<<EOF
1078 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1085 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1087 if test $ac_cv_prog_gxx = yes; then
1093 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1094 ac_save_CXXFLAGS
="$CXXFLAGS"
1096 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1097 echo "configure:1098: checking whether ${CXX-g++} accepts -g" >&5
1098 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1101 echo 'void f(){}' > conftest.cc
1102 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1103 ac_cv_prog_cxx_g
=yes
1111 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1112 if test "$ac_test_CXXFLAGS" = set; then
1113 CXXFLAGS
="$ac_save_CXXFLAGS"
1114 elif test $ac_cv_prog_cxx_g = yes; then
1115 if test "$GXX" = yes; then
1121 if test "$GXX" = yes; then
1128 for ac_declaration
in \
1130 '#include <stdlib.h>' \
1131 'extern "C" void std::exit (int) throw (); using std::exit;' \
1132 'extern "C" void std::exit (int); using std::exit;' \
1133 'extern "C" void exit (int) throw ();' \
1134 'extern "C" void exit (int);' \
1137 cat > conftest.
$ac_ext <<EOF
1138 #line 1139 "configure"
1139 #include "confdefs.h"
1146 if { (eval echo configure
:1147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1149 echo "configure: failed program was:" >&5
1150 cat conftest.
$ac_ext >&5
1155 cat > conftest.
$ac_ext <<EOF
1156 #line 1157 "configure"
1157 #include "confdefs.h"
1163 if { (eval echo configure
:1164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1167 echo "configure: failed program was:" >&5
1168 cat conftest.
$ac_ext >&5
1172 if test -n "$ac_declaration"; then
1173 echo '#ifdef __cplusplus' >>confdefs.h
1174 echo $ac_declaration >>confdefs.h
1175 echo '#endif' >>confdefs.h
1179 # Find a good install program. We prefer a C program (faster),
1180 # so one script is as good as another. But avoid the broken or
1181 # incompatible versions:
1182 # SysV /etc/install, /usr/sbin/install
1183 # SunOS /usr/etc/install
1184 # IRIX /sbin/install
1186 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1187 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1188 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1189 # ./install, which can be erroneously created by make from ./install.sh.
1190 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1191 echo "configure:1192: checking for a BSD compatible install" >&5
1192 if test -z "$INSTALL"; then
1193 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1197 for ac_dir
in $PATH; do
1198 # Account for people who put trailing slashes in PATH elements.
1200 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1202 # OSF1 and SCO ODT 3.0 have their own names for install.
1203 # Don't use installbsd from OSF since it installs stuff as root
1205 for ac_prog
in ginstall scoinst
install; do
1206 if test -f $ac_dir/$ac_prog; then
1207 if test $ac_prog = install &&
1208 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1209 # AIX install. It has an incompatible calling convention.
1212 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1223 if test "${ac_cv_path_install+set}" = set; then
1224 INSTALL
="$ac_cv_path_install"
1226 # As a last resort, use the slow shell script. We don't cache a
1227 # path for INSTALL within a source directory, because that will
1228 # break other packages using the cache if that directory is
1229 # removed, or if the path is relative.
1230 INSTALL
="$ac_install_sh"
1233 echo "$ac_t""$INSTALL" 1>&6
1235 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1236 # It thinks the first close brace ends the variable substitution.
1237 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1239 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1241 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1243 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1244 echo "configure:1245: checking whether ln -s works" >&5
1245 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1249 if ln -s X conftestdata
2>/dev
/null
1252 ac_cv_prog_LN_S
="ln -s"
1257 LN_S
="$ac_cv_prog_LN_S"
1258 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1259 echo "$ac_t""yes" 1>&6
1261 echo "$ac_t""no" 1>&6
1264 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1265 echo "configure:1266: checking whether ${MAKE-make} sets \${MAKE}" >&5
1266 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1267 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1270 cat > conftestmake
<<\EOF
1272 @
echo 'ac_maketemp="${MAKE}"'
1274 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1275 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1276 if test -n "$ac_maketemp"; then
1277 eval ac_cv_prog_make_
${ac_make}_set
=yes
1279 eval ac_cv_prog_make_
${ac_make}_set
=no
1283 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1284 echo "$ac_t""yes" 1>&6
1287 echo "$ac_t""no" 1>&6
1288 SET_MAKE
="MAKE=${MAKE-make}"
1291 # Extract the first word of "ranlib", so it can be a program name with args.
1292 set dummy ranlib
; ac_word
=$2
1293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1294 echo "configure:1295: checking for $ac_word" >&5
1295 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 if test -n "$RANLIB"; then
1299 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1301 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1303 for ac_dir
in $ac_dummy; do
1304 test -z "$ac_dir" && ac_dir
=.
1305 if test -f $ac_dir/$ac_word; then
1306 ac_cv_prog_RANLIB
="ranlib"
1311 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1314 RANLIB
="$ac_cv_prog_RANLIB"
1315 if test -n "$RANLIB"; then
1316 echo "$ac_t""$RANLIB" 1>&6
1318 echo "$ac_t""no" 1>&6
1321 # Extract the first word of "rm", so it can be a program name with args.
1322 set dummy
rm; ac_word
=$2
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324 echo "configure:1325: checking for $ac_word" >&5
1325 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1330 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
1333 ac_cv_path_RM
="$RM" # Let the user override the test with a dos path.
1336 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1338 for ac_dir
in $ac_dummy; do
1339 test -z "$ac_dir" && ac_dir
=.
1340 if test -f $ac_dir/$ac_word; then
1341 ac_cv_path_RM
="$ac_dir/$ac_word"
1346 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
1351 if test -n "$RM"; then
1352 echo "$ac_t""$RM" 1>&6
1354 echo "$ac_t""no" 1>&6
1357 # Extract the first word of "cp", so it can be a program name with args.
1358 set dummy
cp; ac_word
=$2
1359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_word" >&5
1361 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1366 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
1369 ac_cv_path_CP
="$CP" # Let the user override the test with a dos path.
1372 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1374 for ac_dir
in $ac_dummy; do
1375 test -z "$ac_dir" && ac_dir
=.
1376 if test -f $ac_dir/$ac_word; then
1377 ac_cv_path_CP
="$ac_dir/$ac_word"
1382 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
1387 if test -n "$CP"; then
1388 echo "$ac_t""$CP" 1>&6
1390 echo "$ac_t""no" 1>&6
1405 echo $ac_n "checking "SCO-Unix. See
if we need
-belf"""... $ac_c" 1>&6
1406 echo "configure:1407: checking "SCO-Unix. See
if we need
-belf"" >&5
1407 old_cflags
="$CFLAGS"
1408 CFLAGS
="$CFLAGS -belf"
1409 cat > conftest.
$ac_ext <<EOF
1410 #line 1411 "configure"
1411 #include "confdefs.h"
1419 if { (eval echo configure
:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1421 CMFLAGS
="$CMFLAGS -belf"
1422 echo "$ac_t""yes" 1>&6
1424 echo "configure: failed program was:" >&5
1425 cat conftest.
$ac_ext >&5
1427 echo "$ac_t""no" 1>&6
1428 CFLAGS
="$old_cflags"
1436 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1438 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1439 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1440 echo "configure:1441: checking for $ac_hdr that defines DIR" >&5
1441 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1444 cat > conftest.
$ac_ext <<EOF
1445 #line 1446 "configure"
1446 #include "confdefs.h"
1447 #include <sys/types.h>
1453 if { (eval echo configure
:1454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1455 eval "ac_cv_header_dirent_$ac_safe=yes"
1457 echo "configure: failed program was:" >&5
1458 cat conftest.
$ac_ext >&5
1460 eval "ac_cv_header_dirent_$ac_safe=no"
1464 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1465 echo "$ac_t""yes" 1>&6
1466 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1467 cat >> confdefs.h
<<EOF
1468 #define $ac_tr_hdr 1
1470 ac_header_dirent
=$ac_hdr; break
1472 echo "$ac_t""no" 1>&6
1475 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1476 if test $ac_header_dirent = dirent.h
; then
1477 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1478 echo "configure:1479: checking for opendir in -ldir" >&5
1479 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1483 ac_save_LIBS
="$LIBS"
1485 cat > conftest.
$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1488 /* Override any gcc2 internal prototype to avoid an error. */
1489 /* We use char because int might match the return type of a gcc2
1490 builtin and then its argument prototype would still apply. */
1497 if { (eval echo configure
:1498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1499 eval "ac_cv_lib_$ac_lib_var=yes"
1501 echo "configure: failed program was:" >&5
1502 cat conftest.
$ac_ext >&5
1504 eval "ac_cv_lib_$ac_lib_var=no"
1507 LIBS
="$ac_save_LIBS"
1510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1511 echo "$ac_t""yes" 1>&6
1514 echo "$ac_t""no" 1>&6
1518 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1519 echo "configure:1520: checking for opendir in -lx" >&5
1520 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1521 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1524 ac_save_LIBS
="$LIBS"
1526 cat > conftest.
$ac_ext <<EOF
1527 #line 1528 "configure"
1528 #include "confdefs.h"
1529 /* Override any gcc2 internal prototype to avoid an error. */
1530 /* We use char because int might match the return type of a gcc2
1531 builtin and then its argument prototype would still apply. */
1538 if { (eval echo configure
:1539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1540 eval "ac_cv_lib_$ac_lib_var=yes"
1542 echo "configure: failed program was:" >&5
1543 cat conftest.
$ac_ext >&5
1545 eval "ac_cv_lib_$ac_lib_var=no"
1548 LIBS
="$ac_save_LIBS"
1551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1552 echo "$ac_t""yes" 1>&6
1555 echo "$ac_t""no" 1>&6
1560 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1561 echo "configure:1562: checking for ANSI C header files" >&5
1562 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1565 cat > conftest.
$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1573 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1574 { (eval echo configure
:1575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1575 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1576 if test -z "$ac_err"; then
1578 ac_cv_header_stdc
=yes
1581 echo "configure: failed program was:" >&5
1582 cat conftest.
$ac_ext >&5
1584 ac_cv_header_stdc
=no
1588 if test $ac_cv_header_stdc = yes; then
1589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1590 cat > conftest.
$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1596 egrep "memchr" >/dev
/null
2>&1; then
1600 ac_cv_header_stdc
=no
1606 if test $ac_cv_header_stdc = yes; then
1607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1608 cat > conftest.
$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1614 egrep "free" >/dev
/null
2>&1; then
1618 ac_cv_header_stdc
=no
1624 if test $ac_cv_header_stdc = yes; then
1625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1626 if test "$cross_compiling" = yes; then
1629 cat > conftest.
$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1633 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1634 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1636 int main () { int i; for (i = 0; i < 256; i++)
1637 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1641 if { (eval echo configure
:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1645 echo "configure: failed program was:" >&5
1646 cat conftest.
$ac_ext >&5
1648 ac_cv_header_stdc
=no
1656 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1657 if test $ac_cv_header_stdc = yes; then
1658 cat >> confdefs.h
<<\EOF
1659 #define STDC_HEADERS 1
1664 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1665 echo "configure:1666: checking for sys/wait.h that is POSIX.1 compatible" >&5
1666 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 cat > conftest.
$ac_ext <<EOF
1670 #line 1671 "configure"
1671 #include "confdefs.h"
1672 #include <sys/types.h>
1673 #include <sys/wait.h>
1675 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1678 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1683 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1686 if { (eval echo configure
:1687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1688 ac_cv_header_sys_wait_h
=yes
1690 echo "configure: failed program was:" >&5
1691 cat conftest.
$ac_ext >&5
1693 ac_cv_header_sys_wait_h
=no
1698 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1699 if test $ac_cv_header_sys_wait_h = yes; then
1700 cat >> confdefs.h
<<\EOF
1701 #define HAVE_SYS_WAIT_H 1
1706 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1707 echo "configure:1708: checking whether time.h and sys/time.h may both be included" >&5
1708 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1711 cat > conftest.
$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1714 #include <sys/types.h>
1715 #include <sys/time.h>
1721 if { (eval echo configure
:1722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1723 ac_cv_header_time
=yes
1725 echo "configure: failed program was:" >&5
1726 cat conftest.
$ac_ext >&5
1728 ac_cv_header_time
=no
1733 echo "$ac_t""$ac_cv_header_time" 1>&6
1734 if test $ac_cv_header_time = yes; then
1735 cat >> confdefs.h
<<\EOF
1736 #define TIME_WITH_SYS_TIME 1
1741 for ac_hdr
in fcntl.h \
1756 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1758 echo "configure:1759: checking for $ac_hdr" >&5
1759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1762 cat > conftest.
$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1767 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1768 { (eval echo configure
:1769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1769 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1770 if test -z "$ac_err"; then
1772 eval "ac_cv_header_$ac_safe=yes"
1775 echo "configure: failed program was:" >&5
1776 cat conftest.
$ac_ext >&5
1778 eval "ac_cv_header_$ac_safe=no"
1782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1783 echo "$ac_t""yes" 1>&6
1784 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1785 cat >> confdefs.h
<<EOF
1786 #define $ac_tr_hdr 1
1790 echo "$ac_t""no" 1>&6
1796 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
1797 echo "configure:1798: checking for pow in -lm" >&5
1798 ac_lib_var
=`echo m'_'pow | sed 'y%./+-%__p_%'`
1799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1802 ac_save_LIBS
="$LIBS"
1804 cat > conftest.
$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 /* Override any gcc2 internal prototype to avoid an error. */
1808 /* We use char because int might match the return type of a gcc2
1809 builtin and then its argument prototype would still apply. */
1816 if { (eval echo configure
:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1818 eval "ac_cv_lib_$ac_lib_var=yes"
1820 echo "configure: failed program was:" >&5
1821 cat conftest.
$ac_ext >&5
1823 eval "ac_cv_lib_$ac_lib_var=no"
1826 LIBS
="$ac_save_LIBS"
1829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1830 echo "$ac_t""yes" 1>&6
1831 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1832 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1833 cat >> confdefs.h
<<EOF
1834 #define $ac_tr_lib 1
1840 echo "$ac_t""no" 1>&6
1843 for ac_func
in setlocale
1845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1846 echo "configure:1847: checking for $ac_func" >&5
1847 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 cat > conftest.
$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $ac_func(); below. */
1856 /* Override any gcc2 internal prototype to avoid an error. */
1857 /* We use char because int might match the return type of a gcc2
1858 builtin and then its argument prototype would still apply. */
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1874 if { (eval echo configure
:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1876 eval "ac_cv_func_$ac_func=yes"
1878 echo "configure: failed program was:" >&5
1879 cat conftest.
$ac_ext >&5
1881 eval "ac_cv_func_$ac_func=no"
1886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1887 echo "$ac_t""yes" 1>&6
1888 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1889 cat >> confdefs.h
<<EOF
1890 #define $ac_tr_func 1
1894 echo "$ac_t""no" 1>&6
1900 # Check whether --enable-debug or --disable-debug was given.
1901 if test "${enable_debug+set}" = set; then
1902 enableval
="$enable_debug"
1909 if test "$xncdebug" = "yes"; then
1910 DEB
="-g -DDEBUG_XNC"
1916 # Check whether --with-sdl or --without-sdl was given.
1917 if test "${with_sdl+set}" = set; then
1925 if test "x$sdl_support" = "xyes"; then
1926 echo "SDL is ENABLED *******************"
1927 IFACEOBJS
='$(SDLOBJS)'
1928 IFACELIBS
='`sdl-config --libs` -lSDL_image'
1929 IFACEINC
='`sdl-config --cflags` -I./sdl'
1931 echo "X11 is ENABLED *******************"
1932 # If we find X, set shell vars x_includes and x_libraries to the
1933 # paths, otherwise set no_x=yes.
1934 # Uses ac_ vars as temps to allow command line to override cache and checks.
1935 # --without-x overrides everything else, but does not touch the cache.
1936 echo $ac_n "checking for X""... $ac_c" 1>&6
1937 echo "configure:1938: checking for X" >&5
1939 # Check whether --with-x or --without-x was given.
1940 if test "${with_x+set}" = set; then
1945 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1946 if test "x$with_x" = xno
; then
1947 # The user explicitly disabled X.
1950 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1951 # Both variables are already set.
1954 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1957 # One or both of the vars are not set, and there is no cached value.
1958 ac_x_includes
=NO ac_x_libraries
=NO
1960 if mkdir conftestdir
; then
1962 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1963 cat > Imakefile
<<'EOF'
1965 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1967 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1968 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1969 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1970 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1971 for ac_extension
in a so sl
; do
1972 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1973 test -f $ac_im_libdir/libX11.
$ac_extension; then
1974 ac_im_usrlibdir
=$ac_im_libdir; break
1977 # Screen out bogus values from the imake configuration. They are
1978 # bogus both because they are the default anyway, and because
1979 # using them would break gcc on systems where it needs fixed includes.
1980 case "$ac_im_incroot" in
1982 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1984 case "$ac_im_usrlibdir" in
1986 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1993 if test "$ac_x_includes" = NO
; then
1994 # Guess where to find include files, by looking for this one X11 .h file.
1995 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1997 # First, try using that file with no special directory specified.
1998 cat > conftest.
$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2001 #include <$x_direct_test_include>
2003 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2004 { (eval echo configure
:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2005 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2006 if test -z "$ac_err"; then
2008 # We can compile using X headers with no special include directory.
2012 echo "configure: failed program was:" >&5
2013 cat conftest.
$ac_ext >&5
2015 # Look for the header file in a standard set of common directories.
2016 # Check X11 before X11Rn because it is often a symlink to the current release.
2019 /usr
/X11R
6/include \
2020 /usr
/X11R
5/include \
2021 /usr
/X11R
4/include \
2024 /usr
/include
/X11R6 \
2025 /usr
/include
/X11R5 \
2026 /usr
/include
/X11R4 \
2028 /usr
/local
/X11
/include \
2029 /usr
/local
/X11R
6/include \
2030 /usr
/local
/X11R
5/include \
2031 /usr
/local
/X11R
4/include \
2033 /usr
/local
/include
/X11 \
2034 /usr
/local
/include
/X11R6 \
2035 /usr
/local
/include
/X11R5 \
2036 /usr
/local
/include
/X11R4 \
2040 /usr
/XFree86
/include
/X11 \
2043 /usr
/local
/include \
2044 /usr
/unsupported
/include \
2045 /usr
/athena
/include \
2046 /usr
/local
/x11r
5/include \
2047 /usr
/lpp
/Xamples
/include \
2049 /usr
/openwin
/include \
2050 /usr
/openwin
/share
/include \
2053 if test -r "$ac_dir/$x_direct_test_include"; then
2054 ac_x_includes
=$ac_dir
2060 fi # $ac_x_includes = NO
2062 if test "$ac_x_libraries" = NO
; then
2063 # Check for the libraries.
2065 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
2066 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
2068 # See if we find them without any special options.
2069 # Don't add to $LIBS permanently.
2070 ac_save_LIBS
="$LIBS"
2071 LIBS
="-l$x_direct_test_library $LIBS"
2072 cat > conftest.
$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2077 ${x_direct_test_function}()
2080 if { (eval echo configure
:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2082 LIBS
="$ac_save_LIBS"
2083 # We can link X programs with no special library path.
2086 echo "configure: failed program was:" >&5
2087 cat conftest.
$ac_ext >&5
2089 LIBS
="$ac_save_LIBS"
2090 # First see if replacing the include by lib works.
2091 # Check X11 before X11Rn because it is often a symlink to the current release.
2092 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
2103 /usr
/local
/X11
/lib \
2104 /usr
/local
/X11R
6/lib \
2105 /usr
/local
/X11R
5/lib \
2106 /usr
/local
/X11R
4/lib \
2108 /usr
/local
/lib
/X11 \
2109 /usr
/local
/lib
/X11R6 \
2110 /usr
/local
/lib
/X11R5 \
2111 /usr
/local
/lib
/X11R4 \
2115 /usr
/XFree86
/lib
/X11 \
2119 /usr
/unsupported
/lib \
2121 /usr
/local
/x11r
5/lib \
2122 /usr
/lpp
/Xamples
/lib \
2126 /usr
/openwin
/share
/lib \
2129 for ac_extension
in a so sl
; do
2130 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
2131 ac_x_libraries
=$ac_dir
2138 fi # $ac_x_libraries = NO
2140 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
2141 # Didn't find X anywhere. Cache the known absence of X.
2142 ac_cv_have_x
="have_x=no"
2144 # Record where we found X for the cache.
2145 ac_cv_have_x
="have_x=yes \
2146 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2150 eval "$ac_cv_have_x"
2153 if test "$have_x" != yes; then
2154 echo "$ac_t""$have_x" 1>&6
2157 # If each of the values was on the command line, it overrides each guess.
2158 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
2159 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
2160 # Update the cache value to reflect the command line values.
2161 ac_cv_have_x
="have_x=yes \
2162 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2163 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2166 if test "$no_x" = yes; then
2167 # Not all programs may use this symbol, but it does not hurt to define it.
2168 cat >> confdefs.h
<<\EOF
2169 #define X_DISPLAY_MISSING 1
2172 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
2174 if test -n "$x_includes"; then
2175 X_CFLAGS
="$X_CFLAGS -I$x_includes"
2178 # It would also be nice to do this for all -L options, not just this one.
2179 if test -n "$x_libraries"; then
2180 X_LIBS
="$X_LIBS -L$x_libraries"
2181 # For Solaris; some versions of Sun CC require a space after -R and
2182 # others require no space. Words are not sufficient . . . .
2183 case "`(uname -sr) 2>/dev/null`" in
2185 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2186 echo "configure:2187: checking whether -R must be followed by a space" >&5
2187 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
2188 cat > conftest.
$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2196 if { (eval echo configure
:2197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2200 echo "configure: failed program was:" >&5
2201 cat conftest.
$ac_ext >&5
2206 if test $ac_R_nospace = yes; then
2207 echo "$ac_t""no" 1>&6
2208 X_LIBS
="$X_LIBS -R$x_libraries"
2210 LIBS
="$ac_xsave_LIBS -R $x_libraries"
2211 cat > conftest.
$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2219 if { (eval echo configure
:2220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2223 echo "configure: failed program was:" >&5
2224 cat conftest.
$ac_ext >&5
2229 if test $ac_R_space = yes; then
2230 echo "$ac_t""yes" 1>&6
2231 X_LIBS
="$X_LIBS -R $x_libraries"
2233 echo "$ac_t""neither works" 1>&6
2236 LIBS
="$ac_xsave_LIBS"
2240 # Check for system-dependent libraries X programs must link with.
2241 # Do this before checking for the system-independent R6 libraries
2242 # (-lICE), since we may need -lsocket or whatever for X linking.
2244 if test "$ISC" = yes; then
2245 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
2247 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2248 # libraries were built with DECnet support. And karl@cs.umb.edu says
2249 # the Alpha needs dnet_stub (dnet does not exist).
2250 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2251 echo "configure:2252: checking for dnet_ntoa in -ldnet" >&5
2252 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 ac_save_LIBS
="$LIBS"
2258 cat > conftest.
$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2261 /* Override any gcc2 internal prototype to avoid an error. */
2262 /* We use char because int might match the return type of a gcc2
2263 builtin and then its argument prototype would still apply. */
2270 if { (eval echo configure
:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2272 eval "ac_cv_lib_$ac_lib_var=yes"
2274 echo "configure: failed program was:" >&5
2275 cat conftest.
$ac_ext >&5
2277 eval "ac_cv_lib_$ac_lib_var=no"
2280 LIBS
="$ac_save_LIBS"
2283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2284 echo "$ac_t""yes" 1>&6
2285 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
2287 echo "$ac_t""no" 1>&6
2290 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
2291 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2292 echo "configure:2293: checking for dnet_ntoa in -ldnet_stub" >&5
2293 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 ac_save_LIBS
="$LIBS"
2298 LIBS
="-ldnet_stub $LIBS"
2299 cat > conftest.
$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2302 /* Override any gcc2 internal prototype to avoid an error. */
2303 /* We use char because int might match the return type of a gcc2
2304 builtin and then its argument prototype would still apply. */
2311 if { (eval echo configure
:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2313 eval "ac_cv_lib_$ac_lib_var=yes"
2315 echo "configure: failed program was:" >&5
2316 cat conftest.
$ac_ext >&5
2318 eval "ac_cv_lib_$ac_lib_var=no"
2321 LIBS
="$ac_save_LIBS"
2324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2326 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
2328 echo "$ac_t""no" 1>&6
2333 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2334 # to get the SysV transport functions.
2335 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2337 # The nsl library prevents programs from opening the X display
2338 # on Irix 5.2, according to dickey@clark.net.
2339 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2340 echo "configure:2341: checking for gethostbyname" >&5
2341 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 cat > conftest.
$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2347 /* System header to define __stub macros and hopefully few prototypes,
2348 which can conflict with char gethostbyname(); below. */
2350 /* Override any gcc2 internal prototype to avoid an error. */
2351 /* We use char because int might match the return type of a gcc2
2352 builtin and then its argument prototype would still apply. */
2353 char gethostbyname();
2357 /* The GNU C library defines this for functions which it implements
2358 to always fail with ENOSYS. Some functions are actually named
2359 something starting with __ and the normal name is an alias. */
2360 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2368 if { (eval echo configure
:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2370 eval "ac_cv_func_gethostbyname=yes"
2372 echo "configure: failed program was:" >&5
2373 cat conftest.
$ac_ext >&5
2375 eval "ac_cv_func_gethostbyname=no"
2380 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2384 echo "$ac_t""no" 1>&6
2387 if test $ac_cv_func_gethostbyname = no
; then
2388 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2389 echo "configure:2390: checking for gethostbyname in -lnsl" >&5
2390 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2394 ac_save_LIBS
="$LIBS"
2396 cat > conftest.
$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 /* Override any gcc2 internal prototype to avoid an error. */
2400 /* We use char because int might match the return type of a gcc2
2401 builtin and then its argument prototype would still apply. */
2402 char gethostbyname();
2408 if { (eval echo configure
:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2410 eval "ac_cv_lib_$ac_lib_var=yes"
2412 echo "configure: failed program was:" >&5
2413 cat conftest.
$ac_ext >&5
2415 eval "ac_cv_lib_$ac_lib_var=no"
2418 LIBS
="$ac_save_LIBS"
2421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2422 echo "$ac_t""yes" 1>&6
2423 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2425 echo "$ac_t""no" 1>&6
2430 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2431 # socket/setsockopt and other routines are undefined under SCO ODT
2432 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2433 # on later versions), says simon@lia.di.epfl.ch: it contains
2434 # gethostby* variants that don't use the nameserver (or something).
2435 # -lsocket must be given before -lnsl if both are needed.
2436 # We assume that if connect needs -lnsl, so does gethostbyname.
2437 echo $ac_n "checking for connect""... $ac_c" 1>&6
2438 echo "configure:2439: checking for connect" >&5
2439 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 cat > conftest.
$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2445 /* System header to define __stub macros and hopefully few prototypes,
2446 which can conflict with char connect(); below. */
2448 /* Override any gcc2 internal prototype to avoid an error. */
2449 /* We use char because int might match the return type of a gcc2
2450 builtin and then its argument prototype would still apply. */
2455 /* The GNU C library defines this for functions which it implements
2456 to always fail with ENOSYS. Some functions are actually named
2457 something starting with __ and the normal name is an alias. */
2458 #if defined (__stub_connect) || defined (__stub___connect)
2466 if { (eval echo configure
:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2468 eval "ac_cv_func_connect=yes"
2470 echo "configure: failed program was:" >&5
2471 cat conftest.
$ac_ext >&5
2473 eval "ac_cv_func_connect=no"
2478 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2479 echo "$ac_t""yes" 1>&6
2482 echo "$ac_t""no" 1>&6
2485 if test $ac_cv_func_connect = no
; then
2486 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2487 echo "configure:2488: checking for connect in -lsocket" >&5
2488 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2492 ac_save_LIBS
="$LIBS"
2493 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
2494 cat > conftest.
$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2497 /* Override any gcc2 internal prototype to avoid an error. */
2498 /* We use char because int might match the return type of a gcc2
2499 builtin and then its argument prototype would still apply. */
2506 if { (eval echo configure
:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2508 eval "ac_cv_lib_$ac_lib_var=yes"
2510 echo "configure: failed program was:" >&5
2511 cat conftest.
$ac_ext >&5
2513 eval "ac_cv_lib_$ac_lib_var=no"
2516 LIBS
="$ac_save_LIBS"
2519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2520 echo "$ac_t""yes" 1>&6
2521 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2523 echo "$ac_t""no" 1>&6
2528 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2529 echo $ac_n "checking for remove""... $ac_c" 1>&6
2530 echo "configure:2531: checking for remove" >&5
2531 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2534 cat > conftest.
$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537 /* System header to define __stub macros and hopefully few prototypes,
2538 which can conflict with char remove(); below. */
2540 /* Override any gcc2 internal prototype to avoid an error. */
2541 /* We use char because int might match the return type of a gcc2
2542 builtin and then its argument prototype would still apply. */
2547 /* The GNU C library defines this for functions which it implements
2548 to always fail with ENOSYS. Some functions are actually named
2549 something starting with __ and the normal name is an alias. */
2550 #if defined (__stub_remove) || defined (__stub___remove)
2558 if { (eval echo configure
:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2560 eval "ac_cv_func_remove=yes"
2562 echo "configure: failed program was:" >&5
2563 cat conftest.
$ac_ext >&5
2565 eval "ac_cv_func_remove=no"
2570 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2571 echo "$ac_t""yes" 1>&6
2574 echo "$ac_t""no" 1>&6
2577 if test $ac_cv_func_remove = no
; then
2578 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2579 echo "configure:2580: checking for remove in -lposix" >&5
2580 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 ac_save_LIBS
="$LIBS"
2585 LIBS
="-lposix $LIBS"
2586 cat > conftest.
$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2589 /* Override any gcc2 internal prototype to avoid an error. */
2590 /* We use char because int might match the return type of a gcc2
2591 builtin and then its argument prototype would still apply. */
2598 if { (eval echo configure
:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2600 eval "ac_cv_lib_$ac_lib_var=yes"
2602 echo "configure: failed program was:" >&5
2603 cat conftest.
$ac_ext >&5
2605 eval "ac_cv_lib_$ac_lib_var=no"
2608 LIBS
="$ac_save_LIBS"
2611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2612 echo "$ac_t""yes" 1>&6
2613 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2615 echo "$ac_t""no" 1>&6
2620 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2621 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2622 echo "configure:2623: checking for shmat" >&5
2623 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2626 cat > conftest.
$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2629 /* System header to define __stub macros and hopefully few prototypes,
2630 which can conflict with char shmat(); below. */
2632 /* Override any gcc2 internal prototype to avoid an error. */
2633 /* We use char because int might match the return type of a gcc2
2634 builtin and then its argument prototype would still apply. */
2639 /* The GNU C library defines this for functions which it implements
2640 to always fail with ENOSYS. Some functions are actually named
2641 something starting with __ and the normal name is an alias. */
2642 #if defined (__stub_shmat) || defined (__stub___shmat)
2650 if { (eval echo configure
:2651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2652 eval "ac_cv_func_shmat=yes"
2654 echo "configure: failed program was:" >&5
2655 cat conftest.
$ac_ext >&5
2657 eval "ac_cv_func_shmat=no"
2662 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2663 echo "$ac_t""yes" 1>&6
2666 echo "$ac_t""no" 1>&6
2669 if test $ac_cv_func_shmat = no
; then
2670 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2671 echo "configure:2672: checking for shmat in -lipc" >&5
2672 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2676 ac_save_LIBS
="$LIBS"
2678 cat > conftest.
$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2681 /* Override any gcc2 internal prototype to avoid an error. */
2682 /* We use char because int might match the return type of a gcc2
2683 builtin and then its argument prototype would still apply. */
2690 if { (eval echo configure
:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2692 eval "ac_cv_lib_$ac_lib_var=yes"
2694 echo "configure: failed program was:" >&5
2695 cat conftest.
$ac_ext >&5
2697 eval "ac_cv_lib_$ac_lib_var=no"
2700 LIBS
="$ac_save_LIBS"
2703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2704 echo "$ac_t""yes" 1>&6
2705 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2707 echo "$ac_t""no" 1>&6
2713 # Check for libraries that X11R6 Xt/Xaw programs need.
2714 ac_save_LDFLAGS
="$LDFLAGS"
2715 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2716 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2717 # check for ICE first), but we must link in the order -lSM -lICE or
2718 # we get undefined symbols. So assume we have SM if we have ICE.
2719 # These have to be linked with before -lX11, unlike the other
2720 # libraries we check for below, so use a different variable.
2721 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2722 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2723 echo "configure:2724: checking for IceConnectionNumber in -lICE" >&5
2724 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 ac_save_LIBS
="$LIBS"
2729 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
2730 cat > conftest.
$ac_ext <<EOF
2731 #line 2732 "configure"
2732 #include "confdefs.h"
2733 /* Override any gcc2 internal prototype to avoid an error. */
2734 /* We use char because int might match the return type of a gcc2
2735 builtin and then its argument prototype would still apply. */
2736 char IceConnectionNumber();
2739 IceConnectionNumber()
2742 if { (eval echo configure
:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2744 eval "ac_cv_lib_$ac_lib_var=yes"
2746 echo "configure: failed program was:" >&5
2747 cat conftest.
$ac_ext >&5
2749 eval "ac_cv_lib_$ac_lib_var=no"
2752 LIBS
="$ac_save_LIBS"
2755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2756 echo "$ac_t""yes" 1>&6
2757 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2759 echo "$ac_t""no" 1>&6
2762 LDFLAGS
="$ac_save_LDFLAGS"
2766 IFACEOBJS
='$(X11OBJS) $(X11IMAGE)'
2767 IFACELIBS
='$(XLIBS)'
2768 IFACEINC
='$(XINC) -I./x11'
2775 echo $ac_n "checking for working const""... $ac_c" 1>&6
2776 echo "configure:2777: checking for working const" >&5
2777 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2780 cat > conftest.
$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2786 /* Ultrix mips cc rejects this. */
2787 typedef int charset[2]; const charset x;
2788 /* SunOS 4.1.1 cc rejects this. */
2789 char const *const *ccp;
2791 /* NEC SVR4.0.2 mips cc rejects this. */
2792 struct point {int x, y;};
2793 static struct point const zero = {0,0};
2794 /* AIX XL C 1.02.0.0 rejects this.
2795 It does not let you subtract one const X* pointer from another in an arm
2796 of an if-expression whose if-part is not a constant expression */
2797 const char *g = "string";
2798 ccp = &g + (g ? g-g : 0);
2799 /* HPUX 7.0 cc rejects these. */
2802 ccp = (char const *const *) p;
2803 { /* SCO 3.2v4 cc rejects this. */
2805 char const *s = 0 ? (char *) 0 : (char const *) 0;
2809 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2811 const int *foo = &x[0];
2814 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2815 typedef const int *iptr;
2819 { /* AIX XL C 1.02.0.0 rejects this saying
2820 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2821 struct s { int j; const int *ap[3]; };
2822 struct s *b; b->j = 5;
2824 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2830 if { (eval echo configure
:2831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2834 echo "configure: failed program was:" >&5
2835 cat conftest.
$ac_ext >&5
2842 echo "$ac_t""$ac_cv_c_const" 1>&6
2843 if test $ac_cv_c_const = no
; then
2844 cat >> confdefs.h
<<\EOF
2850 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2851 echo "configure:2852: checking for uid_t in sys/types.h" >&5
2852 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2855 cat > conftest.
$ac_ext <<EOF
2856 #line 2857 "configure"
2857 #include "confdefs.h"
2858 #include <sys/types.h>
2860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2861 egrep "uid_t" >/dev
/null
2>&1; then
2863 ac_cv_type_uid_t
=yes
2872 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2873 if test $ac_cv_type_uid_t = no
; then
2874 cat >> confdefs.h
<<\EOF
2878 cat >> confdefs.h
<<\EOF
2884 echo $ac_n "checking for inline""... $ac_c" 1>&6
2885 echo "configure:2886: checking for inline" >&5
2886 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2890 for ac_kw
in inline __inline__ __inline
; do
2891 cat > conftest.
$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2899 if { (eval echo configure
:2900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2901 ac_cv_c_inline
=$ac_kw; break
2903 echo "configure: failed program was:" >&5
2904 cat conftest.
$ac_ext >&5
2911 echo "$ac_t""$ac_cv_c_inline" 1>&6
2912 case "$ac_cv_c_inline" in
2914 no
) cat >> confdefs.h
<<\EOF
2918 *) cat >> confdefs.h
<<EOF
2919 #define inline $ac_cv_c_inline
2924 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2925 echo "configure:2926: checking for mode_t" >&5
2926 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2929 cat > conftest.
$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 #include <sys/types.h>
2938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2939 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2941 ac_cv_type_mode_t
=yes
2944 ac_cv_type_mode_t
=no
2949 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2950 if test $ac_cv_type_mode_t = no
; then
2951 cat >> confdefs.h
<<\EOF
2957 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2958 echo "configure:2959: checking for pid_t" >&5
2959 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 cat > conftest.
$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 #include <sys/types.h>
2971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2972 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2974 ac_cv_type_pid_t
=yes
2982 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2983 if test $ac_cv_type_pid_t = no
; then
2984 cat >> confdefs.h
<<\EOF
2990 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2991 echo "configure:2992: checking for size_t" >&5
2992 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2995 cat > conftest.
$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
2998 #include <sys/types.h>
3004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3005 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3007 ac_cv_type_size_t
=yes
3010 ac_cv_type_size_t
=no
3015 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3016 if test $ac_cv_type_size_t = no
; then
3017 cat >> confdefs.h
<<\EOF
3018 #define size_t unsigned
3023 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3024 echo "configure:3025: checking whether struct tm is in sys/time.h or time.h" >&5
3025 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3028 cat > conftest.
$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3031 #include <sys/types.h>
3034 struct tm *tp; tp->tm_sec;
3037 if { (eval echo configure
:3038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3039 ac_cv_struct_tm
=time.h
3041 echo "configure: failed program was:" >&5
3042 cat conftest.
$ac_ext >&5
3044 ac_cv_struct_tm
=sys
/time.h
3049 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3050 if test $ac_cv_struct_tm = sys
/time.h
; then
3051 cat >> confdefs.h
<<\EOF
3052 #define TM_IN_SYS_TIME 1
3057 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3058 echo "configure:3059: checking return type of signal handlers" >&5
3059 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 cat > conftest.
$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3065 #include <sys/types.h>
3071 extern "C" void (*signal (int, void (*)(int)))(int);
3073 void (*signal ()) ();
3080 if { (eval echo configure
:3081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3082 ac_cv_type_signal
=void
3084 echo "configure: failed program was:" >&5
3085 cat conftest.
$ac_ext >&5
3087 ac_cv_type_signal
=int
3092 echo "$ac_t""$ac_cv_type_signal" 1>&6
3093 cat >> confdefs.h
<<EOF
3094 #define RETSIGTYPE $ac_cv_type_signal
3103 if test $ac_cv_prog_gcc = yes; then
3104 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3105 echo "configure:3106: checking whether ${CC-cc} needs -traditional" >&5
3106 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 ac_pattern
="Autoconf.*'x'"
3110 cat > conftest.
$ac_ext <<EOF
3111 #line 3112 "configure"
3112 #include "confdefs.h"
3116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3117 egrep "$ac_pattern" >/dev
/null
2>&1; then
3119 ac_cv_prog_gcc_traditional
=yes
3122 ac_cv_prog_gcc_traditional
=no
3127 if test $ac_cv_prog_gcc_traditional = no
; then
3128 cat > conftest.
$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3135 egrep "$ac_pattern" >/dev
/null
2>&1; then
3137 ac_cv_prog_gcc_traditional
=yes
3144 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
3145 if test $ac_cv_prog_gcc_traditional = yes; then
3146 CC
="$CC -traditional"
3150 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3151 echo "configure:3152: checking for 8-bit clean memcmp" >&5
3152 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6
3155 if test "$cross_compiling" = yes; then
3156 ac_cv_func_memcmp_clean
=no
3158 cat > conftest.
$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3164 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3165 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3169 if { (eval echo configure
:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3171 ac_cv_func_memcmp_clean
=yes
3173 echo "configure: failed program was:" >&5
3174 cat conftest.
$ac_ext >&5
3176 ac_cv_func_memcmp_clean
=no
3183 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3184 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
3186 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3187 echo "configure:3188: checking return type of signal handlers" >&5
3188 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3191 cat > conftest.
$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 #include <sys/types.h>
3200 extern "C" void (*signal (int, void (*)(int)))(int);
3202 void (*signal ()) ();
3209 if { (eval echo configure
:3210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3211 ac_cv_type_signal
=void
3213 echo "configure: failed program was:" >&5
3214 cat conftest.
$ac_ext >&5
3216 ac_cv_type_signal
=int
3221 echo "$ac_t""$ac_cv_type_signal" 1>&6
3222 cat >> confdefs.h
<<EOF
3223 #define RETSIGTYPE $ac_cv_type_signal
3227 for ac_func
in getcwd \
3238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3239 echo "configure:3240: checking for $ac_func" >&5
3240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3243 cat > conftest.
$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3246 /* System header to define __stub macros and hopefully few prototypes,
3247 which can conflict with char $ac_func(); below. */
3249 /* Override any gcc2 internal prototype to avoid an error. */
3250 /* We use char because int might match the return type of a gcc2
3251 builtin and then its argument prototype would still apply. */
3256 /* The GNU C library defines this for functions which it implements
3257 to always fail with ENOSYS. Some functions are actually named
3258 something starting with __ and the normal name is an alias. */
3259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3267 if { (eval echo configure
:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3269 eval "ac_cv_func_$ac_func=yes"
3271 echo "configure: failed program was:" >&5
3272 cat conftest.
$ac_ext >&5
3274 eval "ac_cv_func_$ac_func=no"
3279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3280 echo "$ac_t""yes" 1>&6
3281 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3282 cat >> confdefs.h
<<EOF
3283 #define $ac_tr_func 1
3287 echo "$ac_t""no" 1>&6
3295 LDFLAGS
=${LDFLAGS--O}
3296 CPPFLAGS
="$CPPFLAGS"
3301 MCOMMON
=.
/src
/Make.common
3311 if test "$GCC" = "yes"; then
3312 echo $ac_n "checking "whether we need
-fpermissive"""... $ac_c" 1>&6
3313 echo "configure:3314: checking "whether we need
-fpermissive"" >&5
3314 old_cflags
="$CFLAGS"
3315 CFLAGS
="-fpermissive $CFLAGS"
3316 if test "$cross_compiling" = yes; then
3317 echo "$ac_t""no" 1>&6
3318 CFLAGS
="$old_cflags"
3320 cat > conftest.
$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3327 if { (eval echo configure
:3328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3329 if grep 'option `-fpermissive'"'" config.log
>/dev
/null
; then
3330 echo "$ac_t""no" 1>&6
3331 CFLAGS
="$old_cflags"
3333 CFLAGS
="$old_cflags -fpermissive"
3334 echo "$ac_t""yes" 1>&6
3337 echo "configure: failed program was:" >&5
3338 cat conftest.
$ac_ext >&5
3340 echo "$ac_t""no" 1>&6
3341 CFLAGS
="$old_cflags"
3363 cat > confcache
<<\EOF
3364 # This file is a shell script that caches the results of configure
3365 # tests run on this system so they can be shared between configure
3366 # scripts and configure runs. It is not useful on other systems.
3367 # If it contains results you don't want to keep, you may remove or edit it.
3369 # By default, configure uses ./config.cache as the cache file,
3370 # creating it if it does not exist already. You can give configure
3371 # the --cache-file=FILE option to use a different cache file; that is
3372 # what configure does when it calls configure scripts in
3373 # subdirectories, so they share the cache.
3374 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3375 # config.status only pays attention to the cache file if you give it the
3376 # --recheck option to rerun configure.
3379 # The following way of writing the cache mishandles newlines in values,
3380 # but we know of no workaround that is simple, portable, and efficient.
3381 # So, don't put newlines in cache variables' values.
3382 # Ultrix sh set writes to stderr and can't be redirected directly,
3383 # and sets the high bit in the cache file unless we assign to the vars.
3385 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3387 # `set' does not quote correctly, so add quotes (double-quote substitution
3388 # turns \\\\ into \\, and sed turns \\ into \).
3390 -e "s/'/'\\\\''/g" \
3391 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3394 # `set' quotes correctly as required by POSIX, so do not add quotes.
3395 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3398 if cmp -s $cache_file confcache
; then
3401 if test -w $cache_file; then
3402 echo "updating cache $cache_file"
3403 cat confcache
> $cache_file
3405 echo "not updating unwritable cache $cache_file"
3410 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3412 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3413 # Let make expand exec_prefix.
3414 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3416 # Any assignment to VPATH causes Sun make to only execute
3417 # the first set of double-colon rules, so remove it if not needed.
3418 # If there is a colon in the path, we need to keep it.
3419 if test "x$srcdir" = x.
; then
3420 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3423 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3425 DEFS
=-DHAVE_CONFIG_H
3427 # Without the "./", some shells look in PATH for config.status.
3428 : ${CONFIG_STATUS=./config.status}
3430 echo creating
$CONFIG_STATUS
3431 rm -f $CONFIG_STATUS
3432 cat > $CONFIG_STATUS <<EOF
3434 # Generated automatically by configure.
3435 # Run this file to recreate the current configuration.
3436 # This directory was configured as follows,
3437 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3439 # $0 $ac_configure_args
3441 # Compiler output produced by configure, useful for debugging
3442 # configure, is in ./config.log if it exists.
3444 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3447 case "\$ac_option" in
3448 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3449 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3450 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3451 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3452 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3454 -help | --help | --hel | --he | --h)
3455 echo "\$ac_cs_usage"; exit 0 ;;
3456 *) echo "\$ac_cs_usage"; exit 1 ;;
3460 ac_given_srcdir=$srcdir
3461 ac_given_INSTALL="$INSTALL"
3463 trap 'rm -fr `echo "\
3466 src/include/globals.h \
3467 src/image/makefile \
3468 Makefile src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3470 cat >> $CONFIG_STATUS <<EOF
3472 # Protect against being on the right side of a sed subst in config.status.
3473 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3474 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3478 s%@CFLAGS@%$CFLAGS%g
3479 s%@CPPFLAGS@%$CPPFLAGS%g
3480 s%@CXXFLAGS@%$CXXFLAGS%g
3481 s%@FFLAGS@%$FFLAGS%g
3483 s%@LDFLAGS@%$LDFLAGS%g
3485 s%@exec_prefix@%$exec_prefix%g
3486 s%@prefix@%$prefix%g
3487 s%@program_transform_name@%$program_transform_name%g
3488 s%@bindir@%$bindir%g
3489 s%@sbindir@%$sbindir%g
3490 s%@libexecdir@%$libexecdir%g
3491 s%@datadir@%$datadir%g
3492 s%@sysconfdir@%$sysconfdir%g
3493 s%@sharedstatedir@%$sharedstatedir%g
3494 s%@localstatedir@%$localstatedir%g
3495 s%@libdir@%$libdir%g
3496 s%@includedir@%$includedir%g
3497 s%@oldincludedir@%$oldincludedir%g
3498 s%@infodir@%$infodir%g
3499 s%@mandir@%$mandir%g
3501 s%@host_alias@%$host_alias%g
3502 s%@host_cpu@%$host_cpu%g
3503 s%@host_vendor@%$host_vendor%g
3504 s%@host_os@%$host_os%g
3508 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3509 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3510 s%@INSTALL_DATA@%$INSTALL_DATA%g
3512 s%@SET_MAKE@%$SET_MAKE%g
3513 s%@RANLIB@%$RANLIB%g
3516 s%@SHAREFLAGS@%$SHAREFLAGS%g
3517 s%@LD_SHAREFLAGS@%$LD_SHAREFLAGS%g
3518 s%@PLUGINS@%$PLUGINS%g
3520 s%@IFACEOBJS@%$IFACEOBJS%g
3521 s%@IFACELIBS@%$IFACELIBS%g
3522 s%@IFACEINC@%$IFACEINC%g
3523 s%@X_CFLAGS@%$X_CFLAGS%g
3524 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3525 s%@X_LIBS@%$X_LIBS%g
3526 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3527 s%@LIBOBJS@%$LIBOBJS%g
3528 /@MCOMMON@/r $MCOMMON
3534 cat >> $CONFIG_STATUS <<\EOF
3536 # Split the substitutions into bite-sized pieces for seds with
3537 # small command number limits, like on Digital OSF/1 and HP-UX.
3538 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3539 ac_file
=1 # Number of current file.
3540 ac_beg
=1 # First line for current file.
3541 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3544 while $ac_more_lines; do
3545 if test $ac_beg -gt 1; then
3546 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3548 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3550 if test ! -s conftest.s
$ac_file; then
3552 rm -f conftest.s
$ac_file
3554 if test -z "$ac_sed_cmds"; then
3555 ac_sed_cmds
="sed -f conftest.s$ac_file"
3557 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3559 ac_file
=`expr $ac_file + 1`
3561 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3564 if test -z "$ac_sed_cmds"; then
3569 cat >> $CONFIG_STATUS <<EOF
3571 CONFIG_FILES=\${CONFIG_FILES-"\
3574 src/include/globals.h \
3575 src/image/makefile \
3578 cat >> $CONFIG_STATUS <<\EOF
3579 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3580 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3582 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3583 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3584 *) ac_file_in
="${ac_file}.in" ;;
3587 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3589 # Remove last slash and all that follows it. Not all systems have dirname.
3590 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3591 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3592 # The file is in a subdirectory.
3593 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3594 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3595 # A "../" for each directory in $ac_dir_suffix.
3596 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3598 ac_dir_suffix
= ac_dots
=
3601 case "$ac_given_srcdir" in
3603 if test -z "$ac_dots"; then top_srcdir
=.
3604 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3605 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3607 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3608 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3611 case "$ac_given_INSTALL" in
3612 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3613 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3616 echo creating
"$ac_file"
3618 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3620 *Makefile
*) ac_comsub
="1i\\
3621 # $configure_input" ;;
3625 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3627 s%@configure_input@%$configure_input%g
3628 s%@srcdir@%$srcdir%g
3629 s%@top_srcdir@%$top_srcdir%g
3630 s%@INSTALL@%$INSTALL%g
3631 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3635 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3636 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3638 # ac_d sets the value in "#define NAME VALUE" lines.
3639 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3640 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3643 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3644 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3645 ac_uB
='\([ ]\)%\1#\2define\3'
3648 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3649 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3650 ac_eB
='$%\1#\2define\3'
3654 if test "${CONFIG_HEADERS+set}" != set; then
3656 cat >> $CONFIG_STATUS <<EOF
3657 CONFIG_HEADERS="src/include/config.h"
3659 cat >> $CONFIG_STATUS <<\EOF
3661 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3664 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3665 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3666 *) ac_file_in
="${ac_file}.in" ;;
3669 echo creating
$ac_file
3671 rm -f conftest.frag conftest.
in conftest.out
3672 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3673 cat $ac_file_inputs > conftest.
in
3677 # Transform confdefs.h into a sed script conftest.vals that substitutes
3678 # the proper values into config.h.in to produce config.h. And first:
3679 # Protect against being on the right side of a sed subst in config.status.
3680 # Protect against being in an unquoted here document in config.status.
3682 cat > conftest.hdr
<<\EOF
3685 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3689 sed -n -f conftest.hdr confdefs.h > conftest.vals
3692 # This sed command replaces #undef with comments. This is necessary, for
3693 # example, in the case of _POSIX_SOURCE, which is predefined and required
3694 # on some systems where configure will not decide to define it.
3695 cat >> conftest.vals <<\EOF
3696 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3699 # Break up conftest.vals because some shells have a limit on
3700 # the size of here documents, and old seds have small limits too.
3705 ac_lines=`grep -c . conftest.vals
`
3706 # grep -c gives empty output for an empty file on some AIX systems.
3707 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3708 # Write a limited-size here document to conftest.frag.
3709 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3710 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3712 sed -f conftest.frag conftest.in > conftest.out
3714 mv conftest.out conftest.in
3716 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3718 mv conftest.tail conftest.vals
3722 cat >> $CONFIG_STATUS <<\EOF
3723 rm -f conftest.frag conftest.h
3724 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3725 cat conftest.in >> conftest.h
3727 if cmp -s $ac_file conftest.h 2>/dev/null; then
3728 echo "$ac_file is unchanged"
3731 # Remove last slash and all that follows it. Not all systems have dirname.
3732 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3733 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3734 # The file is in a subdirectory.
3735 test ! -d "$ac_dir" && mkdir "$ac_dir"
3738 mv conftest.h $ac_file
3743 cat >> $CONFIG_STATUS <<EOF
3746 cat >> $CONFIG_STATUS <<\EOF
3750 chmod +x $CONFIG_STATUS
3751 rm -fr confdefs* $ac_clean_files
3752 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3755 echo "ZINC=" >>src/make.conf
3756 echo "ZLIB=" >>src/make.conf
3757 echo "ZDEP=" >>src/make.conf
3758 echo "PNG=" >>src/make.conf
3759 echo "OPNGS=" >>src/make.conf
3760 echo "PNGINC=" >>src/make.conf
3761 echo "PNGLIB=" >>src/make.conf
3762 echo "PNGDEP=" >>src/make.conf
3765 echo "PSEUDO=-DPSEUDOCOLOR" >>src/make.conf
3766 echo "OPSEUDO=" >>src/make.conf
3767 pse="PseudoColor; TrueColor;"
3770 echo "XBM=" >>src/make.conf
3771 echo "OXBM=" >>src/make.conf
3774 echo "BMP=" >>src/make.conf
3775 echo "OBMP=" >>src/make.conf
3778 echo "XPM=" >>src/make.conf
3779 echo "OXPM=" >>src/make.conf
3782 echo "PCX=" >>src/make.conf
3783 echo "OPCX=" >>src/make.conf
3786 echo "TGA=" >>src/make.conf
3787 echo "OTGA=" >>src/make.conf
3790 echo "TIFF=" >>src/make.conf
3791 echo "OTIFF=" >>src/make.conf
3792 echo "TLIB=" >>src/make.conf
3795 echo "PCD=" >>src/make.conf
3796 echo "OPCDS=" >>src/make.conf
3799 echo "--------------- X Welltris Project ----------------------"
3804 Source code location: ${srcdir}
3806 C Compiler flags: ${CFLAGS}
3807 C++ Compiler: ${CXX}
3808 Libraries: ${out_lib}
3809 Install path: ${prefix}/bin
3810 Man pages path: ${prefix}/man
3811 X11 versions: ${X_LIBS}
3815 echo "-----------------------------------------------------------"
3817 echo "Type 'make' for building XWelltris binaries, and after that"
3818 echo "do 'make install' as 'root'."