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'
1231 # Extract the first word of "$ac_prog", so it can be a program name with args.
1232 set dummy
$ac_prog; ac_word
=$2
1233 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1234 echo "configure:1235: checking for $ac_word" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_regex_cmd'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 if test -n "$regex_cmd"; then
1239 ac_cv_prog_regex_cmd
="$regex_cmd" # Let the user override the test.
1241 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1243 for ac_dir
in $ac_dummy; do
1244 test -z "$ac_dir" && ac_dir
=.
1245 if test -f $ac_dir/$ac_word; then
1246 ac_cv_prog_regex_cmd
="$ac_prog"
1253 regex_cmd
="$ac_cv_prog_regex_cmd"
1254 if test -n "$regex_cmd"; then
1255 echo "$ac_t""$regex_cmd" 1>&6
1257 echo "$ac_t""no" 1>&6
1260 test -n "$regex_cmd" && break
1263 if test x
$regex_cmd = "x"; then
1264 { echo "configure: error: error. sed is required to build the default menu file." 1>&2; exit 1; }
1267 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1268 echo "configure:1269: checking how to run the C preprocessor" >&5
1269 # On Suns, sometimes $CPP names a directory.
1270 if test -n "$CPP" && test -d "$CPP"; then
1273 if test -z "$CPP"; then
1274 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1277 # This must be in double quotes, not single quotes, because CPP may get
1278 # substituted into the Makefile and "${CC-cc}" will confuse make.
1280 # On the NeXT, cc -E runs the code through the compiler's parser,
1281 # not just through cpp.
1282 cat > conftest.
$ac_ext <<EOF
1283 #line 1284 "configure"
1284 #include "confdefs.h"
1288 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1289 { (eval echo configure
:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1290 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1291 if test -z "$ac_err"; then
1295 echo "configure: failed program was:" >&5
1296 cat conftest.
$ac_ext >&5
1298 CPP
="${CC-cc} -E -traditional-cpp"
1299 cat > conftest.
$ac_ext <<EOF
1300 #line 1301 "configure"
1301 #include "confdefs.h"
1305 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1306 { (eval echo configure
:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1307 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1308 if test -z "$ac_err"; then
1312 echo "configure: failed program was:" >&5
1313 cat conftest.
$ac_ext >&5
1315 CPP
="${CC-cc} -nologo -E"
1316 cat > conftest.
$ac_ext <<EOF
1317 #line 1318 "configure"
1318 #include "confdefs.h"
1322 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1323 { (eval echo configure
:1324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1324 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1325 if test -z "$ac_err"; then
1329 echo "configure: failed program was:" >&5
1330 cat conftest.
$ac_ext >&5
1339 ac_cv_prog_CPP
="$CPP"
1341 CPP
="$ac_cv_prog_CPP"
1343 ac_cv_prog_CPP
="$CPP"
1345 echo "$ac_t""$CPP" 1>&6
1347 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
1349 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1350 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1351 echo "configure:1352: checking for $ac_hdr" >&5
1352 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 cat > conftest.
$ac_ext <<EOF
1356 #line 1357 "configure"
1357 #include "confdefs.h"
1360 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1361 { (eval echo configure
:1362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1362 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1363 if test -z "$ac_err"; then
1365 eval "ac_cv_header_$ac_safe=yes"
1368 echo "configure: failed program was:" >&5
1369 cat conftest.
$ac_ext >&5
1371 eval "ac_cv_header_$ac_safe=no"
1375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1376 echo "$ac_t""yes" 1>&6
1377 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1378 cat >> confdefs.h
<<EOF
1379 #define $ac_tr_hdr 1
1383 echo "$ac_t""no" 1>&6
1387 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1388 echo "configure:1389: checking whether time.h and sys/time.h may both be included" >&5
1389 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 cat > conftest.
$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1395 #include <sys/types.h>
1396 #include <sys/time.h>
1402 if { (eval echo configure
:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1404 ac_cv_header_time
=yes
1406 echo "configure: failed program was:" >&5
1407 cat conftest.
$ac_ext >&5
1409 ac_cv_header_time
=no
1414 echo "$ac_t""$ac_cv_header_time" 1>&6
1415 if test $ac_cv_header_time = yes; then
1416 cat >> confdefs.h
<<\EOF
1417 #define TIME_WITH_SYS_TIME 1
1423 for ac_func
in basename
1425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1426 echo "configure:1427: checking for $ac_func" >&5
1427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 cat > conftest.
$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1433 /* System header to define __stub macros and hopefully few prototypes,
1434 which can conflict with char $ac_func(); below. */
1436 /* Override any gcc2 internal prototype to avoid an error. */
1437 /* We use char because int might match the return type of a gcc2
1438 builtin and then its argument prototype would still apply. */
1443 /* The GNU C library defines this for functions which it implements
1444 to always fail with ENOSYS. Some functions are actually named
1445 something starting with __ and the normal name is an alias. */
1446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1454 if { (eval echo configure
:1455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1456 eval "ac_cv_func_$ac_func=yes"
1458 echo "configure: failed program was:" >&5
1459 cat conftest.
$ac_ext >&5
1461 eval "ac_cv_func_$ac_func=no"
1466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1467 echo "$ac_t""yes" 1>&6
1468 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1469 cat >> confdefs.h
<<EOF
1470 #define $ac_tr_func 1
1474 echo "$ac_t""no" 1>&6
1475 echo $ac_n "checking for basename in -lgen""... $ac_c" 1>&6
1476 echo "configure:1477: checking for basename in -lgen" >&5
1477 ac_lib_var
=`echo gen'_'basename | sed 'y%./+-%__p_%'`
1478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1481 ac_save_LIBS
="$LIBS"
1483 cat > conftest.
$ac_ext <<EOF
1484 #line 1485 "configure"
1485 #include "confdefs.h"
1486 /* Override any gcc2 internal prototype to avoid an error. */
1487 /* We use char because int might match the return type of a gcc2
1488 builtin and then its argument prototype would still apply. */
1495 if { (eval echo configure
:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1497 eval "ac_cv_lib_$ac_lib_var=yes"
1499 echo "configure: failed program was:" >&5
1500 cat conftest.
$ac_ext >&5
1502 eval "ac_cv_lib_$ac_lib_var=no"
1505 LIBS
="$ac_save_LIBS"
1508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1509 echo "$ac_t""yes" 1>&6
1510 cat >> confdefs.h
<<\EOF
1511 #define HAVE_BASENAME 1
1515 echo "$ac_t""no" 1>&6
1521 for ac_func
in getpid setlocale sigaction strftime strcasestr snprintf vsnprintf catopen catgets catclose
1523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1524 echo "configure:1525: checking for $ac_func" >&5
1525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1528 cat > conftest.
$ac_ext <<EOF
1529 #line 1530 "configure"
1530 #include "confdefs.h"
1531 /* System header to define __stub macros and hopefully few prototypes,
1532 which can conflict with char $ac_func(); below. */
1534 /* Override any gcc2 internal prototype to avoid an error. */
1535 /* We use char because int might match the return type of a gcc2
1536 builtin and then its argument prototype would still apply. */
1541 /* The GNU C library defines this for functions which it implements
1542 to always fail with ENOSYS. Some functions are actually named
1543 something starting with __ and the normal name is an alias. */
1544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1552 if { (eval echo configure
:1553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1554 eval "ac_cv_func_$ac_func=yes"
1556 echo "configure: failed program was:" >&5
1557 cat conftest.
$ac_ext >&5
1559 eval "ac_cv_func_$ac_func=no"
1564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1565 echo "$ac_t""yes" 1>&6
1566 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1567 cat >> confdefs.h
<<EOF
1568 #define $ac_tr_func 1
1572 echo "$ac_t""no" 1>&6
1576 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
1577 echo "configure:1578: checking for t_open in -lnsl" >&5
1578 ac_lib_var
=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
1579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1582 ac_save_LIBS
="$LIBS"
1584 cat > conftest.
$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1587 /* Override any gcc2 internal prototype to avoid an error. */
1588 /* We use char because int might match the return type of a gcc2
1589 builtin and then its argument prototype would still apply. */
1596 if { (eval echo configure
:1597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1598 eval "ac_cv_lib_$ac_lib_var=yes"
1600 echo "configure: failed program was:" >&5
1601 cat conftest.
$ac_ext >&5
1603 eval "ac_cv_lib_$ac_lib_var=no"
1606 LIBS
="$ac_save_LIBS"
1609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1610 echo "$ac_t""yes" 1>&6
1613 echo "$ac_t""no" 1>&6
1616 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1617 echo "configure:1618: checking for socket in -lsocket" >&5
1618 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 ac_save_LIBS
="$LIBS"
1623 LIBS
="-lsocket $LIBS"
1624 cat > conftest.
$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 /* Override any gcc2 internal prototype to avoid an error. */
1628 /* We use char because int might match the return type of a gcc2
1629 builtin and then its argument prototype would still apply. */
1636 if { (eval echo configure
:1637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1638 eval "ac_cv_lib_$ac_lib_var=yes"
1640 echo "configure: failed program was:" >&5
1641 cat conftest.
$ac_ext >&5
1643 eval "ac_cv_lib_$ac_lib_var=no"
1646 LIBS
="$ac_save_LIBS"
1649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1650 echo "$ac_t""yes" 1>&6
1651 LIBS
="$LIBS -lsocket"
1653 echo "$ac_t""no" 1>&6
1657 # If we find X, set shell vars x_includes and x_libraries to the
1658 # paths, otherwise set no_x=yes.
1659 # Uses ac_ vars as temps to allow command line to override cache and checks.
1660 # --without-x overrides everything else, but does not touch the cache.
1661 echo $ac_n "checking for X""... $ac_c" 1>&6
1662 echo "configure:1663: checking for X" >&5
1664 # Check whether --with-x or --without-x was given.
1665 if test "${with_x+set}" = set; then
1670 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1671 if test "x$with_x" = xno
; then
1672 # The user explicitly disabled X.
1675 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1676 # Both variables are already set.
1679 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 # One or both of the vars are not set, and there is no cached value.
1683 ac_x_includes
=NO ac_x_libraries
=NO
1685 if mkdir conftestdir
; then
1687 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1688 cat > Imakefile
<<'EOF'
1690 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1692 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1693 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1694 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1695 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1696 for ac_extension
in a so sl
; do
1697 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1698 test -f $ac_im_libdir/libX11.
$ac_extension; then
1699 ac_im_usrlibdir
=$ac_im_libdir; break
1702 # Screen out bogus values from the imake configuration. They are
1703 # bogus both because they are the default anyway, and because
1704 # using them would break gcc on systems where it needs fixed includes.
1705 case "$ac_im_incroot" in
1707 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1709 case "$ac_im_usrlibdir" in
1711 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1718 if test "$ac_x_includes" = NO
; then
1719 # Guess where to find include files, by looking for this one X11 .h file.
1720 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1722 # First, try using that file with no special directory specified.
1723 cat > conftest.
$ac_ext <<EOF
1724 #line 1725 "configure"
1725 #include "confdefs.h"
1726 #include <$x_direct_test_include>
1728 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1729 { (eval echo configure
:1730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1730 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1731 if test -z "$ac_err"; then
1733 # We can compile using X headers with no special include directory.
1737 echo "configure: failed program was:" >&5
1738 cat conftest.
$ac_ext >&5
1740 # Look for the header file in a standard set of common directories.
1741 # Check X11 before X11Rn because it is often a symlink to the current release.
1744 /usr
/X
11R
6/include \
1745 /usr
/X
11R
5/include \
1746 /usr
/X
11R
4/include \
1749 /usr
/include
/X11R6 \
1750 /usr
/include
/X11R5 \
1751 /usr
/include
/X11R4 \
1753 /usr
/local
/X
11/include \
1754 /usr
/local
/X
11R
6/include \
1755 /usr
/local
/X
11R
5/include \
1756 /usr
/local
/X
11R
4/include \
1758 /usr
/local
/include
/X11 \
1759 /usr
/local
/include
/X11R6 \
1760 /usr
/local
/include
/X11R5 \
1761 /usr
/local
/include
/X11R4 \
1765 /usr
/XFree
86/include
/X11 \
1768 /usr
/local
/include \
1769 /usr
/unsupported
/include \
1770 /usr
/athena
/include \
1771 /usr
/local
/x
11r
5/include \
1772 /usr
/lpp
/Xamples
/include \
1774 /usr
/openwin
/include \
1775 /usr
/openwin
/share
/include \
1778 if test -r "$ac_dir/$x_direct_test_include"; then
1779 ac_x_includes
=$ac_dir
1785 fi # $ac_x_includes = NO
1787 if test "$ac_x_libraries" = NO
; then
1788 # Check for the libraries.
1790 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1791 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1793 # See if we find them without any special options.
1794 # Don't add to $LIBS permanently.
1795 ac_save_LIBS
="$LIBS"
1796 LIBS
="-l$x_direct_test_library $LIBS"
1797 cat > conftest.
$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1802 ${x_direct_test_function}()
1805 if { (eval echo configure
:1806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1807 LIBS
="$ac_save_LIBS"
1808 # We can link X programs with no special library path.
1811 echo "configure: failed program was:" >&5
1812 cat conftest.
$ac_ext >&5
1814 LIBS
="$ac_save_LIBS"
1815 # First see if replacing the include by lib works.
1816 # Check X11 before X11Rn because it is often a symlink to the current release.
1817 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1828 /usr
/local
/X
11/lib \
1829 /usr
/local
/X
11R
6/lib \
1830 /usr
/local
/X
11R
5/lib \
1831 /usr
/local
/X
11R
4/lib \
1833 /usr
/local
/lib
/X11 \
1834 /usr
/local
/lib
/X11R6 \
1835 /usr
/local
/lib
/X11R5 \
1836 /usr
/local
/lib
/X11R4 \
1840 /usr
/XFree
86/lib
/X11 \
1844 /usr
/unsupported
/lib \
1846 /usr
/local
/x
11r
5/lib \
1847 /usr
/lpp
/Xamples
/lib \
1851 /usr
/openwin
/share
/lib \
1854 for ac_extension
in a so sl
; do
1855 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1856 ac_x_libraries
=$ac_dir
1863 fi # $ac_x_libraries = NO
1865 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
1866 # Didn't find X anywhere. Cache the known absence of X.
1867 ac_cv_have_x
="have_x=no"
1869 # Record where we found X for the cache.
1870 ac_cv_have_x
="have_x=yes \
1871 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1875 eval "$ac_cv_have_x"
1878 if test "$have_x" != yes; then
1879 echo "$ac_t""$have_x" 1>&6
1882 # If each of the values was on the command line, it overrides each guess.
1883 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1884 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1885 # Update the cache value to reflect the command line values.
1886 ac_cv_have_x
="have_x=yes \
1887 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1888 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1891 if test "$no_x" = yes; then
1892 # Not all programs may use this symbol, but it does not hurt to define it.
1893 cat >> confdefs.h
<<\EOF
1894 #define X_DISPLAY_MISSING 1
1897 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1899 if test -n "$x_includes"; then
1900 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1903 # It would also be nice to do this for all -L options, not just this one.
1904 if test -n "$x_libraries"; then
1905 X_LIBS
="$X_LIBS -L$x_libraries"
1906 # For Solaris; some versions of Sun CC require a space after -R and
1907 # others require no space. Words are not sufficient . . . .
1908 case "`(uname -sr) 2>/dev/null`" in
1910 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1911 echo "configure:1912: checking whether -R must be followed by a space" >&5
1912 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1913 cat > conftest.
$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1921 if { (eval echo configure
:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1925 echo "configure: failed program was:" >&5
1926 cat conftest.
$ac_ext >&5
1931 if test $ac_R_nospace = yes; then
1932 echo "$ac_t""no" 1>&6
1933 X_LIBS
="$X_LIBS -R$x_libraries"
1935 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1936 cat > conftest.
$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1944 if { (eval echo configure
:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1948 echo "configure: failed program was:" >&5
1949 cat conftest.
$ac_ext >&5
1954 if test $ac_R_space = yes; then
1955 echo "$ac_t""yes" 1>&6
1956 X_LIBS
="$X_LIBS -R $x_libraries"
1958 echo "$ac_t""neither works" 1>&6
1961 LIBS
="$ac_xsave_LIBS"
1965 # Check for system-dependent libraries X programs must link with.
1966 # Do this before checking for the system-independent R6 libraries
1967 # (-lICE), since we may need -lsocket or whatever for X linking.
1969 if test "$ISC" = yes; then
1970 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1972 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1973 # libraries were built with DECnet support. And karl@cs.umb.edu says
1974 # the Alpha needs dnet_stub (dnet does not exist).
1975 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1976 echo "configure:1977: checking for dnet_ntoa in -ldnet" >&5
1977 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1981 ac_save_LIBS
="$LIBS"
1983 cat > conftest.
$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1986 /* Override any gcc2 internal prototype to avoid an error. */
1987 /* We use char because int might match the return type of a gcc2
1988 builtin and then its argument prototype would still apply. */
1995 if { (eval echo configure
:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1997 eval "ac_cv_lib_$ac_lib_var=yes"
1999 echo "configure: failed program was:" >&5
2000 cat conftest.
$ac_ext >&5
2002 eval "ac_cv_lib_$ac_lib_var=no"
2005 LIBS
="$ac_save_LIBS"
2008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2009 echo "$ac_t""yes" 1>&6
2010 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
2012 echo "$ac_t""no" 1>&6
2015 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
2016 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2017 echo "configure:2018: checking for dnet_ntoa in -ldnet_stub" >&5
2018 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 ac_save_LIBS
="$LIBS"
2023 LIBS
="-ldnet_stub $LIBS"
2024 cat > conftest.
$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2027 /* Override any gcc2 internal prototype to avoid an error. */
2028 /* We use char because int might match the return type of a gcc2
2029 builtin and then its argument prototype would still apply. */
2036 if { (eval echo configure
:2037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2038 eval "ac_cv_lib_$ac_lib_var=yes"
2040 echo "configure: failed program was:" >&5
2041 cat conftest.
$ac_ext >&5
2043 eval "ac_cv_lib_$ac_lib_var=no"
2046 LIBS
="$ac_save_LIBS"
2049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2050 echo "$ac_t""yes" 1>&6
2051 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
2053 echo "$ac_t""no" 1>&6
2058 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2059 # to get the SysV transport functions.
2060 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2062 # The nsl library prevents programs from opening the X display
2063 # on Irix 5.2, according to dickey@clark.net.
2064 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2065 echo "configure:2066: checking for gethostbyname" >&5
2066 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 cat > conftest.
$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2072 /* System header to define __stub macros and hopefully few prototypes,
2073 which can conflict with char gethostbyname(); below. */
2075 /* Override any gcc2 internal prototype to avoid an error. */
2076 /* We use char because int might match the return type of a gcc2
2077 builtin and then its argument prototype would still apply. */
2078 char gethostbyname();
2082 /* The GNU C library defines this for functions which it implements
2083 to always fail with ENOSYS. Some functions are actually named
2084 something starting with __ and the normal name is an alias. */
2085 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2093 if { (eval echo configure
:2094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2095 eval "ac_cv_func_gethostbyname=yes"
2097 echo "configure: failed program was:" >&5
2098 cat conftest.
$ac_ext >&5
2100 eval "ac_cv_func_gethostbyname=no"
2105 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2106 echo "$ac_t""yes" 1>&6
2109 echo "$ac_t""no" 1>&6
2112 if test $ac_cv_func_gethostbyname = no
; then
2113 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2114 echo "configure:2115: checking for gethostbyname in -lnsl" >&5
2115 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2119 ac_save_LIBS
="$LIBS"
2121 cat > conftest.
$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 /* Override any gcc2 internal prototype to avoid an error. */
2125 /* We use char because int might match the return type of a gcc2
2126 builtin and then its argument prototype would still apply. */
2127 char gethostbyname();
2133 if { (eval echo configure
:2134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2135 eval "ac_cv_lib_$ac_lib_var=yes"
2137 echo "configure: failed program was:" >&5
2138 cat conftest.
$ac_ext >&5
2140 eval "ac_cv_lib_$ac_lib_var=no"
2143 LIBS
="$ac_save_LIBS"
2146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2147 echo "$ac_t""yes" 1>&6
2148 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2150 echo "$ac_t""no" 1>&6
2155 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2156 # socket/setsockopt and other routines are undefined under SCO ODT
2157 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2158 # on later versions), says simon@lia.di.epfl.ch: it contains
2159 # gethostby* variants that don't use the nameserver (or something).
2160 # -lsocket must be given before -lnsl if both are needed.
2161 # We assume that if connect needs -lnsl, so does gethostbyname.
2162 echo $ac_n "checking for connect""... $ac_c" 1>&6
2163 echo "configure:2164: checking for connect" >&5
2164 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2167 cat > conftest.
$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2170 /* System header to define __stub macros and hopefully few prototypes,
2171 which can conflict with char connect(); below. */
2173 /* Override any gcc2 internal prototype to avoid an error. */
2174 /* We use char because int might match the return type of a gcc2
2175 builtin and then its argument prototype would still apply. */
2180 /* The GNU C library defines this for functions which it implements
2181 to always fail with ENOSYS. Some functions are actually named
2182 something starting with __ and the normal name is an alias. */
2183 #if defined (__stub_connect) || defined (__stub___connect)
2191 if { (eval echo configure
:2192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2193 eval "ac_cv_func_connect=yes"
2195 echo "configure: failed program was:" >&5
2196 cat conftest.
$ac_ext >&5
2198 eval "ac_cv_func_connect=no"
2203 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2204 echo "$ac_t""yes" 1>&6
2207 echo "$ac_t""no" 1>&6
2210 if test $ac_cv_func_connect = no
; then
2211 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2212 echo "configure:2213: checking for connect in -lsocket" >&5
2213 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2215 echo $ac_n "(cached) $ac_c" 1>&6
2217 ac_save_LIBS
="$LIBS"
2218 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
2219 cat > conftest.
$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2222 /* Override any gcc2 internal prototype to avoid an error. */
2223 /* We use char because int might match the return type of a gcc2
2224 builtin and then its argument prototype would still apply. */
2231 if { (eval echo configure
:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2233 eval "ac_cv_lib_$ac_lib_var=yes"
2235 echo "configure: failed program was:" >&5
2236 cat conftest.
$ac_ext >&5
2238 eval "ac_cv_lib_$ac_lib_var=no"
2241 LIBS
="$ac_save_LIBS"
2244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2245 echo "$ac_t""yes" 1>&6
2246 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2248 echo "$ac_t""no" 1>&6
2253 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2254 echo $ac_n "checking for remove""... $ac_c" 1>&6
2255 echo "configure:2256: checking for remove" >&5
2256 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2259 cat > conftest.
$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2262 /* System header to define __stub macros and hopefully few prototypes,
2263 which can conflict with char remove(); below. */
2265 /* Override any gcc2 internal prototype to avoid an error. */
2266 /* We use char because int might match the return type of a gcc2
2267 builtin and then its argument prototype would still apply. */
2272 /* The GNU C library defines this for functions which it implements
2273 to always fail with ENOSYS. Some functions are actually named
2274 something starting with __ and the normal name is an alias. */
2275 #if defined (__stub_remove) || defined (__stub___remove)
2283 if { (eval echo configure
:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2285 eval "ac_cv_func_remove=yes"
2287 echo "configure: failed program was:" >&5
2288 cat conftest.
$ac_ext >&5
2290 eval "ac_cv_func_remove=no"
2295 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2296 echo "$ac_t""yes" 1>&6
2299 echo "$ac_t""no" 1>&6
2302 if test $ac_cv_func_remove = no
; then
2303 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2304 echo "configure:2305: checking for remove in -lposix" >&5
2305 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2309 ac_save_LIBS
="$LIBS"
2310 LIBS
="-lposix $LIBS"
2311 cat > conftest.
$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2314 /* Override any gcc2 internal prototype to avoid an error. */
2315 /* We use char because int might match the return type of a gcc2
2316 builtin and then its argument prototype would still apply. */
2323 if { (eval echo configure
:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2325 eval "ac_cv_lib_$ac_lib_var=yes"
2327 echo "configure: failed program was:" >&5
2328 cat conftest.
$ac_ext >&5
2330 eval "ac_cv_lib_$ac_lib_var=no"
2333 LIBS
="$ac_save_LIBS"
2336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2337 echo "$ac_t""yes" 1>&6
2338 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2340 echo "$ac_t""no" 1>&6
2345 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2346 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2347 echo "configure:2348: checking for shmat" >&5
2348 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2351 cat > conftest.
$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2354 /* System header to define __stub macros and hopefully few prototypes,
2355 which can conflict with char shmat(); below. */
2357 /* Override any gcc2 internal prototype to avoid an error. */
2358 /* We use char because int might match the return type of a gcc2
2359 builtin and then its argument prototype would still apply. */
2364 /* The GNU C library defines this for functions which it implements
2365 to always fail with ENOSYS. Some functions are actually named
2366 something starting with __ and the normal name is an alias. */
2367 #if defined (__stub_shmat) || defined (__stub___shmat)
2375 if { (eval echo configure
:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2377 eval "ac_cv_func_shmat=yes"
2379 echo "configure: failed program was:" >&5
2380 cat conftest.
$ac_ext >&5
2382 eval "ac_cv_func_shmat=no"
2387 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2388 echo "$ac_t""yes" 1>&6
2391 echo "$ac_t""no" 1>&6
2394 if test $ac_cv_func_shmat = no
; then
2395 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2396 echo "configure:2397: checking for shmat in -lipc" >&5
2397 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2398 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2401 ac_save_LIBS
="$LIBS"
2403 cat > conftest.
$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406 /* Override any gcc2 internal prototype to avoid an error. */
2407 /* We use char because int might match the return type of a gcc2
2408 builtin and then its argument prototype would still apply. */
2415 if { (eval echo configure
:2416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2417 eval "ac_cv_lib_$ac_lib_var=yes"
2419 echo "configure: failed program was:" >&5
2420 cat conftest.
$ac_ext >&5
2422 eval "ac_cv_lib_$ac_lib_var=no"
2425 LIBS
="$ac_save_LIBS"
2428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2429 echo "$ac_t""yes" 1>&6
2430 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2432 echo "$ac_t""no" 1>&6
2438 # Check for libraries that X11R6 Xt/Xaw programs need.
2439 ac_save_LDFLAGS
="$LDFLAGS"
2440 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2441 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2442 # check for ICE first), but we must link in the order -lSM -lICE or
2443 # we get undefined symbols. So assume we have SM if we have ICE.
2444 # These have to be linked with before -lX11, unlike the other
2445 # libraries we check for below, so use a different variable.
2446 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2447 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2448 echo "configure:2449: checking for IceConnectionNumber in -lICE" >&5
2449 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2453 ac_save_LIBS
="$LIBS"
2454 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
2455 cat > conftest.
$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2458 /* Override any gcc2 internal prototype to avoid an error. */
2459 /* We use char because int might match the return type of a gcc2
2460 builtin and then its argument prototype would still apply. */
2461 char IceConnectionNumber();
2464 IceConnectionNumber()
2467 if { (eval echo configure
:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2469 eval "ac_cv_lib_$ac_lib_var=yes"
2471 echo "configure: failed program was:" >&5
2472 cat conftest.
$ac_ext >&5
2474 eval "ac_cv_lib_$ac_lib_var=no"
2477 LIBS
="$ac_save_LIBS"
2480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2481 echo "$ac_t""yes" 1>&6
2482 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2484 echo "$ac_t""no" 1>&6
2487 LDFLAGS
="$ac_save_LDFLAGS"
2492 test x
$no_x = "xyes" && { echo "configure: error: Openbox requires the X Window System libraries and headers." 1>&2; exit 1; }
2494 test x
$x_includes = "x" && x_includes
="/usr/include"
2495 test x
$x_libraries = "x" && x_libraries
="/usr/lib"
2497 CFLAGS
="$CFLAGS $X_CFLAGS"
2498 CXXFLAGS
="$CXXFLAGS $X_CFLAGS"
2499 LIBS
="$LIBS $X_LIBS"
2500 LDFLAGS
="$LDFLAGS $LIBS $X_PRE_LIBS"
2502 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
2503 echo "configure:2504: checking for XOpenDisplay in -lX11" >&5
2504 ac_lib_var
=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
2505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 ac_save_LIBS
="$LIBS"
2510 cat > conftest.
$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 /* Override any gcc2 internal prototype to avoid an error. */
2514 /* We use char because int might match the return type of a gcc2
2515 builtin and then its argument prototype would still apply. */
2516 char XOpenDisplay();
2522 if { (eval echo configure
:2523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2524 eval "ac_cv_lib_$ac_lib_var=yes"
2526 echo "configure: failed program was:" >&5
2527 cat conftest.
$ac_ext >&5
2529 eval "ac_cv_lib_$ac_lib_var=no"
2532 LIBS
="$ac_save_LIBS"
2535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2536 echo "$ac_t""yes" 1>&6
2539 echo "$ac_t""no" 1>&6
2540 { echo "configure: error: Could not find XOpenDisplay in -lX11." 1>&2; exit 1; }
2545 LIBS
="$LIBS $X_EXTRA_LIBS"
2550 echo $ac_n "checking whether to build support for the XShape extension""... $ac_c" 1>&6
2551 echo "configure:2552: checking whether to build support for the XShape extension" >&5
2552 # Check whether --enable-shape or --disable-shape was given.
2553 if test "${enable_shape+set}" = set; then
2554 enableval
="$enable_shape"
2559 : ${enableval="yes"}
2560 if test x
$enableval = "xyes"; then
2561 echo "$ac_t""yes" 1>&6
2562 echo $ac_n "checking for XShapeCombineShape in -lXext""... $ac_c" 1>&6
2563 echo "configure:2564: checking for XShapeCombineShape in -lXext" >&5
2564 ac_lib_var
=`echo Xext'_'XShapeCombineShape | sed 'y%./+-%__p_%'`
2565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 ac_save_LIBS
="$LIBS"
2570 cat > conftest.
$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2573 /* Override any gcc2 internal prototype to avoid an error. */
2574 /* We use char because int might match the return type of a gcc2
2575 builtin and then its argument prototype would still apply. */
2576 char XShapeCombineShape();
2579 XShapeCombineShape()
2582 if { (eval echo configure
:2583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2584 eval "ac_cv_lib_$ac_lib_var=yes"
2586 echo "configure: failed program was:" >&5
2587 cat conftest.
$ac_ext >&5
2589 eval "ac_cv_lib_$ac_lib_var=no"
2592 LIBS
="$ac_save_LIBS"
2595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2596 echo "$ac_t""yes" 1>&6
2597 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
2598 echo "configure:2599: checking for X11/extensions/shape.h" >&5
2599 cat > conftest.
$ac_ext <<EOF
2600 #line 2601 "configure"
2601 #include "confdefs.h"
2602 #include <X11/Xlib.h>
2603 #include <X11/Xutil.h>
2604 #include <X11/extensions/shape.h>
2610 if { (eval echo configure
:2611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2612 echo "$ac_t""yes" 1>&6
2613 SHAPE
="-DSHAPE"; Xext_lib
="-lXext"
2615 echo "configure: failed program was:" >&5
2616 cat conftest.
$ac_ext >&5
2618 echo "$ac_t""no" 1>&6
2624 echo "$ac_t""no" 1>&6
2628 echo "$ac_t""no" 1>&6
2632 LIBS
="$LIBS $Xext_lib"
2635 echo $ac_n "checking whether to include the Slit""... $ac_c" 1>&6
2636 echo "configure:2637: checking whether to include the Slit" >&5
2637 # Check whether --enable-slit or --disable-slit was given.
2638 if test "${enable_slit+set}" = set; then
2639 enableval
="$enable_slit"
2640 if test x
$enableval = "xyes"; then
2641 echo "$ac_t""yes" 1>&6
2644 echo "$ac_t""no" 1>&6
2647 echo "$ac_t""yes" 1>&6
2655 echo $ac_n "checking whether to include the new WM Spec (DOES NOTHING)""... $ac_c" 1>&6
2656 echo "configure:2657: checking whether to include the new WM Spec (DOES NOTHING)" >&5
2657 # Check whether --enable-newspec or --disable-newspec was given.
2658 if test "${enable_newspec+set}" = set; then
2659 enableval
="$enable_newspec"
2660 if test x
$enableval = "xyes"; then
2661 echo "$ac_t""yes" 1>&6
2662 NEWWMSPEC
="-DNEWWMSPEC"
2664 echo "$ac_t""no" 1>&6
2667 echo "$ac_t""no" 1>&6
2675 echo $ac_n "checking whether to include interlacing image code""... $ac_c" 1>&6
2676 echo "configure:2677: checking whether to include interlacing image code" >&5
2677 # Check whether --enable-interlace or --disable-interlace was given.
2678 if test "${enable_interlace+set}" = set; then
2679 enableval
="$enable_interlace"
2680 if test x
$enableval = "xyes"; then
2681 echo "$ac_t""yes" 1>&6
2682 INTERLACE
="-DINTERLACE"
2684 echo "$ac_t""no" 1>&6
2687 echo "$ac_t""yes" 1>&6
2688 INTERLACE
="-DINTERLACE"
2695 echo $ac_n "checking whether to include Pseudocolor ordered dithering code""... $ac_c" 1>&6
2696 echo "configure:2697: checking whether to include Pseudocolor ordered dithering code" >&5
2697 # Check whether --enable-ordered-pseudo or --disable-ordered-pseudo was given.
2698 if test "${enable_ordered_pseudo+set}" = set; then
2699 enableval
="$enable_ordered_pseudo"
2700 if test x
$enableval = "xyes"; then
2701 echo "$ac_t""yes" 1>&6
2702 ORDEREDPSEUDO
="-DORDEREDPSEUDO"
2704 echo "$ac_t""no" 1>&6
2707 echo "$ac_t""no" 1>&6
2714 echo $ac_n "checking whether to intercept mouse events to clients""... $ac_c" 1>&6
2715 echo "configure:2716: checking whether to intercept mouse events to clients" >&5
2716 # Check whether --enable-clobber or --disable-clobber was given.
2717 if test "${enable_clobber+set}" = set; then
2718 enableval
="$enable_clobber"
2719 if test x
$enableval = "xno"; then
2720 echo "$ac_t""no" 1>&6
2721 CLOBBER
="-DNOCLOBBER"
2723 echo "$ac_t""yes" 1>&6
2726 echo "$ac_t""no" 1>&6
2733 echo $ac_n "checking whether to include verbose debugging code""... $ac_c" 1>&6
2734 echo "configure:2735: checking whether to include verbose debugging code" >&5
2735 # Check whether --enable-debug or --disable-debug was given.
2736 if test "${enable_debug+set}" = set; then
2737 enableval
="$enable_debug"
2738 if test x
$enableval = "xyes"; then
2739 echo "$ac_t""yes" 1>&6
2742 echo "$ac_t""no" 1>&6
2745 echo "$ac_t""no" 1>&6
2752 echo $ac_n "checking whether to include NLS support""... $ac_c" 1>&6
2753 echo "configure:2754: checking whether to include NLS support" >&5
2754 # Check whether --enable-nls or --disable-nls was given.
2755 if test "${enable_nls+set}" = set; then
2756 enableval
="$enable_nls"
2757 if test x
$enableval = "xyes"; then
2758 echo "$ac_t""yes" 1>&6
2761 echo "$ac_t""no" 1>&6
2764 echo "$ac_t""yes" 1>&6
2771 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2772 echo "configure:2773: checking for setlocale in -lxpg4" >&5
2773 ac_lib_var
=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2777 ac_save_LIBS
="$LIBS"
2779 cat > conftest.
$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 /* Override any gcc2 internal prototype to avoid an error. */
2783 /* We use char because int might match the return type of a gcc2
2784 builtin and then its argument prototype would still apply. */
2791 if { (eval echo configure
:2792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2793 eval "ac_cv_lib_$ac_lib_var=yes"
2795 echo "configure: failed program was:" >&5
2796 cat conftest.
$ac_ext >&5
2798 eval "ac_cv_lib_$ac_lib_var=no"
2801 LIBS
="$ac_save_LIBS"
2804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2805 echo "$ac_t""yes" 1>&6
2808 echo "$ac_t""no" 1>&6
2812 for ac_prog
in gencat
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy
$ac_prog; ac_word
=$2
2816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2817 echo "configure:2818: checking for $ac_word" >&5
2818 if eval "test \"`echo '$''{'ac_cv_prog_gencat_cmd'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 if test -n "$gencat_cmd"; then
2822 ac_cv_prog_gencat_cmd
="$gencat_cmd" # Let the user override the test.
2824 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2826 for ac_dir
in $ac_dummy; do
2827 test -z "$ac_dir" && ac_dir
=.
2828 if test -f $ac_dir/$ac_word; then
2829 ac_cv_prog_gencat_cmd
="$ac_prog"
2836 gencat_cmd
="$ac_cv_prog_gencat_cmd"
2837 if test -n "$gencat_cmd"; then
2838 echo "$ac_t""$gencat_cmd" 1>&6
2840 echo "$ac_t""no" 1>&6
2843 test -n "$gencat_cmd" && break
2846 if test x
$gencat_cmd = "x"; then
2852 echo $ac_n "checking whether to use the new timed pixmap cache""... $ac_c" 1>&6
2853 echo "configure:2854: checking whether to use the new timed pixmap cache" >&5
2854 # Check whether --enable-timed-cache or --disable-timed-cache was given.
2855 if test "${enable_timed_cache+set}" = set; then
2856 enableval
="$enable_timed_cache"
2857 if test x
$enableval = "xyes"; then
2858 echo "$ac_t""yes" 1>&6
2859 TIMEDCACHE
="-DTIMEDCACHE"
2861 echo "$ac_t""no" 1>&6
2864 echo "$ac_t""yes" 1>&6
2865 TIMEDCACHE
="-DTIMEDCACHE"
2871 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2872 echo "configure:2873: checking return type of signal handlers" >&5
2873 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 cat > conftest.
$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2879 #include <sys/types.h>
2885 extern "C" void (*signal (int, void (*)(int)))(int);
2887 void (*signal ()) ();
2894 if { (eval echo configure
:2895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2896 ac_cv_type_signal
=void
2898 echo "configure: failed program was:" >&5
2899 cat conftest.
$ac_ext >&5
2901 ac_cv_type_signal
=int
2906 echo "$ac_t""$ac_cv_type_signal" 1>&6
2907 cat >> confdefs.h
<<EOF
2908 #define RETSIGTYPE $ac_cv_type_signal
2913 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2914 echo "configure:2915: checking whether to enable maintainer-specific portions of Makefiles" >&5
2915 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2916 if test "${enable_maintainer_mode+set}" = set; then
2917 enableval
="$enable_maintainer_mode"
2918 USE_MAINTAINER_MODE
=$enableval
2920 USE_MAINTAINER_MODE
=no
2923 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2926 if test $USE_MAINTAINER_MODE = yes; then
2927 MAINTAINER_MODE_TRUE
=
2928 MAINTAINER_MODE_FALSE
='#'
2930 MAINTAINER_MODE_TRUE
='#'
2931 MAINTAINER_MODE_FALSE
=
2933 MAINT
=$MAINTAINER_MODE_TRUE
2938 echo "$ac_t"" $PACKAGE version $VERSION configured successfully." 1>&6
2940 echo "$ac_t""Using '$prefix' for installation." 1>&6
2941 echo "$ac_t""Using '$CXX' for C++ compiler." 1>&6
2942 echo "$ac_t""Building with '$CXXFLAGS' for C++ compiler flags." 1>&6
2943 echo "$ac_t""Building with '$LIBS' for linker flags." 1>&6
2950 cat > confcache
<<\EOF
2951 # This file is a shell script that caches the results of configure
2952 # tests run on this system so they can be shared between configure
2953 # scripts and configure runs. It is not useful on other systems.
2954 # If it contains results you don't want to keep, you may remove or edit it.
2956 # By default, configure uses ./config.cache as the cache file,
2957 # creating it if it does not exist already. You can give configure
2958 # the --cache-file=FILE option to use a different cache file; that is
2959 # what configure does when it calls configure scripts in
2960 # subdirectories, so they share the cache.
2961 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2962 # config.status only pays attention to the cache file if you give it the
2963 # --recheck option to rerun configure.
2966 # The following way of writing the cache mishandles newlines in values,
2967 # but we know of no workaround that is simple, portable, and efficient.
2968 # So, don't put newlines in cache variables' values.
2969 # Ultrix sh set writes to stderr and can't be redirected directly,
2970 # and sets the high bit in the cache file unless we assign to the vars.
2972 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2974 # `set' does not quote correctly, so add quotes (double-quote substitution
2975 # turns \\\\ into \\, and sed turns \\ into \).
2977 -e "s/'/'\\\\''/g" \
2978 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2981 # `set' quotes correctly as required by POSIX, so do not add quotes.
2982 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2985 if cmp -s $cache_file confcache
; then
2988 if test -w $cache_file; then
2989 echo "updating cache $cache_file"
2990 cat confcache
> $cache_file
2992 echo "not updating unwritable cache $cache_file"
2997 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2999 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3000 # Let make expand exec_prefix.
3001 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3003 # Any assignment to VPATH causes Sun make to only execute
3004 # the first set of double-colon rules, so remove it if not needed.
3005 # If there is a colon in the path, we need to keep it.
3006 if test "x$srcdir" = x.
; then
3007 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3010 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3012 DEFS
=-DHAVE_CONFIG_H
3014 # Without the "./", some shells look in PATH for config.status.
3015 : ${CONFIG_STATUS=./config.status}
3017 echo creating
$CONFIG_STATUS
3018 rm -f $CONFIG_STATUS
3019 cat > $CONFIG_STATUS <<EOF
3021 # Generated automatically by configure.
3022 # Run this file to recreate the current configuration.
3023 # This directory was configured as follows,
3024 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3026 # $0 $ac_configure_args
3028 # Compiler output produced by configure, useful for debugging
3029 # configure, is in ./config.log if it exists.
3031 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3034 case "\$ac_option" in
3035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3036 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3037 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3038 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3039 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3041 -help | --help | --hel | --he | --h)
3042 echo "\$ac_cs_usage"; exit 0 ;;
3043 *) echo "\$ac_cs_usage"; exit 1 ;;
3047 ac_given_srcdir=$srcdir
3048 ac_given_INSTALL="$INSTALL"
3050 trap 'rm -fr `echo "Makefile
3054 data/styles/Makefile
3072 version.h config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3074 cat >> $CONFIG_STATUS <<EOF
3076 # Protect against being on the right side of a sed subst in config.status.
3077 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3078 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3082 s%@CFLAGS@%$CFLAGS%g
3083 s%@CPPFLAGS@%$CPPFLAGS%g
3084 s%@CXXFLAGS@%$CXXFLAGS%g
3085 s%@FFLAGS@%$FFLAGS%g
3087 s%@LDFLAGS@%$LDFLAGS%g
3089 s%@exec_prefix@%$exec_prefix%g
3090 s%@prefix@%$prefix%g
3091 s%@program_transform_name@%$program_transform_name%g
3092 s%@bindir@%$bindir%g
3093 s%@sbindir@%$sbindir%g
3094 s%@libexecdir@%$libexecdir%g
3095 s%@datadir@%$datadir%g
3096 s%@sysconfdir@%$sysconfdir%g
3097 s%@sharedstatedir@%$sharedstatedir%g
3098 s%@localstatedir@%$localstatedir%g
3099 s%@libdir@%$libdir%g
3100 s%@includedir@%$includedir%g
3101 s%@oldincludedir@%$oldincludedir%g
3102 s%@infodir@%$infodir%g
3103 s%@mandir@%$mandir%g
3104 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3105 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3106 s%@INSTALL_DATA@%$INSTALL_DATA%g
3107 s%@PACKAGE@%$PACKAGE%g
3108 s%@VERSION@%$VERSION%g
3109 s%@ACLOCAL@%$ACLOCAL%g
3110 s%@AUTOCONF@%$AUTOCONF%g
3111 s%@AUTOMAKE@%$AUTOMAKE%g
3112 s%@AUTOHEADER@%$AUTOHEADER%g
3113 s%@MAKEINFO@%$MAKEINFO%g
3114 s%@SET_MAKE@%$SET_MAKE%g
3117 s%@regex_cmd@%$regex_cmd%g
3119 s%@X_CFLAGS@%$X_CFLAGS%g
3120 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3121 s%@X_LIBS@%$X_LIBS%g
3122 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3125 s%@NEWWMSPEC@%$NEWWMSPEC%g
3126 s%@INTERLACE@%$INTERLACE%g
3127 s%@ORDEREDPSEUDO@%$ORDEREDPSEUDO%g
3128 s%@CLOBBER@%$CLOBBER%g
3131 s%@gencat_cmd@%$gencat_cmd%g
3132 s%@TIMEDCACHE@%$TIMEDCACHE%g
3133 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3134 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3140 cat >> $CONFIG_STATUS <<\EOF
3142 # Split the substitutions into bite-sized pieces for seds with
3143 # small command number limits, like on Digital OSF/1 and HP-UX.
3144 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3145 ac_file
=1 # Number of current file.
3146 ac_beg
=1 # First line for current file.
3147 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3150 while $ac_more_lines; do
3151 if test $ac_beg -gt 1; then
3152 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3154 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3156 if test ! -s conftest.s
$ac_file; then
3158 rm -f conftest.s
$ac_file
3160 if test -z "$ac_sed_cmds"; then
3161 ac_sed_cmds
="sed -f conftest.s$ac_file"
3163 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3165 ac_file
=`expr $ac_file + 1`
3167 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3170 if test -z "$ac_sed_cmds"; then
3175 cat >> $CONFIG_STATUS <<EOF
3177 CONFIG_FILES=\${CONFIG_FILES-"Makefile
3181 data/styles/Makefile
3201 cat >> $CONFIG_STATUS <<\EOF
3202 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3203 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3205 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3206 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3207 *) ac_file_in
="${ac_file}.in" ;;
3210 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3212 # Remove last slash and all that follows it. Not all systems have dirname.
3213 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3214 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3215 # The file is in a subdirectory.
3216 test ! -d "$ac_dir" && mkdir "$ac_dir"
3217 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3218 # A "../" for each directory in $ac_dir_suffix.
3219 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3221 ac_dir_suffix
= ac_dots
=
3224 case "$ac_given_srcdir" in
3226 if test -z "$ac_dots"; then top_srcdir
=.
3227 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3228 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3230 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3231 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3234 case "$ac_given_INSTALL" in
3235 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3236 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3239 echo creating
"$ac_file"
3241 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3243 *Makefile
*) ac_comsub
="1i\\
3244 # $configure_input" ;;
3248 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3250 s%@configure_input@%$configure_input%g
3251 s%@srcdir@%$srcdir%g
3252 s%@top_srcdir@%$top_srcdir%g
3253 s%@INSTALL@%$INSTALL%g
3254 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3258 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3259 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3261 # ac_d sets the value in "#define NAME VALUE" lines.
3262 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3263 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3266 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3267 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3268 ac_uB
='\([ ]\)%\1#\2define\3'
3271 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3272 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3273 ac_eB
='$%\1#\2define\3'
3277 if test "${CONFIG_HEADERS+set}" != set; then
3279 cat >> $CONFIG_STATUS <<EOF
3280 CONFIG_HEADERS="config.h"
3282 cat >> $CONFIG_STATUS <<\EOF
3284 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3285 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3287 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3288 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3289 *) ac_file_in
="${ac_file}.in" ;;
3292 echo creating
$ac_file
3294 rm -f conftest.frag conftest.
in conftest.out
3295 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3296 cat $ac_file_inputs > conftest.
in
3300 # Transform confdefs.h into a sed script conftest.vals that substitutes
3301 # the proper values into config.h.in to produce config.h. And first:
3302 # Protect against being on the right side of a sed subst in config.status.
3303 # Protect against being in an unquoted here document in config.status.
3305 cat > conftest.hdr
<<\EOF
3308 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3312 sed -n -f conftest.hdr confdefs.h > conftest.vals
3315 # This sed command replaces #undef with comments. This is necessary, for
3316 # example, in the case of _POSIX_SOURCE, which is predefined and required
3317 # on some systems where configure will not decide to define it.
3318 cat >> conftest.vals <<\EOF
3319 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3322 # Break up conftest.vals because some shells have a limit on
3323 # the size of here documents, and old seds have small limits too.
3328 ac_lines=`grep -c . conftest.vals
`
3329 # grep -c gives empty output for an empty file on some AIX systems.
3330 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3331 # Write a limited-size here document to conftest.frag.
3332 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3333 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3335 sed -f conftest.frag conftest.in > conftest.out
3337 mv conftest.out conftest.in
3339 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3341 mv conftest.tail conftest.vals
3345 cat >> $CONFIG_STATUS <<\EOF
3346 rm -f conftest.frag conftest.h
3347 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3348 cat conftest.in >> conftest.h
3350 if cmp -s $ac_file conftest.h 2>/dev/null; then
3351 echo "$ac_file is unchanged"
3354 # Remove last slash and all that follows it. Not all systems have dirname.
3355 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3356 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3357 # The file is in a subdirectory.
3358 test ! -d "$ac_dir" && mkdir "$ac_dir"
3361 mv conftest.h $ac_file
3366 cat >> $CONFIG_STATUS <<EOF
3370 cat >> $CONFIG_STATUS <<\EOF
3371 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3375 chmod +x $CONFIG_STATUS
3376 rm -fr confdefs* $ac_clean_files
3377 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1