washerdryer: Use wmgeneral from libdockapp.
[dockapps.git] / wmail / configure
bloba080483470102ec3f26dd474b6b78be5f5a133cc
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-x use the X Window System"
16 ac_help="$ac_help
17 --enable-debug enable debugging "
18 ac_help="$ac_help
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.
24 build=NONE
25 cache_file=./config.cache
26 exec_prefix=NONE
27 host=NONE
28 no_create=
29 nonopt=NONE
30 no_recursion=
31 prefix=NONE
32 program_prefix=NONE
33 program_suffix=NONE
34 program_transform_name=s,x,x,
35 silent=
36 site=
37 srcdir=
38 target=NONE
39 verbose=
40 x_includes=NONE
41 x_libraries=NONE
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.
56 subdirs=
57 MFLAGS= MAKEFLAGS=
58 SHELL=${CONFIG_SHELL-/bin/sh}
59 # Maximum number of lines to put in a shell here document.
60 ac_max_here_lines=12
62 ac_prev=
63 for ac_option
66 # If the previous option needs an argument, assign it.
67 if test -n "$ac_prev"; then
68 eval "$ac_prev=\$ac_option"
69 ac_prev=
70 continue
73 case "$ac_option" in
74 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75 *) ac_optarg= ;;
76 esac
78 # Accept the important Cygnus configure options, so we can diagnose typos.
80 case "$ac_option" in
82 -bindir | --bindir | --bindi | --bind | --bin | --bi)
83 ac_prev=bindir ;;
84 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85 bindir="$ac_optarg" ;;
87 -build | --build | --buil | --bui | --bu)
88 ac_prev=build ;;
89 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90 build="$ac_optarg" ;;
92 -cache-file | --cache-file | --cache-fil | --cache-fi \
93 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
94 ac_prev=cache_file ;;
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)
100 ac_prev=datadir ;;
101 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
102 | --da=*)
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'`
121 case "$ac_option" in
122 *=*) ;;
123 *) ac_optarg=yes ;;
124 esac
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.
138 with_gas=yes ;;
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.
143 cat << EOF
144 Usage: configure [options] [host]
145 Options: [defaults in brackets after descriptions]
146 Configuration:
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
154 [$ac_default_prefix]
155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
156 [same as prefix]
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
161 [PREFIX/share]
162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163 --sharedstatedir=DIR modifiable architecture-independent data in DIR
164 [PREFIX/com]
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
177 cat << EOF
178 Host type:
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"
193 exit 0 ;;
195 -host | --host | --hos | --ho)
196 ac_prev=host ;;
197 -host=* | --host=* | --hos=* | --ho=*)
198 host="$ac_optarg" ;;
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)
208 ac_prev=infodir ;;
209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210 infodir="$ac_optarg" ;;
212 -libdir | --libdir | --libdi | --libd)
213 ac_prev=libdir ;;
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)
234 ac_prev=mandir ;;
235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236 mandir="$ac_optarg" ;;
238 -nfp | --nfp | --nf)
239 # Obsolete; use --without-fp.
240 with_fp=no ;;
242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
243 | --no-cr | --no-c)
244 no_create=yes ;;
246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248 no_recursion=yes ;;
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)
260 ac_prev=prefix ;;
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)
297 silent=yes ;;
299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
300 ac_prev=sbindir ;;
301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
302 | --sbi=* | --sb=*)
303 sbindir="$ac_optarg" ;;
305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307 | --sharedst | --shareds | --shared | --share | --shar \
308 | --sha | --sh)
309 ac_prev=sharedstatedir ;;
310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
313 | --sha=* | --sh=*)
314 sharedstatedir="$ac_optarg" ;;
316 -site | --site | --sit)
317 ac_prev=site ;;
318 -site=* | --site=* | --sit=*)
319 site="$ac_optarg" ;;
321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
322 ac_prev=srcdir ;;
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)
334 ac_prev=target ;;
335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336 target="$ac_optarg" ;;
338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
339 verbose=yes ;;
341 -version | --version | --versio | --versi | --vers)
342 echo "configure generated by autoconf version 2.13"
343 exit 0 ;;
345 -with-* | --with-*)
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'`
352 case "$ac_option" in
353 *=*) ;;
354 *) ac_optarg=yes ;;
355 esac
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" ;;
367 --x)
368 # Obsolete; use --with-x.
369 with_x=yes ;;
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; }
395 nonopt="$ac_option"
398 esac
399 done
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:
408 # 0 standard input
409 # 1 file creation
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
416 exec 6>/dev/null
417 else
418 exec 6>&1
420 exec 5>./config.log
422 echo "\
423 This file contains any messages produced by compilers while
424 running configure, to aid debugging if configure makes a mistake.
425 " 1>&5
427 # Strip out --no-create and --no-recursion so they do not pile up.
428 # Also quote any args containing shell metacharacters.
429 ac_configure_args=
430 for ac_arg
432 case "$ac_arg" in
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" ;;
440 esac
441 done
443 # NLS nuisances.
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.
456 echo > confdefs.h
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.
466 ac_prog=$0
467 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
469 srcdir=$ac_confdir
470 if test ! -r $srcdir/$ac_unique_file; then
471 srcdir=..
473 else
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; }
479 else
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"
489 else
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"
496 . "$ac_site_file"
498 done
500 if test -r "$cache_file"; then
501 echo "loading cache $cache_file"
502 . $cache_file
503 else
504 echo "creating cache $cache_file"
505 > $cache_file
508 ac_ext=c
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
515 ac_exeext=
516 ac_objext=o
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
520 ac_n= ac_c='
521 ' ac_t=' '
522 else
523 ac_n=-n ac_c= ac_t=
525 else
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
537 else
538 if test -n "$CC"; then
539 ac_cv_prog_CC="$CC" # Let the user override the test.
540 else
541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
542 ac_dummy="$PATH"
543 for ac_dir in $ac_dummy; do
544 test -z "$ac_dir" && ac_dir=.
545 if test -f $ac_dir/$ac_word; then
546 ac_cv_prog_CC="gcc"
547 break
549 done
550 IFS="$ac_save_ifs"
553 CC="$ac_cv_prog_CC"
554 if test -n "$CC"; then
555 echo "$ac_t""$CC" 1>&6
556 else
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
567 else
568 if test -n "$CC"; then
569 ac_cv_prog_CC="$CC" # Let the user override the test.
570 else
571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
572 ac_prog_rejected=no
573 ac_dummy="$PATH"
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
578 ac_prog_rejected=yes
579 continue
581 ac_cv_prog_CC="cc"
582 break
584 done
585 IFS="$ac_save_ifs"
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
589 shift
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.
594 shift
595 set dummy "$ac_dir/$ac_word" "$@"
596 shift
597 ac_cv_prog_CC="$@"
602 CC="$ac_cv_prog_CC"
603 if test -n "$CC"; then
604 echo "$ac_t""$CC" 1>&6
605 else
606 echo "$ac_t""no" 1>&6
609 if test -z "$CC"; then
610 case "`uname -s`" in
611 *win32* | *WIN32*)
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
618 else
619 if test -n "$CC"; then
620 ac_cv_prog_CC="$CC" # Let the user override the test.
621 else
622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
623 ac_dummy="$PATH"
624 for ac_dir in $ac_dummy; do
625 test -z "$ac_dir" && ac_dir=.
626 if test -f $ac_dir/$ac_word; then
627 ac_cv_prog_CC="cl"
628 break
630 done
631 IFS="$ac_save_ifs"
634 CC="$ac_cv_prog_CC"
635 if test -n "$CC"; then
636 echo "$ac_t""$CC" 1>&6
637 else
638 echo "$ac_t""no" 1>&6
641 esac
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
649 ac_ext=c
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"
661 main(){return(0);}
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
668 else
669 ac_cv_prog_cc_cross=yes
671 else
672 echo "configure: failed program was:" >&5
673 cat conftest.$ac_ext >&5
674 ac_cv_prog_cc_works=no
676 rm -fr conftest*
677 ac_ext=c
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
697 else
698 cat > conftest.c <<EOF
699 #ifdef __GNUC__
700 yes;
701 #endif
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
704 ac_cv_prog_gcc=yes
705 else
706 ac_cv_prog_gcc=no
710 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
712 if test $ac_cv_prog_gcc = yes; then
713 GCC=yes
714 else
715 GCC=
718 ac_test_CFLAGS="${CFLAGS+set}"
719 ac_save_CFLAGS="$CFLAGS"
720 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
725 else
726 echo 'void f(){}' > conftest.c
727 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
728 ac_cv_prog_cc_g=yes
729 else
730 ac_cv_prog_cc_g=no
732 rm -f conftest*
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
741 CFLAGS="-g -O2"
742 else
743 CFLAGS="-g"
745 else
746 if test "$GCC" = yes; then
747 CFLAGS="-O2"
748 else
749 CFLAGS=
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
758 else
759 cat > conftestmake <<\EOF
760 all:
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
767 else
768 eval ac_cv_prog_make_${ac_make}_set=no
770 rm -f conftestmake
772 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
773 echo "$ac_t""yes" 1>&6
774 SET_MAKE=
775 else
776 echo "$ac_t""no" 1>&6
777 SET_MAKE="MAKE=${MAKE-make}"
781 #AC_PATH_X
782 ac_header_dirent=no
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
790 else
791 cat > conftest.$ac_ext <<EOF
792 #line 793 "configure"
793 #include "confdefs.h"
794 #include <sys/types.h>
795 #include <$ac_hdr>
796 int main() {
797 DIR *dirp = 0;
798 ; return 0; }
800 if { (eval echo configure:801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
801 rm -rf conftest*
802 eval "ac_cv_header_dirent_$ac_safe=yes"
803 else
804 echo "configure: failed program was:" >&5
805 cat conftest.$ac_ext >&5
806 rm -rf conftest*
807 eval "ac_cv_header_dirent_$ac_safe=no"
809 rm -f conftest*
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
815 #define $ac_tr_hdr 1
817 ac_header_dirent=$ac_hdr; break
818 else
819 echo "$ac_t""no" 1>&6
821 done
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
829 else
830 ac_save_LIBS="$LIBS"
831 LIBS="-ldir $LIBS"
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. */
838 char opendir();
840 int main() {
841 opendir()
842 ; return 0; }
844 if { (eval echo configure:845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
845 rm -rf conftest*
846 eval "ac_cv_lib_$ac_lib_var=yes"
847 else
848 echo "configure: failed program was:" >&5
849 cat conftest.$ac_ext >&5
850 rm -rf conftest*
851 eval "ac_cv_lib_$ac_lib_var=no"
853 rm -f conftest*
854 LIBS="$ac_save_LIBS"
857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
858 echo "$ac_t""yes" 1>&6
859 LIBS="$LIBS -ldir"
860 else
861 echo "$ac_t""no" 1>&6
864 else
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
870 else
871 ac_save_LIBS="$LIBS"
872 LIBS="-lx $LIBS"
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. */
879 char opendir();
881 int main() {
882 opendir()
883 ; return 0; }
885 if { (eval echo configure:886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
886 rm -rf conftest*
887 eval "ac_cv_lib_$ac_lib_var=yes"
888 else
889 echo "configure: failed program was:" >&5
890 cat conftest.$ac_ext >&5
891 rm -rf conftest*
892 eval "ac_cv_lib_$ac_lib_var=no"
894 rm -f conftest*
895 LIBS="$ac_save_LIBS"
898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
899 echo "$ac_t""yes" 1>&6
900 LIBS="$LIBS -lx"
901 else
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
911 CPP=
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
916 else
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.
919 CPP="${CC-cc} -E"
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"
925 #include <assert.h>
926 Syntax Error
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
933 else
934 echo "$ac_err" >&5
935 echo "configure: failed program was:" >&5
936 cat conftest.$ac_ext >&5
937 rm -rf conftest*
938 CPP="${CC-cc} -E -traditional-cpp"
939 cat > conftest.$ac_ext <<EOF
940 #line 941 "configure"
941 #include "confdefs.h"
942 #include <assert.h>
943 Syntax Error
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
950 else
951 echo "$ac_err" >&5
952 echo "configure: failed program was:" >&5
953 cat conftest.$ac_ext >&5
954 rm -rf conftest*
955 CPP="${CC-cc} -nologo -E"
956 cat > conftest.$ac_ext <<EOF
957 #line 958 "configure"
958 #include "confdefs.h"
959 #include <assert.h>
960 Syntax Error
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
967 else
968 echo "$ac_err" >&5
969 echo "configure: failed program was:" >&5
970 cat conftest.$ac_ext >&5
971 rm -rf conftest*
972 CPP=/lib/cpp
974 rm -f conftest*
976 rm -f conftest*
978 rm -f conftest*
979 ac_cv_prog_CPP="$CPP"
981 CPP="$ac_cv_prog_CPP"
982 else
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
991 else
992 cat > conftest.$ac_ext <<EOF
993 #line 994 "configure"
994 #include "confdefs.h"
995 #include <stdlib.h>
996 #include <stdarg.h>
997 #include <string.h>
998 #include <float.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
1004 rm -rf conftest*
1005 ac_cv_header_stdc=yes
1006 else
1007 echo "$ac_err" >&5
1008 echo "configure: failed program was:" >&5
1009 cat conftest.$ac_ext >&5
1010 rm -rf conftest*
1011 ac_cv_header_stdc=no
1013 rm -f conftest*
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"
1020 #include <string.h>
1022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1023 egrep "memchr" >/dev/null 2>&1; then
1025 else
1026 rm -rf conftest*
1027 ac_cv_header_stdc=no
1029 rm -f conftest*
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"
1038 #include <stdlib.h>
1040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1041 egrep "free" >/dev/null 2>&1; then
1043 else
1044 rm -rf conftest*
1045 ac_cv_header_stdc=no
1047 rm -f conftest*
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
1055 else
1056 cat > conftest.$ac_ext <<EOF
1057 #line 1058 "configure"
1058 #include "confdefs.h"
1059 #include <ctype.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);
1065 exit (0); }
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
1069 then
1071 else
1072 echo "configure: failed program was:" >&5
1073 cat conftest.$ac_ext >&5
1074 rm -fr conftest*
1075 ac_cv_header_stdc=no
1077 rm -fr conftest*
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
1098 else
1099 cat > conftest.$ac_ext <<EOF
1100 #line 1101 "configure"
1101 #include "confdefs.h"
1102 #include <$ac_hdr>
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
1108 rm -rf conftest*
1109 eval "ac_cv_header_$ac_safe=yes"
1110 else
1111 echo "$ac_err" >&5
1112 echo "configure: failed program was:" >&5
1113 cat conftest.$ac_ext >&5
1114 rm -rf conftest*
1115 eval "ac_cv_header_$ac_safe=no"
1117 rm -f conftest*
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
1126 else
1127 echo "$ac_t""no" 1>&6
1129 done
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
1141 withval="$with_x"
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.
1148 have_x=disabled
1149 else
1150 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1151 # Both variables are already set.
1152 have_x=yes
1153 else
1154 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1156 else
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
1159 rm -fr conftestdir
1160 if mkdir conftestdir; then
1161 cd conftestdir
1162 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1163 cat > Imakefile <<'EOF'
1164 acfindx:
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
1176 done
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
1181 /usr/include) ;;
1182 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1183 esac
1184 case "$ac_im_usrlibdir" in
1185 /usr/lib | /lib) ;;
1186 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1187 esac
1189 cd ..
1190 rm -fr conftestdir
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
1207 rm -rf conftest*
1208 # We can compile using X headers with no special include directory.
1209 ac_x_includes=
1210 else
1211 echo "$ac_err" >&5
1212 echo "configure: failed program was:" >&5
1213 cat conftest.$ac_ext >&5
1214 rm -rf conftest*
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.
1217 for ac_dir in \
1218 /usr/X11/include \
1219 /usr/X11R6/include \
1220 /usr/X11R5/include \
1221 /usr/X11R4/include \
1223 /usr/include/X11 \
1224 /usr/include/X11R6 \
1225 /usr/include/X11R5 \
1226 /usr/include/X11R4 \
1228 /usr/local/X11/include \
1229 /usr/local/X11R6/include \
1230 /usr/local/X11R5/include \
1231 /usr/local/X11R4/include \
1233 /usr/local/include/X11 \
1234 /usr/local/include/X11R6 \
1235 /usr/local/include/X11R5 \
1236 /usr/local/include/X11R4 \
1238 /usr/X386/include \
1239 /usr/x386/include \
1240 /usr/XFree86/include/X11 \
1242 /usr/include \
1243 /usr/local/include \
1244 /usr/unsupported/include \
1245 /usr/athena/include \
1246 /usr/local/x11r5/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
1255 break
1257 done
1259 rm -f conftest*
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"
1276 int main() {
1277 ${x_direct_test_function}()
1278 ; return 0; }
1280 if { (eval echo configure:1281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1281 rm -rf conftest*
1282 LIBS="$ac_save_LIBS"
1283 # We can link X programs with no special library path.
1284 ac_x_libraries=
1285 else
1286 echo "configure: failed program was:" >&5
1287 cat conftest.$ac_ext >&5
1288 rm -rf conftest*
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/` \
1293 /usr/X11/lib \
1294 /usr/X11R6/lib \
1295 /usr/X11R5/lib \
1296 /usr/X11R4/lib \
1298 /usr/lib/X11 \
1299 /usr/lib/X11R6 \
1300 /usr/lib/X11R5 \
1301 /usr/lib/X11R4 \
1303 /usr/local/X11/lib \
1304 /usr/local/X11R6/lib \
1305 /usr/local/X11R5/lib \
1306 /usr/local/X11R4/lib \
1308 /usr/local/lib/X11 \
1309 /usr/local/lib/X11R6 \
1310 /usr/local/lib/X11R5 \
1311 /usr/local/lib/X11R4 \
1313 /usr/X386/lib \
1314 /usr/x386/lib \
1315 /usr/XFree86/lib/X11 \
1317 /usr/lib \
1318 /usr/local/lib \
1319 /usr/unsupported/lib \
1320 /usr/athena/lib \
1321 /usr/local/x11r5/lib \
1322 /usr/lpp/Xamples/lib \
1323 /lib/usr/lib/X11 \
1325 /usr/openwin/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
1332 break 2
1334 done
1335 done
1337 rm -f conftest*
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"
1343 else
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"
1351 fi # $with_x != no
1353 if test "$have_x" != yes; then
1354 echo "$ac_t""$have_x" 1>&6
1355 no_x=yes
1356 else
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=
1373 else
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
1384 "SunOS 5"*)
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"
1392 int main() {
1394 ; return 0; }
1396 if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1397 rm -rf conftest*
1398 ac_R_nospace=yes
1399 else
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1402 rm -rf conftest*
1403 ac_R_nospace=no
1405 rm -f conftest*
1406 if test $ac_R_nospace = yes; then
1407 echo "$ac_t""no" 1>&6
1408 X_LIBS="$X_LIBS -R$x_libraries"
1409 else
1410 LIBS="$ac_xsave_LIBS -R $x_libraries"
1411 cat > conftest.$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1415 int main() {
1417 ; return 0; }
1419 if { (eval echo configure:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1420 rm -rf conftest*
1421 ac_R_space=yes
1422 else
1423 echo "configure: failed program was:" >&5
1424 cat conftest.$ac_ext >&5
1425 rm -rf conftest*
1426 ac_R_space=no
1428 rm -f conftest*
1429 if test $ac_R_space = yes; then
1430 echo "$ac_t""yes" 1>&6
1431 X_LIBS="$X_LIBS -R $x_libraries"
1432 else
1433 echo "$ac_t""neither works" 1>&6
1436 LIBS="$ac_xsave_LIBS"
1437 esac
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"
1446 else
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
1455 else
1456 ac_save_LIBS="$LIBS"
1457 LIBS="-ldnet $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. */
1464 char dnet_ntoa();
1466 int main() {
1467 dnet_ntoa()
1468 ; return 0; }
1470 if { (eval echo configure:1471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1471 rm -rf conftest*
1472 eval "ac_cv_lib_$ac_lib_var=yes"
1473 else
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1476 rm -rf conftest*
1477 eval "ac_cv_lib_$ac_lib_var=no"
1479 rm -f conftest*
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"
1486 else
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
1496 else
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. */
1505 char dnet_ntoa();
1507 int main() {
1508 dnet_ntoa()
1509 ; return 0; }
1511 if { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1512 rm -rf conftest*
1513 eval "ac_cv_lib_$ac_lib_var=yes"
1514 else
1515 echo "configure: failed program was:" >&5
1516 cat conftest.$ac_ext >&5
1517 rm -rf conftest*
1518 eval "ac_cv_lib_$ac_lib_var=no"
1520 rm -f conftest*
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"
1527 else
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)
1536 # needs -lnsl.
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
1543 else
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. */
1549 #include <assert.h>
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();
1555 int main() {
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)
1561 choke me
1562 #else
1563 gethostbyname();
1564 #endif
1566 ; return 0; }
1568 if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1569 rm -rf conftest*
1570 eval "ac_cv_func_gethostbyname=yes"
1571 else
1572 echo "configure: failed program was:" >&5
1573 cat conftest.$ac_ext >&5
1574 rm -rf conftest*
1575 eval "ac_cv_func_gethostbyname=no"
1577 rm -f conftest*
1580 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1581 echo "$ac_t""yes" 1>&6
1583 else
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
1593 else
1594 ac_save_LIBS="$LIBS"
1595 LIBS="-lnsl $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();
1604 int main() {
1605 gethostbyname()
1606 ; return 0; }
1608 if { (eval echo configure:1609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1609 rm -rf conftest*
1610 eval "ac_cv_lib_$ac_lib_var=yes"
1611 else
1612 echo "configure: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1614 rm -rf conftest*
1615 eval "ac_cv_lib_$ac_lib_var=no"
1617 rm -f conftest*
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"
1624 else
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
1641 else
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. */
1647 #include <assert.h>
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. */
1651 char connect();
1653 int main() {
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)
1659 choke me
1660 #else
1661 connect();
1662 #endif
1664 ; return 0; }
1666 if { (eval echo configure:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1667 rm -rf conftest*
1668 eval "ac_cv_func_connect=yes"
1669 else
1670 echo "configure: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1672 rm -rf conftest*
1673 eval "ac_cv_func_connect=no"
1675 rm -f conftest*
1678 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1679 echo "$ac_t""yes" 1>&6
1681 else
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
1691 else
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. */
1700 char connect();
1702 int main() {
1703 connect()
1704 ; return 0; }
1706 if { (eval echo configure:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1707 rm -rf conftest*
1708 eval "ac_cv_lib_$ac_lib_var=yes"
1709 else
1710 echo "configure: failed program was:" >&5
1711 cat conftest.$ac_ext >&5
1712 rm -rf conftest*
1713 eval "ac_cv_lib_$ac_lib_var=no"
1715 rm -f conftest*
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"
1722 else
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
1733 else
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. */
1739 #include <assert.h>
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. */
1743 char remove();
1745 int main() {
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)
1751 choke me
1752 #else
1753 remove();
1754 #endif
1756 ; return 0; }
1758 if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1759 rm -rf conftest*
1760 eval "ac_cv_func_remove=yes"
1761 else
1762 echo "configure: failed program was:" >&5
1763 cat conftest.$ac_ext >&5
1764 rm -rf conftest*
1765 eval "ac_cv_func_remove=no"
1767 rm -f conftest*
1770 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1771 echo "$ac_t""yes" 1>&6
1773 else
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
1783 else
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. */
1792 char remove();
1794 int main() {
1795 remove()
1796 ; return 0; }
1798 if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1799 rm -rf conftest*
1800 eval "ac_cv_lib_$ac_lib_var=yes"
1801 else
1802 echo "configure: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1804 rm -rf conftest*
1805 eval "ac_cv_lib_$ac_lib_var=no"
1807 rm -f conftest*
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"
1814 else
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
1825 else
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. */
1831 #include <assert.h>
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. */
1835 char shmat();
1837 int main() {
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)
1843 choke me
1844 #else
1845 shmat();
1846 #endif
1848 ; return 0; }
1850 if { (eval echo configure:1851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1851 rm -rf conftest*
1852 eval "ac_cv_func_shmat=yes"
1853 else
1854 echo "configure: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1856 rm -rf conftest*
1857 eval "ac_cv_func_shmat=no"
1859 rm -f conftest*
1862 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1863 echo "$ac_t""yes" 1>&6
1865 else
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
1875 else
1876 ac_save_LIBS="$LIBS"
1877 LIBS="-lipc $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. */
1884 char shmat();
1886 int main() {
1887 shmat()
1888 ; return 0; }
1890 if { (eval echo configure:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1891 rm -rf conftest*
1892 eval "ac_cv_lib_$ac_lib_var=yes"
1893 else
1894 echo "configure: failed program was:" >&5
1895 cat conftest.$ac_ext >&5
1896 rm -rf conftest*
1897 eval "ac_cv_lib_$ac_lib_var=no"
1899 rm -f conftest*
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"
1906 else
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
1927 else
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();
1938 int main() {
1939 IceConnectionNumber()
1940 ; return 0; }
1942 if { (eval echo configure:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1943 rm -rf conftest*
1944 eval "ac_cv_lib_$ac_lib_var=yes"
1945 else
1946 echo "configure: failed program was:" >&5
1947 cat conftest.$ac_ext >&5
1948 rm -rf conftest*
1949 eval "ac_cv_lib_$ac_lib_var=no"
1951 rm -f conftest*
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"
1958 else
1959 echo "$ac_t""no" 1>&6
1962 LDFLAGS="$ac_save_LDFLAGS"
1966 X_LIBRARY_PATH="$x_libraries"
1967 XLIBS="-lX11 $X_EXTRA_LIBS"
1968 XCFLAGS="$X_CFLAGS"
1969 XLFLAGS="$X_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
1986 else
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
1996 rm -rf conftest*
1997 eval "ac_cv_header_$ac_safe=yes"
1998 else
1999 echo "$ac_err" >&5
2000 echo "configure: failed program was:" >&5
2001 cat conftest.$ac_ext >&5
2002 rm -rf conftest*
2003 eval "ac_cv_header_$ac_safe=no"
2005 rm -f conftest*
2007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2008 echo "$ac_t""yes" 1>&6
2010 else
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
2025 else
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2030 int main() {
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;
2036 char **p;
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. */
2046 ++ccp;
2047 p = (char**) ccp;
2048 ccp = (char const *const *) p;
2049 { /* SCO 3.2v4 cc rejects this. */
2050 char *t;
2051 char const *s = 0 ? (char *) 0 : (char const *) 0;
2053 *t++ = 0;
2055 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2056 int x[] = {25, 17};
2057 const int *foo = &x[0];
2058 ++foo;
2060 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2061 typedef const int *iptr;
2062 iptr p = 0;
2063 ++p;
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 */
2071 const int foo = 10;
2074 ; return 0; }
2076 if { (eval echo configure:2077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2077 rm -rf conftest*
2078 ac_cv_c_const=yes
2079 else
2080 echo "configure: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2082 rm -rf conftest*
2083 ac_cv_c_const=no
2085 rm -f conftest*
2088 echo "$ac_t""$ac_cv_c_const" 1>&6
2089 if test $ac_cv_c_const = no; then
2090 cat >> confdefs.h <<\EOF
2091 #define const
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
2101 else
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
2107 else
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
2114 then
2115 ac_cv_func_fnmatch_works=yes
2116 else
2117 echo "configure: failed program was:" >&5
2118 cat conftest.$ac_ext >&5
2119 rm -fr conftest*
2120 ac_cv_func_fnmatch_works=no
2122 rm -fr conftest*
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
2139 else
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
2144 else
2145 cat > conftest.$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2148 #include <sys/types.h>
2149 #include <sys/stat.h>
2150 main() {
2151 struct stat s, t;
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
2158 then
2159 ac_cv_func_utime_null=yes
2160 else
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2163 rm -fr conftest*
2164 ac_cv_func_utime_null=no
2166 rm -fr conftest*
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
2184 else
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. */
2190 #include <assert.h>
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. */
2194 char vprintf();
2196 int main() {
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)
2202 choke me
2203 #else
2204 vprintf();
2205 #endif
2207 ; return 0; }
2209 if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2210 rm -rf conftest*
2211 eval "ac_cv_func_vprintf=yes"
2212 else
2213 echo "configure: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2215 rm -rf conftest*
2216 eval "ac_cv_func_vprintf=no"
2218 rm -f conftest*
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
2227 else
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
2236 else
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. */
2242 #include <assert.h>
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. */
2246 char _doprnt();
2248 int main() {
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)
2254 choke me
2255 #else
2256 _doprnt();
2257 #endif
2259 ; return 0; }
2261 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2262 rm -rf conftest*
2263 eval "ac_cv_func__doprnt=yes"
2264 else
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2267 rm -rf conftest*
2268 eval "ac_cv_func__doprnt=no"
2270 rm -f conftest*
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
2279 else
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
2291 else
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. */
2297 #include <assert.h>
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. */
2301 char $ac_func();
2303 int main() {
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)
2309 choke me
2310 #else
2311 $ac_func();
2312 #endif
2314 ; return 0; }
2316 if { (eval echo configure:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2317 rm -rf conftest*
2318 eval "ac_cv_func_$ac_func=yes"
2319 else
2320 echo "configure: failed program was:" >&5
2321 cat conftest.$ac_ext >&5
2322 rm -rf conftest*
2323 eval "ac_cv_func_$ac_func=no"
2325 rm -f conftest*
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
2335 else
2336 echo "$ac_t""no" 1>&6
2338 done
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
2346 else
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. */
2355 char XCreateGC();
2357 int main() {
2358 XCreateGC()
2359 ; return 0; }
2361 if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2362 rm -rf conftest*
2363 eval "ac_cv_lib_$ac_lib_var=yes"
2364 else
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2367 rm -rf conftest*
2368 eval "ac_cv_lib_$ac_lib_var=no"
2370 rm -f conftest*
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
2382 LIBS="-lX11 $LIBS"
2384 else
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
2393 else
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();
2404 int main() {
2405 DAInitialize()
2406 ; return 0; }
2408 if { (eval echo configure:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2409 rm -rf conftest*
2410 eval "ac_cv_lib_$ac_lib_var=yes"
2411 else
2412 echo "configure: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2414 rm -rf conftest*
2415 eval "ac_cv_lib_$ac_lib_var=no"
2417 rm -f conftest*
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"
2431 else
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"
2440 else
2441 enable_debug=no
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"
2452 else
2453 enable_delt_xpms=no
2456 if test "$enable_delt_xpms" = yes; then
2457 CFLAGS="$CFLAGS -DUSE_DELT_XPMS"
2460 trap '' 1 2 15
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.
2482 (set) 2>&1 |
2483 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2484 *ac_space=\ *)
2485 # `set' does not quote correctly, so add quotes (double-quote substitution
2486 # turns \\\\ into \\, and sed turns \\ into \).
2487 sed -n \
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'
2495 esac >> confcache
2496 if cmp -s $cache_file confcache; then
2498 else
2499 if test -w $cache_file; then
2500 echo "updating cache $cache_file"
2501 cat confcache > $cache_file
2502 else
2503 echo "not updating unwritable cache $cache_file"
2506 rm -f confcache
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
2529 s%\[%\\&%g
2530 s%\]%\\&%g
2531 s%\$%$$%g
2533 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2534 rm -f conftest.defs
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
2543 #! /bin/sh
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]"
2555 for ac_option
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"
2563 exit 0 ;;
2564 -help | --help | --hel | --he | --h)
2565 echo "\$ac_cs_usage"; exit 0 ;;
2566 *) echo "\$ac_cs_usage"; exit 1 ;;
2567 esac
2568 done
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
2579 $ac_vpsub
2580 $extrasub
2581 s%@SHELL@%$SHELL%g
2582 s%@CFLAGS@%$CFLAGS%g
2583 s%@CPPFLAGS@%$CPPFLAGS%g
2584 s%@CXXFLAGS@%$CXXFLAGS%g
2585 s%@FFLAGS@%$FFLAGS%g
2586 s%@DEFS@%$DEFS%g
2587 s%@LDFLAGS@%$LDFLAGS%g
2588 s%@LIBS@%$LIBS%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
2604 s%@CC@%$CC%g
2605 s%@SET_MAKE@%$SET_MAKE%g
2606 s%@CPP@%$CPP%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
2613 s%@XLIBS@%$XLIBS%g
2614 s%@X_LIBRARY_PATH@%$X_LIBRARY_PATH%g
2616 CEOF
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.
2627 ac_more_lines=:
2628 ac_sed_cmds=""
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
2632 else
2633 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2635 if test ! -s conftest.s$ac_file; then
2636 ac_more_lines=false
2637 rm -f conftest.s$ac_file
2638 else
2639 if test -z "$ac_sed_cmds"; then
2640 ac_sed_cmds="sed -f conftest.s$ac_file"
2641 else
2642 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2644 ac_file=`expr $ac_file + 1`
2645 ac_beg=$ac_end
2646 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2648 done
2649 if test -z "$ac_sed_cmds"; then
2650 ac_sed_cmds=cat
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".
2661 case "$ac_file" 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" ;;
2665 esac
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'`
2677 else
2678 ac_dir_suffix= ac_dots=
2681 case "$ac_given_srcdir" in
2682 .) srcdir=.
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" ;;
2686 *) # Relative path.
2687 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2688 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2689 esac
2692 echo creating "$ac_file"
2693 rm -f "$ac_file"
2694 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2695 case "$ac_file" in
2696 *Makefile*) ac_comsub="1i\\
2697 # $configure_input" ;;
2698 *) ac_comsub= ;;
2699 esac
2701 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2702 sed -e "$ac_comsub
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
2707 fi; done
2708 rm -f conftest.s*
2711 cat >> $CONFIG_STATUS <<EOF
2714 cat >> $CONFIG_STATUS <<\EOF
2716 exit 0
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