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-debug enable debugging "
19 --enable-delt-xpms enable delt's pixmaps "
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file
=.
/config.cache
34 program_transform_name
=s
,x
,x
,
42 bindir
='${exec_prefix}/bin'
43 sbindir
='${exec_prefix}/sbin'
44 libexecdir
='${exec_prefix}/libexec'
45 datadir
='${prefix}/share'
46 sysconfdir
='${prefix}/etc'
47 sharedstatedir
='${prefix}/com'
48 localstatedir
='${prefix}/var'
49 libdir
='${exec_prefix}/lib'
50 includedir
='${prefix}/include'
51 oldincludedir
='/usr/include'
52 infodir
='${prefix}/info'
53 mandir
='${prefix}/man'
55 # Initialize some other variables.
58 SHELL
=${CONFIG_SHELL-/bin/sh}
59 # Maximum number of lines to put in a shell here document.
66 # If the previous option needs an argument, assign it.
67 if test -n "$ac_prev"; then
68 eval "$ac_prev=\$ac_option"
74 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 # Accept the important Cygnus configure options, so we can diagnose typos.
82 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
84 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
85 bindir
="$ac_optarg" ;;
87 -build |
--build |
--buil |
--bui |
--bu)
89 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
92 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
93 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
95 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
96 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
97 cache_file
="$ac_optarg" ;;
99 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
101 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
103 datadir
="$ac_optarg" ;;
105 -disable-* |
--disable-*)
106 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
107 # Reject names that are not valid shell variable names.
108 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
112 eval "enable_${ac_feature}=no" ;;
114 -enable-* |
--enable-*)
115 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}='$ac_optarg'" ;;
127 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
128 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
129 |
--exec |
--exe |
--ex)
130 ac_prev
=exec_prefix
;;
131 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
132 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
133 |
--exec=* |
--exe=* |
--ex=*)
134 exec_prefix
="$ac_optarg" ;;
136 -gas |
--gas |
--ga |
--g)
137 # Obsolete; use --with-gas.
140 -help |
--help |
--hel |
--he)
141 # Omit some internal or obsolete options to make the list less imposing.
142 # This message is too long to be a string in the A/UX 3.1 sh.
144 Usage: configure [options] [host]
145 Options: [defaults in brackets after descriptions]
147 --cache-file=FILE cache test results in FILE
148 --help print this message
149 --no-create do not create output files
150 --quiet, --silent do not print \`checking...' messages
151 --version print the version of autoconf that created configure
152 Directory and file names:
153 --prefix=PREFIX install architecture-independent files in PREFIX
155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 --bindir=DIR user executables in DIR [EPREFIX/bin]
158 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160 --datadir=DIR read-only architecture-independent data in DIR
162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
167 --includedir=DIR C header files in DIR [PREFIX/include]
168 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169 --infodir=DIR info documentation in DIR [PREFIX/info]
170 --mandir=DIR man documentation in DIR [PREFIX/man]
171 --srcdir=DIR find the sources in DIR [configure dir or ..]
172 --program-prefix=PREFIX prepend PREFIX to installed program names
173 --program-suffix=SUFFIX append SUFFIX to installed program names
174 --program-transform-name=PROGRAM
175 run sed PROGRAM on installed program names
179 --build=BUILD configure for building on BUILD [BUILD=HOST]
180 --host=HOST configure for HOST [guessed]
181 --target=TARGET configure for TARGET [TARGET=HOST]
182 Features and packages:
183 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187 --x-includes=DIR X include files are in DIR
188 --x-libraries=DIR X library files are in DIR
190 if test -n "$ac_help"; then
191 echo "--enable and --with options recognized:$ac_help"
195 -host |
--host |
--hos |
--ho)
197 -host=* |
--host=* |
--hos=* |
--ho=*)
200 -includedir |
--includedir |
--includedi |
--included |
--include \
201 |
--includ |
--inclu |
--incl |
--inc)
202 ac_prev
=includedir
;;
203 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
204 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
205 includedir
="$ac_optarg" ;;
207 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
209 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
210 infodir
="$ac_optarg" ;;
212 -libdir |
--libdir |
--libdi |
--libd)
214 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
215 libdir
="$ac_optarg" ;;
217 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
218 |
--libexe |
--libex |
--libe)
219 ac_prev
=libexecdir
;;
220 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
221 |
--libexe=* |
--libex=* |
--libe=*)
222 libexecdir
="$ac_optarg" ;;
224 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
225 |
--localstate |
--localstat |
--localsta |
--localst \
226 |
--locals |
--local |
--loca |
--loc |
--lo)
227 ac_prev
=localstatedir
;;
228 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
229 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
230 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
231 localstatedir
="$ac_optarg" ;;
233 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
235 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
236 mandir
="$ac_optarg" ;;
239 # Obsolete; use --without-fp.
242 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
246 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
247 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
250 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
251 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
252 |
--oldin |
--oldi |
--old |
--ol |
--o)
253 ac_prev
=oldincludedir
;;
254 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
255 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
256 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
257 oldincludedir
="$ac_optarg" ;;
259 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
261 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
262 prefix
="$ac_optarg" ;;
264 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
265 |
--program-pre |
--program-pr |
--program-p)
266 ac_prev
=program_prefix
;;
267 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
268 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
269 program_prefix
="$ac_optarg" ;;
271 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
272 |
--program-suf |
--program-su |
--program-s)
273 ac_prev
=program_suffix
;;
274 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
275 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
276 program_suffix
="$ac_optarg" ;;
278 -program-transform-name |
--program-transform-name \
279 |
--program-transform-nam |
--program-transform-na \
280 |
--program-transform-n |
--program-transform- \
281 |
--program-transform |
--program-transfor \
282 |
--program-transfo |
--program-transf \
283 |
--program-trans |
--program-tran \
284 |
--progr-tra |
--program-tr |
--program-t)
285 ac_prev
=program_transform_name
;;
286 -program-transform-name=* |
--program-transform-name=* \
287 |
--program-transform-nam=* |
--program-transform-na=* \
288 |
--program-transform-n=* |
--program-transform-=* \
289 |
--program-transform=* |
--program-transfor=* \
290 |
--program-transfo=* |
--program-transf=* \
291 |
--program-trans=* |
--program-tran=* \
292 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
293 program_transform_name
="$ac_optarg" ;;
295 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
296 |
-silent |
--silent |
--silen |
--sile |
--sil)
299 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
301 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
303 sbindir
="$ac_optarg" ;;
305 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
306 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
307 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
309 ac_prev
=sharedstatedir
;;
310 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
311 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
312 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
314 sharedstatedir
="$ac_optarg" ;;
316 -site |
--site |
--sit)
318 -site=* |
--site=* |
--sit=*)
321 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
323 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
324 srcdir
="$ac_optarg" ;;
326 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
327 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
328 ac_prev
=sysconfdir
;;
329 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
330 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
331 sysconfdir
="$ac_optarg" ;;
333 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
335 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
336 target
="$ac_optarg" ;;
338 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
341 -version |
--version |
--versio |
--versi |
--vers)
342 echo "configure generated by autoconf version 2.13"
346 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347 # Reject names that are not valid shell variable names.
348 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 ac_package
=`echo $ac_package| sed 's/-/_/g'`
356 eval "with_${ac_package}='$ac_optarg'" ;;
358 -without-* |
--without-*)
359 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package
=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}=no" ;;
368 # Obsolete; use --with-x.
371 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
372 |
--x-incl |
--x-inc |
--x-in |
--x-i)
373 ac_prev
=x_includes
;;
374 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
375 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
376 x_includes
="$ac_optarg" ;;
378 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
379 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
380 ac_prev
=x_libraries
;;
381 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
382 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
383 x_libraries
="$ac_optarg" ;;
385 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 if test "x$nonopt" != xNONE
; then
393 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 if test -n "$ac_prev"; then
402 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407 # File descriptor usage:
410 # 2 errors and warnings
411 # 3 some systems may open it to /dev/tty
412 # 4 used on the Kubota Titan
413 # 6 checking for... messages and results
414 # 5 compiler messages saved in config.log
415 if test "$silent" = yes; then
423 This file contains any messages produced by compilers while
424 running configure, to aid debugging if configure makes a mistake.
427 # Strip out --no-create and --no-recursion so they do not pile up.
428 # Also quote any args containing shell metacharacters.
433 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
434 |
--no-cr |
--no-c) ;;
435 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
436 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
437 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
439 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
444 # Only set these to C if already set. These must not be set unconditionally
445 # because not all systems understand e.g. LANG=C (notably SCO).
446 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447 # Non-C LC_CTYPE values break the ctype check.
448 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
449 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
450 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
451 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
454 rm -rf conftest
* confdefs.h
455 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
458 # A filename unique to this package, relative to the directory that
459 # configure is in, which we can look for to find out if srcdir is correct.
460 ac_unique_file
=src
/wmail.c
462 # Find the source files, if location was not specified.
463 if test -z "$srcdir"; then
464 ac_srcdir_defaulted
=yes
465 # Try the directory containing this script, then its parent.
467 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
470 if test ! -r $srcdir/$ac_unique_file; then
474 ac_srcdir_defaulted
=no
476 if test ! -r $srcdir/$ac_unique_file; then
477 if test "$ac_srcdir_defaulted" = yes; then
478 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485 # Prefer explicitly selected file to automatically selected ones.
486 if test -z "$CONFIG_SITE"; then
487 if test "x$prefix" != xNONE
; then
488 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
490 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493 for ac_site_file
in $CONFIG_SITE; do
494 if test -r "$ac_site_file"; then
495 echo "loading site script $ac_site_file"
500 if test -r "$cache_file"; then
501 echo "loading cache $cache_file"
504 echo "creating cache $cache_file"
509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510 ac_cpp
='$CPP $CPPFLAGS'
511 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513 cross_compiling
=$ac_cv_prog_cc_cross
517 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
518 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
526 ac_n
= ac_c
='\c' ac_t
=
531 # Extract the first word of "gcc", so it can be a program name with args.
532 set dummy gcc
; ac_word
=$2
533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
534 echo "configure:535: checking for $ac_word" >&5
535 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
536 echo $ac_n "(cached) $ac_c" 1>&6
538 if test -n "$CC"; then
539 ac_cv_prog_CC
="$CC" # Let the user override the test.
541 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
543 for ac_dir
in $ac_dummy; do
544 test -z "$ac_dir" && ac_dir
=.
545 if test -f $ac_dir/$ac_word; then
554 if test -n "$CC"; then
555 echo "$ac_t""$CC" 1>&6
557 echo "$ac_t""no" 1>&6
560 if test -z "$CC"; then
561 # Extract the first word of "cc", so it can be a program name with args.
562 set dummy cc
; ac_word
=$2
563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
564 echo "configure:565: checking for $ac_word" >&5
565 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
568 if test -n "$CC"; then
569 ac_cv_prog_CC
="$CC" # Let the user override the test.
571 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
574 for ac_dir
in $ac_dummy; do
575 test -z "$ac_dir" && ac_dir
=.
576 if test -f $ac_dir/$ac_word; then
577 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
586 if test $ac_prog_rejected = yes; then
587 # We found a bogon in the path, so make sure we never use it.
588 set dummy
$ac_cv_prog_CC
590 if test $# -gt 0; then
591 # We chose a different compiler from the bogus one.
592 # However, it has the same basename, so the bogon will be chosen
593 # first if we set CC to just the basename; use the full file name.
595 set dummy
"$ac_dir/$ac_word" "$@"
603 if test -n "$CC"; then
604 echo "$ac_t""$CC" 1>&6
606 echo "$ac_t""no" 1>&6
609 if test -z "$CC"; then
612 # Extract the first word of "cl", so it can be a program name with args.
613 set dummy cl
; ac_word
=$2
614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
615 echo "configure:616: checking for $ac_word" >&5
616 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
617 echo $ac_n "(cached) $ac_c" 1>&6
619 if test -n "$CC"; then
620 ac_cv_prog_CC
="$CC" # Let the user override the test.
622 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
624 for ac_dir
in $ac_dummy; do
625 test -z "$ac_dir" && ac_dir
=.
626 if test -f $ac_dir/$ac_word; then
635 if test -n "$CC"; then
636 echo "$ac_t""$CC" 1>&6
638 echo "$ac_t""no" 1>&6
643 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
646 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
647 echo "configure:648: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
650 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
651 ac_cpp
='$CPP $CPPFLAGS'
652 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
653 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
654 cross_compiling
=$ac_cv_prog_cc_cross
656 cat > conftest.
$ac_ext << EOF
658 #line 659 "configure"
659 #include "confdefs.h"
663 if { (eval echo configure
:664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
664 ac_cv_prog_cc_works
=yes
665 # If we can't run a trivial program, we are probably using a cross compiler.
666 if (.
/conftest
; exit) 2>/dev
/null
; then
667 ac_cv_prog_cc_cross
=no
669 ac_cv_prog_cc_cross
=yes
672 echo "configure: failed program was:" >&5
673 cat conftest.
$ac_ext >&5
674 ac_cv_prog_cc_works
=no
678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
679 ac_cpp
='$CPP $CPPFLAGS'
680 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
681 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
682 cross_compiling
=$ac_cv_prog_cc_cross
684 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
685 if test $ac_cv_prog_cc_works = no
; then
686 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
688 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
689 echo "configure:690: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
690 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
691 cross_compiling
=$ac_cv_prog_cc_cross
693 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
694 echo "configure:695: checking whether we are using GNU C" >&5
695 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 cat > conftest.c
<<EOF
703 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
710 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
712 if test $ac_cv_prog_gcc = yes; then
718 ac_test_CFLAGS
="${CFLAGS+set}"
719 ac_save_CFLAGS
="$CFLAGS"
721 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
722 echo "configure:723: checking whether ${CC-cc} accepts -g" >&5
723 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
724 echo $ac_n "(cached) $ac_c" 1>&6
726 echo 'void f(){}' > conftest.c
727 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
736 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
737 if test "$ac_test_CFLAGS" = set; then
738 CFLAGS
="$ac_save_CFLAGS"
739 elif test $ac_cv_prog_cc_g = yes; then
740 if test "$GCC" = yes; then
746 if test "$GCC" = yes; then
753 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
754 echo "configure:755: checking whether ${MAKE-make} sets \${MAKE}" >&5
755 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
756 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
759 cat > conftestmake
<<\EOF
761 @
echo 'ac_maketemp="${MAKE}"'
763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
764 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
765 if test -n "$ac_maketemp"; then
766 eval ac_cv_prog_make_
${ac_make}_set
=yes
768 eval ac_cv_prog_make_
${ac_make}_set
=no
772 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
773 echo "$ac_t""yes" 1>&6
776 echo "$ac_t""no" 1>&6
777 SET_MAKE
="MAKE=${MAKE-make}"
783 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
785 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
786 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
787 echo "configure:788: checking for $ac_hdr that defines DIR" >&5
788 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
789 echo $ac_n "(cached) $ac_c" 1>&6
791 cat > conftest.
$ac_ext <<EOF
792 #line 793 "configure"
793 #include "confdefs.h"
794 #include <sys/types.h>
800 if { (eval echo configure
:801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
802 eval "ac_cv_header_dirent_$ac_safe=yes"
804 echo "configure: failed program was:" >&5
805 cat conftest.
$ac_ext >&5
807 eval "ac_cv_header_dirent_$ac_safe=no"
811 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
812 echo "$ac_t""yes" 1>&6
813 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
814 cat >> confdefs.h
<<EOF
817 ac_header_dirent
=$ac_hdr; break
819 echo "$ac_t""no" 1>&6
822 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
823 if test $ac_header_dirent = dirent.h
; then
824 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
825 echo "configure:826: checking for opendir in -ldir" >&5
826 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
832 cat > conftest.
$ac_ext <<EOF
833 #line 834 "configure"
834 #include "confdefs.h"
835 /* Override any gcc2 internal prototype to avoid an error. */
836 /* We use char because int might match the return type of a gcc2
837 builtin and then its argument prototype would still apply. */
844 if { (eval echo configure
:845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
846 eval "ac_cv_lib_$ac_lib_var=yes"
848 echo "configure: failed program was:" >&5
849 cat conftest.
$ac_ext >&5
851 eval "ac_cv_lib_$ac_lib_var=no"
857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
858 echo "$ac_t""yes" 1>&6
861 echo "$ac_t""no" 1>&6
865 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
866 echo "configure:867: checking for opendir in -lx" >&5
867 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
873 cat > conftest.
$ac_ext <<EOF
874 #line 875 "configure"
875 #include "confdefs.h"
876 /* Override any gcc2 internal prototype to avoid an error. */
877 /* We use char because int might match the return type of a gcc2
878 builtin and then its argument prototype would still apply. */
885 if { (eval echo configure
:886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
887 eval "ac_cv_lib_$ac_lib_var=yes"
889 echo "configure: failed program was:" >&5
890 cat conftest.
$ac_ext >&5
892 eval "ac_cv_lib_$ac_lib_var=no"
898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
899 echo "$ac_t""yes" 1>&6
902 echo "$ac_t""no" 1>&6
907 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
908 echo "configure:909: checking how to run the C preprocessor" >&5
909 # On Suns, sometimes $CPP names a directory.
910 if test -n "$CPP" && test -d "$CPP"; then
913 if test -z "$CPP"; then
914 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
915 echo $ac_n "(cached) $ac_c" 1>&6
917 # This must be in double quotes, not single quotes, because CPP may get
918 # substituted into the Makefile and "${CC-cc}" will confuse make.
920 # On the NeXT, cc -E runs the code through the compiler's parser,
921 # not just through cpp.
922 cat > conftest.
$ac_ext <<EOF
923 #line 924 "configure"
924 #include "confdefs.h"
928 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
929 { (eval echo configure
:930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
930 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
931 if test -z "$ac_err"; then
935 echo "configure: failed program was:" >&5
936 cat conftest.
$ac_ext >&5
938 CPP
="${CC-cc} -E -traditional-cpp"
939 cat > conftest.
$ac_ext <<EOF
940 #line 941 "configure"
941 #include "confdefs.h"
945 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
946 { (eval echo configure
:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
947 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
948 if test -z "$ac_err"; then
952 echo "configure: failed program was:" >&5
953 cat conftest.
$ac_ext >&5
955 CPP
="${CC-cc} -nologo -E"
956 cat > conftest.
$ac_ext <<EOF
957 #line 958 "configure"
958 #include "confdefs.h"
962 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
963 { (eval echo configure
:964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
964 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
965 if test -z "$ac_err"; then
969 echo "configure: failed program was:" >&5
970 cat conftest.
$ac_ext >&5
979 ac_cv_prog_CPP
="$CPP"
981 CPP
="$ac_cv_prog_CPP"
983 ac_cv_prog_CPP
="$CPP"
985 echo "$ac_t""$CPP" 1>&6
987 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
988 echo "configure:989: checking for ANSI C header files" >&5
989 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
990 echo $ac_n "(cached) $ac_c" 1>&6
992 cat > conftest.
$ac_ext <<EOF
993 #line 994 "configure"
994 #include "confdefs.h"
1000 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1001 { (eval echo configure
:1002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1002 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1003 if test -z "$ac_err"; then
1005 ac_cv_header_stdc
=yes
1008 echo "configure: failed program was:" >&5
1009 cat conftest.
$ac_ext >&5
1011 ac_cv_header_stdc
=no
1015 if test $ac_cv_header_stdc = yes; then
1016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1017 cat > conftest.
$ac_ext <<EOF
1018 #line 1019 "configure"
1019 #include "confdefs.h"
1022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1023 egrep "memchr" >/dev
/null
2>&1; then
1027 ac_cv_header_stdc
=no
1033 if test $ac_cv_header_stdc = yes; then
1034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1035 cat > conftest.
$ac_ext <<EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1041 egrep "free" >/dev
/null
2>&1; then
1045 ac_cv_header_stdc
=no
1051 if test $ac_cv_header_stdc = yes; then
1052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1053 if test "$cross_compiling" = yes; then
1056 cat > conftest.
$ac_ext <<EOF
1057 #line 1058 "configure"
1058 #include "confdefs.h"
1060 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1061 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1063 int main () { int i; for (i = 0; i < 256; i++)
1064 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1068 if { (eval echo configure
:1069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1072 echo "configure: failed program was:" >&5
1073 cat conftest.
$ac_ext >&5
1075 ac_cv_header_stdc
=no
1083 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1084 if test $ac_cv_header_stdc = yes; then
1085 cat >> confdefs.h
<<\EOF
1086 #define STDC_HEADERS 1
1091 for ac_hdr
in limits.h sys
/time.h
1093 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1095 echo "configure:1096: checking for $ac_hdr" >&5
1096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1099 cat > conftest.
$ac_ext <<EOF
1100 #line 1101 "configure"
1101 #include "confdefs.h"
1104 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1105 { (eval echo configure
:1106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1106 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1107 if test -z "$ac_err"; then
1109 eval "ac_cv_header_$ac_safe=yes"
1112 echo "configure: failed program was:" >&5
1113 cat conftest.
$ac_ext >&5
1115 eval "ac_cv_header_$ac_safe=no"
1119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1120 echo "$ac_t""yes" 1>&6
1121 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1122 cat >> confdefs.h
<<EOF
1123 #define $ac_tr_hdr 1
1127 echo "$ac_t""no" 1>&6
1132 # If we find X, set shell vars x_includes and x_libraries to the
1133 # paths, otherwise set no_x=yes.
1134 # Uses ac_ vars as temps to allow command line to override cache and checks.
1135 # --without-x overrides everything else, but does not touch the cache.
1136 echo $ac_n "checking for X""... $ac_c" 1>&6
1137 echo "configure:1138: checking for X" >&5
1139 # Check whether --with-x or --without-x was given.
1140 if test "${with_x+set}" = set; then
1145 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1146 if test "x$with_x" = xno
; then
1147 # The user explicitly disabled X.
1150 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1151 # Both variables are already set.
1154 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 # One or both of the vars are not set, and there is no cached value.
1158 ac_x_includes
=NO ac_x_libraries
=NO
1160 if mkdir conftestdir
; then
1162 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1163 cat > Imakefile
<<'EOF'
1165 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1167 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1168 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1169 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1170 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1171 for ac_extension
in a so sl
; do
1172 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1173 test -f $ac_im_libdir/libX11.
$ac_extension; then
1174 ac_im_usrlibdir
=$ac_im_libdir; break
1177 # Screen out bogus values from the imake configuration. They are
1178 # bogus both because they are the default anyway, and because
1179 # using them would break gcc on systems where it needs fixed includes.
1180 case "$ac_im_incroot" in
1182 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1184 case "$ac_im_usrlibdir" in
1186 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1193 if test "$ac_x_includes" = NO
; then
1194 # Guess where to find include files, by looking for this one X11 .h file.
1195 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1197 # First, try using that file with no special directory specified.
1198 cat > conftest.
$ac_ext <<EOF
1199 #line 1200 "configure"
1200 #include "confdefs.h"
1201 #include <$x_direct_test_include>
1203 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1204 { (eval echo configure
:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1205 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1206 if test -z "$ac_err"; then
1208 # We can compile using X headers with no special include directory.
1212 echo "configure: failed program was:" >&5
1213 cat conftest.
$ac_ext >&5
1215 # Look for the header file in a standard set of common directories.
1216 # Check X11 before X11Rn because it is often a symlink to the current release.
1219 /usr
/X11R
6/include \
1220 /usr
/X11R
5/include \
1221 /usr
/X11R
4/include \
1224 /usr
/include
/X11R6 \
1225 /usr
/include
/X11R5 \
1226 /usr
/include
/X11R4 \
1228 /usr
/local
/X11
/include \
1229 /usr
/local
/X11R
6/include \
1230 /usr
/local
/X11R
5/include \
1231 /usr
/local
/X11R
4/include \
1233 /usr
/local
/include
/X11 \
1234 /usr
/local
/include
/X11R6 \
1235 /usr
/local
/include
/X11R5 \
1236 /usr
/local
/include
/X11R4 \
1240 /usr
/XFree86
/include
/X11 \
1243 /usr
/local
/include \
1244 /usr
/unsupported
/include \
1245 /usr
/athena
/include \
1246 /usr
/local
/x11r
5/include \
1247 /usr
/lpp
/Xamples
/include \
1249 /usr
/openwin
/include \
1250 /usr
/openwin
/share
/include \
1253 if test -r "$ac_dir/$x_direct_test_include"; then
1254 ac_x_includes
=$ac_dir
1260 fi # $ac_x_includes = NO
1262 if test "$ac_x_libraries" = NO
; then
1263 # Check for the libraries.
1265 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1266 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1268 # See if we find them without any special options.
1269 # Don't add to $LIBS permanently.
1270 ac_save_LIBS
="$LIBS"
1271 LIBS
="-l$x_direct_test_library $LIBS"
1272 cat > conftest.
$ac_ext <<EOF
1273 #line 1274 "configure"
1274 #include "confdefs.h"
1277 ${x_direct_test_function}()
1280 if { (eval echo configure
:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1282 LIBS
="$ac_save_LIBS"
1283 # We can link X programs with no special library path.
1286 echo "configure: failed program was:" >&5
1287 cat conftest.
$ac_ext >&5
1289 LIBS
="$ac_save_LIBS"
1290 # First see if replacing the include by lib works.
1291 # Check X11 before X11Rn because it is often a symlink to the current release.
1292 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1303 /usr
/local
/X11
/lib \
1304 /usr
/local
/X11R
6/lib \
1305 /usr
/local
/X11R
5/lib \
1306 /usr
/local
/X11R
4/lib \
1308 /usr
/local
/lib
/X11 \
1309 /usr
/local
/lib
/X11R6 \
1310 /usr
/local
/lib
/X11R5 \
1311 /usr
/local
/lib
/X11R4 \
1315 /usr
/XFree86
/lib
/X11 \
1319 /usr
/unsupported
/lib \
1321 /usr
/local
/x11r
5/lib \
1322 /usr
/lpp
/Xamples
/lib \
1326 /usr
/openwin
/share
/lib \
1329 for ac_extension
in a so sl
; do
1330 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1331 ac_x_libraries
=$ac_dir
1338 fi # $ac_x_libraries = NO
1340 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1341 # Didn't find X anywhere. Cache the known absence of X.
1342 ac_cv_have_x
="have_x=no"
1344 # Record where we found X for the cache.
1345 ac_cv_have_x
="have_x=yes \
1346 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1350 eval "$ac_cv_have_x"
1353 if test "$have_x" != yes; then
1354 echo "$ac_t""$have_x" 1>&6
1357 # If each of the values was on the command line, it overrides each guess.
1358 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1359 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1360 # Update the cache value to reflect the command line values.
1361 ac_cv_have_x
="have_x=yes \
1362 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1363 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1366 if test "$no_x" = yes; then
1367 # Not all programs may use this symbol, but it does not hurt to define it.
1368 cat >> confdefs.h
<<\EOF
1369 #define X_DISPLAY_MISSING 1
1372 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1374 if test -n "$x_includes"; then
1375 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1378 # It would also be nice to do this for all -L options, not just this one.
1379 if test -n "$x_libraries"; then
1380 X_LIBS
="$X_LIBS -L$x_libraries"
1381 # For Solaris; some versions of Sun CC require a space after -R and
1382 # others require no space. Words are not sufficient . . . .
1383 case "`(uname -sr) 2>/dev/null`" in
1385 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1386 echo "configure:1387: checking whether -R must be followed by a space" >&5
1387 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1388 cat > conftest.
$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1396 if { (eval echo configure
:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1400 echo "configure: failed program was:" >&5
1401 cat conftest.
$ac_ext >&5
1406 if test $ac_R_nospace = yes; then
1407 echo "$ac_t""no" 1>&6
1408 X_LIBS
="$X_LIBS -R$x_libraries"
1410 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1411 cat > conftest.
$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1419 if { (eval echo configure
:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1423 echo "configure: failed program was:" >&5
1424 cat conftest.
$ac_ext >&5
1429 if test $ac_R_space = yes; then
1430 echo "$ac_t""yes" 1>&6
1431 X_LIBS
="$X_LIBS -R $x_libraries"
1433 echo "$ac_t""neither works" 1>&6
1436 LIBS
="$ac_xsave_LIBS"
1440 # Check for system-dependent libraries X programs must link with.
1441 # Do this before checking for the system-independent R6 libraries
1442 # (-lICE), since we may need -lsocket or whatever for X linking.
1444 if test "$ISC" = yes; then
1445 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1447 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1448 # libraries were built with DECnet support. And karl@cs.umb.edu says
1449 # the Alpha needs dnet_stub (dnet does not exist).
1450 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1451 echo "configure:1452: checking for dnet_ntoa in -ldnet" >&5
1452 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1456 ac_save_LIBS
="$LIBS"
1458 cat > conftest.
$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1461 /* Override any gcc2 internal prototype to avoid an error. */
1462 /* We use char because int might match the return type of a gcc2
1463 builtin and then its argument prototype would still apply. */
1470 if { (eval echo configure
:1471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1472 eval "ac_cv_lib_$ac_lib_var=yes"
1474 echo "configure: failed program was:" >&5
1475 cat conftest.
$ac_ext >&5
1477 eval "ac_cv_lib_$ac_lib_var=no"
1480 LIBS
="$ac_save_LIBS"
1483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1484 echo "$ac_t""yes" 1>&6
1485 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1487 echo "$ac_t""no" 1>&6
1490 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1491 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1492 echo "configure:1493: checking for dnet_ntoa in -ldnet_stub" >&5
1493 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1497 ac_save_LIBS
="$LIBS"
1498 LIBS
="-ldnet_stub $LIBS"
1499 cat > conftest.
$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1502 /* Override any gcc2 internal prototype to avoid an error. */
1503 /* We use char because int might match the return type of a gcc2
1504 builtin and then its argument prototype would still apply. */
1511 if { (eval echo configure
:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1513 eval "ac_cv_lib_$ac_lib_var=yes"
1515 echo "configure: failed program was:" >&5
1516 cat conftest.
$ac_ext >&5
1518 eval "ac_cv_lib_$ac_lib_var=no"
1521 LIBS
="$ac_save_LIBS"
1524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1525 echo "$ac_t""yes" 1>&6
1526 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1528 echo "$ac_t""no" 1>&6
1533 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1534 # to get the SysV transport functions.
1535 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1537 # The nsl library prevents programs from opening the X display
1538 # on Irix 5.2, according to dickey@clark.net.
1539 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1540 echo "configure:1541: checking for gethostbyname" >&5
1541 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 cat > conftest.
$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1547 /* System header to define __stub macros and hopefully few prototypes,
1548 which can conflict with char gethostbyname(); below. */
1550 /* Override any gcc2 internal prototype to avoid an error. */
1551 /* We use char because int might match the return type of a gcc2
1552 builtin and then its argument prototype would still apply. */
1553 char gethostbyname();
1557 /* The GNU C library defines this for functions which it implements
1558 to always fail with ENOSYS. Some functions are actually named
1559 something starting with __ and the normal name is an alias. */
1560 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1568 if { (eval echo configure
:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1570 eval "ac_cv_func_gethostbyname=yes"
1572 echo "configure: failed program was:" >&5
1573 cat conftest.
$ac_ext >&5
1575 eval "ac_cv_func_gethostbyname=no"
1580 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1581 echo "$ac_t""yes" 1>&6
1584 echo "$ac_t""no" 1>&6
1587 if test $ac_cv_func_gethostbyname = no
; then
1588 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1589 echo "configure:1590: checking for gethostbyname in -lnsl" >&5
1590 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 ac_save_LIBS
="$LIBS"
1596 cat > conftest.
$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1599 /* Override any gcc2 internal prototype to avoid an error. */
1600 /* We use char because int might match the return type of a gcc2
1601 builtin and then its argument prototype would still apply. */
1602 char gethostbyname();
1608 if { (eval echo configure
:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1610 eval "ac_cv_lib_$ac_lib_var=yes"
1612 echo "configure: failed program was:" >&5
1613 cat conftest.
$ac_ext >&5
1615 eval "ac_cv_lib_$ac_lib_var=no"
1618 LIBS
="$ac_save_LIBS"
1621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1622 echo "$ac_t""yes" 1>&6
1623 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1625 echo "$ac_t""no" 1>&6
1630 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1631 # socket/setsockopt and other routines are undefined under SCO ODT
1632 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1633 # on later versions), says simon@lia.di.epfl.ch: it contains
1634 # gethostby* variants that don't use the nameserver (or something).
1635 # -lsocket must be given before -lnsl if both are needed.
1636 # We assume that if connect needs -lnsl, so does gethostbyname.
1637 echo $ac_n "checking for connect""... $ac_c" 1>&6
1638 echo "configure:1639: checking for connect" >&5
1639 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1642 cat > conftest.
$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 /* System header to define __stub macros and hopefully few prototypes,
1646 which can conflict with char connect(); below. */
1648 /* Override any gcc2 internal prototype to avoid an error. */
1649 /* We use char because int might match the return type of a gcc2
1650 builtin and then its argument prototype would still apply. */
1655 /* The GNU C library defines this for functions which it implements
1656 to always fail with ENOSYS. Some functions are actually named
1657 something starting with __ and the normal name is an alias. */
1658 #if defined (__stub_connect) || defined (__stub___connect)
1666 if { (eval echo configure
:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1668 eval "ac_cv_func_connect=yes"
1670 echo "configure: failed program was:" >&5
1671 cat conftest.
$ac_ext >&5
1673 eval "ac_cv_func_connect=no"
1678 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1679 echo "$ac_t""yes" 1>&6
1682 echo "$ac_t""no" 1>&6
1685 if test $ac_cv_func_connect = no
; then
1686 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1687 echo "configure:1688: checking for connect in -lsocket" >&5
1688 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1690 echo $ac_n "(cached) $ac_c" 1>&6
1692 ac_save_LIBS
="$LIBS"
1693 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1694 cat > conftest.
$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1697 /* Override any gcc2 internal prototype to avoid an error. */
1698 /* We use char because int might match the return type of a gcc2
1699 builtin and then its argument prototype would still apply. */
1706 if { (eval echo configure
:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1708 eval "ac_cv_lib_$ac_lib_var=yes"
1710 echo "configure: failed program was:" >&5
1711 cat conftest.
$ac_ext >&5
1713 eval "ac_cv_lib_$ac_lib_var=no"
1716 LIBS
="$ac_save_LIBS"
1719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1720 echo "$ac_t""yes" 1>&6
1721 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
1723 echo "$ac_t""no" 1>&6
1728 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1729 echo $ac_n "checking for remove""... $ac_c" 1>&6
1730 echo "configure:1731: checking for remove" >&5
1731 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 cat > conftest.
$ac_ext <<EOF
1735 #line 1736 "configure"
1736 #include "confdefs.h"
1737 /* System header to define __stub macros and hopefully few prototypes,
1738 which can conflict with char remove(); below. */
1740 /* Override any gcc2 internal prototype to avoid an error. */
1741 /* We use char because int might match the return type of a gcc2
1742 builtin and then its argument prototype would still apply. */
1747 /* The GNU C library defines this for functions which it implements
1748 to always fail with ENOSYS. Some functions are actually named
1749 something starting with __ and the normal name is an alias. */
1750 #if defined (__stub_remove) || defined (__stub___remove)
1758 if { (eval echo configure
:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1760 eval "ac_cv_func_remove=yes"
1762 echo "configure: failed program was:" >&5
1763 cat conftest.
$ac_ext >&5
1765 eval "ac_cv_func_remove=no"
1770 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1771 echo "$ac_t""yes" 1>&6
1774 echo "$ac_t""no" 1>&6
1777 if test $ac_cv_func_remove = no
; then
1778 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1779 echo "configure:1780: checking for remove in -lposix" >&5
1780 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 ac_save_LIBS
="$LIBS"
1785 LIBS
="-lposix $LIBS"
1786 cat > conftest.
$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1789 /* Override any gcc2 internal prototype to avoid an error. */
1790 /* We use char because int might match the return type of a gcc2
1791 builtin and then its argument prototype would still apply. */
1798 if { (eval echo configure
:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1800 eval "ac_cv_lib_$ac_lib_var=yes"
1802 echo "configure: failed program was:" >&5
1803 cat conftest.
$ac_ext >&5
1805 eval "ac_cv_lib_$ac_lib_var=no"
1808 LIBS
="$ac_save_LIBS"
1811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1812 echo "$ac_t""yes" 1>&6
1813 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
1815 echo "$ac_t""no" 1>&6
1820 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1821 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1822 echo "configure:1823: checking for shmat" >&5
1823 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1826 cat > conftest.
$ac_ext <<EOF
1827 #line 1828 "configure"
1828 #include "confdefs.h"
1829 /* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char shmat(); below. */
1832 /* Override any gcc2 internal prototype to avoid an error. */
1833 /* We use char because int might match the return type of a gcc2
1834 builtin and then its argument prototype would still apply. */
1839 /* The GNU C library defines this for functions which it implements
1840 to always fail with ENOSYS. Some functions are actually named
1841 something starting with __ and the normal name is an alias. */
1842 #if defined (__stub_shmat) || defined (__stub___shmat)
1850 if { (eval echo configure
:1851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1852 eval "ac_cv_func_shmat=yes"
1854 echo "configure: failed program was:" >&5
1855 cat conftest.
$ac_ext >&5
1857 eval "ac_cv_func_shmat=no"
1862 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1863 echo "$ac_t""yes" 1>&6
1866 echo "$ac_t""no" 1>&6
1869 if test $ac_cv_func_shmat = no
; then
1870 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1871 echo "configure:1872: checking for shmat in -lipc" >&5
1872 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 ac_save_LIBS
="$LIBS"
1878 cat > conftest.
$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1881 /* Override any gcc2 internal prototype to avoid an error. */
1882 /* We use char because int might match the return type of a gcc2
1883 builtin and then its argument prototype would still apply. */
1890 if { (eval echo configure
:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1892 eval "ac_cv_lib_$ac_lib_var=yes"
1894 echo "configure: failed program was:" >&5
1895 cat conftest.
$ac_ext >&5
1897 eval "ac_cv_lib_$ac_lib_var=no"
1900 LIBS
="$ac_save_LIBS"
1903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1904 echo "$ac_t""yes" 1>&6
1905 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
1907 echo "$ac_t""no" 1>&6
1913 # Check for libraries that X11R6 Xt/Xaw programs need.
1914 ac_save_LDFLAGS
="$LDFLAGS"
1915 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
1916 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1917 # check for ICE first), but we must link in the order -lSM -lICE or
1918 # we get undefined symbols. So assume we have SM if we have ICE.
1919 # These have to be linked with before -lX11, unlike the other
1920 # libraries we check for below, so use a different variable.
1921 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1922 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1923 echo "configure:1924: checking for IceConnectionNumber in -lICE" >&5
1924 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 ac_save_LIBS
="$LIBS"
1929 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
1930 cat > conftest.
$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1933 /* Override any gcc2 internal prototype to avoid an error. */
1934 /* We use char because int might match the return type of a gcc2
1935 builtin and then its argument prototype would still apply. */
1936 char IceConnectionNumber();
1939 IceConnectionNumber()
1942 if { (eval echo configure
:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1944 eval "ac_cv_lib_$ac_lib_var=yes"
1946 echo "configure: failed program was:" >&5
1947 cat conftest.
$ac_ext >&5
1949 eval "ac_cv_lib_$ac_lib_var=no"
1952 LIBS
="$ac_save_LIBS"
1955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1956 echo "$ac_t""yes" 1>&6
1957 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
1959 echo "$ac_t""no" 1>&6
1962 LDFLAGS
="$ac_save_LDFLAGS"
1966 X_LIBRARY_PATH
="$x_libraries"
1967 XLIBS
="-lX11 $X_EXTRA_LIBS"
1971 if test -n "$includedir"; then
1972 XCFLAGS
="$XCFLAGS -I$includedir"
1975 if test -n "$libdir"; then
1976 XLIBS
="$XLIBS -L$libdir"
1979 CPPFLAGS_old
="$CPPFLAGS"
1980 CPPFLAGS
="$CPPFLAGS $XCFLAGS"
1981 ac_safe
=`echo "dockapp.h" | sed 'y%./+-%__p_%'`
1982 echo $ac_n "checking for dockapp.h""... $ac_c" 1>&6
1983 echo "configure:1984: checking for dockapp.h" >&5
1984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 cat > conftest.
$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1990 #include <dockapp.h>
1992 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1993 { (eval echo configure
:1994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1994 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1995 if test -z "$ac_err"; then
1997 eval "ac_cv_header_$ac_safe=yes"
2000 echo "configure: failed program was:" >&5
2001 cat conftest.
$ac_ext >&5
2003 eval "ac_cv_header_$ac_safe=no"
2007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2008 echo "$ac_t""yes" 1>&6
2011 echo "$ac_t""no" 1>&6
2014 CPPFLAGS
="$CPPFLAGS_old"
2021 echo $ac_n "checking for working const""... $ac_c" 1>&6
2022 echo "configure:2023: checking for working const" >&5
2023 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 cat > conftest.
$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2032 /* Ultrix mips cc rejects this. */
2033 typedef int charset[2]; const charset x;
2034 /* SunOS 4.1.1 cc rejects this. */
2035 char const *const *ccp;
2037 /* NEC SVR4.0.2 mips cc rejects this. */
2038 struct point {int x, y;};
2039 static struct point const zero = {0,0};
2040 /* AIX XL C 1.02.0.0 rejects this.
2041 It does not let you subtract one const X* pointer from another in an arm
2042 of an if-expression whose if-part is not a constant expression */
2043 const char *g = "string";
2044 ccp = &g + (g ? g-g : 0);
2045 /* HPUX 7.0 cc rejects these. */
2048 ccp = (char const *const *) p;
2049 { /* SCO 3.2v4 cc rejects this. */
2051 char const *s = 0 ? (char *) 0 : (char const *) 0;
2055 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2057 const int *foo = &x[0];
2060 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2061 typedef const int *iptr;
2065 { /* AIX XL C 1.02.0.0 rejects this saying
2066 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2067 struct s { int j; const int *ap[3]; };
2068 struct s *b; b->j = 5;
2070 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2076 if { (eval echo configure
:2077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2080 echo "configure: failed program was:" >&5
2081 cat conftest.
$ac_ext >&5
2088 echo "$ac_t""$ac_cv_c_const" 1>&6
2089 if test $ac_cv_c_const = no
; then
2090 cat >> confdefs.h
<<\EOF
2097 echo $ac_n "checking for working fnmatch""... $ac_c" 1>&6
2098 echo "configure:2099: checking for working fnmatch" >&5
2099 if eval "test \"`echo '$''{'ac_cv_func_fnmatch_works'+set}'`\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2102 # Some versions of Solaris or SCO have a broken fnmatch function.
2103 # So we run a test program. If we are cross-compiling, take no chance.
2104 # Thanks to John Oleynick and Franc,ois Pinard for this test.
2105 if test "$cross_compiling" = yes; then
2106 ac_cv_func_fnmatch_works
=no
2108 cat > conftest.
$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2111 main() { exit (fnmatch ("a*", "abc", 0) != 0); }
2113 if { (eval echo configure
:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2115 ac_cv_func_fnmatch_works
=yes
2117 echo "configure: failed program was:" >&5
2118 cat conftest.
$ac_ext >&5
2120 ac_cv_func_fnmatch_works
=no
2127 echo "$ac_t""$ac_cv_func_fnmatch_works" 1>&6
2128 if test $ac_cv_func_fnmatch_works = yes; then
2129 cat >> confdefs.h
<<\EOF
2130 #define HAVE_FNMATCH 1
2135 echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
2136 echo "configure:2137: checking whether utime accepts a null argument" >&5
2137 if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
2138 echo $ac_n "(cached) $ac_c" 1>&6
2140 rm -f conftestdata
; > conftestdata
2141 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
2142 if test "$cross_compiling" = yes; then
2143 ac_cv_func_utime_null
=no
2145 cat > conftest.
$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2148 #include <sys/types.h>
2149 #include <sys/stat.h>
2152 exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
2153 && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
2154 && t.st_mtime - s.st_mtime < 120));
2157 if { (eval echo configure
:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2159 ac_cv_func_utime_null
=yes
2161 echo "configure: failed program was:" >&5
2162 cat conftest.
$ac_ext >&5
2164 ac_cv_func_utime_null
=no
2169 rm -f core core.
* *.core
2172 echo "$ac_t""$ac_cv_func_utime_null" 1>&6
2173 if test $ac_cv_func_utime_null = yes; then
2174 cat >> confdefs.h
<<\EOF
2175 #define HAVE_UTIME_NULL 1
2180 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2181 echo "configure:2182: checking for vprintf" >&5
2182 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 cat > conftest.
$ac_ext <<EOF
2186 #line 2187 "configure"
2187 #include "confdefs.h"
2188 /* System header to define __stub macros and hopefully few prototypes,
2189 which can conflict with char vprintf(); below. */
2191 /* Override any gcc2 internal prototype to avoid an error. */
2192 /* We use char because int might match the return type of a gcc2
2193 builtin and then its argument prototype would still apply. */
2198 /* The GNU C library defines this for functions which it implements
2199 to always fail with ENOSYS. Some functions are actually named
2200 something starting with __ and the normal name is an alias. */
2201 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2209 if { (eval echo configure
:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2211 eval "ac_cv_func_vprintf=yes"
2213 echo "configure: failed program was:" >&5
2214 cat conftest.
$ac_ext >&5
2216 eval "ac_cv_func_vprintf=no"
2221 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2222 echo "$ac_t""yes" 1>&6
2223 cat >> confdefs.h
<<\EOF
2224 #define HAVE_VPRINTF 1
2228 echo "$ac_t""no" 1>&6
2231 if test "$ac_cv_func_vprintf" != yes; then
2232 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2233 echo "configure:2234: checking for _doprnt" >&5
2234 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 cat > conftest.
$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 /* System header to define __stub macros and hopefully few prototypes,
2241 which can conflict with char _doprnt(); below. */
2243 /* Override any gcc2 internal prototype to avoid an error. */
2244 /* We use char because int might match the return type of a gcc2
2245 builtin and then its argument prototype would still apply. */
2250 /* The GNU C library defines this for functions which it implements
2251 to always fail with ENOSYS. Some functions are actually named
2252 something starting with __ and the normal name is an alias. */
2253 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2261 if { (eval echo configure
:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2263 eval "ac_cv_func__doprnt=yes"
2265 echo "configure: failed program was:" >&5
2266 cat conftest.
$ac_ext >&5
2268 eval "ac_cv_func__doprnt=no"
2273 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2274 echo "$ac_t""yes" 1>&6
2275 cat >> confdefs.h
<<\EOF
2276 #define HAVE_DOPRNT 1
2280 echo "$ac_t""no" 1>&6
2285 for ac_func
in strdup strstr memcpy
2287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2288 echo "configure:2289: checking for $ac_func" >&5
2289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2292 cat > conftest.
$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2295 /* System header to define __stub macros and hopefully few prototypes,
2296 which can conflict with char $ac_func(); below. */
2298 /* Override any gcc2 internal prototype to avoid an error. */
2299 /* We use char because int might match the return type of a gcc2
2300 builtin and then its argument prototype would still apply. */
2305 /* The GNU C library defines this for functions which it implements
2306 to always fail with ENOSYS. Some functions are actually named
2307 something starting with __ and the normal name is an alias. */
2308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2316 if { (eval echo configure
:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2318 eval "ac_cv_func_$ac_func=yes"
2320 echo "configure: failed program was:" >&5
2321 cat conftest.
$ac_ext >&5
2323 eval "ac_cv_func_$ac_func=no"
2328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2329 echo "$ac_t""yes" 1>&6
2330 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2331 cat >> confdefs.h
<<EOF
2332 #define $ac_tr_func 1
2336 echo "$ac_t""no" 1>&6
2341 echo $ac_n "checking for XCreateGC in -lX11""... $ac_c" 1>&6
2342 echo "configure:2343: checking for XCreateGC in -lX11" >&5
2343 ac_lib_var
=`echo X11'_'XCreateGC | sed 'y%./+-%__p_%'`
2344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2347 ac_save_LIBS
="$LIBS"
2348 LIBS
="-lX11 $XLFLAGS $XLIBS $LIBS"
2349 cat > conftest.
$ac_ext <<EOF
2350 #line 2351 "configure"
2351 #include "confdefs.h"
2352 /* Override any gcc2 internal prototype to avoid an error. */
2353 /* We use char because int might match the return type of a gcc2
2354 builtin and then its argument prototype would still apply. */
2361 if { (eval echo configure
:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2363 eval "ac_cv_lib_$ac_lib_var=yes"
2365 echo "configure: failed program was:" >&5
2366 cat conftest.
$ac_ext >&5
2368 eval "ac_cv_lib_$ac_lib_var=no"
2371 LIBS
="$ac_save_LIBS"
2374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2375 echo "$ac_t""yes" 1>&6
2376 ac_tr_lib
=HAVE_LIB
`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2377 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2378 cat >> confdefs.h
<<EOF
2379 #define $ac_tr_lib 1
2385 echo "$ac_t""no" 1>&6
2388 echo $ac_n "checking for DAInitialize in -ldockapp""... $ac_c" 1>&6
2389 echo "configure:2390: checking for DAInitialize in -ldockapp" >&5
2390 ac_lib_var
=`echo dockapp'_'DAInitialize | sed 'y%./+-%__p_%'`
2391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2394 ac_save_LIBS
="$LIBS"
2395 LIBS
="-ldockapp $XLFLAGS $XLIBS $LIBS"
2396 cat > conftest.
$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 /* Override any gcc2 internal prototype to avoid an error. */
2400 /* We use char because int might match the return type of a gcc2
2401 builtin and then its argument prototype would still apply. */
2402 char DAInitialize();
2408 if { (eval echo configure
:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2410 eval "ac_cv_lib_$ac_lib_var=yes"
2412 echo "configure: failed program was:" >&5
2413 cat conftest.
$ac_ext >&5
2415 eval "ac_cv_lib_$ac_lib_var=no"
2418 LIBS
="$ac_save_LIBS"
2421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2422 echo "$ac_t""yes" 1>&6
2423 ac_tr_lib
=HAVE_LIB
`echo dockapp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2424 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2425 cat >> confdefs.h
<<EOF
2426 #define $ac_tr_lib 1
2429 LIBS
="-ldockapp $LIBS"
2432 echo "$ac_t""no" 1>&6
2436 # Check whether --enable-debug or --disable-debug was given.
2437 if test "${enable_debug+set}" = set; then
2438 enableval
="$enable_debug"
2444 if test "$enable_debug" = yes; then
2445 CFLAGS
="-Wall -g -DDEBUG"
2448 # Check whether --enable-delt_xpms or --disable-delt_xpms was given.
2449 if test "${enable_delt_xpms+set}" = set; then
2450 enableval
="$enable_delt_xpms"
2456 if test "$enable_delt_xpms" = yes; then
2457 CFLAGS
="$CFLAGS -DUSE_DELT_XPMS"
2461 cat > confcache
<<\EOF
2462 # This file is a shell script that caches the results of configure
2463 # tests run on this system so they can be shared between configure
2464 # scripts and configure runs. It is not useful on other systems.
2465 # If it contains results you don't want to keep, you may remove or edit it.
2467 # By default, configure uses ./config.cache as the cache file,
2468 # creating it if it does not exist already. You can give configure
2469 # the --cache-file=FILE option to use a different cache file; that is
2470 # what configure does when it calls configure scripts in
2471 # subdirectories, so they share the cache.
2472 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2473 # config.status only pays attention to the cache file if you give it the
2474 # --recheck option to rerun configure.
2477 # The following way of writing the cache mishandles newlines in values,
2478 # but we know of no workaround that is simple, portable, and efficient.
2479 # So, don't put newlines in cache variables' values.
2480 # Ultrix sh set writes to stderr and can't be redirected directly,
2481 # and sets the high bit in the cache file unless we assign to the vars.
2483 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2485 # `set' does not quote correctly, so add quotes (double-quote substitution
2486 # turns \\\\ into \\, and sed turns \\ into \).
2488 -e "s/'/'\\\\''/g" \
2489 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2492 # `set' quotes correctly as required by POSIX, so do not add quotes.
2493 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2496 if cmp -s $cache_file confcache
; then
2499 if test -w $cache_file; then
2500 echo "updating cache $cache_file"
2501 cat confcache
> $cache_file
2503 echo "not updating unwritable cache $cache_file"
2508 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2510 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2511 # Let make expand exec_prefix.
2512 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2514 # Any assignment to VPATH causes Sun make to only execute
2515 # the first set of double-colon rules, so remove it if not needed.
2516 # If there is a colon in the path, we need to keep it.
2517 if test "x$srcdir" = x.
; then
2518 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2521 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2523 # Transform confdefs.h into DEFS.
2524 # Protect against shell expansion while executing Makefile rules.
2525 # Protect against Makefile macro expansion.
2526 cat > conftest.defs
<<\EOF
2527 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2528 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2533 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
2537 # Without the "./", some shells look in PATH for config.status.
2538 : ${CONFIG_STATUS=./config.status}
2540 echo creating $CONFIG_STATUS
2541 rm -f $CONFIG_STATUS
2542 cat > $CONFIG_STATUS <<EOF
2544 # Generated automatically by configure.
2545 # Run this file to recreate the current configuration.
2546 # This directory was configured as follows,
2547 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2549 # $0 $ac_configure_args
2551 # Compiler output produced by configure, useful for debugging
2552 # configure, is in ./config.log if it exists.
2554 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2557 case "\$ac_option" in
2558 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2559 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2560 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2561 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2562 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2564 -help | --help | --hel | --he | --h)
2565 echo "\$ac_cs_usage"; exit 0 ;;
2566 *) echo "\$ac_cs_usage"; exit 1 ;;
2570 ac_given_srcdir=$srcdir
2572 trap 'rm -fr `echo "Makefile src/Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2574 cat >> $CONFIG_STATUS <<EOF
2576 # Protect against being on the right side of a sed subst in config.status.
2577 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2578 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2582 s%@CFLAGS@%$CFLAGS%g
2583 s%@CPPFLAGS@%$CPPFLAGS%g
2584 s%@CXXFLAGS@%$CXXFLAGS%g
2585 s%@FFLAGS@%$FFLAGS%g
2587 s%@LDFLAGS@%$LDFLAGS%g
2589 s%@exec_prefix@%$exec_prefix%g
2590 s%@prefix@%$prefix%g
2591 s%@program_transform_name@%$program_transform_name%g
2592 s%@bindir@%$bindir%g
2593 s%@sbindir@%$sbindir%g
2594 s%@libexecdir@%$libexecdir%g
2595 s%@datadir@%$datadir%g
2596 s%@sysconfdir@%$sysconfdir%g
2597 s%@sharedstatedir@%$sharedstatedir%g
2598 s%@localstatedir@%$localstatedir%g
2599 s%@libdir@%$libdir%g
2600 s%@includedir@%$includedir%g
2601 s%@oldincludedir@%$oldincludedir%g
2602 s%@infodir@%$infodir%g
2603 s%@mandir@%$mandir%g
2605 s%@SET_MAKE@%$SET_MAKE%g
2607 s%@X_CFLAGS@%$X_CFLAGS%g
2608 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2609 s%@X_LIBS@%$X_LIBS%g
2610 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2611 s%@XCFLAGS@%$XCFLAGS%g
2612 s%@XLFLAGS@%$XLFLAGS%g
2614 s%@X_LIBRARY_PATH@%$X_LIBRARY_PATH%g
2619 cat >> $CONFIG_STATUS <<\EOF
2621 # Split the substitutions into bite-sized pieces for seds with
2622 # small command number limits, like on Digital OSF/1 and HP-UX.
2623 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2624 ac_file=1 # Number of current file.
2625 ac_beg=1 # First line for current file.
2626 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2629 while $ac_more_lines; do
2630 if test $ac_beg -gt 1; then
2631 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2633 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2635 if test ! -s conftest.s$ac_file; then
2637 rm -f conftest.s$ac_file
2639 if test -z "$ac_sed_cmds"; then
2640 ac_sed_cmds="sed -f conftest.s$ac_file"
2642 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2644 ac_file=`expr $ac_file + 1`
2646 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2649 if test -z "$ac_sed_cmds"; then
2654 cat >> $CONFIG_STATUS <<EOF
2656 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile"}
2658 cat >> $CONFIG_STATUS <<\EOF
2659 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2660 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2662 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
2663 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2664 *) ac_file_in="${ac_file}.in" ;;
2667 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2669 # Remove last slash and all that follows it. Not all systems have dirname.
2670 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2671 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2672 # The file is in a subdirectory.
2673 test ! -d "$ac_dir" && mkdir "$ac_dir"
2674 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2675 # A "../" for each directory in $ac_dir_suffix.
2676 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2678 ac_dir_suffix= ac_dots=
2681 case "$ac_given_srcdir" in
2683 if test -z "$ac_dots"; then top_srcdir=.
2684 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2685 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2687 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2688 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2692 echo creating "$ac_file"
2694 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2696 *Makefile*) ac_comsub="1i\\
2697 # $configure_input" ;;
2701 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2703 s%@configure_input@%$configure_input%g
2704 s%@srcdir@%$srcdir%g
2705 s%@top_srcdir@%$top_srcdir%g
2706 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2711 cat >> $CONFIG_STATUS <<EOF
2714 cat >> $CONFIG_STATUS <<\EOF
2718 chmod +x $CONFIG_STATUS
2719 rm -fr confdefs* $ac_clean_files
2720 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1