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:
15 --with-x use the X Window System"
17 --enable-shape enable support of the XShape extension [default=yes]"
19 --enable-slit include code for the Slit [default=yes]"
21 --enable-newspec include code for the new WM Spec (DOES NOTHING)
24 --enable-interlace include code for image interlacing [default=yes]"
26 --enable-ordered-pseudo include code for ordered pseudocolor (8bpp)
27 dithering [default=no]"
29 --enable-clobber intercept mouse events to clients when num lock
30 or scroll lock are on [default=yes]"
32 --enable-debug include verbose debugging code [default=no]"
34 --enable-nls include natural language support [default=yes]"
36 --enable-timed-cache use new timed pixmap cache [default=yes]"
38 --enable-maintainer-mode enable make rules and dependencies not useful
39 (and sometimes confusing) to the casual installer"
41 # Initialize some variables set by options.
42 # The variables have the same names as the options, with
43 # dashes changed to underlines.
45 cache_file
=.
/config.cache
54 program_transform_name
=s
,x
,x
,
62 bindir
='${exec_prefix}/bin'
63 sbindir
='${exec_prefix}/sbin'
64 libexecdir
='${exec_prefix}/libexec'
65 datadir
='${prefix}/share'
66 sysconfdir
='${prefix}/etc'
67 sharedstatedir
='${prefix}/com'
68 localstatedir
='${prefix}/var'
69 libdir
='${exec_prefix}/lib'
70 includedir
='${prefix}/include'
71 oldincludedir
='/usr/include'
72 infodir
='${prefix}/info'
73 mandir
='${prefix}/man'
75 # Initialize some other variables.
78 SHELL
=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
94 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 # Accept the important Cygnus configure options, so we can diagnose typos.
102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
105 bindir
="$ac_optarg" ;;
107 -build | --build | --buil | --bui | --bu)
109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
110 build
="$ac_optarg" ;;
112 -cache-file | --cache-file | --cache-fil | --cache-fi \
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114 ac_prev
=cache_file
;;
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117 cache_file
="$ac_optarg" ;;
119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
123 datadir
="$ac_optarg" ;;
125 -disable-* | --disable-*)
126 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* | --enable-*)
135 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149 | --exec | --exe | --ex)
150 ac_prev
=exec_prefix
;;
151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
153 | --exec=* | --exe=* | --ex=*)
154 exec_prefix
="$ac_optarg" ;;
156 -gas | --gas | --ga | --g)
157 # Obsolete; use --with-gas.
160 -help | --help | --hel | --he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --version print the version of autoconf that created configure
172 Directory and file names:
173 --prefix=PREFIX install architecture-independent files in PREFIX
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180 --datadir=DIR read-only architecture-independent data in DIR
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187 --includedir=DIR C header files in DIR [PREFIX/include]
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189 --infodir=DIR info documentation in DIR [PREFIX/info]
190 --mandir=DIR man documentation in DIR [PREFIX/man]
191 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
199 --build=BUILD configure for building on BUILD [BUILD=HOST]
200 --host=HOST configure for HOST [guessed]
201 --target=TARGET configure for TARGET [TARGET=HOST]
202 Features and packages:
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207 --x-includes=DIR X include files are in DIR
208 --x-libraries=DIR X library files are in DIR
210 if test -n "$ac_help"; then
211 echo "--enable and --with options recognized:$ac_help"
215 -host | --host | --hos | --ho)
217 -host=* | --host=* | --hos=* | --ho=*)
220 -includedir | --includedir | --includedi | --included | --include \
221 | --includ | --inclu | --incl | --inc)
222 ac_prev
=includedir
;;
223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
224 | --includ=* | --inclu=* | --incl=* | --inc=*)
225 includedir
="$ac_optarg" ;;
227 -infodir | --infodir | --infodi | --infod | --info | --inf)
229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
230 infodir
="$ac_optarg" ;;
232 -libdir | --libdir | --libdi | --libd)
234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
235 libdir
="$ac_optarg" ;;
237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
238 | --libexe | --libex | --libe)
239 ac_prev
=libexecdir
;;
240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
241 | --libexe=* | --libex=* | --libe=*)
242 libexecdir
="$ac_optarg" ;;
244 -localstatedir | --localstatedir | --localstatedi | --localstated \
245 | --localstate | --localstat | --localsta | --localst \
246 | --locals | --local | --loca | --loc | --lo)
247 ac_prev
=localstatedir
;;
248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
249 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
250 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
251 localstatedir
="$ac_optarg" ;;
253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
256 mandir
="$ac_optarg" ;;
259 # Obsolete; use --without-fp.
262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
272 | --oldin | --oldi | --old | --ol | --o)
273 ac_prev
=oldincludedir
;;
274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
277 oldincludedir
="$ac_optarg" ;;
279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
282 prefix
="$ac_optarg" ;;
284 -program-prefix | --program-prefix | --program-prefi | --program-pref \
285 | --program-pre | --program-pr | --program-p)
286 ac_prev
=program_prefix
;;
287 -program-prefix=* | --program-prefix=* | --program-prefi=* \
288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
289 program_prefix
="$ac_optarg" ;;
291 -program-suffix | --program-suffix | --program-suffi | --program-suff \
292 | --program-suf | --program-su | --program-s)
293 ac_prev
=program_suffix
;;
294 -program-suffix=* | --program-suffix=* | --program-suffi=* \
295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
296 program_suffix
="$ac_optarg" ;;
298 -program-transform-name | --program-transform-name \
299 | --program-transform-nam | --program-transform-na \
300 | --program-transform-n | --program-transform- \
301 | --program-transform | --program-transfor \
302 | --program-transfo | --program-transf \
303 | --program-trans | --program-tran \
304 | --progr-tra | --program-tr | --program-t)
305 ac_prev
=program_transform_name
;;
306 -program-transform-name=* | --program-transform-name=* \
307 | --program-transform-nam=* | --program-transform-na=* \
308 | --program-transform-n=* | --program-transform-=* \
309 | --program-transform=* | --program-transfor=* \
310 | --program-transfo=* | --program-transf=* \
311 | --program-trans=* | --program-tran=* \
312 | --progr-tra=* | --program-tr=* | --program-t=*)
313 program_transform_name
="$ac_optarg" ;;
315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
316 | -silent | --silent | --silen | --sile | --sil)
319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
323 sbindir
="$ac_optarg" ;;
325 -sharedstatedir | --sharedstatedir | --sharedstatedi \
326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
327 | --sharedst | --shareds | --shared | --share | --shar \
329 ac_prev
=sharedstatedir
;;
330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
334 sharedstatedir
="$ac_optarg" ;;
336 -site | --site | --sit)
338 -site=* | --site=* | --sit=*)
341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
344 srcdir
="$ac_optarg" ;;
346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
347 | --syscon | --sysco | --sysc | --sys | --sy)
348 ac_prev
=sysconfdir
;;
349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
351 sysconfdir
="$ac_optarg" ;;
353 -target | --target | --targe | --targ | --tar | --ta | --t)
355 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
356 target
="$ac_optarg" ;;
358 -v | -verbose | --verbose | --verbos | --verbo | --verb)
361 -version | --version | --versio | --versi | --vers)
362 echo "configure generated by autoconf version 2.13"
366 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package
=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}='$ac_optarg'" ;;
378 -without-* | --without-*)
379 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package
=`echo $ac_package| sed 's/-/_/g'`
385 eval "with_${ac_package}=no" ;;
388 # Obsolete; use --with-x.
391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
392 | --x-incl | --x-inc | --x-in | --x-i)
393 ac_prev
=x_includes
;;
394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
396 x_includes
="$ac_optarg" ;;
398 -x-libraries | --x-libraries | --x-librarie | --x-librari \
399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
400 ac_prev
=x_libraries
;;
401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
403 x_libraries
="$ac_optarg" ;;
405 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
410 echo "configure: warning: $ac_option: invalid host type" 1>&2
412 if test "x$nonopt" != xNONE
; then
413 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
421 if test -n "$ac_prev"; then
422 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
427 # File descriptor usage:
430 # 2 errors and warnings
431 # 3 some systems may open it to /dev/tty
432 # 4 used on the Kubota Titan
433 # 6 checking for... messages and results
434 # 5 compiler messages saved in config.log
435 if test "$silent" = yes; then
443 This file contains any messages produced by compilers while
444 running configure, to aid debugging if configure makes a mistake.
447 # Strip out --no-create and --no-recursion so they do not pile up.
448 # Also quote any args containing shell metacharacters.
453 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
454 | --no-cr | --no-c) ;;
455 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
458 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
459 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
464 # Only set these to C if already set. These must not be set unconditionally
465 # because not all systems understand e.g. LANG=C (notably SCO).
466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
467 # Non-C LC_CTYPE values break the ctype check.
468 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
469 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
471 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
474 rm -rf conftest
* confdefs.h
475 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
478 # A filename unique to this package, relative to the directory that
479 # configure is in, which we can look for to find out if srcdir is correct.
480 ac_unique_file
=src
/openbox.cc
482 # Find the source files, if location was not specified.
483 if test -z "$srcdir"; then
484 ac_srcdir_defaulted
=yes
485 # Try the directory containing this script, then its parent.
487 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
488 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
490 if test ! -r $srcdir/$ac_unique_file; then
494 ac_srcdir_defaulted
=no
496 if test ! -r $srcdir/$ac_unique_file; then
497 if test "$ac_srcdir_defaulted" = yes; then
498 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
500 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
505 # Prefer explicitly selected file to automatically selected ones.
506 if test -z "$CONFIG_SITE"; then
507 if test "x$prefix" != xNONE
; then
508 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
510 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 for ac_site_file
in $CONFIG_SITE; do
514 if test -r "$ac_site_file"; then
515 echo "loading site script $ac_site_file"
520 if test -r "$cache_file"; then
521 echo "loading cache $cache_file"
524 echo "creating cache $cache_file"
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530 ac_cpp
='$CPP $CPPFLAGS'
531 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533 cross_compiling
=$ac_cv_prog_cc_cross
537 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
538 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
539 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
546 ac_n
= ac_c
='\c' ac_t
=
551 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
552 if test -f $ac_dir/install-sh; then
554 ac_install_sh
="$ac_aux_dir/install-sh -c"
556 elif test -f $ac_dir/install.sh
; then
558 ac_install_sh
="$ac_aux_dir/install.sh -c"
562 if test -z "$ac_aux_dir"; then
563 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
565 ac_config_guess
=$ac_aux_dir/config.guess
566 ac_config_sub
=$ac_aux_dir/config.sub
567 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
569 # Find a good install program. We prefer a C program (faster),
570 # so one script is as good as another. But avoid the broken or
571 # incompatible versions:
572 # SysV /etc/install, /usr/sbin/install
573 # SunOS /usr/etc/install
576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
579 # ./install, which can be erroneously created by make from ./install.sh.
580 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
581 echo "configure:582: checking for a BSD compatible install" >&5
582 if test -z "$INSTALL"; then
583 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
586 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
587 for ac_dir
in $PATH; do
588 # Account for people who put trailing slashes in PATH elements.
590 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
592 # OSF1 and SCO ODT 3.0 have their own names for install.
593 # Don't use installbsd from OSF since it installs stuff as root
595 for ac_prog
in ginstall scoinst
install; do
596 if test -f $ac_dir/$ac_prog; then
597 if test $ac_prog = install &&
598 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
599 # AIX install. It has an incompatible calling convention.
602 ac_cv_path_install
="$ac_dir/$ac_prog -c"
613 if test "${ac_cv_path_install+set}" = set; then
614 INSTALL
="$ac_cv_path_install"
616 # As a last resort, use the slow shell script. We don't cache a
617 # path for INSTALL within a source directory, because that will
618 # break other packages using the cache if that directory is
619 # removed, or if the path is relative.
620 INSTALL
="$ac_install_sh"
623 echo "$ac_t""$INSTALL" 1>&6
625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
626 # It thinks the first close brace ends the variable substitution.
627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
629 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
631 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
633 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
634 echo "configure:635: checking whether build environment is sane" >&5
637 echo timestamp
> conftestfile
638 # Do `set' in a subshell so we don't clobber the current shell's
639 # arguments. Must try -L first in case configure is actually a
640 # symlink; some systems play weird games with the mod time of symlinks
641 # (eg FreeBSD returns the mod time of the symlink's containing
644 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
645 if test "$*" = "X"; then
647 set X
`ls -t $srcdir/configure conftestfile`
649 if test "$*" != "X $srcdir/configure conftestfile" \
650 && test "$*" != "X conftestfile $srcdir/configure"; then
652 # If neither matched, then we have a broken ls. This can happen
653 # if, for instance, CONFIG_SHELL is bash and it inherits a
654 # broken ls alias from the environment. This has actually
655 # happened. Such a system could not be considered "sane".
656 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
657 alias in your environment" 1>&2; exit 1; }
660 test "$2" = conftestfile
666 { echo "configure: error: newly created file is older than distributed files!
667 Check your system clock" 1>&2; exit 1; }
670 echo "$ac_t""yes" 1>&6
671 if test "$program_transform_name" = s
,x
,x
,; then
672 program_transform_name
=
674 # Double any \ or $. echo might interpret backslashes.
675 cat <<\EOF_SED
> conftestsed
676 s
,\\,\\\\,g
; s
,\$
,$$
,g
678 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
681 test "$program_prefix" != NONE
&&
682 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
683 # Use a double $ so make ignores it.
684 test "$program_suffix" != NONE
&&
685 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
687 # sed with no file args requires a program.
688 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
690 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
691 echo "configure:692: checking whether ${MAKE-make} sets \${MAKE}" >&5
692 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
693 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 cat > conftestmake
<<\EOF
698 @
echo 'ac_maketemp="${MAKE}"'
700 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
701 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
702 if test -n "$ac_maketemp"; then
703 eval ac_cv_prog_make_
${ac_make}_set
=yes
705 eval ac_cv_prog_make_
${ac_make}_set
=no
709 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
710 echo "$ac_t""yes" 1>&6
713 echo "$ac_t""no" 1>&6
714 SET_MAKE
="MAKE=${MAKE-make}"
722 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
723 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
728 missing_dir
=`cd $ac_aux_dir && pwd`
729 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
730 echo "configure:731: checking for working aclocal" >&5
731 # Run test in a subshell; some versions of sh will print an error if
732 # an executable is not found, even if stderr is redirected.
733 # Redirect stdin to placate older versions of autoconf. Sigh.
734 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
736 echo "$ac_t""found" 1>&6
738 ACLOCAL
="$missing_dir/missing aclocal"
739 echo "$ac_t""missing" 1>&6
742 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
743 echo "configure:744: checking for working autoconf" >&5
744 # Run test in a subshell; some versions of sh will print an error if
745 # an executable is not found, even if stderr is redirected.
746 # Redirect stdin to placate older versions of autoconf. Sigh.
747 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
749 echo "$ac_t""found" 1>&6
751 AUTOCONF
="$missing_dir/missing autoconf"
752 echo "$ac_t""missing" 1>&6
755 echo $ac_n "checking for working automake""... $ac_c" 1>&6
756 echo "configure:757: checking for working automake" >&5
757 # Run test in a subshell; some versions of sh will print an error if
758 # an executable is not found, even if stderr is redirected.
759 # Redirect stdin to placate older versions of autoconf. Sigh.
760 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
762 echo "$ac_t""found" 1>&6
764 AUTOMAKE
="$missing_dir/missing automake"
765 echo "$ac_t""missing" 1>&6
768 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
769 echo "configure:770: checking for working autoheader" >&5
770 # Run test in a subshell; some versions of sh will print an error if
771 # an executable is not found, even if stderr is redirected.
772 # Redirect stdin to placate older versions of autoconf. Sigh.
773 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
774 AUTOHEADER
=autoheader
775 echo "$ac_t""found" 1>&6
777 AUTOHEADER
="$missing_dir/missing autoheader"
778 echo "$ac_t""missing" 1>&6
781 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
782 echo "configure:783: checking for working makeinfo" >&5
783 # Run test in a subshell; some versions of sh will print an error if
784 # an executable is not found, even if stderr is redirected.
785 # Redirect stdin to placate older versions of autoconf. Sigh.
786 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
788 echo "$ac_t""found" 1>&6
790 MAKEINFO
="$missing_dir/missing makeinfo"
791 echo "$ac_t""missing" 1>&6
796 test x
$prefix = "xNONE" && prefix
="$ac_default_prefix"
799 # Extract the first word of "gcc", so it can be a program name with args.
800 set dummy gcc
; ac_word
=$2
801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
802 echo "configure:803: checking for $ac_word" >&5
803 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 if test -n "$CC"; then
807 ac_cv_prog_CC
="$CC" # Let the user override the test.
809 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
811 for ac_dir
in $ac_dummy; do
812 test -z "$ac_dir" && ac_dir
=.
813 if test -f $ac_dir/$ac_word; then
822 if test -n "$CC"; then
823 echo "$ac_t""$CC" 1>&6
825 echo "$ac_t""no" 1>&6
828 if test -z "$CC"; then
829 # Extract the first word of "cc", so it can be a program name with args.
830 set dummy cc
; ac_word
=$2
831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
832 echo "configure:833: checking for $ac_word" >&5
833 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 if test -n "$CC"; then
837 ac_cv_prog_CC
="$CC" # Let the user override the test.
839 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
842 for ac_dir
in $ac_dummy; do
843 test -z "$ac_dir" && ac_dir
=.
844 if test -f $ac_dir/$ac_word; then
845 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
854 if test $ac_prog_rejected = yes; then
855 # We found a bogon in the path, so make sure we never use it.
856 set dummy
$ac_cv_prog_CC
858 if test $# -gt 0; then
859 # We chose a different compiler from the bogus one.
860 # However, it has the same basename, so the bogon will be chosen
861 # first if we set CC to just the basename; use the full file name.
863 set dummy
"$ac_dir/$ac_word" "$@"
871 if test -n "$CC"; then
872 echo "$ac_t""$CC" 1>&6
874 echo "$ac_t""no" 1>&6
877 if test -z "$CC"; then
880 # Extract the first word of "cl", so it can be a program name with args.
881 set dummy cl
; ac_word
=$2
882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
883 echo "configure:884: checking for $ac_word" >&5
884 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
887 if test -n "$CC"; then
888 ac_cv_prog_CC
="$CC" # Let the user override the test.
890 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
892 for ac_dir
in $ac_dummy; do
893 test -z "$ac_dir" && ac_dir
=.
894 if test -f $ac_dir/$ac_word; then
903 if test -n "$CC"; then
904 echo "$ac_t""$CC" 1>&6
906 echo "$ac_t""no" 1>&6
911 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
914 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
915 echo "configure:916: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
918 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
919 ac_cpp
='$CPP $CPPFLAGS'
920 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
921 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
922 cross_compiling
=$ac_cv_prog_cc_cross
924 cat > conftest.
$ac_ext << EOF
926 #line 927 "configure"
927 #include "confdefs.h"
931 if { (eval echo configure
:932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
932 ac_cv_prog_cc_works
=yes
933 # If we can't run a trivial program, we are probably using a cross compiler.
934 if (.
/conftest
; exit) 2>/dev
/null
; then
935 ac_cv_prog_cc_cross
=no
937 ac_cv_prog_cc_cross
=yes
940 echo "configure: failed program was:" >&5
941 cat conftest.
$ac_ext >&5
942 ac_cv_prog_cc_works
=no
946 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
947 ac_cpp
='$CPP $CPPFLAGS'
948 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
949 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
950 cross_compiling
=$ac_cv_prog_cc_cross
952 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
953 if test $ac_cv_prog_cc_works = no
; then
954 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
956 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
957 echo "configure:958: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
958 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
959 cross_compiling
=$ac_cv_prog_cc_cross
961 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
962 echo "configure:963: checking whether we are using GNU C" >&5
963 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
966 cat > conftest.c
<<EOF
971 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
978 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
980 if test $ac_cv_prog_gcc = yes; then
986 ac_test_CFLAGS
="${CFLAGS+set}"
987 ac_save_CFLAGS
="$CFLAGS"
989 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
990 echo "configure:991: checking whether ${CC-cc} accepts -g" >&5
991 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
994 echo 'void f(){}' > conftest.c
995 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1004 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1005 if test "$ac_test_CFLAGS" = set; then
1006 CFLAGS
="$ac_save_CFLAGS"
1007 elif test $ac_cv_prog_cc_g = yes; then
1008 if test "$GCC" = yes; then
1014 if test "$GCC" = yes; then
1021 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1023 # Extract the first word of "$ac_prog", so it can be a program name with args.
1024 set dummy
$ac_prog; ac_word
=$2
1025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1026 echo "configure:1027: checking for $ac_word" >&5
1027 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1030 if test -n "$CXX"; then
1031 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1033 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1035 for ac_dir
in $ac_dummy; do
1036 test -z "$ac_dir" && ac_dir
=.
1037 if test -f $ac_dir/$ac_word; then
1038 ac_cv_prog_CXX
="$ac_prog"
1045 CXX
="$ac_cv_prog_CXX"
1046 if test -n "$CXX"; then
1047 echo "$ac_t""$CXX" 1>&6
1049 echo "$ac_t""no" 1>&6
1052 test -n "$CXX" && break
1054 test -n "$CXX" || CXX
="gcc"
1057 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1058 echo "configure:1059: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1061 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1062 ac_cpp
='$CXXCPP $CPPFLAGS'
1063 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1064 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1065 cross_compiling
=$ac_cv_prog_cxx_cross
1067 cat > conftest.
$ac_ext << EOF
1069 #line 1070 "configure"
1070 #include "confdefs.h"
1072 int main(){return(0);}
1074 if { (eval echo configure
:1075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1075 ac_cv_prog_cxx_works
=yes
1076 # If we can't run a trivial program, we are probably using a cross compiler.
1077 if (.
/conftest
; exit) 2>/dev
/null
; then
1078 ac_cv_prog_cxx_cross
=no
1080 ac_cv_prog_cxx_cross
=yes
1083 echo "configure: failed program was:" >&5
1084 cat conftest.
$ac_ext >&5
1085 ac_cv_prog_cxx_works
=no
1089 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1090 ac_cpp
='$CPP $CPPFLAGS'
1091 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1092 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1093 cross_compiling
=$ac_cv_prog_cc_cross
1095 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1096 if test $ac_cv_prog_cxx_works = no
; then
1097 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1099 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1100 echo "configure:1101: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1101 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1102 cross_compiling
=$ac_cv_prog_cxx_cross
1104 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1105 echo "configure:1106: checking whether we are using GNU C++" >&5
1106 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 cat > conftest.C
<<EOF
1114 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
1121 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1123 if test $ac_cv_prog_gxx = yes; then
1129 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1130 ac_save_CXXFLAGS
="$CXXFLAGS"
1132 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1133 echo "configure:1134: checking whether ${CXX-g++} accepts -g" >&5
1134 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1137 echo 'void f(){}' > conftest.cc
1138 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1139 ac_cv_prog_cxx_g
=yes
1147 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1148 if test "$ac_test_CXXFLAGS" = set; then
1149 CXXFLAGS
="$ac_save_CXXFLAGS"
1150 elif test $ac_cv_prog_cxx_g = yes; then
1151 if test "$GXX" = yes; then
1157 if test "$GXX" = yes; then
1164 # Find a good install program. We prefer a C program (faster),
1165 # so one script is as good as another. But avoid the broken or
1166 # incompatible versions:
1167 # SysV /etc/install, /usr/sbin/install
1168 # SunOS /usr/etc/install
1169 # IRIX /sbin/install
1171 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1172 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1173 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1174 # ./install, which can be erroneously created by make from ./install.sh.
1175 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1176 echo "configure:1177: checking for a BSD compatible install" >&5
1177 if test -z "$INSTALL"; then
1178 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1182 for ac_dir
in $PATH; do
1183 # Account for people who put trailing slashes in PATH elements.
1185 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1187 # OSF1 and SCO ODT 3.0 have their own names for install.
1188 # Don't use installbsd from OSF since it installs stuff as root
1190 for ac_prog
in ginstall scoinst
install; do
1191 if test -f $ac_dir/$ac_prog; then
1192 if test $ac_prog = install &&
1193 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1194 # AIX install. It has an incompatible calling convention.
1197 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1208 if test "${ac_cv_path_install+set}" = set; then
1209 INSTALL
="$ac_cv_path_install"
1211 # As a last resort, use the slow shell script. We don't cache a
1212 # path for INSTALL within a source directory, because that will
1213 # break other packages using the cache if that directory is
1214 # removed, or if the path is relative.
1215 INSTALL
="$ac_install_sh"
1218 echo "$ac_t""$INSTALL" 1>&6
1220 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1221 # It thinks the first close brace ends the variable substitution.
1222 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1224 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1226 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1230 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1231 ac_cpp
='$CXXCPP $CPPFLAGS'
1232 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1233 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1234 cross_compiling
=$ac_cv_prog_cxx_cross
1239 # Extract the first word of "$ac_prog", so it can be a program name with args.
1240 set dummy
$ac_prog; ac_word
=$2
1241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1242 echo "configure:1243: checking for $ac_word" >&5
1243 if eval "test \"`echo '$''{'ac_cv_prog_regex_cmd'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1246 if test -n "$regex_cmd"; then
1247 ac_cv_prog_regex_cmd
="$regex_cmd" # Let the user override the test.
1249 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1251 for ac_dir
in $ac_dummy; do
1252 test -z "$ac_dir" && ac_dir
=.
1253 if test -f $ac_dir/$ac_word; then
1254 ac_cv_prog_regex_cmd
="$ac_prog"
1261 regex_cmd
="$ac_cv_prog_regex_cmd"
1262 if test -n "$regex_cmd"; then
1263 echo "$ac_t""$regex_cmd" 1>&6
1265 echo "$ac_t""no" 1>&6
1268 test -n "$regex_cmd" && break
1271 if test x
$regex_cmd = "x"; then
1272 { echo "configure: error: error. sed is required to build the default menu file." 1>&2; exit 1; }
1275 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1276 echo "configure:1277: checking how to run the C++ preprocessor" >&5
1277 if test -z "$CXXCPP"; then
1278 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1282 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1283 ac_cpp
='$CXXCPP $CPPFLAGS'
1284 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1285 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1286 cross_compiling
=$ac_cv_prog_cxx_cross
1287 CXXCPP
="${CXX-g++} -E"
1288 cat > conftest.
$ac_ext <<EOF
1289 #line 1290 "configure"
1290 #include "confdefs.h"
1293 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1294 { (eval echo configure
:1295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1295 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1296 if test -z "$ac_err"; then
1300 echo "configure: failed program was:" >&5
1301 cat conftest.
$ac_ext >&5
1306 ac_cv_prog_CXXCPP
="$CXXCPP"
1308 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1309 ac_cpp
='$CXXCPP $CPPFLAGS'
1310 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1311 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1312 cross_compiling
=$ac_cv_prog_cxx_cross
1315 CXXCPP
="$ac_cv_prog_CXXCPP"
1316 echo "$ac_t""$CXXCPP" 1>&6
1318 for ac_hdr
in ctype.h dirent.h fcntl.h libgen.h locale.h nl_types.h process.h signal.h stdarg.h stdio.h string.h stdlib.h
time.h unistd.h sys
/param.h sys
/select.h sys
/signal.h sys
/stat.h sys
/time.h sys
/types.h sys
/wait.h sstream
1320 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1322 echo "configure:1323: checking for $ac_hdr" >&5
1323 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 cat > conftest.
$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1331 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1332 { (eval echo configure
:1333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1333 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1334 if test -z "$ac_err"; then
1336 eval "ac_cv_header_$ac_safe=yes"
1339 echo "configure: failed program was:" >&5
1340 cat conftest.
$ac_ext >&5
1342 eval "ac_cv_header_$ac_safe=no"
1346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1347 echo "$ac_t""yes" 1>&6
1348 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1349 cat >> confdefs.h
<<EOF
1350 #define $ac_tr_hdr 1
1354 echo "$ac_t""no" 1>&6
1358 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1359 echo "configure:1360: checking whether time.h and sys/time.h may both be included" >&5
1360 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1363 cat > conftest.
$ac_ext <<EOF
1364 #line 1365 "configure"
1365 #include "confdefs.h"
1366 #include <sys/types.h>
1367 #include <sys/time.h>
1373 if { (eval echo configure
:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1375 ac_cv_header_time
=yes
1377 echo "configure: failed program was:" >&5
1378 cat conftest.
$ac_ext >&5
1380 ac_cv_header_time
=no
1385 echo "$ac_t""$ac_cv_header_time" 1>&6
1386 if test $ac_cv_header_time = yes; then
1387 cat >> confdefs.h
<<\EOF
1388 #define TIME_WITH_SYS_TIME 1
1394 for ac_func
in basename
1396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1397 echo "configure:1398: checking for $ac_func" >&5
1398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 cat > conftest.
$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1404 /* System header to define __stub macros and hopefully few prototypes,
1405 which can conflict with char $ac_func(); below. */
1407 /* Override any gcc2 internal prototype to avoid an error. */
1411 /* We use char because int might match the return type of a gcc2
1412 builtin and then its argument prototype would still apply. */
1417 /* The GNU C library defines this for functions which it implements
1418 to always fail with ENOSYS. Some functions are actually named
1419 something starting with __ and the normal name is an alias. */
1420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1428 if { (eval echo configure
:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1430 eval "ac_cv_func_$ac_func=yes"
1432 echo "configure: failed program was:" >&5
1433 cat conftest.
$ac_ext >&5
1435 eval "ac_cv_func_$ac_func=no"
1440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1441 echo "$ac_t""yes" 1>&6
1442 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1443 cat >> confdefs.h
<<EOF
1444 #define $ac_tr_func 1
1448 echo "$ac_t""no" 1>&6
1449 echo $ac_n "checking for basename in -lgen""... $ac_c" 1>&6
1450 echo "configure:1451: checking for basename in -lgen" >&5
1451 ac_lib_var
=`echo gen'_'basename | sed 'y%./+-%__p_%'`
1452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1455 ac_save_LIBS
="$LIBS"
1457 cat > conftest.
$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1460 /* Override any gcc2 internal prototype to avoid an error. */
1464 /* We use char because int might match the return type of a gcc2
1465 builtin and then its argument prototype would still apply. */
1472 if { (eval echo configure
:1473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1474 eval "ac_cv_lib_$ac_lib_var=yes"
1476 echo "configure: failed program was:" >&5
1477 cat conftest.
$ac_ext >&5
1479 eval "ac_cv_lib_$ac_lib_var=no"
1482 LIBS
="$ac_save_LIBS"
1485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1486 echo "$ac_t""yes" 1>&6
1487 cat >> confdefs.h
<<\EOF
1488 #define HAVE_BASENAME 1
1492 echo "$ac_t""no" 1>&6
1498 for ac_func
in getpid setlocale sigaction strftime strcasestr snprintf vsnprintf catopen catgets catclose
1500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1501 echo "configure:1502: checking for $ac_func" >&5
1502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 cat > conftest.
$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1508 /* System header to define __stub macros and hopefully few prototypes,
1509 which can conflict with char $ac_func(); below. */
1511 /* Override any gcc2 internal prototype to avoid an error. */
1515 /* We use char because int might match the return type of a gcc2
1516 builtin and then its argument prototype would still apply. */
1521 /* The GNU C library defines this for functions which it implements
1522 to always fail with ENOSYS. Some functions are actually named
1523 something starting with __ and the normal name is an alias. */
1524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1532 if { (eval echo configure
:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1534 eval "ac_cv_func_$ac_func=yes"
1536 echo "configure: failed program was:" >&5
1537 cat conftest.
$ac_ext >&5
1539 eval "ac_cv_func_$ac_func=no"
1544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1545 echo "$ac_t""yes" 1>&6
1546 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1547 cat >> confdefs.h
<<EOF
1548 #define $ac_tr_func 1
1552 echo "$ac_t""no" 1>&6
1556 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
1557 echo "configure:1558: checking for t_open in -lnsl" >&5
1558 ac_lib_var
=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
1559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 ac_save_LIBS
="$LIBS"
1564 cat > conftest.
$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1567 /* Override any gcc2 internal prototype to avoid an error. */
1571 /* We use char because int might match the return type of a gcc2
1572 builtin and then its argument prototype would still apply. */
1579 if { (eval echo configure
:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1581 eval "ac_cv_lib_$ac_lib_var=yes"
1583 echo "configure: failed program was:" >&5
1584 cat conftest.
$ac_ext >&5
1586 eval "ac_cv_lib_$ac_lib_var=no"
1589 LIBS
="$ac_save_LIBS"
1592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1593 echo "$ac_t""yes" 1>&6
1596 echo "$ac_t""no" 1>&6
1599 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1600 echo "configure:1601: checking for socket in -lsocket" >&5
1601 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 ac_save_LIBS
="$LIBS"
1606 LIBS
="-lsocket $LIBS"
1607 cat > conftest.
$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 /* Override any gcc2 internal prototype to avoid an error. */
1614 /* We use char because int might match the return type of a gcc2
1615 builtin and then its argument prototype would still apply. */
1622 if { (eval echo configure
:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1624 eval "ac_cv_lib_$ac_lib_var=yes"
1626 echo "configure: failed program was:" >&5
1627 cat conftest.
$ac_ext >&5
1629 eval "ac_cv_lib_$ac_lib_var=no"
1632 LIBS
="$ac_save_LIBS"
1635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1636 echo "$ac_t""yes" 1>&6
1637 LIBS
="$LIBS -lsocket"
1639 echo "$ac_t""no" 1>&6
1643 # If we find X, set shell vars x_includes and x_libraries to the
1644 # paths, otherwise set no_x=yes.
1645 # Uses ac_ vars as temps to allow command line to override cache and checks.
1646 # --without-x overrides everything else, but does not touch the cache.
1647 echo $ac_n "checking for X""... $ac_c" 1>&6
1648 echo "configure:1649: checking for X" >&5
1650 # Check whether --with-x or --without-x was given.
1651 if test "${with_x+set}" = set; then
1656 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1657 if test "x$with_x" = xno
; then
1658 # The user explicitly disabled X.
1661 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1662 # Both variables are already set.
1665 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 # One or both of the vars are not set, and there is no cached value.
1669 ac_x_includes
=NO ac_x_libraries
=NO
1671 if mkdir conftestdir
; then
1673 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1674 cat > Imakefile
<<'EOF'
1676 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1678 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1679 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1680 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1681 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1682 for ac_extension
in a so sl
; do
1683 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1684 test -f $ac_im_libdir/libX11.
$ac_extension; then
1685 ac_im_usrlibdir
=$ac_im_libdir; break
1688 # Screen out bogus values from the imake configuration. They are
1689 # bogus both because they are the default anyway, and because
1690 # using them would break gcc on systems where it needs fixed includes.
1691 case "$ac_im_incroot" in
1693 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1695 case "$ac_im_usrlibdir" in
1697 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1704 if test "$ac_x_includes" = NO
; then
1705 # Guess where to find include files, by looking for this one X11 .h file.
1706 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1708 # First, try using that file with no special directory specified.
1709 cat > conftest.
$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1712 #include <$x_direct_test_include>
1714 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1715 { (eval echo configure
:1716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1716 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1717 if test -z "$ac_err"; then
1719 # We can compile using X headers with no special include directory.
1723 echo "configure: failed program was:" >&5
1724 cat conftest.
$ac_ext >&5
1726 # Look for the header file in a standard set of common directories.
1727 # Check X11 before X11Rn because it is often a symlink to the current release.
1730 /usr
/X
11R
6/include \
1731 /usr
/X
11R
5/include \
1732 /usr
/X
11R
4/include \
1735 /usr
/include
/X11R6 \
1736 /usr
/include
/X11R5 \
1737 /usr
/include
/X11R4 \
1739 /usr
/local
/X
11/include \
1740 /usr
/local
/X
11R
6/include \
1741 /usr
/local
/X
11R
5/include \
1742 /usr
/local
/X
11R
4/include \
1744 /usr
/local
/include
/X11 \
1745 /usr
/local
/include
/X11R6 \
1746 /usr
/local
/include
/X11R5 \
1747 /usr
/local
/include
/X11R4 \
1751 /usr
/XFree
86/include
/X11 \
1754 /usr
/local
/include \
1755 /usr
/unsupported
/include \
1756 /usr
/athena
/include \
1757 /usr
/local
/x
11r
5/include \
1758 /usr
/lpp
/Xamples
/include \
1760 /usr
/openwin
/include \
1761 /usr
/openwin
/share
/include \
1764 if test -r "$ac_dir/$x_direct_test_include"; then
1765 ac_x_includes
=$ac_dir
1771 fi # $ac_x_includes = NO
1773 if test "$ac_x_libraries" = NO
; then
1774 # Check for the libraries.
1776 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1777 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1779 # See if we find them without any special options.
1780 # Don't add to $LIBS permanently.
1781 ac_save_LIBS
="$LIBS"
1782 LIBS
="-l$x_direct_test_library $LIBS"
1783 cat > conftest.
$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1788 ${x_direct_test_function}()
1791 if { (eval echo configure
:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1793 LIBS
="$ac_save_LIBS"
1794 # We can link X programs with no special library path.
1797 echo "configure: failed program was:" >&5
1798 cat conftest.
$ac_ext >&5
1800 LIBS
="$ac_save_LIBS"
1801 # First see if replacing the include by lib works.
1802 # Check X11 before X11Rn because it is often a symlink to the current release.
1803 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1814 /usr
/local
/X
11/lib \
1815 /usr
/local
/X
11R
6/lib \
1816 /usr
/local
/X
11R
5/lib \
1817 /usr
/local
/X
11R
4/lib \
1819 /usr
/local
/lib
/X11 \
1820 /usr
/local
/lib
/X11R6 \
1821 /usr
/local
/lib
/X11R5 \
1822 /usr
/local
/lib
/X11R4 \
1826 /usr
/XFree
86/lib
/X11 \
1830 /usr
/unsupported
/lib \
1832 /usr
/local
/x
11r
5/lib \
1833 /usr
/lpp
/Xamples
/lib \
1837 /usr
/openwin
/share
/lib \
1840 for ac_extension
in a so sl
; do
1841 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1842 ac_x_libraries
=$ac_dir
1849 fi # $ac_x_libraries = NO
1851 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
1852 # Didn't find X anywhere. Cache the known absence of X.
1853 ac_cv_have_x
="have_x=no"
1855 # Record where we found X for the cache.
1856 ac_cv_have_x
="have_x=yes \
1857 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1861 eval "$ac_cv_have_x"
1864 if test "$have_x" != yes; then
1865 echo "$ac_t""$have_x" 1>&6
1868 # If each of the values was on the command line, it overrides each guess.
1869 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1870 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1871 # Update the cache value to reflect the command line values.
1872 ac_cv_have_x
="have_x=yes \
1873 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1874 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1877 if test "$no_x" = yes; then
1878 # Not all programs may use this symbol, but it does not hurt to define it.
1879 cat >> confdefs.h
<<\EOF
1880 #define X_DISPLAY_MISSING 1
1883 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1885 if test -n "$x_includes"; then
1886 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1889 # It would also be nice to do this for all -L options, not just this one.
1890 if test -n "$x_libraries"; then
1891 X_LIBS
="$X_LIBS -L$x_libraries"
1892 # For Solaris; some versions of Sun CC require a space after -R and
1893 # others require no space. Words are not sufficient . . . .
1894 case "`(uname -sr) 2>/dev/null`" in
1896 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1897 echo "configure:1898: checking whether -R must be followed by a space" >&5
1898 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1899 cat > conftest.
$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1907 if { (eval echo configure
:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1911 echo "configure: failed program was:" >&5
1912 cat conftest.
$ac_ext >&5
1917 if test $ac_R_nospace = yes; then
1918 echo "$ac_t""no" 1>&6
1919 X_LIBS
="$X_LIBS -R$x_libraries"
1921 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1922 cat > conftest.
$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1930 if { (eval echo configure
:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1934 echo "configure: failed program was:" >&5
1935 cat conftest.
$ac_ext >&5
1940 if test $ac_R_space = yes; then
1941 echo "$ac_t""yes" 1>&6
1942 X_LIBS
="$X_LIBS -R $x_libraries"
1944 echo "$ac_t""neither works" 1>&6
1947 LIBS
="$ac_xsave_LIBS"
1951 # Check for system-dependent libraries X programs must link with.
1952 # Do this before checking for the system-independent R6 libraries
1953 # (-lICE), since we may need -lsocket or whatever for X linking.
1955 if test "$ISC" = yes; then
1956 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1958 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1959 # libraries were built with DECnet support. And karl@cs.umb.edu says
1960 # the Alpha needs dnet_stub (dnet does not exist).
1961 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1962 echo "configure:1963: checking for dnet_ntoa in -ldnet" >&5
1963 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 ac_save_LIBS
="$LIBS"
1969 cat > conftest.
$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1972 /* Override any gcc2 internal prototype to avoid an error. */
1976 /* We use char because int might match the return type of a gcc2
1977 builtin and then its argument prototype would still apply. */
1984 if { (eval echo configure
:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1986 eval "ac_cv_lib_$ac_lib_var=yes"
1988 echo "configure: failed program was:" >&5
1989 cat conftest.
$ac_ext >&5
1991 eval "ac_cv_lib_$ac_lib_var=no"
1994 LIBS
="$ac_save_LIBS"
1997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1998 echo "$ac_t""yes" 1>&6
1999 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
2001 echo "$ac_t""no" 1>&6
2004 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
2005 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2006 echo "configure:2007: checking for dnet_ntoa in -ldnet_stub" >&5
2007 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2011 ac_save_LIBS
="$LIBS"
2012 LIBS
="-ldnet_stub $LIBS"
2013 cat > conftest.
$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2016 /* Override any gcc2 internal prototype to avoid an error. */
2020 /* We use char because int might match the return type of a gcc2
2021 builtin and then its argument prototype would still apply. */
2028 if { (eval echo configure
:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2030 eval "ac_cv_lib_$ac_lib_var=yes"
2032 echo "configure: failed program was:" >&5
2033 cat conftest.
$ac_ext >&5
2035 eval "ac_cv_lib_$ac_lib_var=no"
2038 LIBS
="$ac_save_LIBS"
2041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2043 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
2045 echo "$ac_t""no" 1>&6
2050 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2051 # to get the SysV transport functions.
2052 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2054 # The nsl library prevents programs from opening the X display
2055 # on Irix 5.2, according to dickey@clark.net.
2056 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2057 echo "configure:2058: checking for gethostbyname" >&5
2058 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2061 cat > conftest.
$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2064 /* System header to define __stub macros and hopefully few prototypes,
2065 which can conflict with char gethostbyname(); below. */
2067 /* Override any gcc2 internal prototype to avoid an error. */
2071 /* We use char because int might match the return type of a gcc2
2072 builtin and then its argument prototype would still apply. */
2073 char gethostbyname();
2077 /* The GNU C library defines this for functions which it implements
2078 to always fail with ENOSYS. Some functions are actually named
2079 something starting with __ and the normal name is an alias. */
2080 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2088 if { (eval echo configure
:2089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2090 eval "ac_cv_func_gethostbyname=yes"
2092 echo "configure: failed program was:" >&5
2093 cat conftest.
$ac_ext >&5
2095 eval "ac_cv_func_gethostbyname=no"
2100 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2101 echo "$ac_t""yes" 1>&6
2104 echo "$ac_t""no" 1>&6
2107 if test $ac_cv_func_gethostbyname = no
; then
2108 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2109 echo "configure:2110: checking for gethostbyname in -lnsl" >&5
2110 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2114 ac_save_LIBS
="$LIBS"
2116 cat > conftest.
$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2119 /* Override any gcc2 internal prototype to avoid an error. */
2123 /* We use char because int might match the return type of a gcc2
2124 builtin and then its argument prototype would still apply. */
2125 char gethostbyname();
2131 if { (eval echo configure
:2132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2133 eval "ac_cv_lib_$ac_lib_var=yes"
2135 echo "configure: failed program was:" >&5
2136 cat conftest.
$ac_ext >&5
2138 eval "ac_cv_lib_$ac_lib_var=no"
2141 LIBS
="$ac_save_LIBS"
2144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2145 echo "$ac_t""yes" 1>&6
2146 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2148 echo "$ac_t""no" 1>&6
2153 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2154 # socket/setsockopt and other routines are undefined under SCO ODT
2155 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2156 # on later versions), says simon@lia.di.epfl.ch: it contains
2157 # gethostby* variants that don't use the nameserver (or something).
2158 # -lsocket must be given before -lnsl if both are needed.
2159 # We assume that if connect needs -lnsl, so does gethostbyname.
2160 echo $ac_n "checking for connect""... $ac_c" 1>&6
2161 echo "configure:2162: checking for connect" >&5
2162 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2165 cat > conftest.
$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2168 /* System header to define __stub macros and hopefully few prototypes,
2169 which can conflict with char connect(); below. */
2171 /* Override any gcc2 internal prototype to avoid an error. */
2175 /* We use char because int might match the return type of a gcc2
2176 builtin and then its argument prototype would still apply. */
2181 /* The GNU C library defines this for functions which it implements
2182 to always fail with ENOSYS. Some functions are actually named
2183 something starting with __ and the normal name is an alias. */
2184 #if defined (__stub_connect) || defined (__stub___connect)
2192 if { (eval echo configure
:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2194 eval "ac_cv_func_connect=yes"
2196 echo "configure: failed program was:" >&5
2197 cat conftest.
$ac_ext >&5
2199 eval "ac_cv_func_connect=no"
2204 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2205 echo "$ac_t""yes" 1>&6
2208 echo "$ac_t""no" 1>&6
2211 if test $ac_cv_func_connect = no
; then
2212 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2213 echo "configure:2214: checking for connect in -lsocket" >&5
2214 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
2218 ac_save_LIBS
="$LIBS"
2219 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
2220 cat > conftest.
$ac_ext <<EOF
2221 #line 2222 "configure"
2222 #include "confdefs.h"
2223 /* Override any gcc2 internal prototype to avoid an error. */
2227 /* We use char because int might match the return type of a gcc2
2228 builtin and then its argument prototype would still apply. */
2235 if { (eval echo configure
:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2237 eval "ac_cv_lib_$ac_lib_var=yes"
2239 echo "configure: failed program was:" >&5
2240 cat conftest.
$ac_ext >&5
2242 eval "ac_cv_lib_$ac_lib_var=no"
2245 LIBS
="$ac_save_LIBS"
2248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2249 echo "$ac_t""yes" 1>&6
2250 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2252 echo "$ac_t""no" 1>&6
2257 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2258 echo $ac_n "checking for remove""... $ac_c" 1>&6
2259 echo "configure:2260: checking for remove" >&5
2260 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 cat > conftest.
$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 /* System header to define __stub macros and hopefully few prototypes,
2267 which can conflict with char remove(); below. */
2269 /* Override any gcc2 internal prototype to avoid an error. */
2273 /* We use char because int might match the return type of a gcc2
2274 builtin and then its argument prototype would still apply. */
2279 /* The GNU C library defines this for functions which it implements
2280 to always fail with ENOSYS. Some functions are actually named
2281 something starting with __ and the normal name is an alias. */
2282 #if defined (__stub_remove) || defined (__stub___remove)
2290 if { (eval echo configure
:2291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2292 eval "ac_cv_func_remove=yes"
2294 echo "configure: failed program was:" >&5
2295 cat conftest.
$ac_ext >&5
2297 eval "ac_cv_func_remove=no"
2302 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2303 echo "$ac_t""yes" 1>&6
2306 echo "$ac_t""no" 1>&6
2309 if test $ac_cv_func_remove = no
; then
2310 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2311 echo "configure:2312: checking for remove in -lposix" >&5
2312 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2314 echo $ac_n "(cached) $ac_c" 1>&6
2316 ac_save_LIBS
="$LIBS"
2317 LIBS
="-lposix $LIBS"
2318 cat > conftest.
$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2321 /* Override any gcc2 internal prototype to avoid an error. */
2325 /* We use char because int might match the return type of a gcc2
2326 builtin and then its argument prototype would still apply. */
2333 if { (eval echo configure
:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2335 eval "ac_cv_lib_$ac_lib_var=yes"
2337 echo "configure: failed program was:" >&5
2338 cat conftest.
$ac_ext >&5
2340 eval "ac_cv_lib_$ac_lib_var=no"
2343 LIBS
="$ac_save_LIBS"
2346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2347 echo "$ac_t""yes" 1>&6
2348 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2350 echo "$ac_t""no" 1>&6
2355 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2356 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2357 echo "configure:2358: checking for shmat" >&5
2358 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2361 cat > conftest.
$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364 /* System header to define __stub macros and hopefully few prototypes,
2365 which can conflict with char shmat(); below. */
2367 /* Override any gcc2 internal prototype to avoid an error. */
2371 /* We use char because int might match the return type of a gcc2
2372 builtin and then its argument prototype would still apply. */
2377 /* The GNU C library defines this for functions which it implements
2378 to always fail with ENOSYS. Some functions are actually named
2379 something starting with __ and the normal name is an alias. */
2380 #if defined (__stub_shmat) || defined (__stub___shmat)
2388 if { (eval echo configure
:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2390 eval "ac_cv_func_shmat=yes"
2392 echo "configure: failed program was:" >&5
2393 cat conftest.
$ac_ext >&5
2395 eval "ac_cv_func_shmat=no"
2400 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2401 echo "$ac_t""yes" 1>&6
2404 echo "$ac_t""no" 1>&6
2407 if test $ac_cv_func_shmat = no
; then
2408 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2409 echo "configure:2410: checking for shmat in -lipc" >&5
2410 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 ac_save_LIBS
="$LIBS"
2416 cat > conftest.
$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2419 /* Override any gcc2 internal prototype to avoid an error. */
2423 /* We use char because int might match the return type of a gcc2
2424 builtin and then its argument prototype would still apply. */
2431 if { (eval echo configure
:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2433 eval "ac_cv_lib_$ac_lib_var=yes"
2435 echo "configure: failed program was:" >&5
2436 cat conftest.
$ac_ext >&5
2438 eval "ac_cv_lib_$ac_lib_var=no"
2441 LIBS
="$ac_save_LIBS"
2444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2445 echo "$ac_t""yes" 1>&6
2446 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2448 echo "$ac_t""no" 1>&6
2454 # Check for libraries that X11R6 Xt/Xaw programs need.
2455 ac_save_LDFLAGS
="$LDFLAGS"
2456 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2457 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2458 # check for ICE first), but we must link in the order -lSM -lICE or
2459 # we get undefined symbols. So assume we have SM if we have ICE.
2460 # These have to be linked with before -lX11, unlike the other
2461 # libraries we check for below, so use a different variable.
2462 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2463 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2464 echo "configure:2465: checking for IceConnectionNumber in -lICE" >&5
2465 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 ac_save_LIBS
="$LIBS"
2470 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
2471 cat > conftest.
$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2474 /* Override any gcc2 internal prototype to avoid an error. */
2478 /* We use char because int might match the return type of a gcc2
2479 builtin and then its argument prototype would still apply. */
2480 char IceConnectionNumber();
2483 IceConnectionNumber()
2486 if { (eval echo configure
:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2488 eval "ac_cv_lib_$ac_lib_var=yes"
2490 echo "configure: failed program was:" >&5
2491 cat conftest.
$ac_ext >&5
2493 eval "ac_cv_lib_$ac_lib_var=no"
2496 LIBS
="$ac_save_LIBS"
2499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2500 echo "$ac_t""yes" 1>&6
2501 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2503 echo "$ac_t""no" 1>&6
2506 LDFLAGS
="$ac_save_LDFLAGS"
2511 test x
$no_x = "xyes" && { echo "configure: error: Openbox requires the X Window System libraries and headers." 1>&2; exit 1; }
2513 test x
$x_includes = "x" && x_includes
="/usr/include"
2514 test x
$x_libraries = "x" && x_libraries
="/usr/lib"
2516 CFLAGS
="$CFLAGS $X_CFLAGS"
2517 CXXFLAGS
="$CXXFLAGS $X_CFLAGS"
2518 LIBS
="$LIBS $X_LIBS"
2519 LDFLAGS
="$LDFLAGS $LIBS $X_PRE_LIBS"
2521 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
2522 echo "configure:2523: checking for XOpenDisplay in -lX11" >&5
2523 ac_lib_var
=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
2524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2527 ac_save_LIBS
="$LIBS"
2529 cat > conftest.
$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2532 /* Override any gcc2 internal prototype to avoid an error. */
2536 /* We use char because int might match the return type of a gcc2
2537 builtin and then its argument prototype would still apply. */
2538 char XOpenDisplay();
2544 if { (eval echo configure
:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2546 eval "ac_cv_lib_$ac_lib_var=yes"
2548 echo "configure: failed program was:" >&5
2549 cat conftest.
$ac_ext >&5
2551 eval "ac_cv_lib_$ac_lib_var=no"
2554 LIBS
="$ac_save_LIBS"
2557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2558 echo "$ac_t""yes" 1>&6
2561 echo "$ac_t""no" 1>&6
2562 { echo "configure: error: Could not find XOpenDisplay in -lX11." 1>&2; exit 1; }
2567 LIBS
="$LIBS $X_EXTRA_LIBS"
2572 echo $ac_n "checking whether to build support for the XShape extension""... $ac_c" 1>&6
2573 echo "configure:2574: checking whether to build support for the XShape extension" >&5
2574 # Check whether --enable-shape or --disable-shape was given.
2575 if test "${enable_shape+set}" = set; then
2576 enableval
="$enable_shape"
2581 : ${enableval="yes"}
2582 if test x
$enableval = "xyes"; then
2583 echo "$ac_t""yes" 1>&6
2584 echo $ac_n "checking for XShapeCombineShape in -lXext""... $ac_c" 1>&6
2585 echo "configure:2586: checking for XShapeCombineShape in -lXext" >&5
2586 ac_lib_var
=`echo Xext'_'XShapeCombineShape | sed 'y%./+-%__p_%'`
2587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 ac_save_LIBS
="$LIBS"
2592 cat > conftest.
$ac_ext <<EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2595 /* Override any gcc2 internal prototype to avoid an error. */
2599 /* We use char because int might match the return type of a gcc2
2600 builtin and then its argument prototype would still apply. */
2601 char XShapeCombineShape();
2604 XShapeCombineShape()
2607 if { (eval echo configure
:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2609 eval "ac_cv_lib_$ac_lib_var=yes"
2611 echo "configure: failed program was:" >&5
2612 cat conftest.
$ac_ext >&5
2614 eval "ac_cv_lib_$ac_lib_var=no"
2617 LIBS
="$ac_save_LIBS"
2620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2621 echo "$ac_t""yes" 1>&6
2622 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
2623 echo "configure:2624: checking for X11/extensions/shape.h" >&5
2624 cat > conftest.
$ac_ext <<EOF
2625 #line 2626 "configure"
2626 #include "confdefs.h"
2627 #include <X11/Xlib.h>
2628 #include <X11/Xutil.h>
2629 #include <X11/extensions/shape.h>
2635 if { (eval echo configure
:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2637 echo "$ac_t""yes" 1>&6
2638 SHAPE
="-DSHAPE"; Xext_lib
="-lXext"
2640 echo "configure: failed program was:" >&5
2641 cat conftest.
$ac_ext >&5
2643 echo "$ac_t""no" 1>&6
2649 echo "$ac_t""no" 1>&6
2653 echo "$ac_t""no" 1>&6
2657 LIBS
="$LIBS $Xext_lib"
2660 echo $ac_n "checking whether to include the Slit""... $ac_c" 1>&6
2661 echo "configure:2662: checking whether to include the Slit" >&5
2662 # Check whether --enable-slit or --disable-slit was given.
2663 if test "${enable_slit+set}" = set; then
2664 enableval
="$enable_slit"
2665 if test x
$enableval = "xyes"; then
2666 echo "$ac_t""yes" 1>&6
2669 echo "$ac_t""no" 1>&6
2672 echo "$ac_t""yes" 1>&6
2680 echo $ac_n "checking whether to include the new WM Spec (DOES NOTHING)""... $ac_c" 1>&6
2681 echo "configure:2682: checking whether to include the new WM Spec (DOES NOTHING)" >&5
2682 # Check whether --enable-newspec or --disable-newspec was given.
2683 if test "${enable_newspec+set}" = set; then
2684 enableval
="$enable_newspec"
2685 if test x
$enableval = "xyes"; then
2686 echo "$ac_t""yes" 1>&6
2687 NEWWMSPEC
="-DNEWWMSPEC"
2689 echo "$ac_t""no" 1>&6
2692 echo "$ac_t""no" 1>&6
2700 echo $ac_n "checking whether to include interlacing image code""... $ac_c" 1>&6
2701 echo "configure:2702: checking whether to include interlacing image code" >&5
2702 # Check whether --enable-interlace or --disable-interlace was given.
2703 if test "${enable_interlace+set}" = set; then
2704 enableval
="$enable_interlace"
2705 if test x
$enableval = "xyes"; then
2706 echo "$ac_t""yes" 1>&6
2707 INTERLACE
="-DINTERLACE"
2709 echo "$ac_t""no" 1>&6
2712 echo "$ac_t""yes" 1>&6
2713 INTERLACE
="-DINTERLACE"
2720 echo $ac_n "checking whether to include Pseudocolor ordered dithering code""... $ac_c" 1>&6
2721 echo "configure:2722: checking whether to include Pseudocolor ordered dithering code" >&5
2722 # Check whether --enable-ordered-pseudo or --disable-ordered-pseudo was given.
2723 if test "${enable_ordered_pseudo+set}" = set; then
2724 enableval
="$enable_ordered_pseudo"
2725 if test x
$enableval = "xyes"; then
2726 echo "$ac_t""yes" 1>&6
2727 ORDEREDPSEUDO
="-DORDEREDPSEUDO"
2729 echo "$ac_t""no" 1>&6
2732 echo "$ac_t""no" 1>&6
2739 echo $ac_n "checking whether to intercept mouse events to clients""... $ac_c" 1>&6
2740 echo "configure:2741: checking whether to intercept mouse events to clients" >&5
2741 # Check whether --enable-clobber or --disable-clobber was given.
2742 if test "${enable_clobber+set}" = set; then
2743 enableval
="$enable_clobber"
2744 if test x
$enableval = "xno"; then
2745 echo "$ac_t""no" 1>&6
2746 CLOBBER
="-DNOCLOBBER"
2748 echo "$ac_t""yes" 1>&6
2751 echo "$ac_t""no" 1>&6
2758 echo $ac_n "checking whether to include verbose debugging code""... $ac_c" 1>&6
2759 echo "configure:2760: checking whether to include verbose debugging code" >&5
2760 # Check whether --enable-debug or --disable-debug was given.
2761 if test "${enable_debug+set}" = set; then
2762 enableval
="$enable_debug"
2763 if test x
$enableval = "xyes"; then
2764 echo "$ac_t""yes" 1>&6
2767 echo "$ac_t""no" 1>&6
2770 echo "$ac_t""no" 1>&6
2777 echo $ac_n "checking whether to include NLS support""... $ac_c" 1>&6
2778 echo "configure:2779: checking whether to include NLS support" >&5
2779 # Check whether --enable-nls or --disable-nls was given.
2780 if test "${enable_nls+set}" = set; then
2781 enableval
="$enable_nls"
2782 if test x
$enableval = "xyes"; then
2783 echo "$ac_t""yes" 1>&6
2786 echo "$ac_t""no" 1>&6
2789 echo "$ac_t""yes" 1>&6
2796 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2797 echo "configure:2798: checking for setlocale in -lxpg4" >&5
2798 ac_lib_var
=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2802 ac_save_LIBS
="$LIBS"
2804 cat > conftest.
$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2807 /* Override any gcc2 internal prototype to avoid an error. */
2811 /* We use char because int might match the return type of a gcc2
2812 builtin and then its argument prototype would still apply. */
2819 if { (eval echo configure
:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2821 eval "ac_cv_lib_$ac_lib_var=yes"
2823 echo "configure: failed program was:" >&5
2824 cat conftest.
$ac_ext >&5
2826 eval "ac_cv_lib_$ac_lib_var=no"
2829 LIBS
="$ac_save_LIBS"
2832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2833 echo "$ac_t""yes" 1>&6
2836 echo "$ac_t""no" 1>&6
2840 for ac_prog
in gencat
2842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2843 set dummy
$ac_prog; ac_word
=$2
2844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2845 echo "configure:2846: checking for $ac_word" >&5
2846 if eval "test \"`echo '$''{'ac_cv_prog_gencat_cmd'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2849 if test -n "$gencat_cmd"; then
2850 ac_cv_prog_gencat_cmd
="$gencat_cmd" # Let the user override the test.
2852 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2854 for ac_dir
in $ac_dummy; do
2855 test -z "$ac_dir" && ac_dir
=.
2856 if test -f $ac_dir/$ac_word; then
2857 ac_cv_prog_gencat_cmd
="$ac_prog"
2864 gencat_cmd
="$ac_cv_prog_gencat_cmd"
2865 if test -n "$gencat_cmd"; then
2866 echo "$ac_t""$gencat_cmd" 1>&6
2868 echo "$ac_t""no" 1>&6
2871 test -n "$gencat_cmd" && break
2874 if test x
$gencat_cmd = "x"; then
2880 echo $ac_n "checking whether to use the new timed pixmap cache""... $ac_c" 1>&6
2881 echo "configure:2882: checking whether to use the new timed pixmap cache" >&5
2882 # Check whether --enable-timed-cache or --disable-timed-cache was given.
2883 if test "${enable_timed_cache+set}" = set; then
2884 enableval
="$enable_timed_cache"
2885 if test x
$enableval = "xyes"; then
2886 echo "$ac_t""yes" 1>&6
2887 TIMEDCACHE
="-DTIMEDCACHE"
2889 echo "$ac_t""no" 1>&6
2892 echo "$ac_t""yes" 1>&6
2893 TIMEDCACHE
="-DTIMEDCACHE"
2899 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2900 echo "configure:2901: checking return type of signal handlers" >&5
2901 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2902 echo $ac_n "(cached) $ac_c" 1>&6
2904 cat > conftest.
$ac_ext <<EOF
2905 #line 2906 "configure"
2906 #include "confdefs.h"
2907 #include <sys/types.h>
2913 extern "C" void (*signal (int, void (*)(int)))(int);
2915 void (*signal ()) ();
2922 if { (eval echo configure
:2923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2924 ac_cv_type_signal
=void
2926 echo "configure: failed program was:" >&5
2927 cat conftest.
$ac_ext >&5
2929 ac_cv_type_signal
=int
2934 echo "$ac_t""$ac_cv_type_signal" 1>&6
2935 cat >> confdefs.h
<<EOF
2936 #define RETSIGTYPE $ac_cv_type_signal
2941 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2942 echo "configure:2943: checking whether to enable maintainer-specific portions of Makefiles" >&5
2943 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2944 if test "${enable_maintainer_mode+set}" = set; then
2945 enableval
="$enable_maintainer_mode"
2946 USE_MAINTAINER_MODE
=$enableval
2948 USE_MAINTAINER_MODE
=no
2951 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2954 if test $USE_MAINTAINER_MODE = yes; then
2955 MAINTAINER_MODE_TRUE
=
2956 MAINTAINER_MODE_FALSE
='#'
2958 MAINTAINER_MODE_TRUE
='#'
2959 MAINTAINER_MODE_FALSE
=
2961 MAINT
=$MAINTAINER_MODE_TRUE
2966 echo "$ac_t"" $PACKAGE version $VERSION configured successfully." 1>&6
2968 echo "$ac_t""Using '$prefix' for installation." 1>&6
2969 echo "$ac_t""Using '$CXX' for C++ compiler." 1>&6
2970 echo "$ac_t""Building with '$CXXFLAGS' for C++ compiler flags." 1>&6
2971 echo "$ac_t""Building with '$LIBS' for linker flags." 1>&6
2978 cat > confcache
<<\EOF
2979 # This file is a shell script that caches the results of configure
2980 # tests run on this system so they can be shared between configure
2981 # scripts and configure runs. It is not useful on other systems.
2982 # If it contains results you don't want to keep, you may remove or edit it.
2984 # By default, configure uses ./config.cache as the cache file,
2985 # creating it if it does not exist already. You can give configure
2986 # the --cache-file=FILE option to use a different cache file; that is
2987 # what configure does when it calls configure scripts in
2988 # subdirectories, so they share the cache.
2989 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2990 # config.status only pays attention to the cache file if you give it the
2991 # --recheck option to rerun configure.
2994 # The following way of writing the cache mishandles newlines in values,
2995 # but we know of no workaround that is simple, portable, and efficient.
2996 # So, don't put newlines in cache variables' values.
2997 # Ultrix sh set writes to stderr and can't be redirected directly,
2998 # and sets the high bit in the cache file unless we assign to the vars.
3000 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3002 # `set' does not quote correctly, so add quotes (double-quote substitution
3003 # turns \\\\ into \\, and sed turns \\ into \).
3005 -e "s/'/'\\\\''/g" \
3006 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3009 # `set' quotes correctly as required by POSIX, so do not add quotes.
3010 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3013 if cmp -s $cache_file confcache
; then
3016 if test -w $cache_file; then
3017 echo "updating cache $cache_file"
3018 cat confcache
> $cache_file
3020 echo "not updating unwritable cache $cache_file"
3025 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3027 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3028 # Let make expand exec_prefix.
3029 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3031 # Any assignment to VPATH causes Sun make to only execute
3032 # the first set of double-colon rules, so remove it if not needed.
3033 # If there is a colon in the path, we need to keep it.
3034 if test "x$srcdir" = x.
; then
3035 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3038 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3040 DEFS
=-DHAVE_CONFIG_H
3042 # Without the "./", some shells look in PATH for config.status.
3043 : ${CONFIG_STATUS=./config.status}
3045 echo creating
$CONFIG_STATUS
3046 rm -f $CONFIG_STATUS
3047 cat > $CONFIG_STATUS <<EOF
3049 # Generated automatically by configure.
3050 # Run this file to recreate the current configuration.
3051 # This directory was configured as follows,
3052 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3054 # $0 $ac_configure_args
3056 # Compiler output produced by configure, useful for debugging
3057 # configure, is in ./config.log if it exists.
3059 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3062 case "\$ac_option" in
3063 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3064 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3065 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3066 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3067 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3069 -help | --help | --hel | --he | --h)
3070 echo "\$ac_cs_usage"; exit 0 ;;
3071 *) echo "\$ac_cs_usage"; exit 1 ;;
3075 ac_given_srcdir=$srcdir
3076 ac_given_INSTALL="$INSTALL"
3078 trap 'rm -fr `echo "Makefile
3082 data/styles/Makefile
3100 version.h config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3102 cat >> $CONFIG_STATUS <<EOF
3104 # Protect against being on the right side of a sed subst in config.status.
3105 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3106 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3110 s%@CFLAGS@%$CFLAGS%g
3111 s%@CPPFLAGS@%$CPPFLAGS%g
3112 s%@CXXFLAGS@%$CXXFLAGS%g
3113 s%@FFLAGS@%$FFLAGS%g
3115 s%@LDFLAGS@%$LDFLAGS%g
3117 s%@exec_prefix@%$exec_prefix%g
3118 s%@prefix@%$prefix%g
3119 s%@program_transform_name@%$program_transform_name%g
3120 s%@bindir@%$bindir%g
3121 s%@sbindir@%$sbindir%g
3122 s%@libexecdir@%$libexecdir%g
3123 s%@datadir@%$datadir%g
3124 s%@sysconfdir@%$sysconfdir%g
3125 s%@sharedstatedir@%$sharedstatedir%g
3126 s%@localstatedir@%$localstatedir%g
3127 s%@libdir@%$libdir%g
3128 s%@includedir@%$includedir%g
3129 s%@oldincludedir@%$oldincludedir%g
3130 s%@infodir@%$infodir%g
3131 s%@mandir@%$mandir%g
3132 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3133 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3134 s%@INSTALL_DATA@%$INSTALL_DATA%g
3135 s%@PACKAGE@%$PACKAGE%g
3136 s%@VERSION@%$VERSION%g
3137 s%@ACLOCAL@%$ACLOCAL%g
3138 s%@AUTOCONF@%$AUTOCONF%g
3139 s%@AUTOMAKE@%$AUTOMAKE%g
3140 s%@AUTOHEADER@%$AUTOHEADER%g
3141 s%@MAKEINFO@%$MAKEINFO%g
3142 s%@SET_MAKE@%$SET_MAKE%g
3145 s%@regex_cmd@%$regex_cmd%g
3146 s%@CXXCPP@%$CXXCPP%g
3147 s%@X_CFLAGS@%$X_CFLAGS%g
3148 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3149 s%@X_LIBS@%$X_LIBS%g
3150 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3153 s%@NEWWMSPEC@%$NEWWMSPEC%g
3154 s%@INTERLACE@%$INTERLACE%g
3155 s%@ORDEREDPSEUDO@%$ORDEREDPSEUDO%g
3156 s%@CLOBBER@%$CLOBBER%g
3159 s%@gencat_cmd@%$gencat_cmd%g
3160 s%@TIMEDCACHE@%$TIMEDCACHE%g
3161 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3162 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3168 cat >> $CONFIG_STATUS <<\EOF
3170 # Split the substitutions into bite-sized pieces for seds with
3171 # small command number limits, like on Digital OSF/1 and HP-UX.
3172 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3173 ac_file
=1 # Number of current file.
3174 ac_beg
=1 # First line for current file.
3175 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3178 while $ac_more_lines; do
3179 if test $ac_beg -gt 1; then
3180 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3182 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3184 if test ! -s conftest.s
$ac_file; then
3186 rm -f conftest.s
$ac_file
3188 if test -z "$ac_sed_cmds"; then
3189 ac_sed_cmds
="sed -f conftest.s$ac_file"
3191 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3193 ac_file
=`expr $ac_file + 1`
3195 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3198 if test -z "$ac_sed_cmds"; then
3203 cat >> $CONFIG_STATUS <<EOF
3205 CONFIG_FILES=\${CONFIG_FILES-"Makefile
3209 data/styles/Makefile
3229 cat >> $CONFIG_STATUS <<\EOF
3230 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3231 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3233 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3234 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3235 *) ac_file_in
="${ac_file}.in" ;;
3238 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3240 # Remove last slash and all that follows it. Not all systems have dirname.
3241 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3242 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3243 # The file is in a subdirectory.
3244 test ! -d "$ac_dir" && mkdir "$ac_dir"
3245 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3246 # A "../" for each directory in $ac_dir_suffix.
3247 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3249 ac_dir_suffix
= ac_dots
=
3252 case "$ac_given_srcdir" in
3254 if test -z "$ac_dots"; then top_srcdir
=.
3255 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3256 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3258 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3259 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3262 case "$ac_given_INSTALL" in
3263 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3264 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3267 echo creating
"$ac_file"
3269 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3271 *Makefile
*) ac_comsub
="1i\\
3272 # $configure_input" ;;
3276 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3278 s%@configure_input@%$configure_input%g
3279 s%@srcdir@%$srcdir%g
3280 s%@top_srcdir@%$top_srcdir%g
3281 s%@INSTALL@%$INSTALL%g
3282 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3286 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3287 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3289 # ac_d sets the value in "#define NAME VALUE" lines.
3290 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3291 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3294 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3295 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3296 ac_uB
='\([ ]\)%\1#\2define\3'
3299 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3300 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3301 ac_eB
='$%\1#\2define\3'
3305 if test "${CONFIG_HEADERS+set}" != set; then
3307 cat >> $CONFIG_STATUS <<EOF
3308 CONFIG_HEADERS="config.h"
3310 cat >> $CONFIG_STATUS <<\EOF
3312 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3313 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3315 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3316 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3317 *) ac_file_in
="${ac_file}.in" ;;
3320 echo creating
$ac_file
3322 rm -f conftest.frag conftest.
in conftest.out
3323 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3324 cat $ac_file_inputs > conftest.
in
3328 # Transform confdefs.h into a sed script conftest.vals that substitutes
3329 # the proper values into config.h.in to produce config.h. And first:
3330 # Protect against being on the right side of a sed subst in config.status.
3331 # Protect against being in an unquoted here document in config.status.
3333 cat > conftest.hdr
<<\EOF
3336 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3340 sed -n -f conftest.hdr confdefs.h > conftest.vals
3343 # This sed command replaces #undef with comments. This is necessary, for
3344 # example, in the case of _POSIX_SOURCE, which is predefined and required
3345 # on some systems where configure will not decide to define it.
3346 cat >> conftest.vals <<\EOF
3347 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3350 # Break up conftest.vals because some shells have a limit on
3351 # the size of here documents, and old seds have small limits too.
3356 ac_lines=`grep -c . conftest.vals
`
3357 # grep -c gives empty output for an empty file on some AIX systems.
3358 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3359 # Write a limited-size here document to conftest.frag.
3360 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3361 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3363 sed -f conftest.frag conftest.in > conftest.out
3365 mv conftest.out conftest.in
3367 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3369 mv conftest.tail conftest.vals
3373 cat >> $CONFIG_STATUS <<\EOF
3374 rm -f conftest.frag conftest.h
3375 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3376 cat conftest.in >> conftest.h
3378 if cmp -s $ac_file conftest.h 2>/dev/null; then
3379 echo "$ac_file is unchanged"
3382 # Remove last slash and all that follows it. Not all systems have dirname.
3383 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3384 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3385 # The file is in a subdirectory.
3386 test ! -d "$ac_dir" && mkdir "$ac_dir"
3389 mv conftest.h $ac_file
3394 cat >> $CONFIG_STATUS <<EOF
3398 cat >> $CONFIG_STATUS <<\EOF
3399 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3403 chmod +x $CONFIG_STATUS
3404 rm -fr confdefs* $ac_clean_files
3405 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1